From 7e80422b9d9364c834f46c1df618c064d97858c7 Mon Sep 17 00:00:00 2001 From: Pranesh Ravi Date: Wed, 6 Jun 2018 14:17:28 +0530 Subject: [PATCH] Updating examples --- examples/dist/main.js | 9015 ++++++++++++++++++---------------------- examples/src/index.tsx | 3 +- 2 files changed, 3932 insertions(+), 5086 deletions(-) diff --git a/examples/dist/main.js b/examples/dist/main.js index 4feeeb1..07f913e 100644 --- a/examples/dist/main.js +++ b/examples/dist/main.js @@ -3,10 +3,10 @@ webpackJsonp( [ function(e, t, n) { 'use strict' - e.exports = n(89) + e.exports = n(71) }, function(e, t, n) { - e.exports = n(100)() + e.exports = n(82)() }, function(e, t, n) { 'use strict' @@ -21,7 +21,7 @@ webpackJsonp( console.error(e) } } - o(), (e.exports = n(90)) + o(), (e.exports = n(72)) }, function(e, t) { var n, o @@ -52,22 +52,6 @@ webpackJsonp( !(o !== void 0 && (e.exports = o))) })() }, - function(e, t, n) { - 'use strict' - var o = n(23) - e.exports = function(e) { - if (!o(e)) throw new TypeError('Cannot use null or undefined') - return e - } - }, - function(e) { - 'use strict' - e.exports = function(e) { - if ('function' != typeof e) - throw new TypeError(e + ' is not a function') - return e - } - }, function(e) { var t = (e.exports = 'undefined' != typeof window && window.Math == Math @@ -88,7 +72,7 @@ webpackJsonp( function(e, t, n) { 'use strict' t.__esModule = !0 - var o = n(32), + var o = n(27), i = (function(e) { return e && e.__esModule ? e : { default: e } })(o) @@ -111,11 +95,11 @@ webpackJsonp( return e && e.__esModule ? e : { default: e } } t.__esModule = !0 - var i = n(138), + var i = n(123), r = o(i), - a = n(142), + a = n(127), l = o(a), - s = n(32), + s = n(27), d = o(s) t.default = function(e, t) { if ('function' != typeof t && null !== t) @@ -134,20 +118,16 @@ webpackJsonp( t && (r.default ? (0, r.default)(e, t) : (e.__proto__ = t)) } }, - function(e, t, n) { - 'use strict' - e.exports = n(199)() ? Symbol : n(200) - }, function(e) { var t = (e.exports = { version: '2.5.3' }) 'number' == typeof __e && (__e = t) }, function(e, t, n) { - var o = n(24), - i = n(57), - r = n(37), + var o = n(19), + i = n(47), + r = n(29), a = Object.defineProperty - t.f = n(13) + t.f = n(10) ? Object.defineProperty : function(e, t, n) { if ((o(e), (t = r(t, !0)), o(n), i)) @@ -160,7 +140,7 @@ webpackJsonp( } }, function(e, t, n) { - e.exports = !n(25)(function() { + e.exports = !n(20)(function() { return ( 7 != Object.defineProperty({}, 'a', { @@ -177,51 +157,10 @@ webpackJsonp( return t.call(e, n) } }, - function(e, t, n) { - 'use strict' - var o = n(51), - i = n(81), - r = n(195), - a = n(52), - l - ;(l = e.exports = function(t, n) { - var r, l, s, d, p - return ( - 2 > arguments.length || 'string' != typeof t - ? ((d = n), (n = t), (t = null)) - : (d = arguments[2]), - null == t - ? ((r = s = !0), (l = !1)) - : ((r = a.call(t, 'c')), - (l = a.call(t, 'e')), - (s = a.call(t, 'w'))), - (p = { value: n, configurable: r, enumerable: l, writable: s }), - d ? o(i(d), p) : p - ) - }), - (l.gs = function(t, n, l) { - var s, d, p, u - return ( - 'string' == typeof t - ? (p = arguments[3]) - : ((p = l), (l = n), (n = t), (t = null)), - null == n - ? (n = void 0) - : r(n) - ? null == l ? (l = void 0) : !r(l) && ((p = l), (l = void 0)) - : ((p = n), (n = l = void 0)), - null == t - ? ((s = !0), (d = !1)) - : ((s = a.call(t, 'c')), (d = a.call(t, 'e'))), - (u = { get: n, set: l, configurable: s, enumerable: d }), - p ? o(i(p), u) : u - ) - }) - }, function(e, t, n) { 'use strict' t.__esModule = !0 - var o = n(108), + var o = n(93), i = (function(e) { return e && e.__esModule ? e : { default: e } })(o) @@ -235,10 +174,10 @@ webpackJsonp( } }, function(e, t, n) { - var o = n(6), - i = n(11), - r = n(56), - a = n(18), + var o = n(4), + i = n(8), + r = n(46), + a = n(14), l = 'prototype', s = function(e, t, n) { var d = e & s.F, @@ -252,17 +191,17 @@ webpackJsonp( y = p ? o : u ? o[t] : (o[t] || {})[l], b, v, - x + C for (b in (p && (n = t), n)) (v = !d && y && void 0 !== y[b]), (v && b in m) || - ((x = v ? y[b] : n[b]), + ((C = v ? y[b] : n[b]), (m[b] = p && 'function' != typeof y[b] ? n[b] : f && v - ? r(x, o) - : h && y[b] == x + ? r(C, o) + : h && y[b] == C ? (function(e) { var t = function(t, n, o) { if (this instanceof e) { @@ -279,13 +218,13 @@ webpackJsonp( return e.apply(this, arguments) } return (t[l] = e[l]), t - })(x) - : c && 'function' == typeof x - ? r(Function.call, x) - : x), + })(C) + : c && 'function' == typeof C + ? r(Function.call, C) + : C), c && - (((m.virtual || (m.virtual = {}))[b] = x), - e & s.R && g && !g[b] && a(g, b, x))) + (((m.virtual || (m.virtual = {}))[b] = C), + e & s.R && g && !g[b] && a(g, b, C))) } ;(s.F = 1), (s.G = 2), @@ -298,9 +237,9 @@ webpackJsonp( (e.exports = s) }, function(e, t, n) { - var o = n(12), - i = n(28) - e.exports = n(13) + var o = n(9), + i = n(23) + e.exports = n(10) ? function(e, t, n) { return o.f(e, t, i(1, n)) } @@ -314,16 +253,16 @@ webpackJsonp( } }, function(e, t, n) { - var o = n(60), - i = n(38) + var o = n(50), + i = n(30) e.exports = function(e) { return o(i(e)) } }, function(e, t, n) { - var o = n(41)('wks'), - i = n(30), - r = n(6).Symbol, + var o = n(33)('wks'), + i = n(25), + r = n(4).Symbol, a = 'function' == typeof r, l = (e.exports = function(e) { return o[e] || (o[e] = (a && r[e]) || (a ? r : i)('Symbol.' + e)) @@ -343,7 +282,7 @@ webpackJsonp( return } return 'undefined' == typeof o - ? M(e, t) + ? D(e, t) : ('number' == typeof o && (o += 'px'), void (e.style[t] = o)) } function i(e) { @@ -412,7 +351,7 @@ webpackJsonp( var h = '', m = d(e) ;('left' in t || 'top' in t) && - ((h = Object(T.c)(e) || ''), Object(T.e)(e, 'none')), + ((h = Object(k.c)(e) || ''), Object(k.e)(e, 'none')), 'left' in t && ((e.style[p] = ''), (e.style[l] = i + 'px')), 'top' in t && ((e.style[u] = ''), (e.style[s] = a + 'px')), o(e) @@ -421,32 +360,32 @@ webpackJsonp( for (var b in t) if (t.hasOwnProperty(b)) { var v = c(b, n), - x = 'left' == b ? i : a, - C = m[b] - g[b] - y[v] = v === b ? x + C : x - C + C = 'left' == b ? i : a, + x = m[b] - g[b] + y[v] = v === b ? C + x : C - x } - r(e, y), o(e), ('left' in t || 'top' in t) && Object(T.e)(e, h) + r(e, y), o(e), ('left' in t || 'top' in t) && Object(k.e)(e, h) var w = {} - for (var k in t) - if (t.hasOwnProperty(k)) { - var S = c(k, n), - E = t[k] - m[k] - w[S] = k === S ? y[S] + E : y[S] - E + for (var T in t) + if (t.hasOwnProperty(T)) { + var S = c(T, n), + E = t[T] - m[T] + w[S] = T === S ? y[S] + E : y[S] - E } r(e, w) } function m(e, t) { var n = d(e), - o = Object(T.b)(e), + o = Object(k.b)(e), i = { x: o.x, y: o.y } 'left' in t && (i.x = o.x + t.left - n.left), 'top' in t && (i.y = o.y + t.top - n.top), - Object(T.d)(e, i) + Object(k.d)(e, i) } function g(e, t, n) { n.useCssRight || n.useCssBottom ? h(e, t, n) - : n.useCssTransform && Object(T.a)() in document.body.style + : n.useCssTransform && Object(k.a)() in document.body.style ? m(e, t, n) : h(e, t, n) } @@ -454,7 +393,7 @@ webpackJsonp( for (var n = 0; n < e.length; n++) t(e[n]) } function b(e) { - return 'border-box' === M(e, 'boxSizing') + return 'border-box' === D(e, 'boxSizing') } function v(e, t, n) { var o = {}, @@ -463,7 +402,7 @@ webpackJsonp( for (r in t) t.hasOwnProperty(r) && ((o[r] = i[r]), (i[r] = t[r])) for (r in (n.call(e), t)) t.hasOwnProperty(r) && (i[r] = o[r]) } - function x(e, t, n) { + function C(e, t, n) { var o = 0, r, a, @@ -473,11 +412,11 @@ webpackJsonp( for (l = 0; l < n.length; l++) { var i = void 0 ;(i = 'border' === r ? '' + r + n[l] + 'Width' : r + n[l]), - (o += parseFloat(M(e, i)) || 0) + (o += parseFloat(D(e, i)) || 0) } return o } - function C(e, t, n) { + function x(e, t, n) { var o = n if (p(e)) return 'width' === t ? F.viewportWidth(e) : F.viewportHeight(e) @@ -488,23 +427,23 @@ webpackJsonp( 'width' === t ? e.getBoundingClientRect().width : e.getBoundingClientRect().height, - a = M(e), + a = D(e), l = b(e, a), s = 0 ;(null === r || r === void 0 || 0 >= r) && ((r = void 0), - (s = M(e, t)), + (s = D(e, t)), (null === s || s === void 0 || 0 > +s) && (s = e.style[t] || 0), (s = parseFloat(s) || 0)), - o === void 0 && (o = l ? R : I) + o === void 0 && (o = l ? R : A) var d = r !== void 0 || l, u = r || s - if (o === I) return d ? u - x(e, ['border', 'padding'], i, a) : s + if (o === A) return d ? u - C(e, ['border', 'padding'], i, a) : s return d ? o === R ? u - : u + (o === A ? -x(e, ['border'], i, a) : x(e, ['margin'], i, a)) - : s + x(e, D.slice(o), i, a) + : u + (o === I ? -C(e, ['border'], i, a) : C(e, ['margin'], i, a)) + : s + C(e, _.slice(o), i, a) } function w() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) @@ -514,17 +453,17 @@ webpackJsonp( return ( 0 === o.offsetWidth ? v(o, H, function() { - i = C.apply(void 0, t) + i = x.apply(void 0, t) }) - : (i = C.apply(void 0, t)), + : (i = x.apply(void 0, t)), i ) } - function k(e, t) { + function T(e, t) { for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) return e } - var T = n(156), + var k = n(141), S = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -539,14 +478,14 @@ webpackJsonp( : typeof e }, E = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, - _ = new RegExp('^(' + E + ')(?!px)[a-z%]+$', 'i'), + O = new RegExp('^(' + E + ')(?!px)[a-z%]+$', 'i'), P = /^(top|right|bottom|left)$/, - O = 'currentStyle', - N = 'runtimeStyle', - L = 'left', - M + N = 'currentStyle', + L = 'runtimeStyle', + M = 'left', + D 'undefined' != typeof window && - (M = window.getComputedStyle + (D = window.getComputedStyle ? function(e, t, n) { var o = n, i = '', @@ -558,22 +497,22 @@ webpackJsonp( ) } : function(e, t) { - var n = e[O] && e[O][t] - if (_.test(n) && !P.test(t)) { + var n = e[N] && e[N][t] + if (O.test(n) && !P.test(t)) { var o = e.style, - i = o[L], - r = e[N][L] - ;(e[N][L] = e[O][L]), - (o[L] = 'fontSize' === t ? '1em' : n || 0), + i = o[M], + r = e[L][M] + ;(e[L][M] = e[N][M]), + (o[M] = 'fontSize' === t ? '1em' : n || 0), (n = o.pixelLeft + 'px'), - (o[L] = i), - (e[N][L] = r) + (o[M] = i), + (e[L][M] = r) } return '' === n ? 'auto' : n }) - var D = ['margin', 'border', 'padding'], - I = -1, - A = 2, + var _ = ['margin', 'border', 'padding'], + A = -1, + I = 2, R = 1, F = {} y(['Width', 'Height'], function(e) { @@ -605,13 +544,13 @@ webpackJsonp( var i = o if (i !== void 0) { if (t) { - var a = M(t), + var a = D(t), l = b(t) - return l && (i += x(t, ['padding', 'border'], n, a)), r(t, e, i) + return l && (i += C(t, ['padding', 'border'], n, a)), r(t, e, i) } return } - return t && w(t, e, I) + return t && w(t, e, A) } }) var V = { @@ -636,7 +575,7 @@ webpackJsonp( for (n in e) e.hasOwnProperty(n) && (t.overflow[n] = e.overflow[n]) return t }, - mix: k, + mix: T, getWindowScrollLeft: function(e) { return l(e) }, @@ -656,17 +595,10 @@ webpackJsonp( viewportWidth: 0, viewportHeight: 0, } - k(V, F), (t.a = V) - }, - function(e, t, n) { - 'use strict' - var o = n(77)() - e.exports = function(e) { - return e !== o && null !== e - } + T(V, F), (t.a = V) }, function(e, t, n) { - var o = n(19) + var o = n(15) e.exports = function(e) { if (!o(e)) throw TypeError(e + ' is not an object!') return e @@ -787,8 +719,8 @@ object-assign } }, function(e, t, n) { - var o = n(59), - i = n(42) + var o = n(49), + i = n(34) e.exports = Object.keys || function(e) { @@ -815,9 +747,9 @@ object-assign return e && e.__esModule ? e : { default: e } } t.__esModule = !0 - var i = n(116), + var i = n(101), r = o(i), - a = n(128), + a = n(113), l = o(a), s = 'function' == typeof l.default && 'symbol' == typeof r.default @@ -846,42 +778,12 @@ object-assign : 'undefined' == typeof e ? 'undefined' : s(e) } }, - function(e, t, n) { - 'use strict' - e.exports = n(79)() ? Object.setPrototypeOf : n(80) - }, - function(e) { - 'use strict' - var t = Object.prototype.toString, - n = t.call( - (function() { - return arguments - })(), - ) - e.exports = function(e) { - return t.call(e) === n - } - }, - function(e) { - 'use strict' - var t = Object.prototype.toString, - n = t.call('') - e.exports = function(e) { - return ( - 'string' == typeof e || - (e && - 'object' == typeof e && - (e instanceof String || t.call(e) === n)) || - !1 - ) - } - }, function(e) { 'use strict' !1, (e.exports = {}) }, function(e, t, n) { - var o = n(19) + var o = n(15) e.exports = function(e, t) { if (!o(e)) return e var n, i @@ -908,14 +810,14 @@ object-assign } }, function(e, t, n) { - var o = n(41)('keys'), - i = n(30) + var o = n(33)('keys'), + i = n(25) e.exports = function(e) { return o[e] || (o[e] = i(e)) } }, function(e, t, n) { - var o = n(6), + var o = n(4), i = '__core-js_shared__', r = o[i] || (o[i] = {}) e.exports = function(e) { @@ -943,21 +845,21 @@ object-assign e.exports = {} }, function(e, t, n) { - var o = n(24), - i = n(121), - r = n(42), - a = n(40)('IE_PROTO'), + var o = n(19), + i = n(106), + r = n(34), + a = n(32)('IE_PROTO'), l = function() {}, s = 'prototype', d = function() { - var e = n(58)('iframe'), + var e = n(48)('iframe'), t = r.length, o = '<', i = '>', a for ( e.style.display = 'none', - n(122).appendChild(e), + n(107).appendChild(e), e.src = 'javascript:', a = e.contentWindow.document, a.open(), @@ -985,9 +887,9 @@ object-assign } }, function(e, t, n) { - var o = n(12).f, - i = n(14), - r = n(21)('toStringTag') + var o = n(9).f, + i = n(11), + r = n(17)('toStringTag') e.exports = function(e, t, n) { e && !i((e = n ? e : e.prototype), r) && @@ -995,14 +897,14 @@ object-assign } }, function(e, t, n) { - t.f = n(21) + t.f = n(17) }, function(e, t, n) { - var o = n(6), - i = n(11), - r = n(44), - a = n(48), - l = n(12).f + var o = n(4), + i = n(8), + r = n(36), + a = n(40), + l = n(9).f e.exports = function(e) { var t = i.Symbol || (i.Symbol = r ? {} : o.Symbol || {}) '_' == e.charAt(0) || e in t || l(t, e, { value: a.f(e) }) @@ -1011,7 +913,7 @@ object-assign function(e, t, n) { 'use strict' t.__esModule = !0 - var o = n(70), + var o = n(60), r = (function(e) { return e && e.__esModule ? e : { default: e } })(o) @@ -1029,119 +931,6 @@ object-assign } })() }, - function(e, t, n) { - 'use strict' - e.exports = n(190)() ? Object.assign : n(191) - }, - function(e, t, n) { - 'use strict' - e.exports = n(196)() ? String.prototype.contains : n(197) - }, - function(e, t, n) { - 'use strict' - var o = n(76), - i = n(51), - r = n(5), - a = n(4), - l = n(15), - s = n(207), - d = n(10), - p = Object.defineProperty, - u = Object.defineProperties, - c - ;(e.exports = c = function(e, t) { - if (!(this instanceof c)) - throw new TypeError("Constructor requires 'new'") - u(this, { - __list__: l('w', a(e)), - __context__: l('w', t), - __nextIndex__: l('w', 0), - }) - t && - (r(t.on), - t.on('_add', this._onAdd), - t.on('_delete', this._onDelete), - t.on('_clear', this._onClear)) - }), - delete c.prototype.constructor, - u( - c.prototype, - i( - { - _next: l(function() { - var e - if (this.__list__) { - if ( - this.__redo__ && - ((e = this.__redo__.shift()), void 0 !== e) - ) - return e - if (this.__nextIndex__ < this.__list__.length) - return this.__nextIndex__++ - this._unBind() - } - }), - next: l(function() { - return this._createResult(this._next()) - }), - _createResult: l(function(e) { - return void 0 === e - ? { done: !0, value: void 0 } - : { done: !1, value: this._resolve(e) } - }), - _resolve: l(function(e) { - return this.__list__[e] - }), - _unBind: l(function() { - ;(this.__list__ = null), delete this.__redo__ - this.__context__ && - (this.__context__.off('_add', this._onAdd), - this.__context__.off('_delete', this._onDelete), - this.__context__.off('_clear', this._onClear), - (this.__context__ = null)) - }), - toString: l(function() { - return '[object ' + (this[d.toStringTag] || 'Object') + ']' - }), - }, - s({ - _onAdd: l(function(e) { - if (!(e >= this.__nextIndex__)) - return ( - ++this.__nextIndex__, - this.__redo__ - ? void (this.__redo__.forEach(function(t, n) { - t >= e && (this.__redo__[n] = ++t) - }, this), - this.__redo__.push(e)) - : void p(this, '__redo__', l('c', [e])) - ) - }), - _onDelete: l(function(e) { - var t - e >= this.__nextIndex__ || - (--this.__nextIndex__, - this.__redo__ && - ((t = this.__redo__.indexOf(e)), - -1 !== t && this.__redo__.splice(t, 1), - this.__redo__.forEach(function(t, n) { - t > e && (this.__redo__[n] = --t) - }, this))) - }), - _onClear: l(function() { - this.__redo__ && o.call(this.__redo__), (this.__nextIndex__ = 0) - }), - }), - ), - ), - p( - c.prototype, - d.iterator, - l(function() { - return this - }), - ) - }, function(e) { var t = Math.abs, o = Math.min, @@ -1238,28 +1027,28 @@ object-assign if (((r += a - i), (r += n - r % n), (i = a + 1), r >= t)) return i } } - function x(e) { - for (; Za.length <= e; ) Za.push(C(Za) + ' ') + function C(e) { + for (; Za.length <= e; ) Za.push(x(Za) + ' ') return Za[e] } - function C(e) { + function x(e) { return e[e.length - 1] } function w(e, t) { for (var n = [], o = 0; o < e.length; o++) n[o] = t(e[o], o) return n } - function k(e, t, n) { + function T(e, t, n) { for (var o = 0, i = n(t); o < e.length && n(e[o]) <= i; ) o++ e.splice(o, 0, t) } - function T() {} + function k() {} function S(e, t) { var n return ( Object.create ? (n = Object.create(e)) - : ((T.prototype = e), (n = new T())), + : ((k.prototype = e), (n = new k())), t && g(t, n), n ) @@ -1270,21 +1059,21 @@ object-assign ('\x80' < e && (e.toUpperCase() != e.toLowerCase() || Ja.test(e))) ) } - function _(e, t) { + function O(e, t) { return t ? (-1 < t.source.indexOf('\\w') && E(e)) || t.test(e) : E(e) } function P(e) { for (var t in e) if (e.hasOwnProperty(t) && e[t]) return !1 return !0 } - function O(e) { + function N(e) { return 768 <= e.charCodeAt(0) && el.test(e) } - function N(e, t, n) { - for (; (0 > n ? 0 < t : t < e.length) && O(e.charAt(t)); ) t += n + function L(e, t, n) { + for (; (0 > n ? 0 < t : t < e.length) && N(e.charAt(t)); ) t += n return t } - function L(e, t, o) { + function M(e, t, o) { for (var i = t > o ? -1 : 1; ; ) { if (t == o) return t var a = (t + o) / 2, @@ -1293,7 +1082,7 @@ object-assign e(l) ? (o = l) : (t = l + i) } } - function M(e, t, n) { + function D(e, t, n) { var o = this ;(this.input = n), (o.scrollbarFiller = p('div', null, 'CodeMirror-scrollbar-filler')), @@ -1349,7 +1138,7 @@ object-assign 8 > Ea && ((o.gutters.style.zIndex = -1), (o.scroller.style.paddingRight = 0)), - _a || (Ca && Ra) || (o.scroller.draggable = !0), + Oa || (xa && Ra) || (o.scroller.draggable = !0), e && (e.appendChild ? e.appendChild(o.wrapper) : e(o.wrapper)), (o.viewFrom = o.viewTo = t.first), (o.reportedViewFrom = o.reportedViewTo = t.first), @@ -1373,7 +1162,7 @@ object-assign (o.activeTouch = null), n.init(o) } - function D(e, t) { + function _(e, t) { if (((t -= e.first), 0 > t || t >= e.size)) throw new Error( 'There is no line ' + (t + e.first) + ' in the document.', @@ -1390,7 +1179,7 @@ object-assign } return n.lines[t] } - function I(e, t, o) { + function A(e, t, o) { var i = [], r = t.line return ( @@ -1404,7 +1193,7 @@ object-assign i ) } - function A(e, t, n) { + function I(e, t, n) { var o = [] return ( e.iter(t, n, function(e) { @@ -1488,8 +1277,8 @@ object-assign if (t.line < e.first) return z(e.first, 0) var n = e.first + e.size - 1 return t.line > n - ? z(n, D(e, n).text.length) - : $(t, D(e, t.line).text.length) + ? z(n, _(e, n).text.length) + : $(t, _(e, t.line).text.length) } function $(e, t) { var n = e.ch @@ -1571,8 +1360,8 @@ object-assign } function ae(e, t) { if (t.full) return null - var n = V(e, t.from.line) && D(e, t.from.line).markedSpans, - o = V(e, t.to.line) && D(e, t.to.line).markedSpans + var n = V(e, t.from.line) && _(e, t.from.line).markedSpans, + o = V(e, t.to.line) && _(e, t.to.line).markedSpans if (!n && !o) return null var r = t.from.ch, a = t.to.ch, @@ -1580,7 +1369,7 @@ object-assign s = oe(n, r, l), d = re(o, a, l), p = 1 == t.text.length, - u = C(t.text).length + (p ? r : 0) + u = x(t.text).length + (p ? r : 0) if (s) for (var c = 0, i; c < s.length; ++c) if (((i = s[c]), null == i.to)) { @@ -1599,9 +1388,9 @@ object-assign var b = t.text.length - 2, v if (0 < b && s) - for (var x = 0; x < s.length; ++x) - null == s[x].to && - (v || (v = [])).push(new J(s[x].marker, null, null)) + for (var C = 0; C < s.length; ++C) + null == s[C].to && + (v || (v = [])).push(new J(s[C].marker, null, null)) for (var w = 0; w < b; ++w) y.push(v) y.push(d) } @@ -1693,7 +1482,7 @@ object-assign return he(e, !1) } function ye(e, t, n, o, r) { - var a = D(e, t), + var a = _(e, t), l = nl && a.markedSpans if (l) for (var s = 0, i; s < l.length; ++s) @@ -1723,25 +1512,25 @@ object-assign for (var t; (t = ge(e)); ) e = t.find(1, !0).line return e } - function xe(e) { + function Ce(e) { for (var t, n; (t = ge(e)); ) (e = t.find(1, !0).line), (n || (n = [])).push(e) return n } - function Ce(e, t) { - var n = D(e, t), + function xe(e, t) { + var n = _(e, t), o = be(n) return n == o ? t : F(o) } function we(e, t) { if (t > e.lastLine()) return t - var n = D(e, t), + var n = _(e, t), o - if (!ke(e, n)) return t + if (!Te(e, n)) return t for (; (o = ge(n)); ) n = o.find(1, !0).line return F(n) + 1 } - function ke(e, t) { + function Te(e, t) { var n = nl && t.markedSpans if (n) for (var o = void 0, r = 0; r < n.length; ++r) @@ -1751,15 +1540,15 @@ object-assign !o.marker.widgetNode && 0 == o.from && o.marker.inclusiveLeft && - Te(e, t, o) + ke(e, t, o) ) return !0 } } - function Te(e, t, n) { + function ke(e, t, n) { if (null == n.to) { var o = n.marker.find(1, !0) - return Te(e, o.line, ee(o.line.markedSpans, n.marker)) + return ke(e, o.line, ee(o.line.markedSpans, n.marker)) } if (n.marker.inclusiveRight && n.to == t.text.length) return !0 for (var r = void 0, a = 0; a < t.markedSpans.length; ++a) @@ -1770,7 +1559,7 @@ object-assign r.from == n.to && (null == r.to || r.to != n.from) && (r.marker.inclusiveLeft || n.marker.inclusiveRight) && - Te(e, t, r)) + ke(e, t, r)) ) return !0 } @@ -1803,10 +1592,10 @@ object-assign } return t } - function _e(e) { + function Oe(e) { var t = e.display, n = e.doc - ;(t.maxLine = D(n, n.first)), + ;(t.maxLine = _(n, n.first)), (t.maxLineLength = Ee(t.maxLine)), (t.maxLineChanged = !0), n.iter(function(e) { @@ -1823,7 +1612,7 @@ object-assign (l = !0)) l || r(t, n, 'ltr') } - function Oe(e, t, n) { + function Ne(e, t, n) { var o ol = null for (var r = 0, i; r < e.length; ++r) { @@ -1834,14 +1623,14 @@ object-assign } return null == o ? ol : o } - function Ne(e, t) { + function Le(e, t) { var n = e.order return null == n && (n = e.order = il(e.text, t)), n } - function Le(e, t) { + function Me(e, t) { return (e._handlers && e._handlers[t]) || rl } - function Me(e, t, n) { + function De(e, t, n) { if (e.removeEventListener) e.removeEventListener(t, n, !1) else if (e.detachEvent) e.detachEvent('on' + t, n) else { @@ -1853,8 +1642,8 @@ object-assign } } } - function De(e, t) { - var n = Le(e, t) + function _e(e, t) { + var n = Me(e, t) if (n.length) for ( var o = Array.prototype.slice.call(arguments, 2), r = 0; @@ -1863,7 +1652,7 @@ object-assign ) n[r].apply(null, o) } - function Ie(t, n, o) { + function Ae(t, n, o) { return ( 'string' == typeof n && (n = { @@ -1872,11 +1661,11 @@ object-assign this.defaultPrevented = !0 }, }), - De(t, o || n.type, t, n), + _e(t, o || n.type, t, n), We(n) || n.codemirrorIgnore ) } - function Ae(e) { + function Ie(e) { var t = e._handlers && e._handlers.cursorActivity if (t) for ( @@ -1890,14 +1679,14 @@ object-assign -1 == b(n, t[o]) && n.push(t[o]) } function Re(e, t) { - return 0 < Le(e, t).length + return 0 < Me(e, t).length } function Fe(e) { ;(e.prototype.on = function(e, t) { al(this, e, t) }), (e.prototype.off = function(e, t) { - Me(this, e, t) + De(this, e, t) }) } function He(t) { @@ -2106,7 +1895,7 @@ object-assign i = e.display if (!o.mode.startState) return new bl(o, !0, t) var r = st(e, t, n), - a = r > o.first && D(o, r - 1).stateAfter, + a = r > o.first && _(o, r - 1).stateAfter, l = a ? bl.fromSaved(o, a, r) : new bl(o, Je(o.mode), r) return ( o.iter(r, t, function(n) { @@ -2148,7 +1937,7 @@ object-assign r = i.mode, a t = q(i, t) - var l = D(i, t.line), + var l = _(i, t.line), s = nt(e, t.line, n), d = new hl(l.text, e.options.tabSize, s), p @@ -2215,7 +2004,7 @@ object-assign --r ) { if (r <= o.first) return o.first - var s = D(o, r - 1), + var s = _(o, r - 1), d = s.stateAfter if ( d && @@ -2234,7 +2023,7 @@ object-assign ) { for (var n = e.first, i = t - 1, r; i > n; i--) if ( - ((r = D(e, i).stateAfter), + ((r = _(e, i).stateAfter), r && (!(r instanceof yl) || i + r.lookAhead < t)) ) { n = i + 1 @@ -2258,11 +2047,11 @@ object-assign } function ft(e, t) { if (!e || /^\s*$/.test(e)) return null - var n = t.addModeClass ? wl : Cl + var n = t.addModeClass ? wl : xl return n[e] || (n[e] = e.replace(/\S+/g, 'cm-$&')) } function ht(e, t) { - var n = u('span', null, null, _a ? 'padding-right: .1px' : null), + var n = u('span', null, null, Oa ? 'padding-right: .1px' : null), o = { pre: u('pre', [n], 'CodeMirror-line'), content: n, @@ -2270,7 +2059,7 @@ object-assign pos: 0, cm: e, trailingSpace: !1, - splitSpaces: (Sa || _a) && e.getOption('lineWrapping'), + splitSpaces: (Sa || Oa) && e.getOption('lineWrapping'), } t.measure = {} for (var r = 0; r <= (t.rest ? t.rest.length : 0); r++) { @@ -2279,11 +2068,11 @@ object-assign ;(o.pos = 0), (o.addToken = gt), Ke(e.display.measure) && - (a = Ne(i, e.doc.direction)) && + (a = Le(i, e.doc.direction)) && (o.addToken = bt(o.addToken, a)), (o.map = []) var l = t != e.display.externalMeasured && F(i) - xt(i, o, tt(e, i, l)), + Ct(i, o, tt(e, i, l)), i.styleClasses && (i.styleClasses.bgClass && (o.bgClass = h(i.styleClasses.bgClass, o.bgClass || '')), @@ -2299,14 +2088,14 @@ object-assign : ((t.measure.maps || (t.measure.maps = [])).push(o.map), (t.measure.caches || (t.measure.caches = [])).push({})) } - if (_a) { + if (Oa) { var s = o.content.lastChild ;(/\bcm-tab\b/.test(s.className) || (s.querySelector && s.querySelector('.cm-tab'))) && (o.content.className = 'cm-tab-wrap-hack') } return ( - De(e, 'renderLine', e, t.line, o.pre), + _e(e, 'renderLine', e, t.line, o.pre), o.pre.className && (o.textClass = h(o.pre.className, o.textClass || '')), o @@ -2353,7 +2142,7 @@ object-assign if ('\t' == f[0]) { var b = e.cm.options.tabSize, v = b - e.col % b - ;(y = u.appendChild(p('span', x(v), 'cm-tab'))), + ;(y = u.appendChild(p('span', C(v), 'cm-tab'))), y.setAttribute('role', 'presentation'), y.setAttribute('cm-text', '\t'), (e.col += v) @@ -2381,9 +2170,9 @@ object-assign ((e.trailingSpace = 32 == l.charCodeAt(t.length - 1)), n || o || i || d || a) ) { - var C = n || '' - o && (C += o), i && (C += i) - var w = p('span', [u], C, a) + var x = n || '' + o && (x += o), i && (x += i) + var w = p('span', [u], x, a) return r && (w.title = r), e.content.appendChild(w) } e.content.appendChild(u) @@ -2431,7 +2220,7 @@ object-assign (e.pos += t), (e.trailingSpace = !1) } - function xt(e, t, n) { + function Ct(e, t, n) { var r = e.markedSpans, a = e.text, l = 0 @@ -2441,72 +2230,72 @@ object-assign return } for ( - var d = a.length, p = 0, u = 1, i = '', c = 0, f, h, g, y, b, v, x; + var d = a.length, p = 0, u = 1, i = '', c = 0, f, h, g, y, b, v, C; ; ) { if (c == p) { - ;(g = y = b = v = h = ''), (x = null), (c = Infinity) - for (var C = [], w = void 0, k = 0; k < r.length; ++k) { - var T = r[k], - S = T.marker - 'bookmark' == S.type && T.from == p && S.widgetNode - ? C.push(S) - : T.from <= p && - (null == T.to || - T.to > p || - (S.collapsed && T.to == p && T.from == p)) - ? (null != T.to && - T.to != p && - c > T.to && - ((c = T.to), (y = '')), + ;(g = y = b = v = h = ''), (C = null), (c = Infinity) + for (var x = [], w = void 0, T = 0; T < r.length; ++T) { + var k = r[T], + S = k.marker + 'bookmark' == S.type && k.from == p && S.widgetNode + ? x.push(S) + : k.from <= p && + (null == k.to || + k.to > p || + (S.collapsed && k.to == p && k.from == p)) + ? (null != k.to && + k.to != p && + c > k.to && + ((c = k.to), (y = '')), S.className && (g += ' ' + S.className), S.css && (h = (h ? h + ';' : '') + S.css), - S.startStyle && T.from == p && (b += ' ' + S.startStyle), + S.startStyle && k.from == p && (b += ' ' + S.startStyle), S.endStyle && - T.to == c && - (w || (w = [])).push(S.endStyle, T.to), + k.to == c && + (w || (w = [])).push(S.endStyle, k.to), S.title && !v && (v = S.title), - S.collapsed && (!x || 0 > fe(x.marker, S)) && (x = T)) - : T.from > p && c > T.from && (c = T.from) + S.collapsed && (!C || 0 > fe(C.marker, S)) && (C = k)) + : k.from > p && c > k.from && (c = k.from) } if (w) for (var m = 0; m < w.length; m += 2) w[m + 1] == c && (y += ' ' + w[m]) - if (!x || x.from == p) - for (var E = 0; E < C.length; ++E) vt(t, 0, C[E]) - if (x && (x.from || 0) == p) { + if (!C || C.from == p) + for (var E = 0; E < x.length; ++E) vt(t, 0, x[E]) + if (C && (C.from || 0) == p) { if ( (vt( t, - (null == x.to ? d + 1 : x.to) - p, - x.marker, - null == x.from, + (null == C.to ? d + 1 : C.to) - p, + C.marker, + null == C.from, ), - null == x.to) + null == C.to) ) return - x.to == p && (x = !1) + C.to == p && (C = !1) } } if (p >= d) break - for (var _ = o(d, c); ; ) { + for (var O = o(d, c); ; ) { if (i) { var P = p + i.length - if (!x) { - var O = P > _ ? i.slice(0, _ - p) : i + if (!C) { + var N = P > O ? i.slice(0, O - p) : i t.addToken( t, - O, + N, f ? f + g : g, b, - p + O.length == c ? y : '', + p + N.length == c ? y : '', v, h, ) } - if (P >= _) { - ;(i = i.slice(_ - p)), (p = _) + if (P >= O) { + ;(i = i.slice(O - p)), (p = O) break } ;(p = P), (b = '') @@ -2515,24 +2304,24 @@ object-assign } } } - function Ct(e, t, n) { + function xt(e, t, n) { ;(this.line = t), - (this.rest = xe(t)), - (this.size = this.rest ? F(C(this.rest)) - n + 1 : 1), + (this.rest = Ce(t)), + (this.size = this.rest ? F(x(this.rest)) - n + 1 : 1), (this.node = this.text = null), - (this.hidden = ke(e, t)) + (this.hidden = Te(e, t)) } function wt(e, t, n) { for (var o = [], i = t, r, a; i < n; i = r) - (a = new Ct(e.doc, D(e.doc, i), i)), (r = i + a.size), o.push(a) + (a = new xt(e.doc, _(e.doc, i), i)), (r = i + a.size), o.push(a) return o } - function kt(e) { - kl - ? kl.ops.push(e) - : (e.ownsGroup = kl = { ops: [e], delayedCallbacks: [] }) - } function Tt(e) { + Tl + ? Tl.ops.push(e) + : (e.ownsGroup = Tl = { ops: [e], delayedCallbacks: [] }) + } + function kt(e) { var t = e.delayedCallbacks, n = 0 do { @@ -2554,19 +2343,19 @@ object-assign var n = e.ownsGroup if (n) try { - Tt(n) + kt(n) } finally { - ;(kl = null), t(n) + ;(Tl = null), t(n) } } function Et(e, t) { - var n = Le(e, t) + var n = Me(e, t) if (n.length) { var o = Array.prototype.slice.call(arguments, 2), r - kl - ? (r = kl.delayedCallbacks) - : Tl ? (r = Tl) : ((r = Tl = []), setTimeout(_t, 0)) + Tl + ? (r = Tl.delayedCallbacks) + : kl ? (r = kl) : ((r = kl = []), setTimeout(Ot, 0)) for ( var a = function(e) { r.push(function() { @@ -2580,22 +2369,22 @@ object-assign a(l) } } - function _t() { - var e = Tl - Tl = null + function Ot() { + var e = kl + kl = null for (var t = 0; t < e.length; ++t) e[t]() } function Pt(e, t, n, o) { for (var i = 0, r; i < t.changes.length; i++) (r = t.changes[i]), 'text' == r - ? Mt(e, t) + ? Dt(e, t) : 'gutter' == r - ? It(e, t, n, o) - : 'class' == r ? Dt(e, t) : 'widget' == r && At(e, t, o) + ? At(e, t, n, o) + : 'class' == r ? _t(e, t) : 'widget' == r && It(e, t, o) t.changes = null } - function Ot(e) { + function Nt(e) { return ( e.node == e.text && ((e.node = p('div', null, null, 'position: relative')), @@ -2606,7 +2395,7 @@ object-assign e.node ) } - function Nt(e, t) { + function Lt(e, t) { var n = t.bgClass ? t.bgClass + ' ' + (t.line.bgClass || '') : t.line.bgClass @@ -2616,12 +2405,12 @@ object-assign : (t.background.parentNode.removeChild(t.background), (t.background = null)) else if (n) { - var o = Ot(t) + var o = Nt(t) ;(t.background = o.insertBefore(p('div', null, n), o.firstChild)), e.display.input.setUneditable(t.background) } } - function Lt(e, t) { + function Mt(e, t) { var n = e.display.externalMeasured return n && n.line == t.line ? ((e.display.externalMeasured = null), @@ -2629,27 +2418,27 @@ object-assign n.built) : ht(e, t) } - function Mt(e, t) { + function Dt(e, t) { var n = t.text.className, - o = Lt(e, t) + o = Mt(e, t) t.text == t.node && (t.node = o.pre), t.text.parentNode.replaceChild(o.pre, t.text), (t.text = o.pre), o.bgClass != t.bgClass || o.textClass != t.textClass - ? ((t.bgClass = o.bgClass), (t.textClass = o.textClass), Dt(e, t)) + ? ((t.bgClass = o.bgClass), (t.textClass = o.textClass), _t(e, t)) : n && (t.text.className = n) } - function Dt(e, t) { - Nt(e, t), + function _t(e, t) { + Lt(e, t), t.line.wrapClass - ? (Ot(t).className = t.line.wrapClass) + ? (Nt(t).className = t.line.wrapClass) : t.node != t.text && (t.node.className = '') var n = t.textClass ? t.textClass + ' ' + (t.line.textClass || '') : t.line.textClass t.text.className = n || '' } - function It(e, t, n, o) { + function At(e, t, n, o) { if ( (t.gutter && (t.node.removeChild(t.gutter), (t.gutter = null)), t.gutterBackground && @@ -2657,7 +2446,7 @@ object-assign (t.gutterBackground = null)), t.line.gutterClass) ) { - var i = Ot(t) + var i = Nt(t) ;(t.gutterBackground = p( 'div', null, @@ -2673,7 +2462,7 @@ object-assign } var r = t.line.gutterMarkers if (e.options.lineNumbers || r) { - var a = Ot(t), + var a = Nt(t), l = (t.gutter = p( 'div', null, @@ -2721,7 +2510,7 @@ object-assign } } } - function At(e, t, n) { + function It(e, t, n) { t.alignable && (t.alignable = null) for (var o = t.node.firstChild, i = void 0; o; o = i) (i = o.nextSibling), @@ -2729,13 +2518,13 @@ object-assign Ft(e, t, n) } function Rt(e, t, n, o) { - var i = Lt(e, t) + var i = Mt(e, t) return ( (t.text = t.node = i.pre), i.bgClass && (t.bgClass = i.bgClass), i.textClass && (t.textClass = i.textClass), - Dt(e, t), - It(e, t, n, o), + _t(e, t), + At(e, t, n, o), Ft(e, t, o), t.node ) @@ -2746,7 +2535,7 @@ object-assign } function Ht(e, t, n, o, r) { if (t.widgets) - for (var a = Ot(n), l = 0, i = t.widgets; l < i.length; ++l) { + for (var a = Nt(n), l = 0, i = t.widgets; l < i.length; ++l) { var s = i[l], d = p('div', [s.node], 'CodeMirror-linewidget') s.handleMouseEvents || d.setAttribute('cm-ignore-events', 'true'), @@ -2861,7 +2650,7 @@ object-assign function Xt(e, t) { t = be(t) var n = F(t), - o = (e.display.externalMeasured = new Ct(e.doc, t, n)) + o = (e.display.externalMeasured = new xt(e.doc, t, n)) o.lineN = n var i = (o.built = ht(e, o)) return (o.text = i.pre), s(e.display.lineMeasure, i.pre), o @@ -2871,7 +2660,7 @@ object-assign } function Zt(e, t) { if (t >= e.display.viewFrom && t < e.display.viewTo) - return e.display.view[Dn(e, t)] + return e.display.view[_n(e, t)] var n = e.display.externalMeasured if (n && t >= n.lineN && t < n.lineN + n.size) return n } @@ -2975,11 +2764,11 @@ object-assign p if (3 == a.nodeType) { for (var u = 0; 4 > u; u++) { - for (; l && O(t.line.text.charAt(r.coverStart + l)); ) --l + for (; l && N(t.line.text.charAt(r.coverStart + l)); ) --l for ( ; r.coverStart + s < r.coverEnd && - O(t.line.text.charAt(r.coverStart + s)); + N(t.line.text.charAt(r.coverStart + s)); ) ++s @@ -3007,7 +2796,7 @@ object-assign p = f ? { left: f.left, - right: f.left + _n(e.display), + right: f.left + On(e.display), top: f.top, bottom: f.bottom, } @@ -3071,7 +2860,7 @@ object-assign (e.display.lineNumChars = null) } function pn() { - return Oa && Aa + return Na && Ia ? -( document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft) @@ -3080,7 +2869,7 @@ object-assign (document.documentElement || document.body).scrollLeft } function un() { - return Oa && Aa + return Na && Ia ? -( document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop) @@ -3127,7 +2916,7 @@ object-assign return { left: o - a.left, top: i - a.top } } function mn(e, t, n, o, i) { - return o || (o = D(e.doc, t.line)), fn(e, o, Qt(e, o, t.ch, i), n) + return o || (o = _(e.doc, t.line)), fn(e, o, Qt(e, o, t.ch, i), n) } function gn(e, t, n, o, i, r) { function a(t, a) { @@ -3139,8 +2928,8 @@ object-assign i = 1 == o.level return a(n ? e - 1 : e, i != n) } - ;(o = o || D(e.doc, t.line)), i || (i = Jt(e, o)) - var s = Ne(o, e.doc.direction), + ;(o = o || _(e.doc, t.line)), i || (i = Jt(e, o)) + var s = Le(o, e.doc.direction), d = t.ch, p = t.sticky if ( @@ -3150,7 +2939,7 @@ object-assign !s) ) return a('before' == p ? d - 1 : d, 'before' == p) - var u = Oe(s, d, p), + var u = Ne(s, d, p), c = ol, f = l(d, u, 'before' == p) return null != c && (f.other = l(d, c, 'before' != p)), f @@ -3158,8 +2947,8 @@ object-assign function yn(e, t) { var n = 0 ;(t = q(e.doc, t)), - e.options.lineWrapping || (n = _n(e.display) * t.ch) - var o = D(e.doc, t.line), + e.options.lineWrapping || (n = On(e.display) * t.ch) + var o = _(e.doc, t.line), i = Se(o) + Ut(e.display) return { left: n, right: n, top: i, bottom: i + o.height } } @@ -3174,10 +2963,10 @@ object-assign var i = H(o, n), r = o.first + o.size - 1 if (i > r) - return bn(o.first + o.size - 1, D(o, r).text.length, null, !0, 1) + return bn(o.first + o.size - 1, _(o, r).text.length, null, !0, 1) 0 > t && (t = 0) - for (var a = D(o, i); ; ) { - var l = kn(e, a, i, t, n), + for (var a = _(o, i); ; ) { + var l = Tn(e, a, i, t, n), s = ge(a), d = s && s.find(0, !0) if (s && (l.ch > d.from.ch || (l.ch == d.from.ch && 0 < l.xRel))) @@ -3185,10 +2974,10 @@ object-assign else return l } } - function xn(e, t, n, o) { + function Cn(e, t, n, o) { o -= cn(t) var i = t.text.length, - r = L( + r = M( function(t) { return en(e, n, t - 1).bottom <= o }, @@ -3196,7 +2985,7 @@ object-assign 0, ) return ( - (i = L( + (i = M( function(t) { return en(e, n, t).top > o }, @@ -3206,33 +2995,33 @@ object-assign { begin: r, end: i } ) } - function Cn(e, t, n, o) { + function xn(e, t, n, o) { n || (n = Jt(e, t)) var i = fn(e, t, en(e, n, o), 'line').top - return xn(e, t, n, i) + return Cn(e, t, n, i) } function wn(e, t, n, o) { return ( !(e.bottom <= n) && (!!(e.top > n) || (o ? e.left : e.right) > t) ) } - function kn(e, t, n, o, i) { + function Tn(e, t, n, o, i) { i -= Se(t) var r = Jt(e, t), a = cn(t), l = 0, s = t.text.length, d = !0, - p = Ne(t, e.doc.direction) + p = Le(t, e.doc.direction) if (p) { - var u = (e.options.lineWrapping ? Sn : Tn)(e, t, n, r, p, o, i) + var u = (e.options.lineWrapping ? Sn : kn)(e, t, n, r, p, o, i) ;(d = 1 != u.level), (l = d ? u.from : u.to - 1), (s = d ? u.to : u.from - 1) } var c = null, f = null, - h = L( + h = M( function(t) { var n = en(e, r, t) return ( @@ -3262,13 +3051,13 @@ object-assign : en(e, r, h - (d ? 1 : 0)).bottom + a <= i == d ? 'after' : 'before') - var x = gn(e, z(n, h, y), 'line', t, r) - ;(g = x.left), (m = i < x.top || i >= x.bottom) + var C = gn(e, z(n, h, y), 'line', t, r) + ;(g = C.left), (m = i < C.top || i >= C.bottom) } - return (h = N(t.text, h, 1)), bn(n, h, y, m, o - g) + return (h = L(t.text, h, 1)), bn(n, h, y, m, o - g) } - function Tn(e, t, n, o, r, a, l) { - var i = L( + function kn(e, t, n, o, r, a, l) { + var i = M( function(s) { var i = r[s], d = 1 != i.level @@ -3303,7 +3092,7 @@ object-assign return s } function Sn(e, t, n, r, l, s, d) { - var u = xn(e, t, r, d), + var u = Cn(e, t, r, d), c = u.begin, f = u.end ;/\s/.test(t.text.charAt(f - 1)) && f-- @@ -3323,18 +3112,18 @@ object-assign } function En(e) { if (null != e.cachedTextHeight) return e.cachedTextHeight - if (null == _l) { - _l = p('pre') + if (null == Ol) { + Ol = p('pre') for (var t = 0; 49 > t; ++t) - _l.appendChild(document.createTextNode('x')), - _l.appendChild(p('br')) - _l.appendChild(document.createTextNode('x')) + Ol.appendChild(document.createTextNode('x')), + Ol.appendChild(p('br')) + Ol.appendChild(document.createTextNode('x')) } - s(e.measure, _l) - var n = _l.offsetHeight / 50 + s(e.measure, Ol) + var n = Ol.offsetHeight / 50 return 3 < n && (e.cachedTextHeight = n), l(e.measure), n || 1 } - function _n(e) { + function On(e) { if (null != e.cachedCharWidth) return e.cachedCharWidth var t = p('span', 'xxxxxxxxxx'), n = p('pre', [t]) @@ -3357,25 +3146,25 @@ object-assign (o[e.options.gutters[n]] = l.offsetLeft + l.clientLeft + a), (r[e.options.gutters[n]] = l.clientWidth) return { - fixedPos: On(t), + fixedPos: Nn(t), gutterTotalWidth: t.gutters.offsetWidth, gutterLeft: o, gutterWidth: r, wrapperWidth: t.wrapper.clientWidth, } } - function On(e) { + function Nn(e) { return ( e.scroller.getBoundingClientRect().left - e.sizer.getBoundingClientRect().left ) } - function Nn(e) { + function Ln(e) { var t = En(e.display), n = e.options.lineWrapping, - o = n && a(5, e.display.scroller.clientWidth / _n(e.display) - 3) + o = n && a(5, e.display.scroller.clientWidth / On(e.display) - 3) return function(a) { - if (ke(e.doc, a)) return 0 + if (Te(e.doc, a)) return 0 var l = 0 if (a.widgets) for (var s = 0; s < a.widgets.length; s++) @@ -3383,15 +3172,15 @@ object-assign return n ? l + (r(a.text.length / o) || 1) * t : l + t } } - function Ln(e) { + function Mn(e) { var t = e.doc, - n = Nn(e) + n = Ln(e) t.iter(function(e) { var t = n(e) t != e.height && R(e, t) }) } - function Mn(t, n, e, o) { + function Dn(t, n, e, o) { var i = t.display if (!e && 'true' == Ue(n).getAttribute('cm-not-content')) return null var r = i.lineSpace.getBoundingClientRect(), @@ -3404,25 +3193,25 @@ object-assign } var d = vn(t, l, s), p - if (o && 1 == d.xRel && (p = D(t.doc, d.line).text).length == d.ch) { + if (o && 1 == d.xRel && (p = _(t.doc, d.line).text).length == d.ch) { var u = y(p, p.length, t.options.tabSize) - p.length d = z( d.line, - a(0, ba((l - jt(t.display).left) / _n(t.display)) - u), + a(0, ba((l - jt(t.display).left) / On(t.display)) - u), ) } return d } - function Dn(e, t) { + function _n(e, t) { if (t >= e.display.viewTo) return null if (((t -= e.display.viewFrom), 0 > t)) return null for (var n = e.display.view, o = 0; o < n.length; o++) if (((t -= n[o].size), 0 > t)) return o } - function In(e) { + function An(e) { e.display.input.showSelection(e.display.input.prepareSelection()) } - function An(e, t) { + function In(e, t) { void 0 === t && (t = !0) for ( var n = e.doc, @@ -3504,7 +3293,7 @@ object-assign return mn(e, z(t, n), 'div', s, o) } function i(t, n, o) { - var i = Cn(e, s, null, t), + var i = xn(e, s, null, t), r = ('ltr' == n) == ('after' == o) ? 'left' : 'right', l = 'after' == o @@ -3512,9 +3301,9 @@ object-assign : i.end - (/\s/.test(s.text.charAt(i.end - 1)) ? 2 : 1) return a(l, r)[r] } - var s = D(l, t), + var s = _(l, t), d = s.text.length, - p = Ne(s, l.direction), + p = Le(s, l.direction), h, m return ( @@ -3523,29 +3312,29 @@ object-assign y = a(e, g ? 'left' : 'right'), b = a(t - 1, g ? 'right' : 'left'), v = null == n && 0 == e, - x = null == r && t == d, - C = 0 == s, + C = null == r && t == d, + x = 0 == s, w = !p || s == p.length - 1 if (3 >= b.top - y.top) { - var k = (f ? v : x) && C, - T = (f ? x : v) && w, - S = k ? u : (g ? y : b).left, - E = T ? c : (g ? b : y).right + var T = (f ? v : C) && x, + k = (f ? C : v) && w, + S = T ? u : (g ? y : b).left, + E = k ? c : (g ? b : y).right o(S, y.top, E - S, y.bottom) } else { - var _, P, O, N + var O, P, N, L g - ? ((_ = f && v && C ? u : y.left), + ? ((O = f && v && x ? u : y.left), (P = f ? c : i(e, l, 'before')), - (O = f ? u : i(t, l, 'after')), - (N = f && x && w ? c : b.right)) - : ((_ = f ? i(e, l, 'before') : u), - (P = !f && v && C ? c : y.right), - (O = !f && x && w ? u : b.left), - (N = f ? i(t, l, 'after') : c)), - o(_, y.top, P - _, y.bottom), + (N = f ? u : i(t, l, 'after')), + (L = f && C && w ? c : b.right)) + : ((O = f ? i(e, l, 'before') : u), + (P = !f && v && x ? c : y.right), + (N = !f && C && w ? u : b.left), + (L = f ? i(t, l, 'after') : c)), + o(O, y.top, P - O, y.bottom), y.bottom < b.top && o(u, y.bottom, null, b.top), - o(O, b.top, N - O, b.bottom) + o(N, b.top, L - N, b.bottom) } ;(!h || 0 > Fn(y, h)) && (h = y), 0 > Fn(b, h) && (h = b), @@ -3566,17 +3355,17 @@ object-assign m = t.to() if (h.line == m.line) i(h.line, h.ch, m.ch) else { - var g = D(l, h.line), - y = D(l, m.line), + var g = _(l, h.line), + y = _(l, m.line), b = be(g) == be(y), v = i(h.line, h.ch, b ? g.text.length + 1 : null).end, - x = i(m.line, b ? 0 : null, m.ch).start + C = i(m.line, b ? 0 : null, m.ch).start b && - (v.top < x.top - 2 + (v.top < C.top - 2 ? (o(v.right, v.top, null, v.bottom), - o(u, x.top, x.left, x.bottom)) - : o(v.right, v.top, x.left - v.right, v.bottom)), - v.bottom < x.top && o(u, v.bottom, null, x.top) + o(u, C.top, C.left, C.bottom)) + : o(v.right, v.top, C.left - v.right, v.bottom)), + v.bottom < C.top && o(u, v.bottom, null, C.top) } n.appendChild(s) } @@ -3610,13 +3399,13 @@ object-assign t.state.delayingBlurEvent && (t.state.delayingBlurEvent = !1), 'nocursor' == t.options.readOnly || (!t.state.focused && - (De(t, 'focus', t, n), + (_e(t, 'focus', t, n), (t.state.focused = !0), f(t.display.wrapper, 'CodeMirror-focused'), !t.curOp && t.display.selForContextMenu != t.doc.sel && (t.display.input.reset(), - _a && + Oa && setTimeout(function() { return t.display.input.reset(!0) }, 20)), @@ -3626,7 +3415,7 @@ object-assign function Bn(t, n) { t.state.delayingBlurEvent || (t.state.focused && - (De(t, 'blur', t, n), + (_e(t, 'blur', t, n), (t.state.focused = !1), Ba(t.display.wrapper, 'CodeMirror-focused')), clearInterval(t.display.blinker), @@ -3677,9 +3466,9 @@ object-assign var p = i.ensure.from.line, u = i.ensure.to.line p < s - ? ((s = p), (d = H(t, Se(D(t, p)) + e.wrapper.clientHeight))) + ? ((s = p), (d = H(t, Se(_(t, p)) + e.wrapper.clientHeight))) : o(u, t.lastLine()) >= d && - ((s = H(t, Se(D(t, u)) - e.wrapper.clientHeight)), (d = u)) + ((s = H(t, Se(_(t, u)) - e.wrapper.clientHeight)), (d = u)) } return { from: s, to: a(d, s + 1) } } @@ -3691,7 +3480,7 @@ object-assign (t.gutters.firstChild && e.options.fixedGutter) ) { for ( - var o = On(t) - t.scroller.scrollLeft + e.doc.scrollLeft, + var o = Nn(t) - t.scroller.scrollLeft + e.doc.scrollLeft, r = t.gutters.offsetWidth, a = o + 'px', l = 0; @@ -3737,7 +3526,7 @@ object-assign return !1 } function $n(e, t) { - if (!Ie(e, 'scrollCursorIntoView')) { + if (!Ae(e, 'scrollCursorIntoView')) { var n = e.display, o = n.sizer.getBoundingClientRect(), i = null @@ -3747,7 +3536,7 @@ object-assign : t.bottom + o.top > (window.innerHeight || document.documentElement.clientHeight) && (i = !1), - null != i && !Da) + null != i && !_a) ) { var r = p( 'div', @@ -3888,7 +3677,7 @@ object-assign } function ro(e, n) { 2 > t(e.doc.scrollTop - n) || - (!Ca && Ho(e, { top: n }), ao(e, n, !0), Ca && Ho(e), Lo(e, 100)) + (!xa && Ho(e, { top: n }), ao(e, n, !0), xa && Ho(e), Mo(e, 100)) } function ao(e, t, n) { ;(t = o( @@ -3970,7 +3759,7 @@ object-assign (e.display.scrollbars.clear(), e.display.scrollbars.addClass && Ba(e.display.wrapper, e.display.scrollbars.addClass)), - (e.display.scrollbars = new Ol[e.options.scrollbarStyle]( + (e.display.scrollbars = new Nl[e.options.scrollbarStyle]( function(t) { e.display.wrapper.insertBefore(t, e.display.scrollbarFiller), al(t, 'mousedown', function() { @@ -4006,9 +3795,9 @@ object-assign scrollTop: null, scrollToPos: null, focus: !1, - id: ++Nl, + id: ++Ll, }), - kt(e.curOp) + Tt(e.curOp) } function ho(e) { var t = e.curOp @@ -4022,13 +3811,13 @@ object-assign for (var o = 0; o < t.length; o++) yo(t[o]) for (var i = 0; i < t.length; i++) bo(t[i]) for (var r = 0; r < t.length; r++) vo(t[r]) - for (var a = 0; a < t.length; a++) xo(t[a]) + for (var a = 0; a < t.length; a++) Co(t[a]) } function go(e) { var t = e.cm, n = t.display - Do(t), - e.updateMaxLine && _e(t), + _o(t), + e.updateMaxLine && Oe(t), (e.mustUpdate = e.viewChanged || e.forceUpdate || @@ -4039,7 +3828,7 @@ object-assign (n.maxLineChanged && t.options.lineWrapping)), (e.update = e.mustUpdate && - new Ll( + new Ml( t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate, @@ -4089,7 +3878,7 @@ object-assign t.state.focused && e.updateInput && t.display.input.reset(e.typing), n && Wn(e.cm) } - function xo(e) { + function Co(e) { var t = e.cm, n = t.display, o = t.doc @@ -4114,16 +3903,16 @@ object-assign l = e.maybeUnhiddenMarkers if (a) for (var s = 0; s < a.length; ++s) - a[s].lines.length || De(a[s], 'hide') + a[s].lines.length || _e(a[s], 'hide') if (l) for (var i = 0; i < l.length; ++i) - l[i].lines.length && De(l[i], 'unhide') + l[i].lines.length && _e(l[i], 'unhide') n.wrapper.offsetHeight && (o.scrollTop = t.display.scroller.scrollTop), - e.changeObjs && De(t, 'changes', t, e.changeObjs), + e.changeObjs && _e(t, 'changes', t, e.changeObjs), e.update && e.update.finish() } - function Co(e, t) { + function xo(e, t) { if (e.curOp) return t() fo(e) try { @@ -4143,7 +3932,7 @@ object-assign } } } - function ko(e) { + function To(e) { return function() { if (this.curOp) return e.apply(this, arguments) fo(this) @@ -4154,7 +3943,7 @@ object-assign } } } - function To(e) { + function ko(e) { return function() { var t = this.cm if (!t || t.curOp) return e.apply(this, arguments) @@ -4179,24 +3968,24 @@ object-assign (e.curOp.viewChanged = !0), t >= i.viewTo) ) - nl && Ce(e.doc, t) < i.viewTo && _o(e) + nl && xe(e.doc, t) < i.viewTo && Oo(e) else if (n <= i.viewFrom) nl && we(e.doc, n + o) > i.viewFrom - ? _o(e) + ? Oo(e) : ((i.viewFrom += o), (i.viewTo += o)) - else if (t <= i.viewFrom && n >= i.viewTo) _o(e) + else if (t <= i.viewFrom && n >= i.viewTo) Oo(e) else if (t <= i.viewFrom) { var r = Po(e, n, n + o, 1) r ? ((i.view = i.view.slice(r.index)), (i.viewFrom = r.lineN), (i.viewTo += o)) - : _o(e) + : Oo(e) } else if (n >= i.viewTo) { var a = Po(e, t, t, -1) a ? ((i.view = i.view.slice(0, a.index)), (i.viewTo = a.lineN)) - : _o(e) + : Oo(e) } else { var l = Po(e, t, t, -1), s = Po(e, n, n + o, 1) @@ -4206,7 +3995,7 @@ object-assign .concat(wt(e, l.lineN, s.lineN)) .concat(i.view.slice(s.index))), (i.viewTo += o)) - : _o(e) + : Oo(e) } var d = i.externalMeasured d && @@ -4225,20 +4014,20 @@ object-assign (o.externalMeasured = null), !(t < o.viewFrom || t >= o.viewTo)) ) { - var r = o.view[Dn(e, t)] + var r = o.view[_n(e, t)] if (null != r.node) { var a = r.changes || (r.changes = []) ;-1 == b(a, n) && a.push(n) } } } - function _o(e) { + function Oo(e) { ;(e.display.viewFrom = e.display.viewTo = e.doc.first), (e.display.view = []), (e.display.viewOffset = 0) } function Po(e, t, o, r) { - var a = Dn(e, t), + var a = _n(e, t), l = e.display.view, s if (!nl || o == e.doc.first + e.doc.size) @@ -4251,36 +4040,36 @@ object-assign } else s = d - t ;(t += s), (o += s) } - for (; Ce(e.doc, o) != o; ) { + for (; xe(e.doc, o) != o; ) { if (a == (0 > r ? 0 : l.length - 1)) return null ;(o += r * l[a - (0 > r ? 1 : 0)].size), (a += r) } return { index: a, lineN: o } } - function Oo(e, t, n) { + function No(e, t, n) { var o = e.display, i = o.view 0 == i.length || t >= o.viewTo || n <= o.viewFrom ? ((o.view = wt(e, t, n)), (o.viewFrom = t)) : (o.viewFrom > t ? (o.view = wt(e, t, o.viewFrom).concat(o.view)) - : o.viewFrom < t && (o.view = o.view.slice(Dn(e, t))), + : o.viewFrom < t && (o.view = o.view.slice(_n(e, t))), (o.viewFrom = t), o.viewTo < n ? (o.view = o.view.concat(wt(e, o.viewTo, n))) - : o.viewTo > n && (o.view = o.view.slice(0, Dn(e, n)))), + : o.viewTo > n && (o.view = o.view.slice(0, _n(e, n)))), (o.viewTo = n) } - function No(e) { + function Lo(e) { for (var t = e.display.view, n = 0, o = 0, i; o < t.length; o++) (i = t[o]), i.hidden || (i.node && !i.changes) || ++n return n } - function Lo(e, t) { + function Mo(e, t) { e.doc.highlightFrontier < e.display.viewTo && - e.state.highlight.set(t, m(Mo, e)) + e.state.highlight.set(t, m(Do, e)) } - function Mo(e) { + function Do(e) { var t = e.doc if (!(t.highlightFrontier >= e.display.viewTo)) { var n = +new Date() + e.options.workTime, @@ -4322,19 +4111,19 @@ object-assign (o.stateAfter = 0 == r.line % 5 ? r.save() : null), r.nextLine() return +new Date() > n - ? (Lo(e, e.options.workDelay), !0) + ? (Mo(e, e.options.workDelay), !0) : void 0 }, ), (t.highlightFrontier = r.line), (t.modeFrontier = a(t.modeFrontier, r.line)), l.length && - Co(e, function() { + xo(e, function() { for (var t = 0; t < l.length; t++) Eo(e, l[t], 'text') }) } } - function Do(e) { + function _o(e) { var t = e.display !t.scrollbarsClipped && t.scroller.offsetWidth && @@ -4345,7 +4134,7 @@ object-assign (t.sizer.style.borderRightWidth = Kt(e) + 'px'), (t.scrollbarsClipped = !0)) } - function Io(e) { + function Ao(e) { if (e.hasFocus()) return null var t = c() if (!t || !d(e.display.lineDiv, t)) return null @@ -4362,7 +4151,7 @@ object-assign } return n } - function Ao(e) { + function Io(e) { if ( e && e.activeElt && @@ -4384,32 +4173,32 @@ object-assign function Ro(e, t) { var n = e.display, i = e.doc - if (t.editorIsHidden) return _o(e), !1 + if (t.editorIsHidden) return Oo(e), !1 if ( !t.force && t.visible.from >= n.viewFrom && t.visible.to <= n.viewTo && (null == n.updateLineNumbers || n.updateLineNumbers >= n.viewTo) && n.renderedView == n.view && - 0 == No(e) + 0 == Lo(e) ) return !1 - qn(e) && (_o(e), (t.dims = Pn(e))) + qn(e) && (Oo(e), (t.dims = Pn(e))) var r = i.first + i.size, s = a(t.visible.from - e.options.viewportMargin, i.first), d = o(r, t.visible.to + e.options.viewportMargin) n.viewFrom < s && 20 > s - n.viewFrom && (s = a(i.first, n.viewFrom)), n.viewTo > d && 20 > n.viewTo - d && (d = o(r, n.viewTo)), - nl && ((s = Ce(e.doc, s)), (d = we(e.doc, d))) + nl && ((s = xe(e.doc, s)), (d = we(e.doc, d))) var p = s != n.viewFrom || d != n.viewTo || n.lastWrapHeight != t.wrapperHeight || n.lastWrapWidth != t.wrapperWidth - Oo(e, s, d), - (n.viewOffset = Se(D(e.doc, n.viewFrom))), + No(e, s, d), + (n.viewOffset = Se(_(e.doc, n.viewFrom))), (e.display.mover.style.top = n.viewOffset + 'px') - var u = No(e) + var u = Lo(e) if ( !p && 0 == u && @@ -4418,20 +4207,20 @@ object-assign (null == n.updateLineNumbers || n.updateLineNumbers >= n.viewTo) ) return !1 - var c = Io(e) + var c = Ao(e) return ( 4 < u && (n.lineDiv.style.display = 'none'), Vo(e, n.updateLineNumbers, t.dims), 4 < u && (n.lineDiv.style.display = ''), (n.renderedView = n.view), - Ao(c), + Io(c), l(n.cursorDiv), l(n.selectionDiv), (n.gutters.style.height = n.sizer.style.minHeight = 0), p && ((n.lastWrapHeight = t.wrapperHeight), (n.lastWrapWidth = t.wrapperWidth), - Lo(e, 400)), + Mo(e, 400)), (n.updateLineNumbers = null), !0 ) @@ -4451,7 +4240,7 @@ object-assign if (!Ro(e, t)) break jn(e) var r = so(e) - In(e), po(e, r), zo(e, r), (t.force = !1) + An(e), po(e, r), zo(e, r), (t.force = !1) } t.signal(e, 'update', e), (e.display.viewFrom != e.display.reportedViewFrom || @@ -4467,18 +4256,18 @@ object-assign (e.display.reportedViewTo = e.display.viewTo)) } function Ho(e, t) { - var n = new Ll(e, t) + var n = new Ml(e, t) if (Ro(e, n)) { jn(e), Fo(e, n) var o = so(e) - In(e), po(e, o), zo(e, o), n.finish() + An(e), po(e, o), zo(e, o), n.finish() } } function Vo(e, t, n) { function o(t) { var n = t.nextSibling return ( - _a && Fa && e.display.currentWheelTarget == t + Oa && Fa && e.display.currentWheelTarget == t ? (t.style.display = 'none') : t.parentNode.removeChild(t), n @@ -4563,7 +4352,7 @@ object-assign } function Ko(t) { var e = jo(t) - return (e.x *= Dl), (e.y *= Dl), e + return (e.x *= _l), (e.y *= _l), e } function Go(t, n) { var e = jo(n), @@ -4574,7 +4363,7 @@ object-assign p = d.scrollWidth > d.clientWidth, u = d.scrollHeight > d.clientHeight if ((r && p) || (l && u)) { - if (l && Fa && _a) + if (l && Fa && Oa) outer: for ( var c = n.target, f = s.view; c != d; @@ -4585,15 +4374,15 @@ object-assign t.display.currentWheelTarget = c break outer } - if (r && !Ca && !Na && null != Dl) + if (r && !xa && !La && null != _l) return ( - l && u && ro(t, a(0, d.scrollTop + l * Dl)), - lo(t, a(0, d.scrollLeft + r * Dl)), + l && u && ro(t, a(0, d.scrollTop + l * _l)), + lo(t, a(0, d.scrollLeft + r * _l)), (!l || (l && u)) && He(n), void (s.wheelStartX = null) ) - if (l && null != Dl) { - var i = l * Dl, + if (l && null != _l) { + var i = l * _l, m = t.doc.scrollTop, g = m + s.wrapper.clientHeight 0 > i @@ -4601,7 +4390,7 @@ object-assign : (g = o(t.doc.height, g + i + 50)), Ho(t, { top: m, bottom: g }) } - 20 > Ml && + 20 > Dl && (null == s.wheelStartX ? ((s.wheelStartX = d.scrollLeft), (s.wheelStartY = d.scrollTop), @@ -4615,7 +4404,7 @@ object-assign (t && s.wheelDY && t / s.wheelDY) || (e && s.wheelDX && e / s.wheelDX) ;(s.wheelStartX = s.wheelStartY = null), - n && ((Dl = (Dl * Ml + n) / (Ml + 1)), ++Ml) + n && ((_l = (_l * Dl + n) / (Dl + 1)), ++Dl) } }, 200)) : ((s.wheelDX += r), (s.wheelDY += l))) @@ -4634,19 +4423,19 @@ object-assign var a = G(r.from(), i.from()), l = K(r.to(), i.to()), s = r.empty() ? i.from() == i.head : r.from() == r.head - o <= t && --t, e.splice(--o, 2, new Al(s ? l : a, s ? a : l)) + o <= t && --t, e.splice(--o, 2, new Il(s ? l : a, s ? a : l)) } } - return new Il(e, t) + return new Al(e, t) } function qo(e, t) { - return new Il([new Al(e, t || e)], 0) + return new Al([new Il(e, t || e)], 0) } function $o(e) { return e.text ? z( e.from.line + e.text.length - 1, - C(e.text).length + (1 == e.text.length ? e.from.ch : 0), + x(e.text).length + (1 == e.text.length ? e.from.ch : 0), ) : e.to } @@ -4660,7 +4449,7 @@ object-assign function Qo(e, t) { for (var n = [], o = 0, i; o < e.sel.ranges.length; o++) (i = e.sel.ranges[o]), - n.push(new Al(Xo(i.anchor, t), Xo(i.head, t))) + n.push(new Il(Xo(i.anchor, t), Xo(i.head, t))) return Yo(n, e.sel.primIndex) } function Zo(e, t, n) { @@ -4676,10 +4465,10 @@ object-assign if (((r = i.to), (a = d), 'around' == n)) { var p = e.sel.ranges[l], u = 0 > U(p.head, p.anchor) - o[l] = new Al(u ? d : s, u ? s : d) - } else o[l] = new Al(s, s) + o[l] = new Il(u ? d : s, u ? s : d) + } else o[l] = new Il(s, s) } - return new Il(o, e.sel.primIndex) + return new Al(o, e.sel.primIndex) } function ei(e) { ;(e.doc.mode = $e(e.options, e.doc.modeOption)), ti(e) @@ -4689,7 +4478,7 @@ object-assign e.stateAfter && (e.stateAfter = null), e.styles && (e.styles = null) }), (e.doc.modeFrontier = e.doc.highlightFrontier = e.doc.first), - Lo(e, 100), + Mo(e, 100), e.state.modeGen++, e.curOp && So(e) } @@ -4697,7 +4486,7 @@ object-assign return ( 0 == t.from.ch && 0 == t.to.ch && - '' == C(t.text) && + '' == x(t.text) && (!e.cm || e.cm.options.wholeLineUpdateBefore) ) } @@ -4709,15 +4498,15 @@ object-assign ut(e, o, i, n), Et(e, 'change', e, t) } function a(e, t) { - for (var o = [], a = e; a < t; ++a) o.push(new xl(d[a], r(a), n)) + for (var o = [], a = e; a < t; ++a) o.push(new Cl(d[a], r(a), n)) return o } var l = t.from, s = t.to, d = t.text, - p = D(e, l.line), - u = D(e, s.line), - c = C(d), + p = _(e, l.line), + u = _(e, s.line), + c = x(d), f = r(d.length - 1), h = s.line - l.line if (t.full) @@ -4732,7 +4521,7 @@ object-assign i(p, p.text.slice(0, l.ch) + c + p.text.slice(s.ch), f) else { var g = a(1, d.length - 1) - g.push(new xl(c + p.text.slice(s.ch), f, n)), + g.push(new Cl(c + p.text.slice(s.ch), f, n)), i(p, p.text.slice(0, l.ch) + d[0], r(0)), e.insert(l.line + 1, g) } @@ -4762,10 +4551,10 @@ object-assign if (t.cm) throw new Error('This document is already in use.') ;(e.doc = t), (t.cm = e), - Ln(e), + Mn(e), ei(e), ai(e), - e.options.lineWrapping || _e(e), + e.options.lineWrapping || Oe(e), (e.options.mode = t.modeOption), So(e) } @@ -4775,7 +4564,7 @@ object-assign : Ba)(e.display.lineDiv, 'CodeMirror-rtl') } function li(e) { - Co(e, function() { + xo(e, function() { ai(e), So(e) }) } @@ -4789,7 +4578,7 @@ object-assign (this.generation = this.maxGeneration = e || 1) } function di(e, t) { - var n = { from: j(t.from), to: $o(t), text: I(e, t.from, t.to) } + var n = { from: j(t.from), to: $o(t), text: A(e, t.from, t.to) } return ( gi(e, n, t.from.line, t.to.line + 1), ii( @@ -4804,18 +4593,18 @@ object-assign } function pi(e) { for (; e.length; ) { - var t = C(e) + var t = x(e) if (t.ranges) e.pop() else break } } function ui(e, t) { return t - ? (pi(e.done), C(e.done)) - : e.done.length && !C(e.done).ranges - ? C(e.done) + ? (pi(e.done), x(e.done)) + : e.done.length && !x(e.done).ranges + ? x(e.done) : 1 < e.done.length && !e.done[e.done.length - 2].ranges - ? (e.done.pop(), C(e.done)) + ? (e.done.pop(), x(e.done)) : void 0 } function ci(e, t, n, o) { @@ -4834,12 +4623,12 @@ object-assign '*' == t.origin.charAt(0)))) && (a = ui(i, i.lastOp == o)) ) - (l = C(a.changes)), + (l = x(a.changes)), 0 == U(t.from, t.to) && 0 == U(t.from, l.to) ? (l.to = $o(t)) : a.changes.push(di(e, t)) else { - var s = C(i.done) + var s = x(i.done) for ( (s && s.ranges) || mi(e.sel, i.done), a = { changes: [di(e, t)], generation: i.generation }, @@ -4854,7 +4643,7 @@ object-assign (i.lastModTime = i.lastSelTime = r), (i.lastOp = i.lastSelOp = o), (i.lastOrigin = i.lastSelOrigin = t.origin), - l || De(e, 'historyAdded') + l || _e(e, 'historyAdded') } function fi(e, t, n, o) { var i = t.charAt(0) @@ -4874,7 +4663,7 @@ object-assign (r && i.lastSelOrigin == r && ((i.lastModTime == i.lastSelTime && i.lastOrigin == r) || - fi(e, r, C(i.done), t))) + fi(e, r, x(i.done), t))) ? (i.done[i.done.length - 1] = t) : mi(t, i.done), (i.lastSelTime = +new Date()), @@ -4883,7 +4672,7 @@ object-assign o && !1 !== o.clearRedo && pi(i.undone) } function mi(e, t) { - var n = C(t) + var n = x(t) ;(n && n.ranges && n.equals(e)) || t.push(e) } function gi(e, t, i, r) { @@ -4928,10 +4717,10 @@ object-assign } return n } - function xi(e, t, n) { + function Ci(e, t, n) { for (var o = [], r = 0, i; r < e.length; ++r) { if (((i = e[r]), i.ranges)) { - o.push(n ? Il.prototype.deepCopy.call(i) : i) + o.push(n ? Al.prototype.deepCopy.call(i) : i) continue } var a = i.changes, @@ -4944,12 +4733,12 @@ object-assign for (var u in d) (p = u.match(/^spans_(\d+)$/)) && -1 < b(t, +p[1]) && - ((C(l)[u] = d[u]), delete d[u]) + ((x(l)[u] = d[u]), delete d[u]) } } return o } - function Ci(e, t, n, o) { + function xi(e, t, n, o) { if (o) { var i = e.anchor if (n) { @@ -4958,25 +4747,25 @@ object-assign ? r != 0 > U(t, n) && (t = n) : ((i = t), (t = n)) } - return new Al(i, t) + return new Il(i, t) } - return new Al(n || t, t) + return new Il(n || t, t) } function wi(e, t, n, o, i) { null == i && (i = e.cm && (e.cm.display.shift || e.extend)), - Pi(e, new Il([Ci(e.sel.primary(), t, n, i)], 0), o) + Pi(e, new Al([xi(e.sel.primary(), t, n, i)], 0), o) } - function ki(e, t, n) { + function Ti(e, t, n) { for ( var o = [], r = e.cm && (e.cm.display.shift || e.extend), a = 0; a < e.sel.ranges.length; a++ ) - o[a] = Ci(e.sel.ranges[a], t[a], null, r) + o[a] = xi(e.sel.ranges[a], t[a], null, r) var i = Yo(o, e.sel.primIndex) Pi(e, i, n) } - function Ti(e, t, n, o) { + function ki(e, t, n, o) { var i = e.sel.ranges.slice(0) ;(i[t] = n), Pi(e, Yo(i, e.sel.primIndex), o) } @@ -4990,57 +4779,57 @@ object-assign var n = this this.ranges = [] for (var o = 0; o < t.length; o++) - n.ranges[o] = new Al(q(e, t[o].anchor), q(e, t[o].head)) + n.ranges[o] = new Il(q(e, t[o].anchor), q(e, t[o].head)) }, origin: n && n.origin, } return ( - De(e, 'beforeSelectionChange', e, o), - e.cm && De(e.cm, 'beforeSelectionChange', e.cm, o), + _e(e, 'beforeSelectionChange', e, o), + e.cm && _e(e.cm, 'beforeSelectionChange', e.cm, o), o.ranges == t.ranges ? t : Yo(o.ranges, o.ranges.length - 1) ) } - function _i(e, t, n) { + function Oi(e, t, n) { var o = e.history.done, - i = C(o) - i && i.ranges ? ((o[o.length - 1] = t), Oi(e, t, n)) : Pi(e, t, n) + i = x(o) + i && i.ranges ? ((o[o.length - 1] = t), Ni(e, t, n)) : Pi(e, t, n) } function Pi(e, t, n) { - Oi(e, t, n), hi(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n) + Ni(e, t, n), hi(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n) } - function Oi(e, t, n) { + function Ni(e, t, n) { ;(Re(e, 'beforeSelectionChange') || (e.cm && Re(e.cm, 'beforeSelectionChange'))) && (t = Ei(e, t, n)) var o = (n && n.bias) || (0 > U(t.primary().head, e.sel.primary().head) ? -1 : 1) - Ni(e, Mi(e, t, o, !0)), !(n && !1 === n.scroll) && e.cm && eo(e.cm) + Li(e, Di(e, t, o, !0)), !(n && !1 === n.scroll) && e.cm && eo(e.cm) } - function Ni(e, t) { + function Li(e, t) { t.equals(e.sel) || ((e.sel = t), e.cm && ((e.cm.curOp.updateInput = e.cm.curOp.selectionChanged = !0), - Ae(e.cm)), + Ie(e.cm)), Et(e, 'cursorActivity', e)) } - function Li(e) { - Ni(e, Mi(e, e.sel, null, !1)) + function Mi(e) { + Li(e, Di(e, e.sel, null, !1)) } - function Mi(e, t, n, o) { + function Di(e, t, n, o) { for (var r = 0, i; r < t.ranges.length; r++) { var a = t.ranges[r], l = t.ranges.length == e.sel.ranges.length && e.sel.ranges[r], - s = Ii(e, a.anchor, l && l.anchor, n, o), - d = Ii(e, a.head, l && l.head, n, o) + s = Ai(e, a.anchor, l && l.anchor, n, o), + d = Ai(e, a.head, l && l.head, n, o) ;(i || s != a.anchor || d != a.head) && - (!i && (i = t.ranges.slice(0, r)), (i[r] = new Al(s, d))) + (!i && (i = t.ranges.slice(0, r)), (i[r] = new Il(s, d))) } return i ? Yo(i, t.primIndex) : t } - function Di(e, t, n, o, r) { - var a = D(e, t.line) + function _i(e, t, n, o, r) { + var a = _(e, t.line) if (a.markedSpans) for (var l = 0; l < a.markedSpans.length; ++l) { var i = a.markedSpans[l], @@ -5051,7 +4840,7 @@ object-assign (null == i.to || (s.inclusiveRight ? i.to >= t.ch : i.to > t.ch)) ) { - if (r && (De(s, 'beforeCursorEnter'), s.explicitlyCleared)) + if (r && (_e(s, 'beforeCursorEnter'), s.explicitlyCleared)) if (!a.markedSpans) break else { --l @@ -5063,37 +4852,37 @@ object-assign p = void 0 if ( ((0 > o ? s.inclusiveRight : s.inclusiveLeft) && - (d = Ai(e, d, -o, d && d.line == t.line ? a : null)), + (d = Ii(e, d, -o, d && d.line == t.line ? a : null)), d && d.line == t.line && (p = U(d, n)) && (0 > o ? 0 > p : 0 < p)) ) - return Di(e, d, t, o, r) + return _i(e, d, t, o, r) } var u = s.find(0 > o ? -1 : 1) return ( (0 > o ? s.inclusiveLeft : s.inclusiveRight) && - (u = Ai(e, u, o, u.line == t.line ? a : null)), - u ? Di(e, u, t, o, r) : null + (u = Ii(e, u, o, u.line == t.line ? a : null)), + u ? _i(e, u, t, o, r) : null ) } } return t } - function Ii(e, t, n, o, i) { + function Ai(e, t, n, o, i) { var r = o || 1, a = - Di(e, t, n, r, i) || - (!i && Di(e, t, n, r, !0)) || - Di(e, t, n, -r, i) || - (!i && Di(e, t, n, -r, !0)) + _i(e, t, n, r, i) || + (!i && _i(e, t, n, r, !0)) || + _i(e, t, n, -r, i) || + (!i && _i(e, t, n, -r, !0)) return a ? a : ((e.cantEdit = !0), z(e.first, 0)) } - function Ai(e, t, n, o) { + function Ii(e, t, n, o) { return 0 > n && 0 == t.ch ? t.line > e.first ? q(e, z(t.line - 1)) : null - : 0 < n && t.ch == (o || D(e, t.line)).text.length + : 0 < n && t.ch == (o || _(e, t.line)).text.length ? t.line < e.first + e.size - 1 ? z(t.line + 1, 0) : null : new z(t.line, t.ch + n) } @@ -5119,8 +4908,8 @@ object-assign i && (o.text = i), void 0 !== r && (o.origin = r) }), - De(e, 'beforeChange', e, o), - e.cm && De(e.cm, 'beforeChange', e.cm, o), + _e(e, 'beforeChange', e, o), + e.cm && _e(e.cm, 'beforeChange', e.cm, o), o.canceled ? null : { from: o.from, to: o.to, text: o.text, origin: o.origin } @@ -5198,7 +4987,7 @@ object-assign if (((o.origin = t), c && !Fi(e, o, !1))) return (l.length = 0), {} u.push(di(e, o)) - var r = n ? Qo(e, o) : C(l) + var r = n ? Qo(e, o) : x(l) Ui(e, o, r, vi(e, o)), !n && e.cm && @@ -5224,9 +5013,9 @@ object-assign if ( 0 != t && ((e.first += t), - (e.sel = new Il( + (e.sel = new Al( w(e.sel.ranges, function(e) { - return new Al( + return new Il( z(e.anchor.line + t, e.anchor.ch), z(e.head.line + t, e.head.ch), ) @@ -5251,7 +5040,7 @@ object-assign (t = { from: z(e.first, 0), to: z(t.to.line + i, t.to.ch), - text: [C(t.text)], + text: [x(t.text)], origin: t.origin, }) } @@ -5259,14 +5048,14 @@ object-assign t.to.line > r && (t = { from: t.from, - to: z(r, D(e, r).text.length), + to: z(r, _(e, r).text.length), text: [t.text[0]], origin: t.origin, }), - (t.removed = I(e, t.from, t.to)), + (t.removed = A(e, t.from, t.to)), n || (n = Qo(e, t)), e.cm ? Bi(e.cm, t, o) : oi(e, t, o), - Oi(e, n, $a) + Ni(e, n, $a) } } function Bi(e, t, n) { @@ -5277,12 +5066,12 @@ object-assign l = !1, s = r.line e.options.lineWrapping || - ((s = F(be(D(o, r.line)))), + ((s = F(be(_(o, r.line)))), o.iter(s, a.line + 1, function(e) { if (e == i.maxLine) return (l = !0), !0 })), - -1 < o.sel.contains(t.from, t.to) && Ae(e), - oi(o, t, n, Nn(e)), + -1 < o.sel.contains(t.from, t.to) && Ie(e), + oi(o, t, n, Ln(e)), e.options.lineWrapping || (o.iter(s, r.line + t.text.length, function(e) { var t = Ee(e) @@ -5294,7 +5083,7 @@ object-assign }), l && (e.curOp.updateMaxLine = !0)), pt(o, r.line), - Lo(e, 400) + Mo(e, 400) var d = t.text.length - (a.line - r.line) - 1 t.full ? So(e) @@ -5357,7 +5146,7 @@ object-assign function qi(e, t, n, o) { var i = t, r = t - return ('number' == typeof t ? (r = D(e, Y(e, t))) : (i = F(t)), + return ('number' == typeof t ? (r = _(e, Y(e, t))) : (i = F(t)), null == i) ? null : (o(r, i) && e.cm && Eo(e.cm, i, n), r) @@ -5392,7 +5181,7 @@ object-assign ? n.push(r) : n.splice(o(n.length - 1, a(0, r.insertAt)), 0, r), (r.line = t), - l && !ke(e, t)) + l && !Te(e, t)) ) { var i = Se(t) < e.scrollTop R(t, t.height + Wt(r)), @@ -5456,7 +5245,7 @@ object-assign }), a.collapsed && e.iter(t.line, n.line + 1, function(t) { - ke(e, t) && R(t, 0) + Te(e, t) && R(t, 0) }), a.clearOnEnter && al(a, 'beforeCursorEnter', function() { @@ -5479,7 +5268,7 @@ object-assign a.css ) for (var c = t.line; c <= n.line; c++) Eo(d, c, 'text') - a.atomic && Li(d.doc), Et(d, 'markerAdded', d, a) + a.atomic && Mi(d.doc), Et(d, 'markerAdded', d, a) } return a } @@ -5494,7 +5283,7 @@ object-assign a.push(Ji(e, q(e, t), q(e, n), o, r)) for (var d = 0; d < e.linked.length; ++d) if (e.linked[d].isParent) return - l = C(a) + l = x(a) }), new Vl(a, l) ) @@ -5541,9 +5330,9 @@ object-assign } function ir(t) { var e = this - if ((lr(e), !(Ie(e, t) || zt(e.display, t)))) { + if ((lr(e), !(Ae(e, t) || zt(e.display, t)))) { He(t), Sa && (Ul = +new Date()) - var o = Mn(e, t, !0), + var o = Dn(e, t, !0), r = t.dataTransfer.files if (o && !e.isReadOnly()) if (r && r.length && window.FileReader && window.File) @@ -5575,7 +5364,7 @@ object-assign ), origin: 'paste', } - Hi(e.doc, s), _i(e.doc, qo(o, $o(s))) + Hi(e.doc, s), Oi(e.doc, qo(o, $o(s))) } })), i.readAsText(t) @@ -5602,7 +5391,7 @@ object-assign (e.state.draggingText && !e.state.draggingText.copy && (p = e.listSelections()), - Oi(e.doc, qo(o, o)), + Ni(e.doc, qo(o, o)), p) ) for (var u = 0; u < p.length; ++u) @@ -5618,24 +5407,24 @@ object-assign if (Sa && (!t.state.draggingText || 100 > +new Date() - Ul)) return void ze(n) if ( - !(Ie(t, n) || zt(t.display, n)) && + !(Ae(t, n) || zt(t.display, n)) && (n.dataTransfer.setData('Text', t.getSelection()), (n.dataTransfer.effectAllowed = 'copyMove'), - n.dataTransfer.setDragImage && !La) + n.dataTransfer.setDragImage && !Ma) ) { var e = p('img', null, null, 'position: fixed; left: 0; top: 0;') ;(e.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='), - Na && + La && ((e.width = e.height = 1), t.display.wrapper.appendChild(e), (e._top = e.offsetTop)), n.dataTransfer.setDragImage(e, 0, 0), - Na && e.parentNode.removeChild(e) + La && e.parentNode.removeChild(e) } } function ar(t, n) { - var e = Mn(t, n) + var e = Dn(t, n) if (e) { var o = document.createDocumentFragment() Rn(t, e, o), @@ -5762,7 +5551,7 @@ object-assign ) } function yr(e, t) { - if (Na && 34 == e.keyCode && e.char) return !1 + if (La && 34 == e.keyCode && e.char) return !1 var n = jl[e.keyCode] return null == n || e.altGraphKey ? !1 @@ -5773,7 +5562,7 @@ object-assign } function vr(e, t) { for (var n = e.doc.sel.ranges, o = [], r = 0, i; r < n.length; r++) { - for (i = t(n[r]); o.length && 0 >= U(i.from, C(o).to); ) { + for (i = t(n[r]); o.length && 0 >= U(i.from, x(o).to); ) { var a = o.pop() if (0 > U(a.from, i.from)) { i.from = a.from @@ -5782,25 +5571,25 @@ object-assign } o.push(i) } - Co(e, function() { + xo(e, function() { for (var t = o.length - 1; 0 <= t; t--) ji(e.doc, '', o[t].from, o[t].to, '+delete') eo(e) }) } - function xr(e, t, n) { - var o = N(e.text, t + n, n) + function Cr(e, t, n) { + var o = L(e.text, t + n, n) return 0 > o || o > e.text.length ? null : o } - function Cr(e, t, n) { - var o = xr(e, t.ch, n) + function xr(e, t, n) { + var o = Cr(e, t.ch, n) return null == o ? null : new z(t.line, o, 0 > n ? 'after' : 'before') } function wr(e, t, n, o, i) { if (e) { - var r = Ne(n, t.doc.direction) + var r = Le(n, t.doc.direction) if (r) { - var a = 0 > i ? C(r) : r[0], + var a = 0 > i ? x(r) : r[0], l = 0 > i == (1 == a.level), s = l ? 'after' : 'before', d @@ -5808,40 +5597,40 @@ object-assign var p = Jt(t, n) d = 0 > i ? n.text.length - 1 : 0 var u = en(t, p, d).top - ;(d = L( + ;(d = M( function(e) { return en(t, p, e).top == u }, 0 > i == (1 == a.level) ? a.from : a.to - 1, d, )), - 'before' == s && (d = xr(n, d, 1)) + 'before' == s && (d = Cr(n, d, 1)) } else d = 0 > i ? a.to : a.from return new z(o, d, s) } } return new z(o, 0 > i ? n.text.length : 0, 0 > i ? 'before' : 'after') } - function kr(e, t, n, o) { - var i = Ne(t, e.doc.direction) - if (!i) return Cr(t, n, o) + function Tr(e, t, n, o) { + var i = Le(t, e.doc.direction) + if (!i) return xr(t, n, o) n.ch >= t.text.length ? ((n.ch = t.text.length), (n.sticky = 'before')) : 0 >= n.ch && ((n.ch = 0), (n.sticky = 'after')) - var r = Oe(i, n.ch, n.sticky), + var r = Ne(i, n.ch, n.sticky), a = i[r] if ( 'ltr' == e.doc.direction && 0 == a.level % 2 && (0 < o ? a.to > n.ch : a.from < n.ch) ) - return Cr(t, n, o) + return xr(t, n, o) var l = function(e, n) { - return xr(t, e instanceof z ? e.ch : e, n) + return Cr(t, e instanceof z ? e.ch : e, n) }, s = function(n) { return e.options.lineWrapping - ? ((p = p || Jt(e, t)), Cn(e, t, p, n)) + ? ((p = p || Jt(e, t)), xn(e, t, p, n)) : { begin: 0, end: t.text.length } }, d = s('before' == n.sticky ? l(n, -1) : n.ch), @@ -5884,20 +5673,20 @@ object-assign ? m : null } - function Tr(e, t) { - var n = D(e.doc, t), + function kr(e, t) { + var n = _(e.doc, t), o = be(n) return o != n && (t = F(o)), wr(!0, e, o, t, 1) } function Sr(e, t) { - var n = D(e.doc, t), + var n = _(e.doc, t), o = ve(n) return o != n && (t = F(o)), wr(!0, e, n, t, -1) } function Er(e, t) { - var n = Tr(e, t.line), - o = D(e.doc, n.line), - i = Ne(o, e.doc.direction) + var n = kr(e, t.line), + o = _(e.doc, n.line), + i = Le(o, e.doc.direction) if (!i || 0 == i[0].level) { var r = a(0, o.text.search(/\S/)), l = t.line == n.line && t.ch <= r && t.ch @@ -5905,7 +5694,7 @@ object-assign } return n } - function _r(e, t, n) { + function Or(e, t, n) { if ('string' == typeof t && ((t = $l[t]), !t)) return !1 e.display.input.ensurePolled() var o = e.display.shift, @@ -5927,7 +5716,7 @@ object-assign hr(t, e.options.keyMap, n, e) ) } - function Or(t, n, o, e) { + function Nr(t, n, o, e) { var i = t.state.keySeq if (i) { if (mr(n)) return 'handled' @@ -5938,13 +5727,13 @@ object-assign t.state.keySeq == i && ((t.state.keySeq = null), t.display.input.reset()) }), - Nr(t, i + ' ' + n, o, e)) + Lr(t, i + ' ' + n, o, e)) ) return !0 } - return Nr(t, n, o, e) + return Lr(t, n, o, e) } - function Nr(t, n, o, e) { + function Lr(t, n, o, e) { var i = Pr(t, n, e) return ( 'multi' == i && (t.state.keySeq = n), @@ -5953,36 +5742,36 @@ object-assign !!i ) } - function Lr(t, n) { + function Mr(t, n) { var e = yr(n, !0) return ( !!e && (n.shiftKey && !t.state.keySeq - ? Or(t, 'Shift-' + e, n, function(e) { - return _r(t, e, !0) + ? Nr(t, 'Shift-' + e, n, function(e) { + return Or(t, e, !0) }) || - Or(t, e, n, function(e) { + Nr(t, e, n, function(e) { if ('string' == typeof e ? /^go[A-Z]/.test(e) : e.motion) - return _r(t, e) + return Or(t, e) }) - : Or(t, e, n, function(e) { - return _r(t, e) + : Nr(t, e, n, function(e) { + return Or(t, e) })) ) } - function Mr(t, n, e) { - return Or(t, "'" + e + "'", n, function(e) { - return _r(t, e, !0) + function Dr(t, n, e) { + return Nr(t, "'" + e + "'", n, function(e) { + return Or(t, e, !0) }) } - function Dr(t) { + function _r(t) { var e = this - if (((e.curOp.focus = c()), !Ie(e, t))) { + if (((e.curOp.focus = c()), !Ae(e, t))) { Sa && 11 > Ea && 27 == t.keyCode && (t.returnValue = !1) var n = t.keyCode e.display.shift = 16 == n || t.shiftKey - var o = Lr(e, t) - Na && + var o = Mr(e, t) + La && ((Ql = o ? n : null), !o && 88 == n && @@ -5991,40 +5780,40 @@ object-assign e.replaceSelection('', null, 'cut')), 18 != n || /\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className) || - Ir(e) + Ar(e) } } - function Ir(e) { + function Ar(e) { function t(o) { ;(18 != o.keyCode && o.altKey) || (Ba(n, 'CodeMirror-crosshair'), - Me(document, 'keyup', t), - Me(document, 'mouseover', t)) + De(document, 'keyup', t), + De(document, 'mouseover', t)) } var n = e.display.lineDiv f(n, 'CodeMirror-crosshair'), al(document, 'keyup', t), al(document, 'mouseover', t) } - function Ar(t) { - 16 == t.keyCode && (this.doc.sel.shift = !1), Ie(this, t) + function Ir(t) { + 16 == t.keyCode && (this.doc.sel.shift = !1), Ae(this, t) } function Rr(t) { var e = this if ( !( zt(e.display, t) || - Ie(e, t) || + Ae(e, t) || (t.ctrlKey && !t.altKey) || (Fa && t.metaKey) ) ) { var n = t.keyCode, o = t.charCode - if (Na && n == Ql) return (Ql = null), void He(t) - if (!(Na && (!t.which || 10 > t.which) && Lr(e, t))) { + if (La && n == Ql) return (Ql = null), void He(t) + if (!(La && (!t.which || 10 > t.which) && Mr(e, t))) { var r = i(null == o ? n : o) - '\b' == r || Mr(e, t, r) || e.display.input.onKeyPress(t) + '\b' == r || Dr(e, t, r) || e.display.input.onKeyPress(t) } } } @@ -6039,17 +5828,17 @@ object-assign function Hr(t) { var e = this, n = e.display - if (!(Ie(e, t) || (n.activeTouch && n.input.supportsTouch()))) { + if (!(Ae(e, t) || (n.activeTouch && n.input.supportsTouch()))) { if ((n.input.ensurePolled(), (n.shift = t.shiftKey), zt(n, t))) return void ( - _a || + Oa || ((n.scroller.draggable = !1), setTimeout(function() { return (n.scroller.draggable = !0) }, 100)) ) if (!Yr(e, t)) { - var o = Mn(e, t), + var o = Dn(e, t), i = Be(t), r = o ? Fr(o, i) : 'single' window.focus(), @@ -6073,7 +5862,7 @@ object-assign ? (r = 'Double' + r) : 'triple' == o && (r = 'Triple' + r), (r = (1 == t ? 'Left' : 2 == t ? 'Middle' : 'Right') + r), - Or(e, gr(r, i), i, function(t) { + Nr(e, gr(r, i), i, function(t) { if (('string' == typeof t && (t = $l[t]), !t)) return !1 var o = !1 try { @@ -6123,16 +5912,16 @@ object-assign var r = n.display, a = !1, l = wo(n, function(t) { - _a && (r.scroller.draggable = !1), + Oa && (r.scroller.draggable = !1), (n.state.draggingText = !1), - Me(document, 'mouseup', l), - Me(document, 'mousemove', s), - Me(r.scroller, 'dragstart', d), - Me(r.scroller, 'drop', l), + De(document, 'mouseup', l), + De(document, 'mousemove', s), + De(r.scroller, 'dragstart', d), + De(r.scroller, 'drop', l), a || (He(t), !i.addNew && wi(n.doc, o, null, null, i.extend), - _a || (Sa && 9 == Ea) + Oa || (Sa && 9 == Ea) ? setTimeout(function() { document.body.focus(), r.input.focus() }, 20) @@ -6144,7 +5933,7 @@ object-assign d = function() { return (a = !0) } - _a && (r.scroller.draggable = !0), + Oa && (r.scroller.draggable = !0), (n.state.draggingText = l), (l.copy = !i.moveOnDrag), r.scroller.dragDrop && r.scroller.dragDrop(), @@ -6158,12 +5947,12 @@ object-assign }, 20) } function Br(e, t, n) { - if ('char' == n) return new Al(t, t) + if ('char' == n) return new Il(t, t) if ('word' == n) return e.findWordAt(t) if ('line' == n) - return new Al(z(t.line, 0), q(e.doc, z(t.line + 1, 0))) + return new Il(z(t.line, 0), q(e.doc, z(t.line + 1, 0))) var o = n(e, t) - return new Al(o.from, o.to) + return new Il(o.from, o.to) } function jr(t, e, n, i) { function r(e) { @@ -6172,42 +5961,42 @@ object-assign for ( var r = [], l = t.options.tabSize, - s = y(D(p, n.line).text, n.ch, l), - d = y(D(p, e.line).text, e.ch, l), + s = y(_(p, n.line).text, n.ch, l), + d = y(_(p, e.line).text, e.ch, l), c = o(s, d), f = a(s, d), g = o(n.line, e.line), - x = o(t.lastLine(), a(n.line, e.line)); - g <= x; + C = o(t.lastLine(), a(n.line, e.line)); + g <= C; g++ ) { - var C = D(p, g).text, - w = v(C, c, l) + var x = _(p, g).text, + w = v(x, c, l) c == f - ? r.push(new Al(z(g, w), z(g, w))) - : C.length > w && r.push(new Al(z(g, w), z(g, v(C, f, l)))) + ? r.push(new Il(z(g, w), z(g, w))) + : x.length > w && r.push(new Il(z(g, w), z(g, v(x, f, l)))) } - r.length || r.push(new Al(n, n)), + r.length || r.push(new Il(n, n)), Pi(p, Yo(u.ranges.slice(0, m).concat(r), m), { origin: '*mouse', scroll: !1, }), t.scrollIntoView(e) } else { - var k = h, - T = Br(t, e, i.unit), - S = k.anchor, + var T = h, + k = Br(t, e, i.unit), + S = T.anchor, E - 0 < U(T.anchor, S) - ? ((E = T.head), (S = G(k.from(), T.anchor))) - : ((E = T.anchor), (S = K(k.to(), T.head))) - var _ = u.ranges.slice(0) - ;(_[m] = Kr(t, new Al(q(p, S), E))), Pi(p, Yo(_, m), Xa) + 0 < U(k.anchor, S) + ? ((E = k.head), (S = G(T.from(), k.anchor))) + : ((E = k.anchor), (S = K(T.to(), k.head))) + var O = u.ranges.slice(0) + ;(O[m] = Kr(t, new Il(q(p, S), E))), Pi(p, Yo(O, m), Xa) } } function l(n) { - var e = ++C, - o = Mn(t, n, !0, 'rectangle' == i.unit) + var e = ++x, + o = Dn(t, n, !0, 'rectangle' == i.unit) if (o) if (0 != U(o, b)) { ;(t.curOp.focus = c()), r(o) @@ -6215,16 +6004,16 @@ object-assign ;(o.line >= a.to || o.line < a.from) && setTimeout( wo(t, function() { - C == e && l(n) + x == e && l(n) }), 150, ) } else { - var s = n.clientY < x.top ? -20 : n.clientY > x.bottom ? 20 : 0 + var s = n.clientY < C.top ? -20 : n.clientY > C.bottom ? 20 : 0 s && setTimeout( wo(t, function() { - C != e || ((d.scroller.scrollTop += s), l(n)) + x != e || ((d.scroller.scrollTop += s), l(n)) }), 50, ) @@ -6232,11 +6021,11 @@ object-assign } function s(n) { ;(t.state.selectingText = !1), - (C = Infinity), + (x = Infinity), He(n), d.input.focus(), - Me(document, 'mousemove', w), - Me(document, 'mouseup', k), + De(document, 'mousemove', w), + De(document, 'mouseup', T), (p.history.lastSelOrigin = null) } var d = t.display, @@ -6248,14 +6037,14 @@ object-assign m if ( (i.addNew && !i.extend - ? ((m = p.sel.contains(n)), (h = -1 < m ? f[m] : new Al(n, n))) + ? ((m = p.sel.contains(n)), (h = -1 < m ? f[m] : new Il(n, n))) : ((h = p.sel.primary()), (m = p.sel.primIndex)), 'rectangle' == i.unit) ) - i.addNew || (h = new Al(n, n)), (n = Mn(t, e, !0, !0)), (m = -1) + i.addNew || (h = new Il(n, n)), (n = Dn(t, e, !0, !0)), (m = -1) else { var g = Br(t, n, i.unit) - h = i.extend ? Ci(h, g.anchor, g.head, i.extend) : g + h = i.extend ? xi(h, g.anchor, g.head, i.extend) : g } i.addNew ? -1 == m @@ -6267,27 +6056,27 @@ object-assign origin: '*mouse', }), (u = p.sel)) - : Ti(p, m, h, Xa) - : ((m = 0), Pi(p, new Il([h], 0), Xa), (u = p.sel)) + : ki(p, m, h, Xa) + : ((m = 0), Pi(p, new Al([h], 0), Xa), (u = p.sel)) var b = n, - x = d.wrapper.getBoundingClientRect(), - C = 0, + C = d.wrapper.getBoundingClientRect(), + x = 0, w = wo(t, function(t) { Be(t) ? l(t) : s(t) }), - k = wo(t, s) - ;(t.state.selectingText = k), + T = wo(t, s) + ;(t.state.selectingText = T), al(document, 'mousemove', w), - al(document, 'mouseup', k) + al(document, 'mouseup', T) } function Kr(e, t) { var n = t.anchor, o = t.head, - i = D(e.doc, n.line) + i = _(e.doc, n.line) if (0 == U(n, o) && n.sticky == o.sticky) return t - var r = Ne(i) + var r = Le(i) if (!r) return t - var a = Oe(r, n.ch, n.sticky), + var a = Ne(r, n.ch, n.sticky), l = r[a] if (l.from != n.ch && l.to != n.ch) return t var s = a + ((l.from == n.ch) == (1 != l.level) ? 0 : 1) @@ -6296,7 +6085,7 @@ object-assign if (o.line != n.line) d = 0 < (o.line - n.line) * ('ltr' == e.doc.direction ? 1 : -1) else { - var p = Oe(r, o.ch, o.sticky), + var p = Ne(r, o.ch, o.sticky), u = p - a || (o.ch - n.ch) * (1 == l.level ? -1 : 1) d = p == s - 1 || p == s ? 0 > u : 0 < u } @@ -6304,7 +6093,7 @@ object-assign f = d == (1 == c.level), h = f ? c.from : c.to, m = f ? 'after' : 'before' - return n.ch == h && n.sticky == m ? t : new Al(new z(n.line, h, m), o) + return n.ch == h && n.sticky == m ? t : new Il(new z(n.line, h, m), o) } function Gr(t, o, e, r) { var a, l @@ -6328,7 +6117,7 @@ object-assign ) { var u = H(t.doc, l), c = t.options.gutters[p] - return De(t, e, t, u, c, o), We(o) + return _e(t, e, t, u, c, o), We(o) } } function Yr(t, n) { @@ -6337,7 +6126,7 @@ object-assign function qr(t, n) { zt(t.display, n) || $r(t, n) || - Ie(t, n, 'contextmenu') || + Ae(t, n, 'contextmenu') || t.display.input.onContextMenu(n) } function $r(t, n) { @@ -6357,7 +6146,7 @@ object-assign function Zr(e, t, n) { if (!t != !(n && n != Jl)) { var o = e.display.dragFunctions, - i = t ? al : Me + i = t ? al : De i(e.display.scroller, 'dragstart', o.start), i(e.display.scroller, 'dragenter', o.enter), i(e.display.scroller, 'dragover', o.over), @@ -6370,8 +6159,8 @@ object-assign ? (f(e.display.wrapper, 'CodeMirror-wrap'), (e.display.sizer.style.minWidth = ''), (e.display.sizerWidth = null)) - : (Ba(e.display.wrapper, 'CodeMirror-wrap'), _e(e)), - Ln(e), + : (Ba(e.display.wrapper, 'CodeMirror-wrap'), Oe(e)), + Mn(e), So(e), dn(e), setTimeout(function() { @@ -6387,7 +6176,7 @@ object-assign (o = new zl(o, t.mode, null, t.lineSeparator, t.direction)), (this.doc = o) var r = new ea.inputStyles[t.inputStyle](this), - a = (this.display = new M(e, o, r)) + a = (this.display = new D(e, o, r)) for (var l in ((a.wrapper.CodeMirror = this), Uo(this), Xr(this), @@ -6429,7 +6218,7 @@ object-assign qn(this), t.finishInit && t.finishInit(this) for (var s = 0; s < is.length; ++s) is[s](n) ho(this), - _a && + Oa && t.lineWrapping && 'optimizelegibility' == getComputedStyle(a.lineDiv).textRendering && @@ -6462,8 +6251,8 @@ object-assign r.scroller, 'dblclick', wo(t, function(n) { - if (!Ie(t, n)) { - var e = Mn(t, n) + if (!Ae(t, n)) { + var e = Dn(t, n) if (!(!e || Yr(t, n) || zt(t.display, n))) { He(n) var o = t.findWordAt(e) @@ -6473,7 +6262,7 @@ object-assign }), ) : al(r.scroller, 'dblclick', function(n) { - return Ie(t, n) || He(n) + return Ae(t, n) || He(n) }), Ua || al(r.scroller, 'contextmenu', function(n) { @@ -6482,7 +6271,7 @@ object-assign var a = { end: 0 }, l al(r.scroller, 'touchstart', function(n) { - if (!Ie(t, n) && !o(n) && !Yr(t, n)) { + if (!Ae(t, n) && !o(n) && !Yr(t, n)) { r.input.ensurePolled(), clearTimeout(l) var e = +new Date() ;(r.activeTouch = { @@ -6511,10 +6300,10 @@ object-assign l ;(l = !e.prev || i(e, e.prev) - ? new Al(a, a) + ? new Il(a, a) : !e.prev.prev || i(e, e.prev.prev) ? t.findWordAt(a) - : new Al(z(a.line, 0), q(t.doc, z(a.line + 1, 0)))), + : new Il(z(a.line, 0), q(t.doc, z(a.line + 1, 0)))), t.setSelection(l.anchor, l.head), t.focus(), He(o) @@ -6526,7 +6315,7 @@ object-assign r.scroller.clientHeight && (ro(t, r.scroller.scrollTop), lo(t, r.scroller.scrollLeft, !0), - De(t, 'scroll', t)) + _e(t, 'scroll', t)) }), al(r.scroller, 'mousewheel', function(n) { return Go(t, n) @@ -6539,24 +6328,24 @@ object-assign }), (r.dragFunctions = { enter: function(n) { - Ie(t, n) || ze(n) + Ae(t, n) || ze(n) }, over: function(n) { - Ie(t, n) || (ar(t, n), ze(n)) + Ae(t, n) || (ar(t, n), ze(n)) }, start: function(n) { return rr(t, n) }, drop: wo(t, ir), leave: function(n) { - Ie(t, n) || lr(t) + Ae(t, n) || lr(t) }, }) var e = r.input.getField() al(e, 'keyup', function(n) { - return Ar.call(t, n) + return Ir.call(t, n) }), - al(e, 'keydown', wo(t, Dr)), + al(e, 'keydown', wo(t, _r)), al(e, 'keypress', wo(t, Rr)), al(e, 'focus', function(n) { return Un(t, n) @@ -6572,7 +6361,7 @@ object-assign 'smart' == o && (l.mode.indent ? (s = nt(e, t).state) : (o = 'prev')) var d = e.options.tabSize, - p = D(l, t), + p = _(l, t), u = y(p.text, null, d) p.stateAfter && (p.stateAfter = null) var c = p.text.match(/^\s*/)[0], @@ -6587,7 +6376,7 @@ object-assign o = 'prev' } 'prev' == o - ? t > l.first ? (f = y(D(l, t - 1).text, null, d)) : (f = 0) + ? t > l.first ? (f = y(_(l, t - 1).text, null, d)) : (f = 0) : 'add' == o ? (f = u + e.options.indentUnit) : 'subtract' == o @@ -6598,7 +6387,7 @@ object-assign m = 0 if (e.options.indentWithTabs) for (var g = n(f / d); g; --g) (m += d), (h += '\t') - if ((m < f && (h += x(f - m)), h != c)) + if ((m < f && (h += C(f - m)), h != c)) return ( ji(l, h, z(t, 0), z(t, c.length), '+input'), (p.stateAfter = null), @@ -6609,7 +6398,7 @@ object-assign ((b = l.sel.ranges[i]), b.head.line == t && b.head.ch < c.length) ) { var v = z(t, c.length) - Ti(l, i, new Al(v, v)) + ki(l, i, new Il(v, v)) break } } @@ -6644,7 +6433,7 @@ object-assign : e.state.overwrite && !s ? (m = z( m.line, - o(D(l, m.line).text.length, m.ch + C(d).length), + o(_(l, m.line).text.length, m.ch + x(d).length), )) : rs && rs.lineWise && @@ -6673,7 +6462,7 @@ object-assign t.preventDefault(), e.isReadOnly() || e.options.disableInput || - Co(e, function() { + xo(e, function() { return ia(e, n, 0, null, 'paste') }), !0 @@ -6700,7 +6489,7 @@ object-assign } else r.electricInput && r.electricInput.test( - D(e.doc, i.head.line).text.slice(0, i.head.ch), + _(e.doc, i.head.line).text.slice(0, i.head.ch), ) && (a = na(e, i.head.line, 'smart')) a && Et(e, 'electricInput', e, i.head.line) @@ -6733,8 +6522,8 @@ object-assign 'overflow: hidden; position: relative; width: 3px; height: 0px;', ) return ( - _a ? (e.style.width = '1000px') : e.setAttribute('wrap', 'off'), - Ia && (e.style.border = '1px solid black'), + Oa ? (e.style.width = '1000px') : e.setAttribute('wrap', 'off'), + Aa && (e.style.border = '1px solid black'), sa(e), t ) @@ -6744,18 +6533,18 @@ object-assign var o = t.line + n return o < e.first || o >= e.first + e.size ? !1 - : ((t = new z(o, t.ch, t.sticky)), (d = D(e, o))) + : ((t = new z(o, t.ch, t.sticky)), (d = _(e, o))) } function a(o) { var a - if (((a = i ? kr(e.cm, d, t, n) : Cr(d, t, n)), null != a)) t = a + if (((a = i ? Tr(e.cm, d, t, n) : xr(d, t, n)), null != a)) t = a else if (!o && r()) t = wr(i, e.cm, d, t.line, n) else return !1 return !0 } var l = t, s = n, - d = D(e, t.line) + d = _(e, t.line) if ('char' == o) a() else if ('column' == o) a(!0) else if ('word' == o || 'group' == o) @@ -6769,7 +6558,7 @@ object-assign ) { if (0 > n && !a(!f)) break var h = d.text.charAt(t.ch) || '\n', - m = _(h, c) + m = O(h, c) ? 'w' : u && '\n' == h ? 'n' : !u || /\s/.test(h) ? null : 'p' if ((!u || f || m || (m = 's'), p && p != m)) { @@ -6778,7 +6567,7 @@ object-assign } if ((m && (p = m), 0 < n && !a(!f))) break } - var g = Ii(e, t, l, s, !0) + var g = Ai(e, t, l, s, !0) return B(l, g) && (g.hitSide = !0), g } function ua(e, t, n, i) { @@ -6806,12 +6595,12 @@ object-assign function ca(e, t) { var n = Zt(e, t.line) if (!n || n.hidden) return null - var o = D(e.doc, t.line), + var o = _(e.doc, t.line), i = $t(n, o, t.line), - r = Ne(o, e.doc.direction), + r = Le(o, e.doc.direction), a = 'left' if (r) { - var l = Oe(r, t.ch) + var l = Ne(r, t.ch) a = l % 2 ? 'right' : 'left' } var s = tn(i.map, t.ch, a) @@ -6849,7 +6638,7 @@ object-assign return void ( f.length && (c = f[0].find(0)) && - l(I(e.doc, c.from, c.to).join(u)) + l(A(e.doc, c.from, c.to).join(u)) ) } if ('false' == t.getAttribute('contenteditable')) return @@ -6895,7 +6684,7 @@ object-assign r = !1 if (!t || !d(i, t)) return ha(z(F(e.line), 0), !0) if (t == i && ((r = !0), (t = i.childNodes[n]), (n = 0), !t)) { - var a = e.rest ? C(e.rest) : e.line + var a = e.rest ? x(e.rest) : e.line return ha(z(F(a), a.text.length), r) } var l = 3 == t.nodeType ? t : null, @@ -6930,33 +6719,33 @@ object-assign } var ba = Math.round, va = navigator.userAgent, - xa = navigator.platform, - Ca = /gecko\/\d/i.test(va), + Ca = navigator.platform, + xa = /gecko\/\d/i.test(va), wa = /MSIE \d/.test(va), - ka = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(va), - Ta = /Edge\/(\d+)/.exec(va), - Sa = wa || ka || Ta, - Ea = Sa && (wa ? document.documentMode || 6 : +(Ta || ka)[1]), - _a = !Ta && /WebKit\//.test(va), - Pa = _a && /Qt\/\d+\.\d+/.test(va), - Oa = !Ta && /Chrome\//.test(va), - Na = /Opera\//.test(va), - La = /Apple Computer/.test(navigator.vendor), - Ma = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(va), - Da = /PhantomJS/.test(va), - Ia = !Ta && /AppleWebKit/.test(va) && /Mobile\/\w+/.test(va), - Aa = /Android/.test(va), + Ta = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(va), + ka = /Edge\/(\d+)/.exec(va), + Sa = wa || Ta || ka, + Ea = Sa && (wa ? document.documentMode || 6 : +(ka || Ta)[1]), + Oa = !ka && /WebKit\//.test(va), + Pa = Oa && /Qt\/\d+\.\d+/.test(va), + Na = !ka && /Chrome\//.test(va), + La = /Opera\//.test(va), + Ma = /Apple Computer/.test(navigator.vendor), + Da = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(va), + _a = /PhantomJS/.test(va), + Aa = !ka && /AppleWebKit/.test(va) && /Mobile\/\w+/.test(va), + Ia = /Android/.test(va), Ra = - Ia || Aa || + Ia || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(va), - Fa = Ia || /Mac/.test(xa), + Fa = Aa || /Mac/.test(Ca), Ha = /\bCrOS\b/.test(va), - Va = /win/i.test(xa), - Wa = Na && va.match(/Version\/(\d*\.\d*)/) - Wa && (Wa = +Wa[1]), Wa && 15 <= Wa && ((Na = !1), (_a = !0)) - var za = Fa && (Pa || (Na && (null == Wa || 12.11 > Wa))), - Ua = Ca || (Sa && 9 <= Ea), + Va = /win/i.test(Ca), + Wa = La && va.match(/Version\/(\d*\.\d*)/) + Wa && (Wa = +Wa[1]), Wa && 15 <= Wa && ((La = !1), (Oa = !0)) + var za = Fa && (Pa || (La && (null == Wa || 12.11 > Wa))), + Ua = xa || (Sa && 9 <= Ea), Ba = function(t, n) { var o = t.className, i = e(n).exec(o) @@ -6988,7 +6777,7 @@ object-assign var Ka = function(e) { e.select() } - Ia + Aa ? (Ka = function(e) { ;(e.selectionStart = 0), (e.selectionEnd = e.value.length) }) @@ -7055,49 +6844,49 @@ object-assign '1' == v && 'r' == b ? (u[y] = 'n') : a.test(v) && ((b = v), 'r' == v && (u[y] = 'R')) - for (var x = 1, w = u[0], k; x < p - 1; ++x) - (k = u[x]), - '+' == k && '1' == w && '1' == u[x + 1] - ? (u[x] = '1') - : ',' == k && - w == u[x + 1] && + for (var C = 1, w = u[0], T; C < p - 1; ++C) + (T = u[C]), + '+' == T && '1' == w && '1' == u[C + 1] + ? (u[C] = '1') + : ',' == T && + w == u[C + 1] && ('1' == w || 'n' == w) && - (u[x] = w), - (w = k) - for (var T = 0, S; T < p; ++T) - if (((S = u[T]), ',' == S)) u[T] = 'N' + (u[C] = w), + (w = T) + for (var k = 0, S; k < p; ++k) + if (((S = u[k]), ',' == S)) u[k] = 'N' else if ('%' == S) { var E = void 0 - for (E = T + 1; E < p && '%' == u[E]; ++E); + for (E = k + 1; E < p && '%' == u[E]; ++E); for ( - var _ = - (T && '!' == u[T - 1]) || (E < p && '1' == u[E]) + var O = + (k && '!' == u[k - 1]) || (E < p && '1' == u[E]) ? '1' : 'N', - P = T; + P = k; P < E; ++P ) - u[P] = _ - T = E - 1 + u[P] = O + k = E - 1 } - for (var O = 0, N = d, L; O < p; ++O) - (L = u[O]), - 'L' == N && '1' == L ? (u[O] = 'L') : a.test(L) && (N = L) - for (var M = 0; M < p; ++M) - if (i.test(u[M])) { - var D = void 0 - for (D = M + 1; D < p && i.test(u[D]); ++D); + for (var N = 0, L = d, M; N < p; ++N) + (M = u[N]), + 'L' == L && '1' == M ? (u[N] = 'L') : a.test(M) && (L = M) + for (var D = 0; D < p; ++D) + if (i.test(u[D])) { + var _ = void 0 + for (_ = D + 1; _ < p && i.test(u[_]); ++_); for ( - var I = 'L' == (M ? u[M - 1] : d), - A = 'L' == (D < p ? u[D] : d), - R = I == A ? (I ? 'L' : 'R') : d, - F = M; - F < D; + var A = 'L' == (D ? u[D - 1] : d), + I = 'L' == (_ < p ? u[_] : d), + R = A == I ? (A ? 'L' : 'R') : d, + F = D; + F < _; ++F ) u[F] = R - M = D - 1 + D = _ - 1 } for (var H = [], V = 0, W; V < p; ) if (l.test(u[V])) { @@ -7123,9 +6912,9 @@ object-assign (W = n.match(/^\s+/)) && ((H[0].from = W[0].length), H.unshift(new t(0, 0, W[0].length))), - 1 == C(H).level && + 1 == x(H).level && (W = n.match(/\s+$/)) && - ((C(H).to -= W[0].length), + ((x(H).to -= W[0].length), H.push(new t(0, p - W[0].length, p)))), 'rtl' == o ? H.reverse() : H ) @@ -7355,17 +7144,17 @@ object-assign (this.type = t || null), (this.state = n) }, - xl = function(e, t, n) { + Cl = function(e, t, n) { ;(this.text = e), pe(this, t), (this.height = n ? n(this) : 1) } - ;(xl.prototype.lineNo = function() { + ;(Cl.prototype.lineNo = function() { return F(this) }), - Fe(xl) - var Cl = {}, + Fe(Cl) + var xl = {}, wl = {}, - kl = null, Tl = null, + kl = null, Sl = { left: 0, right: 0, top: 0, bottom: 0 }, El = function(e, t, n) { this.cm = n @@ -7392,7 +7181,7 @@ object-assign 8 > Ea && (this.horiz.style.minHeight = this.vert.style.minWidth = '18px') }, - _l + Ol ;(El.prototype.update = function(e) { var t = e.scrollWidth > e.clientWidth + 1, n = e.scrollHeight > e.clientHeight + 1, @@ -7434,7 +7223,7 @@ object-assign this.enableZeroWidthBar(this.vert, this.disableVert, 'vert') }), (El.prototype.zeroWidthHack = function() { - var e = Fa && !Ma ? '12px' : '18px' + var e = Fa && !Da ? '12px' : '18px' ;(this.horiz.style.height = this.vert.style.width = e), (this.horiz.style.pointerEvents = this.vert.style.pointerEvents = 'none'), @@ -7469,9 +7258,9 @@ object-assign (Pl.prototype.setScrollLeft = function() {}), (Pl.prototype.setScrollTop = function() {}), (Pl.prototype.clear = function() {}) - var Ol = { native: El, null: Pl }, - Nl = 0, - Ll = function(e, t, n) { + var Nl = { native: El, null: Pl }, + Ll = 0, + Ml = function(e, t, n) { var o = e.display ;(this.viewport = t), (this.visible = Gn(o, e.doc, t)), @@ -7483,25 +7272,25 @@ object-assign (this.dims = Pn(e)), (this.events = []) } - ;(Ll.prototype.signal = function(e, t) { + ;(Ml.prototype.signal = function(e, t) { Re(e, t) && this.events.push(arguments) }), - (Ll.prototype.finish = function() { + (Ml.prototype.finish = function() { for (var e = this, t = 0; t < this.events.length; t++) - De.apply(null, e.events[t]) + _e.apply(null, e.events[t]) }) - var Ml = 0, - Dl = null + var Dl = 0, + _l = null Sa - ? (Dl = -0.53) - : Ca ? (Dl = 15) : Oa ? (Dl = -0.7) : La && (Dl = -1 / 3) - var Il = function(e, t) { + ? (_l = -0.53) + : xa ? (_l = 15) : Na ? (_l = -0.7) : Ma && (_l = -1 / 3) + var Al = function(e, t) { ;(this.ranges = e), (this.primIndex = t) } - ;(Il.prototype.primary = function() { + ;(Al.prototype.primary = function() { return this.ranges[this.primIndex] }), - (Il.prototype.equals = function(e) { + (Al.prototype.equals = function(e) { var t = this if (e == this) return !0 if ( @@ -7516,17 +7305,17 @@ object-assign } return !0 }), - (Il.prototype.deepCopy = function() { + (Al.prototype.deepCopy = function() { for (var e = this, t = [], n = 0; n < this.ranges.length; n++) - t[n] = new Al(j(e.ranges[n].anchor), j(e.ranges[n].head)) - return new Il(t, this.primIndex) + t[n] = new Il(j(e.ranges[n].anchor), j(e.ranges[n].head)) + return new Al(t, this.primIndex) }), - (Il.prototype.somethingSelected = function() { + (Al.prototype.somethingSelected = function() { for (var e = this, t = 0; t < this.ranges.length; t++) if (!e.ranges[t].empty()) return !0 return !1 }), - (Il.prototype.contains = function(e, t) { + (Al.prototype.contains = function(e, t) { var n = this t || (t = e) for (var o = 0, i; o < this.ranges.length; o++) @@ -7534,16 +7323,16 @@ object-assign return o return -1 }) - var Al = function(e, t) { + var Il = function(e, t) { ;(this.anchor = e), (this.head = t) } - ;(Al.prototype.from = function() { + ;(Il.prototype.from = function() { return G(this.anchor, this.head) }), - (Al.prototype.to = function() { + (Il.prototype.to = function() { return K(this.anchor, this.head) }), - (Al.prototype.empty = function() { + (Il.prototype.empty = function() { return ( this.head.line == this.anchor.line && this.head.ch == this.anchor.ch @@ -7687,7 +7476,7 @@ object-assign var i = Wt(this) R(o, a(0, o.height - i)), t && - (Co(t, function() { + (xo(t, function() { Qi(t, o, -i), Eo(t, r, 'widget') }), Et(t, 'lineWidgetCleared', t, this, r)) @@ -7703,7 +7492,7 @@ object-assign i && (R(o, o.height + i), n && - Co(n, function() { + xo(n, function() { ;(n.curOp.forceUpdate = !0), Qi(n, o, i), Et(n, 'lineWidgetChanged', n, e, F(o)) @@ -7736,7 +7525,7 @@ object-assign (i.markedSpans = te(i.markedSpans, s)), null == s.from && e.collapsed && - !ke(e.doc, i) && + !Te(e.doc, i) && t && R(i, En(t.display)) } @@ -7754,7 +7543,7 @@ object-assign (this.explicitlyCleared = !0), this.atomic && this.doc.cantEdit && - ((this.doc.cantEdit = !1), t && Li(t.doc)), + ((this.doc.cantEdit = !1), t && Mi(t.doc)), t && Et(t, 'markerCleared', t, this, r, a), n && ho(t), this.parent && this.parent.clear() @@ -7780,7 +7569,7 @@ object-assign o = this.doc.cm t && o && - Co(o, function() { + xo(o, function() { var i = t.line, r = F(t.line), a = Zt(o, r) @@ -7789,7 +7578,7 @@ object-assign (ln(a), (o.curOp.selectionChanged = o.curOp.forceUpdate = !0)), (o.curOp.updateMaxLine = !0), - !ke(n.doc, i) && null != n.height) + !Te(n.doc, i) && null != n.height) ) { var l = n.height n.height = null @@ -7840,7 +7629,7 @@ object-assign zl = function(e, t, n, o, i) { if (!(this instanceof zl)) return new zl(e, t, n, o, i) null == n && (n = 0), - Xi.call(this, [new $i([new xl('', null)])]), + Xi.call(this, [new $i([new Cl('', null)])]), (this.first = n), (this.scrollTop = this.scrollLeft = 0), (this.cantEdit = !1), @@ -7873,17 +7662,17 @@ object-assign this.removeInner(e - this.first, t) }, getValue: function(e) { - var t = A(this, this.first, this.first + this.size) + var t = I(this, this.first, this.first + this.size) return !1 === e ? t : t.join(e || this.lineSeparator()) }, - setValue: To(function(e) { + setValue: ko(function(e) { var t = z(this.first, 0), n = this.first + this.size - 1 Hi( this, { from: t, - to: z(n, D(this, n).text.length), + to: z(n, _(this, n).text.length), text: this.splitLines(e), origin: 'setValue', full: !0, @@ -7897,7 +7686,7 @@ object-assign ;(t = q(this, t)), (n = n ? q(this, n) : t), ji(this, e, t, n, o) }, getRange: function(e, t, n) { - var o = I(this, q(this, e), q(this, t)) + var o = A(this, q(this, e), q(this, t)) return !1 === n ? o : o.join(n || this.lineSeparator()) }, getLine: function(e) { @@ -7905,13 +7694,13 @@ object-assign return t && t.text }, getLineHandle: function(e) { - if (V(this, e)) return D(this, e) + if (V(this, e)) return _(this, e) }, getLineNumber: function(e) { return F(e) }, getLineHandleVisualStart: function(e) { - return 'number' == typeof e && (e = D(this, e)), be(e) + return 'number' == typeof e && (e = _(this, e)), be(e) }, lineCount: function() { return this.size @@ -7944,34 +7733,34 @@ object-assign somethingSelected: function() { return this.sel.somethingSelected() }, - setCursor: To(function(e, t, n) { + setCursor: ko(function(e, t, n) { Si(this, q(this, 'number' == typeof e ? z(e, t || 0) : e), null, n) }), - setSelection: To(function(e, t, n) { + setSelection: ko(function(e, t, n) { Si(this, q(this, e), q(this, t || e), n) }), - extendSelection: To(function(e, t, n) { + extendSelection: ko(function(e, t, n) { wi(this, q(this, e), t && q(this, t), n) }), - extendSelections: To(function(e, t) { - ki(this, X(this, e), t) + extendSelections: ko(function(e, t) { + Ti(this, X(this, e), t) }), - extendSelectionsBy: To(function(e, t) { + extendSelectionsBy: ko(function(e, t) { var n = w(this.sel.ranges, e) - ki(this, X(this, n), t) + Ti(this, X(this, n), t) }), - setSelections: To(function(e, t, n) { + setSelections: ko(function(e, t, n) { var r = this if (e.length) { for (var a = [], l = 0; l < e.length; l++) - a[l] = new Al(q(r, e[l].anchor), q(r, e[l].head)) + a[l] = new Il(q(r, e[l].anchor), q(r, e[l].head)) null == t && (t = o(e.length - 1, this.sel.primIndex)), Pi(this, Yo(a, t), n) } }), - addSelection: To(function(e, t, n) { + addSelection: ko(function(e, t, n) { var o = this.sel.ranges.slice(0) - o.push(new Al(q(this, e), q(this, t || e))), + o.push(new Il(q(this, e), q(this, t || e))), Pi(this, Yo(o, o.length - 1), n) }), getSelection: function(e) { @@ -7980,7 +7769,7 @@ object-assign o < n.length; o++ ) - (r = I(t, n[o].from(), n[o].to())), (i = i ? i.concat(r) : r) + (r = A(t, n[o].from(), n[o].to())), (i = i ? i.concat(r) : r) return !1 === e ? i : i.join(e || this.lineSeparator()) }, getSelections: function(e) { @@ -7989,7 +7778,7 @@ object-assign r < o.length; r++ ) - (i = I(t, o[r].from(), o[r].to())), + (i = A(t, o[r].from(), o[r].to())), !1 !== e && (i = i.join(e || t.lineSeparator())), (n[r] = i) return n @@ -7998,7 +7787,7 @@ object-assign for (var o = [], r = 0; r < this.sel.ranges.length; r++) o[r] = e this.replaceSelections(o, t, n || '+input') }, - replaceSelections: To(function(e, t, n) { + replaceSelections: ko(function(e, t, n) { for ( var o = this, r = [], a = this.sel, l = 0, i; l < a.ranges.length; @@ -8017,18 +7806,18 @@ object-assign d-- ) Hi(o, r[d]) - s ? _i(this, s) : this.cm && eo(this.cm) + s ? Oi(this, s) : this.cm && eo(this.cm) }), - undo: To(function() { + undo: ko(function() { Wi(this, 'undo') }), - redo: To(function() { + redo: ko(function() { Wi(this, 'redo') }), - undoSelection: To(function() { + undoSelection: ko(function() { Wi(this, 'undo', !0) }), - redoSelection: To(function() { + redoSelection: ko(function() { Wi(this, 'redo', !0) }), setExtending: function(e) { @@ -8065,22 +7854,22 @@ object-assign }, getHistory: function() { return { - done: xi(this.history.done), - undone: xi(this.history.undone), + done: Ci(this.history.done), + undone: Ci(this.history.undone), } }, setHistory: function(e) { var t = (this.history = new si(this.history.maxGeneration)) - ;(t.done = xi(e.done.slice(0), null, !0)), - (t.undone = xi(e.undone.slice(0), null, !0)) + ;(t.done = Ci(e.done.slice(0), null, !0)), + (t.undone = Ci(e.undone.slice(0), null, !0)) }, - setGutterMarker: To(function(e, t, n) { + setGutterMarker: ko(function(e, t, n) { return qi(this, e, 'gutter', function(e) { var o = e.gutterMarkers || (e.gutterMarkers = {}) return (o[t] = n), !n && P(o) && (e.gutterMarkers = null), !0 }) }), - clearGutter: To(function(e) { + clearGutter: ko(function(e) { var t = this this.iter(function(n) { n.gutterMarkers && @@ -8098,7 +7887,7 @@ object-assign var t if ('number' == typeof e) { if (!V(this, e)) return null - if (((t = e), (e = D(this, e)), !e)) return null + if (((t = e), (e = _(this, e)), !e)) return null } else if (((t = F(e)), null == t)) return null return { line: t, @@ -8111,7 +7900,7 @@ object-assign widgets: e.widgets, } }, - addLineClass: To(function(t, n, o) { + addLineClass: ko(function(t, n, o) { return qi(this, t, 'gutter' == n ? 'gutter' : 'class', function(t) { var i = 'text' == n @@ -8127,7 +7916,7 @@ object-assign return !0 }) }), - removeLineClass: To(function(t, n, o) { + removeLineClass: ko(function(t, n, o) { return qi(this, t, 'gutter' == n ? 'gutter' : 'class', function(t) { var i = 'text' == n @@ -8150,7 +7939,7 @@ object-assign return !0 }) }), - addLineWidget: To(function(e, t, n) { + addLineWidget: ko(function(e, t, n) { return Zi(this, e, t, n) }), removeLineWidget: function(e) { @@ -8172,7 +7961,7 @@ object-assign findMarksAt: function(e) { e = q(this, e) var t = [], - n = D(this, e.line).markedSpans + n = _(this, e.line).markedSpans if (n) for (var o = 0, i; o < n.length; ++o) (i = n[o]), @@ -8239,7 +8028,7 @@ object-assign }, copy: function(e) { var t = new zl( - A(this, this.first, this.first + this.size), + I(this, this.first, this.first + this.size), this.modeOption, this.first, this.lineSep, @@ -8263,7 +8052,7 @@ object-assign null != e.from && e.from > t && (t = e.from), null != e.to && e.to < n && (n = e.to) var o = new zl( - A(this, t, n), + I(this, t, n), e.mode || this.modeOption, t, this.lineSep, @@ -8300,8 +8089,8 @@ object-assign !0, ), (e.history = new si(null)), - (e.history.done = xi(this.history.done, i)), - (e.history.undone = xi(this.history.undone, i)) + (e.history.done = Ci(this.history.done, i)), + (e.history.undone = Ci(this.history.undone, i)) } }, iterLinkedDocs: function(e) { @@ -8319,7 +8108,7 @@ object-assign lineSeparator: function() { return this.lineSep || '\n' }, - setDirection: To(function(e) { + setDirection: ko(function(e) { 'rtl' != e && (e = 'ltr'), e == this.direction || ((this.direction = e), @@ -8512,7 +8301,7 @@ object-assign killLine: function(e) { return vr(e, function(t) { if (t.empty()) { - var n = D(e.doc, t.head.line).text.length + var n = _(e.doc, t.head.line).text.length return t.head.ch == n && t.head.line < e.lastLine() ? { from: t.head, to: z(t.head.line + 1, 0) } : { from: t.head, to: z(t.head.line, n) } @@ -8571,7 +8360,7 @@ object-assign goLineStart: function(e) { return e.extendSelectionsBy( function(t) { - return Tr(e, t.head.line) + return kr(e, t.head.line) }, { origin: '+move', bias: 1 }, ) @@ -8691,7 +8480,7 @@ object-assign ) { var i = n[r].from(), a = y(e.getLine(i.line), i.ch, o) - t.push(x(o - a % o)) + t.push(C(o - a % o)) } e.replaceSelections(t) }, @@ -8701,7 +8490,7 @@ object-assign : e.execCommand('insertTab') }, transposeChars: function(e) { - return Co(e, function() { + return xo(e, function() { for ( var t = e.listSelections(), n = [], o = 0; o < t.length; @@ -8709,7 +8498,7 @@ object-assign ) if (t[o].empty()) { var i = t[o].head, - r = D(e.doc, i.line).text + r = _(e.doc, i.line).text if (r) if ( (i.ch == r.length && (i = new z(i.line, i.ch - 1)), @@ -8723,7 +8512,7 @@ object-assign '+transpose', ) else if (i.line > e.doc.first) { - var a = D(e.doc, i.line - 1).text + var a = _(e.doc, i.line - 1).text a && ((i = new z(i.line, 1)), e.replaceRange( @@ -8735,13 +8524,13 @@ object-assign '+transpose', )) } - n.push(new Al(i, i)) + n.push(new Il(i, i)) } e.setSelections(n) }) }, newlineAndIndent: function(e) { - return Co(e, function() { + return xo(e, function() { for (var t = e.listSelections(), n = t.length - 1; 0 <= n; n--) e.replaceRange( e.doc.lineSeparator(), @@ -8795,7 +8584,7 @@ object-assign } ;(as.prototype.init = function(e) { function t(t) { - if (!Ie(i, t)) { + if (!Ae(i, t)) { if (i.somethingSelected()) oa({ lineWise: !1, text: i.getSelections() }), 'cut' == t.type && i.replaceSelection('', null, 'cut') @@ -8840,7 +8629,7 @@ object-assign r = (o.div = e.lineDiv) sa(r, i.options.spellcheck), al(r, 'paste', function(t) { - Ie(i, t) || + Ae(i, t) || ra(t, i) || (11 >= Ea && setTimeout( @@ -8871,7 +8660,7 @@ object-assign al(r, 'cut', t) }), (as.prototype.prepareSelection = function() { - var e = An(this.cm, !1) + var e = In(this.cm, !1) return (e.focus = this.cm.state.focused), e }), (as.prototype.showSelection = function(e, t) { @@ -8923,13 +8712,13 @@ object-assign f = ja(s.node, s.offset, d.offset, d.node) } catch (t) {} f && - (!Ca && t.state.focused + (!xa && t.state.focused ? (e.collapse(s.node, s.offset), !f.collapsed && (e.removeAllRanges(), e.addRange(f))) : (e.removeAllRanges(), e.addRange(f)), c && null == e.anchorNode ? e.addRange(c) - : Ca && this.startGracePeriod()), + : xa && this.startGracePeriod()), this.rememberSelection() } }), @@ -8984,7 +8773,7 @@ object-assign var t = this this.selectionInEditor() ? this.pollSelection() - : Co(this.cm, function() { + : xo(this.cm, function() { return (t.cm.curOp.selectionChanged = !0) }), this.polling.set(this.cm.options.pollInterval, e) @@ -9007,8 +8796,8 @@ object-assign var e = window.getSelection(), n = this.cm if ( - Aa && - Oa && + Ia && + Na && this.cm.options.gutters.length && fa(e.anchorNode) ) @@ -9027,7 +8816,7 @@ object-assign i = ga(n, e.focusNode, e.focusOffset) o && i && - Co(n, function() { + xo(n, function() { Pi(n.doc, qo(o, i), $a), (o.bad || i.bad) && (n.curOp.selectionChanged = !0) }) @@ -9045,18 +8834,18 @@ object-assign if ( (0 == i.ch && i.line > e.firstLine() && - (i = z(i.line - 1, D(e.doc, i.line - 1).length)), - r.ch == D(e.doc, r.line).text.length && + (i = z(i.line - 1, _(e.doc, i.line - 1).length)), + r.ch == _(e.doc, r.line).text.length && r.line < e.lastLine() && (r = z(r.line + 1, 0)), i.line < t.viewFrom || r.line > t.viewTo - 1) ) return !1 var a, l, s - i.line == t.viewFrom || 0 == (a = Dn(e, i.line)) + i.line == t.viewFrom || 0 == (a = _n(e, i.line)) ? ((l = F(t.view[0].line)), (s = t.view[0].node)) : ((l = F(t.view[a].line)), (s = t.view[a - 1].node.nextSibling)) - var d = Dn(e, r.line), + var d = _n(e, r.line), p, u if ( @@ -9069,11 +8858,11 @@ object-assign return !1 for ( var c = e.doc.splitLines(ma(e, s, u, l, p)), - f = I(e.doc, z(l, 0), z(p, D(e.doc, p).text.length)); + f = A(e.doc, z(l, 0), z(p, _(e.doc, p).text.length)); 1 < c.length && 1 < f.length; ) - if (C(c) == C(f)) c.pop(), f.pop(), p-- + if (x(c) == x(f)) c.pop(), f.pop(), p-- else if (c[0] == f[0]) c.shift(), f.shift(), l++ else break for ( @@ -9083,14 +8872,14 @@ object-assign ) ++h for ( - var v = C(c), - x = C(f), + var v = x(c), + C = x(f), w = o( v.length - (1 == c.length ? h : 0), - x.length - (1 == f.length ? h : 0), + C.length - (1 == f.length ? h : 0), ); m < w && - v.charCodeAt(v.length - m - 1) == x.charCodeAt(x.length - m - 1); + v.charCodeAt(v.length - m - 1) == C.charCodeAt(C.length - m - 1); ) ++m @@ -9100,7 +8889,7 @@ object-assign h && h > i.ch && v.charCodeAt(v.length - m - 1) == - x.charCodeAt(x.length - m - 1); + C.charCodeAt(C.length - m - 1); ) h--, m++ @@ -9108,10 +8897,10 @@ object-assign .slice(0, v.length - m) .replace(/^\u200b+/, '')), (c[0] = c[0].slice(h).replace(/\u200b+$/, '')) - var k = z(l, h), - T = z(p, f.length ? C(f).length - m : 0) - if (1 < c.length || c[0] || U(k, T)) - return ji(e.doc, c, k, T, '+input'), !0 + var T = z(l, h), + k = z(p, f.length ? x(f).length - m : 0) + if (1 < c.length || c[0] || U(T, k)) + return ji(e.doc, c, T, k, '+input'), !0 }), (as.prototype.ensurePolled = function() { this.forceCompositionEnd() @@ -9140,7 +8929,7 @@ object-assign (as.prototype.updateFromDOM = function() { var e = this ;(this.cm.isReadOnly() || !this.pollContent()) && - Co(this.cm, function() { + xo(this.cm, function() { return So(e.cm) }) }), @@ -9173,7 +8962,7 @@ object-assign } ;(ls.prototype.init = function(t) { function e(t) { - if (!Ie(i, t)) { + if (!Ae(i, t)) { if (i.somethingSelected()) oa({ lineWise: !1, text: i.getSelections() }) else { @@ -9193,20 +8982,20 @@ object-assign r = (this.wrapper = da()), a = (this.textarea = r.firstChild) t.wrapper.insertBefore(r, t.wrapper.firstChild), - Ia && (a.style.width = '0px'), + Aa && (a.style.width = '0px'), al(a, 'input', function() { Sa && 9 <= Ea && n.hasSelection && (n.hasSelection = null), o.poll() }), al(a, 'paste', function(t) { - Ie(i, t) || + Ae(i, t) || ra(t, i) || ((i.state.pasteIncoming = !0), o.fastPoll()) }), al(a, 'cut', e), al(a, 'copy', e), al(t.scroller, 'paste', function(n) { - zt(t, n) || Ie(i, n) || ((i.state.pasteIncoming = !0), o.focus()) + zt(t, n) || Ae(i, n) || ((i.state.pasteIncoming = !0), o.focus()) }), al(t.lineSpace, 'selectstart', function(n) { zt(t, n) || He(n) @@ -9230,7 +9019,7 @@ object-assign var e = this.cm, t = e.display, n = e.doc, - i = An(e) + i = In(e) if (e.options.moveInputWithCursor) { var r = gn(e, n.sel.primary().head, 'div'), l = t.wrapper.getBoundingClientRect(), @@ -9345,7 +9134,7 @@ object-assign ) ++s return ( - Co(t, function() { + xo(t, function() { ia( t, r.slice(s), @@ -9415,9 +9204,9 @@ object-assign r = o.cm, a = r.display, l = o.textarea, - i = Mn(r, t), + i = Dn(r, t), s = a.scroller.scrollTop - if (i && !Na) { + if (i && !La) { var d = r.options.resetSelectionOnContextMenu d && -1 == r.doc.sel.contains(i) && wo(r, Pi)(r.doc, qo(i), $a) var p = l.style.cssText, @@ -9434,9 +9223,9 @@ object-assign ';\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);' var f if ( - (_a && (f = window.scrollY), + (Oa && (f = window.scrollY), a.input.focus(), - _a && window.scrollTo(null, f), + Oa && window.scrollTo(null, f), a.input.reset(), r.somethingSelected() || (l.value = o.prevInput = ' '), (o.contextMenuPending = !0), @@ -9447,7 +9236,7 @@ object-assign ) { ze(t) var h = function() { - Me(window, 'mouseup', h), setTimeout(n, 20) + De(window, 'mouseup', h), setTimeout(n, 20) } al(window, 'mouseup', h) } else setTimeout(n, 50) @@ -9583,7 +9372,7 @@ object-assign !0, function(e, t) { ;(e.display.gutters.style.left = t - ? On(e.display) + 'px' + ? Nn(e.display) + 'px' : '0'), e.refresh() }, @@ -9625,7 +9414,7 @@ object-assign Qr, !0, ), - t('showCursorWhenSelecting', !1, In, !0), + t('showCursorWhenSelecting', !1, An, !0), t('resetSelectionOnContextMenu', !0), t('lineWiseCopyCut', !0), t('pasteLinesPerSelection', !0), @@ -9645,8 +9434,8 @@ object-assign t('allowDropFileTypes', null), t('cursorBlinkRate', 530), t('cursorScrollMargin', 0), - t('cursorHeight', 1, In, !0), - t('singleCursorHeightPerLine', !0, In, !0), + t('cursorHeight', 1, An, !0), + t('singleCursorHeightPerLine', !0, An, !0), t('workTime', 100), t('workDelay', 100), t('flattenSpans', !0, ti, !0), @@ -9695,7 +9484,7 @@ object-assign ;(o[e] == t && 'mode' != e) || ((o[e] = t), n.hasOwnProperty(e) && wo(this, n[e])(this, t, i), - De(this, 'optionChange', this, e)) + _e(this, 'optionChange', this, e)) }, getOption: function(e) { return this.options[e] @@ -9710,11 +9499,11 @@ object-assign for (var t = this.state.keyMaps, n = 0; n < t.length; ++n) if (t[n] == e || t[n].name == e) return t.splice(n, 1), !0 }, - addOverlay: ko(function(t, n) { + addOverlay: To(function(t, n) { var o = t.token ? t : e.getMode(this.options, t) if (o.startState) throw new Error('Overlays may not be stateful.') - k( + T( this.state.overlays, { mode: o, @@ -9729,7 +9518,7 @@ object-assign this.state.modeGen++, So(this) }), - removeOverlay: ko(function(e) { + removeOverlay: To(function(e) { for ( var t = this, n = this.state.overlays, o = 0, i; o < n.length; @@ -9741,7 +9530,7 @@ object-assign ) return n.splice(o, 1), t.state.modeGen++, void So(t) }), - indentLine: ko(function(e, t, n) { + indentLine: To(function(e, t, n) { 'string' != typeof t && 'number' != typeof t && (null == t @@ -9749,7 +9538,7 @@ object-assign : (t = t ? 'add' : 'subtract')), V(this.doc, e) && na(this, e, t, n) }), - indentSelection: ko(function(e) { + indentSelection: To(function(e) { for ( var t = this, n = this.doc.sel.ranges, r = -1, l = 0, i; l < n.length; @@ -9765,7 +9554,7 @@ object-assign 0 == s.ch && n.length == c.length && 0 < c[l].from().ch && - Ti(t.doc, l, new Al(s, c[l].to()), $a) + ki(t.doc, l, new Il(s, c[l].to()), $a) } else i.head.line > r && (na(t, i.head.line, e, !0), @@ -9780,7 +9569,7 @@ object-assign }, getTokenTypeAt: function(e) { e = q(this.doc, e) - var t = tt(this, D(this.doc, e.line)), + var t = tt(this, _(this.doc, e.line)), n = 0, o = (t.length - 1) / 2, i = e.ch, @@ -9867,7 +9656,7 @@ object-assign e < this.doc.first ? (e = this.doc.first) : e > r && ((e = r), (o = !0)), - (i = D(this.doc, e)) + (i = _(this.doc, e)) } else i = e return ( fn(this, i, { top: 0, left: 0 }, t || 'page', n || o).top + @@ -9878,7 +9667,7 @@ object-assign return En(this.display) }, defaultCharWidth: function() { - return _n(this.display) + return On(this.display) }, getViewport: function() { return { from: this.display.viewFrom, to: this.display.viewTo } @@ -9923,14 +9712,14 @@ object-assign bottom: l + t.offsetHeight, }) }, - triggerOnKeyDown: ko(Dr), - triggerOnKeyPress: ko(Rr), - triggerOnKeyUp: Ar, - triggerOnMouseDown: ko(Hr), + triggerOnKeyDown: To(_r), + triggerOnKeyPress: To(Rr), + triggerOnKeyUp: Ir, + triggerOnMouseDown: To(Hr), execCommand: function(e) { if ($l.hasOwnProperty(e)) return $l[e].call(null, this) }, - triggerElectric: ko(function(e) { + triggerElectric: To(function(e) { aa(this, e) }), findPosH: function(e, t, n, o) { @@ -9944,7 +9733,7 @@ object-assign ); return l }, - moveH: ko(function(e, t) { + moveH: To(function(e, t) { var n = this this.extendSelectionsBy(function(o) { return n.display.shift || n.doc.extend || o.empty() @@ -9952,7 +9741,7 @@ object-assign : 0 > e ? o.from() : o.to() }, Qa) }), - deleteH: ko(function(e, t) { + deleteH: To(function(e, t) { var n = this.doc.sel, o = this.doc n.somethingSelected() @@ -9980,7 +9769,7 @@ object-assign ); return s }, - moveV: ko(function(e, t) { + moveV: To(function(e, t) { var n = this, o = this.doc, r = [], @@ -10009,7 +9798,7 @@ object-assign }), findWordAt: function(e) { var t = this.doc, - n = D(t, e.line).text, + n = _(t, e.line).text, o = e.ch, i = e.ch if (n) { @@ -10017,16 +9806,16 @@ object-assign ;('before' == e.sticky || i == n.length) && o ? --o : ++i for ( var a = n.charAt(o), - l = _(a, r) + l = O(a, r) ? function(e) { - return _(e, r) + return O(e, r) } : /\s/.test(a) ? function(e) { return /\s/.test(e) } : function(e) { - return !/\s/.test(e) && !_(e) + return !/\s/.test(e) && !O(e) }; 0 < o && l(n.charAt(o - 1)); @@ -10034,14 +9823,14 @@ object-assign --o for (; i < n.length && l(n.charAt(i)); ) ++i } - return new Al(z(e.line, o), z(e.line, i)) + return new Il(z(e.line, o), z(e.line, i)) }, toggleOverwrite: function(e) { ;(null != e && e == this.state.overwrite) || ((this.state.overwrite = !this.state.overwrite) ? f(this.display.cursorDiv, 'CodeMirror-overwrite') : Ba(this.display.cursorDiv, 'CodeMirror-overwrite'), - De(this, 'overwriteToggle', this, this.state.overwrite)) + _e(this, 'overwriteToggle', this, this.state.overwrite)) }, hasFocus: function() { return this.display.input.getField() == c() @@ -10049,7 +9838,7 @@ object-assign isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) }, - scrollTo: ko(function(e, t) { + scrollTo: To(function(e, t) { no(this, e, t) }), getScrollInfo: function() { @@ -10063,7 +9852,7 @@ object-assign clientWidth: Gt(this), } }, - scrollIntoView: ko(function(e, t) { + scrollIntoView: To(function(e, t) { null == e ? ((e = { from: this.doc.sel.primary().head, to: null }), null == t && (t = this.options.cursorScrollMargin)) @@ -10076,7 +9865,7 @@ object-assign ? io(this, e.from, e.to, e.margin) : to(this, e) }), - setSize: ko(function(e, t) { + setSize: To(function(e, t) { var n = this, o = function(e) { return 'number' == typeof e || /^\d+$/.test(e + '') @@ -10097,10 +9886,10 @@ object-assign ++r }), (this.curOp.forceUpdate = !0), - De(this, 'refresh', this) + _e(this, 'refresh', this) }), operation: function(e) { - return Co(this, e) + return xo(this, e) }, startOperation: function() { return fo(this) @@ -10108,17 +9897,17 @@ object-assign endOperation: function() { return ho(this) }, - refresh: ko(function() { + refresh: To(function() { var e = this.display.cachedTextHeight So(this), (this.curOp.forceUpdate = !0), dn(this), no(this, this.doc.scrollLeft, this.doc.scrollTop), Wo(this), - (null == e || 0.5 < t(e - En(this.display))) && Ln(this), - De(this, 'refresh', this) + (null == e || 0.5 < t(e - En(this.display))) && Mn(this), + _e(this, 'refresh', this) }), - swapDoc: ko(function(e) { + swapDoc: To(function(e) { var t = this.doc return ( (t.cm = null), @@ -10236,7 +10025,7 @@ object-assign e.parentNode.removeChild(t.getWrapperElement()), (e.style.display = ''), e.form && - (Me(e.form, 'submit', n), + (De(e.form, 'submit', n), 'function' == typeof e.form.submit && (e.form.submit = i)) }) }), @@ -10247,7 +10036,7 @@ object-assign return l }), (function(e) { - ;(e.off = Me), + ;(e.off = De), (e.on = al), (e.wheelEventPixels = Ko), (e.Doc = zl), @@ -10256,10 +10045,10 @@ object-assign (e.findColumn = v), (e.isWordChar = E), (e.Pass = qa), - (e.signal = De), - (e.Line = xl), + (e.signal = _e), + (e.Line = Cl), (e.changeEnd = $o), - (e.scrollbarModel = Ol), + (e.scrollbarModel = Nl), (e.Pos = z), (e.cmpPos = U), (e.modes = ul), @@ -10319,67 +10108,160 @@ object-assign } }) }, - function(e, t, n) { - var o = n(111) - e.exports = function(e, t, n) { - return (o(e), void 0 === t) - ? e - : 1 === n - ? function(n) { - return e.call(t, n) - } - : 2 === n - ? function(n, o) { - return e.call(t, n, o) - } - : 3 === n - ? function(n, o, i) { - return e.call(t, n, o, i) - } - : function() { - return e.apply(t, arguments) - } + function(e) { + 'use strict' + function t(e, t, n) { + t = + 'number' == typeof t + ? r(t.toString()) + : 'string' == typeof t ? r(t) : t + var a = function(e, t, n, r) { + var i = t[r], + l + return t.length > r + ? (Array.isArray(e) + ? ((i = o(i, e)), (l = e.slice())) + : (l = Object.assign({}, e)), + (l[i] = a(void 0 === e[i] ? {} : e[i], t, n, r + 1)), + l) + : 'function' == typeof n ? n(e) : n + } + return a(e, t, n, 0) } - }, - function(e, t, n) { - e.exports = - !n(13) && - !n(25)(function() { + function n(e, t, n) { + t = + 'number' == typeof t + ? r(t.toString()) + : 'string' == typeof t ? r(t) : t + for (var o = 0; o < t.length; o++) { + if ('object' != typeof e) return n + var i = t[o] + Array.isArray(e) && '$end' === i && (i = e.length - 1), (e = e[i]) + } + return e + } + function o(e, t) { + if ( + ('$end' === e && (e = Math.max(t.length - 1, 0)), !/^\+?\d+$/.test(e)) + ) + throw new Error("Array index '" + e + "' has to be an integer") + return parseInt(e) + } + function r(e) { + return e.split('.').reduce(function(e, t, n, o) { + var i = 0 < n && o[n - 1] return ( - 7 != - Object.defineProperty(n(58)('div'), 'a', { - get: function() { - return 7 - }, - }).a + i && /(?:^|[^\\])\\$/.test(i) + ? (e.pop(), e.push(i.slice(0, -1) + '.' + t)) + : e.push(t), + e ) - }) - }, - function(e, t, n) { - var o = n(19), - i = n(6).document, - r = o(i) && o(i.createElement) - e.exports = function(e) { - return r ? i.createElement(e) : {} + }, []) } - }, - function(e, t, n) { - var o = n(14), - r = n(20), - a = n(113)(!1), - i = n(40)('IE_PROTO') - e.exports = function(e, t) { - var n = r(e), - l = 0, - s = [], - d - for (d in n) d != i && o(n, d) && s.push(d) - for (; t.length > l; ) o(n, (d = t[l++])) && (~a(s, d) || s.push(d)) + e.exports = { + set: t, + get: n, + delete: function(e, t) { + t = + 'number' == typeof t + ? r(t.toString()) + : 'string' == typeof t ? r(t) : t + var n = function(e, t, r) { + var i = t[r], + a + return 'object' == typeof e && (Array.isArray(e) || void 0 !== e[i]) + ? t.length - 1 > r + ? (Array.isArray(e) + ? ((i = o(i, e)), (a = e.slice())) + : (a = Object.assign({}, e)), + (a[i] = n(e[i], t, r + 1)), + a) + : (Array.isArray(e) + ? ((i = o(i, e)), + (a = [].concat(e.slice(0, i), e.slice(i + 1)))) + : ((a = Object.assign({}, e)), delete a[i]), + a) + : e + } + return n(e, t, 0) + }, + toggle: function(e, o) { + var i = n(e, o) + return t(e, o, !!!i) + }, + merge: function(e, o, i) { + var r = n(e, o) + if ('object' == typeof r) { + if (Array.isArray(r)) return t(e, o, r.concat(i)) + if (null === r) return t(e, o, i) + var a = Object.assign({}, r, i) + return t(e, o, a) + } + return 'undefined' == typeof r ? t(e, o, i) : e + }, + } + }, + function(e, t, n) { + var o = n(96) + e.exports = function(e, t, n) { + return (o(e), void 0 === t) + ? e + : 1 === n + ? function(n) { + return e.call(t, n) + } + : 2 === n + ? function(n, o) { + return e.call(t, n, o) + } + : 3 === n + ? function(n, o, i) { + return e.call(t, n, o, i) + } + : function() { + return e.apply(t, arguments) + } + } + }, + function(e, t, n) { + e.exports = + !n(10) && + !n(20)(function() { + return ( + 7 != + Object.defineProperty(n(48)('div'), 'a', { + get: function() { + return 7 + }, + }).a + ) + }) + }, + function(e, t, n) { + var o = n(15), + i = n(4).document, + r = o(i) && o(i.createElement) + e.exports = function(e) { + return r ? i.createElement(e) : {} + } + }, + function(e, t, n) { + var o = n(11), + r = n(16), + a = n(98)(!1), + i = n(32)('IE_PROTO') + e.exports = function(e, t) { + var n = r(e), + l = 0, + s = [], + d + for (d in n) d != i && o(n, d) && s.push(d) + for (; t.length > l; ) o(n, (d = t[l++])) && (~a(s, d) || s.push(d)) return s } }, function(e, t, n) { - var o = n(61) + var o = n(51) e.exports = Object('z').propertyIsEnumerable(0) ? Object : function(e) { @@ -10393,7 +10275,7 @@ object-assign } }, function(e, t, n) { - var o = n(38) + var o = n(30) e.exports = function(e) { return Object(o(e)) } @@ -10411,25 +10293,25 @@ object-assign }, function(e, t, n) { 'use strict' - var o = n(44), - i = n(17), - r = n(65), - a = n(18), - l = n(14), - s = n(45), - d = n(120), - p = n(47), - u = n(123), - c = n(21)('iterator'), + var o = n(36), + i = n(13), + r = n(55), + a = n(14), + l = n(11), + s = n(37), + d = n(105), + p = n(39), + u = n(108), + c = n(17)('iterator'), f = !([].keys && 'next' in [].keys()), h = 'keys', m = 'values', g = function() { return this } - e.exports = function(e, t, n, y, b, v, x) { + e.exports = function(e, t, n, y, b, v, C) { d(n, t, y) - var C = function(e) { + var x = function(e) { return !f && e in S ? S[e] : e === h @@ -10445,48 +10327,48 @@ object-assign } }, w = t + ' Iterator', - k = b == m, - T = !1, + T = b == m, + k = !1, S = e.prototype, E = S[c] || S['@@iterator'] || (b && S[b]), - _ = (!f && E) || C(b), - P = b ? (k ? C('entries') : _) : void 0, - O = 'Array' == t ? S.entries || E : E, - N, + O = (!f && E) || x(b), + P = b ? (T ? x('entries') : O) : void 0, + N = 'Array' == t ? S.entries || E : E, L, - M + M, + D if ( - (O && - ((M = u(O.call(new e()))), - M !== Object.prototype && - M.next && - (p(M, w, !0), !o && !l(M, c) && a(M, c, g))), - k && + (N && + ((D = u(N.call(new e()))), + D !== Object.prototype && + D.next && + (p(D, w, !0), !o && !l(D, c) && a(D, c, g))), + T && E && E.name !== m && - ((T = !0), - (_ = function() { + ((k = !0), + (O = function() { return E.call(this) })), - (!o || x) && (f || T || !S[c]) && a(S, c, _), - (s[t] = _), + (!o || C) && (f || k || !S[c]) && a(S, c, O), + (s[t] = O), (s[w] = g), b) ) if ( - ((N = { values: k ? _ : C(m), keys: v ? _ : C(h), entries: P }), x) + ((L = { values: T ? O : x(m), keys: v ? O : x(h), entries: P }), C) ) - for (L in N) L in S || r(S, L, N[L]) - else i(i.P + i.F * (f || T), t, N) - return N + for (M in L) M in S || r(S, M, L[M]) + else i(i.P + i.F * (f || k), t, L) + return L } }, function(e, t, n) { - e.exports = n(18) + e.exports = n(14) }, function(e, t, n) { - var o = n(59), - i = n(42).concat('length', 'prototype') + var o = n(49), + i = n(34).concat('length', 'prototype') t.f = Object.getOwnPropertyNames || function(e) { @@ -10494,14 +10376,14 @@ object-assign } }, function(e, t, n) { - var o = n(31), - i = n(28), - r = n(20), - a = n(37), - l = n(14), - s = n(57), + var o = n(26), + i = n(23), + r = n(16), + a = n(29), + l = n(11), + s = n(47), d = Object.getOwnPropertyDescriptor - t.f = n(13) + t.f = n(10) ? d : function(e, t) { if (((e = r(e)), (t = a(t, !0)), s)) @@ -10521,14 +10403,14 @@ object-assign : n return i()(e, t, o) } - var o = n(149), + var o = n(134), i = n.n(o), r = n(2), a = n.n(r) }, function(e, t, n) { 'use strict' - var o = n(22) + var o = n(18) t.a = function(e) { if (o.a.isWindow(e) || 9 === e.nodeType) return null var t = o.a.getDocument(e), @@ -10543,7 +10425,7 @@ object-assign } }, function(e, t, n) { - e.exports = { default: n(166), __esModule: !0 } + e.exports = { default: n(151), __esModule: !0 } }, function(e) { e.exports = function(e, t) { @@ -10577,13 +10459,13 @@ object-assign }, function(e, t, n) { 'use strict' - var o = n(63), + var o = n(53), i = n.n(o), - r = n(7), + r = n(5), a = n.n(r), - l = n(8), + l = n(6), s = n.n(l), - d = n(9), + d = n(7), p = n.n(d), u = n(0), c = n.n(u), @@ -10638,225 +10520,9 @@ object-assign (t.c = function(e, t) { this[e] = t }) - var i = n(16), + var i = n(12), r = n.n(i) }, - function(e) { - 'use strict' - function t(e, t, n) { - t = - 'number' == typeof t - ? r(t.toString()) - : 'string' == typeof t ? r(t) : t - var a = function(e, t, n, r) { - var i = t[r], - l - return t.length > r - ? (Array.isArray(e) - ? ((i = o(i, e)), (l = e.slice())) - : (l = Object.assign({}, e)), - (l[i] = a(void 0 === e[i] ? {} : e[i], t, n, r + 1)), - l) - : 'function' == typeof n ? n(e) : n - } - return a(e, t, n, 0) - } - function n(e, t, n) { - t = - 'number' == typeof t - ? r(t.toString()) - : 'string' == typeof t ? r(t) : t - for (var o = 0; o < t.length; o++) { - if ('object' != typeof e) return n - var i = t[o] - Array.isArray(e) && '$end' === i && (i = e.length - 1), (e = e[i]) - } - return e - } - function o(e, t) { - if ( - ('$end' === e && (e = Math.max(t.length - 1, 0)), !/^\+?\d+$/.test(e)) - ) - throw new Error("Array index '" + e + "' has to be an integer") - return parseInt(e) - } - function r(e) { - return e.split('.').reduce(function(e, t, n, o) { - var i = 0 < n && o[n - 1] - return ( - i && /(?:^|[^\\])\\$/.test(i) - ? (e.pop(), e.push(i.slice(0, -1) + '.' + t)) - : e.push(t), - e - ) - }, []) - } - e.exports = { - set: t, - get: n, - delete: function(e, t) { - t = - 'number' == typeof t - ? r(t.toString()) - : 'string' == typeof t ? r(t) : t - var n = function(e, t, r) { - var i = t[r], - a - return 'object' == typeof e && (Array.isArray(e) || void 0 !== e[i]) - ? t.length - 1 > r - ? (Array.isArray(e) - ? ((i = o(i, e)), (a = e.slice())) - : (a = Object.assign({}, e)), - (a[i] = n(e[i], t, r + 1)), - a) - : (Array.isArray(e) - ? ((i = o(i, e)), - (a = [].concat(e.slice(0, i), e.slice(i + 1)))) - : ((a = Object.assign({}, e)), delete a[i]), - a) - : e - } - return n(e, t, 0) - }, - toggle: function(e, o) { - var i = n(e, o) - return t(e, o, !!!i) - }, - merge: function(e, o, i) { - var r = n(e, o) - if ('object' == typeof r) { - if (Array.isArray(r)) return t(e, o, r.concat(i)) - if (null === r) return t(e, o, i) - var a = Object.assign({}, r, i) - return t(e, o, a) - } - return 'undefined' == typeof r ? t(e, o, i) : e - }, - } - }, - function(e, t, n) { - 'use strict' - var o = n(4) - e.exports = function() { - return (o(this).length = 0), this - } - }, - function(e) { - 'use strict' - e.exports = function() {} - }, - function(e, t, n) { - 'use strict' - var o = n(184), - i = Math.max - e.exports = function(e) { - return i(0, o(e)) - } - }, - function(e) { - 'use strict' - var t = Object.create, - n = Object.getPrototypeOf, - o = {} - e.exports = function() { - var e = Object.setPrototypeOf, - i = arguments[0] || t - return !('function' != typeof e) && n(e(i(null), o)) === o - } - }, - function(e, t, n) { - 'use strict' - var o = n(188), - i = n(4), - r = Object.prototype.isPrototypeOf, - a = Object.defineProperty, - l = { configurable: !0, enumerable: !1, writable: !0, value: void 0 }, - s - ;(s = function(e, t) { - if ((i(e), null === t || o(t))) return e - throw new TypeError('Prototype must be null or an object') - }), - (e.exports = (function(e) { - var t, n - return e - ? (2 === e.level - ? e.set - ? ((n = e.set), - (t = function(e, t) { - return n.call(s(e, t), t), e - })) - : (t = function(e, t) { - return (s(e, t).__proto__ = t), e - }) - : (t = function e(t, n) { - var o - return ( - s(t, n), - (o = r.call(e.nullPolyfill, t)), - o && delete e.nullPolyfill.__proto__, - null === n && (n = e.nullPolyfill), - (t.__proto__ = n), - o && a(e.nullPolyfill, '__proto__', l), - t - ) - }), - Object.defineProperty(t, 'level', { - configurable: !1, - enumerable: !1, - writable: !1, - value: e.level, - })) - : null - })( - (function() { - var e = Object.create(null), - t = {}, - n = Object.getOwnPropertyDescriptor( - Object.prototype, - '__proto__', - ), - o - if (n) { - try { - ;(o = n.set), o.call(e, t) - } catch (e) {} - if (Object.getPrototypeOf(e) === t) return { set: o, level: 2 } - } - return ((e.__proto__ = t), Object.getPrototypeOf(e) === t) - ? { level: 2 } - : ((e = {}), - (e.__proto__ = t), - Object.getPrototypeOf(e) === t && { level: 1 }) - })(), - )), - n(189) - }, - function(e, t, n) { - 'use strict' - var o = n(23), - i = Array.prototype.forEach, - r = Object.create, - a = function(e, t) { - for (var n in e) t[n] = e[n] - } - e.exports = function() { - var e = r(null) - return ( - i.call(arguments, function(t) { - o(t) && a(Object(t), e) - }), - e - ) - } - }, - function(e, t, n) { - 'use strict' - var o = n(203) - e.exports = function(e) { - if (!o(e)) throw new TypeError(e + ' is not iterable') - return e - } - }, function(e, t, n) { 'use strict' Object.defineProperty(t, '__esModule', { value: !0 }) @@ -10864,13 +10530,12 @@ object-assign i = n.n(o), r = n(2), a = n.n(r), - l = n(99), - s = n(103), + l = n(81), + s = n(85), d = n.n(s), - p = n(105), - u = n.n(p), - c = n(222), - f = + p = n(87), + u = n(170), + c = (this && this.__extends) || (function() { var e = @@ -10893,7 +10558,7 @@ object-assign : ((o.prototype = n.prototype), new o())) } })(), - h = + f = (this && this.__assign) || Object.assign || function(e) { @@ -10902,13 +10567,13 @@ object-assign Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) return e } - n(84), n(85), n(86), n(54), n(87), n(88) - var m = function(e) { + n(66), n(67), n(68), n(43), n(69), n(70) + var h = function(e) { return 'react-select' === e ? function(e) { return o.createElement( l.a, - h({}, e.callbacks, e.config.componentProps, { + f({}, e.callbacks, e.config.componentProps, { options: e.config.options, value: e.value, }), @@ -10916,13 +10581,13 @@ object-assign } : void 0 }, - g = function(e, t) { + m = function(e, t) { switch (e.type) { case 'react-select': return t ? t.value : '' } }, - y = (function(e) { + g = (function(e) { function t(t) { var n = e.call(this, t) || this return ( @@ -10933,7 +10598,7 @@ object-assign ) } return ( - f(t, e), + c(t, e), (t.prototype.onChange = function(e) { this.setState(e) }), @@ -10982,16 +10647,16 @@ object-assign }, '(View source)', ), - o.createElement(u.a, { + o.createElement(p.a, { secondaryButton: !1, onSubmit: this.validate, ref: function(t) { return (e.forms = t) }, - customValueResolvers: [g], - customComponentResolvers: [m], + customValueResolvers: [m], + customComponentResolvers: [h], onChange: this.onChange, - config: c.a, + config: u.a, store: this.state, }), ), @@ -11004,7 +10669,7 @@ object-assign { className: 'section config' }, o.createElement('h4', null, 'Config'), o.createElement(s.UnControlled, { - value: JSON.stringify(c.a, null, 4), + value: JSON.stringify(u.a, null, 4), options: { theme: 'zenburn' }, }), ), @@ -11035,7 +10700,7 @@ object-assign t ) })(o.Component) - r.render(o.createElement(y, null), document.getElementById('app')) + r.render(o.createElement(g, null), document.getElementById('app')) }, function() {}, function() {}, @@ -11075,20 +10740,20 @@ object-assign function a(t, n, o) { ;(this.props = t), (this.context = n), - (this.refs = N), + (this.refs = _), (this.updater = o || x) } function s(t, n, o) { ;(this.props = t), (this.context = n), - (this.refs = N), + (this.refs = _), (this.updater = o || x) } function d() {} function c(t, n, o) { ;(this.props = t), (this.context = n), - (this.refs = N), + (this.refs = _), (this.updater = o || x) } function f(t, n, o) { @@ -11152,7 +10817,7 @@ object-assign (e.count = 0), 10 > L.length && L.push(e) } - function _(n, o, i, e) { + function O(n, o, i, e) { var r = typeof n ;('undefined' == r || 'boolean' == r) && (n = null) var s = !1 @@ -11177,7 +10842,7 @@ object-assign for (var d = 0; d < n.length; d++) { r = n[d] var p = o + P(r, d) - s += _(r, p, i, e) + s += O(r, p, i, e) } else if ( (null === n || 'undefined' == typeof n @@ -11187,7 +10852,7 @@ object-assign 'function' == typeof p) ) for (n = p.call(n), d = 0; !(r = n.next()).done; ) - (r = r.value), (p = o + P(r, d++)), (s += _(r, p, i, e)) + (r = r.value), (p = o + P(r, d++)), (s += O(r, p, i, e)) else 'object' === r && ((i = '' + n), @@ -11208,7 +10873,7 @@ object-assign function k(e, t) { e.func.call(e.context, t, e.count++) } - function O(t, o, i) { + function N(t, o, i) { var e = t.result, a = t.keyPrefix ;(t = t.func.call(t.context, o, t.count++)), @@ -11236,12 +10901,12 @@ object-assign var r = '' null != o && (r = ('' + o).replace(I, '$&/') + '/'), (n = y(n, r, e, i)), - null == t || _(t, '', O, n), + null == t || O(t, '', N, n), C(n) } - var T = i(26), - N = i(36), - n = i(27), + var T = i(21), + _ = i(28), + n = i(22), p = 'function' == typeof Symbol && Symbol['for'], R = p ? Symbol['for']('react.element') : 60103, b = p ? Symbol['for']('react.call') : 60104, @@ -11293,11 +10958,11 @@ object-assign return null == t ? t : void ((n = y(null, null, n, o)), - null == t || _(t, '', k, n), + null == t || O(t, '', k, n), C(n)) }, count: function(e) { - return null == e ? 0 : _(e, '', n.thatReturnsNull, null) + return null == e ? 0 : O(e, '', n.thatReturnsNull, null) }, toArray: function(e) { var t = [] @@ -11451,16 +11116,16 @@ object-assign for (var t in vo) { var n = vo[t], i = P.indexOf(t) - if ((-1 < i ? void 0 : o('96', t), !xo[i])) + if ((-1 < i ? void 0 : o('96', t), !Co[i])) for (var r in (n.extractEvents ? void 0 : o('97', t), - (xo[i] = n), + (Co[i] = n), (i = n.eventTypes), i)) { var a = void 0, e = i[r], l = n, s = r - Co.hasOwnProperty(s) ? o('99', s) : void 0, (Co[s] = e) + xo.hasOwnProperty(s) ? o('99', s) : void 0, (xo[s] = e) var d = e.phasedRegistrationNames if (d) { for (a in d) d.hasOwnProperty(a) && m(d[a], l, s) @@ -11476,7 +11141,7 @@ object-assign function m(e, t, n) { wo[e] ? o('100', e) : void 0, (wo[e] = t), - (ko[e] = t.eventTypes[n].dependencies) + (To[e] = t.eventTypes[n].dependencies) } function c(e) { P ? o('101') : void 0, (P = Array.prototype.slice.call(e)), u() @@ -11494,7 +11159,7 @@ object-assign } function h(e, t, n, o) { ;(t = e.type || 'unknown-event'), - (e.currentTarget = _o(o)), + (e.currentTarget = Oo(o)), bo.invokeGuardedCallbackAndCatchFirstError(t, n, void 0, e), (e.currentTarget = null) } @@ -11560,14 +11225,14 @@ object-assign : (n && 'function' != typeof n ? o('231', t, typeof n) : void 0, n) } function k(t, n, o, i) { - for (var r = 0, a, e; r < xo.length; r++) - (e = xo[r]), e && (e = e.extractEvents(t, n, o, i)) && (a = y(a, e)) + for (var r = 0, a, e; r < Co.length; r++) + (e = Co[r]), e && (e = e.extractEvents(t, n, o, i)) && (a = y(a, e)) return a } function E(e) { e && (Po = y(Po, e)) } - function _(e) { + function O(e) { var t = Po ;(Po = null), t && @@ -11575,30 +11240,30 @@ object-assign Po ? o('95') : void 0, bo.rethrowCaughtError()) } - function O(e) { - if (e[Mo]) return e[Mo] - for (var t = []; !e[Mo]; ) + function N(e) { + if (e[Do]) return e[Do] + for (var t = []; !e[Do]; ) if ((t.push(e), e.parentNode)) e = e.parentNode else return null - var n = e[Mo], + var n = e[Do], o if (5 === n.tag || 6 === n.tag) return n - for (; e && (n = e[Mo]); e = t.pop()) o = n + for (; e && (n = e[Do]); e = t.pop()) o = n return o } - function N(e) { + function L(e) { return 5 === e.tag || 6 === e.tag ? e.stateNode : void o('33') } - function L(e) { + function _(e) { return e[Q] || null } - function I(e) { + function A(e) { do e = e['return'] while (e && 5 !== e.tag) return e ? e : null } - function A(e, t, n) { - for (var o = []; e; ) o.push(e), (e = I(e)) + function I(e, t, n) { + for (var o = []; e; ) o.push(e), (e = A(e)) for (e = o.length; 0 < e--; ) t(o[e], 'captured', n) for (e = 0; e < o.length; e++) t(o[e], 'bubbled', n) } @@ -11608,12 +11273,12 @@ object-assign (n._dispatchInstances = y(n._dispatchInstances, e))) } function F(e) { - e && e.dispatchConfig.phasedRegistrationNames && A(e._targetInst, R, e) + e && e.dispatchConfig.phasedRegistrationNames && I(e._targetInst, R, e) } function H(e) { if (e && e.dispatchConfig.phasedRegistrationNames) { var t = e._targetInst - ;(t = t ? I(t) : null), A(t, R, e) + ;(t = t ? A(t) : null), I(t, R, e) } } function z(e, t, n) { @@ -11633,14 +11298,14 @@ object-assign function q(t, n, o, i) { if (o && i) a: { - for (var r = o, e = i, a = 0, l = r; l; l = I(l)) a++ + for (var r = o, e = i, a = 0, l = r; l; l = A(l)) a++ l = 0 - for (var s = e; s; s = I(s)) l++ - for (; 0 < a - l; ) (r = I(r)), a-- - for (; 0 < l - a; ) (e = I(e)), l-- + for (var s = e; s; s = A(s)) l++ + for (; 0 < a - l; ) (r = A(r)), a-- + for (; 0 < l - a; ) (e = A(e)), l-- for (; a--; ) { if (r === e || r === e.alternate) break a - ;(r = I(r)), (e = I(e)) + ;(r = A(r)), (e = A(e)) } r = null } @@ -11650,25 +11315,25 @@ object-assign o && o !== e && ((a = o.alternate), null === a || a !== e); ) - r.push(o), (o = I(o)) + r.push(o), (o = A(o)) for ( o = []; i && i !== e && ((a = i.alternate), null === a || a !== e); ) - o.push(i), (i = I(i)) + o.push(i), (i = A(i)) for (i = 0; i < r.length; i++) z(r[i], 'bubbled', t) for (t = o.length; 0 < t--; ) z(o[t], 'captured', n) } function $() { return ( - !Ao && + !Io && Zn.canUseDOM && - (Ao = + (Io = 'textContent' in document.documentElement ? 'textContent' : 'innerText'), - Ao + Io ) } function J() { @@ -11690,7 +11355,7 @@ object-assign function fe() { return 'value' in Ro._root ? Ro._root.value : Ro._root[$()] } - function _e(t, n, o, i) { + function Oe(t, n, o, i) { for (var r in ((this.dispatchConfig = t), (this._targetInst = n), (this.nativeEvent = o), @@ -11722,14 +11387,14 @@ object-assign e.destructor(), 10 > this.eventPool.length && this.eventPool.push(e) } - function Oe(e) { + function Ne(e) { ;(e.eventPool = []), (e.getPooled = T), (e.release = Pe) } - function Ne(e, t, n, o) { - return _e.call(this, e, t, n, o) - } function Me(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) + } + function _e(e, t, n, o) { + return Oe.call(this, e, t, n, o) } function et(e, t) { return 'topKeyUp' === e @@ -11897,7 +11562,7 @@ object-assign } function gt(e, t, n) { return ( - (e = _e.getPooled(oi.change, e, t, n)), + (e = Oe.getPooled(oi.change, e, t, n)), (e.type = 'change'), rt(n), G(e), @@ -11905,29 +11570,29 @@ object-assign ) } function yt(e) { - E(e), _(!1) + E(e), O(!1) } function bt(e) { - var t = N(e) + var t = L(e) if (mt(t)) return e } function vt(e, t) { if ('topChange' === e) return t } - function xt() { - ii && (ii.detachEvent('onpropertychange', Ct), (ri = ii = null)) + function Ct() { + ii && (ii.detachEvent('onpropertychange', xt), (ri = ii = null)) } - function Ct(e) { + function xt(e) { 'value' === e.propertyName && bt(ri) && ((e = gt(ri, e, pt(e))), st(yt, e)) } function wt(e, t, n) { 'topFocus' === e - ? (xt(), (ii = t), (ri = n), ii.attachEvent('onpropertychange', Ct)) - : 'topBlur' == e && xt() + ? (Ct(), (ii = t), (ri = n), ii.attachEvent('onpropertychange', xt)) + : 'topBlur' == e && Ct() } - function kt(e) { + function Tt(e) { if ( 'topSelectionChange' === e || 'topKeyUp' === e || @@ -11935,28 +11600,28 @@ object-assign ) return bt(ri) } - function Tt(e, t) { + function kt(e, t) { if ('topClick' === e) return bt(t) } function St(e, t) { if ('topInput' === e || 'topChange' === e) return bt(t) } function Et(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } - function _t(e) { + function Ot(e) { var t = this.nativeEvent return t.getModifierState ? t.getModifierState(e) : !!(e = si[e]) && !!t[e] } function Pt() { - return _t + return Ot } - function Ot(e, t, n, o) { - return _e.call(this, e, t, n, o) + function Nt(e, t, n, o) { + return Oe.call(this, e, t, n, o) } - function Nt(e) { + function Lt(e) { return ( (e = e.type), 'string' == typeof e @@ -11964,7 +11629,7 @@ object-assign : 'function' == typeof e ? e.displayName || e.name : null ) } - function Lt(e) { + function Mt(e) { var t = e if (e.alternate) for (; t['return']; ) t = t['return'] else { @@ -11974,24 +11639,24 @@ object-assign } return 3 === t.tag ? 2 : 3 } - function Mt(e) { - return !!(e = e._reactInternalFiber) && 2 === Lt(e) - } function Dt(e) { - 2 === Lt(e) ? void 0 : o('188') + return !!(e = e._reactInternalFiber) && 2 === Mt(e) + } + function _t(e) { + 2 === Mt(e) ? void 0 : o('188') } - function It(t) { + function At(t) { var n = t.alternate if (!n) - return (n = Lt(t)), 3 === n ? o('188') : void 0, 1 === n ? null : t + return (n = Mt(t)), 3 === n ? o('188') : void 0, 1 === n ? null : t for (var i = t, r = n; ; ) { var a = i['return'], l = a ? a.alternate : null if (!a || !l) break if (a.child === l.child) { for (var s = a.child; s; ) { - if (s === i) return Dt(a), t - if (s === r) return Dt(a), n + if (s === i) return _t(a), t + if (s === r) return _t(a), n s = s.sibling } o('188') @@ -12031,8 +11696,8 @@ object-assign 3 === i.tag ? void 0 : o('188'), i.stateNode.current === i ? t : n ) } - function At(e) { - if (((e = It(e)), !e)) return null + function It(e) { + if (((e = At(e)), !e)) return null for (var t = e; ; ) { if (5 === t.tag || 6 === t.tag) return t if (t.child) (t.child['return'] = t), (t = t.child) @@ -12048,7 +11713,7 @@ object-assign return null } function Rt(e) { - if (((e = It(e)), !e)) return null + if (((e = At(e)), !e)) return null for (var t = e; ; ) { if (5 === t.tag || 6 === t.tag) return t if (t.child && 4 !== t.tag) (t.child['return'] = t), (t = t.child) @@ -12073,7 +11738,7 @@ object-assign var n for (n = t; n['return']; ) n = n['return'] if (((n = 3 === n.tag ? n.stateNode.containerInfo : null), !n)) break - e.ancestors.push(t), (t = O(n)) + e.ancestors.push(t), (t = N(n)) } while (t) for (n = 0; n < e.ancestors.length; n++) (t = e.ancestors[n]), @@ -12092,8 +11757,8 @@ object-assign if (ci) { var n = pt(t) if ( - ((n = O(n)), - null === n || 'number' != typeof n.tag || 2 === Lt(n) || (n = null), + ((n = N(n)), + null === n || 'number' != typeof n.tag || 2 === Mt(n) || (n = null), ui.length) ) { var o = ui.pop() @@ -12140,9 +11805,9 @@ object-assign } function jt(e) { return ( - Object.prototype.hasOwnProperty.call(e, Ci) || - ((e[Ci] = xi++), (vi[e[Ci]] = {})), - vi[e[Ci]] + Object.prototype.hasOwnProperty.call(e, xi) || + ((e[xi] = Ci++), (vi[e[xi]] = {})), + vi[e[xi]] ) } function Kt(e) { @@ -12181,8 +11846,8 @@ object-assign ) } function qt(e, t) { - if (_i || null == Ti || Ti !== Jn()) return null - var n = Ti + if (Oi || null == ki || ki !== Jn()) return null + var n = ki return ( 'selectionStart' in n && Yt(n) ? (n = { start: n.selectionStart, end: n.selectionEnd }) @@ -12198,21 +11863,21 @@ object-assign Ei && eo(Ei, n) ? null : ((Ei = n), - (e = _e.getPooled(ki.select, Si, e, t)), + (e = Oe.getPooled(Ti.select, Si, e, t)), (e.type = 'select'), - (e.target = Ti), + (e.target = ki), G(e), e) ) } function $t(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function Xt(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function Qt(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function Zt(e) { var t = e.keyCode @@ -12224,19 +11889,19 @@ object-assign ) } function Jt(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function en(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function tn(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function ae(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function be(e, t, n, o) { - return _e.call(this, e, t, n, o) + return Oe.call(this, e, t, n, o) } function ce(e) { 0 > ge || ((e.current = ee[ge]), (ee[ge] = null), ge--) @@ -12278,7 +11943,7 @@ object-assign r = t.type.childContextTypes if ('function' != typeof i.getChildContext) return n for (var a in ((i = i.getChildContext()), i)) - a in r ? void 0 : o('108', Nt(t) || 'Unknown', a) + a in r ? void 0 : o('108', Lt(t) || 'Unknown', a) return l({}, n, i) } function pe(e) { @@ -12421,7 +12086,7 @@ object-assign ;(je = ye(function(e) { return t.onCommitFiberRoot(n, e) })), - (Mi = ye(function(e) { + (Di = ye(function(e) { return t.onCommitFiberUnmount(n, e) })) } catch (e) {} @@ -12431,7 +12096,7 @@ object-assign 'function' == typeof je && je(e) } function nn(e) { - 'function' == typeof Mi && Mi(e) + 'function' == typeof Di && Di(e) } function on(e) { return { @@ -12529,7 +12194,7 @@ object-assign ;(t.updater = s), (e.stateNode = t), (t._reactInternalFiber = e) } var s = { - isMounted: Mt, + isMounted: Dt, enqueueSetState: function(o, i, r) { ;(o = o._reactInternalFiber), (r = void 0 === r ? null : r) var a = n(o) @@ -12800,7 +12465,7 @@ object-assign if ('object' == typeof t && null !== t) { switch (t.$$typeof) { case Qe: - return t.type === Ii + return t.type === Ai ? ((t = te(t.props.children, e.internalContextTag, n, t.key)), (t['return'] = e), t) @@ -12840,7 +12505,7 @@ object-assign switch (o.$$typeof) { case Qe: return o.key === a - ? o.type === Ii + ? o.type === Ai ? g(t, n, o.props.children, i, a) : p(t, n, o, i) : null @@ -12864,7 +12529,7 @@ object-assign case Qe: return ( (t = t.get(null === i.key ? o : i.key) || null), - i.type === Ii + i.type === Ai ? g(n, t, i.props.children, a, i.key) : p(n, t, i, a) ) @@ -12939,15 +12604,15 @@ object-assign n++, v = a.next() ) { r.index > n ? ((b = r), (r = null)) : (b = r.sibling) - var x = c(p, r, v.value, f) - if (null === x) { + var C = c(p, r, v.value, f) + if (null === C) { r || (r = b) break } - t && r && null === x.alternate && i(p, r), - (e = d(x, e, n)), - null == g ? (m = x) : (g.sibling = x), - (g = x), + t && r && null === C.alternate && i(p, r), + (e = d(C, e, n)), + null == g ? (m = C) : (g.sibling = C), + (g = C), (r = b) } if (v.done) return l(p, r), m @@ -12979,7 +12644,7 @@ object-assign return function(t, a, s, d) { 'object' == typeof s && null !== s && - s.type === Ii && + s.type === Ai && null === s.key && (s = s.props.children) var p = 'object' == typeof s && null !== s @@ -12990,11 +12655,11 @@ object-assign var u = s.key for (p = a; null !== p; ) { if (p.key !== u) i(t, p) - else if (10 === p.tag ? s.type === Ii : p.type === s.type) { + else if (10 === p.tag ? s.type === Ai : p.type === s.type) { l(t, p.sibling), (a = n( p, - s.type === Ii ? s.props.children : s.props, + s.type === Ai ? s.props.children : s.props, d, )), (a.ref = Xe(p, s)), @@ -13007,7 +12672,7 @@ object-assign } p = p.sibling } - s.type === Ii + s.type === Ai ? ((a = te( s.props.children, t.internalContextTag, @@ -13110,7 +12775,7 @@ object-assign function rn(t, n, i, r, a) { function l(e, t, n) { var o = t.expirationTime - t.child = null === e ? Ai(t, null, n, o) : Ye(t, e.child, n, o) + t.child = null === e ? Ii(t, null, n, o) : Ye(t, e.child, n, o) } function s(e, t) { var n = t.ref @@ -13166,11 +12831,11 @@ object-assign } var v = t.shouldSetTextContent, y = t.useSyncScheduling, - x = t.shouldDeprioritizeSubtree, - C = n.pushHostContext, + C = t.shouldDeprioritizeSubtree, + x = n.pushHostContext, d = n.pushHostContainer, - k = i.enterHydrationState, - T = i.resetHydrationState, + T = i.enterHydrationState, + k = i.resetHydrationState, S = i.tryToClaimNextHydratableInstance t = Ke( r, @@ -13185,7 +12850,7 @@ object-assign var E = t.adoptClassInstance, w = t.constructClassInstance, m = t.mountClassInstance, - _ = t.updateClassInstance + O = t.updateClassInstance return { beginWork: function(t, i, a) { if (0 === i.expirationTime || i.expirationTime > a) return g(t, i) @@ -13243,7 +12908,7 @@ object-assign ? i.stateNode ? o('153') : (w(i, i.pendingProps), m(i, a), (c = !0)) - : (c = _(t, i, a)), + : (c = O(t, i, a)), p(t, i, c, b) ) case 3: @@ -13251,23 +12916,23 @@ object-assign f(i), (b = i.updateQueue), null === b - ? (T(), (i = h(t, i))) + ? (k(), (i = h(t, i))) : ((c = i.memoizedState), (b = Ie(t, i, b, null, null, a)), c === b - ? (T(), (i = h(t, i))) + ? (k(), (i = h(t, i))) : ((c = b.element), (e = i.stateNode), - (null === t || null === t.child) && e.hydrate && k(i) + (null === t || null === t.child) && e.hydrate && T(i) ? ((i.effectTag |= 2), - (i.child = Ai(i, null, c, a))) - : (T(), l(t, i, c)), + (i.child = Ii(i, null, c, a))) + : (k(), l(t, i, c)), (i.memoizedState = b), (i = i.child))), i ) case 5: - C(i), null === t && S(i), (b = i.type) + x(i), null === t && S(i), (b = i.type) var r = i.memoizedProps return ( (c = i.pendingProps), @@ -13279,7 +12944,7 @@ object-assign ? (r = null) : e && v(b, e) && (i.effectTag |= 16), s(t, i), - 2147483647 !== a && !y && x(b, c) + 2147483647 !== a && !y && C(b, c) ? ((i.expirationTime = 2147483647), (i = null)) : (l(t, i, r), (i.memoizedProps = c), (i = i.child))) : (i = h(t, i)), @@ -13307,7 +12972,7 @@ object-assign (c = b.children), (i.stateNode = null === t - ? Ai(i, i.stateNode, c, a) + ? Ii(i, i.stateNode, c, a) : Ye(i, i.stateNode, c, a)), (i.memoizedProps = b), i.stateNode @@ -13368,7 +13033,7 @@ object-assign : ((t.firstEffect = null), (t.lastEffect = null), (t.child = - null === e ? Ai(t, null, null, n) : Ye(t, e.child, null, n)), + null === e ? Ii(t, null, null, n) : Ye(t, e.child, null, n)), 2 === t.tag && ((e = t.stateNode), (t.memoizedProps = e.props), @@ -13394,13 +13059,13 @@ object-assign v = i.prepareToHydrateHostInstance, p = i.prepareToHydrateHostTextInstance, C = i.popHydrationState, - k, T, + k, S return ( t.mutation - ? ((k = function() {}), - (T = function(e, t, n) { + ? ((T = function() {}), + (k = function(e, t, n) { ;(t.updateQueue = n) && r(t) }), (S = function(t, n, o, i) { @@ -13430,7 +13095,7 @@ object-assign (a.pendingContext = null)), (null === t || null === t.child) && (C(n), (n.effectTag &= -3)), - k(n), + T(n), null ) case 5: @@ -13441,7 +13106,7 @@ object-assign w = n.stateNode, E = y() ;(w = f(w, c, b, a, i, E)), - T(t, n, w, c, b, a, i), + k(t, n, w, c, b, a, i), t.ref !== n.ref && (n.effectTag |= 128) } else { if (!a) @@ -13511,7 +13176,7 @@ object-assign case 10: return null case 4: - return u(n), k(n), null + return u(n), T(n), null case 0: o('167') default: @@ -13590,7 +13255,7 @@ object-assign n = !0 } if (5 === t.tag || 6 === t.tag) - l(t), a ? w(i, t.stateNode) : C(i, t.stateNode) + l(t), a ? w(i, t.stateNode) : x(i, t.stateNode) else if ( (4 === t.tag ? (i = t.stateNode.containerInfo) : r(t), null !== t.child) @@ -13616,8 +13281,8 @@ object-assign u = p.appendChild, y = p.appendChildToContainer, v = p.insertBefore, - x = p.insertInContainerBefore, - C = p.removeChild, + C = p.insertInContainerBefore, + x = p.removeChild, w = p.removeChildFromContainer return { commitResetTextContent: function(e) { @@ -13674,7 +13339,7 @@ object-assign for (var a = t; ; ) { if (5 === a.tag || 6 === a.tag) i - ? r ? x(n, a.stateNode, i) : v(n, a.stateNode, i) + ? r ? C(n, a.stateNode, i) : v(n, a.stateNode, i) : r ? y(n, a.stateNode) : u(n, a.stateNode) else if (4 !== a.tag && null !== a.child) { ;(a.child['return'] = a), (a = a.child) @@ -14002,7 +13667,7 @@ object-assign (se = me = !1), 'function' == typeof Ce && Ce(n.stateNode), ue && (ue.forEach(E), (ue = null)), - null !== ce && ((n = ce), (ce = null), M(n)), + null !== ce && ((n = ce), (ce = null), D(n)), (i = i.current.expirationTime), 0 === i && (R = t = null), i @@ -14049,7 +13714,7 @@ object-assign return null } function a(e) { - var t = A(e.alternate, e, pe) + var t = I(e.alternate, e, pe) return null === t && (t = s(e)), (pi.current = null), t } function C(e) { @@ -14076,7 +13741,7 @@ object-assign ;(X = oo), (he.current = oo), (ie.current = !1), - I(), + A(), (F = t), (pe = i), (de = Y(F.current, null, i)) @@ -14129,7 +13794,7 @@ object-assign (i = ce), (fe = se = !1), (ce = null), - null !== i && M(i), + null !== i && D(i), t.isReadyForCommit ? t.current.alternate : null ) } @@ -14144,7 +13809,7 @@ object-assign if ( (2 === c.tag ? 'function' == typeof c.stateNode.componentDidCatch && - ((l = !0), (u = Nt(c)), (r = c), (s = !0)) + ((l = !0), (u = Lt(c)), (r = c), (s = !0)) : 3 === c.tag && (r = c), S(c)) ) { @@ -14170,14 +13835,14 @@ object-assign case 2: case 5: var v = c._debugOwner, - x = c._debugSource, - C = Nt(c), + C = c._debugSource, + x = Lt(c), m = null - v && (m = Nt(v)), - (v = x), - (C = + v && (m = Lt(v)), + (v = C), + (x = '\n in ' + - (C || 'Unknown') + + (x || 'Unknown') + (v ? ' (at ' + v.fileName.replace(/^.*[\\\/]/, '') + @@ -14187,12 +13852,12 @@ object-assign : m ? ' (created by ' + m + ')' : '')) break a default: - C = '' + x = '' } - ;(y += C), (c = c['return']) + ;(y += x), (c = c['return']) } while (c) ;(c = y), - (o = Nt(o)), + (o = Lt(o)), null == t && (t = new Map()), (i = { componentName: o, @@ -14253,7 +13918,7 @@ object-assign !se && i === F && n < pe && ((de = F = null), (pe = 0)) var r = i, a = n - if ((Me > Le && o('185'), null === r.nextScheduledRoot)) + if ((_e > Me && o('185'), null === r.nextScheduledRoot)) (r.remainingExpirationTime = a), null === ve ? ((be = ve = r), (r.nextScheduledRoot = r)) @@ -14264,9 +13929,9 @@ object-assign ;(0 === e || a < e) && (r.remainingExpirationTime = a) } we || - (Oe - ? Ne && ((ke = r), (Te = 1), w(ke, Te)) - : 1 === a ? L(1, null) : _(a)), + (Ne + ? Le && ((Te = r), (ke = 1), w(Te, ke)) + : 1 === a ? M(1, null) : P(a)), !se && i === F && n < pe && ((de = F = null), (pe = 0)) } else break t = t['return'] @@ -14278,7 +13943,7 @@ object-assign function b() { return (re = (0 | (($() - oe) / 10)) + 2) } - function _(e) { + function P(e) { if (0 !== O) { if (e > O) return Z(xe) @@ -14286,7 +13951,7 @@ object-assign var t = $() - oe ;(O = e), (xe = Q(N, { timeout: 10 * (e - 2) - t })) } - function P() { + function L() { var t = 0, n = null if (null !== ve) @@ -14315,27 +13980,27 @@ object-assign if (((0 == t || a < t) && ((t = a), (n = r)), r === ve)) break ;(i = r), (r = r.nextScheduledRoot) } - ;(i = ke), null !== i && i === n ? Me++ : (Me = 0), (ke = n), (Te = t) + ;(i = Te), null !== i && i === n ? _e++ : (_e = 0), (Te = n), (ke = t) } function N(e) { - L(0, e) + M(0, e) } - function L(e, t) { + function M(e, t) { for ( - Pe = t, P(); - null !== ke && 0 != Te && (0 === e || Te <= e) && !Se; + Pe = t, L(); + null !== Te && 0 != ke && (0 === e || ke <= e) && !Se; ) - w(ke, Te), P() + w(Te, ke), L() if ( (null !== Pe && ((O = 0), (xe = -1)), - 0 != Te && _(Te), + 0 != ke && P(ke), (Pe = null), (Se = !1), - (Me = 0), + (_e = 0), Ee) ) - throw ((e = _e), (_e = null), (Ee = !1), e) + throw ((e = Oe), (Oe = null), (Ee = !1), e) } function w(e, t) { if ((we ? o('245') : void 0, (we = !0), t <= b())) { @@ -14358,30 +14023,30 @@ object-assign we = !1 } function m() { - return null === Pe || Pe.timeRemaining() > Ie ? !1 : (Se = !0) + return null === Pe || Pe.timeRemaining() > Ae ? !1 : (Se = !0) } - function M(e) { - null === ke ? o('246') : void 0, - (ke.remainingExpirationTime = 0), - Ee || ((Ee = !0), (_e = e)) + function D(e) { + null === Te ? o('246') : void 0, + (Te.remainingExpirationTime = 0), + Ee || ((Ee = !0), (Oe = e)) } - var D = sn(i), + var _ = sn(i), r = dn(i), - n = D.popHostContainer, - p = D.popHostContext, - I = D.resetHostContainer, - x = rn(i, D, r, g, h), - A = x.beginWork, + n = _.popHostContainer, + p = _.popHostContext, + A = _.resetHostContainer, + x = rn(i, _, r, g, h), + I = x.beginWork, V = x.beginFailedWork, - W = an(i, D, r).completeWork - D = ln(i, T) - var z = D.commitResetTextContent, - U = D.commitPlacement, - B = D.commitDeletion, - j = D.commitWork, - K = D.commitLifeCycles, - G = D.commitAttachRef, - q = D.commitDetachRef, + W = an(i, _, r).completeWork + _ = ln(i, T) + var z = _.commitResetTextContent, + U = _.commitPlacement, + B = _.commitDeletion, + j = _.commitWork, + K = _.commitLifeCycles, + G = _.commitAttachRef, + q = _.commitDetachRef, $ = i.now, Q = i.scheduleDeferredCallback, Z = i.cancelDeferredCallback, @@ -14408,44 +14073,44 @@ object-assign O = 0, xe = -1, we = !1, - ke = null, - Te = 0, + Te = null, + ke = 0, Se = !1, Ee = !1, - _e = null, + Oe = null, Pe = null, - Oe = !1, Ne = !1, - Le = 1e3, - Me = 0, - Ie = 1 + Le = !1, + Me = 1e3, + _e = 0, + Ae = 1 return { computeAsyncExpiration: c, computeExpirationForFiber: h, scheduleWork: g, batchedUpdates: function(e, t) { - var n = Oe - Oe = !0 + var n = Ne + Ne = !0 try { return e(t) } finally { - ;(Oe = n) || we || L(1, null) + ;(Ne = n) || we || M(1, null) } }, unbatchedUpdates: function(e) { - if (Oe && !Ne) { - Ne = !0 + if (Ne && !Le) { + Le = !0 try { return e() } finally { - Ne = !1 + Le = !1 } } return e() }, flushSync: function(e) { - var t = Oe - Oe = !0 + var t = Ne + Ne = !0 try { a: { var n = ae @@ -14460,7 +14125,7 @@ object-assign } return i } finally { - ;(Oe = t), we ? o('187') : void 0, L(1, null) + ;(Ne = t), we ? o('187') : void 0, M(1, null) } }, deferredUpdates: function(e) { @@ -14476,7 +14141,7 @@ object-assign } function un(t) { function n(e) { - return (e = At(e)), null === e ? null : e.stateNode + return (e = It(e)), null === e ? null : e.stateNode } var i = t.getPublicInstance t = pn(t) @@ -14509,7 +14174,7 @@ object-assign var p b: { for ( - 2 === Lt(i) && 2 === i.tag ? void 0 : o('170'), p = i; + 2 === Mt(i) && 2 === i.tag ? void 0 : o('170'), p = i; 3 !== p.tag; ) { @@ -14654,7 +14319,7 @@ object-assign function vn(e, t) { ;(t = t.checked), null != t && hn(e, 'checked', t) } - function xn(e, t) { + function Cn(e, t) { vn(e, t) var n = t.value null == n @@ -14672,7 +14337,7 @@ object-assign n != t || (n == t && e.value != n)) && (e.value = '' + n) : e.value !== '' + n && (e.value = '' + n) } - function Cn(e, t) { + function xn(e, t) { switch (t.type) { case 'submit': case 'reset': @@ -14706,14 +14371,14 @@ object-assign t ) } - function kn(e, t) { + function Tn(e, t) { return ( (e = l({ children: void 0 }, t)), (t = wn(t.children)) && (e.children = t), e ) } - function Tn(t, n, o, i) { + function kn(t, n, o, i) { if (((t = t.options), n)) { n = {} for (var r = 0; r < o.length; r++) n['$' + o[r]] = !0 @@ -14749,7 +14414,7 @@ object-assign }) ) } - function _n(e, t) { + function On(e, t) { var n = t.value null == n && ((n = t.defaultValue), @@ -14769,25 +14434,25 @@ object-assign null == t.defaultValue && (e.defaultValue = n)), null != t.defaultValue && (e.defaultValue = t.defaultValue) } - function On(e) { + function Nn(e) { var t = e.textContent t === e._wrapperState.initialValue && (e.value = t) } - function Nn(e) { + function Ln(e) { return 'svg' === e ? 'http://www.w3.org/2000/svg' : 'math' === e ? 'http://www.w3.org/1998/Math/MathML' : 'http://www.w3.org/1999/xhtml' } - function Ln(e, t) { + function Mn(e, t) { return null == e || 'http://www.w3.org/1999/xhtml' === e - ? Nn(t) + ? Ln(t) : 'http://www.w3.org/2000/svg' === e && 'foreignObject' === t ? 'http://www.w3.org/1999/xhtml' : e } - function Mn(e, t) { + function Dn(e, t) { if (t) { var n = e.firstChild if (n && n === e.lastChild && 3 === n.nodeType) @@ -14795,7 +14460,7 @@ object-assign } e.textContent = t } - function Dn(t, n) { + function _n(t, n) { for (var o in ((t = t.style), n)) if (n.hasOwnProperty(o)) { var i = 0 === o.indexOf('--'), @@ -14814,7 +14479,7 @@ object-assign i ? t.setProperty(o, r) : (t[o] = r) } } - function In(e, t, n) { + function An(e, t, n) { t && (sr[e] && (null != t.children || null != t.dangerouslySetInnerHTML @@ -14828,7 +14493,7 @@ object-assign : o('61')), null != t.style && 'object' != typeof t.style ? o('62', n()) : void 0) } - function An(e, t) { + function In(e, t) { if (-1 === e.indexOf('-')) return 'string' == typeof t.is return 'annotation-xml' === e || 'color-profile' === e || @@ -14844,7 +14509,7 @@ object-assign function Rn(t, n) { t = 9 === t.nodeType || 11 === t.nodeType ? t : t.ownerDocument var o = jt(t) - n = ko[n] + n = To[n] for (var i = 0, r; i < n.length; i++) (r = n[i]), (o.hasOwnProperty(r) && o[r]) || @@ -14867,7 +14532,7 @@ object-assign function Fn(e, t, n, o) { return ( (n = 9 === n.nodeType ? n : n.ownerDocument), - o === dr && (o = Nn(e)), + o === dr && (o = Ln(e)), o === dr ? 'script' === e ? ((e = n.createElement('div')), @@ -14885,7 +14550,7 @@ object-assign return (9 === t.nodeType ? t : t.ownerDocument).createTextNode(e) } function Vn(t, n, o, i) { - var r = An(n, o) + var r = In(n, o) switch (n) { case 'iframe': case 'object': @@ -14917,7 +14582,7 @@ object-assign Rn(i, 'onChange') break case 'option': - e = kn(t, o) + e = Tn(t, o) break case 'select': Sn(t, o), @@ -14926,7 +14591,7 @@ object-assign Rn(i, 'onChange') break case 'textarea': - _n(t, o), + On(t, o), (e = En(t, o)), Vt('topInvalid', 'invalid', t), Rn(i, 'onChange') @@ -14934,20 +14599,20 @@ object-assign default: e = o } - In(n, e, pr) + An(n, e, pr) var a = e, s for (s in a) if (a.hasOwnProperty(s)) { var d = a[s] 'style' === s - ? Dn(t, d, pr) + ? _n(t, d, pr) : 'dangerouslySetInnerHTML' === s ? ((d = d ? d.__html : void 0), null != d && ir(t, d)) : 'children' === s ? 'string' == typeof d - ? ('textarea' !== n || '' != d) && Mn(t, d) - : 'number' == typeof d && Mn(t, '' + d) + ? ('textarea' !== n || '' != d) && Dn(t, d) + : 'number' == typeof d && Dn(t, '' + d) : 'suppressContentEditableWarning' != s && 'suppressHydrationWarning' != s && 'autoFocus' != s && @@ -14956,9 +14621,9 @@ object-assign : r ? mn(t, s, d) : null != d && hn(t, s, d)) } 'input' === n - ? (ht(t), Cn(t, o)) + ? (ht(t), xn(t, o)) : 'textarea' === n - ? (ht(t), On(t, o)) + ? (ht(t), Nn(t, o)) : 'option' === n ? null != o.value && t.setAttribute('value', o.value) : 'select' === n @@ -14966,8 +14631,8 @@ object-assign (n = o.value), null == n ? null != o.defaultValue && - Tn(t, !!o.multiple, o.defaultValue, !0) - : Tn(t, !!o.multiple, n, !1)) + kn(t, !!o.multiple, o.defaultValue, !0) + : kn(t, !!o.multiple, n, !1)) : 'function' == typeof e.onClick && (t.onclick = B) } function Wn(t, n, o, i, r) { @@ -14975,7 +14640,7 @@ object-assign 'input' === n ? ((o = yn(t, o)), (i = yn(t, i)), (e = [])) : 'option' === n - ? ((o = kn(t, o)), (i = kn(t, i)), (e = [])) + ? ((o = Tn(t, o)), (i = Tn(t, i)), (e = [])) : 'select' === n ? ((o = l({}, o, { value: void 0 })), (i = l({}, i, { value: void 0 })), @@ -14985,7 +14650,7 @@ object-assign : 'function' != typeof o.onClick && 'function' == typeof i.onClick && (t.onclick = B), - In(n, i, pr) + An(n, i, pr) var a, s for (a in ((t = null), o)) if (!i.hasOwnProperty(a) && o.hasOwnProperty(a) && null != o[a]) @@ -15036,23 +14701,23 @@ object-assign } function zn(t, n, o, i, r) { 'input' === o && 'radio' === r.type && null != r.name && vn(t, r), - An(o, i), - (i = An(o, r)) + In(o, i), + (i = In(o, r)) for (var e = 0; e < n.length; e += 2) { var a = n[e], l = n[e + 1] 'style' === a - ? Dn(t, l, pr) + ? _n(t, l, pr) : 'dangerouslySetInnerHTML' === a ? ir(t, l) : 'children' === a - ? Mn(t, l) + ? Dn(t, l) : i ? null == l ? t.removeAttribute(a) : mn(t, a, l) : null == l ? gn(t, a) : hn(t, a, l) } 'input' === o - ? xn(t, r) + ? Cn(t, r) : 'textarea' === o ? Pn(t, r) : 'select' === o @@ -15063,9 +14728,9 @@ object-assign null == o ? n !== !!r.multiple && (null == r.defaultValue - ? Tn(t, !!r.multiple, r.multiple ? [] : '', !1) - : Tn(t, !!r.multiple, r.defaultValue, !0)) - : Tn(t, !!r.multiple, o, !1)) + ? kn(t, !!r.multiple, r.multiple ? [] : '', !1) + : kn(t, !!r.multiple, r.defaultValue, !0)) + : kn(t, !!r.multiple, o, !1)) : void 0 } function Un(t, n, o, i, r) { @@ -15098,9 +14763,9 @@ object-assign Sn(t, o), Vt('topInvalid', 'invalid', t), Rn(r, 'onChange') break case 'textarea': - _n(t, o), Vt('topInvalid', 'invalid', t), Rn(r, 'onChange') + On(t, o), Vt('topInvalid', 'invalid', t), Rn(r, 'onChange') } - for (var a in (In(n, o, pr), (i = null), o)) + for (var a in (An(n, o, pr), (i = null), o)) o.hasOwnProperty(a) && ((e = o[a]), 'children' === a @@ -15112,10 +14777,10 @@ object-assign : wo.hasOwnProperty(a) && null != e && Rn(r, a)) switch (n) { case 'input': - ht(t), Cn(t, o) + ht(t), xn(t, o) break case 'textarea': - ht(t), On(t, o) + ht(t), Nn(t, o) break case 'select': case 'option': @@ -15172,15 +14837,15 @@ object-assign var $n = Math.min, Xn = String.fromCharCode, Qn = n(0), - Zn = n(91), - l = n(26), - B = n(27), - C = n(92), - Jn = n(93), - eo = n(94), - to = n(95), - no = n(98), - oo = n(36) + Zn = n(73), + l = n(21), + B = n(22), + C = n(74), + Jn = n(75), + eo = n(76), + to = n(77), + no = n(80), + oo = n(28) Qn ? void 0 : o('227') var io = { children: !0, @@ -15464,51 +15129,51 @@ object-assign }, P = null, vo = {}, - xo = [], - Co = {}, + Co = [], + xo = {}, wo = {}, - ko = {}, - To = Object.freeze({ - plugins: xo, - eventNameDispatchConfigs: Co, + To = {}, + ko = Object.freeze({ + plugins: Co, + eventNameDispatchConfigs: xo, registrationNameModules: wo, - registrationNameDependencies: ko, + registrationNameDependencies: To, possibleRegistrationNames: null, injectEventPluginOrder: c, injectEventPluginsByName: f, }), So = null, Eo = null, - _o = null, + Oo = null, Po = null, - Oo = { injectEventPluginOrder: c, injectEventPluginsByName: f }, - No = Object.freeze({ - injection: Oo, + No = { injectEventPluginOrder: c, injectEventPluginsByName: f }, + Lo = Object.freeze({ + injection: No, getListener: w, extractEvents: k, enqueueEvents: E, - processEventQueue: _, + processEventQueue: O, }), - Lo = Math.random() + Mo = Math.random() .toString(36) .slice(2), - Mo = '__reactInternalInstance$' + Lo, - Q = '__reactEventHandlers$' + Lo, - Do = Object.freeze({ + Do = '__reactInternalInstance$' + Mo, + Q = '__reactEventHandlers$' + Mo, + _o = Object.freeze({ precacheFiberNode: function(e, t) { - t[Mo] = e + t[Do] = e }, - getClosestInstanceFromNode: O, + getClosestInstanceFromNode: N, getInstanceFromNode: function(e) { - return (e = e[Mo]), e && (5 === e.tag || 6 === e.tag) ? e : null + return (e = e[Do]), e && (5 === e.tag || 6 === e.tag) ? e : null }, - getNodeFromInstance: N, - getFiberCurrentPropsFromNode: L, + getNodeFromInstance: L, + getFiberCurrentPropsFromNode: _, updateFiberProps: function(e, t) { e[Q] = t }, }), - Io = Object.freeze({ + Ao = Object.freeze({ accumulateTwoPhaseDispatches: G, accumulateTwoPhaseDispatchesSkipTarget: function(e) { g(e, H) @@ -15518,7 +15183,7 @@ object-assign g(e, j) }, }), - Ao = null, + Io = null, Ro = { _root: null, _startText: null, _fallbackText: null }, S = [ 'dispatchConfig', @@ -15542,7 +15207,7 @@ object-assign defaultPrevented: null, isTrusted: null, } - l(_e.prototype, { + l(Oe.prototype, { preventDefault: function() { this.defaultPrevented = !0 var e = this.nativeEvent @@ -15571,8 +15236,8 @@ object-assign for (e = 0; e < S.length; e++) this[S[e]] = null }, }), - (_e.Interface = Fo), - (_e.augmentClass = function(e, t) { + (Oe.Interface = Fo), + (Oe.augmentClass = function(e, t) { function n() {} n.prototype = this.prototype var o = new n() @@ -15581,11 +15246,11 @@ object-assign (e.prototype.constructor = e), (e.Interface = l({}, this.Interface, t)), (e.augmentClass = this.augmentClass), - Oe(e) + Ne(e) }), - Oe(_e), - _e.augmentClass(Ne, { data: null }), - _e.augmentClass(Me, { data: null }) + Ne(Oe), + Oe.augmentClass(Me, { data: null }), + Oe.augmentClass(_e, { data: null }) var Ho = [9, 13, 27, 32], Vo = Zn.canUseDOM && 'CompositionEvent' in window, Wo = null @@ -15725,7 +15390,7 @@ object-assign eventTypes: oi, _isInputEventSupported: ai, extractEvents: function(t, n, o, i) { - var r = n ? N(n) : window, + var r = n ? L(n) : window, e = r.nodeName && r.nodeName.toLowerCase() if ('select' === e || ('input' === e && 'file' === r.type)) var a = vt else if (!dt(r)) @@ -15733,10 +15398,10 @@ object-assign e && 'input' === e.toLowerCase() && ('checkbox' === r.type || 'radio' === r.type) && - (a = Tt) + (a = kt) else if (ai) a = St else { - a = kt + a = Tt var l = wt } return a && (a = a(t, n)) @@ -15751,14 +15416,14 @@ object-assign r.getAttribute('value') !== t && r.setAttribute('value', t))) }, } - _e.augmentClass(Et, { view: null, detail: null }) + Oe.augmentClass(Et, { view: null, detail: null }) var si = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey', } - Et.augmentClass(Ot, { + Et.augmentClass(Nt, { screenX: null, screenY: null, clientX: null, @@ -15900,13 +15565,13 @@ object-assign topWheel: 'wheel', }, vi = {}, - xi = 0, - Ci = '_reactListenersID' + ('' + Math.random()).slice(2), + Ci = 0, + xi = '_reactListenersID' + ('' + Math.random()).slice(2), wi = Zn.canUseDOM && 'documentMode' in document && 11 >= document.documentMode, - ki = { + Ti = { select: { phasedRegistrationNames: { bubbled: 'onSelect', @@ -15924,16 +15589,16 @@ object-assign ], }, }, - Ti = null, + ki = null, Si = null, Ei = null, - _i = !1 - _e.augmentClass($t, { + Oi = !1 + Oe.augmentClass($t, { animationName: null, elapsedTime: null, pseudoElement: null, }), - _e.augmentClass(Xt, { + Oe.augmentClass(Xt, { clipboardData: function(e) { return 'clipboardData' in e ? e.clipboardData : window.clipboardData }, @@ -15953,7 +15618,7 @@ object-assign Scroll: 'ScrollLock', MozPrintableKey: 'Unidentified', }, - Oi = { + Ni = { 8: 'Backspace', 9: 'Tab', 12: 'Clear', @@ -16000,7 +15665,7 @@ object-assign return 'keypress' === e.type ? ((e = Zt(e)), 13 === e ? 'Enter' : Xn(e)) : 'keydown' === e.type || 'keyup' === e.type - ? Oi[e.keyCode] || 'Unidentified' + ? Ni[e.keyCode] || 'Unidentified' : '' }, location: null, @@ -16023,7 +15688,7 @@ object-assign : 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0 }, }), - Ot.augmentClass(en, { dataTransfer: null }), + Nt.augmentClass(en, { dataTransfer: null }), Et.augmentClass(tn, { touches: null, targetTouches: null, @@ -16034,12 +15699,12 @@ object-assign shiftKey: null, getModifierState: Pt, }), - _e.augmentClass(ae, { + Oe.augmentClass(ae, { propertyName: null, elapsedTime: null, pseudoElement: null, }), - Ot.augmentClass(be, { + Nt.augmentClass(be, { deltaX: function(e) { return 'deltaX' in e ? e.deltaX @@ -16055,8 +15720,8 @@ object-assign deltaZ: null, deltaMode: null, }) - var Ni = {}, - Li = {} + var Li = {}, + Mi = {} ;[ 'abort', 'animationEnd', @@ -16131,13 +15796,13 @@ object-assign phasedRegistrationNames: { bubbled: n, captured: n + 'Capture' }, dependencies: [t], }), - (Ni[e] = n), - (Li[t] = n) + (Li[e] = n), + (Mi[t] = n) }) ;(yi = function(e, t, n, o) { - ;(e = k(e, t, n, o)), E(e), _(!1) + ;(e = k(e, t, n, o)), E(e), O(!1) }), - Oo.injectEventPluginOrder([ + No.injectEventPluginOrder([ 'ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', @@ -16146,14 +15811,14 @@ object-assign 'SelectEventPlugin', 'BeforeInputEventPlugin', ]), - (So = Do.getFiberCurrentPropsFromNode), - (Eo = Do.getInstanceFromNode), - (_o = Do.getNodeFromInstance), - Oo.injectEventPluginsByName({ + (So = _o.getFiberCurrentPropsFromNode), + (Eo = _o.getInstanceFromNode), + (Oo = _o.getNodeFromInstance), + No.injectEventPluginsByName({ SimpleEventPlugin: { - eventTypes: Ni, + eventTypes: Li, extractEvents: function(t, n, o, i) { - var r = Li[t] + var r = Mi[t] if (!r) return null switch (t) { case 'topKeyPress': @@ -16175,7 +15840,7 @@ object-assign case 'topMouseOut': case 'topMouseOver': case 'topContextMenu': - t = Ot + t = Nt break case 'topDrag': case 'topDragEnd': @@ -16213,7 +15878,7 @@ object-assign t = Xt break default: - t = _e + t = Oe } return (n = t.getPooled(r, n, o, i)), G(n), n }, @@ -16235,19 +15900,19 @@ object-assign if ( ('topMouseOut' === t ? ((t = n), - (n = (n = o.relatedTarget || o.toElement) ? O(n) : null)) + (n = (n = o.relatedTarget || o.toElement) ? N(n) : null)) : (t = null), t === n) ) return null - var e = null == t ? r : N(t) - r = null == n ? r : N(n) - var a = Ot.getPooled(di.mouseLeave, t, o, i) + var e = null == t ? r : L(t) + r = null == n ? r : L(n) + var a = Nt.getPooled(di.mouseLeave, t, o, i) return ( (a.type = 'mouseleave'), (a.target = e), (a.relatedTarget = r), - (o = Ot.getPooled(di.mouseEnter, n, o, i)), + (o = Nt.getPooled(di.mouseEnter, n, o, i)), (o.type = 'mouseenter'), (o.target = r), (o.relatedTarget = e), @@ -16258,7 +15923,7 @@ object-assign }, ChangeEventPlugin: li, SelectEventPlugin: { - eventTypes: ki, + eventTypes: Ti, extractEvents: function(t, n, o, i) { var r = i.window === i @@ -16267,7 +15932,7 @@ object-assign a if (!(a = !r)) { a: { - ;(r = jt(r)), (a = ko.onSelect) + ;(r = jt(r)), (a = To.onSelect) for (var l = 0, s; l < a.length; l++) if (((s = a[l]), !r.hasOwnProperty(s) || !r[s])) { r = !1 @@ -16278,20 +15943,20 @@ object-assign a = !r } if (a) return null - switch (((r = n ? N(n) : window), t)) { + switch (((r = n ? L(n) : window), t)) { case 'topFocus': ;(dt(r) || 'true' === r.contentEditable) && - ((Ti = r), (Si = n), (Ei = null)) + ((ki = r), (Si = n), (Ei = null)) break case 'topBlur': - Ei = Si = Ti = null + Ei = Si = ki = null break case 'topMouseDown': - _i = !0 + Oi = !0 break case 'topContextMenu': case 'topMouseUp': - return (_i = !1), qt(o, i) + return (Oi = !1), qt(o, i) case 'topSelectionChange': if (wi) break case 'topKeyDown': @@ -16332,7 +15997,7 @@ object-assign (qo || e !== Go.compositionStart ? e === Go.compositionEnd && qo && (r = J()) : ((Ro._root = i), (Ro._startText = fe()), (qo = !0))), - (e = Ne.getPooled(e, n, o, i)), + (e = Me.getPooled(e, n, o, i)), r ? (e.data = r) : ((r = tt(o)), null !== r && (e.data = r)), @@ -16340,7 +16005,7 @@ object-assign (r = e)) : (r = null), (t = Bo ? nt(t, o) : ot(t, o)) - ? ((n = Me.getPooled(Go.beforeInput, n, o, i)), + ? ((n = _e.getPooled(Go.beforeInput, n, o, i)), (n.data = t), G(n)) : (n = null), @@ -16356,17 +16021,17 @@ object-assign ie = { current: !1 }, X = oo, je = null, - Mi = null, - Di = 'function' == typeof Symbol && Symbol['for'], - Qe = Di ? Symbol['for']('react.element') : 60103, - Re = Di ? Symbol['for']('react.call') : 60104, - Se = Di ? Symbol['for']('react.return') : 60105, - Te = Di ? Symbol['for']('react.portal') : 60106, - Ii = Di ? Symbol['for']('react.fragment') : 60107, + Di = null, + _i = 'function' == typeof Symbol && Symbol['for'], + Qe = _i ? Symbol['for']('react.element') : 60103, + Re = _i ? Symbol['for']('react.call') : 60104, + Se = _i ? Symbol['for']('react.return') : 60105, + Te = _i ? Symbol['for']('react.portal') : 60106, + Ai = _i ? Symbol['for']('react.fragment') : 60107, Ve = 'function' == typeof Symbol && Symbol.iterator, We = Array.isArray, Ye = $e(!0), - Ai = $e(!1), + Ii = $e(!1), Ri = {}, Fi = Object.freeze({ default: un }), Hi = (Fi && un) || Fi, @@ -16606,7 +16271,7 @@ object-assign restoreControlledState: function(t, n, i) { switch (n) { case 'input': - if ((xn(t, i), (n = i.name), 'radio' === i.type && null != n)) { + if ((Cn(t, i), (n = i.name), 'radio' === i.type && null != n)) { for (i = t; i.parentNode; ) i = i.parentNode for ( i = i.querySelectorAll( @@ -16620,8 +16285,8 @@ object-assign ) { var r = i[n] if (r !== t && r.form === t.form) { - var a = L(r) - a ? void 0 : o('90'), mt(r), xn(r, a) + var a = _(r) + a ? void 0 : o('90'), mt(r), Cn(r, a) } } } @@ -16630,7 +16295,7 @@ object-assign Pn(t, i) break case 'select': - ;(n = i.value), null != n && Tn(t, !!i.multiple, n, !1) + ;(n = i.value), null != n && kn(t, !!i.multiple, n, !1) } }, }) @@ -16642,16 +16307,16 @@ object-assign var t = e.nodeType return ( 9 === t || 11 === t - ? (e = (e = e.documentElement) ? e.namespaceURI : Ln(null, '')) + ? (e = (e = e.documentElement) ? e.namespaceURI : Mn(null, '')) : ((t = 8 === t ? e.parentNode : e), (e = t.namespaceURI || null), (t = t.tagName), - (e = Ln(e, t))), + (e = Mn(e, t))), e ) }, getChildHostContext: function(e, t) { - return Ln(e, t) + return Mn(e, t) }, getPublicInstance: function(e) { return e @@ -16768,7 +16433,7 @@ object-assign ;(hr = null), Ht(fr), (fr = null) }, createInstance: function(t, n, o, i, r) { - return (t = Fn(t, n, o, i)), (t[Mo] = r), (t[Q] = n), t + return (t = Fn(t, n, o, i)), (t[Do] = r), (t[Q] = n), t }, appendInitialChild: function(e, t) { e.appendChild(t) @@ -16801,7 +16466,7 @@ object-assign return !!t.hidden }, createTextInstance: function(e, t, n, o) { - return (e = Hn(e, t)), (e[Mo] = o), e + return (e = Hn(e, t)), (e[Do] = o), e }, now: zi, mutation: { @@ -16869,10 +16534,10 @@ object-assign return e }, hydrateInstance: function(t, n, o, i, r, e) { - return (t[Mo] = e), (t[Q] = o), Un(t, n, o, r, i) + return (t[Do] = e), (t[Q] = o), Un(t, n, o, r, i) }, hydrateTextInstance: function(e, t, n) { - return (e[Mo] = n), Bn(e, t) + return (e[Do] = n), Bn(e, t) }, didNotMatchHydratedContainerTextInstance: function() {}, didNotMatchHydratedTextInstance: function() {}, @@ -16935,16 +16600,16 @@ object-assign unstable_deferredUpdates: mr.deferredUpdates, flushSync: mr.flushSync, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - EventPluginHub: No, - EventPluginRegistry: To, - EventPropagators: Io, + EventPluginHub: Lo, + EventPluginRegistry: ko, + EventPropagators: Ao, ReactControlledComponent: Jo, - ReactDOMComponentTree: Do, + ReactDOMComponentTree: _o, ReactDOMEventListener: fi, }, } mr.injectIntoDevTools({ - findFiberByHostInstance: O, + findFiberByHostInstance: N, bundleType: 0, version: '16.2.0', rendererPackageName: 'react-dom', @@ -16972,7 +16637,7 @@ object-assign }, function(e, t, n) { 'use strict' - var o = n(27) + var o = n(22) e.exports = { listen: function(e, t, n) { return e.addEventListener @@ -17060,12 +16725,12 @@ object-assign !!(16 & e.compareDocumentPosition(t))))) ) } - var i = n(96) + var i = n(78) e.exports = o }, function(e, t, n) { 'use strict' - var o = n(97) + var o = n(79) e.exports = function(e) { return o(e) && 3 == e.nodeType } @@ -17103,8 +16768,8 @@ object-assign }) } function i(e) { - for (var t = 0; t < T.length; t++) - e = e.replace(T[t].letters, T[t].base) + for (var t = 0; t < k.length; t++) + e = e.replace(k[t].letters, k[t].base) return e } function r(e) { @@ -17166,7 +16831,7 @@ object-assign return t[y] == e[y] }), v = e === t, - x = k()(d, { + C = T()(d, { 'Select-option': !0, 'is-selected': b, 'is-focused': v, @@ -17175,7 +16840,7 @@ object-assign return m.a.createElement( p, { - className: x, + className: C, focusOption: n, inputValue: o, instancePrefix: r, @@ -17241,12 +16906,12 @@ object-assign y = n.n(g), b = n(2), v = n.n(b), - x = n(102), - C = n.n(x), + C = n(84), + x = n.n(C), w = n(3), - k = n.n(w) + T = n.n(w) o.propTypes = { onMouseDown: y.a.func } - var T = [ + var k = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g, @@ -17544,7 +17209,7 @@ object-assign } ) })(), - _ = function(e, t) { + O = function(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') }, @@ -17561,7 +17226,7 @@ object-assign return n && e(t.prototype, n), o && e(t, o), t } })(), - O = function(e, t, n) { + N = function(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -17574,7 +17239,7 @@ object-assign e ) }, - N = + L = Object.assign || function(e) { for (var t = 1, n; t < arguments.length; t++) @@ -17582,7 +17247,7 @@ object-assign Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]) return e }, - L = function(e, t) { + M = function(e, t) { if ('function' != typeof t && null !== t) throw new TypeError( 'Super expression must either be null or a function, not ' + @@ -17601,24 +17266,24 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)) }, - M = function(e, t) { + D = function(e, t) { var n = {} for (var o in e) 0 <= t.indexOf(o) || (Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o])) return n }, - D = function(e, t) { + _ = function(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) ? t : e }, - I = (function(e) { + A = (function(e) { function t(e) { - _(this, t) - var n = D( + O(this, t) + var n = _( this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e), ) @@ -17634,7 +17299,7 @@ object-assign ) } return ( - L(t, e), + M(t, e), P(t, [ { key: 'blockEvent', @@ -17700,7 +17365,7 @@ object-assign t = e.option, n = e.instancePrefix, o = e.optionIndex, - i = k()(this.props.className, t.className) + i = T()(this.props.className, t.className) return t.disabled ? m.a.createElement( 'div', @@ -17735,7 +17400,7 @@ object-assign t ) })(m.a.Component) - I.propTypes = { + A.propTypes = { children: y.a.node, className: y.a.string, instancePrefix: y.a.string.isRequired, @@ -17748,10 +17413,10 @@ object-assign option: y.a.object.isRequired, optionIndex: y.a.number, } - var A = (function(e) { + var I = (function(e) { function t(e) { - _(this, t) - var n = D( + O(this, t) + var n = _( this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e), ) @@ -17765,7 +17430,7 @@ object-assign ) } return ( - L(t, e), + M(t, e), P(t, [ { key: 'handleMouseDown', @@ -17857,7 +17522,7 @@ object-assign return m.a.createElement( 'div', { - className: k()('Select-value', this.props.value.className), + className: T()('Select-value', this.props.value.className), style: this.props.value.style, title: this.props.value.title, }, @@ -17870,7 +17535,7 @@ object-assign t ) })(m.a.Component) - A.propTypes = { + I.propTypes = { children: y.a.node, disabled: y.a.bool, id: y.a.string, @@ -17894,8 +17559,8 @@ object-assign V = 1, W = (function(e) { function t(e) { - _(this, t) - var n = D( + O(this, t) + var n = _( this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e), ) @@ -17937,7 +17602,7 @@ object-assign ) } return ( - L(t, e), + M(t, e), P(t, [ { key: 'componentWillMount', @@ -18684,12 +18349,12 @@ object-assign key: 'renderInput', value: function(e, t) { var n = this, - o = k()('Select-input', this.props.inputProps.className), + o = T()('Select-input', this.props.inputProps.className), i = !!this.state.isOpen, - r = k()( + r = T()( ((l = {}), - O(l, this._instancePrefix + '-list', i), - O( + N(l, this._instancePrefix + '-list', i), + N( l, this._instancePrefix + '-backspace-remove-message', this.props.multi && @@ -18699,7 +18364,7 @@ object-assign ), l), ), - a = N({}, this.props.inputProps, { + a = L({}, this.props.inputProps, { role: 'combobox', 'aria-expanded': '' + i, 'aria-owns': r, @@ -18727,11 +18392,11 @@ object-assign if (this.props.disabled || !this.props.searchable) { var s = this.props.inputProps, d = s.inputClassName, - p = M(s, ['inputClassName']), - u = k()(O({}, this._instancePrefix + '-list', i)) + p = D(s, ['inputClassName']), + u = T()(N({}, this._instancePrefix + '-list', i)) return m.a.createElement( 'div', - N({}, p, { + L({}, p, { role: 'combobox', 'aria-expanded': i, 'aria-owns': u, @@ -18754,13 +18419,13 @@ object-assign } return this.props.autosize ? m.a.createElement( - C.a, - N({ id: this.props.id }, a, { minWidth: '5' }), + x.a, + L({ id: this.props.id }, a, { minWidth: '5' }), ) : m.a.createElement( 'div', { className: o, key: 'input-wrap' }, - m.a.createElement('input', N({ id: this.props.id }, a)), + m.a.createElement('input', L({ id: this.props.id }, a)), ) }, }, @@ -18989,7 +18654,7 @@ object-assign null === i ? (this._focusedOption = null) : (this._focusedOption = n[i]) - var a = k()('Select', this.props.className, { + var a = T()('Select', this.props.className, { 'Select--multi': this.props.multi, 'Select--single': !this.props.multi, 'is-clearable': this.props.clearable, @@ -19184,7 +18849,7 @@ object-assign onSelectResetsInput: !0, onCloseResetsInput: !0, openOnClick: !0, - optionComponent: I, + optionComponent: A, pageSize: 5, placeholder: 'Select...', removeSelected: !0, @@ -19195,7 +18860,7 @@ object-assign simpleValue: !1, tabSelectsValue: !0, trimFilter: !0, - valueComponent: A, + valueComponent: I, valueKey: 'value', }) var z = { @@ -19218,8 +18883,8 @@ object-assign U = {}, B = (function(e) { function t(e, n) { - _(this, t) - var o = D( + O(this, t) + var o = _( this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n), ) @@ -19231,7 +18896,7 @@ object-assign ) } return ( - L(t, e), + M(t, e), P(t, [ { key: 'componentDidMount', @@ -19353,7 +19018,7 @@ object-assign }, } return n( - N({}, this.props, p, { + L({}, this.props, p, { isLoading: s, onInputChange: this.onInputChange, }), @@ -19379,8 +19044,8 @@ object-assign }) var j = (function(e) { function t(e, n) { - _(this, t) - var o = D( + O(this, t) + var o = _( this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n), ) @@ -19394,7 +19059,7 @@ object-assign ) } return ( - L(t, e), + M(t, e), P(t, [ { key: 'createNewOption', @@ -19468,7 +19133,7 @@ object-assign value: function(e) { var t = this.props.menuRenderer return t( - N({}, e, { + L({}, e, { onSelect: this.onOptionSelect, selectValue: this.onOptionSelect, }), @@ -19522,14 +19187,14 @@ object-assign n = t.newOptionCreator, o = t.shouldKeyDownEventCreateNewOption, i = t.ref, - r = M(t, [ + r = D(t, [ 'newOptionCreator', 'shouldKeyDownEventCreateNewOption', 'ref', ]), a = this.props.children a || (a = s) - var l = N({}, r, { + var l = L({}, r, { allowCreate: !0, filterOptions: this.filterOptions, menuRenderer: this.menuRenderer, @@ -19582,15 +19247,15 @@ object-assign var K = (function(e) { function t() { return ( - _(this, t), - D( + O(this, t), + _( this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments), ) ) } return ( - L(t, e), + M(t, e), P(t, [ { key: 'focus', @@ -19604,14 +19269,14 @@ object-assign var e = this return m.a.createElement(B, this.props, function(t) { var n = t.ref, - o = M(t, ['ref']), + o = D(t, ['ref']), i = n return m.a.createElement(j, o, function(t) { var n = t.ref, - o = M(t, ['ref']), + o = D(t, ['ref']), r = n return e.props.children( - N({}, o, { + L({}, o, { ref: function(t) { r(t), i(t), (e.select = t) }, @@ -19634,15 +19299,15 @@ object-assign (W.Async = B), (W.AsyncCreatable = K), (W.Creatable = j), - (W.Value = A), - (W.Option = I), + (W.Value = I), + (W.Option = A), (t.a = W) }, function(e, t, n) { 'use strict' - var o = n(27), - i = n(55), - r = n(101) + var o = n(22), + i = n(44), + r = n(83) e.exports = function() { function e(e, t, n, o, a, l) { l === r || @@ -19794,7 +19459,7 @@ object-assign .substr(2, 12) : void 0 }, - x = (function(e) { + C = (function(e) { function t(e) { r(this, t) var n = a( @@ -19978,7 +19643,7 @@ object-assign t ) })(p.Component) - ;(x.propTypes = { + ;(C.propTypes = { className: f.default.string, defaultValue: f.default.any, id: f.default.string, @@ -19994,8 +19659,8 @@ object-assign style: f.default.object, value: f.default.any, }), - (x.defaultProps = { minWidth: 1, injectStyles: !0 }), - (t.default = x) + (C.defaultProps = { minWidth: 1, injectStyles: !0 }), + (t.default = C) }, function(e, t, n) { 'use strict' @@ -20029,7 +19694,7 @@ object-assign 'undefined' == typeof navigator || !0 === e.PREVENT_CODEMIRROR_RENDER, a - r || (a = n(54)) + r || (a = n(43)) var l = (function() { function e() {} return ( @@ -20527,7 +20192,7 @@ object-assign ) })(i.Component) t.UnControlled = p - }.call(t, n(104))) + }.call(t, n(86))) }, function(e) { var t = (function() { @@ -20542,30 +20207,43 @@ object-assign }, function(e, t, n) { 'use strict' - function o(e, t) { - function n() { - this.constructor = e - } - a(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())) - } - var r = n(0), - i = (function(e) { - return e && 'object' == typeof e && 'default' in e ? e['default'] : e - })(n(106)), - a = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) - }, - l = + var o = n(0), + i = n.n(o), + r = n(88), + a = n(89), + l = n(162), + s = n(163), + d = n(164), + p = n(165), + u = n(166), + c = n(167), + f = n(168), + h = n(169), + m = + (this && this.__extends) || + (function() { + var e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + } + return function(t, n) { + function o() { + this.constructor = t + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((o.prototype = n.prototype), new o())) + } + })(), + g = + (this && this.__assign) || Object.assign || function(e) { for (var t = 1, o = arguments.length, n; t < o; t++) @@ -20573,16 +20251,268 @@ object-assign Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) return e }, - s = n(75), - d = n(177), - p = n(219), - u = function(e, t, n) { - var o = function() { - for (var e = [], o = 0; o < arguments.length; o++) - e[o] = arguments[o] - var r = e[0], - a = e[1] - switch (r.type) { + y = + (this && this.__read) || + function(t, o) { + var n = 'function' == typeof Symbol && t[Symbol.iterator] + if (!n) return t + var a = n.call(t), + i = [], + l, + r + try { + for (; (void 0 === o || 0 < o--) && !(l = a.next()).done; ) + i.push(l.value) + } catch (e) { + r = { error: e } + } finally { + try { + l && !l.done && (n = a['return']) && n.call(a) + } finally { + if (r) throw r.error + } + } + return i + }, + b = + (this && this.__spread) || + function() { + for (var e = [], t = 0; t < arguments.length; t++) + e = e.concat(y(arguments[t])) + return e + }, + v = n(45), + C = (function(e) { + function t(t) { + var n = e.call(this, t) || this + return ( + (n.state = { validate: !1 }), + (n.errors = {}), + (n.onSubmit = n.onSubmit.bind(n)), + n + ) + } + return ( + m(t, e), + (t.prototype.validate = function() { + return this.setState({ validate: !0 }), this.errors + }), + (t.prototype.eventProxyHandlers = function(e, t, n) { + var o + Object(r.a)( + t, + this.props.store, + this.props.customValueResolvers, + ).apply(null, (o = [e]).concat.apply(o, b(n))) + }), + (t.prototype.bindCallbacks = function(e, t) { + var n = this, + o = {} + return ( + Object.keys(t || {}).forEach(function(i) { + t[i] && + (o[i] = function() { + for (var o = [], r = 0, a; r < arguments.length; r++) + o[r] = arguments[r] + n.props.useNativeEvent || 'onChange' !== i + ? t[i].apply(null, (a = [e]).concat.apply(a, b(o))) + : n.eventProxyHandlers(e, t[i], o) + }) + }), + o + ) + }), + (t.prototype.getFormElement = function(e) { + switch (e) { + case 'color': + case 'date': + case 'email': + case 'month': + case 'number': + case 'text': + case 'tel': + case 'time': + case 'url': + case 'week': + return s.a + case 'toggle': + return d.a + case 'radio': + return p.a + case 'dropdown': + return u.a + case 'checkbox': + return c.a + case 'range': + return f.a + case 'textarea': + return h.a + default: + var t = this.props.customComponentResolvers + if (t) { + for ( + var n = null, o = 0; + o < t.length && ((n = t[o](e)), !n); + + ) + o++ + return n + } + return null + } + }), + (t.prototype.onSubmit = function(t) { + t.preventDefault(), this.props.onSubmit(t) + }), + (t.prototype.validateField = function(e, t) { + return 'function' == typeof t.validation + ? t.validation(e) || null + : 'undefined' != typeof t.required && 'undefined' == typeof e + ? 'string' == typeof t.required + ? t.required + : 'Required Value' + : null + }), + (t.prototype.getFormGroup = function(e, t, n) { + return o.createElement( + l.a, + { config: e, key: e.id }, + this.getFormElements(e.elements, t, n, e.id), + ) + }), + (t.prototype.getFormElements = function(e, t, n, r) { + var l = this + return ( + void 0 === r && (r = 'default'), + e.map(function(e, s) { + if ('group' === e.type) return l.getFormGroup(e, t, n) + if (e.isHidden && e.isHidden(n)) return !1 + if (!e.resultPath) + return new Error( + 'Provide a resultPath in config[' + s + ']', + ) + var i = v.get(n, e.resultPath, void 0), + d = l.validateField(i, e) + ;(l.errors[r] = l.errors[r] || []), + (l.errors[r][s] = { id: e.id, error: d }) + var p = { + config: e, + value: i, + callbacks: l.bindCallbacks(e, t), + }, + u = l.getFormElement(e.type) + return o.createElement( + a.a, + { + error: (l.state.validate || e.instantValidation) && d, + config: e, + store: n, + key: e.id, + }, + u ? o.createElement(u, g({}, p)) : null, + ) + }) + ) + }), + (t.prototype.render = function() { + var e = this.props, + t = e.config, + n = e.onBlur, + i = e.onChange, + r = e.onFocus, + a = e.store, + l = e.primaryButton, + s = e.secondaryButton, + d = e.onSecondaryButtonClick, + p = this.getFormElements( + t, + { onChange: i, onBlur: n, onFocus: r }, + a, + ) + return o.createElement( + 'form', + { className: 'react-forms', onSubmit: this.onSubmit }, + o.createElement('div', { className: 'form-elements' }, p), + o.createElement( + 'div', + { className: 'form-buttons-container' }, + this.props.children || + o.createElement( + 'div', + { className: 'form-buttons' }, + s && + o.createElement( + 'button', + { className: 'cancel', onClick: d, type: 'button' }, + s, + ), + l && + o.createElement( + 'button', + { className: 'submit', type: 'submit' }, + l, + ), + ), + ), + ) + }), + (t.defaultProps = { + useNativeEvent: !1, + store: {}, + primaryButton: 'Submit', + secondaryButton: 'Cancel', + onSecondaryButtonClick: function() {}, + onSubmit: function() {}, + }), + t + ) + })(o.Component) + t.a = C + }, + function(e, t, n) { + 'use strict' + n.d(t, 'a', function() { + return i + }) + var o = + (this && this.__read) || + function(t, o) { + var n = 'function' == typeof Symbol && t[Symbol.iterator] + if (!n) return t + var a = n.call(t), + i = [], + l, + r + try { + for (; (void 0 === o || 0 < o--) && !(l = a.next()).done; ) + i.push(l.value) + } catch (e) { + r = { error: e } + } finally { + try { + l && !l.done && (n = a['return']) && n.call(a) + } finally { + if (r) throw r.error + } + } + return i + }, + r = + (this && this.__spread) || + function() { + for (var e = [], t = 0; t < arguments.length; t++) + e = e.concat(o(arguments[t])) + return e + }, + a = n(45), + i = function(e, t, n) { + var i = function() { + for (var e = [], s = 0; s < arguments.length; s++) + e[s] = arguments[s] + var d = o(e, 2), + p = d[0], + u = d[1] + switch (p.type) { case 'color': case 'date': case 'email': @@ -20595,91 +20525,114 @@ object-assign case 'week': case 'textarea': case 'radio': - return a.currentTarget.value + return u.currentTarget.value case 'number': - return parseInt(a.currentTarget.value, 10) + return parseInt(u.currentTarget.value, 10) case 'dropdown': - if (r.componentProps && r.componentProps.multiple) { + if (p.componentProps && p.componentProps.multiple) { for ( - var u = a.currentTarget.options, - c = [], - f = 0, - i = u.length; - f < i; - f++ + var c = u.currentTarget.options, + f = [], + h = 0, + i = c.length; + h < i; + h++ ) - u[f].selected && c.push(u[f].value) - return r.simpleValues ? c.join(r.separator || ',') : c + c[h].selected && f.push(c[h].value) + return p.simpleValues ? f.join(p.separator || ',') : f } - return a.currentTarget.value + return u.currentTarget.value case 'checkbox': - var l = a.currentTarget.value, - h = s.get(t, r.resultPath) || [], - m = - r.simpleValues && h.split ? h.split(r.separator || ',') : h, - g = new d(m) - g.has(l) ? g.delete(l) : g.add(l) - var y = p(g) - return r.simpleValues ? y.join(r.separator || ',') : y + var l = u.currentTarget.value, + m = a.get(t, p.resultPath) || [], + g = + p.simpleValues && m.split ? m.split(p.separator || ',') : m, + y = new Set(g) + y.has(l) ? y.delete(l) : y.add(l) + var b = r(y) + return p.simpleValues ? b.join(p.separator || ',') : b case 'toggle': - return 'true' === a.currentTarget.value + return 'true' === u.currentTarget.value default: if (n) { for ( - var b = '', f = 0; - f < n.length && - ((b = n[f].apply(null, e)), !(b || 'boolean' == typeof b)); + var v = '', h = 0; + h < n.length && + ((v = n[h].apply(null, e)), !(v || 'boolean' == typeof v)); ) - f++ - return b + h++ + return v } return '' } } return function(n) { - for (var i = [], r = 1; r < arguments.length; r++) - i[r - 1] = arguments[r] - var a = o.apply(null, [n].concat(i)), - l = s.set(t, n.resultPath, a), + for (var o = [], r = 1; r < arguments.length; r++) + o[r - 1] = arguments[r] + var l = i.apply(null, [n].concat(o)), + s = a.set(t, n.resultPath, l), d = n.modifyStoreBeforeChange - ? n.modifyStoreBeforeChange(n, a, l) || l - : l + ? n.modifyStoreBeforeChange(n, l, s) || s + : s return e(d) } } - /*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ n( - 221, - ) - var c = n(3), - f = (function(e) { + }, + function(e, t, n) { + 'use strict' + var o = n(0), + i = n.n(o), + r = n(91), + a = + (this && this.__extends) || + (function() { + var e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + } + return function(t, n) { + function o() { + this.constructor = t + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((o.prototype = n.prototype), new o())) + } + })(), + l = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + } + n(90) + var s = n(3), + d = (function(e) { function t() { return (null !== e && e.apply(this, arguments)) || this } return ( - o(t, e), + a(t, e), (t.prototype.getTopComponent = function(e, t) { - return r.createElement( + return o.createElement( 'div', { className: 'react-forms-top-component' }, e.topComponent(t), ) }), (t.prototype.getBottomComponent = function(e, t) { - return r.createElement( + return o.createElement( 'div', { className: 'react-forms-bottom-component' }, e.bottomComponent(t), @@ -20689,58 +20642,58 @@ and limitations under the License. var e = this.props, t = e.config, n = e.store, - o = e.error, + i = e.error, a = e.children, - s = + d = t.helpText && - r.createElement( - i, + o.createElement( + r.a, l( { placement: 'top', - overlay: r.createElement('span', null, t.helpText), + overlay: o.createElement('span', null, t.helpText), }, t.helpTextOptions, ), - r.createElement( + o.createElement( 'span', { className: 'help-text-trigger' }, - r.createElement('img', { + o.createElement('img', { src: 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgZmlsbD0iIzQ0NDQ0NCI+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiM0NDQ0NDQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iMTIiIGN5PSIxMiIgcj0iMTEiIHN0cm9rZS1saW5lam9pbj0ibWl0ZXIiPjwvY2lyY2xlPiA8cGF0aCBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiM0NDQ0NDQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTIsMTV2LTIgYzEuNjA5LDAsMy0xLjM5MSwzLTNzLTEuMzkxLTMtMy0zYy0xLjE5NCwwLTIuMzQyLDAuODkzLTIuNzkyLDEuOTIxIiBzdHJva2UtbGluZWpvaW49Im1pdGVyIj48L3BhdGg+IDxjaXJjbGUgZGF0YS1jb2xvcj0iY29sb3ItMiIgZGF0YS1zdHJva2U9Im5vbmUiIGZpbGw9IiM0NDQ0NDQiIGN4PSIxMiIgY3k9IjE4IiByPSIxIiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIj48L2NpcmNsZT48L2c+PC9zdmc+', alt: 'help', }), ), ) - return r.createElement( + return o.createElement( 'div', { className: 'react-forms-template' }, 'function' == typeof t.topComponent && this.getTopComponent(t, n), - r.createElement( + o.createElement( 'div', { className: 'react-forms-label' }, - r.createElement('span', null, t.displayName), - r.createElement('span', null, s), + o.createElement('span', null, t.displayName), + o.createElement('span', null, d), t.optional && - r.createElement( + o.createElement( 'span', { className: 'optional' }, '(optional)', ), ), - r.createElement( + o.createElement( 'div', { className: 'react-forms-field' }, - r.createElement( + o.createElement( 'div', { className: 'form-element-wrapper' }, a, ), - r.createElement( + o.createElement( 'div', - { className: c('error', { 'is-error': o }) }, - o || ' ', + { className: s('error', { 'is-error': i }) }, + i || ' ', ), ), 'function' == typeof t.bottomComponent && @@ -20749,720 +20702,282 @@ and limitations under the License. }), t ) - })(r.Component), - h = (function(e) { + })(o.Component) + t.a = d + }, + function() {}, + function(e, t, n) { + 'use strict' + var o = n(92) + t.a = o.a + }, + function(e, t, n) { + 'use strict' + var o = n(12), + i = n.n(o), + r = n(53), + a = n.n(r), + l = n(5), + s = n.n(l), + d = n(6), + p = n.n(d), + u = n(7), + c = n.n(u), + f = n(0), + h = n.n(f), + m = n(1), + g = n.n(m), + y = n(130), + b = n(161), + v = (function(e) { function t() { - return (null !== e && e.apply(this, arguments)) || this + var n, o, i + s()(this, t) + for (var r = arguments.length, a = Array(r), l = 0; l < r; l++) + a[l] = arguments[l] + return ( + (i = ((n = ((o = p()(this, e.call.apply(e, [this].concat(a)))), + o)), + (o.getPopupElement = function() { + var e = o.props, + t = e.arrowContent, + n = e.overlay, + i = e.prefixCls, + r = e.id + return [ + h.a.createElement( + 'div', + { className: i + '-arrow', key: 'arrow' }, + t, + ), + h.a.createElement( + 'div', + { className: i + '-inner', key: 'content', id: r }, + 'function' == typeof n ? n() : n, + ), + ] + }), + (o.saveTrigger = function(e) { + o.trigger = e + }), + n)), + p()(o, i) + ) } return ( - o(t, e), + c()(t, e), + (t.prototype.getPopupDomNode = function() { + return this.trigger.getPopupDomNode() + }), (t.prototype.render = function() { - var e = this.props.config - return r.createElement( - 'div', - { className: 'react-forms-group' }, - r.createElement( - 'div', - { className: 'group-title' }, - e.displayName, - ), - r.createElement( - 'p', - { className: 'group-description' }, - e.description, - ), - r.createElement( - 'div', - { className: 'react-forms-group-elements' }, - this.props.children, - ), + var e = this.props, + t = e.overlayClassName, + n = e.trigger, + o = e.mouseEnterDelay, + r = e.mouseLeaveDelay, + l = e.overlayStyle, + s = e.prefixCls, + d = e.children, + p = e.onVisibleChange, + u = e.afterVisibleChange, + c = e.transitionName, + f = e.animation, + m = e.placement, + g = e.align, + v = e.destroyTooltipOnHide, + C = e.defaultVisible, + x = e.getTooltipContainer, + w = a()(e, [ + 'overlayClassName', + 'trigger', + 'mouseEnterDelay', + 'mouseLeaveDelay', + 'overlayStyle', + 'prefixCls', + 'children', + 'onVisibleChange', + 'afterVisibleChange', + 'transitionName', + 'animation', + 'placement', + 'align', + 'destroyTooltipOnHide', + 'defaultVisible', + 'getTooltipContainer', + ]), + T = i()({}, w) + return ( + 'visible' in this.props && + (T.popupVisible = this.props.visible), + h.a.createElement( + y.a, + i()( + { + popupClassName: t, + ref: this.saveTrigger, + prefixCls: s, + popup: this.getPopupElement, + action: n, + builtinPlacements: b.a, + popupPlacement: m, + popupAlign: g, + getPopupContainer: x, + onPopupVisibleChange: p, + afterPopupVisibleChange: u, + popupTransitionName: c, + popupAnimation: f, + defaultPopupVisible: C, + destroyPopupOnHide: v, + mouseLeaveDelay: r, + popupStyle: l, + mouseEnterDelay: o, + }, + T, + ), + d, + ) ) }), t ) - })(r.Component), - m = n(3), - g = function(e) { - var t = e.value, - n = void 0 === t ? '' : t, - o = e.config, - i = e.callbacks, - a = void 0 === i ? {} : i - return r.createElement( - 'div', - { className: m('form-Element', 'input-text', o.className) }, - r.createElement( - 'input', - l({}, a, o.componentProps, { - type: o.type, - value: n, - placeholder: o.placeholder, - name: o.id, - id: o.id, - }), - ), + })(f.Component) + ;(v.propTypes = { + trigger: g.a.any, + children: g.a.any, + defaultVisible: g.a.bool, + visible: g.a.bool, + placement: g.a.string, + transitionName: g.a.oneOfType([g.a.string, g.a.object]), + animation: g.a.any, + onVisibleChange: g.a.func, + afterVisibleChange: g.a.func, + overlay: g.a.oneOfType([g.a.node, g.a.func]).isRequired, + overlayStyle: g.a.object, + overlayClassName: g.a.string, + prefixCls: g.a.string, + mouseEnterDelay: g.a.number, + mouseLeaveDelay: g.a.number, + getTooltipContainer: g.a.func, + destroyTooltipOnHide: g.a.bool, + align: g.a.object, + arrowContent: g.a.any, + id: g.a.string, + }), + (v.defaultProps = { + prefixCls: 'rc-tooltip', + mouseEnterDelay: 0, + destroyTooltipOnHide: !1, + mouseLeaveDelay: 0.1, + align: {}, + placement: 'right', + trigger: ['hover'], + arrowContent: null, + }), + (t.a = v) + }, + function(e, t, n) { + e.exports = { default: n(94), __esModule: !0 } + }, + function(e, t, n) { + n(95), (e.exports = n(8).Object.assign) + }, + function(e, t, n) { + var o = n(13) + o(o.S + o.F, 'Object', { assign: n(97) }) + }, + function(e) { + e.exports = function(e) { + if ('function' != typeof e) throw TypeError(e + ' is not a function!') + return e + } + }, + function(e, t, n) { + 'use strict' + var o = n(24), + i = n(35), + r = n(26), + a = n(52), + l = n(50), + s = Object.assign + e.exports = + !s || + n(20)(function() { + var e = {}, + t = {}, + n = Symbol(), + o = 'abcdefghijklmnopqrst' + return ( + (e[n] = 7), + o.split('').forEach(function(e) { + t[e] = e + }), + 7 != s({}, e)[n] || Object.keys(s({}, t)).join('') != o ) - }, - y = n(3), - b = function(e) { - var t = e.value, - n = void 0 !== t && t, - o = e.config, - i = e.callbacks, - a = void 0 === i ? {} : i, - s = Math.random() - .toString(36) - .slice(-5), - d = o.componentProps || {} - return r.createElement( - 'div', - { className: y('form-element', 'input-toggle', o.className) }, - r.createElement( - 'span', - { className: 'input-toggle-wrapper' }, - r.createElement( - 'input', - l({}, a, d, { - checked: n, - value: (!n).toString(), - id: o.id + '_' + s, - type: 'checkbox', - }), - ), - r.createElement('label', { htmlFor: o.id + '_' + s }), - ), - r.createElement('span', { className: 'info-text' }, d.infoText), - ) - }, - v = n(3), - x = function(e) { - var t = e.value, - n = void 0 === t ? '' : t, - o = e.config, - i = e.callbacks, - a = void 0 === i ? {} : i, - s = (o.options || []).map(function(e) { - var t = Math.random() - .toString(36) - .slice(-5) - return r.createElement( - 'span', - { className: 'radio-button', key: o.id + '_' + e.value }, - r.createElement( - 'input', - l({}, a, o.componentProps, { - checked: n === e.value, - className: o.className, - type: 'radio', - id: o.id + '_' + e.value + '_' + t, - value: e.value, - disabled: e.disabled || !1, - }), - ), - r.createElement( - 'label', - { htmlFor: o.id + '_' + e.value + '_' + t }, - e.label, - ), - ) - }) - return r.createElement( - 'div', - { className: v('form-element', 'input-radio', o.className) }, - s, - ) - }, - C = n(3), - w = function(e) { - var t = e.value, - n = e.config, - o = e.callbacks, - i = void 0 === o ? {} : o, - a = - (t && - n.componentProps && - n.componentProps.multiple && - n.simpleValues - ? t.split(n.separator || ',') - : t) || - (n.componentProps && n.componentProps.multiple ? [] : ''), - s = (n.options || []).map(function(e, t) { - return r.createElement( - 'option', - { - key: n.id + '_' + t, - value: e.value, - disabled: e.disabled || !1, - }, - e.label, - ) - }) - return r.createElement( - 'div', - { className: C('form-element', 'input-dropdown', n.className) }, - r.createElement( - 'span', - { - className: C('dropdown-wrapper', { - multi: n.componentProps && n.componentProps.multiple, - }), - }, - r.createElement( - 'select', - l({}, i, n.componentProps, { value: a, name: n.id, id: n.id }), - s, - ), - ), - ) - }, - k = n(3), - T = function(e) { - var t = e.value, - n = void 0 === t ? '' : t, - o = e.config, - i = e.callbacks, - a = void 0 === i ? {} : i, - s = o.separator, - d = void 0 === s ? ',' : s, - p = o.simpleValues ? n.split(d) : n, - u = (o.options || []).map(function(e) { - var t = Math.random() - .toString(36) - .slice(-5) - return r.createElement( - 'span', - { className: 'checkbox-wrapper', key: o.id + '_' + t }, - r.createElement( - 'input', - l({}, a, o.componentProps, { - checked: -1 < p.indexOf(e.value), - value: e.value.toString(), - id: o.id + '_' + t, - type: 'checkbox', - }), - ), - r.createElement('label', { htmlFor: o.id + '_' + t }, e.label), - ) - }) - return r.createElement( - 'div', - { className: k(['form-element', 'input-checkbox', o.className]) }, - u, - ) - }, - S = n(3), - E = function(e) { - var t = e.value, - n = e.config, - o = e.callbacks, - i = void 0 === o ? {} : o, - a = n.componentProps || {} - return r.createElement( - 'div', - { className: S('form-element', 'input-range', n.className) }, - !1 !== a.showValue && - r.createElement('div', { className: 'value' }, t || a.min), - r.createElement( - 'input', - l({}, i, a, { - type: 'range', - value: t || a.min, - name: n.id, - id: n.id, - }), - ), - !1 !== a.showRange && - r.createElement( - 'div', - { className: 'range' }, - r.createElement('span', { className: 'min' }, a.min), - r.createElement('span', { className: 'max' }, a.max), - ), - ) - }, - _ = n(3), - P = function(e) { - var t = e.callbacks, - n = void 0 === t ? {} : t, - o = e.config, - i = e.value, - a = void 0 === i ? '' : i - return r.createElement( - 'div', - { className: _('form-element', 'input-textarea', o.className) }, - r.createElement( - 'textarea', - l({}, n, o.componentProps, { - placeholder: o.placeholder, - className: o.className, - name: o.id, - id: o.id, - value: a, - }), - ), - ) - }, - O = n(75), - N = (function(e) { - function t(t) { - var n = e.call(this, t) || this - return ( - (n.state = { validate: !1 }), - (n.errors = {}), - (n.onSubmit = n.onSubmit.bind(n)), - n - ) - } - return ( - o(t, e), - (t.prototype.validate = function() { - return this.setState({ validate: !0 }), this.errors - }), - (t.prototype.eventProxyHandlers = function(e, t, n) { - u(t, this.props.store, this.props.customValueResolvers).apply( - null, - (o = [e]).concat.apply(o, n), - ) - var o - }), - (t.prototype.bindCallbacks = function(e, t) { - var n = this, - o = {} - return ( - Object.keys(t || {}).forEach(function(i) { - t[i] && - (o[i] = function() { - for (var o = [], r = 0; r < arguments.length; r++) - o[r] = arguments[r] - n.props.useNativeEvent || 'onChange' !== i - ? t[i].apply(null, (a = [e]).concat.apply(a, o)) - : n.eventProxyHandlers(e, t[i], o) - var a - }) - }), - o - ) - }), - (t.prototype.getFormElement = function(e) { - switch (e) { - case 'color': - case 'date': - case 'email': - case 'month': - case 'number': - case 'text': - case 'tel': - case 'time': - case 'url': - case 'week': - return g - case 'toggle': - return b - case 'radio': - return x - case 'dropdown': - return w - case 'checkbox': - return T - case 'range': - return E - case 'textarea': - return P - default: - var t = this.props.customComponentResolvers - if (t) { - for ( - var n = null, o = 0; - o < t.length && ((n = t[o](e)), !n); + }) + ? function(e) { + for ( + var t = a(e), n = arguments.length, s = 1, d = i.f, p = r.f; + n > s; - ) - o++ - return n - } - return null - } - }), - (t.prototype.onSubmit = function(t) { - t.preventDefault(), this.props.onSubmit(t) - }), - (t.prototype.validateField = function(e, t) { - return 'function' == typeof t.validation - ? t.validation(e) || null - : 'undefined' != typeof t.required && 'undefined' == typeof e - ? 'string' == typeof t.required - ? t.required - : 'Required Value' - : null - }), - (t.prototype.getFormGroup = function(e, t, n) { - return r.createElement( - h, - { config: e, key: e.id }, - this.getFormElements(e.elements, t, n, e.id), - ) - }), - (t.prototype.getFormElements = function(e, t, n, o) { - var a = this - return ( - void 0 === o && (o = 'default'), - e.map(function(e, s) { - if ('group' === e.type) return a.getFormGroup(e, t, n) - if (e.isHidden && e.isHidden(n)) return !1 - if (!e.resultPath) - return new Error( - 'Provide a resultPath in config[' + s + ']', - ) - var i = O.get(n, e.resultPath, void 0), - d = a.validateField(i, e) - ;(a.errors[o] = a.errors[o] || []), - (a.errors[o][s] = { id: e.id, error: d }) - var p = { - config: e, - value: i, - callbacks: a.bindCallbacks(e, t), - }, - u = a.getFormElement(e.type) - return r.createElement( - f, - { - error: (a.state.validate || e.instantValidation) && d, - config: e, - store: n, - key: e.id, - }, - u ? r.createElement(u, l({}, p)) : null, - ) - }) ) - }), - (t.prototype.render = function() { - var e = this.props, - t = e.config, - n = e.onBlur, - o = e.onChange, - i = e.onFocus, - a = e.store, - l = e.primaryButton, - s = e.secondaryButton, - d = e.onSecondaryButtonClick, - p = this.getFormElements( - t, - { onChange: o, onBlur: n, onFocus: i }, - a, + for ( + var u = l(arguments[s++]), + c = d ? o(u).concat(d(u)) : o(u), + f = c.length, + h = 0, + m; + f > h; + ) - return r.createElement( - 'form', - { className: 'react-forms', onSubmit: this.onSubmit }, - r.createElement('div', { className: 'form-elements' }, p), - r.createElement( - 'div', - { className: 'form-buttons-container' }, - this.props.children || - r.createElement( - 'div', - { className: 'form-buttons' }, - s && - r.createElement( - 'button', - { className: 'cancel', onClick: d, type: 'button' }, - s, - ), - l && - r.createElement( - 'button', - { className: 'submit', type: 'submit' }, - l, - ), - ), - ), - ) - }), - (t.defaultProps = { - useNativeEvent: !1, - store: {}, - primaryButton: 'Submit', - secondaryButton: 'Cancel', - onSecondaryButtonClick: function() {}, - onSubmit: function() {}, - }), - t - ) - })(r.Component) - e.exports = N + p.call(u, (m = c[h++])) && (t[m] = u[m]) + return t + } + : s }, function(e, t, n) { - 'use strict' - Object.defineProperty(t, '__esModule', { value: !0 }) - var o = n(107) - t['default'] = o.a + var o = n(16), + i = n(99), + r = n(100) + e.exports = function(e) { + return function(t, n, a) { + var l = o(t), + s = i(l.length), + d = r(a, s), + p + if (e && n != n) { + for (; s > d; ) if (((p = l[d++]), p != p)) return !0 + } else + for (; s > d; d++) + if ((e || d in l) && l[d] === n) return e || d || 0 + return !e && -1 + } + } + }, + function(e, t, n) { + var o = n(31), + i = Math.min + e.exports = function(e) { + return 0 < e ? i(o(e), 9007199254740991) : 0 + } + }, + function(e, t, n) { + var o = n(31), + i = Math.max, + r = Math.min + e.exports = function(e, t) { + return (e = o(e)), 0 > e ? i(e + t, 0) : r(e, t) + } + }, + function(e, t, n) { + e.exports = { default: n(102), __esModule: !0 } + }, + function(e, t, n) { + n(103), n(109), (e.exports = n(40).f('iterator')) }, function(e, t, n) { 'use strict' - var o = n(16), - i = n.n(o), - r = n(63), - a = n.n(r), - l = n(7), - s = n.n(l), - d = n(8), - p = n.n(d), - u = n(9), - c = n.n(u), - f = n(0), - h = n.n(f), - m = n(1), - g = n.n(m), - y = n(145), - b = n(176), - v = (function(e) { - function t() { - var n, o, i - s()(this, t) - for (var r = arguments.length, a = Array(r), l = 0; l < r; l++) - a[l] = arguments[l] - return ( - (i = ((n = ((o = p()(this, e.call.apply(e, [this].concat(a)))), - o)), - (o.getPopupElement = function() { - var e = o.props, - t = e.arrowContent, - n = e.overlay, - i = e.prefixCls, - r = e.id - return [ - h.a.createElement( - 'div', - { className: i + '-arrow', key: 'arrow' }, - t, - ), - h.a.createElement( - 'div', - { className: i + '-inner', key: 'content', id: r }, - 'function' == typeof n ? n() : n, - ), - ] - }), - (o.saveTrigger = function(e) { - o.trigger = e - }), - n)), - p()(o, i) - ) - } - return ( - c()(t, e), - (t.prototype.getPopupDomNode = function() { - return this.trigger.getPopupDomNode() - }), - (t.prototype.render = function() { - var e = this.props, - t = e.overlayClassName, - n = e.trigger, - o = e.mouseEnterDelay, - r = e.mouseLeaveDelay, - l = e.overlayStyle, - s = e.prefixCls, - d = e.children, - p = e.onVisibleChange, - u = e.afterVisibleChange, - c = e.transitionName, - f = e.animation, - m = e.placement, - g = e.align, - v = e.destroyTooltipOnHide, - x = e.defaultVisible, - C = e.getTooltipContainer, - w = a()(e, [ - 'overlayClassName', - 'trigger', - 'mouseEnterDelay', - 'mouseLeaveDelay', - 'overlayStyle', - 'prefixCls', - 'children', - 'onVisibleChange', - 'afterVisibleChange', - 'transitionName', - 'animation', - 'placement', - 'align', - 'destroyTooltipOnHide', - 'defaultVisible', - 'getTooltipContainer', - ]), - k = i()({}, w) - return ( - 'visible' in this.props && - (k.popupVisible = this.props.visible), - h.a.createElement( - y.a, - i()( - { - popupClassName: t, - ref: this.saveTrigger, - prefixCls: s, - popup: this.getPopupElement, - action: n, - builtinPlacements: b.a, - popupPlacement: m, - popupAlign: g, - getPopupContainer: C, - onPopupVisibleChange: p, - afterPopupVisibleChange: u, - popupTransitionName: c, - popupAnimation: f, - defaultPopupVisible: x, - destroyPopupOnHide: v, - mouseLeaveDelay: r, - popupStyle: l, - mouseEnterDelay: o, - }, - k, - ), - d, - ) - ) - }), - t - ) - })(f.Component) - ;(v.propTypes = { - trigger: g.a.any, - children: g.a.any, - defaultVisible: g.a.bool, - visible: g.a.bool, - placement: g.a.string, - transitionName: g.a.oneOfType([g.a.string, g.a.object]), - animation: g.a.any, - onVisibleChange: g.a.func, - afterVisibleChange: g.a.func, - overlay: g.a.oneOfType([g.a.node, g.a.func]).isRequired, - overlayStyle: g.a.object, - overlayClassName: g.a.string, - prefixCls: g.a.string, - mouseEnterDelay: g.a.number, - mouseLeaveDelay: g.a.number, - getTooltipContainer: g.a.func, - destroyTooltipOnHide: g.a.bool, - align: g.a.object, - arrowContent: g.a.any, - id: g.a.string, - }), - (v.defaultProps = { - prefixCls: 'rc-tooltip', - mouseEnterDelay: 0, - destroyTooltipOnHide: !1, - mouseLeaveDelay: 0.1, - align: {}, - placement: 'right', - trigger: ['hover'], - arrowContent: null, - }), - (t.a = v) - }, - function(e, t, n) { - e.exports = { default: n(109), __esModule: !0 } - }, - function(e, t, n) { - n(110), (e.exports = n(11).Object.assign) - }, - function(e, t, n) { - var o = n(17) - o(o.S + o.F, 'Object', { assign: n(112) }) - }, - function(e) { - e.exports = function(e) { - if ('function' != typeof e) throw TypeError(e + ' is not a function!') - return e - } - }, - function(e, t, n) { - 'use strict' - var o = n(29), - i = n(43), - r = n(31), - a = n(62), - l = n(60), - s = Object.assign - e.exports = - !s || - n(25)(function() { - var e = {}, - t = {}, - n = Symbol(), - o = 'abcdefghijklmnopqrst' - return ( - (e[n] = 7), - o.split('').forEach(function(e) { - t[e] = e - }), - 7 != s({}, e)[n] || Object.keys(s({}, t)).join('') != o - ) - }) - ? function(e) { - for ( - var t = a(e), n = arguments.length, s = 1, d = i.f, p = r.f; - n > s; - - ) - for ( - var u = l(arguments[s++]), - c = d ? o(u).concat(d(u)) : o(u), - f = c.length, - h = 0, - m; - f > h; - - ) - p.call(u, (m = c[h++])) && (t[m] = u[m]) - return t - } - : s - }, - function(e, t, n) { - var o = n(20), - i = n(114), - r = n(115) - e.exports = function(e) { - return function(t, n, a) { - var l = o(t), - s = i(l.length), - d = r(a, s), - p - if (e && n != n) { - for (; s > d; ) if (((p = l[d++]), p != p)) return !0 - } else - for (; s > d; d++) - if ((e || d in l) && l[d] === n) return e || d || 0 - return !e && -1 - } - } - }, - function(e, t, n) { - var o = n(39), - i = Math.min - e.exports = function(e) { - return 0 < e ? i(o(e), 9007199254740991) : 0 - } - }, - function(e, t, n) { - var o = n(39), - i = Math.max, - r = Math.min - e.exports = function(e, t) { - return (e = o(e)), 0 > e ? i(e + t, 0) : r(e, t) - } - }, - function(e, t, n) { - e.exports = { default: n(117), __esModule: !0 } - }, - function(e, t, n) { - n(118), n(124), (e.exports = n(48).f('iterator')) - }, - function(e, t, n) { - 'use strict' - var o = n(119)(!0) - n(64)( + var o = n(104)(!0) + n(54)( String, 'String', function(e) { @@ -21479,8 +20994,8 @@ and limitations under the License. ) }, function(e, t, n) { - var o = n(39), - r = n(38) + var o = n(31), + r = n(30) e.exports = function(e) { return function(t, n) { var d = r(t) + '', @@ -21505,11 +21020,11 @@ and limitations under the License. }, function(e, t, n) { 'use strict' - var o = n(46), - i = n(28), - r = n(47), + var o = n(38), + i = n(23), + r = n(39), a = {} - n(18)(a, n(21)('iterator'), function() { + n(14)(a, n(17)('iterator'), function() { return this }), (e.exports = function(e, t, n) { @@ -21517,10 +21032,10 @@ and limitations under the License. }) }, function(e, t, n) { - var o = n(12), - r = n(24), - a = n(29) - e.exports = n(13) + var o = n(9), + r = n(19), + a = n(24) + e.exports = n(10) ? Object.defineProperties : function(e, t) { r(e) @@ -21530,13 +21045,13 @@ and limitations under the License. } }, function(e, t, n) { - var o = n(6).document + var o = n(4).document e.exports = o && o.documentElement }, function(e, t, n) { - var o = n(14), - i = n(62), - r = n(40)('IE_PROTO'), + var o = n(11), + i = n(52), + r = n(32)('IE_PROTO'), a = Object.prototype e.exports = Object.getPrototypeOf || @@ -21552,12 +21067,12 @@ and limitations under the License. } }, function(e, t, n) { - n(125) + n(110) for ( - var o = n(6), - r = n(18), - a = n(45), - l = n(21)('toStringTag'), + var o = n(4), + r = n(14), + a = n(37), + l = n(17)('toStringTag'), s = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( ',', ), @@ -21573,11 +21088,11 @@ and limitations under the License. }, function(e, t, n) { 'use strict' - var o = n(126), - i = n(127), - r = n(45), - a = n(20) - ;(e.exports = n(64)( + var o = n(111), + i = n(112), + r = n(37), + a = n(16) + ;(e.exports = n(54)( Array, 'Array', function(e, t) { @@ -21609,109 +21124,109 @@ and limitations under the License. } }, function(e, t, n) { - e.exports = { default: n(129), __esModule: !0 } + e.exports = { default: n(114), __esModule: !0 } }, function(e, t, n) { - n(130), n(135), n(136), n(137), (e.exports = n(11).Symbol) + n(115), n(120), n(121), n(122), (e.exports = n(8).Symbol) }, function(e, t, n) { 'use strict' - var o = n(6), - r = n(14), - i = n(13), - a = n(17), - l = n(65), - s = n(131).KEY, - d = n(25), - p = n(41), - u = n(47), - c = n(30), - f = n(21), - h = n(48), - m = n(49), - g = n(132), - y = n(133), - b = n(24), - v = n(19), - x = n(20), - C = n(37), - w = n(28), - T = n(46), - S = n(134), - E = n(67), - _ = n(12), - P = n(29), - O = E.f, - N = _.f, - L = S.f, - M = o.Symbol, - D = o.JSON, - I = D && D.stringify, - A = 'prototype', + var o = n(4), + r = n(11), + i = n(10), + a = n(13), + l = n(55), + s = n(116).KEY, + d = n(20), + p = n(33), + u = n(39), + c = n(25), + f = n(17), + h = n(40), + m = n(41), + g = n(117), + y = n(118), + b = n(19), + v = n(15), + C = n(16), + x = n(29), + w = n(23), + T = n(38), + S = n(119), + E = n(57), + O = n(9), + P = n(24), + N = E.f, + L = O.f, + M = S.f, + D = o.Symbol, + _ = o.JSON, + A = _ && _.stringify, + I = 'prototype', R = f('_hidden'), F = f('toPrimitive'), H = {}.propertyIsEnumerable, V = p('symbol-registry'), W = p('symbols'), z = p('op-symbols'), - U = Object[A], - B = 'function' == typeof M, + U = Object[I], + B = 'function' == typeof D, K = o.QObject, - G = !K || !K[A] || !K[A].findChild, + G = !K || !K[I] || !K[I].findChild, Y = i && d(function() { return ( 7 != T( - N({}, 'a', { + L({}, 'a', { get: function() { - return N(this, 'a', { value: 7 }).a + return L(this, 'a', { value: 7 }).a }, }), ).a ) }) ? function(e, t, n) { - var o = O(U, t) - o && delete U[t], N(e, t, n), o && e !== U && N(U, t, o) + var o = N(U, t) + o && delete U[t], L(e, t, n), o && e !== U && L(U, t, o) } - : N, + : L, q = function(e) { - var t = (W[e] = T(M[A])) + var t = (W[e] = T(D[I])) return (t._k = e), t }, $ = - B && 'symbol' == typeof M.iterator + B && 'symbol' == typeof D.iterator ? function(e) { return 'symbol' == typeof e } : function(e) { - return e instanceof M + return e instanceof D }, X = function(e, t, n) { return ( e === U && X(z, t, n), b(e), - (t = C(t, !0)), + (t = x(t, !0)), b(n), r(W, t) ? (n.enumerable ? (r(e, R) && e[R][t] && (e[R][t] = !1), (n = T(n, { enumerable: w(0, !1) }))) - : (!r(e, R) && N(e, R, w(1, {})), (e[R][t] = !0)), + : (!r(e, R) && L(e, R, w(1, {})), (e[R][t] = !0)), Y(e, t, n)) - : N(e, t, n) + : L(e, t, n) ) }, Q = function(e, t) { b(e) - for (var n = g((t = x(t))), o = 0, i = n.length, r; i > o; ) + for (var n = g((t = C(t))), o = 0, i = n.length, r; i > o; ) X(e, (r = n[o++]), t[r]) return e }, Z = function(e) { - var t = H.call(this, (e = C(e, !0))) + var t = H.call(this, (e = x(e, !0))) return this === U && r(W, e) && !r(z, e) ? !1 : t || !r(this, e) || !r(W, e) || (r(this, R) && this[R][e]) @@ -21719,21 +21234,21 @@ and limitations under the License. : !0 }, J = function(e, t) { - if (((e = x(e)), (t = C(t, !0)), e !== U || !r(W, t) || r(z, t))) { - var n = O(e, t) + if (((e = C(e)), (t = x(t, !0)), e !== U || !r(W, t) || r(z, t))) { + var n = N(e, t) return ( n && r(W, t) && !(r(e, R) && e[R][t]) && (n.enumerable = !0), n ) } }, ee = function(e) { - for (var t = L(x(e)), n = [], o = 0, i; t.length > o; ) + for (var t = M(C(e)), n = [], o = 0, i; t.length > o; ) r(W, (i = t[o++])) || i == R || i == s || n.push(i) return n }, te = function(e) { for ( - var t = e === U, n = L(t ? z : x(e)), o = [], a = 0, i; + var t = e === U, n = M(t ? z : C(e)), o = [], a = 0, i; n.length > a; ) @@ -21741,8 +21256,8 @@ and limitations under the License. return o } B || - ((M = function() { - if (this instanceof M) throw TypeError('Symbol is not a constructor!') + ((D = function() { + if (this instanceof D) throw TypeError('Symbol is not a constructor!') var e = c(0 < arguments.length ? arguments[0] : void 0), t = function(n) { this === U && t.call(z, n), @@ -21751,19 +21266,19 @@ and limitations under the License. } return i && G && Y(U, e, { configurable: !0, set: t }), q(e) }), - l(M[A], 'toString', function() { + l(D[I], 'toString', function() { return this._k }), (E.f = J), - (_.f = X), - (n(66).f = S.f = ee), - (n(31).f = Z), - (n(43).f = te), - i && !n(44) && l(U, 'propertyIsEnumerable', Z, !0), + (O.f = X), + (n(56).f = S.f = ee), + (n(26).f = Z), + (n(35).f = te), + i && !n(36) && l(U, 'propertyIsEnumerable', Z, !0), (h.f = function(e) { return q(f(e)) })), - a(a.G + a.W + a.F * !B, { Symbol: M }) + a(a.G + a.W + a.F * !B, { Symbol: D }) for ( var ne = [ 'hasInstance', @@ -21786,7 +21301,7 @@ and limitations under the License. for (var j = P(f.store), ie = 0; j.length > ie; ) m(j[ie++]) a(a.S + a.F * !B, 'Symbol', { for: function(e) { - return r(V, (e += '')) ? V[e] : (V[e] = M(e)) + return r(V, (e += '')) ? V[e] : (V[e] = D(e)) }, keyFor: function(e) { if (!$(e)) throw TypeError(e + ' is not a symbol!') @@ -21809,17 +21324,17 @@ and limitations under the License. getOwnPropertyNames: ee, getOwnPropertySymbols: te, }), - D && + _ && a( a.S + a.F * (!B || d(function() { - var e = M() + var e = D() return ( - '[null]' != I([e]) || - '{}' != I({ a: e }) || - '{}' != I(Object(e)) + '[null]' != A([e]) || + '{}' != A({ a: e }) || + '{}' != A(Object(e)) ) })), 'JSON', @@ -21838,28 +21353,28 @@ and limitations under the License. return t }), (t[1] = o), - I.apply(D, t) + A.apply(_, t) ) }, }, ), - M[A][F] || n(18)(M[A], F, M[A].valueOf), - u(M, 'Symbol'), + D[I][F] || n(14)(D[I], F, D[I].valueOf), + u(D, 'Symbol'), u(Math, 'Math', !0), u(o.JSON, 'JSON', !0) }, function(e, t, n) { - var o = n(30)('meta'), - i = n(19), - r = n(14), - a = n(12).f, + var o = n(25)('meta'), + i = n(15), + r = n(11), + a = n(9).f, l = 0, s = Object.isExtensible || function() { return !0 }, - d = !n(25)(function() { + d = !n(20)(function() { return s(Object.preventExtensions({})) }), p = function(e) { @@ -21894,9 +21409,9 @@ and limitations under the License. }) }, function(e, t, n) { - var o = n(29), - r = n(43), - a = n(31) + var o = n(24), + r = n(35), + a = n(26) e.exports = function(e) { var t = o(e), n = r.f @@ -21907,7 +21422,7 @@ and limitations under the License. } }, function(e, t, n) { - var o = n(61) + var o = n(51) e.exports = Array.isArray || function(e) { @@ -21915,8 +21430,8 @@ and limitations under the License. } }, function(e, t, n) { - var o = n(20), - i = n(66).f, + var o = n(16), + i = n(56).f, r = {}.toString, a = 'object' == typeof window && window && Object.getOwnPropertyNames @@ -21935,24 +21450,24 @@ and limitations under the License. }, function() {}, function(e, t, n) { - n(49)('asyncIterator') + n(41)('asyncIterator') }, function(e, t, n) { - n(49)('observable') + n(41)('observable') }, function(e, t, n) { - e.exports = { default: n(139), __esModule: !0 } + e.exports = { default: n(124), __esModule: !0 } }, function(e, t, n) { - n(140), (e.exports = n(11).Object.setPrototypeOf) + n(125), (e.exports = n(8).Object.setPrototypeOf) }, function(e, t, n) { - var o = n(17) - o(o.S, 'Object', { setPrototypeOf: n(141).set }) + var o = n(13) + o(o.S, 'Object', { setPrototypeOf: n(126).set }) }, function(e, t, n) { - var o = n(19), - i = n(24), + var o = n(15), + i = n(19), r = function(e, t) { if ((i(e), !o(t) && null !== t)) throw TypeError(t + ": can't set as prototype!") @@ -21963,9 +21478,9 @@ and limitations under the License. ('__proto__' in {} ? (function(e, t, o) { try { - ;(o = n(56)( + ;(o = n(46)( Function.call, - n(67).f(Object.prototype, '__proto__').set, + n(57).f(Object.prototype, '__proto__').set, 2, )), o(e, []), @@ -21982,18 +21497,18 @@ and limitations under the License. } }, function(e, t, n) { - e.exports = { default: n(143), __esModule: !0 } + e.exports = { default: n(128), __esModule: !0 } }, function(e, t, n) { - n(144) - var o = n(11).Object + n(129) + var o = n(8).Object e.exports = function(e, t) { return o.create(e, t) } }, function(e, t, n) { - var o = n(17) - o(o.S, 'Object', { create: n(46) }) + var o = n(13) + o(o.S, 'Object', { create: n(38) }) }, function(e, t, n) { 'use strict' @@ -22004,7 +21519,7 @@ and limitations under the License. function r() { return window.document } - var a = n(16), + var a = n(12), l = n.n(a), s = n(0), d = n.n(s), @@ -22012,14 +21527,14 @@ and limitations under the License. u = n.n(p), c = n(2), f = n.n(c), - h = n(146), + h = n(131), m = n.n(h), - g = n(148), - y = n(68), - b = n(152), - v = n(74), - x = n(174), - C = n(175), + g = n(133), + y = n(58), + b = n(137), + v = n(64), + C = n(159), + x = n(160), w = [ 'onClick', 'onMouseDown', @@ -22030,11 +21545,11 @@ and limitations under the License. 'onBlur', 'onContextMenu', ], - k = !!c.createPortal, - T = [] - k || - T.push( - Object(x.a)({ + T = !!c.createPortal, + k = [] + T || + k.push( + Object(C.a)({ autoMount: !1, isVisible: function(e) { return e.state.popupVisible @@ -22082,7 +21597,7 @@ and limitations under the License. maskTransitionName: u.a.oneOfType([u.a.string, u.a.object]), maskAnimation: u.a.string, }, - mixins: T, + mixins: k, getDefaultProps: function() { return { prefixCls: 'rc-trigger-popup', @@ -22136,7 +21651,7 @@ and limitations under the License. var n = this.props, o = this.state if ( - (k || + (T || this.renderComponent(null, function() { t.popupVisible !== o.popupVisible && n.afterPopupVisibleChange(o.popupVisible) @@ -22441,7 +21956,7 @@ and limitations under the License. this.setPopupVisible(!1) }, savePopup: function(e) { - k && (this._component = e) + T && (this._component = e) }, render: function() { var e = this.state.popupVisible, @@ -22470,12 +21985,12 @@ and limitations under the License. : ((i.onFocus = this.createTwoChains('onFocus')), (i.onBlur = this.createTwoChains('onBlur'))) var r = d.a.cloneElement(o, i) - if (!k) return r + if (!T) return r var a return ( (e || this._component || t.forceRender) && (a = d.a.createElement( - C.a, + x.a, { key: 'portal', getContainer: this.getContainer, @@ -22492,7 +22007,7 @@ and limitations under the License. function(e, t, n) { 'use strict' var o = n(0), - i = n(147) + i = n(132) if ('undefined' == typeof o) throw Error( 'create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.', @@ -22505,16 +22020,16 @@ and limitations under the License. function o(e) { return e } - var i = n(26), - r = n(36), - a = n(55) + var i = n(21), + r = n(28), + a = n(44) var l = 'mixins', s ;(s = {}), (e.exports = function(e, t, n) { function s(e, t) { var n = y.hasOwnProperty(t) ? y[t] : null - C.hasOwnProperty(t) && + x.hasOwnProperty(t) && a( 'OVERRIDE_BASE' === n, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', @@ -22676,12 +22191,12 @@ and limitations under the License. this.__isMounted = !0 }, }, - x = { + C = { componentWillUnmount: function() { this.__isMounted = !1 }, }, - C = { + x = { replaceState: function(e, t) { this.updater.enqueueReplaceState(this, e, t) }, @@ -22691,7 +22206,7 @@ and limitations under the License. }, w = function() {} return ( - i(w.prototype, e.prototype, C), + i(w.prototype, e.prototype, x), function(e) { var t = o(function(e, o, i) { !1, @@ -22716,7 +22231,7 @@ and limitations under the License. g.forEach(d.bind(null, t)), d(t, v), d(t, e), - d(t, x), + d(t, C), t.getDefaultProps && (t.defaultProps = t.getDefaultProps()), !1, a( @@ -22765,7 +22280,7 @@ and limitations under the License. }) : void 0 }) - var o = n(150), + var o = n(135), i = (function(e) { return e && e.__esModule ? e : { default: e } })(o) @@ -22825,9 +22340,9 @@ and limitations under the License. this.timeStamp = e.timeStamp || Date.now() } Object.defineProperty(t, '__esModule', { value: !0 }) - var s = n(151), + var s = n(136), d = o(s), - p = n(26), + p = n(21), u = o(p), c = !0, f = !1, @@ -22997,13 +22512,13 @@ and limitations under the License. }, function(e, t, n) { 'use strict' - var o = n(16), + var o = n(12), i = n.n(o), - r = n(7), + r = n(5), a = n.n(r), - l = n(8), + l = n(6), s = n.n(l), - d = n(9), + d = n(7), p = n.n(d), u = n(0), c = n.n(u), @@ -23011,19 +22526,19 @@ and limitations under the License. h = n.n(f), m = n(2), g = n.n(m), - y = n(153), - b = n(164), - v = n(173), - x = n(73), - C = n(74), + y = n(138), + b = n(149), + v = n(158), + C = n(63), + x = n(64), w = (function(e) { function t(n) { a()(this, t) var o = s()(this, e.call(this, n)) return ( - k.call(o), - (o.savePopupRef = C.c.bind(o, 'popupInstance')), - (o.saveAlignRef = C.c.bind(o, 'alignInstance')), + T.call(o), + (o.savePopupRef = x.c.bind(o, 'popupInstance')), + (o.saveAlignRef = x.c.bind(o, 'alignInstance')), o ) } @@ -23140,7 +22655,7 @@ and limitations under the License. t if (e.mask) { var n = this.getMaskTransitionName() - ;(t = c.a.createElement(x.a, { + ;(t = c.a.createElement(C.a, { style: this.getZIndexStyle(), key: 'mask', className: e.prefixCls + '-mask', @@ -23186,7 +22701,7 @@ and limitations under the License. prefixCls: h.a.string, onMouseLeave: h.a.func, } - var k = function() { + var T = function() { var e = this ;(this.onAlign = function(t, n) { var o = e.props, @@ -23203,7 +22718,7 @@ and limitations under the License. }, function(e, t, n) { 'use strict' - var o = n(154) + var o = n(139) t.a = o.a }, function(e, t, n) { @@ -23218,11 +22733,11 @@ and limitations under the License. var i return (o.clear = n), o } - var i = n(7), + var i = n(5), r = n.n(i), - a = n(8), + a = n(6), l = n.n(a), - s = n(9), + s = n(7), d = n.n(s), p = n(0), u = n.n(p), @@ -23230,9 +22745,9 @@ and limitations under the License. f = n.n(c), h = n(2), m = n.n(h), - g = n(155), - y = n(68), - b = n(163), + g = n(140), + y = n(58), + b = n(148), v = (function(e) { function t() { var n, o, i @@ -23330,2438 +22845,1770 @@ and limitations under the License. target: function() { return window }, - onAlign: function() {}, - monitorBufferTime: 50, - monitorWindowResize: !1, - disabled: !1, - }), - (t.a = v) - }, - function(e, t, n) { - 'use strict' - function o(e, t, n) { - return e.left < n.left || e.left + t.width > n.right - } - function i(e, t, n) { - return e.top < n.top || e.top + t.height > n.bottom - } - function r(e, t, n) { - return e.left > n.right || e.left + t.width < n.left - } - function a(e, t, n) { - return e.top > n.bottom || e.top + t.height < n.top - } - function l(e) { - var t = Object(m.a)(e), - n = Object(y.a)(e) - return ( - !t || - n.left + n.width <= t.left || - n.top + n.height <= t.top || - n.left >= t.right || - n.top >= t.bottom - ) - } - function s(e, t, n) { - var o = [] - return ( - f.a.each(e, function(e) { - o.push( - e.replace(t, function(e) { - return n[e] - }), - ) - }), - o - ) - } - function d(e, t) { - return (e[t] = -e[t]), e - } - function p(e, t) { - var o - return ( - (o = /%$/.test(e) - ? parseInt(e.substring(0, e.length - 1), 10) / 100 * t - : parseInt(e, 10)), - o || 0 - ) - } - function u(e, t) { - ;(e[0] = p(e[0], t.width)), (e[1] = p(e[1], t.height)) - } - function c(e, t, n) { - var p = n.points, - c = n.offset || [0, 0], - h = n.targetOffset || [0, 0], - v = n.overflow, - x = n.target || t, - C = n.source || e - ;(c = [].concat(c)), (h = [].concat(h)), (v = v || {}) - var w = {}, - k = 0, - T = Object(m.a)(C), - S = Object(y.a)(C), - E = Object(y.a)(x) - u(c, S), u(h, E) - var _ = Object(b.a)(S, E, p, c, h), - P = f.a.merge(S, _), - O = !l(x) - if (T && (v.adjustX || v.adjustY) && O) { - if (v.adjustX && o(_, S, T)) { - var N = s(p, /[lr]/gi, { l: 'r', r: 'l' }), - L = d(c, 0), - M = d(h, 0), - D = Object(b.a)(S, E, N, L, M) - r(D, S, T) || ((k = 1), (p = N), (c = L), (h = M)) - } - if (v.adjustY && i(_, S, T)) { - var I = s(p, /[tb]/gi, { t: 'b', b: 't' }), - A = d(c, 1), - R = d(h, 1), - F = Object(b.a)(S, E, I, A, R) - a(F, S, T) || ((k = 1), (p = I), (c = A), (h = R)) - } - k && ((_ = Object(b.a)(S, E, p, c, h)), f.a.mix(P, _)) - var H = o(_, S, T), - V = i(_, S, T) - ;(H || V) && - ((p = n.points), - (c = n.offset || [0, 0]), - (h = n.targetOffset || [0, 0])), - (w.adjustX = v.adjustX && H), - (w.adjustY = v.adjustY && V), - (w.adjustX || w.adjustY) && (P = Object(g.a)(_, S, T, w)) - } - return ( - P.width !== S.width && - f.a.css(C, 'width', f.a.width(C) + P.width - S.width), - P.height !== S.height && - f.a.css(C, 'height', f.a.height(C) + P.height - S.height), - f.a.offset( - C, - { left: P.left, top: P.top }, - { - useCssRight: n.useCssRight, - useCssBottom: n.useCssBottom, - useCssTransform: n.useCssTransform, - }, - ), - { points: p, offset: c, targetOffset: h, overflow: w } - ) - } - var f = n(22), - h = n(69), - m = n(157), - g = n(159), - y = n(160), - b = n(161) - ;(c.__getOffsetParent = h.a), - (c.__getVisibleRectForElement = m.a), - (t.a = c) - }, - function(e, t) { - 'use strict' - function n() { - if (a != void 0) return a - a = '' - var e = document.createElement('p').style - for (var t in l) t + 'Transform' in e && (a = t) - return a - } - function o() { - return n() ? n() + 'TransitionProperty' : 'transitionProperty' - } - function i() { - return n() ? n() + 'Transform' : 'transform' - } - function r(e, t) { - var n = i() - n && ((e.style[n] = t), 'transform' !== n && (e.style.transform = t)) - } - ;(t.a = i), - (t.e = function(e, t) { - var n = o() - n && - ((e.style[n] = t), - 'transitionProperty' !== n && (e.style.transitionProperty = t)) - }), - (t.c = function(e) { - return e.style.transitionProperty || e.style[o()] - }), - (t.b = function(e) { - var t = window.getComputedStyle(e, null), - n = t.getPropertyValue('transform') || t.getPropertyValue(i()) - if (n && 'none' !== n) { - var o = n.replace(/[^0-9\-.,]/g, '').split(',') - return { - x: parseFloat(o[12] || o[4], 0), - y: parseFloat(o[13] || o[5], 0), - } - } - return { x: 0, y: 0 } - }), - (t.d = function(e, t) { - var n = window.getComputedStyle(e, null), - o = n.getPropertyValue('transform') || n.getPropertyValue(i()) - if (o && 'none' !== o) { - var a = o.match(s), - l - if (a) - (a = a[1]), - (l = a.split(',').map(function(e) { - return parseFloat(e, 10) - })), - (l[4] = t.x), - (l[5] = t.y), - r(e, 'matrix(' + l.join(',') + ')') - else { - var p = o.match(d)[1] - ;(l = p.split(',').map(function(e) { - return parseFloat(e, 10) - })), - (l[12] = t.x), - (l[13] = t.y), - r(e, 'matrix3d(' + l.join(',') + ')') - } - } else - r( - e, - 'translateX(' + - t.x + - 'px) translateY(' + - t.y + - 'px) translateZ(0)', - ) - }) - var a = void 0, - l = { Webkit: '-webkit-', Moz: '-moz-', ms: '-ms-', O: '-o-' }, - s = /matrix\((.*)\)/, - d = /matrix3d\((.*)\)/ - }, - function(e, t, n) { - 'use strict' - var o = Math.min, - i = Math.max, - r = n(22), - a = n(69), - l = n(158) - t.a = function(e) { - for ( - var t = { left: 0, right: Infinity, top: 0, bottom: Infinity }, - n = Object(a.a)(e), - s = r.a.getDocument(e), - d = s.defaultView || s.parentWindow, - p = s.body, - u = s.documentElement; - n; - - ) { - if ( - (-1 === navigator.userAgent.indexOf('MSIE') || - 0 !== n.clientWidth) && - n !== p && - n !== u && - 'visible' !== r.a.css(n, 'overflow') - ) { - var c = r.a.offset(n) - ;(c.left += n.clientLeft), - (c.top += n.clientTop), - (t.top = i(t.top, c.top)), - (t.right = o(t.right, c.left + n.clientWidth)), - (t.bottom = o(t.bottom, c.top + n.clientHeight)), - (t.left = i(t.left, c.left)) - } else if (n === p || n === u) break - n = Object(a.a)(n) - } - var f = null - if (!r.a.isWindow(e) && 9 !== e.nodeType) { - f = e.style.position - var h = r.a.css(e, 'position') - 'absolute' === h && (e.style.position = 'fixed') - } - var m = r.a.getWindowScrollLeft(d), - g = r.a.getWindowScrollTop(d), - y = r.a.viewportWidth(d), - b = r.a.viewportHeight(d), - v = u.scrollWidth, - x = u.scrollHeight - if ((e.style && (e.style.position = f), Object(l.a)(e))) - (t.left = i(t.left, m)), - (t.top = i(t.top, g)), - (t.right = o(t.right, m + y)), - (t.bottom = o(t.bottom, g + b)) - else { - var C = i(v, m + y) - t.right = o(t.right, C) - var w = i(x, g + b) - t.bottom = o(t.bottom, w) - } - return 0 <= t.top && 0 <= t.left && t.bottom > t.top && t.right > t.left - ? t - : null - } - }, - function(e, t, n) { - 'use strict' - t.a = function(e) { - if (o.a.isWindow(e) || 9 === e.nodeType) return !1 - var t = o.a.getDocument(e), - n = t.body, - i = null - for (i = e.parentNode; i && i !== n; i = i.parentNode) { - var r = o.a.css(i, 'position') - if ('fixed' === r) return !0 - } - return !1 - } - var o = n(22) - }, - function(e, t, n) { - 'use strict' - var o = Math.max, - i = n(22) - t.a = function(e, t, n, r) { - var a = i.a.clone(e), - l = { width: t.width, height: t.height } - return ( - r.adjustX && a.left < n.left && (a.left = n.left), - r.resizeWidth && - a.left >= n.left && - a.left + l.width > n.right && - (l.width -= a.left + l.width - n.right), - r.adjustX && - a.left + l.width > n.right && - (a.left = o(n.right - l.width, n.left)), - r.adjustY && a.top < n.top && (a.top = n.top), - r.resizeHeight && - a.top >= n.top && - a.top + l.height > n.bottom && - (l.height -= a.top + l.height - n.bottom), - r.adjustY && - a.top + l.height > n.bottom && - (a.top = o(n.bottom - l.height, n.top)), - i.a.mix(a, l) - ) - } - }, - function(e, t, n) { - 'use strict' - var o = n(22) - t.a = function(e) { - var t, n, i - if (!o.a.isWindow(e) && 9 !== e.nodeType) - (t = o.a.offset(e)), (n = o.a.outerWidth(e)), (i = o.a.outerHeight(e)) - else { - var r = o.a.getWindow(e) - ;(t = { - left: o.a.getWindowScrollLeft(r), - top: o.a.getWindowScrollTop(r), - }), - (n = o.a.viewportWidth(r)), - (i = o.a.viewportHeight(r)) - } - return (t.width = n), (t.height = i), t - } - }, - function(e, t, n) { - 'use strict' - var o = n(162) - t.a = function(e, t, n, i, r) { - var a = Object(o.a)(t, n[1]), - l = Object(o.a)(e, n[0]), - s = [l.left - a.left, l.top - a.top] - return { - left: e.left - s[0] + i[0] - r[0], - top: e.top - s[1] + i[1] - r[1], - } - } - }, - function(e, t) { - 'use strict' - t.a = function(e, t) { - var n = t.charAt(0), - o = t.charAt(1), - i = e.width, - r = e.height, - a = e.left, - l = e.top - return ( - 'c' === n ? (l += r / 2) : 'b' === n && (l += r), - 'c' === o ? (a += i / 2) : 'r' === o && (a += i), - { left: a, top: l } - ) - } - }, - function(e, t) { - 'use strict' - t.a = function(e) { - return null != e && e == e.window - } - }, - function(e, t, n) { - 'use strict' - function o(e) { - var t = e.children - return b.a.isValidElement(t) && !t.key - ? b.a.cloneElement(t, { key: T }) - : t - } - function i() {} - var r = n(16), - a = n.n(r), - l = n(165), - s = n.n(l), - d = n(7), - p = n.n(d), - u = n(50), - c = n.n(u), - f = n(8), - h = n.n(f), - m = n(9), - g = n.n(m), - y = n(0), - b = n.n(y), - v = n(1), - x = n.n(v), - C = n(168), - w = n(169), - k = n(72), - T = 'rc_animate_' + Date.now(), - S = (function(e) { - function t(e) { - p()(this, t) - var n = h()( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e), - ) - return ( - E.call(n), - (n.currentlyAnimatingKeys = {}), - (n.keysToEnter = []), - (n.keysToLeave = []), - (n.state = { children: Object(C.e)(o(e)) }), - (n.childrenRefs = {}), - n - ) - } - return ( - g()(t, e), - c()(t, [ - { - key: 'componentDidMount', - value: function() { - var e = this, - t = this.props.showProp, - n = this.state.children - t && - (n = n.filter(function(e) { - return !!e.props[t] - })), - n.forEach(function(t) { - t && e.performAppear(t.key) - }) - }, - }, - { - key: 'componentWillReceiveProps', - value: function(e) { - var t = this - this.nextProps = e - var n = Object(C.e)(o(e)), - i = this.props - i.exclusive && - Object.keys(this.currentlyAnimatingKeys).forEach(function( - e, - ) { - t.stop(e) - }) - var r = i.showProp, - a = this.currentlyAnimatingKeys, - l = i.exclusive ? Object(C.e)(o(i)) : this.state.children, - d = [] - r - ? (l.forEach(function(e) { - var t = e && Object(C.a)(n, e.key), - o - ;(o = - (t && t.props[r]) || !e.props[r] - ? t - : b.a.cloneElement(t || e, s()({}, r, !0))), - o && d.push(o) - }), - n.forEach(function(e) { - ;(e && Object(C.a)(l, e.key)) || d.push(e) - })) - : (d = Object(C.d)(l, n)), - this.setState({ children: d }), - n.forEach(function(e) { - var n = e && e.key - if (!(e && a[n])) { - var o = e && Object(C.a)(l, n) - if (r) { - var i = e.props[r] - if (o) { - var s = Object(C.b)(l, n, r) - !s && i && t.keysToEnter.push(n) - } else i && t.keysToEnter.push(n) - } else o || t.keysToEnter.push(n) - } - }), - l.forEach(function(e) { - var o = e && e.key - if (!(e && a[o])) { - var i = e && Object(C.a)(n, o) - if (r) { - var l = e.props[r] - if (i) { - var s = Object(C.b)(n, o, r) - !s && l && t.keysToLeave.push(o) - } else l && t.keysToLeave.push(o) - } else i || t.keysToLeave.push(o) - } - }) - }, - }, - { - key: 'componentDidUpdate', - value: function() { - var e = this.keysToEnter - ;(this.keysToEnter = []), e.forEach(this.performEnter) - var t = this.keysToLeave - ;(this.keysToLeave = []), t.forEach(this.performLeave) - }, - }, - { - key: 'isValidChildByKey', - value: function(e, t) { - var n = this.props.showProp - return n ? Object(C.b)(e, t, n) : Object(C.a)(e, t) - }, - }, - { - key: 'stop', - value: function(e) { - delete this.currentlyAnimatingKeys[e] - var t = this.childrenRefs[e] - t && t.stop() - }, - }, - { - key: 'render', - value: function() { - var e = this, - t = this.props - this.nextProps = t - var n = this.state.children, - o = null - n && - (o = n.map(function(n) { - if (null === n || void 0 === n) return n - if (!n.key) - throw new Error( - 'must set key for children', - ) - return b.a.createElement( - w.a, - { - key: n.key, - ref: function(t) { - return (e.childrenRefs[n.key] = t) - }, - animation: t.animation, - transitionName: t.transitionName, - transitionEnter: t.transitionEnter, - transitionAppear: t.transitionAppear, - transitionLeave: t.transitionLeave, - }, - n, - ) - })) - var i = t.component - if (i) { - var r = t - return ( - 'string' == typeof i && - (r = a()( - { className: t.className, style: t.style }, - t.componentProps, - )), - b.a.createElement(i, r, o) - ) - } - return o[0] || null - }, - }, - ]), - t - ) - })(b.a.Component) - ;(S.isAnimate = !0), - (S.propTypes = { - component: x.a.any, - componentProps: x.a.object, - animation: x.a.object, - transitionName: x.a.oneOfType([x.a.string, x.a.object]), - transitionEnter: x.a.bool, - transitionAppear: x.a.bool, - exclusive: x.a.bool, - transitionLeave: x.a.bool, - onEnd: x.a.func, - onEnter: x.a.func, - onLeave: x.a.func, - onAppear: x.a.func, - showProp: x.a.string, - }), - (S.defaultProps = { - animation: {}, - component: 'span', - componentProps: {}, - transitionEnter: !0, - transitionLeave: !0, - transitionAppear: !1, - onEnd: i, - onEnter: i, - onLeave: i, - onAppear: i, - }) - var E = function() { - var e = this - ;(this.performEnter = function(t) { - e.childrenRefs[t] && - ((e.currentlyAnimatingKeys[t] = !0), - e.childrenRefs[t].componentWillEnter( - e.handleDoneAdding.bind(e, t, 'enter'), - )) - }), - (this.performAppear = function(t) { - e.childrenRefs[t] && - ((e.currentlyAnimatingKeys[t] = !0), - e.childrenRefs[t].componentWillAppear( - e.handleDoneAdding.bind(e, t, 'appear'), - )) - }), - (this.handleDoneAdding = function(t, n) { - var i = e.props - if ( - (delete e.currentlyAnimatingKeys[t], - !(i.exclusive && i !== e.nextProps)) - ) { - var r = Object(C.e)(o(i)) - e.isValidChildByKey(r, t) - ? 'appear' === n - ? k.a.allowAppearCallback(i) && - (i.onAppear(t), i.onEnd(t, !0)) - : k.a.allowEnterCallback(i) && (i.onEnter(t), i.onEnd(t, !0)) - : e.performLeave(t) - } - }), - (this.performLeave = function(t) { - e.childrenRefs[t] && - ((e.currentlyAnimatingKeys[t] = !0), - e.childrenRefs[t].componentWillLeave( - e.handleDoneLeaving.bind(e, t), - )) - }), - (this.handleDoneLeaving = function(t) { - var n = e.props - if ( - (delete e.currentlyAnimatingKeys[t], - !(n.exclusive && n !== e.nextProps)) - ) { - var i = Object(C.e)(o(n)) - if (e.isValidChildByKey(i, t)) e.performEnter(t) - else { - var r = function() { - k.a.allowLeaveCallback(n) && (n.onLeave(t), n.onEnd(t, !1)) - } - Object(C.c)(e.state.children, i, n.showProp) - ? r() - : e.setState({ children: i }, r) - } - } - }) - } - t.a = S + onAlign: function() {}, + monitorBufferTime: 50, + monitorWindowResize: !1, + disabled: !1, + }), + (t.a = v) }, function(e, t, n) { 'use strict' - t.__esModule = !0 - var o = n(70), - i = (function(e) { - return e && e.__esModule ? e : { default: e } - })(o) - t.default = function(e, t, n) { - return ( - t in e - ? (0, i.default)(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = n), - e - ) + function o(e, t, n) { + return e.left < n.left || e.left + t.width > n.right } - }, - function(e, t, n) { - n(167) - var o = n(11).Object - e.exports = function(e, t, n) { - return o.defineProperty(e, t, n) + function i(e, t, n) { + return e.top < n.top || e.top + t.height > n.bottom } - }, - function(e, t, n) { - var o = n(17) - o(o.S + o.F * !n(13), 'Object', { defineProperty: n(12).f }) - }, - function(e, t, n) { - 'use strict' - function o(e, t) { - var n = null + function r(e, t, n) { + return e.left > n.right || e.left + t.width < n.left + } + function a(e, t, n) { + return e.top > n.bottom || e.top + t.height < n.top + } + function l(e) { + var t = Object(m.a)(e), + n = Object(y.a)(e) return ( - e && - e.forEach(function(e) { - n || (e && e.key === t && (n = e)) - }), - n + !t || + n.left + n.width <= t.left || + n.top + n.height <= t.top || + n.left >= t.right || + n.top >= t.bottom ) } - ;(t.e = function(e) { - var t = [] + function s(e, t, n) { + var o = [] return ( - r.a.Children.forEach(e, function(e) { - t.push(e) - }), - t - ) - }), - (t.a = o), - (t.b = function(e, t, n) { - var o = null - return ( - e && - e.forEach(function(e) { - if (e && e.key === t && e.props[n]) { - if (o) - throw new Error( - 'two child with same key for children', - ) - o = e - } - }), - o - ) - }), - (t.c = function(e, t, n) { - var o = e.length === t.length - return ( - o && - e.forEach(function(e, i) { - var r = t[i] - e && - r && - ((e && !r) || (!e && r) - ? (o = !1) - : e.key === r.key - ? n && e.props[n] !== r.props[n] && (o = !1) - : (o = !1)) + f.a.each(e, function(e) { + o.push( + e.replace(t, function(e) { + return n[e] }), - o - ) - }), - (t.d = function(e, t) { - var n = [], - i = {}, - r = [] - return ( - e.forEach(function(e) { - e && o(t, e.key) - ? r.length && ((i[e.key] = r), (r = [])) - : r.push(e) - }), - t.forEach(function(e) { - e && i.hasOwnProperty(e.key) && (n = n.concat(i[e.key])), - n.push(e) - }), - (n = n.concat(r)), - n - ) - }) - var i = n(0), - r = n.n(i) - }, - function(e, t, n) { - 'use strict' - var o = n(32), - i = n.n(o), - r = n(7), - a = n.n(r), - l = n(50), - s = n.n(l), - d = n(8), - p = n.n(d), - u = n(9), - c = n.n(u), - f = n(0), - h = n.n(f), - m = n(2), - g = n.n(m), - y = n(1), - b = n.n(y), - v = n(170), - x = n(72), - C = { - enter: 'transitionEnter', - appear: 'transitionAppear', - leave: 'transitionLeave', - }, - w = (function(e) { - function t() { - return ( - a()(this, t), - p()( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments, - ), - ) ) - } - return ( - c()(t, e), - s()(t, [ - { - key: 'componentWillUnmount', - value: function() { - this.stop() - }, - }, - { - key: 'componentWillEnter', - value: function(e) { - x.a.isEnterSupported(this.props) - ? this.transition('enter', e) - : e() - }, - }, - { - key: 'componentWillAppear', - value: function(e) { - x.a.isAppearSupported(this.props) - ? this.transition('appear', e) - : e() - }, - }, - { - key: 'componentWillLeave', - value: function(e) { - x.a.isLeaveSupported(this.props) - ? this.transition('leave', e) - : e() - }, - }, - { - key: 'transition', - value: function(e, t) { - var n = this, - o = g.a.findDOMNode(this), - r = this.props, - a = r.transitionName, - l = - 'object' === - ('undefined' == typeof a ? 'undefined' : i()(a)) - this.stop() - var s = function() { - ;(n.stopper = null), t() - } - if ((v.b || !r.animation[e]) && a && r[C[e]]) { - var d = l ? a[e] : a + '-' + e, - p = d + '-active' - l && a[e + 'Active'] && (p = a[e + 'Active']), - (this.stopper = Object(v.a)(o, { name: d, active: p }, s)) - } else this.stopper = r.animation[e](o, s) - }, - }, - { - key: 'stop', - value: function() { - var e = this.stopper - e && ((this.stopper = null), e.stop()) - }, - }, - { - key: 'render', - value: function() { - return this.props.children - }, - }, - ]), - t - ) - })(h.a.Component) - ;(w.propTypes = { children: b.a.any }), (t.a = w) - }, - function(e, t, n) { - 'use strict' - function o(e, t) { - for ( - var n = window.getComputedStyle(e, null), o = '', r = 0; - r < f.length && ((o = n.getPropertyValue(f[r] + t)), !o); - r++ - ); - return o + }), + o + ) } - function i(e) { - if (u) { - var t = parseFloat(o(e, 'transition-delay')) || 0, - n = parseFloat(o(e, 'transition-duration')) || 0, - i = parseFloat(o(e, 'animation-delay')) || 0, - r = parseFloat(o(e, 'animation-duration')) || 0, - a = Math.max(n + t, r + i) - e.rcEndAnimTimeout = setTimeout(function() { - ;(e.rcEndAnimTimeout = null), e.rcEndListener && e.rcEndListener() - }, 1e3 * a + 200) - } + function d(e, t) { + return (e[t] = -e[t]), e + } + function p(e, t) { + var o + return ( + (o = /%$/.test(e) + ? parseInt(e.substring(0, e.length - 1), 10) / 100 * t + : parseInt(e, 10)), + o || 0 + ) } - function r(e) { - e.rcEndAnimTimeout && - (clearTimeout(e.rcEndAnimTimeout), (e.rcEndAnimTimeout = null)) + function u(e, t) { + ;(e[0] = p(e[0], t.width)), (e[1] = p(e[1], t.height)) } - n.d(t, 'b', function() { - return u - }) - var a = n(32), - l = n.n(a), - s = n(171), - d = n(172), - p = n.n(d), - u = 0 !== s.a.endEvents.length, - c = ['Webkit', 'Moz', 'O', 'ms'], - f = ['-webkit-', '-moz-', '-o-', 'ms-', ''], - h = function(t, e, n) { - var o = 'object' === ('undefined' == typeof e ? 'undefined' : l()(e)), - a = o ? e.name : e, - d = o ? e.active : e + '-active', - u = n, - c = p()(t), - f, - h - return ( - n && - '[object Object]' === Object.prototype.toString.call(n) && - ((u = n.end), (f = n.start), (h = n.active)), - t.rcEndListener && t.rcEndListener(), - (t.rcEndListener = function(n) { - ;(n && n.target !== t) || - (t.rcAnimTimeout && - (clearTimeout(t.rcAnimTimeout), (t.rcAnimTimeout = null)), - r(t), - c.remove(a), - c.remove(d), - s.a.removeEndEventListener(t, t.rcEndListener), - (t.rcEndListener = null), - u && u()) - }), - s.a.addEndEventListener(t, t.rcEndListener), - f && f(), - c.add(a), - (t.rcAnimTimeout = setTimeout(function() { - ;(t.rcAnimTimeout = null), c.add(d), h && setTimeout(h, 0), i(t) - }, 30)), - { - stop: function() { - t.rcEndListener && t.rcEndListener() - }, - } - ) + function c(e, t, n) { + var p = n.points, + c = n.offset || [0, 0], + h = n.targetOffset || [0, 0], + v = n.overflow, + C = n.target || t, + x = n.source || e + ;(c = [].concat(c)), (h = [].concat(h)), (v = v || {}) + var w = {}, + T = 0, + k = Object(m.a)(x), + S = Object(y.a)(x), + E = Object(y.a)(C) + u(c, S), u(h, E) + var O = Object(b.a)(S, E, p, c, h), + P = f.a.merge(S, O), + N = !l(C) + if (k && (v.adjustX || v.adjustY) && N) { + if (v.adjustX && o(O, S, k)) { + var L = s(p, /[lr]/gi, { l: 'r', r: 'l' }), + M = d(c, 0), + D = d(h, 0), + _ = Object(b.a)(S, E, L, M, D) + r(_, S, k) || ((T = 1), (p = L), (c = M), (h = D)) + } + if (v.adjustY && i(O, S, k)) { + var A = s(p, /[tb]/gi, { t: 'b', b: 't' }), + I = d(c, 1), + R = d(h, 1), + F = Object(b.a)(S, E, A, I, R) + a(F, S, k) || ((T = 1), (p = A), (c = I), (h = R)) + } + T && ((O = Object(b.a)(S, E, p, c, h)), f.a.mix(P, O)) + var H = o(O, S, k), + V = i(O, S, k) + ;(H || V) && + ((p = n.points), + (c = n.offset || [0, 0]), + (h = n.targetOffset || [0, 0])), + (w.adjustX = v.adjustX && H), + (w.adjustY = v.adjustY && V), + (w.adjustX || w.adjustY) && (P = Object(g.a)(O, S, k, w)) } - ;(h.style = function(t, e, n) { - t.rcEndListener && t.rcEndListener(), - (t.rcEndListener = function(o) { - ;(o && o.target !== t) || - (t.rcAnimTimeout && - (clearTimeout(t.rcAnimTimeout), (t.rcAnimTimeout = null)), - r(t), - s.a.removeEndEventListener(t, t.rcEndListener), - (t.rcEndListener = null), - n && n()) - }), - s.a.addEndEventListener(t, t.rcEndListener), - (t.rcAnimTimeout = setTimeout(function() { - for (var n in e) e.hasOwnProperty(n) && (t.style[n] = e[n]) - ;(t.rcAnimTimeout = null), i(t) - }, 0)) - }), - (h.setTransition = function(e, t, n) { - var o = t, - i = n - n === void 0 && ((i = o), (o = '')), - (o = o || ''), - c.forEach(function(t) { - e.style[t + 'Transition' + o] = i - }) - }), - (h.isCssAnimationSupported = u), - (t.a = h) + return ( + P.width !== S.width && + f.a.css(x, 'width', f.a.width(x) + P.width - S.width), + P.height !== S.height && + f.a.css(x, 'height', f.a.height(x) + P.height - S.height), + f.a.offset( + x, + { left: P.left, top: P.top }, + { + useCssRight: n.useCssRight, + useCssBottom: n.useCssBottom, + useCssTransform: n.useCssTransform, + }, + ), + { points: p, offset: c, targetOffset: h, overflow: w } + ) + } + var f = n(18), + h = n(59), + m = n(142), + g = n(144), + y = n(145), + b = n(146) + ;(c.__getOffsetParent = h.a), + (c.__getVisibleRectForElement = m.a), + (t.a = c) }, function(e, t) { 'use strict' - function n(e, t, n) { - e.addEventListener(t, n, !1) + function n() { + if (a != void 0) return a + a = '' + var e = document.createElement('p').style + for (var t in l) t + 'Transform' in e && (a = t) + return a } - function o(e, t, n) { - e.removeEventListener(t, n, !1) + function o() { + return n() ? n() + 'TransitionProperty' : 'transitionProperty' } - var i = { - transitionend: { - transition: 'transitionend', - WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'mozTransitionEnd', - OTransition: 'oTransitionEnd', - msTransition: 'MSTransitionEnd', - }, - animationend: { - animation: 'animationend', - WebkitAnimation: 'webkitAnimationEnd', - MozAnimation: 'mozAnimationEnd', - OAnimation: 'oAnimationEnd', - msAnimation: 'MSAnimationEnd', - }, - }, - r = [] - 'undefined' != typeof window && - 'undefined' != typeof document && - (function() { - var e = document.createElement('div'), - t = e.style - for (var n in ('AnimationEvent' in window || - delete i.animationend.animation, - 'TransitionEvent' in window || delete i.transitionend.transition, - i)) - if (i.hasOwnProperty(n)) { - var o = i[n] - for (var a in o) - if (a in t) { - r.push(o[a]) - break - } + function i() { + return n() ? n() + 'Transform' : 'transform' + } + function r(e, t) { + var n = i() + n && ((e.style[n] = t), 'transform' !== n && (e.style.transform = t)) + } + ;(t.a = i), + (t.e = function(e, t) { + var n = o() + n && + ((e.style[n] = t), + 'transitionProperty' !== n && (e.style.transitionProperty = t)) + }), + (t.c = function(e) { + return e.style.transitionProperty || e.style[o()] + }), + (t.b = function(e) { + var t = window.getComputedStyle(e, null), + n = t.getPropertyValue('transform') || t.getPropertyValue(i()) + if (n && 'none' !== n) { + var o = n.replace(/[^0-9\-.,]/g, '').split(',') + return { + x: parseFloat(o[12] || o[4], 0), + y: parseFloat(o[13] || o[5], 0), } - })() - t.a = { - addEndEventListener: function(e, t) { - return 0 === r.length - ? void window.setTimeout(t, 0) - : void r.forEach(function(o) { - n(e, o, t) - }) - }, - endEvents: r, - removeEndEventListener: function(e, t) { - 0 === r.length || - r.forEach(function(n) { - o(e, n, t) - }) - }, + } + return { x: 0, y: 0 } + }), + (t.d = function(e, t) { + var n = window.getComputedStyle(e, null), + o = n.getPropertyValue('transform') || n.getPropertyValue(i()) + if (o && 'none' !== o) { + var a = o.match(s), + l + if (a) + (a = a[1]), + (l = a.split(',').map(function(e) { + return parseFloat(e, 10) + })), + (l[4] = t.x), + (l[5] = t.y), + r(e, 'matrix(' + l.join(',') + ')') + else { + var p = o.match(d)[1] + ;(l = p.split(',').map(function(e) { + return parseFloat(e, 10) + })), + (l[12] = t.x), + (l[13] = t.y), + r(e, 'matrix3d(' + l.join(',') + ')') + } + } else + r( + e, + 'translateX(' + + t.x + + 'px) translateY(' + + t.y + + 'px) translateZ(0)', + ) + }) + var a = void 0, + l = { Webkit: '-webkit-', Moz: '-moz-', ms: '-ms-', O: '-o-' }, + s = /matrix\((.*)\)/, + d = /matrix3d\((.*)\)/ + }, + function(e, t, n) { + 'use strict' + var o = Math.min, + i = Math.max, + r = n(18), + a = n(59), + l = n(143) + t.a = function(e) { + for ( + var t = { left: 0, right: Infinity, top: 0, bottom: Infinity }, + n = Object(a.a)(e), + s = r.a.getDocument(e), + d = s.defaultView || s.parentWindow, + p = s.body, + u = s.documentElement; + n; + + ) { + if ( + (-1 === navigator.userAgent.indexOf('MSIE') || + 0 !== n.clientWidth) && + n !== p && + n !== u && + 'visible' !== r.a.css(n, 'overflow') + ) { + var c = r.a.offset(n) + ;(c.left += n.clientLeft), + (c.top += n.clientTop), + (t.top = i(t.top, c.top)), + (t.right = o(t.right, c.left + n.clientWidth)), + (t.bottom = o(t.bottom, c.top + n.clientHeight)), + (t.left = i(t.left, c.left)) + } else if (n === p || n === u) break + n = Object(a.a)(n) + } + var f = null + if (!r.a.isWindow(e) && 9 !== e.nodeType) { + f = e.style.position + var h = r.a.css(e, 'position') + 'absolute' === h && (e.style.position = 'fixed') + } + var m = r.a.getWindowScrollLeft(d), + g = r.a.getWindowScrollTop(d), + y = r.a.viewportWidth(d), + b = r.a.viewportHeight(d), + v = u.scrollWidth, + C = u.scrollHeight + if ((e.style && (e.style.position = f), Object(l.a)(e))) + (t.left = i(t.left, m)), + (t.top = i(t.top, g)), + (t.right = o(t.right, m + y)), + (t.bottom = o(t.bottom, g + b)) + else { + var x = i(v, m + y) + t.right = o(t.right, x) + var w = i(C, g + b) + t.bottom = o(t.bottom, w) + } + return 0 <= t.top && 0 <= t.left && t.bottom > t.top && t.right > t.left + ? t + : null } }, function(e, t, n) { - function o(e) { - if (!e || !e.nodeType) - throw new Error('A DOM element reference is required') - ;(this.el = e), (this.list = e.classList) - } - try { - var r = n(71) - } catch (e) { - var r = n(71) + 'use strict' + t.a = function(e) { + if (o.a.isWindow(e) || 9 === e.nodeType) return !1 + var t = o.a.getDocument(e), + n = t.body, + i = null + for (i = e.parentNode; i && i !== n; i = i.parentNode) { + var r = o.a.css(i, 'position') + if ('fixed' === r) return !0 + } + return !1 } - var i = /\s+/, - a = Object.prototype.toString - ;(e.exports = function(e) { - return new o(e) - }), - (o.prototype.add = function(e) { - if (this.list) return this.list.add(e), this - var t = this.array(), - n = r(t, e) - return ~n || t.push(e), (this.el.className = t.join(' ')), this - }), - (o.prototype.remove = function(e) { - if ('[object RegExp]' == a.call(e)) return this.removeMatching(e) - if (this.list) return this.list.remove(e), this - var t = this.array(), - n = r(t, e) - return ~n && t.splice(n, 1), (this.el.className = t.join(' ')), this - }), - (o.prototype.removeMatching = function(e) { - for (var t = this.array(), n = 0; n < t.length; n++) - e.test(t[n]) && this.remove(t[n]) - return this - }), - (o.prototype.toggle = function(e, t) { - return this.list - ? ('undefined' == typeof t - ? this.list.toggle(e) - : t !== this.list.toggle(e, t) && this.list.toggle(e), - this) - : ('undefined' == typeof t - ? this.has(e) ? this.remove(e) : this.add(e) - : t ? this.add(e) : this.remove(e), - this) - }), - (o.prototype.array = function() { - var e = this.el.getAttribute('class') || '', - t = e.replace(/^\s+|\s+$/g, ''), - n = t.split(i) - return '' === n[0] && n.shift(), n - }), - (o.prototype.has = o.prototype.contains = function(e) { - return this.list ? this.list.contains(e) : !!~r(this.array(), e) - }) + var o = n(18) }, function(e, t, n) { 'use strict' - var o = n(7), - i = n.n(o), - r = n(8), - a = n.n(r), - l = n(9), - s = n.n(l), - d = n(0), - p = n.n(d), - u = n(1), - c = n.n(u), - f = n(73), - h = (function(e) { - function t() { - return i()(this, t), a()(this, e.apply(this, arguments)) - } - return ( - s()(t, e), - (t.prototype.render = function() { - var e = this.props, - t = e.className - return ( - e.visible || (t += ' ' + e.hiddenClassName), - p.a.createElement( - 'div', - { - className: t, - onMouseEnter: e.onMouseEnter, - onMouseLeave: e.onMouseLeave, - style: e.style, - }, - p.a.createElement( - f.a, - { className: e.prefixCls + '-content', visible: e.visible }, - e.children, - ), - ) - ) - }), - t - ) - })(d.Component) - ;(h.propTypes = { - hiddenClassName: c.a.string, - className: c.a.string, - prefixCls: c.a.string, - onMouseEnter: c.a.func, - onMouseLeave: c.a.func, - children: c.a.any, - }), - (t.a = h) + var o = Math.max, + i = n(18) + t.a = function(e, t, n, r) { + var a = i.a.clone(e), + l = { width: t.width, height: t.height } + return ( + r.adjustX && a.left < n.left && (a.left = n.left), + r.resizeWidth && + a.left >= n.left && + a.left + l.width > n.right && + (l.width -= a.left + l.width - n.right), + r.adjustX && + a.left + l.width > n.right && + (a.left = o(n.right - l.width, n.left)), + r.adjustY && a.top < n.top && (a.top = n.top), + r.resizeHeight && + a.top >= n.top && + a.top + l.height > n.bottom && + (l.height -= a.top + l.height - n.bottom), + r.adjustY && + a.top + l.height > n.bottom && + (a.top = o(n.bottom - l.height, n.top)), + i.a.mix(a, l) + ) + } }, function(e, t, n) { 'use strict' - function o() { - var e = document.createElement('div') - return document.body.appendChild(e), e - } + var o = n(18) t.a = function(e) { - function t(e, t, n) { - if (!p || e._component || p(e) || (u && u(e))) { - e._container || (e._container = h(e)) - var o - ;(o = e.getComponent ? e.getComponent(t) : c(e, t)), - l.a.unstable_renderSubtreeIntoContainer( - e, - o, - e._container, - function() { - ;(e._component = this), n && n.call(this) - }, - ) - } - } - function n(e) { - if (e._container) { - var t = e._container - l.a.unmountComponentAtNode(t), - t.parentNode.removeChild(t), - (e._container = null) - } + var t, n, i + if (!o.a.isWindow(e) && 9 !== e.nodeType) + (t = o.a.offset(e)), (n = o.a.outerWidth(e)), (i = o.a.outerHeight(e)) + else { + var r = o.a.getWindow(e) + ;(t = { + left: o.a.getWindowScrollLeft(r), + top: o.a.getWindowScrollTop(r), + }), + (n = o.a.viewportWidth(r)), + (i = o.a.viewportHeight(r)) } - var i = e.autoMount, - a = void 0 === i || i, - s = e.autoDestroy, - d = void 0 === s || s, - p = e.isVisible, - u = e.isForceRender, - c = e.getComponent, - f = e.getContainer, - h = void 0 === f ? o : f, - m - return ( - a && - (m = r()({}, m, { - componentDidMount: function() { - t(this) - }, - componentDidUpdate: function() { - t(this) - }, - })), - (a && d) || - (m = r()({}, m, { - renderComponent: function(e, n) { - t(this, e, n) - }, - })), - (m = d - ? r()({}, m, { - componentWillUnmount: function() { - n(this) - }, - }) - : r()({}, m, { - removeContainer: function() { - n(this) - }, - })), - m + return (t.width = n), (t.height = i), t + } + }, + function(e, t, n) { + 'use strict' + var o = n(147) + t.a = function(e, t, n, i, r) { + var a = Object(o.a)(t, n[1]), + l = Object(o.a)(e, n[0]), + s = [l.left - a.left, l.top - a.top] + return { + left: e.left - s[0] + i[0] - r[0], + top: e.top - s[1] + i[1] - r[1], + } + } + }, + function(e, t) { + 'use strict' + t.a = function(e, t) { + var n = t.charAt(0), + o = t.charAt(1), + i = e.width, + r = e.height, + a = e.left, + l = e.top + return ( + 'c' === n ? (l += r / 2) : 'b' === n && (l += r), + 'c' === o ? (a += i / 2) : 'r' === o && (a += i), + { left: a, top: l } ) } - var i = n(16), - r = n.n(i), - a = n(2), - l = n.n(a) + }, + function(e, t) { + 'use strict' + t.a = function(e) { + return null != e && e == e.window + } }, function(e, t, n) { 'use strict' - var o = n(7), - i = n.n(o), - r = n(50), + function o(e) { + var t = e.children + return b.a.isValidElement(t) && !t.key + ? b.a.cloneElement(t, { key: k }) + : t + } + function i() {} + var r = n(12), a = n.n(r), - l = n(8), + l = n(150), s = n.n(l), - d = n(9), + d = n(5), p = n.n(d), - u = n(0), + u = n(42), c = n.n(u), - f = n(2), + f = n(6), h = n.n(f), - m = n(1), + m = n(7), g = n.n(m), - y = (function(e) { - function t() { + y = n(0), + b = n.n(y), + v = n(1), + C = n.n(v), + x = n(153), + w = n(154), + T = n(62), + k = 'rc_animate_' + Date.now(), + S = (function(e) { + function t(e) { + p()(this, t) + var n = h()( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e), + ) return ( - i()(this, t), - s()( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments, - ), - ) + E.call(n), + (n.currentlyAnimatingKeys = {}), + (n.keysToEnter = []), + (n.keysToLeave = []), + (n.state = { children: Object(x.e)(o(e)) }), + (n.childrenRefs = {}), + n ) } return ( - p()(t, e), - a()(t, [ + g()(t, e), + c()(t, [ { key: 'componentDidMount', value: function() { - this.createContainer() + var e = this, + t = this.props.showProp, + n = this.state.children + t && + (n = n.filter(function(e) { + return !!e.props[t] + })), + n.forEach(function(t) { + t && e.performAppear(t.key) + }) }, }, { - key: 'componentDidUpdate', + key: 'componentWillReceiveProps', value: function(e) { - var t = this.props.didUpdate - t && t(e) - }, - }, - { - key: 'componentWillUnmount', - value: function() { - this.removeContainer() - }, - }, - { - key: 'createContainer', - value: function() { - ;(this._container = this.props.getContainer()), - this.forceUpdate() - }, - }, - { - key: 'removeContainer', - value: function() { - this._container && - this._container.parentNode.removeChild(this._container) - }, - }, - { - key: 'render', - value: function() { - return this._container - ? h.a.createPortal(this.props.children, this._container) - : null - }, - }, - ]), - t - ) - })(c.a.Component) - ;(y.propTypes = { - getContainer: g.a.func.isRequired, - children: g.a.node.isRequired, - didUpdate: g.a.func, - }), - (t.a = y) - }, - function(e, t, n) { - 'use strict' - n.d(t, 'a', function() { - return r - }) - var o = { adjustX: 1, adjustY: 1 }, - i = [0, 0], - r = { - left: { - points: ['cr', 'cl'], - overflow: o, - offset: [-4, 0], - targetOffset: i, - }, - right: { - points: ['cl', 'cr'], - overflow: o, - offset: [4, 0], - targetOffset: i, - }, - top: { - points: ['bc', 'tc'], - overflow: o, - offset: [0, -4], - targetOffset: i, - }, - bottom: { - points: ['tc', 'bc'], - overflow: o, - offset: [0, 4], - targetOffset: i, - }, - topLeft: { - points: ['bl', 'tl'], - overflow: o, - offset: [0, -4], - targetOffset: i, - }, - leftTop: { - points: ['tr', 'tl'], - overflow: o, - offset: [-4, 0], - targetOffset: i, - }, - topRight: { - points: ['br', 'tr'], - overflow: o, - offset: [0, -4], - targetOffset: i, - }, - rightTop: { - points: ['tl', 'tr'], - overflow: o, - offset: [4, 0], - targetOffset: i, - }, - bottomRight: { - points: ['tr', 'br'], - overflow: o, - offset: [0, 4], - targetOffset: i, - }, - rightBottom: { - points: ['bl', 'br'], - overflow: o, - offset: [4, 0], - targetOffset: i, - }, - bottomLeft: { - points: ['tl', 'bl'], - overflow: o, - offset: [0, 4], - targetOffset: i, - }, - leftBottom: { - points: ['br', 'bl'], - overflow: o, - offset: [-4, 0], - targetOffset: i, - }, - } - }, - function(e, t, n) { - 'use strict' - e.exports = n(178)() ? Set : n(179) - }, - function(e) { - 'use strict' - e.exports = function() { - var e, t, n - return ( - !('function' != typeof Set) && - ((e = new Set(['raz', 'dwa', 'trzy'])), '[object Set]' === e + '') && - !(3 !== e.size) && - !('function' != typeof e.add) && - !('function' != typeof e.clear) && - !('function' != typeof e.delete) && - !('function' != typeof e.entries) && - !('function' != typeof e.forEach) && - !('function' != typeof e.has) && - !('function' != typeof e.keys) && - !('function' != typeof e.values) && - ((t = e.values()), (n = t.next()), !1 === n.done && 'raz' === n.value) - ) - } - }, - function(e, t, n) { - 'use strict' - var o = n(76), - i = n(180), - r = n(33), - a = n(5), - l = n(15), - s = n(198), - d = n(10), - p = n(82), - u = n(204), - c = n(217), - f = n(218), - h = Function.prototype.call, - m = Object.defineProperty, - g = Object.getPrototypeOf, - y, - b, - v - f && (v = Set), - (e.exports = y = function() { - var e = arguments[0], - t - if (!(this instanceof y)) - throw new TypeError("Constructor requires 'new'") - return ((t = f && r ? r(new v(), g(this)) : this), - null != e && p(e), - m(t, '__setData__', l('c', [])), - !e) - ? t - : (u( - e, - function(e) { - ;-1 !== i.call(this, e) || this.push(e) + var t = this + this.nextProps = e + var n = Object(x.e)(o(e)), + i = this.props + i.exclusive && + Object.keys(this.currentlyAnimatingKeys).forEach(function( + e, + ) { + t.stop(e) + }) + var r = i.showProp, + a = this.currentlyAnimatingKeys, + l = i.exclusive ? Object(x.e)(o(i)) : this.state.children, + d = [] + r + ? (l.forEach(function(e) { + var t = e && Object(x.a)(n, e.key), + o + ;(o = + (t && t.props[r]) || !e.props[r] + ? t + : b.a.cloneElement(t || e, s()({}, r, !0))), + o && d.push(o) + }), + n.forEach(function(e) { + ;(e && Object(x.a)(l, e.key)) || d.push(e) + })) + : (d = Object(x.d)(l, n)), + this.setState({ children: d }), + n.forEach(function(e) { + var n = e && e.key + if (!(e && a[n])) { + var o = e && Object(x.a)(l, n) + if (r) { + var i = e.props[r] + if (o) { + var s = Object(x.b)(l, n, r) + !s && i && t.keysToEnter.push(n) + } else i && t.keysToEnter.push(n) + } else o || t.keysToEnter.push(n) + } + }), + l.forEach(function(e) { + var o = e && e.key + if (!(e && a[o])) { + var i = e && Object(x.a)(n, o) + if (r) { + var l = e.props[r] + if (i) { + var s = Object(x.b)(n, o, r) + !s && l && t.keysToLeave.push(o) + } else l && t.keysToLeave.push(o) + } else i || t.keysToLeave.push(o) + } + }) }, - t.__setData__, - ), - t) + }, + { + key: 'componentDidUpdate', + value: function() { + var e = this.keysToEnter + ;(this.keysToEnter = []), e.forEach(this.performEnter) + var t = this.keysToLeave + ;(this.keysToLeave = []), t.forEach(this.performLeave) + }, + }, + { + key: 'isValidChildByKey', + value: function(e, t) { + var n = this.props.showProp + return n ? Object(x.b)(e, t, n) : Object(x.a)(e, t) + }, + }, + { + key: 'stop', + value: function(e) { + delete this.currentlyAnimatingKeys[e] + var t = this.childrenRefs[e] + t && t.stop() + }, + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props + this.nextProps = t + var n = this.state.children, + o = null + n && + (o = n.map(function(n) { + if (null === n || void 0 === n) return n + if (!n.key) + throw new Error( + 'must set key for children', + ) + return b.a.createElement( + w.a, + { + key: n.key, + ref: function(t) { + return (e.childrenRefs[n.key] = t) + }, + animation: t.animation, + transitionName: t.transitionName, + transitionEnter: t.transitionEnter, + transitionAppear: t.transitionAppear, + transitionLeave: t.transitionLeave, + }, + n, + ) + })) + var i = t.component + if (i) { + var r = t + return ( + 'string' == typeof i && + (r = a()( + { className: t.className, style: t.style }, + t.componentProps, + )), + b.a.createElement(i, r, o) + ) + } + return o[0] || null + }, + }, + ]), + t + ) + })(b.a.Component) + ;(S.isAnimate = !0), + (S.propTypes = { + component: C.a.any, + componentProps: C.a.object, + animation: C.a.object, + transitionName: C.a.oneOfType([C.a.string, C.a.object]), + transitionEnter: C.a.bool, + transitionAppear: C.a.bool, + exclusive: C.a.bool, + transitionLeave: C.a.bool, + onEnd: C.a.func, + onEnter: C.a.func, + onLeave: C.a.func, + onAppear: C.a.func, + showProp: C.a.string, }), - f && - (r && r(y, v), - (y.prototype = Object.create(v.prototype, { constructor: l(y) }))), - s( - Object.defineProperties(y.prototype, { - add: l(function(e) { - return this.has(e) - ? this - : (this.emit('_add', this.__setData__.push(e) - 1, e), this) - }), - clear: l(function() { - this.__setData__.length && - (o.call(this.__setData__), this.emit('_clear')) - }), - delete: l(function(e) { - var t = i.call(this.__setData__, e) - return ( - -1 !== t && - (this.__setData__.splice(t, 1), this.emit('_delete', t, e), !0) - ) - }), - entries: l(function() { - return new c(this, 'key+value') - }), - forEach: l(function(e) { - var t = arguments[1], - n, - o, - i - for (a(e), n = this.values(), o = n._next(); o !== void 0; ) - (i = n._resolve(o)), h.call(e, t, i, i, this), (o = n._next()) - }), - has: l(function(e) { - return -1 !== i.call(this.__setData__, e) - }), - keys: l( - (b = function() { - return this.values() - }), - ), - size: l.gs(function() { - return this.__setData__.length - }), - values: l(function() { - return new c(this) - }), - toString: l(function() { - return '[object Set]' - }), + (S.defaultProps = { + animation: {}, + component: 'span', + componentProps: {}, + transitionEnter: !0, + transitionLeave: !0, + transitionAppear: !1, + onEnd: i, + onEnter: i, + onLeave: i, + onAppear: i, + }) + var E = function() { + var e = this + ;(this.performEnter = function(t) { + e.childrenRefs[t] && + ((e.currentlyAnimatingKeys[t] = !0), + e.childrenRefs[t].componentWillEnter( + e.handleDoneAdding.bind(e, t, 'enter'), + )) + }), + (this.performAppear = function(t) { + e.childrenRefs[t] && + ((e.currentlyAnimatingKeys[t] = !0), + e.childrenRefs[t].componentWillAppear( + e.handleDoneAdding.bind(e, t, 'appear'), + )) }), - ), - m(y.prototype, d.iterator, l(b)), - m(y.prototype, d.toStringTag, l('c', 'Set')) - }, - function(e, t, n) { - 'use strict' - var o = n(181), - r = n(78), - a = n(4), - l = Array.prototype.indexOf, - s = Object.prototype.hasOwnProperty, - d = Math.abs, - p = Math.floor - e.exports = function(e) { - var t, n, i, u - if (!o(e)) return l.apply(this, arguments) - for ( - n = r(a(this).length), - i = arguments[1], - i = isNaN(i) ? 0 : 0 <= i ? p(i) : r(this.length) - p(d(i)), - t = i; - t < n; - ++t - ) - if (s.call(this, t) && ((u = this[t]), o(u))) return t - return -1 + (this.handleDoneAdding = function(t, n) { + var i = e.props + if ( + (delete e.currentlyAnimatingKeys[t], + !(i.exclusive && i !== e.nextProps)) + ) { + var r = Object(x.e)(o(i)) + e.isValidChildByKey(r, t) + ? 'appear' === n + ? T.a.allowAppearCallback(i) && + (i.onAppear(t), i.onEnd(t, !0)) + : T.a.allowEnterCallback(i) && (i.onEnter(t), i.onEnd(t, !0)) + : e.performLeave(t) + } + }), + (this.performLeave = function(t) { + e.childrenRefs[t] && + ((e.currentlyAnimatingKeys[t] = !0), + e.childrenRefs[t].componentWillLeave( + e.handleDoneLeaving.bind(e, t), + )) + }), + (this.handleDoneLeaving = function(t) { + var n = e.props + if ( + (delete e.currentlyAnimatingKeys[t], + !(n.exclusive && n !== e.nextProps)) + ) { + var i = Object(x.e)(o(n)) + if (e.isValidChildByKey(i, t)) e.performEnter(t) + else { + var r = function() { + T.a.allowLeaveCallback(n) && (n.onLeave(t), n.onEnd(t, !1)) + } + Object(x.c)(e.state.children, i, n.showProp) + ? r() + : e.setState({ children: i }, r) + } + } + }) } + t.a = S }, function(e, t, n) { 'use strict' - e.exports = n(182)() ? Number.isNaN : n(183) - }, - function(e) { - 'use strict' - e.exports = function() { - var e = Number.isNaN - return !('function' != typeof e) && !e({}) && e(NaN) && !e(34) - } - }, - function(e) { - 'use strict' - e.exports = function(e) { - return e !== e + t.__esModule = !0 + var o = n(60), + i = (function(e) { + return e && e.__esModule ? e : { default: e } + })(o) + t.default = function(e, t, n) { + return ( + t in e + ? (0, i.default)(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (e[t] = n), + e + ) } }, function(e, t, n) { - 'use strict' - var o = n(185), - i = Math.abs, - r = Math.floor - e.exports = function(e) { - return isNaN(e) - ? 0 - : ((e = +e), 0 !== e && isFinite(e) ? o(e) * r(i(e)) : e) + n(152) + var o = n(8).Object + e.exports = function(e, t, n) { + return o.defineProperty(e, t, n) } }, function(e, t, n) { - 'use strict' - e.exports = n(186)() ? Math.sign : n(187) - }, - function(e) { - 'use strict' - e.exports = function() { - var e = Math.sign - return !('function' != typeof e) && 1 === e(10) && -1 === e(-20) - } - }, - function(e) { - 'use strict' - e.exports = function(e) { - return (e = +e), isNaN(e) || 0 === e ? e : 0 < e ? 1 : -1 - } + var o = n(13) + o(o.S + o.F * !n(10), 'Object', { defineProperty: n(9).f }) }, function(e, t, n) { 'use strict' - var o = n(23), - i = { function: !0, object: !0 } - e.exports = function(e) { - return (o(e) && i[typeof e]) || !1 + function o(e, t) { + var n = null + return ( + e && + e.forEach(function(e) { + n || (e && e.key === t && (n = e)) + }), + n + ) } + ;(t.e = function(e) { + var t = [] + return ( + r.a.Children.forEach(e, function(e) { + t.push(e) + }), + t + ) + }), + (t.a = o), + (t.b = function(e, t, n) { + var o = null + return ( + e && + e.forEach(function(e) { + if (e && e.key === t && e.props[n]) { + if (o) + throw new Error( + 'two child with same key for children', + ) + o = e + } + }), + o + ) + }), + (t.c = function(e, t, n) { + var o = e.length === t.length + return ( + o && + e.forEach(function(e, i) { + var r = t[i] + e && + r && + ((e && !r) || (!e && r) + ? (o = !1) + : e.key === r.key + ? n && e.props[n] !== r.props[n] && (o = !1) + : (o = !1)) + }), + o + ) + }), + (t.d = function(e, t) { + var n = [], + i = {}, + r = [] + return ( + e.forEach(function(e) { + e && o(t, e.key) + ? r.length && ((i[e.key] = r), (r = [])) + : r.push(e) + }), + t.forEach(function(e) { + e && i.hasOwnProperty(e.key) && (n = n.concat(i[e.key])), + n.push(e) + }), + (n = n.concat(r)), + n + ) + }) + var i = n(0), + r = n.n(i) }, function(e, t, n) { 'use strict' - var o = Object.create, - i - n(79)() || (i = n(80)), - (e.exports = (function() { - var e, t, n - return i - ? 1 === i.level - ? ((e = {}), - (t = {}), - (n = { - configurable: !1, - enumerable: !1, - writable: !0, - value: void 0, - }), - Object.getOwnPropertyNames(Object.prototype).forEach(function( - e, - ) { - return '__proto__' === e - ? void (t[e] = { - configurable: !0, - enumerable: !1, - writable: !0, - value: void 0, - }) - : void (t[e] = n) - }), - Object.defineProperties(e, t), - Object.defineProperty(i, 'nullPolyfill', { - configurable: !1, - enumerable: !1, - writable: !1, - value: e, - }), - function(t, n) { - return o(null === t ? e : t, n) - }) - : o - : o - })()) - }, - function(e) { - 'use strict' - e.exports = function() { - var e = Object.assign, - t - return ( - !('function' != typeof e) && - ((t = { foo: 'raz' }), - e(t, { bar: 'dwa' }, { trzy: 'trzy' }), - 'razdwatrzy' === t.foo + t.bar + t.trzy) - ) - } + var o = n(27), + i = n.n(o), + r = n(5), + a = n.n(r), + l = n(42), + s = n.n(l), + d = n(6), + p = n.n(d), + u = n(7), + c = n.n(u), + f = n(0), + h = n.n(f), + m = n(2), + g = n.n(m), + y = n(1), + b = n.n(y), + v = n(155), + C = n(62), + x = { + enter: 'transitionEnter', + appear: 'transitionAppear', + leave: 'transitionLeave', + }, + w = (function(e) { + function t() { + return ( + a()(this, t), + p()( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments, + ), + ) + ) + } + return ( + c()(t, e), + s()(t, [ + { + key: 'componentWillUnmount', + value: function() { + this.stop() + }, + }, + { + key: 'componentWillEnter', + value: function(e) { + C.a.isEnterSupported(this.props) + ? this.transition('enter', e) + : e() + }, + }, + { + key: 'componentWillAppear', + value: function(e) { + C.a.isAppearSupported(this.props) + ? this.transition('appear', e) + : e() + }, + }, + { + key: 'componentWillLeave', + value: function(e) { + C.a.isLeaveSupported(this.props) + ? this.transition('leave', e) + : e() + }, + }, + { + key: 'transition', + value: function(e, t) { + var n = this, + o = g.a.findDOMNode(this), + r = this.props, + a = r.transitionName, + l = + 'object' === + ('undefined' == typeof a ? 'undefined' : i()(a)) + this.stop() + var s = function() { + ;(n.stopper = null), t() + } + if ((v.b || !r.animation[e]) && a && r[x[e]]) { + var d = l ? a[e] : a + '-' + e, + p = d + '-active' + l && a[e + 'Active'] && (p = a[e + 'Active']), + (this.stopper = Object(v.a)(o, { name: d, active: p }, s)) + } else this.stopper = r.animation[e](o, s) + }, + }, + { + key: 'stop', + value: function() { + var e = this.stopper + e && ((this.stopper = null), e.stop()) + }, + }, + { + key: 'render', + value: function() { + return this.props.children + }, + }, + ]), + t + ) + })(h.a.Component) + ;(w.propTypes = { children: b.a.any }), (t.a = w) }, function(e, t, n) { 'use strict' - var o = n(192), - r = n(4), - a = Math.max - e.exports = function(e, t) { - var n = a(arguments.length, 2), - l, - s, - i + function o(e, t) { for ( - e = Object(r(e)), - i = function(n) { - try { - e[n] = t[n] - } catch (t) { - l || (l = t) - } - }, - s = 1; - s < n; - ++s - ) - (t = arguments[s]), o(t).forEach(i) - if (l !== void 0) throw l - return e + var n = window.getComputedStyle(e, null), o = '', r = 0; + r < f.length && ((o = n.getPropertyValue(f[r] + t)), !o); + r++ + ); + return o } - }, - function(e, t, n) { - 'use strict' - e.exports = n(193)() ? Object.keys : n(194) - }, - function(e) { - 'use strict' - e.exports = function() { - try { - return Object.keys('primitive'), !0 - } catch (t) { - return !1 + function i(e) { + if (u) { + var t = parseFloat(o(e, 'transition-delay')) || 0, + n = parseFloat(o(e, 'transition-duration')) || 0, + i = parseFloat(o(e, 'animation-delay')) || 0, + r = parseFloat(o(e, 'animation-duration')) || 0, + a = Math.max(n + t, r + i) + e.rcEndAnimTimeout = setTimeout(function() { + ;(e.rcEndAnimTimeout = null), e.rcEndListener && e.rcEndListener() + }, 1e3 * a + 200) } } - }, - function(e, t, n) { - 'use strict' - var o = n(23), - i = Object.keys - e.exports = function(e) { - return i(o(e) ? Object(e) : e) + function r(e) { + e.rcEndAnimTimeout && + (clearTimeout(e.rcEndAnimTimeout), (e.rcEndAnimTimeout = null)) } + n.d(t, 'b', function() { + return u + }) + var a = n(27), + l = n.n(a), + s = n(156), + d = n(157), + p = n.n(d), + u = 0 !== s.a.endEvents.length, + c = ['Webkit', 'Moz', 'O', 'ms'], + f = ['-webkit-', '-moz-', '-o-', 'ms-', ''], + h = function(t, e, n) { + var o = 'object' === ('undefined' == typeof e ? 'undefined' : l()(e)), + a = o ? e.name : e, + d = o ? e.active : e + '-active', + u = n, + c = p()(t), + f, + h + return ( + n && + '[object Object]' === Object.prototype.toString.call(n) && + ((u = n.end), (f = n.start), (h = n.active)), + t.rcEndListener && t.rcEndListener(), + (t.rcEndListener = function(n) { + ;(n && n.target !== t) || + (t.rcAnimTimeout && + (clearTimeout(t.rcAnimTimeout), (t.rcAnimTimeout = null)), + r(t), + c.remove(a), + c.remove(d), + s.a.removeEndEventListener(t, t.rcEndListener), + (t.rcEndListener = null), + u && u()) + }), + s.a.addEndEventListener(t, t.rcEndListener), + f && f(), + c.add(a), + (t.rcAnimTimeout = setTimeout(function() { + ;(t.rcAnimTimeout = null), c.add(d), h && setTimeout(h, 0), i(t) + }, 30)), + { + stop: function() { + t.rcEndListener && t.rcEndListener() + }, + } + ) + } + ;(h.style = function(t, e, n) { + t.rcEndListener && t.rcEndListener(), + (t.rcEndListener = function(o) { + ;(o && o.target !== t) || + (t.rcAnimTimeout && + (clearTimeout(t.rcAnimTimeout), (t.rcAnimTimeout = null)), + r(t), + s.a.removeEndEventListener(t, t.rcEndListener), + (t.rcEndListener = null), + n && n()) + }), + s.a.addEndEventListener(t, t.rcEndListener), + (t.rcAnimTimeout = setTimeout(function() { + for (var n in e) e.hasOwnProperty(n) && (t.style[n] = e[n]) + ;(t.rcAnimTimeout = null), i(t) + }, 0)) + }), + (h.setTransition = function(e, t, n) { + var o = t, + i = n + n === void 0 && ((i = o), (o = '')), + (o = o || ''), + c.forEach(function(t) { + e.style[t + 'Transition' + o] = i + }) + }), + (h.isCssAnimationSupported = u), + (t.a = h) }, - function(e) { + function(e, t) { 'use strict' - e.exports = function(e) { - return 'function' == typeof e + function n(e, t, n) { + e.addEventListener(t, n, !1) } - }, - function(e) { - 'use strict' - var t = 'razdwatrzy' - e.exports = function() { - return ( - !('function' != typeof t.contains) && - !0 === t.contains('dwa') && - !1 === t.contains('foo') - ) + function o(e, t, n) { + e.removeEventListener(t, n, !1) } - }, - function(e) { - 'use strict' - var t = String.prototype.indexOf - e.exports = function(e) { - return -1 < t.call(this, e, arguments[1]) + var i = { + transitionend: { + transition: 'transitionend', + WebkitTransition: 'webkitTransitionEnd', + MozTransition: 'mozTransitionEnd', + OTransition: 'oTransitionEnd', + msTransition: 'MSTransitionEnd', + }, + animationend: { + animation: 'animationend', + WebkitAnimation: 'webkitAnimationEnd', + MozAnimation: 'mozAnimationEnd', + OAnimation: 'oAnimationEnd', + msAnimation: 'MSAnimationEnd', + }, + }, + r = [] + 'undefined' != typeof window && + 'undefined' != typeof document && + (function() { + var e = document.createElement('div'), + t = e.style + for (var n in ('AnimationEvent' in window || + delete i.animationend.animation, + 'TransitionEvent' in window || delete i.transitionend.transition, + i)) + if (i.hasOwnProperty(n)) { + var o = i[n] + for (var a in o) + if (a in t) { + r.push(o[a]) + break + } + } + })() + t.a = { + addEndEventListener: function(e, t) { + return 0 === r.length + ? void window.setTimeout(t, 0) + : void r.forEach(function(o) { + n(e, o, t) + }) + }, + endEvents: r, + removeEndEventListener: function(e, t) { + 0 === r.length || + r.forEach(function(n) { + o(e, n, t) + }) + }, } }, function(e, t, n) { - 'use strict' - var o = n(15), - r = n(5), - a = Function.prototype.apply, - s = Function.prototype.call, - i = Object.create, - l = Object.defineProperty, - d = Object.defineProperties, - p = Object.prototype.hasOwnProperty, - u = { configurable: !0, enumerable: !1, writable: !0 }, - c, - f, - h, - m, - g, - y, - b - ;(c = function(e, t) { - var n - return ( - r(t), - p.call(this, '__ee__') - ? (n = this.__ee__) - : ((n = u.value = i(null)), l(this, '__ee__', u), (u.value = null)), - n[e] - ? 'object' == typeof n[e] ? n[e].push(t) : (n[e] = [n[e], t]) - : (n[e] = t), - this - ) + function o(e) { + if (!e || !e.nodeType) + throw new Error('A DOM element reference is required') + ;(this.el = e), (this.list = e.classList) + } + try { + var r = n(61) + } catch (e) { + var r = n(61) + } + var i = /\s+/, + a = Object.prototype.toString + ;(e.exports = function(e) { + return new o(e) }), - (f = function(e, t) { - var n, o - return ( - r(t), - (o = this), - c.call( - this, - e, - (n = function() { - h.call(o, e, n), a.call(t, this, arguments) - }), - ), - (n.__eeOnceListener__ = t), - this - ) + (o.prototype.add = function(e) { + if (this.list) return this.list.add(e), this + var t = this.array(), + n = r(t, e) + return ~n || t.push(e), (this.el.className = t.join(' ')), this }), - (h = function(e, t) { - var n, o, a, l - if ((r(t), !p.call(this, '__ee__'))) return this - if (((n = this.__ee__), !n[e])) return this - if (((o = n[e]), 'object' == typeof o)) - for (l = 0; (a = o[l]); ++l) - (a === t || a.__eeOnceListener__ === t) && - (2 === o.length ? (n[e] = o[l ? 0 : 1]) : o.splice(l, 1)) - else (o === t || o.__eeOnceListener__ === t) && delete n[e] + (o.prototype.remove = function(e) { + if ('[object RegExp]' == a.call(e)) return this.removeMatching(e) + if (this.list) return this.list.remove(e), this + var t = this.array(), + n = r(t, e) + return ~n && t.splice(n, 1), (this.el.className = t.join(' ')), this + }), + (o.prototype.removeMatching = function(e) { + for (var t = this.array(), n = 0; n < t.length; n++) + e.test(t[n]) && this.remove(t[n]) return this }), - (m = function(e) { - var t, n, o, i, r - if (p.call(this, '__ee__') && ((i = this.__ee__[e]), !!i)) - if ('object' == typeof i) { - for (n = arguments.length, r = Array(n - 1), t = 1; t < n; ++t) - r[t - 1] = arguments[t] - for (i = i.slice(), t = 0; (o = i[t]); ++t) a.call(o, this, r) - } else - switch (arguments.length) { - case 1: - s.call(i, this) - break - case 2: - s.call(i, this, arguments[1]) - break - case 3: - s.call(i, this, arguments[1], arguments[2]) - break - default: - for ( - n = arguments.length, r = Array(n - 1), t = 1; - t < n; - ++t - ) - r[t - 1] = arguments[t] - a.call(i, this, r) - } + (o.prototype.toggle = function(e, t) { + return this.list + ? ('undefined' == typeof t + ? this.list.toggle(e) + : t !== this.list.toggle(e, t) && this.list.toggle(e), + this) + : ('undefined' == typeof t + ? this.has(e) ? this.remove(e) : this.add(e) + : t ? this.add(e) : this.remove(e), + this) }), - (g = { on: c, once: f, off: h, emit: m }), - (y = { on: o(c), once: o(f), off: o(h), emit: o(m) }), - (b = d({}, y)), - (e.exports = t = function(e) { - return null == e ? i(b) : d(Object(e), y) + (o.prototype.array = function() { + var e = this.el.getAttribute('class') || '', + t = e.replace(/^\s+|\s+$/g, ''), + n = t.split(i) + return '' === n[0] && n.shift(), n }), - (t.methods = g) - }, - function(e) { - 'use strict' - var t = { object: !0, symbol: !0 } - e.exports = function() { - var e - if ('function' != typeof Symbol) return !1 - e = Symbol('test symbol') - try { - } catch (t) { - return !1 - } - return ( - !!t[typeof Symbol.iterator] && - !!t[typeof Symbol.toPrimitive] && - !!t[typeof Symbol.toStringTag] - ) - } + (o.prototype.has = o.prototype.contains = function(e) { + return this.list ? this.list.contains(e) : !!~r(this.array(), e) + }) }, function(e, t, n) { 'use strict' - var o = n(15), - i = n(201), - r = Object.create, - a = Object.defineProperties, - l = Object.defineProperty, - s = Object.prototype, - d = r(null), - p, - u, - c, - f - if ('function' == typeof Symbol) { - p = Symbol - try { - p() + '', (f = !0) - } catch (e) {} - } - var h = (function() { - var e = r(null) - return function(t) { - for (var n = 0, i, r; e[t + (n || '')]; ) ++n + var o = n(5), + i = n.n(o), + r = n(6), + a = n.n(r), + l = n(7), + s = n.n(l), + d = n(0), + p = n.n(d), + u = n(1), + c = n.n(u), + f = n(63), + h = (function(e) { + function t() { + return i()(this, t), a()(this, e.apply(this, arguments)) + } return ( - (t += n || ''), - (e[t] = !0), - (i = '@@' + t), - l( - s, - i, - o.gs(null, function(e) { - r || ((r = !0), l(this, i, o(e)), (r = !1)) - }), - ), - i + s()(t, e), + (t.prototype.render = function() { + var e = this.props, + t = e.className + return ( + e.visible || (t += ' ' + e.hiddenClassName), + p.a.createElement( + 'div', + { + className: t, + onMouseEnter: e.onMouseEnter, + onMouseLeave: e.onMouseLeave, + style: e.style, + }, + p.a.createElement( + f.a, + { className: e.prefixCls + '-content', visible: e.visible }, + e.children, + ), + ) + ) + }), + t ) - } - })() - ;(c = function(e) { - if (this instanceof c) - throw new TypeError('Symbol is not a constructor') - return u(e) + })(d.Component) + ;(h.propTypes = { + hiddenClassName: c.a.string, + className: c.a.string, + prefixCls: c.a.string, + onMouseEnter: c.a.func, + onMouseLeave: c.a.func, + children: c.a.any, }), - (e.exports = u = function e(t) { - var n - if (this instanceof e) - throw new TypeError('Symbol is not a constructor') - return f - ? p(t) - : ((n = r(c.prototype)), - (t = void 0 === t ? '' : t + ''), - a(n, { __description__: o('', t), __name__: o('', h(t)) })) - }), - a(u, { - for: o(function(e) { - return d[e] ? d[e] : (d[e] = u(e + '')) - }), - keyFor: o(function(e) { - for (var t in (i(e), d)) if (d[t] === e) return t - }), - hasInstance: o('', (p && p.hasInstance) || u('hasInstance')), - isConcatSpreadable: o( - '', - (p && p.isConcatSpreadable) || u('isConcatSpreadable'), - ), - iterator: o('', (p && p.iterator) || u('iterator')), - match: o('', (p && p.match) || u('match')), - replace: o('', (p && p.replace) || u('replace')), - search: o('', (p && p.search) || u('search')), - species: o('', (p && p.species) || u('species')), - split: o('', (p && p.split) || u('split')), - toPrimitive: o('', (p && p.toPrimitive) || u('toPrimitive')), - toStringTag: o('', (p && p.toStringTag) || u('toStringTag')), - unscopables: o('', (p && p.unscopables) || u('unscopables')), - }), - a(c.prototype, { - constructor: o(u), - toString: o('', function() { - return this.__name__ - }), - }), - a(u.prototype, { - toString: o(function() { - return 'Symbol (' + i(this).__description__ + ')' - }), - valueOf: o(function() { - return i(this) - }), - }), - l( - u.prototype, - u.toPrimitive, - o('', function() { - var e = i(this) - return 'symbol' == typeof e ? e : e.toString() - }), - ), - l(u.prototype, u.toStringTag, o('c', 'Symbol')), - l(c.prototype, u.toStringTag, o('c', u.prototype[u.toStringTag])), - l(c.prototype, u.toPrimitive, o('c', u.prototype[u.toPrimitive])) + (t.a = h) }, function(e, t, n) { 'use strict' - var o = n(202) - e.exports = function(e) { - if (!o(e)) throw new TypeError(e + ' is not a symbol') - return e + function o() { + var e = document.createElement('div') + return document.body.appendChild(e), e } - }, - function(e) { - 'use strict' - e.exports = function(e) { + t.a = function(e) { + function t(e, t, n) { + if (!p || e._component || p(e) || (u && u(e))) { + e._container || (e._container = h(e)) + var o + ;(o = e.getComponent ? e.getComponent(t) : c(e, t)), + l.a.unstable_renderSubtreeIntoContainer( + e, + o, + e._container, + function() { + ;(e._component = this), n && n.call(this) + }, + ) + } + } + function n(e) { + if (e._container) { + var t = e._container + l.a.unmountComponentAtNode(t), + t.parentNode.removeChild(t), + (e._container = null) + } + } + var i = e.autoMount, + a = void 0 === i || i, + s = e.autoDestroy, + d = void 0 === s || s, + p = e.isVisible, + u = e.isForceRender, + c = e.getComponent, + f = e.getContainer, + h = void 0 === f ? o : f, + m return ( - !!e && - (!('symbol' != typeof e) || - (!!e.constructor && - !('Symbol' !== e.constructor.name) && - 'Symbol' === e[e.constructor.toStringTag])) + a && + (m = r()({}, m, { + componentDidMount: function() { + t(this) + }, + componentDidUpdate: function() { + t(this) + }, + })), + (a && d) || + (m = r()({}, m, { + renderComponent: function(e, n) { + t(this, e, n) + }, + })), + (m = d + ? r()({}, m, { + componentWillUnmount: function() { + n(this) + }, + }) + : r()({}, m, { + removeContainer: function() { + n(this) + }, + })), + m ) } + var i = n(12), + r = n.n(i), + a = n(2), + l = n.n(a) }, function(e, t, n) { 'use strict' - var o = n(34), - i = n(23), - r = n(35), - a = n(10).iterator, - l = Array.isArray - e.exports = function(e) { - return ( - !!i(e) && (!!l(e) || !!r(e) || !!o(e) || 'function' == typeof e[a]) - ) - } + var o = n(5), + i = n.n(o), + r = n(42), + a = n.n(r), + l = n(6), + s = n.n(l), + d = n(7), + p = n.n(d), + u = n(0), + c = n.n(u), + f = n(2), + h = n.n(f), + m = n(1), + g = n.n(m), + y = (function(e) { + function t() { + return ( + i()(this, t), + s()( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments, + ), + ) + ) + } + return ( + p()(t, e), + a()(t, [ + { + key: 'componentDidMount', + value: function() { + this.createContainer() + }, + }, + { + key: 'componentDidUpdate', + value: function(e) { + var t = this.props.didUpdate + t && t(e) + }, + }, + { + key: 'componentWillUnmount', + value: function() { + this.removeContainer() + }, + }, + { + key: 'createContainer', + value: function() { + ;(this._container = this.props.getContainer()), + this.forceUpdate() + }, + }, + { + key: 'removeContainer', + value: function() { + this._container && + this._container.parentNode.removeChild(this._container) + }, + }, + { + key: 'render', + value: function() { + return this._container + ? h.a.createPortal(this.props.children, this._container) + : null + }, + }, + ]), + t + ) + })(c.a.Component) + ;(y.propTypes = { + getContainer: g.a.func.isRequired, + children: g.a.node.isRequired, + didUpdate: g.a.func, + }), + (t.a = y) }, function(e, t, n) { 'use strict' - var o = n(34), - r = n(5), - a = n(35), - l = n(205), - s = Array.isArray, - d = Function.prototype.call, - p = Array.prototype.some - e.exports = function(e, t) { - var n = arguments[2], - u, - c, - f, - h, - m, - i, - g, - y - if ( - (s(e) || o(e) ? (u = 'array') : a(e) ? (u = 'string') : (e = l(e)), - r(t), - (f = function() { - h = !0 - }), - 'array' === u) - ) - return void p.call(e, function(e) { - return d.call(t, n, e, f), h - }) - if ('string' === u) { - for ( - i = e.length, m = 0; - m < i && - ((g = e[m]), - m + 1 < i && - ((y = g.charCodeAt(0)), - 55296 <= y && 56319 >= y && (g += e[++m])), - d.call(t, n, g, f), - !h); - ++m - ); - return - } - for (c = e.next(); !c.done; ) { - if ((d.call(t, n, c.value, f), h)) return - c = e.next() + n.d(t, 'a', function() { + return r + }) + var o = { adjustX: 1, adjustY: 1 }, + i = [0, 0], + r = { + left: { + points: ['cr', 'cl'], + overflow: o, + offset: [-4, 0], + targetOffset: i, + }, + right: { + points: ['cl', 'cr'], + overflow: o, + offset: [4, 0], + targetOffset: i, + }, + top: { + points: ['bc', 'tc'], + overflow: o, + offset: [0, -4], + targetOffset: i, + }, + bottom: { + points: ['tc', 'bc'], + overflow: o, + offset: [0, 4], + targetOffset: i, + }, + topLeft: { + points: ['bl', 'tl'], + overflow: o, + offset: [0, -4], + targetOffset: i, + }, + leftTop: { + points: ['tr', 'tl'], + overflow: o, + offset: [-4, 0], + targetOffset: i, + }, + topRight: { + points: ['br', 'tr'], + overflow: o, + offset: [0, -4], + targetOffset: i, + }, + rightTop: { + points: ['tl', 'tr'], + overflow: o, + offset: [4, 0], + targetOffset: i, + }, + bottomRight: { + points: ['tr', 'br'], + overflow: o, + offset: [0, 4], + targetOffset: i, + }, + rightBottom: { + points: ['bl', 'br'], + overflow: o, + offset: [4, 0], + targetOffset: i, + }, + bottomLeft: { + points: ['tl', 'bl'], + overflow: o, + offset: [0, 4], + targetOffset: i, + }, + leftBottom: { + points: ['br', 'bl'], + overflow: o, + offset: [-4, 0], + targetOffset: i, + }, } - } - }, - function(e, t, n) { - 'use strict' - var o = n(34), - i = n(35), - r = n(206), - a = n(216), - l = n(82), - s = n(10).iterator - e.exports = function(e) { - return 'function' == typeof l(e)[s] - ? e[s]() - : o(e) ? new r(e) : i(e) ? new a(e) : new r(e) - } - }, - function(e, t, n) { - 'use strict' - var o = n(33), - i = n(52), - r = n(15), - a = n(10), - l = n(53), - s = Object.defineProperty, - d - ;(d = e.exports = function(e, t) { - if (!(this instanceof d)) - throw new TypeError("Constructor requires 'new'") - l.call(this, e), - (t = t - ? i.call(t, 'key+value') - ? 'key+value' - : i.call(t, 'key') ? 'key' : 'value' - : 'value'), - s(this, '__kind__', r('', t)) - }), - o && o(d, l), - delete d.prototype.constructor, - (d.prototype = Object.create(l.prototype, { - _resolve: r(function(e) { - return 'value' === this.__kind__ - ? this.__list__[e] - : 'key+value' === this.__kind__ ? [e, this.__list__[e]] : e - }), - })), - s(d.prototype, a.toStringTag, r('c', 'Array Iterator')) }, function(e, t, n) { 'use strict' - var o = n(208), - i = n(81), - r = n(5), - a = n(213), - l = n(5), - s = n(4), - d = Function.prototype.bind, - p = Object.defineProperty, - u = Object.prototype.hasOwnProperty, - c - ;(c = function(e, t, n) { - var i = s(t) && l(t.value), - r - return ( - (r = o(t)), - delete r.writable, - delete r.value, - (r.get = function() { - return !n.overwriteDefinition && u.call(this, e) - ? i - : ((t.value = d.call( - i, - n.resolveContext ? n.resolveContext(this) : this, - )), - p(this, e, t), - this[e]) - }), - r - ) - }), - (e.exports = function(e) { - var t = i(arguments[1]) + var o = n(0), + i = n.n(o), + r = + (this && this.__extends) || + (function() { + var e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + } + return function(t, n) { + function o() { + this.constructor = t + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((o.prototype = n.prototype), new o())) + } + })(), + a = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this + } return ( - null != t.resolveContext && r(t.resolveContext), - a(e, function(e, n) { - return c(n, e, t) - }) + r(t, e), + (t.prototype.render = function() { + var e = this.props.config + return o.createElement( + 'div', + { className: 'react-forms-group' }, + o.createElement( + 'div', + { className: 'group-title' }, + e.displayName, + ), + o.createElement( + 'p', + { className: 'group-description' }, + e.description, + ), + o.createElement( + 'div', + { className: 'react-forms-group-elements' }, + this.props.children, + ), + ) + }), + t ) - }) + })(o.Component) + t.a = a }, function(e, t, n) { 'use strict' - var o = n(209), - i = n(51), - r = n(4) - e.exports = function(e) { - var t = Object(r(e)), - n = arguments[1], - a = Object(arguments[2]) - if (t !== e && !n) return t - var l = {} - return ( - n - ? o(n, function(t) { - ;(a.ensure || t in e) && (l[t] = e[t]) - }) - : i(l, e), - l + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + }, + a = n(3) + t.a = function(e) { + var t = e.value, + n = void 0 === t ? '' : t, + i = e.config, + l = e.callbacks, + s = void 0 === l ? {} : l + return o.createElement( + 'div', + { className: a('form-Element', 'input-text', i.className) }, + o.createElement( + 'input', + r({}, s, i.componentProps, { + type: i.type, + value: n, + placeholder: i.placeholder, + name: i.id, + id: i.id, + }), + ), ) } }, function(e, t, n) { 'use strict' - e.exports = n(210)() ? Array.from : n(211) - }, - function(e) { - 'use strict' - e.exports = function() { - var e = Array.from, - t, - n - return ( - !('function' != typeof e) && - ((t = ['raz', 'dwa']), (n = e(t)), !!(n && n !== t && 'dwa' === n[1])) + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + }, + a = n(3) + t.a = function(e) { + var t = e.value, + n = void 0 !== t && t, + i = e.config, + l = e.callbacks, + s = void 0 === l ? {} : l, + d = Math.random() + .toString(36) + .slice(-5), + p = i.componentProps || {} + return o.createElement( + 'div', + { className: a('form-element', 'input-toggle', i.className) }, + o.createElement( + 'span', + { className: 'input-toggle-wrapper' }, + o.createElement( + 'input', + r({}, s, p, { + checked: n, + value: (!n).toString(), + id: i.id + '_' + d, + type: 'checkbox', + }), + ), + o.createElement('label', { htmlFor: i.id + '_' + d }), + ), + o.createElement('span', { className: 'info-text' }, p.infoText), ) } }, function(e, t, n) { 'use strict' - var o = n(10).iterator, - r = n(34), - a = n(212), - l = n(78), - s = n(5), - d = n(4), - p = n(23), - u = n(35), - c = Array.isArray, - f = Function.prototype.call, - h = { configurable: !0, enumerable: !0, writable: !0, value: null }, - m = Object.defineProperty - e.exports = function(e) { - var t = arguments[1], - n = arguments[2], - g, - y, - i, - b, - v, - x, - C, - w, - k, - T - if ( - ((e = Object(d(e))), - p(t) && s(t), - !this || this === Array || !a(this)) - ) { - if (!t) { - if (r(e)) - return ((v = e.length), 1 !== v) - ? Array.apply(null, e) - : ((b = [,]), (b[0] = e[0]), b) - if (c(e)) { - for (b = Array((v = e.length)), y = 0; y < v; ++y) b[y] = e[y] - return b - } - } - b = [] - } else g = this - if (!c(e)) - if (void 0 !== (k = e[o])) { - for ( - C = s(k).call(e), g && (b = new g()), w = C.next(), y = 0; - !w.done; - - ) - (T = t ? f.call(t, n, w.value, y) : w.value), - g ? ((h.value = T), m(b, y, h)) : (b[y] = T), - (w = C.next()), - ++y - v = y - } else if (u(e)) { - for ( - v = e.length, g && (b = new g()), ((y = 0), (i = 0)); - y < v; - ++y + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + }, + a = n(3) + t.a = function(e) { + var t = e.value, + n = void 0 === t ? '' : t, + i = e.config, + l = e.callbacks, + s = void 0 === l ? {} : l, + d = (i.options || []).map(function(e) { + var t = Math.random() + .toString(36) + .slice(-5) + return o.createElement( + 'span', + { className: 'radio-button', key: i.id + '_' + e.value }, + o.createElement( + 'input', + r({}, s, i.componentProps, { + checked: n === e.value, + className: i.className, + type: 'radio', + id: i.id + '_' + e.value + '_' + t, + value: e.value, + disabled: e.disabled || !1, + }), + ), + o.createElement( + 'label', + { htmlFor: i.id + '_' + e.value + '_' + t }, + e.label, + ), ) - (T = e[y]), - y + 1 < v && - ((x = T.charCodeAt(0)), - 55296 <= x && 56319 >= x && (T += e[++y])), - (T = t ? f.call(t, n, T, i) : T), - g ? ((h.value = T), m(b, i, h)) : (b[i] = T), - ++i - v = i - } - if (void 0 === v) - for (v = l(e.length), g && (b = new g(v)), y = 0; y < v; ++y) - (T = t ? f.call(t, n, e[y], y) : e[y]), - g ? ((h.value = T), m(b, y, h)) : (b[y] = T) - return g && ((h.value = null), (b.length = v)), b + }) + return o.createElement( + 'div', + { className: a('form-element', 'input-radio', i.className) }, + d, + ) } }, function(e, t, n) { 'use strict' - var o = Object.prototype.toString, - i = o.call(n(77)) - e.exports = function(e) { - return 'function' == typeof e && o.call(e) === i + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + }, + a = n(3) + t.a = function(e) { + var t = e.value, + n = e.config, + i = e.callbacks, + l = void 0 === i ? {} : i, + s = + (t && + n.componentProps && + n.componentProps.multiple && + n.simpleValues + ? t.split(n.separator || ',') + : t) || (n.componentProps && n.componentProps.multiple ? [] : ''), + d = (n.options || []).map(function(e, t) { + return o.createElement( + 'option', + { + key: n.id + '_' + t, + value: e.value, + disabled: e.disabled || !1, + }, + e.label, + ) + }) + return o.createElement( + 'div', + { className: a('form-element', 'input-dropdown', n.className) }, + o.createElement( + 'span', + { + className: a('dropdown-wrapper', { + multi: n.componentProps && n.componentProps.multiple, + }), + }, + o.createElement( + 'select', + r({}, l, n.componentProps, { value: s, name: n.id, id: n.id }), + d, + ), + ), + ) } }, function(e, t, n) { 'use strict' - var o = n(5), - i = n(214), - r = Function.prototype.call - e.exports = function(e, t) { - var n = {}, - a = arguments[2] - return ( - o(t), - i(e, function(e, o, i, l) { - n[o] = r.call(t, a, e, o, i, l) - }), - n + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + }, + a = n(3) + t.a = function(e) { + var t = e.value, + n = void 0 === t ? '' : t, + i = e.config, + l = e.callbacks, + s = void 0 === l ? {} : l, + d = i.separator, + p = void 0 === d ? ',' : d, + u = i.simpleValues ? n.split(p) : n, + c = (i.options || []).map(function(e) { + var t = Math.random() + .toString(36) + .slice(-5) + return o.createElement( + 'span', + { className: 'checkbox-wrapper', key: i.id + '_' + t }, + o.createElement( + 'input', + r({}, s, i.componentProps, { + checked: -1 < u.indexOf(e.value), + value: e.value.toString(), + id: i.id + '_' + t, + type: 'checkbox', + }), + ), + o.createElement('label', { htmlFor: i.id + '_' + t }, e.label), + ) + }) + return o.createElement( + 'div', + { className: a(['form-element', 'input-checkbox', i.className]) }, + c, ) } }, function(e, t, n) { 'use strict' - e.exports = n(215)('forEach') - }, - function(e, t, n) { - 'use strict' - var o = n(5), - i = n(4), - r = Function.prototype.bind, - a = Function.prototype.call, - l = Object.keys, - s = Object.prototype.propertyIsEnumerable - e.exports = function(e, t) { - return function(n, d) { - var p = arguments[2], - u = arguments[3], - c - return ( - (n = Object(i(n))), - o(d), - (c = l(n)), - u && c.sort('function' == typeof u ? r.call(u, n) : void 0), - 'function' != typeof e && (e = c[e]), - a.call(e, c, function(e, o) { - return s.call(n, e) ? a.call(d, p, n[e], e, n, o) : t - }) - ) - } + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e + }, + a = n(3) + t.a = function(e) { + var t = e.value, + n = e.config, + i = e.callbacks, + l = void 0 === i ? {} : i, + s = n.componentProps || {} + return o.createElement( + 'div', + { className: a('form-element', 'input-range', n.className) }, + !1 !== s.showValue && + o.createElement('div', { className: 'value' }, t || s.min), + o.createElement( + 'input', + r({}, l, s, { + type: 'range', + value: t || s.min, + name: n.id, + id: n.id, + }), + ), + !1 !== s.showRange && + o.createElement( + 'div', + { className: 'range' }, + o.createElement('span', { className: 'min' }, s.min), + o.createElement('span', { className: 'max' }, s.max), + ), + ) } }, function(e, t, n) { 'use strict' - var o = n(33), - i = n(15), - r = n(10), - a = n(53), - l = Object.defineProperty, - s - ;(s = e.exports = function(e) { - if (!(this instanceof s)) - throw new TypeError("Constructor requires 'new'") - ;(e = e + ''), a.call(this, e), l(this, '__length__', i('', e.length)) - }), - o && o(s, a), - delete s.prototype.constructor, - (s.prototype = Object.create(a.prototype, { - _next: i(function() { - if (this.__list__) { - if (this.__nextIndex__ < this.__length__) - return this.__nextIndex__++ - this._unBind() - } - }), - _resolve: i(function(e) { - var t = this.__list__[e], - n - return this.__nextIndex__ === this.__length__ - ? t - : ((n = t.charCodeAt(0)), - 55296 <= n && 56319 >= n - ? t + this.__list__[this.__nextIndex__++] - : t) - }), - })), - l(s.prototype, r.toStringTag, i('c', 'String Iterator')) - }, - function(e, t, n) { - 'use strict' - var o = n(33), - i = n(52), - r = n(15), - a = n(53), - l = n(10).toStringTag, - s = Object.defineProperty, - d - ;(d = e.exports = function(e, t) { - return this instanceof d - ? void (a.call(this, e.__setData__, e), - (t = t - ? i.call(t, 'key+value') ? 'key+value' : 'value' - : 'value'), - s(this, '__kind__', r('', t))) - : new d(e, t) - }), - o && o(d, a), - (d.prototype = Object.create(a.prototype, { - constructor: r(d), - _resolve: r(function(e) { - return 'value' === this.__kind__ - ? this.__list__[e] - : [this.__list__[e], this.__list__[e]] - }), - toString: r(function() { - return '[object Set Iterator]' - }), - })), - s(d.prototype, l, r('c', 'Set Iterator')) - }, - function(e) { - 'use strict' - e.exports = (function() { - return ( - 'undefined' != typeof Set && - '[object Set]' === Object.prototype.toString.call(Set.prototype) - ) - })() - }, - function(e, t, n) { - e.exports = 'function' == typeof Array.from ? Array.from : n(220) - }, - function(e) { - e.exports = (function() { - var e = function(e) { - return 'function' == typeof e - }, - t = function(e) { - var t = +e - return isNaN(t) - ? 0 - : 0 !== t && isFinite(t) - ? (0 < t ? 1 : -1) * Math.floor(Math.abs(t)) - : t - }, - n = function(e) { - var n = t(e) - return Math.min(Math.max(n, 0), 9007199254740991) - }, - o = function(e) { - if (null != e) { - if ( - -1 < ['string', 'number', 'boolean', 'symbol'].indexOf(typeof e) - ) - return Symbol.iterator - if ( - 'undefined' != typeof Symbol && - 'iterator' in Symbol && - Symbol.iterator in e - ) - return Symbol.iterator - if ('@@iterator' in e) return '@@iterator' - } - }, - i = function(t, n) { - if (null != t && null != n) { - var o = t[n] - if (null == o) return - if (!e(o)) throw new TypeError(o + ' is not a function') - return o - } + var o = n(0), + i = n.n(o), + r = + (this && this.__assign) || + Object.assign || + function(e) { + for (var t = 1, o = arguments.length, n; t < o; t++) + for (var i in ((n = arguments[t]), n)) + Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]) + return e }, - r = function(e) { - var t = e.next(), - n = !!t.done - return !n && t - } - return function(t) { - 'use strict' - var a = this, - l = 1 < arguments.length ? arguments[1] : void 0, - s - if ('undefined' != typeof l) { - if (!e(l)) - throw new TypeError( - 'Array.from: when provided, the second argument must be a function', - ) - 2 < arguments.length && (s = arguments[2]) - } - var d = i(t, o(t)), - p, - u - if (void 0 !== d) { - p = e(a) ? Object(new a()) : [] - var c = d.call(t) - if (null == c) - throw new TypeError( - 'Array.from requires an array-like or iterable object', - ) - u = 0 - for (var f, h; ; ) { - if (((f = r(c)), !f)) return (p.length = u), p - ;(h = f.value), (p[u] = l ? l.call(s, h, u) : h), u++ - } - } else { - var m = Object(t) - if (null == t) - throw new TypeError( - 'Array.from requires an array-like object - not null or undefined', - ) - var g = n(m.length) - ;(p = e(a) ? Object(new a(g)) : Array(g)), (u = 0) - for (var y; u < g; ) - (y = m[u]), (p[u] = l ? l.call(s, y, u) : y), u++ - p.length = g - } - return p - } - })() + a = n(3) + t.a = function(e) { + var t = e.callbacks, + n = void 0 === t ? {} : t, + i = e.config, + l = e.value, + s = void 0 === l ? '' : l + return o.createElement( + 'div', + { className: a('form-element', 'input-textarea', i.className) }, + o.createElement( + 'textarea', + r({}, n, i.componentProps, { + placeholder: i.placeholder, + className: i.className, + name: i.id, + id: i.id, + value: s, + }), + ), + ) + } }, - function() {}, function(e, t) { 'use strict' t.a = [ @@ -25869,5 +24716,5 @@ and limitations under the License. ] }, ], - [83], + [65], ) diff --git a/examples/src/index.tsx b/examples/src/index.tsx index 603bb5b..ad479a1 100644 --- a/examples/src/index.tsx +++ b/examples/src/index.tsx @@ -10,8 +10,7 @@ import * as ReactDOM from 'react-dom' import Select from 'react-select' import { UnControlled as CodeMirror } from 'react-codemirror2' -import { IReactFormConfig } from '../../lib/types' -import ReactForms from '../../lib/' +import ReactForms, { IReactFormConfig } from '../../lib' import config from './form-config' interface ReactFormsProps {}