Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !function (t) {
- var e = {
- };
- function n(r) {
- if (e[r]) return e[r].exports;
- var o = e[r] = {
- i: r,
- l: !1,
- exports: {
- }
- };
- return t[r].call(o.exports, o, o.exports, n),
- o.l = !0,
- o.exports
- }
- n.m = t,
- n.c = e,
- n.d = function (t, e, r) {
- n.o(t, e) || Object.defineProperty(t, e, {
- enumerable: !0,
- get: r
- })
- },
- n.r = function (t) {
- 'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
- value: 'Module'
- }),
- Object.defineProperty(t, '__esModule', {
- value: !0
- })
- },
- n.t = function (t, e) {
- if (1 & e && (t = n(t)), 8 & e) return t;
- if (4 & e && 'object' == typeof t && t && t.__esModule) return t;
- var r = Object.create(null);
- if (n.r(r), Object.defineProperty(r, 'default', {
- enumerable: !0,
- value: t
- }), 2 & e && 'string' != typeof t) for (var o in t) n.d(r, o, function (e) {
- return t[e]
- }.bind(null, o));
- return r
- },
- n.n = function (t) {
- var e = t && t.__esModule ? function () {
- return t.default
- }
- : function () {
- return t
- };
- return n.d(e, 'a', e),
- e
- },
- n.o = function (t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- },
- n.p = '',
- n(n.s = 15)
- }([function (t, e, n) {
- !function (t) {
- 'use strict';
- var e = function () {
- },
- n = {
- },
- r = [
- ],
- o = [
- ];
- function i(t, i) {
- var a = o,
- s = void 0,
- c = void 0,
- u = void 0,
- l = void 0;
- for (l = arguments.length; l-- > 2; ) r.push(arguments[l]);
- for (i && null != i.children && (r.length || r.push(i.children), delete i.children); r.length; ) if ((c = r.pop()) && void 0 !== c.pop) for (l = c.length; l--; ) r.push(c[l]);
- else 'boolean' == typeof c && (c = null),
- (u = 'function' != typeof t) && (null == c ? c = '' : 'number' == typeof c ? c = String(c) : 'string' != typeof c && (u = !1)),
- u && s ? a[a.length - 1] += c : a === o ? a = [
- c
- ] : a.push(c),
- s = u;
- var f = new e;
- return f.nodeName = t,
- f.children = a,
- f.attributes = null == i ? void 0 : i,
- f.key = null == i ? void 0 : i.key,
- void 0 !== n.vnode && n.vnode(f),
- f
- }
- function a(t, e) {
- for (var n in e) t[n] = e[n];
- return t
- }
- function s(t, e) {
- t && ('function' == typeof t ? t(e) : t.current = e)
- }
- var c = 'function' == typeof Promise ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;
- function u(t, e) {
- return i(t.nodeName, a(a({
- }, t.attributes), e), arguments.length > 2 ? [
- ].slice.call(arguments, 2) : t.children)
- }
- var l = 0,
- f = 1,
- p = 2,
- d = 3,
- h = '__preactattr_',
- y = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,
- m = [
- ];
- function v(t) {
- !t._dirty && (t._dirty = !0) && 1 == m.push(t) && (n.debounceRendering || c) (g)
- }
- function g() {
- for (var t = void 0; t = m.pop(); ) t._dirty && M(t)
- }
- function b(t, e, n) {
- return 'string' == typeof e || 'number' == typeof e ? void 0 !== t.splitText : 'string' == typeof e.nodeName ? !t._componentConstructor && w(t, e.nodeName) : n || t._componentConstructor === e.nodeName
- }
- function w(t, e) {
- return t.normalizedNodeName === e || t.nodeName.toLowerCase() === e.toLowerCase()
- }
- function _(t) {
- var e = a({
- }, t.attributes);
- e.children = t.children;
- var n = t.nodeName.defaultProps;
- if (void 0 !== n) for (var r in n) void 0 === e[r] && (e[r] = n[r]);
- return e
- }
- function O(t) {
- var e = t.parentNode;
- e && e.removeChild(t)
- }
- function j(t, e, n, r, o) {
- if ('className' === e && (e = 'class'), 'key' === e);
- else if ('ref' === e) s(n, null),
- s(r, t);
- else if ('class' !== e || o) if ('style' === e) {
- if (r && 'string' != typeof r && 'string' != typeof n || (t.style.cssText = r || ''), r && 'object' == typeof r) {
- if ('string' != typeof n) for (var i in n) i in r || (t.style[i] = '');
- for (var a in r) t.style[a] = 'number' == typeof r[a] && !1 === y.test(a) ? r[a] + 'px' : r[a]
- }
- } else if ('dangerouslySetInnerHTML' === e) r && (t.innerHTML = r.__html || '');
- else if ('o' == e[0] && 'n' == e[1]) {
- var c = e !== (e = e.replace(/Capture$/, ''));
- e = e.toLowerCase().substring(2),
- r ? n || t.addEventListener(e, S, c) : t.removeEventListener(e, S, c),
- (t._listeners || (t._listeners = {
- })) [e] = r
- } else if ('list' !== e && 'type' !== e && !o && e in t) {
- try {
- t[e] = null == r ? '' : r
- } catch (t) {
- }
- null != r && !1 !== r || 'spellcheck' == e || t.removeAttribute(e)
- } else {
- var u = o && e !== (e = e.replace(/^xlink:?/, ''));
- null == r || !1 === r ? u ? t.removeAttributeNS('http://www.w3.org/1999/xlink', e.toLowerCase()) : t.removeAttribute(e) : 'function' != typeof r && (u ? t.setAttributeNS('http://www.w3.org/1999/xlink', e.toLowerCase(), r) : t.setAttribute(e, r))
- } else t.className = r || ''
- }
- function S(t) {
- return this._listeners[t.type](n.event && n.event(t) || t)
- }
- var C = [
- ],
- P = 0,
- k = !1,
- E = !1;
- function x() {
- for (var t = void 0; t = C.shift(); ) n.afterMount && n.afterMount(t),
- t.componentDidMount && t.componentDidMount()
- }
- function I(t, e, n, r, o, i) {
- P++ || (k = null != o && void 0 !== o.ownerSVGElement, E = null != t && !(h in t));
- var a = A(t, e, n, r, i);
- return o && a.parentNode !== o && o.appendChild(a),
- --P || (E = !1, i || x()),
- a
- }
- function A(t, e, n, r, o) {
- var i = t,
- a = k;
- if (null != e && 'boolean' != typeof e || (e = ''), 'string' == typeof e || 'number' == typeof e) return t && void 0 !== t.splitText && t.parentNode && (!t._component || o) ? t.nodeValue != e && (t.nodeValue = e) : (i = document.createTextNode(e), t && (t.parentNode && t.parentNode.replaceChild(i, t), T(t, !0))),
- i[h] = !0,
- i;
- var s,
- c,
- u = e.nodeName;
- if ('function' == typeof u) return function (t, e, n, r) {
- for (var o = t && t._component, i = o, a = t, s = o && t._componentConstructor === e.nodeName, c = s, u = _(e); o && !c && (o = o._parentComponent); ) c = o.constructor === e.nodeName;
- return o && c && (!r || o._component) ? ($(o, u, d, n, r), t = o.base) : (i && !s && (D(i), t = a = null), o = V(e.nodeName, u, n), t && !o.nextBase && (o.nextBase = t, a = null), $(o, u, f, n, r), t = o.base, a && t !== a && (a._component = null, T(a, !1))),
- t
- }(t, e, n, r);
- if (k = 'svg' === u || 'foreignObject' !== u && k, u = String(u), (!t || !w(t, u)) && (s = u, (c = k ? document.createElementNS('http://www.w3.org/2000/svg', s) : document.createElement(s)).normalizedNodeName = s, i = c, t)) {
- for (; t.firstChild; ) i.appendChild(t.firstChild);
- t.parentNode && t.parentNode.replaceChild(i, t),
- T(t, !0)
- }
- var l = i.firstChild,
- p = i[h],
- y = e.children;
- if (null == p) {
- p = i[h] = {
- };
- for (var m = i.attributes, v = m.length; v--; ) p[m[v].name] = m[v].value
- }
- return !E && y && 1 === y.length && 'string' == typeof y[0] && null != l && void 0 !== l.splitText && null == l.nextSibling ? l.nodeValue != y[0] && (l.nodeValue = y[0]) : (y && y.length || null != l) && function (t, e, n, r, o) {
- var i = t.childNodes,
- a = [
- ],
- s = {
- },
- c = 0,
- u = 0,
- l = i.length,
- f = 0,
- p = e ? e.length : 0,
- d = void 0,
- y = void 0,
- m = void 0,
- v = void 0,
- g = void 0;
- if (0 !== l) for (var w = 0; w < l; w++) {
- var _ = i[w],
- j = _[h],
- S = p && j ? _._component ? _._component.__key : j.key : null;
- null != S ? (c++, s[S] = _) : (j || (void 0 !== _.splitText ? !o || _.nodeValue.trim() : o)) && (a[f++] = _)
- }
- if (0 !== p) for (var C = 0; C < p; C++) {
- v = e[C],
- g = null;
- var P = v.key;
- if (null != P) c && void 0 !== s[P] && (g = s[P], s[P] = void 0, c--);
- else if (u < f) for (d = u; d < f; d++) if (void 0 !== a[d] && b(y = a[d], v, o)) {
- g = y,
- a[d] = void 0,
- d === f - 1 && f--,
- d === u && u++;
- break
- }
- g = A(g, v, n, r),
- m = i[C],
- g && g !== t && g !== m && (null == m ? t.appendChild(g) : g === m.nextSibling ? O(m) : t.insertBefore(g, m))
- }
- if (c) for (var k in s) void 0 !== s[k] && T(s[k], !1);
- for (; u <= f; ) void 0 !== (g = a[f--]) && T(g, !1)
- }(i, y, n, r, E || null != p.dangerouslySetInnerHTML),
- function (t, e, n) {
- var r = void 0;
- for (r in n) e && null != e[r] || null == n[r] || j(t, r, n[r], n[r] = void 0, k);
- for (r in e) 'children' === r || 'innerHTML' === r || r in n && e[r] === ('value' === r || 'checked' === r ? t[r] : n[r]) || j(t, r, n[r], n[r] = e[r], k)
- }(i, e.attributes, p),
- k = a,
- i
- }
- function T(t, e) {
- var n = t._component;
- n ? D(n) : (null != t[h] && s(t[h].ref, null), !1 !== e && null != t[h] || O(t), R(t))
- }
- function R(t) {
- for (t = t.lastChild; t; ) {
- var e = t.previousSibling;
- T(t, !0),
- t = e
- }
- }
- var N = [
- ];
- function V(t, e, n) {
- var r = void 0,
- o = N.length;
- for (t.prototype && t.prototype.render ? (r = new t(e, n), U.call(r, e, n)) : ((r = new U(e, n)).constructor = t, r.render = F); o--; ) if (N[o].constructor === t) return r.nextBase = N[o].nextBase,
- N.splice(o, 1),
- r;
- return r
- }
- function F(t, e, n) {
- return this.constructor(t, n)
- }
- function $(t, e, r, o, i) {
- t._disable || (t._disable = !0, t.__ref = e.ref, t.__key = e.key, delete e.ref, delete e.key, void 0 === t.constructor.getDerivedStateFromProps && (!t.base || i ? t.componentWillMount && t.componentWillMount() : t.componentWillReceiveProps && t.componentWillReceiveProps(e, o)), o && o !== t.context && (t.prevContext || (t.prevContext = t.context), t.context = o), t.prevProps || (t.prevProps = t.props), t.props = e, t._disable = !1, r !== l && (r !== f && !1 === n.syncComponentUpdates && t.base ? v(t) : M(t, f, i)), s(t.__ref, t))
- }
- function M(t, e, r, o) {
- if (!t._disable) {
- var i = t.props,
- s = t.state,
- c = t.context,
- u = t.prevProps || i,
- d = t.prevState || s,
- h = t.prevContext || c,
- y = t.base,
- m = t.nextBase,
- v = y || m,
- g = t._component,
- b = !1,
- w = h,
- O = void 0,
- j = void 0,
- S = void 0;
- if (t.constructor.getDerivedStateFromProps && (s = a(a({
- }, s), t.constructor.getDerivedStateFromProps(i, s)), t.state = s), y && (t.props = u, t.state = d, t.context = h, e !== p && t.shouldComponentUpdate && !1 === t.shouldComponentUpdate(i, s, c) ? b = !0 : t.componentWillUpdate && t.componentWillUpdate(i, s, c), t.props = i, t.state = s, t.context = c), t.prevProps = t.prevState = t.prevContext = t.nextBase = null, t._dirty = !1, !b) {
- O = t.render(i, s, c),
- t.getChildContext && (c = a(a({
- }, c), t.getChildContext())),
- y && t.getSnapshotBeforeUpdate && (w = t.getSnapshotBeforeUpdate(u, d));
- var k = O && O.nodeName,
- E = void 0,
- A = void 0;
- if ('function' == typeof k) {
- var R = _(O);
- (j = g) && j.constructor === k && R.key == j.__key ? $(j, R, f, c, !1) : (E = j, t._component = j = V(k, R, c), j.nextBase = j.nextBase || m, j._parentComponent = t, $(j, R, l, c, !1), M(j, f, r, !0)),
- A = j.base
- } else S = v,
- (E = g) && (S = t._component = null),
- (v || e === f) && (S && (S._component = null), A = I(S, O, c, r || !y, v && v.parentNode, !0));
- if (v && A !== v && j !== g) {
- var N = v.parentNode;
- N && A !== N && (N.replaceChild(A, v), E || (v._component = null, T(v, !1)))
- }
- if (E && D(E), t.base = A, A && !o) {
- for (var F = t, U = t; U = U._parentComponent; ) (F = U).base = A;
- A._component = F,
- A._componentConstructor = F.constructor
- }
- }
- for (!y || r ? C.push(t) : b || (t.componentDidUpdate && t.componentDidUpdate(u, d, w), n.afterUpdate && n.afterUpdate(t)); t._renderCallbacks.length; ) t._renderCallbacks.pop().call(t);
- P || o || x()
- }
- }
- function D(t) {
- n.beforeUnmount && n.beforeUnmount(t);
- var e = t.base;
- t._disable = !0,
- t.componentWillUnmount && t.componentWillUnmount(),
- t.base = null;
- var r = t._component;
- r ? D(r) : e && (null != e[h] && s(e[h].ref, null), t.nextBase = e, O(e), N.push(t), R(e)),
- s(t.__ref, null)
- }
- function U(t, e) {
- this._dirty = !0,
- this.context = e,
- this.props = t,
- this.state = this.state || {
- },
- this._renderCallbacks = [
- ]
- }
- function z(t, e, n) {
- return I(n, t, {
- }, !1, e, !1)
- }
- function L() {
- return {
- }
- }
- a(U.prototype, {
- setState: function (t, e) {
- this.prevState || (this.prevState = this.state),
- this.state = a(a({
- }, this.state), 'function' == typeof t ? t(this.state, this.props) : t),
- e && this._renderCallbacks.push(e),
- v(this)
- },
- forceUpdate: function (t) {
- t && this._renderCallbacks.push(t),
- M(this, p)
- },
- render: function () {
- }
- });
- var W = {
- h: i,
- createElement: i,
- cloneElement: u,
- createRef: L,
- Component: U,
- render: z,
- rerender: g,
- options: n
- };
- t.default = W,
- t.h = i,
- t.createElement = i,
- t.cloneElement = u,
- t.createRef = L,
- t.Component = U,
- t.render = z,
- t.rerender = g,
- t.options = n,
- Object.defineProperty(t, '__esModule', {
- value: !0
- })
- }(e)
- },
- function (t, e, n) {
- 'use strict';
- (function (t, r) {
- function o(t) {
- return (o = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function (t) {
- return typeof t
- }
- : function (t) {
- return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t
- }) (t)
- }
- function i(t, e) {
- for (var n = 0; n < e.length; n++) {
- var r = e[n];
- r.enumerable = r.enumerable || !1,
- r.configurable = !0,
- 'value' in r && (r.writable = !0),
- Object.defineProperty(t, r.key, r)
- }
- }
- function a(t, e, n) {
- return e in t ? Object.defineProperty(t, e, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : t[e] = n,
- t
- }
- function s(t) {
- for (var e = 1; e < arguments.length; e++) {
- var n = null != arguments[e] ? arguments[e] : {
- },
- r = Object.keys(n);
- 'function' == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function (t) {
- return Object.getOwnPropertyDescriptor(n, t).enumerable
- }))),
- r.forEach(function (e) {
- a(t, e, n[e])
- })
- }
- return t
- }
- function c(t, e) {
- return function (t) {
- if (Array.isArray(t)) return t
- }(t) || function (t, e) {
- var n = [
- ],
- r = !0,
- o = !1,
- i = void 0;
- try {
- for (var a, s = t[Symbol.iterator](); !(r = (a = s.next()).done) && (n.push(a.value), !e || n.length !== e); r = !0);
- } catch (t) {
- o = !0,
- i = t
- } finally {
- try {
- r || null == s.return || s.return ()
- } finally {
- if (o) throw i
- }
- }
- return n
- }(t, e) || function () {
- throw new TypeError('Invalid attempt to destructure non-iterable instance')
- }()
- }
- n.d(e, 'a', function () {
- return xt
- }),
- n.d(e, 'b', function () {
- return kt
- });
- var u = function () {
- },
- l = {
- },
- f = {
- },
- p = {
- mark: u,
- measure: u
- };
- try {
- 'undefined' != typeof window && (l = window),
- 'undefined' != typeof document && (f = document),
- 'undefined' != typeof MutationObserver && MutationObserver,
- 'undefined' != typeof performance && (p = performance)
- } catch (t) {
- }
- var d = (l.navigator || {
- }).userAgent,
- h = void 0 === d ? '' : d,
- y = l,
- m = f,
- v = p,
- g = (y.document, !!m.documentElement && !!m.head && 'function' == typeof m.addEventListener && 'function' == typeof m.createElement),
- b = (~h.indexOf('MSIE') || h.indexOf('Trident/'), 'fa'),
- w = 'svg-inline--fa',
- _ = 'data-fa-i2svg',
- O = (function () {
- try {
- } catch (t) {
- return !1
- }
- }(), [
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10
- ]),
- j = O.concat([11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20]),
- S = (['xs',
- 'sm',
- 'lg',
- 'fw',
- 'ul',
- 'li',
- 'border',
- 'pull-left',
- 'pull-right',
- 'spin',
- 'pulse',
- 'rotate-90',
- 'rotate-180',
- 'rotate-270',
- 'flip-horizontal',
- 'flip-vertical',
- 'flip-both',
- 'stack',
- 'stack-1x',
- 'stack-2x',
- 'inverse',
- 'layers',
- 'layers-text',
- 'layers-counter'].concat(O.map(function (t) {
- return ''.concat(t, 'x')
- })).concat(j.map(function (t) {
- return 'w-'.concat(t)
- })), y.FontAwesomeConfig || {
- });
- if (m && 'function' == typeof m.querySelector) {
- [
- ['data-family-prefix',
- 'familyPrefix'],
- [
- 'data-replacement-class',
- 'replacementClass'
- ],
- [
- 'data-auto-replace-svg',
- 'autoReplaceSvg'
- ],
- [
- 'data-auto-add-css',
- 'autoAddCss'
- ],
- [
- 'data-auto-a11y',
- 'autoA11y'
- ],
- [
- 'data-search-pseudo-elements',
- 'searchPseudoElements'
- ],
- [
- 'data-observe-mutations',
- 'observeMutations'
- ],
- [
- 'data-mutate-approach',
- 'mutateApproach'
- ],
- [
- 'data-keep-original-source',
- 'keepOriginalSource'
- ],
- [
- 'data-measure-performance',
- 'measurePerformance'
- ],
- [
- 'data-show-missing-icons',
- 'showMissingIcons'
- ]
- ].forEach(function (t) {
- var e = c(t, 2),
- n = e[0],
- r = e[1],
- o = function (t) {
- return '' === t || 'false' !== t && ('true' === t || t)
- }(function (t) {
- var e = m.querySelector('script[' + t + ']');
- if (e) return e.getAttribute(t)
- }(n));
- null != o && (S[r] = o)
- })
- }
- var C = s({
- }, {
- familyPrefix: b,
- replacementClass: w,
- autoReplaceSvg: !0,
- autoAddCss: !0,
- autoA11y: !0,
- searchPseudoElements: !1,
- observeMutations: !0,
- mutateApproach: 'async',
- keepOriginalSource: !0,
- measurePerformance: !1,
- showMissingIcons: !0
- }, S);
- C.autoReplaceSvg || (C.observeMutations = !1);
- var P = s({
- }, C);
- y.FontAwesomeConfig = P;
- var k = y || {
- };
- k.___FONT_AWESOME___ || (k.___FONT_AWESOME___ = {
- }),
- k.___FONT_AWESOME___.styles || (k.___FONT_AWESOME___.styles = {
- }),
- k.___FONT_AWESOME___.hooks || (k.___FONT_AWESOME___.hooks = {
- }),
- k.___FONT_AWESOME___.shims || (k.___FONT_AWESOME___.shims = [
- ]);
- var E = k.___FONT_AWESOME___,
- x = [
- ];
- g && ((m.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(m.readyState) || m.addEventListener('DOMContentLoaded', function t() {
- m.removeEventListener('DOMContentLoaded', t),
- 1,
- x.map(function (t) {
- return t()
- })
- }));
- var I,
- A = 'pending',
- T = 'settled',
- R = 'fulfilled',
- N = 'rejected',
- V = function () {
- },
- F = void 0 !== t && void 0 !== t.process && 'function' == typeof t.process.emit,
- $ = void 0 === r ? setTimeout : r,
- M = [
- ];
- function D() {
- for (var t = 0; t < M.length; t++) M[t][0](M[t][1]);
- M = [
- ],
- I = !1
- }
- function U(t, e) {
- M.push([t,
- e]),
- I || (I = !0, $(D, 0))
- }
- function z(t) {
- var e = t.owner,
- n = e._state,
- r = e._data,
- o = t[n],
- i = t.then;
- if ('function' == typeof o) {
- n = R;
- try {
- r = o(r)
- } catch (t) {
- H(i, t)
- }
- }
- L(i, r) || (n === R && W(i, r), n === N && H(i, r))
- }
- function L(t, e) {
- var n;
- try {
- if (t === e) throw new TypeError('A promises callback cannot return that same promise.');
- if (e && ('function' == typeof e || 'object' === o(e))) {
- var r = e.then;
- if ('function' == typeof r) return r.call(e, function (r) {
- n || (n = !0, e === r ? B(t, r) : W(t, r))
- }, function (e) {
- n || (n = !0, H(t, e))
- }),
- !0
- }
- } catch (e) {
- return n || H(t, e),
- !0
- }
- return !1
- }
- function W(t, e) {
- t !== e && L(t, e) || B(t, e)
- }
- function B(t, e) {
- t._state === A && (t._state = T, t._data = e, U(X, t))
- }
- function H(t, e) {
- t._state === A && (t._state = T, t._data = e, U(q, t))
- }
- function G(t) {
- t._then = t._then.forEach(z)
- }
- function X(t) {
- t._state = R,
- G(t)
- }
- function q(e) {
- e._state = N,
- G(e),
- !e._handled && F && t.process.emit('unhandledRejection', e._data, e)
- }
- function K(e) {
- t.process.emit('rejectionHandled', e)
- }
- function J(t) {
- if ('function' != typeof t) throw new TypeError('Promise resolver ' + t + ' is not a function');
- if (this instanceof J == !1) throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
- this._then = [
- ],
- function (t, e) {
- function n(t) {
- H(e, t)
- }
- try {
- t(function (t) {
- W(e, t)
- }, n)
- } catch (t) {
- n(t)
- }
- }(t, this)
- }
- J.prototype = {
- constructor: J,
- _state: A,
- _then: null,
- _data: void 0,
- _handled: !1,
- then: function (t, e) {
- var n = {
- owner: this,
- then: new this.constructor(V),
- fulfilled: t,
- rejected: e
- };
- return !e && !t || this._handled || (this._handled = !0, this._state === N && F && U(K, this)),
- this._state === R || this._state === N ? U(z, n) : this._then.push(n),
- n.then
- },
- catch : function (t) {
- return this.then(null, t)
- }
- },
- J.all = function (t) {
- if (!Array.isArray(t)) throw new TypeError('You must pass an array to Promise.all().');
- return new J(function (e, n) {
- var r = [
- ],
- o = 0;
- function i(t) {
- return o++,
- function (n) {
- r[t] = n,
- --o || e(r)
- }
- }
- for (var a, s = 0; s < t.length; s++) (a = t[s]) && 'function' == typeof a.then ? a.then(i(s), n) : r[s] = a;
- o || e(r)
- })
- },
- J.race = function (t) {
- if (!Array.isArray(t)) throw new TypeError('You must pass an array to Promise.race().');
- return new J(function (e, n) {
- for (var r, o = 0; o < t.length; o++) (r = t[o]) && 'function' == typeof r.then ? r.then(e, n) : e(r)
- })
- },
- J.resolve = function (t) {
- return t && 'object' === o(t) && t.constructor === J ? t : new J(function (e) {
- e(t)
- })
- },
- J.reject = function (t) {
- return new J(function (e, n) {
- n(t)
- })
- };
- 'function' == typeof Promise && Promise;
- var Y = {
- size: 16,
- x: 0,
- y: 0,
- rotate: 0,
- flipX: !1,
- flipY: !1
- };
- function Q(t) {
- if (t && g) {
- var e = m.createElement('style');
- e.setAttribute('type', 'text/css'),
- e.innerHTML = t;
- for (var n = m.head.childNodes, r = null, o = n.length - 1; o > - 1; o--) {
- var i = n[o],
- a = (i.tagName || '').toUpperCase();
- [
- 'STYLE',
- 'LINK'
- ].indexOf(a) > - 1 && (r = i)
- }
- return m.head.insertBefore(e, r),
- t
- }
- }
- var Z = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
- function tt() {
- for (var t = 12, e = ''; t-- > 0; ) e += Z[62 * Math.random() | 0];
- return e
- }
- function et(t) {
- return ''.concat(t).replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>')
- }
- function nt(t) {
- return Object.keys(t || {
- }).reduce(function (e, n) {
- return e + ''.concat(n, ': ').concat(t[n], ';')
- }, '')
- }
- function rt(t) {
- return t.size !== Y.size || t.x !== Y.x || t.y !== Y.y || t.rotate !== Y.rotate || t.flipX || t.flipY
- }
- function ot(t) {
- var e = t.transform,
- n = t.containerWidth,
- r = t.iconWidth,
- o = {
- transform: 'translate('.concat(n / 2, ' 256)')
- },
- i = 'translate('.concat(32 * e.x, ', ').concat(32 * e.y, ') '),
- a = 'scale('.concat(e.size / 16 * (e.flipX ? - 1 : 1), ', ').concat(e.size / 16 * (e.flipY ? - 1 : 1), ') '),
- s = 'rotate('.concat(e.rotate, ' 0 0)');
- return {
- outer: o,
- inner: {
- transform: ''.concat(i, ' ').concat(a, ' ').concat(s)
- },
- path: {
- transform: 'translate('.concat(r / 2 * - 1, ' -256)')
- }
- }
- }
- var it = {
- x: 0,
- y: 0,
- width: '100%',
- height: '100%'
- };
- function at(t) {
- var e = t.icons,
- n = e.main,
- r = e.mask,
- o = t.prefix,
- i = t.iconName,
- a = t.transform,
- c = t.symbol,
- u = t.title,
- l = t.extra,
- f = t.watchable,
- p = void 0 !== f && f,
- d = r.found ? r : n,
- h = d.width,
- y = d.height,
- m = 'fa-w-'.concat(Math.ceil(h / y * 16)),
- v = [
- P.replacementClass,
- i ? ''.concat(P.familyPrefix, '-').concat(i) : '',
- m
- ].filter(function (t) {
- return - 1 === l.classes.indexOf(t)
- }).concat(l.classes).join(' '),
- g = {
- children: [
- ],
- attributes: s({
- }, l.attributes, {
- 'data-prefix': o,
- 'data-icon': i,
- class : v,
- role: l.attributes.role || 'img',
- xmlns: 'http://www.w3.org/2000/svg',
- viewBox: '0 0 '.concat(h, ' ').concat(y)
- })
- };
- p && (g.attributes[_] = ''),
- u && g.children.push({
- tag: 'title',
- attributes: {
- id: g.attributes['aria-labelledby'] || 'title-'.concat(tt())
- },
- children: [
- u
- ]
- });
- var b = s({
- }, g, {
- prefix: o,
- iconName: i,
- main: n,
- mask: r,
- transform: a,
- symbol: c,
- styles: l.styles
- }),
- w = r.found && n.found ? function (t) {
- var e = t.children,
- n = t.attributes,
- r = t.main,
- o = t.mask,
- i = t.transform,
- a = r.width,
- c = r.icon,
- u = o.width,
- l = o.icon,
- f = ot({
- transform: i,
- containerWidth: u,
- iconWidth: a
- }),
- p = {
- tag: 'rect',
- attributes: s({
- }, it, {
- fill: 'white'
- })
- },
- d = {
- tag: 'g',
- attributes: s({
- }, f.inner),
- children: [
- {
- tag: 'path',
- attributes: s({
- }, c.attributes, f.path, {
- fill: 'black'
- })
- }
- ]
- },
- h = {
- tag: 'g',
- attributes: s({
- }, f.outer),
- children: [
- d
- ]
- },
- y = 'mask-'.concat(tt()),
- m = 'clip-'.concat(tt()),
- v = {
- tag: 'defs',
- children: [
- {
- tag: 'clipPath',
- attributes: {
- id: m
- },
- children: [
- l
- ]
- },
- {
- tag: 'mask',
- attributes: s({
- }, it, {
- id: y,
- maskUnits: 'userSpaceOnUse',
- maskContentUnits: 'userSpaceOnUse'
- }),
- children: [
- p,
- h
- ]
- }
- ]
- };
- return e.push(v, {
- tag: 'rect',
- attributes: s({
- fill: 'currentColor',
- 'clip-path': 'url(#'.concat(m, ')'),
- mask: 'url(#'.concat(y, ')')
- }, it)
- }),
- {
- children: e,
- attributes: n
- }
- }(b) : function (t) {
- var e = t.children,
- n = t.attributes,
- r = t.main,
- o = t.transform,
- i = nt(t.styles);
- if (i.length > 0 && (n.style = i), rt(o)) {
- var a = ot({
- transform: o,
- containerWidth: r.width,
- iconWidth: r.width
- });
- e.push({
- tag: 'g',
- attributes: s({
- }, a.outer),
- children: [
- {
- tag: 'g',
- attributes: s({
- }, a.inner),
- children: [
- {
- tag: r.icon.tag,
- children: r.icon.children,
- attributes: s({
- }, r.icon.attributes, a.path)
- }
- ]
- }
- ]
- })
- } else e.push(r.icon);
- return {
- children: e,
- attributes: n
- }
- }(b),
- O = w.children,
- j = w.attributes;
- return b.children = O,
- b.attributes = j,
- c ? function (t) {
- var e = t.prefix,
- n = t.iconName,
- r = t.children,
- o = t.attributes,
- i = t.symbol;
- return [{
- tag: 'svg',
- attributes: {
- style: 'display: none;'
- },
- children: [
- {
- tag: 'symbol',
- attributes: s({
- }, o, {
- id: !0 === i ? ''.concat(e, '-').concat(P.familyPrefix, '-').concat(n) : i
- }),
- children: r
- }
- ]
- }
- ]
- }(b) : function (t) {
- var e = t.children,
- n = t.main,
- r = t.mask,
- o = t.attributes,
- i = t.styles,
- a = t.transform;
- if (rt(a) && n.found && !r.found) {
- var c = {
- x: n.width / n.height / 2,
- y: 0.5
- };
- o.style = nt(s({
- }, i, {
- 'transform-origin': ''.concat(c.x + a.x / 16, 'em ').concat(c.y + a.y / 16, 'em')
- }))
- }
- return [{
- tag: 'svg',
- attributes: o,
- children: e
- }
- ]
- }(b)
- }
- var st = function () {
- },
- ct = (P.measurePerformance && v && v.mark && v.measure, function (t, e, n, r) {
- var o,
- i,
- a,
- s = Object.keys(t),
- c = s.length,
- u = void 0 !== r ? function (t, e) {
- return function (n, r, o, i) {
- return t.call(e, n, r, o, i)
- }
- }(e, r) : e;
- for (void 0 === n ? (o = 1, a = t[s[0]]) : (o = 0, a = n); o < c; o++) a = u(a, t[i = s[o]], i, t);
- return a
- });
- function ut(t, e) {
- var n = (arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {
- }).skipHooks,
- r = void 0 !== n && n,
- o = Object.keys(e).reduce(function (t, n) {
- var r = e[n];
- return !!r.icon ? t[r.iconName] = r.icon : t[n] = r,
- t
- }, {
- });
- 'function' != typeof E.hooks.addPack || r ? E.styles[t] = s({
- }, E.styles[t] || {
- }, o) : E.hooks.addPack(t, o),
- 'fas' === t && ut('fa', e)
- }
- var lt = E.styles,
- ft = E.shims,
- pt = function () {
- var t = function (t) {
- return ct(lt, function (e, n, r) {
- return e[r] = ct(n, t, {
- }),
- e
- }, {
- })
- };
- t(function (t, e, n) {
- return e[3] && (t[e[3]] = n),
- t
- }),
- t(function (t, e, n) {
- var r = e[2];
- return t[n] = n,
- r.forEach(function (e) {
- t[e] = n
- }),
- t
- });
- var e = 'far' in lt;
- ct(ft, function (t, n) {
- var r = n[0],
- o = n[1],
- i = n[2];
- return 'far' !== o || e || (o = 'fas'),
- t[r] = {
- prefix: o,
- iconName: i
- },
- t
- }, {
- })
- };
- pt();
- E.styles;
- function dt(t, e, n) {
- if (t && t[e] && t[e][n]) return {
- prefix: e,
- iconName: n,
- icon: t[e][n]
- }
- }
- function ht(t) {
- var e = t.tag,
- n = t.attributes,
- r = void 0 === n ? {
- }
- : n,
- o = t.children,
- i = void 0 === o ? [
- ] : o;
- return 'string' == typeof t ? et(t) : '<'.concat(e, ' ').concat(function (t) {
- return Object.keys(t || {
- }).reduce(function (e, n) {
- return e + ''.concat(n, '="').concat(et(t[n]), '" ')
- }, '').trim()
- }(r), '>').concat(i.map(ht).join(''), '</').concat(e, '>')
- }
- function yt(t) {
- this.name = 'MissingIcon',
- this.message = t || 'Icon unavailable',
- this.stack = (new Error).stack
- }
- yt.prototype = Object.create(Error.prototype),
- yt.prototype.constructor = yt;
- var mt = {
- fill: 'currentColor'
- },
- vt = {
- attributeType: 'XML',
- repeatCount: 'indefinite',
- dur: '2s'
- },
- gt = {
- tag: 'path',
- attributes: s({
- }, mt, {
- d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
- })
- },
- bt = s({
- }, vt, {
- attributeName: 'opacity'
- });
- s({
- }, mt, {
- cx: '256',
- cy: '364',
- r: '28'
- }),
- s({
- }, vt, {
- attributeName: 'r',
- values: '28;14;28;28;14;28;'
- }),
- s({
- }, bt, {
- values: '1;0;1;1;0;1;'
- }),
- s({
- }, mt, {
- opacity: '1',
- d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
- }),
- s({
- }, bt, {
- values: '1;0;0;0;0;1;'
- }),
- s({
- }, mt, {
- opacity: '0',
- d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
- }),
- s({
- }, bt, {
- values: '0;0;1;1;0;0;'
- }),
- E.styles;
- E.styles;
- var wt = 'svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}';
- function _t() {
- var t = b,
- e = w,
- n = P.familyPrefix,
- r = P.replacementClass,
- o = wt;
- if (n !== t || r !== e) {
- var i = new RegExp('\\.'.concat(t, '\\-'), 'g'),
- a = new RegExp('\\.'.concat(e), 'g');
- o = o.replace(i, '.'.concat(n, '-')).replace(a, '.'.concat(r))
- }
- return o
- }
- function Ot(t) {
- return {
- found: !0,
- width: t[0],
- height: t[1],
- icon: {
- tag: 'path',
- attributes: {
- fill: 'currentColor',
- d: t.slice(4) [0]
- }
- }
- }
- }
- function jt() {
- P.autoAddCss && !Et && (Q(_t()), Et = !0)
- }
- function St(t, e) {
- return Object.defineProperty(t, 'abstract', {
- get: e
- }),
- Object.defineProperty(t, 'html', {
- get: function () {
- return t.abstract.map(function (t) {
- return ht(t)
- })
- }
- }),
- Object.defineProperty(t, 'node', {
- get: function () {
- if (g) {
- var e = m.createElement('div');
- return e.innerHTML = t.html,
- e.children
- }
- }
- }),
- t
- }
- function Ct(t) {
- var e = t.prefix,
- n = void 0 === e ? 'fa' : e,
- r = t.iconName;
- if (r) return dt(kt.definitions, n, r) || dt(E.styles, n, r)
- }
- var Pt,
- kt = new (function () {
- function t() {
- !function (t, e) {
- if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function')
- }(this, t),
- this.definitions = {
- }
- }
- var e,
- n,
- r;
- return e = t,
- (n = [
- {
- key: 'add',
- value: function () {
- for (var t = this, e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r];
- var o = n.reduce(this._pullDefinitions, {
- });
- Object.keys(o).forEach(function (e) {
- t.definitions[e] = s({
- }, t.definitions[e] || {
- }, o[e]),
- ut(e, o[e]),
- pt()
- })
- }
- },
- {
- key: 'reset',
- value: function () {
- this.definitions = {
- }
- }
- },
- {
- key: '_pullDefinitions',
- value: function (t, e) {
- var n = e.prefix && e.iconName && e.icon ? {
- 0: e
- }
- : e;
- return Object.keys(n).map(function (e) {
- var r = n[e],
- o = r.prefix,
- i = r.iconName,
- a = r.icon;
- t[o] || (t[o] = {
- }),
- t[o][i] = a
- }),
- t
- }
- }
- ]) && i(e.prototype, n),
- r && i(e, r),
- t
- }()),
- Et = !1,
- xt = (Pt = function (t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
- },
- n = e.transform,
- r = void 0 === n ? Y : n,
- o = e.symbol,
- i = void 0 !== o && o,
- a = e.mask,
- c = void 0 === a ? null : a,
- u = e.title,
- l = void 0 === u ? null : u,
- f = e.classes,
- p = void 0 === f ? [
- ] : f,
- d = e.attributes,
- h = void 0 === d ? {
- }
- : d,
- y = e.styles,
- m = void 0 === y ? {
- }
- : y;
- if (t) {
- var v = t.prefix,
- g = t.iconName,
- b = t.icon;
- return St(s({
- type: 'icon'
- }, t), function () {
- return jt(),
- P.autoA11y && (l ? h['aria-labelledby'] = ''.concat(P.replacementClass, '-title-').concat(tt()) : (h['aria-hidden'] = 'true', h.focusable = 'false')),
- at({
- icons: {
- main: Ot(b),
- mask: c ? Ot(c.icon) : {
- found: !1,
- width: null,
- height: null,
- icon: {
- }
- }
- },
- prefix: v,
- iconName: g,
- transform: s({
- }, Y, r),
- symbol: i,
- title: l,
- extra: {
- attributes: h,
- styles: m,
- classes: p
- }
- })
- })
- }
- }, function (t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
- },
- n = (t || {
- }).icon ? t : Ct(t || {
- }),
- r = e.mask;
- return r && (r = (r || {
- }).icon ? r : Ct(r || {
- })),
- Pt(n, s({
- }, e, {
- mask: r
- }))
- })
- }).call(this, n(2), n(6).setImmediate)
- },
- function (t, e) {
- var n;
- n = function () {
- return this
- }();
- try {
- n = n || new Function('return this') ()
- } catch (t) {
- 'object' == typeof window && (n = window)
- }
- t.exports = n
- },
- function (t, e, n) {
- 'use strict';
- e.a = function (t) {
- var e = this.constructor;
- return this.then(function (n) {
- return e.resolve(t()).then(function () {
- return n
- })
- }, function (n) {
- return e.resolve(t()).then(function () {
- return e.reject(n)
- })
- })
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = n(33);
- t.exports = Function.prototype.bind || r
- },
- function (t, e, n) {
- 'use strict';
- var r = Function.prototype.toString,
- o = /^\s*class\b/,
- i = function (t) {
- try {
- var e = r.call(t);
- return o.test(e)
- } catch (t) {
- return !1
- }
- },
- a = Object.prototype.toString,
- s = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag;
- t.exports = function (t) {
- if (!t) return !1;
- if ('function' != typeof t && 'object' != typeof t) return !1;
- if ('function' == typeof t && !t.prototype) return !0;
- if (s) return function (t) {
- try {
- return !i(t) && (r.call(t), !0)
- } catch (t) {
- return !1
- }
- }(t);
- if (i(t)) return !1;
- var e = a.call(t);
- return '[object Function]' === e || '[object GeneratorFunction]' === e
- }
- },
- function (t, e, n) {
- (function (t) {
- var r = void 0 !== t && t || 'undefined' != typeof self && self || window,
- o = Function.prototype.apply;
- function i(t, e) {
- this._id = t,
- this._clearFn = e
- }
- e.setTimeout = function () {
- return new i(o.call(setTimeout, r, arguments), clearTimeout)
- },
- e.setInterval = function () {
- return new i(o.call(setInterval, r, arguments), clearInterval)
- },
- e.clearTimeout = e.clearInterval = function (t) {
- t && t.close()
- },
- i.prototype.unref = i.prototype.ref = function () {
- },
- i.prototype.close = function () {
- this._clearFn.call(r, this._id)
- },
- e.enroll = function (t, e) {
- clearTimeout(t._idleTimeoutId),
- t._idleTimeout = e
- },
- e.unenroll = function (t) {
- clearTimeout(t._idleTimeoutId),
- t._idleTimeout = - 1
- },
- e._unrefActive = e.active = function (t) {
- clearTimeout(t._idleTimeoutId);
- var e = t._idleTimeout;
- e >= 0 && (t._idleTimeoutId = setTimeout(function () {
- t._onTimeout && t._onTimeout()
- }, e))
- },
- n(17),
- e.setImmediate = 'undefined' != typeof self && self.setImmediate || void 0 !== t && t.setImmediate || this && this.setImmediate,
- e.clearImmediate = 'undefined' != typeof self && self.clearImmediate || void 0 !== t && t.clearImmediate || this && this.clearImmediate
- }).call(this, n(2))
- },
- function (t, e, n) {
- 'use strict';
- var r = n(34),
- o = 'function' == typeof Symbol && 'symbol' == typeof Symbol('foo'),
- i = Object.prototype.toString,
- a = Array.prototype.concat,
- s = Object.defineProperty,
- c = s && function () {
- var t = {
- };
- try {
- for (var e in s(t, 'x', {
- enumerable: !1,
- value: t
- }), t) return !1;
- return t.x === t
- } catch (t) {
- return !1
- }
- }(),
- u = function (t, e, n, r) {
- var o;
- e in t && ('function' != typeof (o = r) || '[object Function]' !== i.call(o) || !r()) || (c ? s(t, e, {
- configurable: !0,
- enumerable: !1,
- value: n,
- writable: !0
- }) : t[e] = n)
- },
- l = function (t, e) {
- var n = arguments.length > 2 ? arguments[2] : {
- },
- i = r(e);
- o && (i = a.call(i, Object.getOwnPropertySymbols(e)));
- for (var s = 0; s < i.length; s += 1) u(t, i[s], e[i[s]], n[i[s]])
- };
- l.supportsDescriptors = !!c,
- t.exports = l
- },
- function (t, e, n) {
- 'use strict';
- var r = Object.prototype.toString;
- t.exports = function (t) {
- var e = r.call(t),
- n = '[object Arguments]' === e;
- return n || (n = '[object Array]' !== e && null !== t && 'object' == typeof t && 'number' == typeof t.length && t.length >= 0 && '[object Function]' === r.call(t.callee)),
- n
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = n(4),
- o = n(36),
- i = r.call(Function.call, String.prototype.replace),
- a = /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,
- s = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
- t.exports = function () {
- var t = o.ToString(o.CheckObjectCoercible(this));
- return i(i(t, a, ''), s, '')
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = Object.getOwnPropertyDescriptor ? function () {
- return Object.getOwnPropertyDescriptor(arguments, 'callee').get
- }() : function () {
- throw new TypeError
- },
- o = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator,
- i = Object.getPrototypeOf || function (t) {
- return t.__proto__
- },
- a = void 0,
- s = 'undefined' == typeof Uint8Array ? void 0 : i(Uint8Array),
- c = {
- '$ %Array%': Array,
- '$ %ArrayBuffer%': 'undefined' == typeof ArrayBuffer ? void 0 : ArrayBuffer,
- '$ %ArrayBufferPrototype%': 'undefined' == typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype,
- '$ %ArrayIteratorPrototype%': o ? i([][Symbol.iterator]()) : void 0,
- '$ %ArrayPrototype%': Array.prototype,
- '$ %ArrayProto_entries%': Array.prototype.entries,
- '$ %ArrayProto_forEach%': Array.prototype.forEach,
- '$ %ArrayProto_keys%': Array.prototype.keys,
- '$ %ArrayProto_values%': Array.prototype.values,
- '$ %AsyncFromSyncIteratorPrototype%': void 0,
- '$ %AsyncFunction%': void 0,
- '$ %AsyncFunctionPrototype%': void 0,
- '$ %AsyncGenerator%': void 0,
- '$ %AsyncGeneratorFunction%': void 0,
- '$ %AsyncGeneratorPrototype%': void 0,
- '$ %AsyncIteratorPrototype%': a && o && Symbol.asyncIterator ? a[Symbol.asyncIterator]() : void 0,
- '$ %Atomics%': 'undefined' == typeof Atomics ? void 0 : Atomics,
- '$ %Boolean%': Boolean,
- '$ %BooleanPrototype%': Boolean.prototype,
- '$ %DataView%': 'undefined' == typeof DataView ? void 0 : DataView,
- '$ %DataViewPrototype%': 'undefined' == typeof DataView ? void 0 : DataView.prototype,
- '$ %Date%': Date,
- '$ %DatePrototype%': Date.prototype,
- '$ %decodeURI%': decodeURI,
- '$ %decodeURIComponent%': decodeURIComponent,
- '$ %encodeURI%': encodeURI,
- '$ %encodeURIComponent%': encodeURIComponent,
- '$ %Error%': Error,
- '$ %ErrorPrototype%': Error.prototype,
- '$ %eval%': eval,
- '$ %EvalError%': EvalError,
- '$ %EvalErrorPrototype%': EvalError.prototype,
- '$ %Float32Array%': 'undefined' == typeof Float32Array ? void 0 : Float32Array,
- '$ %Float32ArrayPrototype%': 'undefined' == typeof Float32Array ? void 0 : Float32Array.prototype,
- '$ %Float64Array%': 'undefined' == typeof Float64Array ? void 0 : Float64Array,
- '$ %Float64ArrayPrototype%': 'undefined' == typeof Float64Array ? void 0 : Float64Array.prototype,
- '$ %Function%': Function,
- '$ %FunctionPrototype%': Function.prototype,
- '$ %Generator%': void 0,
- '$ %GeneratorFunction%': void 0,
- '$ %GeneratorPrototype%': void 0,
- '$ %Int8Array%': 'undefined' == typeof Int8Array ? void 0 : Int8Array,
- '$ %Int8ArrayPrototype%': 'undefined' == typeof Int8Array ? void 0 : Int8Array.prototype,
- '$ %Int16Array%': 'undefined' == typeof Int16Array ? void 0 : Int16Array,
- '$ %Int16ArrayPrototype%': 'undefined' == typeof Int16Array ? void 0 : Int8Array.prototype,
- '$ %Int32Array%': 'undefined' == typeof Int32Array ? void 0 : Int32Array,
- '$ %Int32ArrayPrototype%': 'undefined' == typeof Int32Array ? void 0 : Int32Array.prototype,
- '$ %isFinite%': isFinite,
- '$ %isNaN%': isNaN,
- '$ %IteratorPrototype%': o ? i(i([][Symbol.iterator]())) : void 0,
- '$ %JSON%': JSON,
- '$ %JSONParse%': JSON.parse,
- '$ %Map%': 'undefined' == typeof Map ? void 0 : Map,
- '$ %MapIteratorPrototype%': 'undefined' != typeof Map && o ? i((new Map) [Symbol.iterator]()) : void 0,
- '$ %MapPrototype%': 'undefined' == typeof Map ? void 0 : Map.prototype,
- '$ %Math%': Math,
- '$ %Number%': Number,
- '$ %NumberPrototype%': Number.prototype,
- '$ %Object%': Object,
- '$ %ObjectPrototype%': Object.prototype,
- '$ %ObjProto_toString%': Object.prototype.toString,
- '$ %ObjProto_valueOf%': Object.prototype.valueOf,
- '$ %parseFloat%': parseFloat,
- '$ %parseInt%': parseInt,
- '$ %Promise%': 'undefined' == typeof Promise ? void 0 : Promise,
- '$ %PromisePrototype%': 'undefined' == typeof Promise ? void 0 : Promise.prototype,
- '$ %PromiseProto_then%': 'undefined' == typeof Promise ? void 0 : Promise.prototype.then,
- '$ %Promise_all%': 'undefined' == typeof Promise ? void 0 : Promise.all,
- '$ %Promise_reject%': 'undefined' == typeof Promise ? void 0 : Promise.reject,
- '$ %Promise_resolve%': 'undefined' == typeof Promise ? void 0 : Promise.resolve,
- '$ %Proxy%': 'undefined' == typeof Proxy ? void 0 : Proxy,
- '$ %RangeError%': RangeError,
- '$ %RangeErrorPrototype%': RangeError.prototype,
- '$ %ReferenceError%': ReferenceError,
- '$ %ReferenceErrorPrototype%': ReferenceError.prototype,
- '$ %Reflect%': 'undefined' == typeof Reflect ? void 0 : Reflect,
- '$ %RegExp%': RegExp,
- '$ %RegExpPrototype%': RegExp.prototype,
- '$ %Set%': 'undefined' == typeof Set ? void 0 : Set,
- '$ %SetIteratorPrototype%': 'undefined' != typeof Set && o ? i((new Set) [Symbol.iterator]()) : void 0,
- '$ %SetPrototype%': 'undefined' == typeof Set ? void 0 : Set.prototype,
- '$ %SharedArrayBuffer%': 'undefined' == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
- '$ %SharedArrayBufferPrototype%': 'undefined' == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer.prototype,
- '$ %String%': String,
- '$ %StringIteratorPrototype%': o ? i(''[Symbol.iterator]()) : void 0,
- '$ %StringPrototype%': String.prototype,
- '$ %Symbol%': o ? Symbol : void 0,
- '$ %SymbolPrototype%': o ? Symbol.prototype : void 0,
- '$ %SyntaxError%': SyntaxError,
- '$ %SyntaxErrorPrototype%': SyntaxError.prototype,
- '$ %ThrowTypeError%': r,
- '$ %TypedArray%': s,
- '$ %TypedArrayPrototype%': s ? s.prototype : void 0,
- '$ %TypeError%': TypeError,
- '$ %TypeErrorPrototype%': TypeError.prototype,
- '$ %Uint8Array%': 'undefined' == typeof Uint8Array ? void 0 : Uint8Array,
- '$ %Uint8ArrayPrototype%': 'undefined' == typeof Uint8Array ? void 0 : Uint8Array.prototype,
- '$ %Uint8ClampedArray%': 'undefined' == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
- '$ %Uint8ClampedArrayPrototype%': 'undefined' == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray.prototype,
- '$ %Uint16Array%': 'undefined' == typeof Uint16Array ? void 0 : Uint16Array,
- '$ %Uint16ArrayPrototype%': 'undefined' == typeof Uint16Array ? void 0 : Uint16Array.prototype,
- '$ %Uint32Array%': 'undefined' == typeof Uint32Array ? void 0 : Uint32Array,
- '$ %Uint32ArrayPrototype%': 'undefined' == typeof Uint32Array ? void 0 : Uint32Array.prototype,
- '$ %URIError%': URIError,
- '$ %URIErrorPrototype%': URIError.prototype,
- '$ %WeakMap%': 'undefined' == typeof WeakMap ? void 0 : WeakMap,
- '$ %WeakMapPrototype%': 'undefined' == typeof WeakMap ? void 0 : WeakMap.prototype,
- '$ %WeakSet%': 'undefined' == typeof WeakSet ? void 0 : WeakSet,
- '$ %WeakSetPrototype%': 'undefined' == typeof WeakSet ? void 0 : WeakSet.prototype
- };
- t.exports = function (t, e) {
- if (arguments.length > 1 && 'boolean' != typeof e) throw new TypeError('"allowMissing" argument must be a boolean');
- var n = '$ ' + t;
- if (!(n in c)) throw new SyntaxError('intrinsic ' + t + ' does not exist!');
- if (void 0 === c[n] && !e) throw new TypeError('intrinsic ' + t + ' exists, but is not available. Please file an issue!');
- return c[n]
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = n(4);
- t.exports = r.call(Function.call, Object.prototype.hasOwnProperty)
- },
- function (t, e, n) {
- 'use strict';
- var r = n(9);
- t.exports = function () {
- return String.prototype.trim && '' === ''.trim() ? String.prototype.trim : r
- }
- },
- function (t, e, n) {
- 'use strict';
- (function (t) {
- var r = n(3),
- o = setTimeout;
- function i(t) {
- return Boolean(t && void 0 !== t.length)
- }
- function a() {
- }
- function s(t) {
- if (!(this instanceof s)) throw new TypeError('Promises must be constructed via new');
- if ('function' != typeof t) throw new TypeError('not a function');
- this._state = 0,
- this._handled = !1,
- this._value = void 0,
- this._deferreds = [
- ],
- d(t, this)
- }
- function c(t, e) {
- for (; 3 === t._state; ) t = t._value;
- 0 !== t._state ? (t._handled = !0, s._immediateFn(function () {
- var n = 1 === t._state ? e.onFulfilled : e.onRejected;
- if (null !== n) {
- var r;
- try {
- r = n(t._value)
- } catch (t) {
- return void l(e.promise, t)
- }
- u(e.promise, r)
- } else (1 === t._state ? u : l) (e.promise, t._value)
- })) : t._deferreds.push(e)
- }
- function u(t, e) {
- try {
- if (e === t) throw new TypeError('A promise cannot be resolved with itself.');
- if (e && ('object' == typeof e || 'function' == typeof e)) {
- var n = e.then;
- if (e instanceof s) return t._state = 3,
- t._value = e,
- void f(t);
- if ('function' == typeof n) return void d((r = n, o = e, function () {
- r.apply(o, arguments)
- }), t)
- }
- t._state = 1,
- t._value = e,
- f(t)
- } catch (e) {
- l(t, e)
- }
- var r,
- o
- }
- function l(t, e) {
- t._state = 2,
- t._value = e,
- f(t)
- }
- function f(t) {
- 2 === t._state && 0 === t._deferreds.length && s._immediateFn(function () {
- t._handled || s._unhandledRejectionFn(t._value)
- });
- for (var e = 0, n = t._deferreds.length; e < n; e++) c(t, t._deferreds[e]);
- t._deferreds = null
- }
- function p(t, e, n) {
- this.onFulfilled = 'function' == typeof t ? t : null,
- this.onRejected = 'function' == typeof e ? e : null,
- this.promise = n
- }
- function d(t, e) {
- var n = !1;
- try {
- t(function (t) {
- n || (n = !0, u(e, t))
- }, function (t) {
- n || (n = !0, l(e, t))
- })
- } catch (t) {
- if (n) return;
- n = !0,
- l(e, t)
- }
- }
- s.prototype.catch = function (t) {
- return this.then(null, t)
- },
- s.prototype.then = function (t, e) {
- var n = new this.constructor(a);
- return c(this, new p(t, e, n)),
- n
- },
- s.prototype.finally = r.a,
- s.all = function (t) {
- return new s(function (e, n) {
- if (!i(t)) return n(new TypeError('Promise.all accepts an array'));
- var r = Array.prototype.slice.call(t);
- if (0 === r.length) return e([]);
- var o = r.length;
- function a(t, i) {
- try {
- if (i && ('object' == typeof i || 'function' == typeof i)) {
- var s = i.then;
- if ('function' == typeof s) return void s.call(i, function (e) {
- a(t, e)
- }, n)
- }
- r[t] = i,
- 0 == --o && e(r)
- } catch (t) {
- n(t)
- }
- }
- for (var s = 0; s < r.length; s++) a(s, r[s])
- })
- },
- s.resolve = function (t) {
- return t && 'object' == typeof t && t.constructor === s ? t : new s(function (e) {
- e(t)
- })
- },
- s.reject = function (t) {
- return new s(function (e, n) {
- n(t)
- })
- },
- s.race = function (t) {
- return new s(function (e, n) {
- if (!i(t)) return n(new TypeError('Promise.race accepts an array'));
- for (var r = 0, o = t.length; r < o; r++) s.resolve(t[r]).then(e, n)
- })
- },
- s._immediateFn = 'function' == typeof t && function (e) {
- t(e)
- }
- || function (t) {
- o(t, 0)
- },
- s._unhandledRejectionFn = function (t) {
- 'undefined' != typeof console && console && console.warn('Possible Unhandled Promise Rejection:', t)
- },
- e.a = s
- }).call(this, n(6).setImmediate)
- },
- function (t, e, n) {
- 'use strict';
- var r = n(29),
- o = n(30),
- i = n(31),
- a = n(46);
- function s(t, e, n) {
- var r = t;
- return o(e) ? (n = e, 'string' == typeof t && (r = {
- uri: t
- })) : r = a(e, {
- uri: t
- }),
- r.callback = n,
- r
- }
- function c(t, e, n) {
- return u(e = s(t, e, n))
- }
- function u(t) {
- if (void 0 === t.callback) throw new Error('callback argument missing');
- var e = !1,
- n = function (n, r, o) {
- e || (e = !0, t.callback(n, r, o))
- };
- function r() {
- var t = void 0;
- if (t = l.response ? l.response : l.responseText || function (t) {
- try {
- if ('document' === t.responseType) return t.responseXML;
- var e = t.responseXML && 'parsererror' === t.responseXML.documentElement.nodeName;
- if ('' === t.responseType && !e) return t.responseXML
- } catch (t) {
- }
- return null
- }(l), v) try {
- t = JSON.parse(t)
- } catch (t) {
- }
- return t
- }
- function o(t) {
- return clearTimeout(f),
- t instanceof Error || (t = new Error('' + (t || 'Unknown XMLHttpRequest Error'))),
- t.statusCode = 0,
- n(t, g)
- }
- function a() {
- if (!u) {
- var e;
- clearTimeout(f),
- e = t.useXDR && void 0 === l.status ? 200 : 1223 === l.status ? 204 : l.status;
- var o = g,
- a = null;
- return 0 !== e ? (o = {
- body: r(),
- statusCode: e,
- method: d,
- headers: {
- },
- url: p,
- rawRequest: l
- }, l.getAllResponseHeaders && (o.headers = i(l.getAllResponseHeaders()))) : a = new Error('Internal XMLHttpRequest Error'),
- n(a, o, o.body)
- }
- }
- var s,
- u,
- l = t.xhr || null;
- l || (l = t.cors || t.useXDR ? new c.XDomainRequest : new c.XMLHttpRequest);
- var f,
- p = l.url = t.uri || t.url,
- d = l.method = t.method || 'GET',
- h = t.body || t.data,
- y = l.headers = t.headers || {
- },
- m = !!t.sync,
- v = !1,
- g = {
- body: void 0,
- headers: {
- },
- statusCode: 0,
- method: d,
- url: p,
- rawRequest: l
- };
- if ('json' in t && !1 !== t.json && (v = !0, y.accept || y.Accept || (y.Accept = 'application/json'), 'GET' !== d && 'HEAD' !== d && (y['content-type'] || y['Content-Type'] || (y['Content-Type'] = 'application/json'), h = JSON.stringify(!0 === t.json ? h : t.json))), l.onreadystatechange = function () {
- 4 === l.readyState && setTimeout(a, 0)
- }, l.onload = a, l.onerror = o, l.onprogress = function () {
- }, l.onabort = function () {
- u = !0
- }, l.ontimeout = o, l.open(d, p, !m, t.username, t.password), m || (l.withCredentials = !!t.withCredentials), !m && t.timeout > 0 && (f = setTimeout(function () {
- if (!u) {
- u = !0,
- l.abort('timeout');
- var t = new Error('XMLHttpRequest timeout');
- t.code = 'ETIMEDOUT',
- o(t)
- }
- }, t.timeout)), l.setRequestHeader) for (s in y) y.hasOwnProperty(s) && l.setRequestHeader(s, y[s]);
- else if (t.headers && !function (t) {
- for (var e in t) if (t.hasOwnProperty(e)) return !1;
- return !0
- }(t.headers)) throw new Error('Headers cannot be set on an XDomainRequest object');
- return 'responseType' in t && (l.responseType = t.responseType),
- 'beforeSend' in t && 'function' == typeof t.beforeSend && t.beforeSend(l),
- l.send(h || null),
- l
- }
- t.exports = c,
- t.exports.default = c,
- c.XMLHttpRequest = r.XMLHttpRequest || function () {
- },
- c.XDomainRequest = 'withCredentials' in new c.XMLHttpRequest ? c.XMLHttpRequest : r.XDomainRequest,
- function (t, e) {
- for (var n = 0; n < t.length; n++) e(t[n])
- }(['get',
- 'put',
- 'post',
- 'patch',
- 'head',
- 'delete'], function (t) {
- c['delete' === t ? 'del' : t] = function (e, n, r) {
- return (n = s(e, n, r)).method = t.toUpperCase(),
- u(n)
- }
- })
- },
- function (t, e, n) {
- t.exports = n(47)
- },
- function (t, e, n) {
- 'use strict';
- (function (t) {
- var e = n(13),
- r = n(3),
- o = function () {
- if ('undefined' != typeof self) return self;
- if ('undefined' != typeof window) return window;
- if (void 0 !== t) return t;
- throw new Error('unable to locate global object')
- }();
- 'Promise' in o ? o.Promise.prototype.finally || (o.Promise.prototype.finally = r.a) : o.Promise = e.a
- }).call(this, n(2))
- },
- function (t, e, n) {
- (function (t, e) {
- !function (t, n) {
- 'use strict';
- if (!t.setImmediate) {
- var r,
- o,
- i,
- a,
- s,
- c = 1,
- u = {
- },
- l = !1,
- f = t.document,
- p = Object.getPrototypeOf && Object.getPrototypeOf(t);
- p = p && p.setTimeout ? p : t,
- '[object process]' === {
- }.toString.call(t.process) ? r = function (t) {
- e.nextTick(function () {
- h(t)
- })
- }
- : !function () {
- if (t.postMessage && !t.importScripts) {
- var e = !0,
- n = t.onmessage;
- return t.onmessage = function () {
- e = !1
- },
- t.postMessage('', '*'),
- t.onmessage = n,
- e
- }
- }() ? t.MessageChannel ? ((i = new MessageChannel).port1.onmessage = function (t) {
- h(t.data)
- }, r = function (t) {
- i.port2.postMessage(t)
- }) : f && 'onreadystatechange' in f.createElement('script') ? (o = f.documentElement, r = function (t) {
- var e = f.createElement('script');
- e.onreadystatechange = function () {
- h(t),
- e.onreadystatechange = null,
- o.removeChild(e),
- e = null
- },
- o.appendChild(e)
- }) : r = function (t) {
- setTimeout(h, 0, t)
- }
- : (a = 'setImmediate$' + Math.random() + '$', s = function (e) {
- e.source === t && 'string' == typeof e.data && 0 === e.data.indexOf(a) && h( + e.data.slice(a.length))
- }, t.addEventListener ? t.addEventListener('message', s, !1) : t.attachEvent('onmessage', s), r = function (e) {
- t.postMessage(a + e, '*')
- }),
- p.setImmediate = function (t) {
- 'function' != typeof t && (t = new Function('' + t));
- for (var e = new Array(arguments.length - 1), n = 0; n < e.length; n++) e[n] = arguments[n + 1];
- var o = {
- callback: t,
- args: e
- };
- return u[c] = o,
- r(c),
- c++
- },
- p.clearImmediate = d
- }
- function d(t) {
- delete u[t]
- }
- function h(t) {
- if (l) setTimeout(h, 0, t);
- else {
- var e = u[t];
- if (e) {
- l = !0;
- try {
- !function (t) {
- var e = t.callback,
- r = t.args;
- switch (r.length) {
- case 0:
- e();
- break;
- case 1:
- e(r[0]);
- break;
- case 2:
- e(r[0], r[1]);
- break;
- case 3:
- e(r[0], r[1], r[2]);
- break;
- default:
- e.apply(n, r)
- }
- }(e)
- } finally {
- d(t),
- l = !1
- }
- }
- }
- }
- }('undefined' == typeof self ? void 0 === t ? this : t : self)
- }).call(this, n(2), n(18))
- },
- function (t, e) {
- var n,
- r,
- o = t.exports = {
- };
- function i() {
- throw new Error('setTimeout has not been defined')
- }
- function a() {
- throw new Error('clearTimeout has not been defined')
- }
- function s(t) {
- if (n === setTimeout) return setTimeout(t, 0);
- if ((n === i || !n) && setTimeout) return n = setTimeout,
- setTimeout(t, 0);
- try {
- return n(t, 0)
- } catch (e) {
- try {
- return n.call(null, t, 0)
- } catch (e) {
- return n.call(this, t, 0)
- }
- }
- }
- !function () {
- try {
- n = 'function' == typeof setTimeout ? setTimeout : i
- } catch (t) {
- n = i
- }
- try {
- r = 'function' == typeof clearTimeout ? clearTimeout : a
- } catch (t) {
- r = a
- }
- }();
- var c,
- u = [
- ],
- l = !1,
- f = - 1;
- function p() {
- l && c && (l = !1, c.length ? u = c.concat(u) : f = - 1, u.length && d())
- }
- function d() {
- if (!l) {
- var t = s(p);
- l = !0;
- for (var e = u.length; e; ) {
- for (c = u, u = [
- ]; ++f < e; ) c && c[f].run();
- f = - 1,
- e = u.length
- }
- c = null,
- l = !1,
- function (t) {
- if (r === clearTimeout) return clearTimeout(t);
- if ((r === a || !r) && clearTimeout) return r = clearTimeout,
- clearTimeout(t);
- try {
- r(t)
- } catch (e) {
- try {
- return r.call(null, t)
- } catch (e) {
- return r.call(this, t)
- }
- }
- }(t)
- }
- }
- function h(t, e) {
- this.fun = t,
- this.array = e
- }
- function y() {
- }
- o.nextTick = function (t) {
- var e = new Array(arguments.length - 1);
- if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
- u.push(new h(t, e)),
- 1 !== u.length || l || s(d)
- },
- h.prototype.run = function () {
- this.fun.apply(null, this.array)
- },
- o.title = 'browser',
- o.browser = !0,
- o.env = {
- },
- o.argv = [
- ],
- o.version = '',
- o.versions = {
- },
- o.on = y,
- o.addListener = y,
- o.once = y,
- o.off = y,
- o.removeListener = y,
- o.removeAllListeners = y,
- o.emit = y,
- o.prependListener = y,
- o.prependOnceListener = y,
- o.listeners = function (t) {
- return []
- },
- o.binding = function (t) {
- throw new Error('process.binding is not supported')
- },
- o.cwd = function () {
- return '/'
- },
- o.chdir = function (t) {
- throw new Error('process.chdir is not supported')
- },
- o.umask = function () {
- return 0
- }
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- },
- function (t, e, n) {
- (function (e) {
- var n;
- n = 'undefined' != typeof window ? window : void 0 !== e ? e : 'undefined' != typeof self ? self : {
- },
- t.exports = n
- }).call(this, n(2))
- },
- function (t, e) {
- t.exports = function (t) {
- var e = n.call(t);
- return '[object Function]' === e || 'function' == typeof t && '[object RegExp]' !== e || 'undefined' != typeof window && (t === window.setTimeout || t === window.alert || t === window.confirm || t === window.prompt)
- };
- var n = Object.prototype.toString
- },
- function (t, e, n) {
- var r = n(32),
- o = n(45);
- t.exports = function (t) {
- if (!t) return {
- };
- var e = {
- };
- return o(r(t).split('\n'), function (t) {
- var n,
- o = t.indexOf(':'),
- i = r(t.slice(0, o)).toLowerCase(),
- a = r(t.slice(o + 1));
- void 0 === e[i] ? e[i] = a : (n = e[i], '[object Array]' === Object.prototype.toString.call(n) ? e[i].push(a) : e[i] = [
- e[i],
- a
- ])
- }),
- e
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = n(4),
- o = n(7),
- i = n(9),
- a = n(12),
- s = n(44),
- c = r.call(Function.call, a());
- o(c, {
- getPolyfill: a,
- implementation: i,
- shim: s
- }),
- t.exports = c
- },
- function (t, e, n) {
- 'use strict';
- var r = 'Function.prototype.bind called on incompatible ',
- o = Array.prototype.slice,
- i = Object.prototype.toString;
- t.exports = function (t) {
- var e = this;
- if ('function' != typeof e || '[object Function]' !== i.call(e)) throw new TypeError(r + e);
- for (var n, a = o.call(arguments, 1), s = function () {
- if (this instanceof n) {
- var r = e.apply(this, a.concat(o.call(arguments)));
- return Object(r) === r ? r : this
- }
- return e.apply(t, a.concat(o.call(arguments)))
- }, c = Math.max(0, e.length - a.length), u = [
- ], l = 0; l < c; l++) u.push('$' + l);
- if (n = Function('binder', 'return function (' + u.join(',') + '){ return binder.apply(this,arguments); }') (s), e.prototype) {
- var f = function () {
- };
- f.prototype = e.prototype,
- n.prototype = new f,
- f.prototype = null
- }
- return n
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = Array.prototype.slice,
- o = n(8),
- i = Object.keys,
- a = i ? function (t) {
- return i(t)
- }
- : n(35),
- s = Object.keys;
- a.shim = function () {
- Object.keys ? function () {
- var t = Object.keys(arguments);
- return t && t.length === arguments.length
- }(1, 2) || (Object.keys = function (t) {
- return o(t) ? s(r.call(t)) : s(t)
- }) : Object.keys = a;
- return Object.keys || a
- },
- t.exports = a
- },
- function (t, e, n) {
- 'use strict';
- var r;
- if (!Object.keys) {
- var o = Object.prototype.hasOwnProperty,
- i = Object.prototype.toString,
- a = n(8),
- s = Object.prototype.propertyIsEnumerable,
- c = !s.call({
- toString: null
- }, 'toString'),
- u = s.call(function () {
- }, 'prototype'),
- l = [
- 'toString',
- 'toLocaleString',
- 'valueOf',
- 'hasOwnProperty',
- 'isPrototypeOf',
- 'propertyIsEnumerable',
- 'constructor'
- ],
- f = function (t) {
- var e = t.constructor;
- return e && e.prototype === t
- },
- p = {
- $applicationCache: !0,
- $console: !0,
- $external: !0,
- $frame: !0,
- $frameElement: !0,
- $frames: !0,
- $innerHeight: !0,
- $innerWidth: !0,
- $onmozfullscreenchange: !0,
- $onmozfullscreenerror: !0,
- $outerHeight: !0,
- $outerWidth: !0,
- $pageXOffset: !0,
- $pageYOffset: !0,
- $parent: !0,
- $scrollLeft: !0,
- $scrollTop: !0,
- $scrollX: !0,
- $scrollY: !0,
- $self: !0,
- $webkitIndexedDB: !0,
- $webkitStorageInfo: !0,
- $window: !0
- },
- d = function () {
- if ('undefined' == typeof window) return !1;
- for (var t in window) try {
- if (!p['$' + t] && o.call(window, t) && null !== window[t] && 'object' == typeof window[t]) try {
- f(window[t])
- } catch (t) {
- return !0
- }
- } catch (t) {
- return !0
- }
- return !1
- }();
- r = function (t) {
- var e = null !== t && 'object' == typeof t,
- n = '[object Function]' === i.call(t),
- r = a(t),
- s = e && '[object String]' === i.call(t),
- p = [
- ];
- if (!e && !n && !r) throw new TypeError('Object.keys called on a non-object');
- var h = u && n;
- if (s && t.length > 0 && !o.call(t, 0)) for (var y = 0; y < t.length; ++y) p.push(String(y));
- if (r && t.length > 0) for (var m = 0; m < t.length; ++m) p.push(String(m));
- else for (var v in t) h && 'prototype' === v || !o.call(t, v) || p.push(String(v));
- if (c) for (var g = function (t) {
- if ('undefined' == typeof window || !d) return f(t);
- try {
- return f(t)
- } catch (t) {
- return !1
- }
- }(t), b = 0; b < l.length; ++b) g && 'constructor' === l[b] || !o.call(t, l[b]) || p.push(l[b]);
- return p
- }
- }
- t.exports = r
- },
- function (t, e, n) {
- 'use strict';
- var r = n(10),
- o = r('%Object%'),
- i = r('%TypeError%'),
- a = r('%String%'),
- s = n(37),
- c = n(38),
- u = n(39),
- l = n(40),
- f = n(41),
- p = n(5),
- d = n(42),
- h = n(11),
- y = {
- ToPrimitive: d,
- ToBoolean: function (t) {
- return !!t
- },
- ToNumber: function (t) {
- return + t
- },
- ToInteger: function (t) {
- var e = this.ToNumber(t);
- return c(e) ? 0 : 0 !== e && u(e) ? l(e) * Math.floor(Math.abs(e)) : e
- },
- ToInt32: function (t) {
- return this.ToNumber(t) >> 0
- },
- ToUint32: function (t) {
- return this.ToNumber(t) >>> 0
- },
- ToUint16: function (t) {
- var e = this.ToNumber(t);
- if (c(e) || 0 === e || !u(e)) return 0;
- var n = l(e) * Math.floor(Math.abs(e));
- return f(n, 65536)
- },
- ToString: function (t) {
- return a(t)
- },
- ToObject: function (t) {
- return this.CheckObjectCoercible(t),
- o(t)
- },
- CheckObjectCoercible: function (t, e) {
- if (null == t) throw new i(e || 'Cannot call method on ' + t);
- return t
- },
- IsCallable: p,
- SameValue: function (t, e) {
- return t === e ? 0 !== t || 1 / t == 1 / e : c(t) && c(e)
- },
- Type: function (t) {
- return null === t ? 'Null' : void 0 === t ? 'Undefined' : 'function' == typeof t || 'object' == typeof t ? 'Object' : 'number' == typeof t ? 'Number' : 'boolean' == typeof t ? 'Boolean' : 'string' == typeof t ? 'String' : void 0
- },
- IsPropertyDescriptor: function (t) {
- if ('Object' !== this.Type(t)) return !1;
- var e = {
- '[[Configurable]]': !0,
- '[[Enumerable]]': !0,
- '[[Get]]': !0,
- '[[Set]]': !0,
- '[[Value]]': !0,
- '[[Writable]]': !0
- };
- for (var n in t) if (h(t, n) && !e[n]) return !1;
- var r = h(t, '[[Value]]'),
- o = h(t, '[[Get]]') || h(t, '[[Set]]');
- if (r && o) throw new i('Property Descriptors may not be both accessor and data descriptors');
- return !0
- },
- IsAccessorDescriptor: function (t) {
- return void 0 !== t && (s(this, 'Property Descriptor', 'Desc', t), !(!h(t, '[[Get]]') && !h(t, '[[Set]]')))
- },
- IsDataDescriptor: function (t) {
- return void 0 !== t && (s(this, 'Property Descriptor', 'Desc', t), !(!h(t, '[[Value]]') && !h(t, '[[Writable]]')))
- },
- IsGenericDescriptor: function (t) {
- return void 0 !== t && (s(this, 'Property Descriptor', 'Desc', t), !this.IsAccessorDescriptor(t) && !this.IsDataDescriptor(t))
- },
- FromPropertyDescriptor: function (t) {
- if (void 0 === t) return t;
- if (s(this, 'Property Descriptor', 'Desc', t), this.IsDataDescriptor(t)) return {
- value: t['[[Value]]'],
- writable: !!t['[[Writable]]'],
- enumerable: !!t['[[Enumerable]]'],
- configurable: !!t['[[Configurable]]']
- };
- if (this.IsAccessorDescriptor(t)) return {
- get: t['[[Get]]'],
- set: t['[[Set]]'],
- enumerable: !!t['[[Enumerable]]'],
- configurable: !!t['[[Configurable]]']
- };
- throw new i('FromPropertyDescriptor must be called with a fully populated Property Descriptor')
- },
- ToPropertyDescriptor: function (t) {
- if ('Object' !== this.Type(t)) throw new i('ToPropertyDescriptor requires an object');
- var e = {
- };
- if (h(t, 'enumerable') && (e['[[Enumerable]]'] = this.ToBoolean(t.enumerable)), h(t, 'configurable') && (e['[[Configurable]]'] = this.ToBoolean(t.configurable)), h(t, 'value') && (e['[[Value]]'] = t.value), h(t, 'writable') && (e['[[Writable]]'] = this.ToBoolean(t.writable)), h(t, 'get')) {
- var n = t.get;
- if (void 0 !== n && !this.IsCallable(n)) throw new TypeError('getter must be a function');
- e['[[Get]]'] = n
- }
- if (h(t, 'set')) {
- var r = t.set;
- if (void 0 !== r && !this.IsCallable(r)) throw new i('setter must be a function');
- e['[[Set]]'] = r
- }
- if ((h(e, '[[Get]]') || h(e, '[[Set]]')) && (h(e, '[[Value]]') || h(e, '[[Writable]]'))) throw new i('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
- return e
- }
- };
- t.exports = y
- },
- function (t, e, n) {
- 'use strict';
- var r = n(10),
- o = r('%TypeError%'),
- i = r('%SyntaxError%'),
- a = n(11),
- s = {
- 'Property Descriptor': function (t, e) {
- if ('Object' !== t.Type(e)) return !1;
- var n = {
- '[[Configurable]]': !0,
- '[[Enumerable]]': !0,
- '[[Get]]': !0,
- '[[Set]]': !0,
- '[[Value]]': !0,
- '[[Writable]]': !0
- };
- for (var r in e) if (a(e, r) && !n[r]) return !1;
- var i = a(e, '[[Value]]'),
- s = a(e, '[[Get]]') || a(e, '[[Set]]');
- if (i && s) throw new o('Property Descriptors may not be both accessor and data descriptors');
- return !0
- }
- };
- t.exports = function (t, e, n, r) {
- var a = s[e];
- if ('function' != typeof a) throw new i('unknown record type: ' + e);
- if (!a(t, r)) throw new o(n + ' must be a ' + e);
- console.log(a(t, r), r)
- }
- },
- function (t, e) {
- t.exports = Number.isNaN || function (t) {
- return t != t
- }
- },
- function (t, e) {
- var n = Number.isNaN || function (t) {
- return t != t
- };
- t.exports = Number.isFinite || function (t) {
- return 'number' == typeof t && !n(t) && t !== 1 / 0 && t !== - 1 / 0
- }
- },
- function (t, e) {
- t.exports = function (t) {
- return t >= 0 ? 1 : - 1
- }
- },
- function (t, e) {
- t.exports = function (t, e) {
- var n = t % e;
- return Math.floor(n >= 0 ? n : n + e)
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = Object.prototype.toString,
- o = n(43),
- i = n(5),
- a = function (t) {
- var e;
- if ((e = arguments.length > 1 ? arguments[1] : '[object Date]' === r.call(t) ? String : Number) === String || e === Number) {
- var n,
- a,
- s = e === String ? [
- 'toString',
- 'valueOf'
- ] : [
- 'valueOf',
- 'toString'
- ];
- for (a = 0; a < s.length; ++a) if (i(t[s[a]]) && (n = t[s[a]](), o(n))) return n;
- throw new TypeError('No default value')
- }
- throw new TypeError('invalid [[DefaultValue]] hint supplied')
- };
- t.exports = function (t) {
- return o(t) ? t : arguments.length > 1 ? a(t, arguments[1]) : a(t)
- }
- },
- function (t, e) {
- t.exports = function (t) {
- return null === t || 'function' != typeof t && 'object' != typeof t
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = n(7),
- o = n(12);
- t.exports = function () {
- var t = o();
- return r(String.prototype, {
- trim: t
- }, {
- trim: function () {
- return String.prototype.trim !== t
- }
- }),
- t
- }
- },
- function (t, e, n) {
- 'use strict';
- var r = n(5),
- o = Object.prototype.toString,
- i = Object.prototype.hasOwnProperty,
- a = function (t, e, n) {
- for (var r = 0, o = t.length; r < o; r++) i.call(t, r) && (null == n ? e(t[r], r, t) : e.call(n, t[r], r, t))
- },
- s = function (t, e, n) {
- for (var r = 0, o = t.length; r < o; r++) null == n ? e(t.charAt(r), r, t) : e.call(n, t.charAt(r), r, t)
- },
- c = function (t, e, n) {
- for (var r in t) i.call(t, r) && (null == n ? e(t[r], r, t) : e.call(n, t[r], r, t))
- };
- t.exports = function (t, e, n) {
- if (!r(e)) throw new TypeError('iterator must be a function');
- var i;
- arguments.length >= 3 && (i = n),
- '[object Array]' === o.call(t) ? a(t, e, i) : 'string' == typeof t ? s(t, e, i) : c(t, e, i)
- }
- },
- function (t, e) {
- t.exports = function () {
- for (var t = {
- }, e = 0; e < arguments.length; e++) {
- var r = arguments[e];
- for (var o in r) n.call(r, o) && (t[o] = r[o])
- }
- return t
- };
- var n = Object.prototype.hasOwnProperty
- },
- function (t, e, n) {
- 'use strict';
- n.r(e);
- n(16);
- var r = n(0);
- var o,
- i = (o = function (t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (t, e)
- }, function (t, e) {
- function n() {
- this.constructor = t
- }
- o(t, e),
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
- });
- function a(t, e) {
- for (var n in t) if (t[n] !== e[n]) return !1;
- for (var n in e) if (!(n in t)) return !1;
- return !0
- }
- var s = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return i(e, t),
- e.prototype.shouldComponentUpdate = function (t, e) {
- return !(a(t, this.props) && a(e, this.state))
- },
- e
- }(r.Component),
- c = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }(),
- u = function (t) {
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- return e.onStoreStateChange = function (t) {
- return e.storeStateDidChange(t)
- },
- e
- }
- return c(e, t),
- e.prototype.componentWillMount = function () {
- this.props.store.subscribe(this.onStoreStateChange)
- },
- e.prototype.componentWillUnmount = function () {
- this.props.store.unsubscribe(this.onStoreStateChange)
- },
- e
- }(s),
- l = (n(28), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }()),
- f = [
- 'bg1',
- 'bg2',
- 'bg3',
- 'bg4',
- 'bg5',
- 'bg6',
- 'bg7'
- ],
- p = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return l(e, t),
- e.prototype.componentWillMount = function () {
- var e = this;
- t.prototype.componentWillMount.call(this),
- this.detectWebp().then(function (t) {
- return e.getAndSetImageClass(t)
- })
- },
- e.prototype.detectWebp = function () {
- return new Promise(function (t) {
- var e = new Image;
- e.src = 'data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA',
- e.onload = e.onerror = function () {
- document.body.removeChild(e),
- t(2 === e.height)
- },
- document.body.appendChild(e)
- })
- },
- e.prototype.getStorage = function () {
- return localStorage
- },
- e.prototype.storeIndex = function (t) {
- this.getStorage().setItem('CARROUSEL_INDEX', t.toString())
- },
- e.prototype.getIndex = function () {
- return parseInt(this.getStorage().getItem('CARROUSEL_INDEX'))
- },
- e.prototype.storeStateDidChange = function (t) {
- var e = 'resetpassword' === t.currentChallenge;
- this.setState({
- showForgotPasswordImage: e,
- renderForgotPasswordImage: this.state.renderForgotPasswordImage || e
- })
- },
- e.prototype.getAndSetImageClass = function (t) {
- var e = this.getIndex(),
- n = f.length - 1;
- isNaN(e) || e < 0 || e > n ? e = Math.round(Math.random() * n) : ++e > n && (e = 0),
- this.storeIndex(e),
- this.setState({
- currentImage: f[e] + (t ? '_webp' : ''),
- forgotPasswordImage: 'bg_forgot_password' + (t ? '_webp' : '')
- })
- },
- e.prototype.render = function (t, e) {
- var n = e.currentImage,
- o = e.forgotPasswordImage,
- i = e.showForgotPasswordImage,
- a = 'splash-container ' + (n || ''),
- s = 'splash-container ' + (e.renderForgotPasswordImage && o || '');
- return Object(r.h) ('div', null, Object(r.h) ('div', {
- class : a
- }), Object(r.h) ('div', {
- class : s,
- style: 'opacity: ' + (i ? 1 : 0)
- }))
- },
- e
- }(u),
- d = '63',
- h = {
- Unknown: 'Er is een onbekende fout opgetreden.',
- NetworkError: 'Er is een netwerkfout opgetreden.',
- UserHasNoAccess: 'Ongeldig account of verkeerde gebruikersnaam.',
- UserIsBlocked: 'Dit account is geblokkeerd.',
- UserIsNotActive: 'Dit account is niet actief.',
- UnableToLoadSession: 'Geen sessie gevonden.',
- InvalidUsername: 'Ongeldig account of verkeerde gebruikersnaam.',
- InvalidPassword: 'Ongeldig account of verkeerde combinatie van gebruikersnaam en wachtwoord.',
- InvalidUsernameOrPassword: 'Ongeldig account of verkeerde combinatie van gebruikersnaam en wachtwoord.',
- InvalidChallenge: 'Ongeldige stap in het inlogproces.',
- InvalidChallengeValue: 'Ongeldige waarde.',
- InvalidCode: 'Ongeldige code.',
- IncorrectToken: 'Ongeldige code.',
- NoUsername: 'Gebruikersnaam is niet ingevuld.',
- NoPassword: 'Wachtwoord is niet ingevuld.',
- SamePassword: 'Wachtwoord moet ongelijk aan huidige wachtwoord zijn.',
- VerifyPassword: 'Het verificatie wachtwoord moet gelijk aan het nieuwe wachtwoord zijn.',
- ContactInfoNotFound: 'E-mailadres onbekend.',
- ProfileNotFound: 'Gebruiker niet gevonden.',
- NoSchoolSelected: 'Er is geen school gekozen.',
- MinimumSearchLengthNotMet: 'Type minimaal 3 letters om je school te zoeken.',
- ResetPasswordCodeAlreadyRequested: 'Er is al een code verstuurd.',
- MailNotSent: 'Er kan geen e-mail worden gestuurd.',
- NoCode: 'De code is niet ingevuld.',
- ContactInfoVerificationNotFound: 'E-mailadres onbekend.',
- ContactInfoVerificationExpired: 'E-mailadres onbekend.',
- ContactInfoVerificationContactInfoNotFound: 'E-mailadres onbekend.',
- ContactInfoNotVerfied: 'E-mailadres onbekend.',
- NoPasswordChallenge: 'Er is een onbekende fout opgetreden.',
- PasswordDoesNotMeetPolicy: 'Het wachtwoord voldoet niet aan de voorwaarden.',
- NewPasswordEqualsOldPassword: 'Wachtwoord moet ongelijk aan huidige wachtwoord zijn.',
- DeviceLockedOut: 'Het account op dit apparaat is 10 minuten geblokkeerd wegens overschrijding van het maximale aantal foutieve inlogpogingen.',
- UserLockedOut: 'Het account is 10 minuten geblokkeerd wegens overschrijding van het maximale aantal foutieve inlogpogingen.',
- Offline: 'U bent offline. Controleer uw internetverbinding.',
- InvalidTenant: 'Ongeldige school.',
- NoAllowedTenants: 'Deze applicatie heeft nog geen toegang tot een school.',
- TenantNotAllowed: 'Deze applicatie heeft geen toegang tot de gekozen school.',
- AntiforgeryValidation: 'Er is een netwerkfout opgetreden. Sluit uw browser en probeer opnieuw in te loggen.'
- };
- function y(t) {
- return h[t] ? h[t] : h.Unknown
- }
- n(25);
- var m = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }(),
- v = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return m(e, t),
- e.prototype.render = function (t) {
- var e = t.children;
- return Object(r.h) ('div', {
- class : 'error-message'
- }, e)
- },
- e
- }(r.Component),
- g = v,
- b = n(1),
- w = {
- prefix: 'fas',
- iconName: 'arrow-circle-left',
- icon: [
- 512,
- 512,
- [
- ],
- 'f0a8',
- 'M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z'
- ]
- },
- _ = {
- prefix: 'fas',
- iconName: 'eye',
- icon: [
- 576,
- 512,
- [
- ],
- 'f06e',
- 'M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z'
- ]
- },
- O = {
- prefix: 'fas',
- iconName: 'eye-slash',
- icon: [
- 640,
- 512,
- [
- ],
- 'f070',
- 'M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z'
- ]
- },
- j = {
- prefix: 'fas',
- iconName: 'key',
- icon: [
- 512,
- 512,
- [
- ],
- 'f084',
- 'M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z'
- ]
- },
- S = {
- prefix: 'fas',
- iconName: 'lock',
- icon: [
- 448,
- 512,
- [
- ],
- 'f023',
- 'M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z'
- ]
- },
- C = {
- prefix: 'fas',
- iconName: 'question-circle',
- icon: [
- 512,
- 512,
- [
- ],
- 'f059',
- 'M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z'
- ]
- },
- P = {
- prefix: 'fas',
- iconName: 'school',
- icon: [
- 640,
- 512,
- [
- ],
- 'f549',
- 'M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z'
- ]
- },
- k = {
- prefix: 'fas',
- iconName: 'spinner-third',
- icon: [
- 512,
- 512,
- [
- ],
- 'f3f4',
- 'M456.433 371.72l-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'
- ]
- },
- E = {
- prefix: 'fas',
- iconName: 'user-circle',
- icon: [
- 496,
- 512,
- [
- ],
- 'f2bd',
- 'M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z'
- ]
- },
- x = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }(),
- I = function () {
- return (I = Object.assign || function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
- return t
- }).apply(this, arguments)
- },
- A = function (t) {
- function e() {
- return t.call(this) || this
- }
- return x(e, t),
- e.prototype.render = function (t) {
- var e = {
- prefix: t.prefix || 'fas',
- iconName: t.icon
- },
- n = Object(b.a) (e);
- if (n && n.abstract && 1 === n.abstract.length) {
- var o = function (e, n) {
- var i = e.children ? e.children.map(function (t) {
- return o(t)
- }) : void 0,
- a = I({
- }, e.attributes);
- return n && t.class && (a.class = a.class ? a.class + ' ' + t.class : t.class ),
- Object(r.h) (e.tag, a, i)
- };
- return o(n.abstract[0], !0)
- }
- },
- e
- }(s),
- T = (n(27), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }());
- b.b.add(k);
- var R = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return T(e, t),
- e.prototype.render = function (t) {
- var e = t.children;
- return Object(r.h) ('div', {
- class : 'loading-message'
- }, Object(r.h) (A, {
- class : 'fa-spin',
- icon: 'spinner-third'
- }), Object(r.h) ('span', null, e))
- },
- e
- }(r.Component),
- N = (n(23), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }());
- b.b.add(k);
- var V = function (t) {
- function e() {
- return t.call(this) || this
- }
- return N(e, t),
- e.prototype.render = function (t) {
- var e = t.type || 'button',
- n = [
- 'dna-btn'
- ];
- return n.push(t.style || 'dna-btn-primary'),
- t.class && n.push(t.class ),
- Object(r.h) ('button', {
- tabIndex: t.tabIndex,
- id: t.id,
- onClick: function (e) {
- return t.onClick ? t.onClick(e) : void 0
- },
- class : n.join(' '),
- disabled: t.loading || t.disabled,
- type: e
- }, t.loading && Object(r.h) (A, {
- class : 'btn-spinner fa-spin',
- icon: 'spinner-third'
- }), t.children)
- },
- e
- }(r.Component),
- F = (n(22), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }()),
- $ = function () {
- return ($ = Object.assign || function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
- return t
- }).apply(this, arguments)
- };
- b.b.add(O, _, k);
- var M = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return F(e, t),
- e.prototype.componentDidMount = function () {
- this.props.autoFocus && this.setFocus()
- },
- e.prototype.getDocument = function () {
- return document
- },
- e.prototype.onBlur = function () {
- this.setState({
- hasFocus: !1
- })
- },
- e.prototype.onFocus = function () {
- this.setState({
- hasFocus: !0
- })
- },
- e.prototype.onKeyDown = function (t) {
- this.props.onKeyDown && this.props.onKeyDown(t)
- },
- e.prototype.onKeyPress = function (t) {
- if ('number' === this.props.type) {
- var e = t.which ? t.which : t.keyCode;
- e && e > 31 && (e < 48 || e > 57) && (t.preventDefault(), t.stopPropagation())
- }
- },
- e.prototype.onInput = function (t) {
- var e = t.target.value;
- this.state.value !== e && (this.setState({
- value: e
- }), this.props.onValueChange && this.props.onValueChange(e))
- },
- e.prototype.setFocus = function () {
- this.inputRef && (this.inputRef.focus(), this.inputRef.scrollIntoView({
- behavior: 'smooth',
- block: 'nearest'
- }), this.props.type && 'text' !== this.props.type && 'password' !== this.props.type || this.inputRef.setSelectionRange(999, 999))
- },
- e.prototype.onRevealPassword = function () {
- this.setState({
- revealPassword: !this.state.revealPassword
- }),
- this.forceUpdate(),
- this.setFocus()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = e.hasFocus,
- i = e.value,
- a = e.revealPassword,
- s = [
- 'dna-input-group'
- ];
- o && s.push('dna-input-group-focused'),
- t.invalid && s.push('dna-input-group-invalid'),
- t.disabled && s.push('dna-input-group-disabled');
- var c = a ? 'text' : t.type || 'text',
- u = {
- disabled: t.disabled,
- id: t.id,
- value: i,
- placeholder: t.placeholder,
- autofocus: t.autoFocus,
- spellcheck: !1,
- autocapitalize: 'none',
- autoCorrect: 'off',
- autocomplete: t.autoCompleteEnabled ? 'on' : 'off',
- class : 'dna-input',
- type: c
- };
- return Object(r.h) ('div', {
- className: s.join(' ')
- }, t.prefixIcon && Object(r.h) ('div', {
- class : 'dna-input-group-prefix'
- }, Object(r.h) (A, {
- icon: t.prefixIcon
- })), Object(r.h) ('input', $({
- onBlur: function () {
- return n.onBlur()
- },
- onFocus: function () {
- return n.onFocus()
- },
- onInput: function (t) {
- return n.onInput(t)
- },
- onKeyDown: function (t) {
- return n.onKeyDown(t)
- },
- onKeyPress: function (t) {
- return n.onKeyPress(t)
- },
- ref: function (t) {
- return n.inputRef = t
- }
- }, u)), 'password' === t.type && Object(r.h) (V, {
- onClick: function () {
- return n.onRevealPassword()
- },
- tabIndex: - 1,
- class : 'input-password-eye dna-input-group-suffix',
- type: 'button',
- style: 'dna-btn-icon-primary'
- }, Object(r.h) (A, {
- icon: a ? 'eye' : 'eye-slash'
- })), t.loading && 'password' !== t.type && Object(r.h) (A, {
- class : 'input-spinner dna-input-group-suffix fa-spin',
- icon: 'spinner-third'
- }))
- },
- e
- }(s),
- D = new (function () {
- function t() {
- }
- return t.prototype.getGreeting = function () {
- var t = (new Date).getHours();
- return t < 6 ? 'Goedenacht' : t > 5 && t < 12 ? 'Goedemorgen' : t > 11 && t < 18 ? 'Goedemiddag' : 'Goedenavond'
- },
- t
- }()),
- U = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }(),
- z = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.state = {
- greeting: e.getGreeting()
- },
- e
- }
- return U(e, t),
- e.prototype.componentDidMount = function () {
- var t = this;
- this.greetingTimer = this.getWindow().setInterval(function () {
- t.updateGreeting()
- }, 10000)
- },
- e.prototype.componentWillUnmount = function () {
- this.getWindow().clearInterval(this.greetingTimer)
- },
- e.prototype.updateGreeting = function () {
- var t = this.getGreeting();
- t !== this.state.greeting && this.setState({
- greeting: t
- })
- },
- e.prototype.getGreeting = function () {
- return D.getGreeting()
- },
- e.prototype.getWindow = function () {
- return window
- },
- e.prototype.render = function (t, e) {
- var n = t.value,
- o = e.greeting;
- return Object(r.h) ('h1', null, n || o + ',')
- },
- e
- }(s),
- L = (n(21), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }());
- b.b.add(P);
- var W = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.state = {
- search: '',
- tenantSearchResults: [
- ],
- tenantSearchLoading: !1,
- searchError: void 0,
- selectedIndex: 0,
- loading: !1
- },
- e
- }
- return L(e, t),
- e.prototype.storeStateDidChange = function (t) {
- var e = this.state.tenantSearchResults !== t.tenantSearchResults;
- this.setState({
- loading: t.loading,
- error: t.error,
- tenantSearchResults: t.tenantSearchResults,
- tenantSearchLoading: t.tenantSearchLoading,
- selectedIndex: e ? 0 : this.state.selectedIndex
- })
- },
- e.prototype.onResultClick = function (t) {
- this.state.loading || (this.setState({
- selectedIndex: t
- }), this.onSubmit())
- },
- e.prototype.onSubmit = function (t) {
- var e = this.state.tenantSearchResults[this.state.selectedIndex];
- return t && t.preventDefault(),
- this.state.search.length < 3 ? this.setState({
- searchError: 'MinimumSearchLengthNotMet'
- }) : e ? void this.props.store.submitTenant(e.id) : this.setState({
- searchError: 'NoSchoolSelected'
- })
- },
- e.prototype.onSearchChange = function (t) {
- t = t.trim(),
- this.setState({
- search: t,
- searchError: void 0
- }),
- this.props.store.searchTenants(t)
- },
- e.prototype.onKeyDown = function (t) {
- 38 !== t.keyCode && 40 !== t.keyCode || t.preventDefault(),
- 38 === t.keyCode && this.state.selectedIndex > 0 && this.setState({
- selectedIndex: this.state.selectedIndex - 1
- }),
- 40 === t.keyCode && this.state.selectedIndex < this.state.tenantSearchResults.length - 1 && this.state.selectedIndex < this.state.tenantSearchResults.length - 1 && this.setState({
- selectedIndex: this.state.selectedIndex + 1
- })
- },
- e.prototype.renderResults = function () {
- var t = this;
- this.selectedElementRef = void 0;
- var e = this.state.tenantSearchResults.map(function (e, n) {
- return Object(r.h) ('div', {
- ref: function (e) {
- return n === t.state.selectedIndex ? t.selectedElementRef = e : void 0
- },
- class : n === t.state.selectedIndex ? 'selected input-drop-down-list-item' : 'input-drop-down-list-item',
- onClick: function () {
- return t.onResultClick(n)
- }
- }, e.displayName)
- });
- return e.length > 0 ? Object(r.h) ('div', {
- class : 'input-drop-down-container'
- }, Object(r.h) ('div', {
- class : 'input-drop-down-list'
- }, e)) : this.showNoResults ? Object(r.h) ('div', {
- class : 'input-drop-down-container'
- }, Object(r.h) ('div', {
- class : 'input-drop-down-list'
- }, Object(r.h) ('div', {
- class : 'input-drop-down-no-results'
- }, 'Geen resultaten gevonden'))) : void 0
- },
- Object.defineProperty(e.prototype, 'showNoResults', {
- get: function () {
- return !this.state.tenantSearchLoading && this.state.search.length > 2
- },
- enumerable: !0,
- configurable: !0
- }),
- e.prototype.componentDidUpdate = function () {
- this.selectedElementRef && this.selectedElementRef.scrollIntoView(!1)
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = e.searchError,
- i = e.error,
- a = e.tenantSearchResults,
- s = e.tenantSearchLoading,
- c = e.loading,
- u = (e.search, o || i),
- l = a.length > 0 || this.showNoResults;
- return Object(r.h) ('form', {
- class : 'dna-form',
- onSubmit: function (t) {
- return n.onSubmit(t)
- },
- autocomplete: 'off'
- }, Object(r.h) (z, null), Object(r.h) ('h2', null, 'Kies je school om in te loggen.'), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, u && l && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(u)), Object(r.h) (M, {
- id: 'scholenkiezer_value',
- disabled: c,
- loading: s || c,
- prefixIcon: 'school',
- autoFocus: !0,
- onKeyDown: function (t) {
- return n.onKeyDown(t)
- },
- onValueChange: function (t) {
- return n.onSearchChange(t)
- },
- invalid: !!i,
- placeholder: 'Typ je schoolnaam'
- }), u && !l && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(u))), !c && this.renderResults())
- },
- e
- }(u),
- B = (n(24), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }()),
- H = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return B(e, t),
- e.prototype.onClick = function (t) {
- t.preventDefault(),
- this.props.disabled || this.props.onChange()
- },
- e.prototype.render = function (t) {
- var e = this;
- return Object(r.h) ('div', {
- id: t.id,
- class : 'completed-challenge'
- }, Object(r.h) ('div', {
- class : 'completed-challenge-icon'
- }, Object(r.h) (A, {
- icon: t.icon
- })), Object(r.h) ('div', {
- class : 'completed-challenge-label'
- }, t.label), t.canChange && Object(r.h) ('a', {
- class : t.disabled ? 'disabled' : '',
- href: '#',
- onClick: function (t) {
- return e.onClick(t)
- }
- }, 'wijzig'))
- },
- e
- }(s),
- G = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(P, E);
- var X = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return G(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- tenantname: t.tenantname,
- username: t.username,
- showResetUsername: this.props.store.canShowResetUser(),
- showResetTenant: this.props.store.canShowResetTenant(),
- loading: t.loading
- })
- },
- e.prototype.onResetTenant = function () {
- this.props.store.resetTenant()
- },
- e.prototype.onResetUser = function () {
- this.props.store.resetUser()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = e.username,
- i = e.tenantname,
- a = e.showResetUsername,
- s = e.showResetTenant,
- c = e.loading;
- return Object(r.h) ('div', {
- class : 'account-options'
- }, i && Object(r.h) (H, {
- id: 'tenant_options',
- icon: 'school',
- canChange: s,
- label: i,
- disabled: c,
- onChange: function () {
- return n.onResetTenant()
- }
- }), o && Object(r.h) (H, {
- id: 'username_options',
- icon: 'user-circle',
- canChange: a,
- label: o,
- disabled: c,
- onChange: function () {
- return n.onResetUser()
- }
- }))
- },
- e
- }(u),
- q = function () {
- function t(t, e) {
- this._isValid = t,
- this._error = e
- }
- return Object.defineProperty(t.prototype, 'isValid', {
- get: function () {
- return this._isValid
- },
- enumerable: !0,
- configurable: !0
- }),
- Object.defineProperty(t.prototype, 'error', {
- get: function () {
- return this._error
- },
- enumerable: !0,
- configurable: !0
- }),
- t.createValidResult = function () {
- return new t(!0)
- },
- t.createInvalidResult = function (e) {
- return new t(!1, e)
- },
- t
- }();
- var K = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(E);
- var J = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.usernameInputRef = void 0,
- e.state = {
- username: '',
- loading: !1
- },
- e
- }
- return K(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error
- })
- },
- e.prototype.setFocus = function () {
- this.usernameInputRef && this.usernameInputRef.setFocus && this.usernameInputRef.setFocus()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n,
- r = (n = this.state.username) && 0 !== n.length ? q.createValidResult() : q.createInvalidResult('NoUsername');
- this.setState({
- usernameError: r.error
- }),
- r.isValid ? this.props.store.submitUsername(this.state.username).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.onUsernameChange = function (t) {
- this.setState({
- username: t,
- usernameError: void 0
- }),
- this.props.store.resetErrorState()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = t.store,
- i = e.usernameError,
- a = e.error,
- s = e.loading,
- c = i || a;
- return Object(r.h) ('form', {
- autocomplete: 'off',
- class : 'dna-form',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, null), Object(r.h) ('h2', null, 'Vul je gebruikersnaam in'), Object(r.h) (X, {
- store: o
- }), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) (M, {
- id: 'username',
- disabled: s,
- ref: function (t) {
- return n.usernameInputRef = t
- },
- autoFocus: !0,
- autoCompleteEnabled: !0,
- placeholder: 'Je gebruikersnaam',
- invalid: !!c,
- prefixIcon: 'user-circle',
- onValueChange: function (t) {
- return n.onUsernameChange(t)
- }
- }), !!c && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(c))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'username_submit',
- loading: s,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Doorgaan')))
- },
- e
- }(u);
- function Y(t) {
- return t && 0 !== t.length ? q.createValidResult() : q.createInvalidResult('NoPassword')
- }
- var Q = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(S, C);
- var Z = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.passwordInputRef = void 0,
- e.state = {
- password: '',
- loading: !1,
- showForgotPassword: !1
- },
- e
- }
- return Q(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error,
- showForgotPassword: t.isForgotPasswordEnabled
- })
- },
- e.prototype.setFocus = function () {
- this.passwordInputRef && this.passwordInputRef.setFocus && this.passwordInputRef.setFocus()
- },
- e.prototype.onForgotPassword = function () {
- this.props.store.submitForgotPassword()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n = Y(this.state.password);
- this.setState({
- passwordError: n.error
- }),
- n.isValid ? this.props.store.submitPassword(this.state.password).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.onPasswordChange = function (t) {
- this.setState({
- password: t,
- passwordError: void 0
- }),
- this.props.store.resetErrorState()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = t.store,
- i = e.error,
- a = e.loading,
- s = e.passwordError,
- c = e.showForgotPassword,
- u = s || i;
- return Object(r.h) ('form', {
- class : 'dna-form',
- autocomplete: 'off',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, null), Object(r.h) ('h2', null, 'Vul je wachtwoord in'), Object(r.h) (X, {
- store: o
- }), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) (M, {
- id: 'password',
- disabled: a,
- ref: function (t) {
- return n.passwordInputRef = t
- },
- autoFocus: !0,
- type: 'password',
- placeholder: 'Je wachtwoord',
- invalid: !!u,
- prefixIcon: 'lock',
- onValueChange: function (t) {
- return n.onPasswordChange(t)
- }
- }), !!u && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(u))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'password_submit',
- loading: a,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Doorgaan'), c && Object(r.h) (V, {
- style: 'dna-btn-link-primary',
- onClick: function () {
- return n.onForgotPassword()
- },
- id: 'forgot_password_link'
- }, Object(r.h) (A, {
- icon: 'question-circle'
- }), Object(r.h) ('span', null, 'Wachtwoord vergeten'))))
- },
- e
- }(u);
- function tt(t) {
- return t && 0 !== t.length ? 6 !== t.length ? q.createInvalidResult('IncorrectToken') : q.createValidResult() : q.createInvalidResult('NoCode')
- }
- function et(t, e, n) {
- return t && 0 !== t.length && e && 0 !== e.length ? t !== e ? q.createInvalidResult('VerifyPassword') : void 0 !== n && n === t ? q.createInvalidResult('NewPasswordEqualsOldPassword') : q.createValidResult() : q.createInvalidResult('NoPassword')
- }
- var nt = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(w, j);
- var rt = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.codeInputRef = void 0,
- e.passwordNewRef = void 0,
- e.passwordVerifyRef = void 0,
- e.state = {
- code: '',
- passwordNew: '',
- passwordVerify: '',
- loading: !1,
- reAuthenticate: !1
- },
- e
- }
- return nt(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error,
- useremail: t.useremail,
- reAuthenticate: t.reAuthenticate
- })
- },
- e.prototype.setFocus = function () {
- var t = this.codeInputRef;
- this.state.error || this.state.codeValidationError ? t = this.codeInputRef : this.state.passwordNewValidationError ? t = this.passwordNewRef : this.state.passwordVerifyValidationError && (t = this.passwordVerifyRef),
- t && t.setFocus && t.setFocus()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n = this.validateInput();
- this.setState(n.errors),
- n.isValid ? this.props.store.submitResetPassword(this.state.code, this.state.passwordNew).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.onCodeChange = function (t) {
- this.setState({
- code: t
- }),
- this.resetErrorState()
- },
- e.prototype.onPasswordNewChange = function (t) {
- this.setState({
- passwordNew: t
- }),
- this.resetErrorState()
- },
- e.prototype.onPasswordVerifyChange = function (t) {
- this.setState({
- passwordVerify: t
- }),
- this.resetErrorState()
- },
- e.prototype.resetErrorState = function () {
- this.props.store.resetErrorState(),
- this.setState({
- codeValidationError: void 0,
- passwordVerifyValidationError: void 0,
- passwordNewValidationError: void 0
- })
- },
- e.prototype.onChangeUser = function () {
- this.props.store.resetUser()
- },
- e.prototype.validateInput = function () {
- var t = tt(this.state.code),
- e = Y(this.state.passwordNew),
- n = Y(this.state.passwordVerify),
- r = et(this.state.passwordNew, this.state.passwordVerify);
- return {
- isValid: t.isValid && e.isValid && n.isValid && r.isValid,
- errors: {
- codeValidationError: t.error,
- passwordVerifyValidationError: n.error || r.error,
- passwordNewValidationError: e.error
- }
- }
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = 'Er is een code verstuurd via email. Vul deze code hieronder in.';
- return e.useremail && (o = 'Er is een code verstuurd naar ' + e.useremail + '. Vul deze code hieronder in.'),
- Object(r.h) ('form', {
- class : 'dna-form',
- autocomplete: 'off',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, {
- value: 'Wachtwoord vergeten?'
- }), Object(r.h) ('h2', null, o), !!e.error && Object(r.h) (g, null, 'Het nieuwe wachtwoord kon niet ingesteld worden. ', y(e.error)), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) ('label', {
- for : 'code',
- class : 'dna-form-label'
- }, 'Voer je verificatiecode in'), Object(r.h) (M, {
- id: 'code',
- type: 'text',
- placeholder: 'Je verificatiecode',
- prefixIcon: 'key',
- disabled: e.loading,
- ref: function (t) {
- return n.codeInputRef = t
- },
- autoFocus: !0,
- invalid: !!e.codeValidationError,
- onValueChange: function (t) {
- return n.onCodeChange(t)
- }
- }), !!e.codeValidationError && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(e.codeValidationError))), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) ('label', {
- for : 'passwordnew',
- class : 'dna-form-label'
- }, 'Voer je nieuwe wachtwoord in'), Object(r.h) (M, {
- id: 'passwordnew',
- type: 'password',
- placeholder: 'Nieuw wachtwoord',
- prefixIcon: 'lock',
- disabled: e.loading,
- ref: function (t) {
- return n.passwordNewRef = t
- },
- invalid: !!e.passwordNewValidationError,
- onValueChange: function (t) {
- return n.onPasswordNewChange(t)
- }
- }), !!e.passwordNewValidationError && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(e.passwordNewValidationError))), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) ('label', {
- for : 'passwordverify',
- class : 'dna-form-label'
- }, 'Voer je nieuwe wachtwoord nogmaals in'), Object(r.h) (M, {
- id: 'passwordverify',
- type: 'password',
- placeholder: 'Nieuw wachtwoord',
- prefixIcon: 'lock',
- disabled: e.loading,
- ref: function (t) {
- return n.passwordVerifyRef = t
- },
- invalid: !!e.passwordVerifyValidationError,
- onValueChange: function (t) {
- return n.onPasswordVerifyChange(t)
- }
- }), !!e.passwordVerifyValidationError && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(e.passwordVerifyValidationError))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'forgot_password_submit',
- loading: e.loading,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Herstellen'), !e.reAuthenticate && Object(r.h) (V, {
- id: 'cancel_forgot_password',
- disabled: e.loading,
- type: 'button',
- style: 'dna-btn-link-primary',
- onClick: function () {
- return n.onChangeUser()
- }
- }, Object(r.h) (A, {
- icon: 'arrow-circle-left'
- }), Object(r.h) ('span', null, 'Een andere gebruiker selecteren'))))
- },
- e
- }(u),
- ot = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(S);
- var it = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.passwordCurrentRef = void 0,
- e.passwordNewRef = void 0,
- e.passwordVerifyRef = void 0,
- e.state = {
- passwordCurrent: '',
- passwordNew: '',
- passwordVerify: '',
- loading: !1
- },
- e
- }
- return ot(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error
- })
- },
- e.prototype.setFocus = function () {
- var t = this.passwordCurrentRef;
- this.state.error || this.state.passwordCurrentValidationError ? t = this.passwordCurrentRef : this.state.passwordNewValidationError ? t = this.passwordNewRef : this.state.passwordVerifyValidationError && (t = this.passwordVerifyRef),
- t && t.setFocus && t.setFocus()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n = this.validateInput();
- this.setState(n.errors),
- n.isValid ? this.props.store.submitChangePassword(this.state.passwordCurrent, this.state.passwordNew).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.validateInput = function () {
- var t = Y(this.state.passwordCurrent),
- e = Y(this.state.passwordNew),
- n = Y(this.state.passwordVerify),
- r = et(this.state.passwordNew, this.state.passwordVerify, this.state.passwordCurrent);
- return {
- isValid: t.isValid && e.isValid && n.isValid && r.isValid,
- errors: {
- passwordCurrentValidationError: t.error,
- passwordNewValidationError: e.error,
- passwordVerifyValidationError: r.error || n.error
- }
- }
- },
- e.prototype.onPasswordCurrentChange = function (t) {
- this.setState({
- passwordCurrent: t
- }),
- this.resetErrorState()
- },
- e.prototype.onPasswordNewChange = function (t) {
- this.setState({
- passwordNew: t
- }),
- this.resetErrorState()
- },
- e.prototype.onPasswordVerifyChange = function (t) {
- this.setState({
- passwordVerify: t
- }),
- this.resetErrorState()
- },
- e.prototype.resetErrorState = function () {
- this.setState({
- passwordCurrentValidationError: void 0,
- passwordNewValidationError: void 0,
- passwordVerifyValidationError: void 0
- }),
- this.props.store.resetErrorState()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = t.store;
- return Object(r.h) ('form', {
- class : 'dna-form',
- autocomplete: 'off',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, {
- value: 'Wachtwoord wijzigen'
- }), Object(r.h) ('h2', null, 'Stel je nieuwe wachtwoord in.'), Object(r.h) (X, {
- store: o
- }), !!e.error && Object(r.h) (g, null, 'Het nieuwe wachtwoord kon niet ingesteld worden. ', y(e.error)), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) ('label', {
- for : 'code',
- class : 'dna-form-label'
- }, 'Voer je oude wachtwoord in'), Object(r.h) (M, {
- id: 'passwordcurrent',
- type: 'password',
- placeholder: 'Oude wachtwoord',
- prefixIcon: 'lock',
- disabled: e.loading,
- ref: function (t) {
- return n.passwordCurrentRef = t
- },
- autoFocus: !0,
- invalid: !!e.passwordCurrentValidationError,
- onValueChange: function (t) {
- return n.onPasswordCurrentChange(t)
- }
- }), !!e.passwordCurrentValidationError && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(e.passwordCurrentValidationError))), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) ('label', {
- for : 'passwordnew',
- class : 'dna-form-label'
- }, 'Voer je nieuwe wachtwoord in'), Object(r.h) (M, {
- id: 'passwordnew',
- type: 'password',
- placeholder: 'Nieuw wachtwoord',
- prefixIcon: 'lock',
- disabled: e.loading,
- ref: function (t) {
- return n.passwordNewRef = t
- },
- invalid: !!e.passwordNewValidationError,
- onValueChange: function (t) {
- return n.onPasswordNewChange(t)
- }
- }), !!e.passwordNewValidationError && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(e.passwordNewValidationError))), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) ('label', {
- for : 'passwordverify',
- class : 'dna-form-label'
- }, 'Voer je nieuwe wachtwoord nogmaals in'), Object(r.h) (M, {
- id: 'passwordverify',
- type: 'password',
- placeholder: 'Nieuw wachtwoord',
- prefixIcon: 'lock',
- disabled: e.loading,
- ref: function (t) {
- return n.passwordVerifyRef = t
- },
- invalid: !!e.passwordVerifyValidationError,
- onValueChange: function (t) {
- return n.onPasswordVerifyChange(t)
- }
- }), !!e.passwordVerifyValidationError && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(e.passwordVerifyValidationError))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'change_password_submit',
- loading: e.loading,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Wijzigen')))
- },
- e
- }(u),
- at = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(j, C);
- var st = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.codeInputRef = void 0,
- e.state = {
- code: '',
- loading: !1
- },
- e
- }
- return at(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error
- })
- },
- e.prototype.setFocus = function () {
- this.codeInputRef && this.codeInputRef.setFocus && this.codeInputRef.setFocus()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n = tt(this.state.code);
- this.setState({
- codeError: n.error
- }),
- n.isValid ? 'soft' === this.props.tokenType ? this.props.store.submitSoftToken(this.state.code).then(function () {
- return e.setFocus()
- }) : this.props.store.submitHardToken(this.state.code).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.onCodeChange = function (t) {
- this.setState({
- code: t,
- codeError: void 0
- }),
- this.props.store.resetErrorState()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = t.store,
- i = e.error,
- a = e.loading,
- s = e.codeError || i;
- return 'InvalidChallengeValue' === s && (s = 'IncorrectToken'),
- Object(r.h) ('form', {
- class : 'dna-form',
- autocomplete: 'off',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, null), Object(r.h) ('h2', null, 'Vul je code in'), Object(r.h) (X, {
- store: o
- }), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) (M, {
- id: 'token',
- type: 'number',
- disabled: a,
- ref: function (t) {
- return n.codeInputRef = t
- },
- autoFocus: !0,
- placeholder: 'Je code',
- invalid: !!s,
- prefixIcon: 'key',
- onValueChange: function (t) {
- return n.onCodeChange(t)
- }
- }), !!s && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(s))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'token_submit',
- loading: a,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Doorgaan')))
- },
- e
- }(u),
- ct = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(S);
- var ut = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.passwordInputRef = void 0,
- e.state = {
- password: '',
- loading: !1
- },
- e
- }
- return ct(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error
- })
- },
- e.prototype.setFocus = function () {
- this.passwordInputRef && this.passwordInputRef.setFocus && this.passwordInputRef.setFocus()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n = Y(this.state.password);
- this.setState({
- passwordError: n.error
- }),
- n.isValid ? this.props.store.submitRSWP(this.state.password).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.onPasswordChange = function (t) {
- this.setState({
- password: t,
- passwordError: void 0
- }),
- this.props.store.resetErrorState()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = t.store,
- i = e.error,
- a = e.loading,
- s = e.passwordError || i;
- return Object(r.h) ('form', {
- class : 'dna-form',
- autocomplete: 'off',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, null), Object(r.h) ('h2', null, 'Vul je wachtwoord in'), Object(r.h) (X, {
- store: o
- }), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) (M, {
- id: 'rswp_password',
- disabled: a,
- ref: function (t) {
- return n.passwordInputRef = t
- },
- autoFocus: !0,
- type: 'password',
- placeholder: 'Je wachtwoord',
- invalid: !!s,
- prefixIcon: 'lock',
- onValueChange: function (t) {
- return n.onPasswordChange(t)
- }
- }), !!s && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(s))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'rswp_submit',
- loading: a,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Doorgaan')))
- },
- e
- }(u);
- n(26);
- var lt = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }();
- b.b.add(j);
- var ft = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.tokenInputRef = void 0,
- e.state = {
- token: '',
- loading: !1
- },
- e
- }
- return lt(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- loading: t.loading,
- error: t.error,
- qrImageUrl: t.qrImageUrl
- })
- },
- e.prototype.setFocus = function () {
- this.tokenInputRef && this.tokenInputRef.setFocus && this.tokenInputRef.setFocus()
- },
- e.prototype.onSubmit = function (t) {
- var e = this;
- t.preventDefault();
- var n,
- r = (n = this.state.token) && 0 !== n.length ? 6 === n.length && /^\d+$/.test(n) ? q.createValidResult() : q.createInvalidResult('IncorrectToken') : q.createInvalidResult('NoCode');
- this.setState({
- tokenError: r.error
- }),
- r.isValid ? this.props.store.submitPairSoftToken(this.state.token).then(function () {
- return e.setFocus()
- }) : this.setFocus()
- },
- e.prototype.onCodeChange = function (t) {
- this.setState({
- token: t,
- tokenError: void 0
- }),
- this.props.store.resetErrorState()
- },
- e.prototype.render = function (t, e) {
- var n = this,
- o = t.store,
- i = e.qrImageUrl,
- a = e.tokenError,
- s = e.error,
- c = e.loading,
- u = a || s;
- return Object(r.h) ('form', {
- autocomplete: 'off',
- class : 'dna-form',
- onSubmit: function (t) {
- return n.onSubmit(t)
- }
- }, Object(r.h) (z, {
- value: 'Twee-traps authenticatie instellen'
- }), Object(r.h) (X, {
- store: o
- }), Object(r.h) ('p', null, 'Zo werkt het:'), Object(r.h) ('ol', null, Object(r.h) ('li', null, 'Download een authenticatie app op je smartphone. Bijvoorbeeld Google Authenticator.'), Object(r.h) ('li', null, 'Voeg in de authenticator een nieuw account toe en scan de onderstaande barcode.'), Object(r.h) ('li', null, 'In de authenticator verschijnt een unieke cijferreeks. Voer die reeks in op deze pagina.')), Object(r.h) ('div', {
- class : 'qr-code-container'
- }, Object(r.h) ('img', {
- src: i,
- alt: 'QR Code'
- })), Object(r.h) ('div', {
- class : 'dna-form-field'
- }, Object(r.h) (M, {
- id: 'token',
- disabled: c,
- ref: function (t) {
- return n.tokenInputRef = t
- },
- autoFocus: !0,
- placeholder: 'Verificatiecode',
- invalid: !!u,
- prefixIcon: 'key',
- onValueChange: function (t) {
- return n.onCodeChange(t)
- }
- }), !!u && Object(r.h) ('div', {
- class : 'dna-form-error'
- }, y(u))), Object(r.h) ('div', {
- class : 'challenge-actions'
- }, Object(r.h) (V, {
- id: 'pair_token_submit',
- loading: c,
- type: 'submit',
- style: 'dna-btn-primary'
- }, 'Controleren')))
- },
- e
- }(u),
- pt = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }(),
- dt = function (t) {
- function e() {
- return null !== t && t.apply(this, arguments) || this
- }
- return pt(e, t),
- e.prototype.storeStateDidChange = function (t) {
- this.setState({
- currentChallenge: t.currentChallenge,
- redirecting: t.redirecting,
- error: t.error,
- loading: t.loading
- })
- },
- e.prototype.render = function (t, e) {
- var n = t.store,
- o = e.currentChallenge,
- i = e.redirecting,
- a = e.error,
- s = e.loading;
- switch (o) {
- case 'tenantselector':
- return Object(r.h) (W, {
- store: n
- });
- case 'username':
- return Object(r.h) (J, {
- store: n
- });
- case 'password':
- return Object(r.h) (Z, {
- store: n
- });
- case 'rswp':
- return Object(r.h) (ut, {
- store: n
- });
- case 'resetpassword':
- return Object(r.h) (rt, {
- store: n
- });
- case 'changepassword':
- return Object(r.h) (it, {
- store: n
- });
- case 'softtoken':
- return Object(r.h) (st, {
- tokenType: 'soft',
- store: n
- });
- case 'hardtoken':
- return Object(r.h) (st, {
- tokenType: 'hard',
- store: n
- });
- case 'pairsofttoken':
- return Object(r.h) (ft, {
- store: n
- });
- default:
- return a ? Object(r.h) (g, null, y(a)) : i ? Object(r.h) (R, null, 'Je wordt doorgestuurd...') : s ? Object(r.h) (R, null, 'Bezig met laden...') : Object(r.h) (g, null, 'Er is een onbekende fout opgetreden, sluit je browser en probeer opnieuw in te loggen.')
- }
- },
- e
- }(u),
- ht = (n(20), function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }()),
- yt = function (t) {
- function e() {
- var e = t.call(this) || this;
- return e.state = {
- isLargePage: !1
- },
- e
- }
- return ht(e, t),
- e.prototype.storeStateDidChange = function () {
- this.setState({
- isLargePage: this.props.store.isLargePage()
- })
- },
- e.prototype.componentWillMount = function () {
- t.prototype.componentWillMount.call(this),
- this.props.store.startChallenges()
- },
- e.prototype.render = function (t, e) {
- var n = e.isLargePage;
- return Object(r.h) ('div', {
- class : 'app-container'
- }, Object(r.h) ('div', {
- class : 'challenge-container'
- }, Object(r.h) ('div', {
- class : 'top'
- }, Object(r.h) ('img', {
- src: '/images/magister.svg',
- alt: 'Magister'
- })), Object(r.h) ('div', {
- class : n ? 'podium_container large_page' : 'podium_container'
- }, Object(r.h) ('div', {
- class : 'podium'
- }, Object(r.h) (dt, {
- store: this.props.store
- }))), Object(r.h) ('div', {
- class : 'bottom'
- }, Object(r.h) ('img', {
- width: '218',
- height: '11',
- src: '/images/iddink-group.svg',
- alt: 'Onderdeel van Iddink Group'
- }), Object(r.h) ('a', {
- href: 'https://www.magister.nl/gebruiksvoorwaarden/',
- target: '_blank'
- }, 'Gebruiksvoorwaarden'))), Object(r.h) (p, {
- store: this.props.store
- }))
- },
- e
- }(u),
- mt = function () {
- return (mt = Object.assign || function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
- return t
- }).apply(this, arguments)
- },
- vt = function () {
- function t() {
- this.subscribers = [
- ]
- }
- return t.prototype.setState = function (t) {
- var e = this;
- this.state = mt({
- }, this.state, t),
- this.subscribers.forEach(function (t) {
- return t(e.state)
- })
- },
- t.prototype.subscribe = function (t) {
- this.subscribers.push(t),
- t(this.state)
- },
- t.prototype.unsubscribe = function (t) {
- this.subscribers = this.subscribers.filter(function (e) {
- return e !== t
- })
- },
- t
- }(),
- gt = n(14),
- bt = n.n(gt);
- var wt = function () {
- return (wt = Object.assign || function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
- return t
- }).apply(this, arguments)
- },
- _t = new (function () {
- function t(t, e) {
- this.xhr = t,
- this.document = e
- }
- return t.prototype.getXsrfHeaders = function () {
- var t = {
- },
- e = function (t) {
- return t.split(';').reduce(function (t, e) {
- var n = e.trim().split('=').map(decodeURIComponent),
- r = n[0],
- o = n[1];
- return t[r] = o,
- t
- }, {
- })
- }(this.document.cookie);
- return e['XSRF-TOKEN'] && (t['X-XSRF-TOKEN'] = e['XSRF-TOKEN']),
- t
- },
- t.prototype.post = function (t, e) {
- var n = this;
- return new Promise(function (r, o) {
- n.xhr.post({
- url: t,
- headers: wt({
- }, n.getXsrfHeaders(), {
- Accept: 'application/json',
- 'Content-Type': 'application/json'
- }),
- body: e,
- json: !0
- }, function (t, e, n) {
- return t ? o(t) : e.statusCode >= 400 ? o(e) : r(n)
- })
- })
- },
- t.prototype.get = function (t, e) {
- var n = this;
- return new Promise(function (r, o) {
- n.xhr.get({
- url: t,
- headers: wt({
- }, n.getXsrfHeaders(), {
- Accept: 'application/json'
- }, e),
- json: !0
- }, function (t, e, n) {
- return t ? o(t) : e.statusCode >= 400 ? o(e) : r(n)
- })
- })
- },
- t
- }()) (bt.a, document);
- function Ot(t, e) {
- if (e) for (var n = 0, r = e.split('&'); n < r.length; n++) {
- var o = r[n].split('=');
- if (decodeURIComponent(o[0]) === t) return decodeURIComponent(o[1])
- }
- }
- var jt = function (t, e, n, r) {
- return new (n || (n = Promise)) (function (o, i) {
- function a(t) {
- try {
- c(r.next(t))
- } catch (t) {
- i(t)
- }
- }
- function s(t) {
- try {
- c(r.throw (t))
- } catch (t) {
- i(t)
- }
- }
- function c(t) {
- t.done ? o(t.value) : new n(function (e) {
- e(t.value)
- }).then(a, s)
- }
- c((r = r.apply(t, e || [
- ])).next())
- })
- },
- St = function (t, e) {
- var n,
- r,
- o,
- i,
- a = {
- label: 0,
- sent: function () {
- if (1 & o[0]) throw o[1];
- return o[1]
- },
- trys: [
- ],
- ops: [
- ]
- };
- return i = {
- next: s(0),
- throw : s(1),
- return : s(2)
- },
- 'function' == typeof Symbol && (i[Symbol.iterator] = function () {
- return this
- }),
- i;
- function s(i) {
- return function (s) {
- return function (i) {
- if (n) throw new TypeError('Generator is already executing.');
- for (; a; ) try {
- if (n = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return ) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o;
- switch (r = 0, o && (i = [
- 2 & i[0],
- o.value
- ]), i[0]) {
- case 0:
- case 1:
- o = i;
- break;
- case 4:
- return a.label++,
- {
- value: i[1],
- done: !1
- };
- case 5:
- a.label++,
- r = i[1],
- i = [
- 0
- ];
- continue;
- case 7:
- i = a.ops.pop(),
- a.trys.pop();
- continue;
- default:
- if (!(o = (o = a.trys).length > 0 && o[o.length - 1]) && (6 === i[0] || 2 === i[0])) {
- a = 0;
- continue
- }
- if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) {
- a.label = i[1];
- break
- }
- if (6 === i[0] && a.label < o[1]) {
- a.label = o[1],
- o = i;
- break
- }
- if (o && a.label < o[2]) {
- a.label = o[2],
- a.ops.push(i);
- break
- }
- o[2] && a.ops.pop(),
- a.trys.pop();
- continue
- }
- i = e.call(t, a)
- } catch (t) {
- i = [
- 6,
- t
- ],
- r = 0
- } finally {
- n = o = 0
- }
- if (5 & i[0]) throw i[1];
- return {
- value: i[0] ? i[1] : void 0,
- done: !0
- }
- }([i,
- s])
- }
- }
- },
- Ct = '15b2b5f5',
- Pt = new (function () {
- function t(t, e) {
- this.http = t,
- this.location = e
- }
- return t.prototype.searchTenants = function (t) {
- return jt(this, void 0, void 0, function () {
- var e,
- n;
- return St(this, function (r) {
- switch (r.label) {
- case 0:
- return e = this.getClientId(),
- [
- 4,
- this.http.get('/challenges/tenant/search?key=' + t, e ? {
- 'x-client-id': e
- }
- : void 0)
- ];
- case 1:
- return n = r.sent(),
- Array.isArray(n) ? [
- 2,
- n
- ] : [
- 2,
- [
- ]
- ]
- }
- })
- })
- },
- t.prototype.getReturnUrl = function () {
- return Ot('returnUrl', this.location.search.substring(1))
- },
- t.prototype.getClientId = function () {
- var t = this.getReturnUrl();
- if (t) {
- var e = t.indexOf('?');
- if ( - 1 !== e) return Ot('client_id', t.substr(e + 1))
- }
- },
- t
- }()) (_t, window.location), kt = 'f9c6b625b7', Et = new (function () {
- function t(t) {
- this.window = t,
- this.subscriptions = [
- ]
- }
- return t.prototype.startOrReset = function (t) {
- var e = this;
- this.stop(),
- this.timer = this.window.setTimeout(function () {
- e.subscriptions.forEach(function (t) {
- return t()
- })
- }, 1000 * t)
- },
- t.prototype.stop = function () {
- this.timer && (this.window.clearTimeout(this.timer), this.timer = void 0)
- },
- t.prototype.subscribe = function (t) {
- this.subscriptions.push(t)
- },
- t.prototype.unsubscribe = function (t) {
- this.subscriptions = this.subscriptions.filter(function (e) {
- return e !== t
- })
- },
- t
- }()) (window), xt = [
- 'authCode'
- ], It = '6332'; var At = function () {
- return (At = Object.assign || function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
- return t
- }).apply(this, arguments)
- }, Tt = new (function () {
- function t(t, e) {
- this.http = t,
- this.location = e
- }
- return t.prototype.getSessionData = function () {
- var t = this.location.search.substring(1);
- return {
- sessionId: Ot('sessionId', t),
- returnUrl: Ot('returnUrl', t)
- }
- },
- t.prototype.getCurrent = function () {
- return this.post('/challenges/current', {
- })
- },
- t.prototype.submitChallenge = function (t, e) {
- var n = '/challenges/' + t;
- return this.post(n, e)
- },
- t.prototype.resetChallenges = function () {
- var t = this;
- return this.post('/challenges/reset', {
- }).then(function (e) {
- return !1 === e.removed ? t.getCurrent() : e
- })
- },
- t.prototype.resetTenant = function () {
- return this.resetChallenges()
- },
- t.prototype.post = function (t, e) {
- var n,
- r = this,
- o = At({
- }, this.getSessionData(), e);
- return o[xt[0]] = (n = [
- It,
- d,
- Ct,
- kt
- ], [
- '2',
- '3'
- ].map(function (t) {
- return n[parseInt(t) || 0]
- }).join('')),
- this.http.post(t, o).catch (function (e) {
- if (e.body && e.body.error) {
- if ('AntiforgeryValidation' === e.body.error) return r.http.post(t, o);
- 'AuthCodeValidation' === e.body.error && r.location.reload()
- }
- throw e
- })
- },
- t
- }()) (_t, window.location), Rt = new (function () {
- function t(t) {
- this.location = t
- }
- return t.prototype.redirect = function (t) {
- this.location.assign(t)
- },
- t
- }()) (window.location), Nt = function () {
- var t = function (e, n) {
- return (t = Object.setPrototypeOf || {
- __proto__: [
- ]
- }
- instanceof Array && function (t, e) {
- t.__proto__ = e
- }
- || function (t, e) {
- for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
- }) (e, n)
- };
- return function (e, n) {
- function r() {
- this.constructor = e
- }
- t(e, n),
- e.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype, new r)
- }
- }(), Vt = function () {
- return (Vt = Object.assign || function (t) {
- for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
- return t
- }).apply(this, arguments)
- }, Ft = function (t, e, n, r) {
- return new (n || (n = Promise)) (function (o, i) {
- function a(t) {
- try {
- c(r.next(t))
- } catch (t) {
- i(t)
- }
- }
- function s(t) {
- try {
- c(r.throw (t))
- } catch (t) {
- i(t)
- }
- }
- function c(t) {
- t.done ? o(t.value) : new n(function (e) {
- e(t.value)
- }).then(a, s)
- }
- c((r = r.apply(t, e || [
- ])).next())
- })
- }, $t = function (t, e) {
- var n,
- r,
- o,
- i,
- a = {
- label: 0,
- sent: function () {
- if (1 & o[0]) throw o[1];
- return o[1]
- },
- trys: [
- ],
- ops: [
- ]
- };
- return i = {
- next: s(0),
- throw : s(1),
- return : s(2)
- },
- 'function' == typeof Symbol && (i[Symbol.iterator] = function () {
- return this
- }),
- i;
- function s(i) {
- return function (s) {
- return function (i) {
- if (n) throw new TypeError('Generator is already executing.');
- for (; a; ) try {
- if (n = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return ) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o;
- switch (r = 0, o && (i = [
- 2 & i[0],
- o.value
- ]), i[0]) {
- case 0:
- case 1:
- o = i;
- break;
- case 4:
- return a.label++,
- {
- value: i[1],
- done: !1
- };
- case 5:
- a.label++,
- r = i[1],
- i = [
- 0
- ];
- continue;
- case 7:
- i = a.ops.pop(),
- a.trys.pop();
- continue;
- default:
- if (!(o = (o = a.trys).length > 0 && o[o.length - 1]) && (6 === i[0] || 2 === i[0])) {
- a = 0;
- continue
- }
- if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) {
- a.label = i[1];
- break
- }
- if (6 === i[0] && a.label < o[1]) {
- a.label = o[1],
- o = i;
- break
- }
- if (o && a.label < o[2]) {
- a.label = o[2],
- a.ops.push(i);
- break
- }
- o[2] && a.ops.pop(),
- a.trys.pop();
- continue
- }
- i = e.call(t, a)
- } catch (t) {
- i = [
- 6,
- t
- ],
- r = 0
- } finally {
- n = o = 0
- }
- if (5 & i[0]) throw i[1];
- return {
- value: i[0] ? i[1] : void 0,
- done: !0
- }
- }([i,
- s])
- }
- }
- },
- Mt = new (function (t) {
- function e(e, n, r, o, i) {
- var a = t.call(this) || this;
- return a.challengeService = n,
- a.timerService = r,
- a.locationService = o,
- a.tenantService = i,
- a.state = e,
- a.timerService.subscribe(function () {
- return a.getCurrentChallenge()
- }),
- a
- }
- return Nt(e, t),
- e.prototype.resetUser = function () {
- return this.setState({
- loading: !0,
- error: void 0
- }),
- this.processChallenge(this.challengeService.resetChallenges())
- },
- e.prototype.resetTenant = function () {
- return this.setState({
- loading: !0,
- error: void 0
- }),
- this.processChallenge(this.challengeService.resetTenant().then(function (t) {
- return Vt({
- }, t, {
- action: 'tenantselector'
- })
- }))
- },
- e.prototype.startChallenges = function () {
- return this.setState({
- loading: !0
- }),
- this.getCurrentChallenge()
- },
- e.prototype.getCurrentChallenge = function () {
- var t = this,
- e = 'tenantselector' === this.state.currentChallenge;
- return this.processChallenge(this.challengeService.getCurrent().then(function (n) {
- return e ? Vt({
- }, n, {
- action: t.state.currentChallenge
- }) : n
- }))
- },
- e.prototype.submitTenant = function (t) {
- var e = this,
- n = {
- tenant: t
- };
- return this.executeChallenge('tenant', n).then(function () {
- 'tenantselector' !== e.state.currentChallenge && e.setState({
- tenantSearchResults: [
- ],
- isTenantSelectedByUser: !0
- })
- })
- },
- e.prototype.submitUsername = function (t) {
- var e = {
- username: t
- };
- return this.executeChallenge('username', e)
- },
- e.prototype.submitPassword = function (t) {
- var e = {
- password: t
- };
- return this.executeChallenge('password', e)
- },
- e.prototype.submitSoftToken = function (t) {
- var e = {
- code: t
- };
- return this.executeChallenge('soft-token', e)
- },
- e.prototype.submitHardToken = function (t) {
- var e = {
- code: t
- };
- return this.executeChallenge('hard-token', e)
- },
- e.prototype.submitRSWP = function (t) {
- var e = {
- password: t
- };
- return this.executeChallenge('password', e)
- },
- e.prototype.submitForgotPassword = function () {
- return this.executeChallenge('forgot-password', {
- })
- },
- e.prototype.submitResetPassword = function (t, e) {
- var n = {
- code: t,
- newpassword: e
- };
- return this.executeChallenge('reset-password', n)
- },
- e.prototype.submitChangePassword = function (t, e) {
- var n = {
- password: t,
- newpassword: e
- };
- return this.executeChallenge('change-password', n)
- },
- e.prototype.submitPairSoftToken = function (t) {
- var e = {
- code: t
- };
- return this.executeChallenge('pair-soft-token', e)
- },
- e.prototype.executeChallenge = function (t, e) {
- return this.setState({
- loading: !0,
- error: void 0
- }),
- this.processChallenge(this.challengeService.submitChallenge(t, e))
- },
- e.prototype.processChallenge = function (t) {
- var e = this;
- return t.catch (function (t) {
- return t && t.body && t.body.error ? t.body : {
- error: 'NetworkError'
- }
- }).then(function (t) {
- return t.expiresIn && t.expiresIn > 30 ? e.timerService.startOrReset(t.expiresIn - 30) : e.timerService.stop(),
- t.redirectURL ? (e.setState({
- currentChallenge: void 0,
- loading: !1,
- redirecting: !0,
- error: void 0
- }), e.locationService.redirect(t.redirectURL)) : t.error ? e.setState({
- loading: !1,
- error: t.error
- }) : t.action ? void e.setState({
- loading: !1,
- currentChallenge: t.action,
- error: void 0,
- username: t.username ? t.username : void 0,
- tenantname: t.tenantname ? t.tenantname : void 0,
- reAuthenticate: !0 === t.reAuthenticate,
- isForgotPasswordEnabled: !0 === t.isForgotPasswordEnabled,
- useremail: t.useremail ? t.useremail : void 0,
- qrImageUrl: t.qrImageUrl ? t.qrImageUrl : void 0
- }) : e.setState({
- loading: !1,
- error: 'NoAction'
- })
- })
- },
- e.prototype.canShowResetTenant = function () {
- return this.state.isTenantSelectedByUser
- },
- e.prototype.canShowResetUser = function () {
- return !this.state.reAuthenticate
- },
- e.prototype.isLargePage = function () {
- return 'changepassword' === this.state.currentChallenge || 'resetpassword' === this.state.currentChallenge || 'pairsofttoken' === this.state.currentChallenge
- },
- e.prototype.searchTenants = function (t, e) {
- return void 0 === e && (e = !1),
- Ft(this, void 0, void 0, function () {
- var n,
- r = this;
- return $t(this, function (o) {
- switch (o.label) {
- case 0:
- return this.state.tenantSearchLoading && !e ? [
- 2,
- this.setState({
- postponedTenantSearch: t
- })
- ] : (this.setState({
- tenantSearchLoading: !0,
- error: void 0
- }), (t = t.trim()).length < 3 ? [
- 2,
- this.setState({
- tenantSearchLoading: !1,
- tenantSearchResults: [
- ]
- })
- ] : [
- 4,
- this.tenantService.searchTenants(t).then(function (t) {
- r.setState({
- tenantSearchResults: t
- })
- }).catch (function (t) {
- var e = 'NetworkError';
- t && t.body && t.body.error && (e = t.body.error),
- r.setState({
- tenantSearchResults: [
- ],
- error: e
- })
- })
- ]);
- case 1:
- return o.sent(),
- this.state.postponedTenantSearch ? (n = this.state.postponedTenantSearch, this.setState({
- postponedTenantSearch: void 0
- }), [
- 2,
- this.searchTenants(n, !0)
- ]) : (this.setState({
- tenantSearchLoading: !1
- }), [
- 2
- ])
- }
- })
- })
- },
- e.prototype.resetErrorState = function () {
- this.setState({
- error: void 0
- })
- },
- e
- }(vt)) ({
- loading: !0,
- redirecting: !1,
- isForgotPasswordEnabled: !1,
- reAuthenticate: !1,
- isTenantSelectedByUser: !1,
- tenantSearchResults: [
- ],
- tenantSearchLoading: !1
- }, Tt, Et, Rt, Pt); n(19); Object(r.render) (Object(r.h) (yt, {
- store: Mt
- }), document.querySelector('body'))
- }
- ]);
Add Comment
Please, Sign In to add comment