;\n });\n if (this.props.didSearch === false) {\n resultItems.push(\n \n
\n
{prompt} \n {button}\n \n
\n );\n } else if (resultItems.length === 0) {\n resultItems.push(\n \n
\n
{noResultsPrompt} \n {button}\n \n
\n );\n } else {\n resultItems.push(\n \n
\n
\n
{resultsPrompt} \n {button}\n \n
\n
\n );\n }\n\n return(\n \n );\n }\n}\n\nexport default Results\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport Jstz from \"jstimezonedetect\"\nimport moment from 'moment-timezone'\n\nclass GrantRow extends React.Component {\n static propTypes = {\n action: PropTypes.string,\n grant: PropTypes.object,\n loadGrants: PropTypes.func,\n toggleSelect: PropTypes.func\n }\n\n onClickGrant(e) {\n e.preventDefault();\n this.props.toggleSelect(this.props.grant);\n }\n\n makeSelectButton() {\n if (this.props.grant.isSelected) {\n return ;\n } else {\n return ;\n }\n }\n\n displayDate(d) {\n var tz = Jstz.determine();\n\n if (d) {\n return moment.tz(d, \"utc\").format('LL');\n } else {\n return \"N/A\";\n }\n }\n\n onClickDelete(e) {\n e.preventDefault();\n\n if (confirm(\"Are you sure you want to delete the '\"+this.props.grant.program.name+\"' grant?\")) {\n $.ajax({\n method: \"DELETE\",\n url: this.props.action+\"/\"+this.props.grant.id,\n cache: false,\n context: this\n })\n .done(function(response) {\n this.props.loadGrants();\n });\n }\n }\n\n makeDeleteButton() {\n if (this.props.grant.can_delete) {\n return \n \n ;\n }\n }\n\n getRowClass() {\n if (this.props.grant.isSelected) {\n return \"table-success\";\n } else {\n return \"\";\n }\n }\n\n render() {\n return (\n \n {this.makeSelectButton()} \n {this.props.grant.program.name} \n {this.displayDate(this.props.grant.start_at)} \n {this.displayDate(this.props.grant.end_at)} \n {(this.props.grant.can_delete && this.makeDeleteButton())}\n \n \n );\n }\n}\n\nexport default GrantRow","import React from 'react'\nimport PropTypes from 'prop-types'\n\n/*jshint esversion: 6 */\n\nimport Jstz from \"jstimezonedetect\"\nimport moment from 'moment-timezone'\nimport GrantRow from \"./grant_row.js.jsx\"\n\nclass SelectGrant extends React.Component {\n static propTypes = {\n action: PropTypes.string\n }\n\n constructor(props) {\n super(props)\n this.state = {\n grants: []\n }\n }\n\n componentDidMount() {\n this.loadGrants();\n }\n\n loadGrants() {\n $.ajax({\n method: \"GET\",\n url: this.props.action,\n cache: false,\n context: this\n })\n .done(function(response) {\n var grants = response.grants.map(grant => {\n grant.isSelected = grant.is_na;\n return grant;\n });\n\n this.setState({\n grants: grants\n });\n });\n }\n\n toggleSelect(toggledGrant) {\n var grants;\n\n if (toggledGrant.is_na) {\n grants = this.state.grants.map(grant => {\n grant.isSelected = grant.is_na;\n return grant;\n });\n } else {\n grants = this.state.grants.map(grant => {\n if (toggledGrant.id === grant.id) {\n grant.isSelected = !grant.isSelected;\n } else if (grant.is_na) {\n grant.isSelected = false;\n }\n return grant;\n });\n }\n\n var numberSelected = grants.reduce((accumulator, grant) => {\n var add = grant.isSelected ? 1 : 0;\n return accumulator + add;\n }, 0);\n\n if (numberSelected === 0) {\n grants = this.state.grants.map(grant => {\n grant.isSelected = grant.is_na;\n return grant;\n });\n }\n\n this.setState({\n grants: grants\n });\n }\n\n render() {\n return (\n \n );\n }\n}\n\nexport default SelectGrant","import React from 'react'\nimport PropTypes from 'prop-types'\n\n/*jshint esversion: 6 */\n\nimport Jstz from \"jstimezonedetect\"\nimport moment from 'moment-timezone'\nimport SubsurveyRow from \"./subsurvey_row.jsx\"\n\nclass SelectSubsurvey extends React.Component {\n static propTypes = {\n action: PropTypes.string\n }\n\n constructor(props) {\n super(props)\n this.state = {\n subsurveys: []\n }\n }\n\n componentDidMount() {\n this.loadSubsurveys();\n\n $(window).on(\"submitSubsurvey\", this.loadSubsurveys.bind(this));\n }\n\n loadSubsurveys() {\n $.ajax({\n method: \"GET\",\n url: this.props.action,\n cache: false,\n context: this\n })\n .done(function(response) {\n var subsurveys = response.subsurveys.map(subsurvey => {\n subsurvey.isSelected = true;\n return subsurvey;\n });\n\n this.setState({\n subsurveys: subsurveys\n });\n });\n }\n\n toggleSelect(toggledSubsurvey) {\n var subsurveys;\n\n subsurveys = this.state.subsurveys.map(subsurvey => {\n if (toggledSubsurvey.id === subsurvey.id) {\n subsurvey.isSelected = !subsurvey.isSelected;\n }\n return subsurvey;\n });\n\n var numberSelected = subsurveys.reduce((accumulator, subsurvey) => {\n var add = subsurvey.isSelected ? 1 : 0;\n return accumulator + add;\n }, 0);\n\n this.setState({\n subsurveys: subsurveys\n });\n }\n\n render() {\n return (\n \n
\n \n \n \n Survey Name \n \n \n \n \n \n {this.state.subsurveys.map((subsurvey) =>\n \n )}\n \n
\n {this.state.subsurveys.filter((subsurvey) => subsurvey.isSelected)\n .map((subsurvey) =>
\n )}\n
\n );\n }\n}\n\nexport default SelectSubsurvey\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport Jstz from \"jstimezonedetect\"\nimport moment from 'moment-timezone'\n\nclass SubsurveyRow extends React.Component {\n static propTypes = {\n action: PropTypes.string,\n subsurvey: PropTypes.object,\n loadSubsurveys: PropTypes.func,\n toggleSelect: PropTypes.func\n }\n\n onClickSubsurvey(e) {\n e.preventDefault();\n this.props.toggleSelect(this.props.subsurvey);\n }\n\n makeSelectButton() {\n if (this.props.subsurvey.isSelected) {\n return ;\n } else {\n return ;\n }\n }\n\n displayDate(d) {\n var tz = Jstz.determine();\n\n if (d) {\n return moment(d).format('LLL');\n } else {\n return \"N/A\";\n }\n }\n\n onClickDelete(e) {\n e.preventDefault();\n\n if (confirm(\"Are you sure you want to delete the '\"+this.props.subsurvey.assessment_name+\"' subsurvey?\")) {\n $.ajax({\n method: \"DELETE\",\n url: this.props.action+\"/\"+this.props.subsurvey.id,\n cache: false,\n context: this\n })\n .done(function(response) {\n this.props.loadSubsurveys();\n });\n }\n }\n\n makeDeleteButton() {\n if (this.props.subsurvey.can_delete) {\n return \n \n ;\n }\n }\n\n getRowClass() {\n if (this.props.subsurvey.isSelected) {\n return \"table-success\";\n } else {\n return \"\";\n }\n }\n\n render() {\n return (\n \n {this.makeSelectButton()} \n \n { (this.props.subsurvey.show_link &&\n \n {this.props.subsurvey.assessment_name} \n \n ) ||\n \n {this.props.subsurvey.assessment_name}\n \n }\n \n {this.displayDate(this.props.subsurvey.created_at)} \n {(this.props.subsurvey.can_delete && this.makeDeleteButton())}\n \n \n );\n }\n}\n\nexport default SubsurveyRow\n","function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*!\n * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad\n * (c) 2020 Szymon Nowak | Released under the MIT license\n */\nvar Point = /*#__PURE__*/function () {\n function Point(x, y, time) {\n _classCallCheck(this, Point);\n\n this.x = x;\n this.y = y;\n this.time = time || Date.now();\n }\n\n _createClass(Point, [{\n key: \"distanceTo\",\n value: function distanceTo(start) {\n return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this.x === other.x && this.y === other.y && this.time === other.time;\n }\n }, {\n key: \"velocityFrom\",\n value: function velocityFrom(start) {\n return this.time !== start.time ? this.distanceTo(start) / (this.time - start.time) : 0;\n }\n }]);\n\n return Point;\n}();\n\nvar Bezier = /*#__PURE__*/function () {\n function Bezier(startPoint, control2, control1, endPoint, startWidth, endWidth) {\n _classCallCheck(this, Bezier);\n\n this.startPoint = startPoint;\n this.control2 = control2;\n this.control1 = control1;\n this.endPoint = endPoint;\n this.startWidth = startWidth;\n this.endWidth = endWidth;\n }\n\n _createClass(Bezier, [{\n key: \"length\",\n value: function length() {\n var steps = 10;\n var length = 0;\n var px;\n var py;\n\n for (var i = 0; i <= steps; i += 1) {\n var t = i / steps;\n var cx = this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);\n var cy = this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);\n\n if (i > 0) {\n var xdiff = cx - px;\n var ydiff = cy - py;\n length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);\n }\n\n px = cx;\n py = cy;\n }\n\n return length;\n }\n }, {\n key: \"point\",\n value: function point(t, start, c1, c2, end) {\n return start * (1.0 - t) * (1.0 - t) * (1.0 - t) + 3.0 * c1 * (1.0 - t) * (1.0 - t) * t + 3.0 * c2 * (1.0 - t) * t * t + end * t * t * t;\n }\n }], [{\n key: \"fromPoints\",\n value: function fromPoints(points, widths) {\n var c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;\n var c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;\n return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);\n }\n }, {\n key: \"calculateControlPoints\",\n value: function calculateControlPoints(s1, s2, s3) {\n var dx1 = s1.x - s2.x;\n var dy1 = s1.y - s2.y;\n var dx2 = s2.x - s3.x;\n var dy2 = s2.y - s3.y;\n var m1 = {\n x: (s1.x + s2.x) / 2.0,\n y: (s1.y + s2.y) / 2.0\n };\n var m2 = {\n x: (s2.x + s3.x) / 2.0,\n y: (s2.y + s3.y) / 2.0\n };\n var l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n var l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);\n var dxm = m1.x - m2.x;\n var dym = m1.y - m2.y;\n var k = l2 / (l1 + l2);\n var cm = {\n x: m2.x + dxm * k,\n y: m2.y + dym * k\n };\n var tx = s2.x - cm.x;\n var ty = s2.y - cm.y;\n return {\n c1: new Point(m1.x + tx, m1.y + ty),\n c2: new Point(m2.x + tx, m2.y + ty)\n };\n }\n }]);\n\n return Bezier;\n}();\n\nfunction throttle(fn) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;\n var previous = 0;\n var timeout = null;\n var result;\n var storedContext;\n var storedArgs;\n\n var later = function later() {\n previous = Date.now();\n timeout = null;\n result = fn.apply(storedContext, storedArgs);\n\n if (!timeout) {\n storedContext = null;\n storedArgs = [];\n }\n };\n\n return function wrapper() {\n var now = Date.now();\n var remaining = wait - (now - previous);\n storedContext = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n storedArgs = args;\n\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n\n previous = now;\n result = fn.apply(storedContext, storedArgs);\n\n if (!timeout) {\n storedContext = null;\n storedArgs = [];\n }\n } else if (!timeout) {\n timeout = window.setTimeout(later, remaining);\n }\n\n return result;\n };\n}\n\nvar SignaturePad = /*#__PURE__*/function () {\n function SignaturePad(canvas) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, SignaturePad);\n\n this.canvas = canvas;\n this.options = options;\n\n this._handleMouseDown = function (event) {\n if (event.which === 1) {\n _this._mouseButtonDown = true;\n\n _this._strokeBegin(event);\n }\n };\n\n this._handleMouseMove = function (event) {\n if (_this._mouseButtonDown) {\n _this._strokeMoveUpdate(event);\n }\n };\n\n this._handleMouseUp = function (event) {\n if (event.which === 1 && _this._mouseButtonDown) {\n _this._mouseButtonDown = false;\n\n _this._strokeEnd(event);\n }\n };\n\n this._handleTouchStart = function (event) {\n event.preventDefault();\n\n if (event.targetTouches.length === 1) {\n var touch = event.changedTouches[0];\n\n _this._strokeBegin(touch);\n }\n };\n\n this._handleTouchMove = function (event) {\n event.preventDefault();\n var touch = event.targetTouches[0];\n\n _this._strokeMoveUpdate(touch);\n };\n\n this._handleTouchEnd = function (event) {\n var wasCanvasTouched = event.target === _this.canvas;\n\n if (wasCanvasTouched) {\n event.preventDefault();\n var touch = event.changedTouches[0];\n\n _this._strokeEnd(touch);\n }\n };\n\n this.velocityFilterWeight = options.velocityFilterWeight || 0.7;\n this.minWidth = options.minWidth || 0.5;\n this.maxWidth = options.maxWidth || 2.5;\n this.throttle = 'throttle' in options ? options.throttle : 16;\n this.minDistance = 'minDistance' in options ? options.minDistance : 5;\n\n this.dotSize = options.dotSize || function dotSize() {\n return (this.minWidth + this.maxWidth) / 2;\n };\n\n this.penColor = options.penColor || 'black';\n this.backgroundColor = options.backgroundColor || 'rgba(0,0,0,0)';\n this.onBegin = options.onBegin;\n this.onEnd = options.onEnd;\n this._strokeMoveUpdate = this.throttle ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle) : SignaturePad.prototype._strokeUpdate;\n this._ctx = canvas.getContext('2d');\n this.clear();\n this.on();\n }\n\n _createClass(SignaturePad, [{\n key: \"clear\",\n value: function clear() {\n var ctx = this._ctx,\n canvas = this.canvas;\n ctx.fillStyle = this.backgroundColor;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n this._data = [];\n\n this._reset();\n\n this._isEmpty = true;\n }\n }, {\n key: \"fromDataURL\",\n value: function fromDataURL(dataUrl) {\n var _this2 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var callback = arguments.length > 2 ? arguments[2] : undefined;\n var image = new Image();\n var ratio = options.ratio || window.devicePixelRatio || 1;\n var width = options.width || this.canvas.width / ratio;\n var height = options.height || this.canvas.height / ratio;\n\n this._reset();\n\n image.onload = function () {\n _this2._ctx.drawImage(image, 0, 0, width, height);\n\n if (callback) {\n callback();\n }\n };\n\n image.onerror = function (error) {\n if (callback) {\n callback(error);\n }\n };\n\n image.src = dataUrl;\n this._isEmpty = false;\n }\n }, {\n key: \"toDataURL\",\n value: function toDataURL() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/png';\n var encoderOptions = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (type) {\n case 'image/svg+xml':\n return this._toSVG();\n\n default:\n return this.canvas.toDataURL(type, encoderOptions);\n }\n }\n }, {\n key: \"on\",\n value: function on() {\n this.canvas.style.touchAction = 'none';\n this.canvas.style.msTouchAction = 'none';\n\n if (window.PointerEvent) {\n this._handlePointerEvents();\n } else {\n this._handleMouseEvents();\n\n if ('ontouchstart' in window) {\n this._handleTouchEvents();\n }\n }\n }\n }, {\n key: \"off\",\n value: function off() {\n this.canvas.style.touchAction = 'auto';\n this.canvas.style.msTouchAction = 'auto';\n this.canvas.removeEventListener('pointerdown', this._handleMouseDown);\n this.canvas.removeEventListener('pointermove', this._handleMouseMove);\n document.removeEventListener('pointerup', this._handleMouseUp);\n this.canvas.removeEventListener('mousedown', this._handleMouseDown);\n this.canvas.removeEventListener('mousemove', this._handleMouseMove);\n document.removeEventListener('mouseup', this._handleMouseUp);\n this.canvas.removeEventListener('touchstart', this._handleTouchStart);\n this.canvas.removeEventListener('touchmove', this._handleTouchMove);\n this.canvas.removeEventListener('touchend', this._handleTouchEnd);\n }\n }, {\n key: \"isEmpty\",\n value: function isEmpty() {\n return this._isEmpty;\n }\n }, {\n key: \"fromData\",\n value: function fromData(pointGroups) {\n var _this3 = this;\n\n this.clear();\n\n this._fromData(pointGroups, function (_ref) {\n var color = _ref.color,\n curve = _ref.curve;\n return _this3._drawCurve({\n color: color,\n curve: curve\n });\n }, function (_ref2) {\n var color = _ref2.color,\n point = _ref2.point;\n return _this3._drawDot({\n color: color,\n point: point\n });\n });\n\n this._data = pointGroups;\n }\n }, {\n key: \"toData\",\n value: function toData() {\n return this._data;\n }\n }, {\n key: \"_strokeBegin\",\n value: function _strokeBegin(event) {\n var newPointGroup = {\n color: this.penColor,\n points: []\n };\n\n if (typeof this.onBegin === 'function') {\n this.onBegin(event);\n }\n\n this._data.push(newPointGroup);\n\n this._reset();\n\n this._strokeUpdate(event);\n }\n }, {\n key: \"_strokeUpdate\",\n value: function _strokeUpdate(event) {\n if (this._data.length === 0) {\n this._strokeBegin(event);\n\n return;\n }\n\n var x = event.clientX;\n var y = event.clientY;\n\n var point = this._createPoint(x, y);\n\n var lastPointGroup = this._data[this._data.length - 1];\n var lastPoints = lastPointGroup.points;\n var lastPoint = lastPoints.length > 0 && lastPoints[lastPoints.length - 1];\n var isLastPointTooClose = lastPoint ? point.distanceTo(lastPoint) <= this.minDistance : false;\n var color = lastPointGroup.color;\n\n if (!lastPoint || !(lastPoint && isLastPointTooClose)) {\n var curve = this._addPoint(point);\n\n if (!lastPoint) {\n this._drawDot({\n color: color,\n point: point\n });\n } else if (curve) {\n this._drawCurve({\n color: color,\n curve: curve\n });\n }\n\n lastPoints.push({\n time: point.time,\n x: point.x,\n y: point.y\n });\n }\n }\n }, {\n key: \"_strokeEnd\",\n value: function _strokeEnd(event) {\n this._strokeUpdate(event);\n\n if (typeof this.onEnd === 'function') {\n this.onEnd(event);\n }\n }\n }, {\n key: \"_handlePointerEvents\",\n value: function _handlePointerEvents() {\n this._mouseButtonDown = false;\n this.canvas.addEventListener('pointerdown', this._handleMouseDown);\n this.canvas.addEventListener('pointermove', this._handleMouseMove);\n document.addEventListener('pointerup', this._handleMouseUp);\n }\n }, {\n key: \"_handleMouseEvents\",\n value: function _handleMouseEvents() {\n this._mouseButtonDown = false;\n this.canvas.addEventListener('mousedown', this._handleMouseDown);\n this.canvas.addEventListener('mousemove', this._handleMouseMove);\n document.addEventListener('mouseup', this._handleMouseUp);\n }\n }, {\n key: \"_handleTouchEvents\",\n value: function _handleTouchEvents() {\n this.canvas.addEventListener('touchstart', this._handleTouchStart);\n this.canvas.addEventListener('touchmove', this._handleTouchMove);\n this.canvas.addEventListener('touchend', this._handleTouchEnd);\n }\n }, {\n key: \"_reset\",\n value: function _reset() {\n this._lastPoints = [];\n this._lastVelocity = 0;\n this._lastWidth = (this.minWidth + this.maxWidth) / 2;\n this._ctx.fillStyle = this.penColor;\n }\n }, {\n key: \"_createPoint\",\n value: function _createPoint(x, y) {\n var rect = this.canvas.getBoundingClientRect();\n return new Point(x - rect.left, y - rect.top, new Date().getTime());\n }\n }, {\n key: \"_addPoint\",\n value: function _addPoint(point) {\n var _lastPoints = this._lastPoints;\n\n _lastPoints.push(point);\n\n if (_lastPoints.length > 2) {\n if (_lastPoints.length === 3) {\n _lastPoints.unshift(_lastPoints[0]);\n }\n\n var widths = this._calculateCurveWidths(_lastPoints[1], _lastPoints[2]);\n\n var curve = Bezier.fromPoints(_lastPoints, widths);\n\n _lastPoints.shift();\n\n return curve;\n }\n\n return null;\n }\n }, {\n key: \"_calculateCurveWidths\",\n value: function _calculateCurveWidths(startPoint, endPoint) {\n var velocity = this.velocityFilterWeight * endPoint.velocityFrom(startPoint) + (1 - this.velocityFilterWeight) * this._lastVelocity;\n\n var newWidth = this._strokeWidth(velocity);\n\n var widths = {\n end: newWidth,\n start: this._lastWidth\n };\n this._lastVelocity = velocity;\n this._lastWidth = newWidth;\n return widths;\n }\n }, {\n key: \"_strokeWidth\",\n value: function _strokeWidth(velocity) {\n return Math.max(this.maxWidth / (velocity + 1), this.minWidth);\n }\n }, {\n key: \"_drawCurveSegment\",\n value: function _drawCurveSegment(x, y, width) {\n var ctx = this._ctx;\n ctx.moveTo(x, y);\n ctx.arc(x, y, width, 0, 2 * Math.PI, false);\n this._isEmpty = false;\n }\n }, {\n key: \"_drawCurve\",\n value: function _drawCurve(_ref3) {\n var color = _ref3.color,\n curve = _ref3.curve;\n var ctx = this._ctx;\n var widthDelta = curve.endWidth - curve.startWidth;\n var drawSteps = Math.floor(curve.length()) * 2;\n ctx.beginPath();\n ctx.fillStyle = color;\n\n for (var i = 0; i < drawSteps; i += 1) {\n var t = i / drawSteps;\n var tt = t * t;\n var ttt = tt * t;\n var u = 1 - t;\n var uu = u * u;\n var uuu = uu * u;\n var x = uuu * curve.startPoint.x;\n x += 3 * uu * t * curve.control1.x;\n x += 3 * u * tt * curve.control2.x;\n x += ttt * curve.endPoint.x;\n var y = uuu * curve.startPoint.y;\n y += 3 * uu * t * curve.control1.y;\n y += 3 * u * tt * curve.control2.y;\n y += ttt * curve.endPoint.y;\n var width = Math.min(curve.startWidth + ttt * widthDelta, this.maxWidth);\n\n this._drawCurveSegment(x, y, width);\n }\n\n ctx.closePath();\n ctx.fill();\n }\n }, {\n key: \"_drawDot\",\n value: function _drawDot(_ref4) {\n var color = _ref4.color,\n point = _ref4.point;\n var ctx = this._ctx;\n var width = typeof this.dotSize === 'function' ? this.dotSize() : this.dotSize;\n ctx.beginPath();\n\n this._drawCurveSegment(point.x, point.y, width);\n\n ctx.closePath();\n ctx.fillStyle = color;\n ctx.fill();\n }\n }, {\n key: \"_fromData\",\n value: function _fromData(pointGroups, drawCurve, drawDot) {\n var _iterator = _createForOfIteratorHelper(pointGroups),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var group = _step.value;\n var color = group.color,\n points = group.points;\n\n if (points.length > 1) {\n for (var j = 0; j < points.length; j += 1) {\n var basicPoint = points[j];\n var point = new Point(basicPoint.x, basicPoint.y, basicPoint.time);\n this.penColor = color;\n\n if (j === 0) {\n this._reset();\n }\n\n var curve = this._addPoint(point);\n\n if (curve) {\n drawCurve({\n color: color,\n curve: curve\n });\n }\n }\n } else {\n this._reset();\n\n drawDot({\n color: color,\n point: points[0]\n });\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }, {\n key: \"_toSVG\",\n value: function _toSVG() {\n var _this4 = this;\n\n var pointGroups = this._data;\n var ratio = Math.max(window.devicePixelRatio || 1, 1);\n var minX = 0;\n var minY = 0;\n var maxX = this.canvas.width / ratio;\n var maxY = this.canvas.height / ratio;\n var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n svg.setAttribute('width', this.canvas.width.toString());\n svg.setAttribute('height', this.canvas.height.toString());\n\n this._fromData(pointGroups, function (_ref5) {\n var color = _ref5.color,\n curve = _ref5.curve;\n var path = document.createElement('path');\n\n if (!isNaN(curve.control1.x) && !isNaN(curve.control1.y) && !isNaN(curve.control2.x) && !isNaN(curve.control2.y)) {\n var attr = \"M \".concat(curve.startPoint.x.toFixed(3), \",\").concat(curve.startPoint.y.toFixed(3), \" \") + \"C \".concat(curve.control1.x.toFixed(3), \",\").concat(curve.control1.y.toFixed(3), \" \") + \"\".concat(curve.control2.x.toFixed(3), \",\").concat(curve.control2.y.toFixed(3), \" \") + \"\".concat(curve.endPoint.x.toFixed(3), \",\").concat(curve.endPoint.y.toFixed(3));\n path.setAttribute('d', attr);\n path.setAttribute('stroke-width', (curve.endWidth * 2.25).toFixed(3));\n path.setAttribute('stroke', color);\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke-linecap', 'round');\n svg.appendChild(path);\n }\n }, function (_ref6) {\n var color = _ref6.color,\n point = _ref6.point;\n var circle = document.createElement('circle');\n var dotSize = typeof _this4.dotSize === 'function' ? _this4.dotSize() : _this4.dotSize;\n circle.setAttribute('r', dotSize.toString());\n circle.setAttribute('cx', point.x.toString());\n circle.setAttribute('cy', point.y.toString());\n circle.setAttribute('fill', color);\n svg.appendChild(circle);\n });\n\n var prefix = 'data:image/svg+xml;base64,';\n var header = '';\n var body = svg.innerHTML;\n\n if (body === undefined) {\n var dummy = document.createElement('dummy');\n var nodes = svg.childNodes;\n dummy.innerHTML = '';\n\n for (var i = 0; i < nodes.length; i += 1) {\n dummy.appendChild(nodes[i].cloneNode(true));\n }\n\n body = dummy.innerHTML;\n }\n\n var footer = ' ';\n var data = header + body + footer;\n return prefix + btoa(data);\n }\n }]);\n\n return SignaturePad;\n}();\n\nexport default SignaturePad;","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","module.exports = function (it, Constructor, name) {\n if (!(it instanceof Constructor)) {\n throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');\n } return it;\n};\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","/* eslint-disable no-proto -- safe */\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar has = require('../internals/has');\nvar defineProperty = require('../internals/object-define-property').f;\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar METADATA = uid('meta');\nvar id = 0;\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + ++id, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar meta = module.exports = {\n REQUIRED: false,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n","module.exports = function() {\n\tthrow new Error(\"define cannot be used indirect\");\n};\n","/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n","/*\n *\n * More info at [www.dropzonejs.com](http://www.dropzonejs.com)\n *\n * Copyright (c) 2012, Matias Meno\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n */\n(function () {\n var Dropzone,\n Emitter,\n camelize,\n contentLoaded,\n detectVerticalSquash,\n drawImageIOSFix,\n noop,\n without,\n __slice = [].slice,\n __hasProp = {}.hasOwnProperty,\n __extends = function __extends(child, parent) {\n for (var key in parent) {\n if (__hasProp.call(parent, key)) child[key] = parent[key];\n }\n\n function ctor() {\n this.constructor = child;\n }\n\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n child.__super__ = parent.prototype;\n return child;\n };\n\n noop = function noop() {};\n\n Emitter = function () {\n function Emitter() {}\n\n Emitter.prototype.addEventListener = Emitter.prototype.on;\n\n Emitter.prototype.on = function (event, fn) {\n this._callbacks = this._callbacks || {};\n\n if (!this._callbacks[event]) {\n this._callbacks[event] = [];\n }\n\n this._callbacks[event].push(fn);\n\n return this;\n };\n\n Emitter.prototype.emit = function () {\n var args, callback, callbacks, event, _i, _len;\n\n event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\n this._callbacks = this._callbacks || {};\n callbacks = this._callbacks[event];\n\n if (callbacks) {\n for (_i = 0, _len = callbacks.length; _i < _len; _i++) {\n callback = callbacks[_i];\n callback.apply(this, args);\n }\n }\n\n return this;\n };\n\n Emitter.prototype.removeListener = Emitter.prototype.off;\n Emitter.prototype.removeAllListeners = Emitter.prototype.off;\n Emitter.prototype.removeEventListener = Emitter.prototype.off;\n\n Emitter.prototype.off = function (event, fn) {\n var callback, callbacks, i, _i, _len;\n\n if (!this._callbacks || arguments.length === 0) {\n this._callbacks = {};\n return this;\n }\n\n callbacks = this._callbacks[event];\n\n if (!callbacks) {\n return this;\n }\n\n if (arguments.length === 1) {\n delete this._callbacks[event];\n return this;\n }\n\n for (i = _i = 0, _len = callbacks.length; _i < _len; i = ++_i) {\n callback = callbacks[i];\n\n if (callback === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n return this;\n };\n\n return Emitter;\n }();\n\n Dropzone = function (_super) {\n var extend, resolveOption;\n\n __extends(Dropzone, _super);\n\n Dropzone.prototype.Emitter = Emitter;\n /*\n This is a list of all available events you can register on a dropzone object.\n \n You can register an event handler like this:\n \n dropzone.on(\"dragEnter\", function() { });\n */\n\n Dropzone.prototype.events = [\"drop\", \"dragstart\", \"dragend\", \"dragenter\", \"dragover\", \"dragleave\", \"addedfile\", \"addedfiles\", \"removedfile\", \"thumbnail\", \"error\", \"errormultiple\", \"processing\", \"processingmultiple\", \"uploadprogress\", \"totaluploadprogress\", \"sending\", \"sendingmultiple\", \"success\", \"successmultiple\", \"canceled\", \"canceledmultiple\", \"complete\", \"completemultiple\", \"reset\", \"maxfilesexceeded\", \"maxfilesreached\", \"queuecomplete\"];\n Dropzone.prototype.defaultOptions = {\n url: null,\n method: \"post\",\n withCredentials: false,\n parallelUploads: 2,\n uploadMultiple: false,\n maxFilesize: 256,\n paramName: \"file\",\n createImageThumbnails: true,\n maxThumbnailFilesize: 10,\n thumbnailWidth: 120,\n thumbnailHeight: 120,\n filesizeBase: 1000,\n maxFiles: null,\n params: {},\n clickable: true,\n ignoreHiddenFiles: true,\n acceptedFiles: null,\n acceptedMimeTypes: null,\n autoProcessQueue: true,\n autoQueue: true,\n addRemoveLinks: false,\n previewsContainer: null,\n hiddenInputContainer: \"body\",\n capture: null,\n renameFilename: null,\n dictDefaultMessage: \"Drop files here to upload\",\n dictFallbackMessage: \"Your browser does not support drag'n'drop file uploads.\",\n dictFallbackText: \"Please use the fallback form below to upload your files like in the olden days.\",\n dictFileTooBig: \"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.\",\n dictInvalidFileType: \"You can't upload files of this type.\",\n dictResponseError: \"Server responded with {{statusCode}} code.\",\n dictCancelUpload: \"Cancel upload\",\n dictCancelUploadConfirmation: \"Are you sure you want to cancel this upload?\",\n dictRemoveFile: \"Remove file\",\n dictRemoveFileConfirmation: null,\n dictMaxFilesExceeded: \"You can not upload any more files.\",\n accept: function accept(file, done) {\n return done();\n },\n init: function init() {\n return noop;\n },\n forceFallback: false,\n fallback: function fallback() {\n var child, messageElement, span, _i, _len, _ref;\n\n this.element.className = \"\" + this.element.className + \" dz-browser-not-supported\";\n _ref = this.element.getElementsByTagName(\"div\");\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n child = _ref[_i];\n\n if (/(^| )dz-message($| )/.test(child.className)) {\n messageElement = child;\n child.className = \"dz-message\";\n continue;\n }\n }\n\n if (!messageElement) {\n messageElement = Dropzone.createElement(\"
\");\n this.element.appendChild(messageElement);\n }\n\n span = messageElement.getElementsByTagName(\"span\")[0];\n\n if (span) {\n if (span.textContent != null) {\n span.textContent = this.options.dictFallbackMessage;\n } else if (span.innerText != null) {\n span.innerText = this.options.dictFallbackMessage;\n }\n }\n\n return this.element.appendChild(this.getFallbackForm());\n },\n resize: function resize(file) {\n var info, srcRatio, trgRatio;\n info = {\n srcX: 0,\n srcY: 0,\n srcWidth: file.width,\n srcHeight: file.height\n };\n srcRatio = file.width / file.height;\n info.optWidth = this.options.thumbnailWidth;\n info.optHeight = this.options.thumbnailHeight;\n\n if (info.optWidth == null && info.optHeight == null) {\n info.optWidth = info.srcWidth;\n info.optHeight = info.srcHeight;\n } else if (info.optWidth == null) {\n info.optWidth = srcRatio * info.optHeight;\n } else if (info.optHeight == null) {\n info.optHeight = 1 / srcRatio * info.optWidth;\n }\n\n trgRatio = info.optWidth / info.optHeight;\n\n if (file.height < info.optHeight || file.width < info.optWidth) {\n info.trgHeight = info.srcHeight;\n info.trgWidth = info.srcWidth;\n } else {\n if (srcRatio > trgRatio) {\n info.srcHeight = file.height;\n info.srcWidth = info.srcHeight * trgRatio;\n } else {\n info.srcWidth = file.width;\n info.srcHeight = info.srcWidth / trgRatio;\n }\n }\n\n info.srcX = (file.width - info.srcWidth) / 2;\n info.srcY = (file.height - info.srcHeight) / 2;\n return info;\n },\n\n /*\n Those functions register themselves to the events on init and handle all\n the user interface specific stuff. Overwriting them won't break the upload\n but can break the way it's displayed.\n You can overwrite them if you don't like the default behavior. If you just\n want to add an additional event handler, register it on the dropzone object\n and don't overwrite those options.\n */\n drop: function drop(e) {\n return this.element.classList.remove(\"dz-drag-hover\");\n },\n dragstart: noop,\n dragend: function dragend(e) {\n return this.element.classList.remove(\"dz-drag-hover\");\n },\n dragenter: function dragenter(e) {\n return this.element.classList.add(\"dz-drag-hover\");\n },\n dragover: function dragover(e) {\n return this.element.classList.add(\"dz-drag-hover\");\n },\n dragleave: function dragleave(e) {\n return this.element.classList.remove(\"dz-drag-hover\");\n },\n paste: noop,\n reset: function reset() {\n return this.element.classList.remove(\"dz-started\");\n },\n addedfile: function addedfile(file) {\n var node, removeFileEvent, removeLink, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2, _results;\n\n if (this.element === this.previewsContainer) {\n this.element.classList.add(\"dz-started\");\n }\n\n if (this.previewsContainer) {\n file.previewElement = Dropzone.createElement(this.options.previewTemplate.trim());\n file.previewTemplate = file.previewElement;\n this.previewsContainer.appendChild(file.previewElement);\n _ref = file.previewElement.querySelectorAll(\"[data-dz-name]\");\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n node = _ref[_i];\n node.textContent = this._renameFilename(file.name);\n }\n\n _ref1 = file.previewElement.querySelectorAll(\"[data-dz-size]\");\n\n for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {\n node = _ref1[_j];\n node.innerHTML = this.filesize(file.size);\n }\n\n if (this.options.addRemoveLinks) {\n file._removeLink = Dropzone.createElement(\"\" + this.options.dictRemoveFile + \" \");\n file.previewElement.appendChild(file._removeLink);\n }\n\n removeFileEvent = function (_this) {\n return function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n if (file.status === Dropzone.UPLOADING) {\n return Dropzone.confirm(_this.options.dictCancelUploadConfirmation, function () {\n return _this.removeFile(file);\n });\n } else {\n if (_this.options.dictRemoveFileConfirmation) {\n return Dropzone.confirm(_this.options.dictRemoveFileConfirmation, function () {\n return _this.removeFile(file);\n });\n } else {\n return _this.removeFile(file);\n }\n }\n };\n }(this);\n\n _ref2 = file.previewElement.querySelectorAll(\"[data-dz-remove]\");\n _results = [];\n\n for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {\n removeLink = _ref2[_k];\n\n _results.push(removeLink.addEventListener(\"click\", removeFileEvent));\n }\n\n return _results;\n }\n },\n removedfile: function removedfile(file) {\n var _ref;\n\n if (file.previewElement) {\n if ((_ref = file.previewElement) != null) {\n _ref.parentNode.removeChild(file.previewElement);\n }\n }\n\n return this._updateMaxFilesReachedClass();\n },\n thumbnail: function thumbnail(file, dataUrl) {\n var thumbnailElement, _i, _len, _ref;\n\n if (file.previewElement) {\n file.previewElement.classList.remove(\"dz-file-preview\");\n _ref = file.previewElement.querySelectorAll(\"[data-dz-thumbnail]\");\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n thumbnailElement = _ref[_i];\n thumbnailElement.alt = file.name;\n thumbnailElement.src = dataUrl;\n }\n\n return setTimeout(function (_this) {\n return function () {\n return file.previewElement.classList.add(\"dz-image-preview\");\n };\n }(this), 1);\n }\n },\n error: function error(file, message) {\n var node, _i, _len, _ref, _results;\n\n if (file.previewElement) {\n file.previewElement.classList.add(\"dz-error\");\n\n if (typeof message !== \"String\" && message.error) {\n message = message.error;\n }\n\n _ref = file.previewElement.querySelectorAll(\"[data-dz-errormessage]\");\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n node = _ref[_i];\n\n _results.push(node.textContent = message);\n }\n\n return _results;\n }\n },\n errormultiple: noop,\n processing: function processing(file) {\n if (file.previewElement) {\n file.previewElement.classList.add(\"dz-processing\");\n\n if (file._removeLink) {\n return file._removeLink.textContent = this.options.dictCancelUpload;\n }\n }\n },\n processingmultiple: noop,\n uploadprogress: function uploadprogress(file, progress, bytesSent) {\n var node, _i, _len, _ref, _results;\n\n if (file.previewElement) {\n _ref = file.previewElement.querySelectorAll(\"[data-dz-uploadprogress]\");\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n node = _ref[_i];\n\n if (node.nodeName === 'PROGRESS') {\n _results.push(node.value = progress);\n } else {\n _results.push(node.style.width = \"\" + progress + \"%\");\n }\n }\n\n return _results;\n }\n },\n totaluploadprogress: noop,\n sending: noop,\n sendingmultiple: noop,\n success: function success(file) {\n if (file.previewElement) {\n return file.previewElement.classList.add(\"dz-success\");\n }\n },\n successmultiple: noop,\n canceled: function canceled(file) {\n return this.emit(\"error\", file, \"Upload canceled.\");\n },\n canceledmultiple: noop,\n complete: function complete(file) {\n if (file._removeLink) {\n file._removeLink.textContent = this.options.dictRemoveFile;\n }\n\n if (file.previewElement) {\n return file.previewElement.classList.add(\"dz-complete\");\n }\n },\n completemultiple: noop,\n maxfilesexceeded: noop,\n maxfilesreached: noop,\n queuecomplete: noop,\n addedfiles: noop,\n previewTemplate: \"\\n
\\n
\\n
\\n
\\n
\\n
\\n Check \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n Error \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\"\n };\n\n extend = function extend() {\n var key, object, objects, target, val, _i, _len;\n\n target = arguments[0], objects = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\n\n for (_i = 0, _len = objects.length; _i < _len; _i++) {\n object = objects[_i];\n\n for (key in object) {\n val = object[key];\n target[key] = val;\n }\n }\n\n return target;\n };\n\n function Dropzone(element, options) {\n var elementOptions, fallback, _ref;\n\n this.element = element;\n this.version = Dropzone.version;\n this.defaultOptions.previewTemplate = this.defaultOptions.previewTemplate.replace(/\\n*/g, \"\");\n this.clickableElements = [];\n this.listeners = [];\n this.files = [];\n\n if (typeof this.element === \"string\") {\n this.element = document.querySelector(this.element);\n }\n\n if (!(this.element && this.element.nodeType != null)) {\n throw new Error(\"Invalid dropzone element.\");\n }\n\n if (this.element.dropzone) {\n throw new Error(\"Dropzone already attached.\");\n }\n\n Dropzone.instances.push(this);\n this.element.dropzone = this;\n elementOptions = (_ref = Dropzone.optionsForElement(this.element)) != null ? _ref : {};\n this.options = extend({}, this.defaultOptions, elementOptions, options != null ? options : {});\n\n if (this.options.forceFallback || !Dropzone.isBrowserSupported()) {\n return this.options.fallback.call(this);\n }\n\n if (this.options.url == null) {\n this.options.url = this.element.getAttribute(\"action\");\n }\n\n if (!this.options.url) {\n throw new Error(\"No URL provided.\");\n }\n\n if (this.options.acceptedFiles && this.options.acceptedMimeTypes) {\n throw new Error(\"You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.\");\n }\n\n if (this.options.acceptedMimeTypes) {\n this.options.acceptedFiles = this.options.acceptedMimeTypes;\n delete this.options.acceptedMimeTypes;\n }\n\n this.options.method = this.options.method.toUpperCase();\n\n if ((fallback = this.getExistingFallback()) && fallback.parentNode) {\n fallback.parentNode.removeChild(fallback);\n }\n\n if (this.options.previewsContainer !== false) {\n if (this.options.previewsContainer) {\n this.previewsContainer = Dropzone.getElement(this.options.previewsContainer, \"previewsContainer\");\n } else {\n this.previewsContainer = this.element;\n }\n }\n\n if (this.options.clickable) {\n if (this.options.clickable === true) {\n this.clickableElements = [this.element];\n } else {\n this.clickableElements = Dropzone.getElements(this.options.clickable, \"clickable\");\n }\n }\n\n this.init();\n }\n\n Dropzone.prototype.getAcceptedFiles = function () {\n var file, _i, _len, _ref, _results;\n\n _ref = this.files;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n if (file.accepted) {\n _results.push(file);\n }\n }\n\n return _results;\n };\n\n Dropzone.prototype.getRejectedFiles = function () {\n var file, _i, _len, _ref, _results;\n\n _ref = this.files;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n if (!file.accepted) {\n _results.push(file);\n }\n }\n\n return _results;\n };\n\n Dropzone.prototype.getFilesWithStatus = function (status) {\n var file, _i, _len, _ref, _results;\n\n _ref = this.files;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n if (file.status === status) {\n _results.push(file);\n }\n }\n\n return _results;\n };\n\n Dropzone.prototype.getQueuedFiles = function () {\n return this.getFilesWithStatus(Dropzone.QUEUED);\n };\n\n Dropzone.prototype.getUploadingFiles = function () {\n return this.getFilesWithStatus(Dropzone.UPLOADING);\n };\n\n Dropzone.prototype.getAddedFiles = function () {\n return this.getFilesWithStatus(Dropzone.ADDED);\n };\n\n Dropzone.prototype.getActiveFiles = function () {\n var file, _i, _len, _ref, _results;\n\n _ref = this.files;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n if (file.status === Dropzone.UPLOADING || file.status === Dropzone.QUEUED) {\n _results.push(file);\n }\n }\n\n return _results;\n };\n\n Dropzone.prototype.init = function () {\n var eventName, noPropagation, setupHiddenFileInput, _i, _len, _ref, _ref1;\n\n if (this.element.tagName === \"form\") {\n this.element.setAttribute(\"enctype\", \"multipart/form-data\");\n }\n\n if (this.element.classList.contains(\"dropzone\") && !this.element.querySelector(\".dz-message\")) {\n this.element.appendChild(Dropzone.createElement(\"\" + this.options.dictDefaultMessage + \"
\"));\n }\n\n if (this.clickableElements.length) {\n setupHiddenFileInput = function (_this) {\n return function () {\n if (_this.hiddenFileInput) {\n _this.hiddenFileInput.parentNode.removeChild(_this.hiddenFileInput);\n }\n\n _this.hiddenFileInput = document.createElement(\"input\");\n\n _this.hiddenFileInput.setAttribute(\"type\", \"file\");\n\n if (_this.options.maxFiles == null || _this.options.maxFiles > 1) {\n _this.hiddenFileInput.setAttribute(\"multiple\", \"multiple\");\n }\n\n _this.hiddenFileInput.className = \"dz-hidden-input\";\n\n if (_this.options.acceptedFiles != null) {\n _this.hiddenFileInput.setAttribute(\"accept\", _this.options.acceptedFiles);\n }\n\n if (_this.options.capture != null) {\n _this.hiddenFileInput.setAttribute(\"capture\", _this.options.capture);\n }\n\n _this.hiddenFileInput.style.visibility = \"hidden\";\n _this.hiddenFileInput.style.position = \"absolute\";\n _this.hiddenFileInput.style.top = \"0\";\n _this.hiddenFileInput.style.left = \"0\";\n _this.hiddenFileInput.style.height = \"0\";\n _this.hiddenFileInput.style.width = \"0\";\n document.querySelector(_this.options.hiddenInputContainer).appendChild(_this.hiddenFileInput);\n return _this.hiddenFileInput.addEventListener(\"change\", function () {\n var file, files, _i, _len;\n\n files = _this.hiddenFileInput.files;\n\n if (files.length) {\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n\n _this.addFile(file);\n }\n }\n\n _this.emit(\"addedfiles\", files);\n\n return setupHiddenFileInput();\n });\n };\n }(this);\n\n setupHiddenFileInput();\n }\n\n this.URL = (_ref = window.URL) != null ? _ref : window.webkitURL;\n _ref1 = this.events;\n\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n eventName = _ref1[_i];\n this.on(eventName, this.options[eventName]);\n }\n\n this.on(\"uploadprogress\", function (_this) {\n return function () {\n return _this.updateTotalUploadProgress();\n };\n }(this));\n this.on(\"removedfile\", function (_this) {\n return function () {\n return _this.updateTotalUploadProgress();\n };\n }(this));\n this.on(\"canceled\", function (_this) {\n return function (file) {\n return _this.emit(\"complete\", file);\n };\n }(this));\n this.on(\"complete\", function (_this) {\n return function (file) {\n if (_this.getAddedFiles().length === 0 && _this.getUploadingFiles().length === 0 && _this.getQueuedFiles().length === 0) {\n return setTimeout(function () {\n return _this.emit(\"queuecomplete\");\n }, 0);\n }\n };\n }(this));\n\n noPropagation = function noPropagation(e) {\n e.stopPropagation();\n\n if (e.preventDefault) {\n return e.preventDefault();\n } else {\n return e.returnValue = false;\n }\n };\n\n this.listeners = [{\n element: this.element,\n events: {\n \"dragstart\": function (_this) {\n return function (e) {\n return _this.emit(\"dragstart\", e);\n };\n }(this),\n \"dragenter\": function (_this) {\n return function (e) {\n noPropagation(e);\n return _this.emit(\"dragenter\", e);\n };\n }(this),\n \"dragover\": function (_this) {\n return function (e) {\n var efct;\n\n try {\n efct = e.dataTransfer.effectAllowed;\n } catch (_error) {}\n\n e.dataTransfer.dropEffect = 'move' === efct || 'linkMove' === efct ? 'move' : 'copy';\n noPropagation(e);\n return _this.emit(\"dragover\", e);\n };\n }(this),\n \"dragleave\": function (_this) {\n return function (e) {\n return _this.emit(\"dragleave\", e);\n };\n }(this),\n \"drop\": function (_this) {\n return function (e) {\n noPropagation(e);\n return _this.drop(e);\n };\n }(this),\n \"dragend\": function (_this) {\n return function (e) {\n return _this.emit(\"dragend\", e);\n };\n }(this)\n }\n }];\n this.clickableElements.forEach(function (_this) {\n return function (clickableElement) {\n return _this.listeners.push({\n element: clickableElement,\n events: {\n \"click\": function click(evt) {\n if (clickableElement !== _this.element || evt.target === _this.element || Dropzone.elementInside(evt.target, _this.element.querySelector(\".dz-message\"))) {\n _this.hiddenFileInput.click();\n }\n\n return true;\n }\n }\n });\n };\n }(this));\n this.enable();\n return this.options.init.call(this);\n };\n\n Dropzone.prototype.destroy = function () {\n var _ref;\n\n this.disable();\n this.removeAllFiles(true);\n\n if ((_ref = this.hiddenFileInput) != null ? _ref.parentNode : void 0) {\n this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput);\n this.hiddenFileInput = null;\n }\n\n delete this.element.dropzone;\n return Dropzone.instances.splice(Dropzone.instances.indexOf(this), 1);\n };\n\n Dropzone.prototype.updateTotalUploadProgress = function () {\n var activeFiles, file, totalBytes, totalBytesSent, totalUploadProgress, _i, _len, _ref;\n\n totalBytesSent = 0;\n totalBytes = 0;\n activeFiles = this.getActiveFiles();\n\n if (activeFiles.length) {\n _ref = this.getActiveFiles();\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n totalBytesSent += file.upload.bytesSent;\n totalBytes += file.upload.total;\n }\n\n totalUploadProgress = 100 * totalBytesSent / totalBytes;\n } else {\n totalUploadProgress = 100;\n }\n\n return this.emit(\"totaluploadprogress\", totalUploadProgress, totalBytes, totalBytesSent);\n };\n\n Dropzone.prototype._getParamName = function (n) {\n if (typeof this.options.paramName === \"function\") {\n return this.options.paramName(n);\n } else {\n return \"\" + this.options.paramName + (this.options.uploadMultiple ? \"[\" + n + \"]\" : \"\");\n }\n };\n\n Dropzone.prototype._renameFilename = function (name) {\n if (typeof this.options.renameFilename !== \"function\") {\n return name;\n }\n\n return this.options.renameFilename(name);\n };\n\n Dropzone.prototype.getFallbackForm = function () {\n var existingFallback, fields, fieldsString, form;\n\n if (existingFallback = this.getExistingFallback()) {\n return existingFallback;\n }\n\n fieldsString = \"\";\n fields = Dropzone.createElement(fieldsString);\n\n if (this.element.tagName !== \"FORM\") {\n form = Dropzone.createElement(\"\");\n form.appendChild(fields);\n } else {\n this.element.setAttribute(\"enctype\", \"multipart/form-data\");\n this.element.setAttribute(\"method\", this.options.method);\n }\n\n return form != null ? form : fields;\n };\n\n Dropzone.prototype.getExistingFallback = function () {\n var fallback, getFallback, tagName, _i, _len, _ref;\n\n getFallback = function getFallback(elements) {\n var el, _i, _len;\n\n for (_i = 0, _len = elements.length; _i < _len; _i++) {\n el = elements[_i];\n\n if (/(^| )fallback($| )/.test(el.className)) {\n return el;\n }\n }\n };\n\n _ref = [\"div\", \"form\"];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n tagName = _ref[_i];\n\n if (fallback = getFallback(this.element.getElementsByTagName(tagName))) {\n return fallback;\n }\n }\n };\n\n Dropzone.prototype.setupEventListeners = function () {\n var elementListeners, event, listener, _i, _len, _ref, _results;\n\n _ref = this.listeners;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n elementListeners = _ref[_i];\n\n _results.push(function () {\n var _ref1, _results1;\n\n _ref1 = elementListeners.events;\n _results1 = [];\n\n for (event in _ref1) {\n listener = _ref1[event];\n\n _results1.push(elementListeners.element.addEventListener(event, listener, false));\n }\n\n return _results1;\n }());\n }\n\n return _results;\n };\n\n Dropzone.prototype.removeEventListeners = function () {\n var elementListeners, event, listener, _i, _len, _ref, _results;\n\n _ref = this.listeners;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n elementListeners = _ref[_i];\n\n _results.push(function () {\n var _ref1, _results1;\n\n _ref1 = elementListeners.events;\n _results1 = [];\n\n for (event in _ref1) {\n listener = _ref1[event];\n\n _results1.push(elementListeners.element.removeEventListener(event, listener, false));\n }\n\n return _results1;\n }());\n }\n\n return _results;\n };\n\n Dropzone.prototype.disable = function () {\n var file, _i, _len, _ref, _results;\n\n this.clickableElements.forEach(function (element) {\n return element.classList.remove(\"dz-clickable\");\n });\n this.removeEventListeners();\n _ref = this.files;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n _results.push(this.cancelUpload(file));\n }\n\n return _results;\n };\n\n Dropzone.prototype.enable = function () {\n this.clickableElements.forEach(function (element) {\n return element.classList.add(\"dz-clickable\");\n });\n return this.setupEventListeners();\n };\n\n Dropzone.prototype.filesize = function (size) {\n var cutoff, i, selectedSize, selectedUnit, unit, units, _i, _len;\n\n selectedSize = 0;\n selectedUnit = \"b\";\n\n if (size > 0) {\n units = ['TB', 'GB', 'MB', 'KB', 'b'];\n\n for (i = _i = 0, _len = units.length; _i < _len; i = ++_i) {\n unit = units[i];\n cutoff = Math.pow(this.options.filesizeBase, 4 - i) / 10;\n\n if (size >= cutoff) {\n selectedSize = size / Math.pow(this.options.filesizeBase, 4 - i);\n selectedUnit = unit;\n break;\n }\n }\n\n selectedSize = Math.round(10 * selectedSize) / 10;\n }\n\n return \"\" + selectedSize + \" \" + selectedUnit;\n };\n\n Dropzone.prototype._updateMaxFilesReachedClass = function () {\n if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {\n if (this.getAcceptedFiles().length === this.options.maxFiles) {\n this.emit('maxfilesreached', this.files);\n }\n\n return this.element.classList.add(\"dz-max-files-reached\");\n } else {\n return this.element.classList.remove(\"dz-max-files-reached\");\n }\n };\n\n Dropzone.prototype.drop = function (e) {\n var files, items;\n\n if (!e.dataTransfer) {\n return;\n }\n\n this.emit(\"drop\", e);\n files = e.dataTransfer.files;\n this.emit(\"addedfiles\", files);\n\n if (files.length) {\n items = e.dataTransfer.items;\n\n if (items && items.length && items[0].webkitGetAsEntry != null) {\n this._addFilesFromItems(items);\n } else {\n this.handleFiles(files);\n }\n }\n };\n\n Dropzone.prototype.paste = function (e) {\n var items, _ref;\n\n if ((e != null ? (_ref = e.clipboardData) != null ? _ref.items : void 0 : void 0) == null) {\n return;\n }\n\n this.emit(\"paste\", e);\n items = e.clipboardData.items;\n\n if (items.length) {\n return this._addFilesFromItems(items);\n }\n };\n\n Dropzone.prototype.handleFiles = function (files) {\n var file, _i, _len, _results;\n\n _results = [];\n\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n\n _results.push(this.addFile(file));\n }\n\n return _results;\n };\n\n Dropzone.prototype._addFilesFromItems = function (items) {\n var entry, item, _i, _len, _results;\n\n _results = [];\n\n for (_i = 0, _len = items.length; _i < _len; _i++) {\n item = items[_i];\n\n if (item.webkitGetAsEntry != null && (entry = item.webkitGetAsEntry())) {\n if (entry.isFile) {\n _results.push(this.addFile(item.getAsFile()));\n } else if (entry.isDirectory) {\n _results.push(this._addFilesFromDirectory(entry, entry.name));\n } else {\n _results.push(void 0);\n }\n } else if (item.getAsFile != null) {\n if (item.kind == null || item.kind === \"file\") {\n _results.push(this.addFile(item.getAsFile()));\n } else {\n _results.push(void 0);\n }\n } else {\n _results.push(void 0);\n }\n }\n\n return _results;\n };\n\n Dropzone.prototype._addFilesFromDirectory = function (directory, path) {\n var dirReader, errorHandler, readEntries;\n dirReader = directory.createReader();\n\n errorHandler = function errorHandler(error) {\n return typeof console !== \"undefined\" && console !== null ? typeof console.log === \"function\" ? console.log(error) : void 0 : void 0;\n };\n\n readEntries = function (_this) {\n return function () {\n return dirReader.readEntries(function (entries) {\n var entry, _i, _len;\n\n if (entries.length > 0) {\n for (_i = 0, _len = entries.length; _i < _len; _i++) {\n entry = entries[_i];\n\n if (entry.isFile) {\n entry.file(function (file) {\n if (_this.options.ignoreHiddenFiles && file.name.substring(0, 1) === '.') {\n return;\n }\n\n file.fullPath = \"\" + path + \"/\" + file.name;\n return _this.addFile(file);\n });\n } else if (entry.isDirectory) {\n _this._addFilesFromDirectory(entry, \"\" + path + \"/\" + entry.name);\n }\n }\n\n readEntries();\n }\n\n return null;\n }, errorHandler);\n };\n }(this);\n\n return readEntries();\n };\n\n Dropzone.prototype.accept = function (file, done) {\n if (file.size > this.options.maxFilesize * 1024 * 1024) {\n return done(this.options.dictFileTooBig.replace(\"{{filesize}}\", Math.round(file.size / 1024 / 10.24) / 100).replace(\"{{maxFilesize}}\", this.options.maxFilesize));\n } else if (!Dropzone.isValidFile(file, this.options.acceptedFiles)) {\n return done(this.options.dictInvalidFileType);\n } else if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {\n done(this.options.dictMaxFilesExceeded.replace(\"{{maxFiles}}\", this.options.maxFiles));\n return this.emit(\"maxfilesexceeded\", file);\n } else {\n return this.options.accept.call(this, file, done);\n }\n };\n\n Dropzone.prototype.addFile = function (file) {\n file.upload = {\n progress: 0,\n total: file.size,\n bytesSent: 0\n };\n this.files.push(file);\n file.status = Dropzone.ADDED;\n this.emit(\"addedfile\", file);\n\n this._enqueueThumbnail(file);\n\n return this.accept(file, function (_this) {\n return function (error) {\n if (error) {\n file.accepted = false;\n\n _this._errorProcessing([file], error);\n } else {\n file.accepted = true;\n\n if (_this.options.autoQueue) {\n _this.enqueueFile(file);\n }\n }\n\n return _this._updateMaxFilesReachedClass();\n };\n }(this));\n };\n\n Dropzone.prototype.enqueueFiles = function (files) {\n var file, _i, _len;\n\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n this.enqueueFile(file);\n }\n\n return null;\n };\n\n Dropzone.prototype.enqueueFile = function (file) {\n if (file.status === Dropzone.ADDED && file.accepted === true) {\n file.status = Dropzone.QUEUED;\n\n if (this.options.autoProcessQueue) {\n return setTimeout(function (_this) {\n return function () {\n return _this.processQueue();\n };\n }(this), 0);\n }\n } else {\n throw new Error(\"This file can't be queued because it has already been processed or was rejected.\");\n }\n };\n\n Dropzone.prototype._thumbnailQueue = [];\n Dropzone.prototype._processingThumbnail = false;\n\n Dropzone.prototype._enqueueThumbnail = function (file) {\n if (this.options.createImageThumbnails && file.type.match(/image.*/) && file.size <= this.options.maxThumbnailFilesize * 1024 * 1024) {\n this._thumbnailQueue.push(file);\n\n return setTimeout(function (_this) {\n return function () {\n return _this._processThumbnailQueue();\n };\n }(this), 0);\n }\n };\n\n Dropzone.prototype._processThumbnailQueue = function () {\n if (this._processingThumbnail || this._thumbnailQueue.length === 0) {\n return;\n }\n\n this._processingThumbnail = true;\n return this.createThumbnail(this._thumbnailQueue.shift(), function (_this) {\n return function () {\n _this._processingThumbnail = false;\n return _this._processThumbnailQueue();\n };\n }(this));\n };\n\n Dropzone.prototype.removeFile = function (file) {\n if (file.status === Dropzone.UPLOADING) {\n this.cancelUpload(file);\n }\n\n this.files = without(this.files, file);\n this.emit(\"removedfile\", file);\n\n if (this.files.length === 0) {\n return this.emit(\"reset\");\n }\n };\n\n Dropzone.prototype.removeAllFiles = function (cancelIfNecessary) {\n var file, _i, _len, _ref;\n\n if (cancelIfNecessary == null) {\n cancelIfNecessary = false;\n }\n\n _ref = this.files.slice();\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n if (file.status !== Dropzone.UPLOADING || cancelIfNecessary) {\n this.removeFile(file);\n }\n }\n\n return null;\n };\n\n Dropzone.prototype.createThumbnail = function (file, callback) {\n var fileReader;\n fileReader = new FileReader();\n\n fileReader.onload = function (_this) {\n return function () {\n if (file.type === \"image/svg+xml\") {\n _this.emit(\"thumbnail\", file, fileReader.result);\n\n if (callback != null) {\n callback();\n }\n\n return;\n }\n\n return _this.createThumbnailFromUrl(file, fileReader.result, callback);\n };\n }(this);\n\n return fileReader.readAsDataURL(file);\n };\n\n Dropzone.prototype.createThumbnailFromUrl = function (file, imageUrl, callback, crossOrigin) {\n var img;\n img = document.createElement(\"img\");\n\n if (crossOrigin) {\n img.crossOrigin = crossOrigin;\n }\n\n img.onload = function (_this) {\n return function () {\n var canvas, ctx, resizeInfo, thumbnail, _ref, _ref1, _ref2, _ref3;\n\n file.width = img.width;\n file.height = img.height;\n resizeInfo = _this.options.resize.call(_this, file);\n\n if (resizeInfo.trgWidth == null) {\n resizeInfo.trgWidth = resizeInfo.optWidth;\n }\n\n if (resizeInfo.trgHeight == null) {\n resizeInfo.trgHeight = resizeInfo.optHeight;\n }\n\n canvas = document.createElement(\"canvas\");\n ctx = canvas.getContext(\"2d\");\n canvas.width = resizeInfo.trgWidth;\n canvas.height = resizeInfo.trgHeight;\n drawImageIOSFix(ctx, img, (_ref = resizeInfo.srcX) != null ? _ref : 0, (_ref1 = resizeInfo.srcY) != null ? _ref1 : 0, resizeInfo.srcWidth, resizeInfo.srcHeight, (_ref2 = resizeInfo.trgX) != null ? _ref2 : 0, (_ref3 = resizeInfo.trgY) != null ? _ref3 : 0, resizeInfo.trgWidth, resizeInfo.trgHeight);\n thumbnail = canvas.toDataURL(\"image/png\");\n\n _this.emit(\"thumbnail\", file, thumbnail);\n\n if (callback != null) {\n return callback();\n }\n };\n }(this);\n\n if (callback != null) {\n img.onerror = callback;\n }\n\n return img.src = imageUrl;\n };\n\n Dropzone.prototype.processQueue = function () {\n var i, parallelUploads, processingLength, queuedFiles;\n parallelUploads = this.options.parallelUploads;\n processingLength = this.getUploadingFiles().length;\n i = processingLength;\n\n if (processingLength >= parallelUploads) {\n return;\n }\n\n queuedFiles = this.getQueuedFiles();\n\n if (!(queuedFiles.length > 0)) {\n return;\n }\n\n if (this.options.uploadMultiple) {\n return this.processFiles(queuedFiles.slice(0, parallelUploads - processingLength));\n } else {\n while (i < parallelUploads) {\n if (!queuedFiles.length) {\n return;\n }\n\n this.processFile(queuedFiles.shift());\n i++;\n }\n }\n };\n\n Dropzone.prototype.processFile = function (file) {\n return this.processFiles([file]);\n };\n\n Dropzone.prototype.processFiles = function (files) {\n var file, _i, _len;\n\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n file.processing = true;\n file.status = Dropzone.UPLOADING;\n this.emit(\"processing\", file);\n }\n\n if (this.options.uploadMultiple) {\n this.emit(\"processingmultiple\", files);\n }\n\n return this.uploadFiles(files);\n };\n\n Dropzone.prototype._getFilesWithXhr = function (xhr) {\n var file, files;\n return files = function () {\n var _i, _len, _ref, _results;\n\n _ref = this.files;\n _results = [];\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n file = _ref[_i];\n\n if (file.xhr === xhr) {\n _results.push(file);\n }\n }\n\n return _results;\n }.call(this);\n };\n\n Dropzone.prototype.cancelUpload = function (file) {\n var groupedFile, groupedFiles, _i, _j, _len, _len1, _ref;\n\n if (file.status === Dropzone.UPLOADING) {\n groupedFiles = this._getFilesWithXhr(file.xhr);\n\n for (_i = 0, _len = groupedFiles.length; _i < _len; _i++) {\n groupedFile = groupedFiles[_i];\n groupedFile.status = Dropzone.CANCELED;\n }\n\n file.xhr.abort();\n\n for (_j = 0, _len1 = groupedFiles.length; _j < _len1; _j++) {\n groupedFile = groupedFiles[_j];\n this.emit(\"canceled\", groupedFile);\n }\n\n if (this.options.uploadMultiple) {\n this.emit(\"canceledmultiple\", groupedFiles);\n }\n } else if ((_ref = file.status) === Dropzone.ADDED || _ref === Dropzone.QUEUED) {\n file.status = Dropzone.CANCELED;\n this.emit(\"canceled\", file);\n\n if (this.options.uploadMultiple) {\n this.emit(\"canceledmultiple\", [file]);\n }\n }\n\n if (this.options.autoProcessQueue) {\n return this.processQueue();\n }\n };\n\n resolveOption = function resolveOption() {\n var args, option;\n option = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\n\n if (typeof option === 'function') {\n return option.apply(this, args);\n }\n\n return option;\n };\n\n Dropzone.prototype.uploadFile = function (file) {\n return this.uploadFiles([file]);\n };\n\n Dropzone.prototype.uploadFiles = function (files) {\n var file, formData, handleError, headerName, headerValue, headers, i, input, inputName, inputType, key, method, option, progressObj, response, updateProgress, url, value, xhr, _i, _j, _k, _l, _len, _len1, _len2, _len3, _m, _ref, _ref1, _ref2, _ref3, _ref4, _ref5;\n\n xhr = new XMLHttpRequest();\n\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n file.xhr = xhr;\n }\n\n method = resolveOption(this.options.method, files);\n url = resolveOption(this.options.url, files);\n xhr.open(method, url, true);\n xhr.withCredentials = !!this.options.withCredentials;\n response = null;\n\n handleError = function (_this) {\n return function () {\n var _j, _len1, _results;\n\n _results = [];\n\n for (_j = 0, _len1 = files.length; _j < _len1; _j++) {\n file = files[_j];\n\n _results.push(_this._errorProcessing(files, response || _this.options.dictResponseError.replace(\"{{statusCode}}\", xhr.status), xhr));\n }\n\n return _results;\n };\n }(this);\n\n updateProgress = function (_this) {\n return function (e) {\n var allFilesFinished, progress, _j, _k, _l, _len1, _len2, _len3, _results;\n\n if (e != null) {\n progress = 100 * e.loaded / e.total;\n\n for (_j = 0, _len1 = files.length; _j < _len1; _j++) {\n file = files[_j];\n file.upload = {\n progress: progress,\n total: e.total,\n bytesSent: e.loaded\n };\n }\n } else {\n allFilesFinished = true;\n progress = 100;\n\n for (_k = 0, _len2 = files.length; _k < _len2; _k++) {\n file = files[_k];\n\n if (!(file.upload.progress === 100 && file.upload.bytesSent === file.upload.total)) {\n allFilesFinished = false;\n }\n\n file.upload.progress = progress;\n file.upload.bytesSent = file.upload.total;\n }\n\n if (allFilesFinished) {\n return;\n }\n }\n\n _results = [];\n\n for (_l = 0, _len3 = files.length; _l < _len3; _l++) {\n file = files[_l];\n\n _results.push(_this.emit(\"uploadprogress\", file, progress, file.upload.bytesSent));\n }\n\n return _results;\n };\n }(this);\n\n xhr.onload = function (_this) {\n return function (e) {\n var _ref;\n\n if (files[0].status === Dropzone.CANCELED) {\n return;\n }\n\n if (xhr.readyState !== 4) {\n return;\n }\n\n response = xhr.responseText;\n\n if (xhr.getResponseHeader(\"content-type\") && ~xhr.getResponseHeader(\"content-type\").indexOf(\"application/json\")) {\n try {\n response = JSON.parse(response);\n } catch (_error) {\n e = _error;\n response = \"Invalid JSON response from server.\";\n }\n }\n\n updateProgress();\n\n if (!(200 <= (_ref = xhr.status) && _ref < 300)) {\n return handleError();\n } else {\n return _this._finished(files, response, e);\n }\n };\n }(this);\n\n xhr.onerror = function (_this) {\n return function () {\n if (files[0].status === Dropzone.CANCELED) {\n return;\n }\n\n return handleError();\n };\n }(this);\n\n progressObj = (_ref = xhr.upload) != null ? _ref : xhr;\n progressObj.onprogress = updateProgress;\n headers = {\n \"Accept\": \"application/json\",\n \"Cache-Control\": \"no-cache\",\n \"X-Requested-With\": \"XMLHttpRequest\"\n };\n\n if (this.options.headers) {\n extend(headers, this.options.headers);\n }\n\n for (headerName in headers) {\n headerValue = headers[headerName];\n\n if (headerValue) {\n xhr.setRequestHeader(headerName, headerValue);\n }\n }\n\n formData = new FormData();\n\n if (this.options.params) {\n _ref1 = this.options.params;\n\n for (key in _ref1) {\n value = _ref1[key];\n formData.append(key, value);\n }\n }\n\n for (_j = 0, _len1 = files.length; _j < _len1; _j++) {\n file = files[_j];\n this.emit(\"sending\", file, xhr, formData);\n }\n\n if (this.options.uploadMultiple) {\n this.emit(\"sendingmultiple\", files, xhr, formData);\n }\n\n if (this.element.tagName === \"FORM\") {\n _ref2 = this.element.querySelectorAll(\"input, textarea, select, button\");\n\n for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {\n input = _ref2[_k];\n inputName = input.getAttribute(\"name\");\n inputType = input.getAttribute(\"type\");\n\n if (input.tagName === \"SELECT\" && input.hasAttribute(\"multiple\")) {\n _ref3 = input.options;\n\n for (_l = 0, _len3 = _ref3.length; _l < _len3; _l++) {\n option = _ref3[_l];\n\n if (option.selected) {\n formData.append(inputName, option.value);\n }\n }\n } else if (!inputType || (_ref4 = inputType.toLowerCase()) !== \"checkbox\" && _ref4 !== \"radio\" || input.checked) {\n formData.append(inputName, input.value);\n }\n }\n }\n\n for (i = _m = 0, _ref5 = files.length - 1; 0 <= _ref5 ? _m <= _ref5 : _m >= _ref5; i = 0 <= _ref5 ? ++_m : --_m) {\n formData.append(this._getParamName(i), files[i], this._renameFilename(files[i].name));\n }\n\n return this.submitRequest(xhr, formData, files);\n };\n\n Dropzone.prototype.submitRequest = function (xhr, formData, files) {\n return xhr.send(formData);\n };\n\n Dropzone.prototype._finished = function (files, responseText, e) {\n var file, _i, _len;\n\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n file.status = Dropzone.SUCCESS;\n this.emit(\"success\", file, responseText, e);\n this.emit(\"complete\", file);\n }\n\n if (this.options.uploadMultiple) {\n this.emit(\"successmultiple\", files, responseText, e);\n this.emit(\"completemultiple\", files);\n }\n\n if (this.options.autoProcessQueue) {\n return this.processQueue();\n }\n };\n\n Dropzone.prototype._errorProcessing = function (files, message, xhr) {\n var file, _i, _len;\n\n for (_i = 0, _len = files.length; _i < _len; _i++) {\n file = files[_i];\n file.status = Dropzone.ERROR;\n this.emit(\"error\", file, message, xhr);\n this.emit(\"complete\", file);\n }\n\n if (this.options.uploadMultiple) {\n this.emit(\"errormultiple\", files, message, xhr);\n this.emit(\"completemultiple\", files);\n }\n\n if (this.options.autoProcessQueue) {\n return this.processQueue();\n }\n };\n\n return Dropzone;\n }(Emitter);\n\n Dropzone.version = \"4.3.0\";\n Dropzone.options = {};\n\n Dropzone.optionsForElement = function (element) {\n if (element.getAttribute(\"id\")) {\n return Dropzone.options[camelize(element.getAttribute(\"id\"))];\n } else {\n return void 0;\n }\n };\n\n Dropzone.instances = [];\n\n Dropzone.forElement = function (element) {\n if (typeof element === \"string\") {\n element = document.querySelector(element);\n }\n\n if ((element != null ? element.dropzone : void 0) == null) {\n throw new Error(\"No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.\");\n }\n\n return element.dropzone;\n };\n\n Dropzone.autoDiscover = true;\n\n Dropzone.discover = function () {\n var checkElements, dropzone, dropzones, _i, _len, _results;\n\n if (document.querySelectorAll) {\n dropzones = document.querySelectorAll(\".dropzone\");\n } else {\n dropzones = [];\n\n checkElements = function checkElements(elements) {\n var el, _i, _len, _results;\n\n _results = [];\n\n for (_i = 0, _len = elements.length; _i < _len; _i++) {\n el = elements[_i];\n\n if (/(^| )dropzone($| )/.test(el.className)) {\n _results.push(dropzones.push(el));\n } else {\n _results.push(void 0);\n }\n }\n\n return _results;\n };\n\n checkElements(document.getElementsByTagName(\"div\"));\n checkElements(document.getElementsByTagName(\"form\"));\n }\n\n _results = [];\n\n for (_i = 0, _len = dropzones.length; _i < _len; _i++) {\n dropzone = dropzones[_i];\n\n if (Dropzone.optionsForElement(dropzone) !== false) {\n _results.push(new Dropzone(dropzone));\n } else {\n _results.push(void 0);\n }\n }\n\n return _results;\n };\n\n Dropzone.blacklistedBrowsers = [/opera.*Macintosh.*version\\/12/i];\n\n Dropzone.isBrowserSupported = function () {\n var capableBrowser, regex, _i, _len, _ref;\n\n capableBrowser = true;\n\n if (window.File && window.FileReader && window.FileList && window.Blob && window.FormData && document.querySelector) {\n if (!(\"classList\" in document.createElement(\"a\"))) {\n capableBrowser = false;\n } else {\n _ref = Dropzone.blacklistedBrowsers;\n\n for (_i = 0, _len = _ref.length; _i < _len; _i++) {\n regex = _ref[_i];\n\n if (regex.test(navigator.userAgent)) {\n capableBrowser = false;\n continue;\n }\n }\n }\n } else {\n capableBrowser = false;\n }\n\n return capableBrowser;\n };\n\n without = function without(list, rejectedItem) {\n var item, _i, _len, _results;\n\n _results = [];\n\n for (_i = 0, _len = list.length; _i < _len; _i++) {\n item = list[_i];\n\n if (item !== rejectedItem) {\n _results.push(item);\n }\n }\n\n return _results;\n };\n\n camelize = function camelize(str) {\n return str.replace(/[\\-_](\\w)/g, function (match) {\n return match.charAt(1).toUpperCase();\n });\n };\n\n Dropzone.createElement = function (string) {\n var div;\n div = document.createElement(\"div\");\n div.innerHTML = string;\n return div.childNodes[0];\n };\n\n Dropzone.elementInside = function (element, container) {\n if (element === container) {\n return true;\n }\n\n while (element = element.parentNode) {\n if (element === container) {\n return true;\n }\n }\n\n return false;\n };\n\n Dropzone.getElement = function (el, name) {\n var element;\n\n if (typeof el === \"string\") {\n element = document.querySelector(el);\n } else if (el.nodeType != null) {\n element = el;\n }\n\n if (element == null) {\n throw new Error(\"Invalid `\" + name + \"` option provided. Please provide a CSS selector or a plain HTML element.\");\n }\n\n return element;\n };\n\n Dropzone.getElements = function (els, name) {\n var e, el, elements, _i, _j, _len, _len1, _ref;\n\n if (els instanceof Array) {\n elements = [];\n\n try {\n for (_i = 0, _len = els.length; _i < _len; _i++) {\n el = els[_i];\n elements.push(this.getElement(el, name));\n }\n } catch (_error) {\n e = _error;\n elements = null;\n }\n } else if (typeof els === \"string\") {\n elements = [];\n _ref = document.querySelectorAll(els);\n\n for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) {\n el = _ref[_j];\n elements.push(el);\n }\n } else if (els.nodeType != null) {\n elements = [els];\n }\n\n if (!(elements != null && elements.length)) {\n throw new Error(\"Invalid `\" + name + \"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.\");\n }\n\n return elements;\n };\n\n Dropzone.confirm = function (question, accepted, rejected) {\n if (window.confirm(question)) {\n return accepted();\n } else if (rejected != null) {\n return rejected();\n }\n };\n\n Dropzone.isValidFile = function (file, acceptedFiles) {\n var baseMimeType, mimeType, validType, _i, _len;\n\n if (!acceptedFiles) {\n return true;\n }\n\n acceptedFiles = acceptedFiles.split(\",\");\n mimeType = file.type;\n baseMimeType = mimeType.replace(/\\/.*$/, \"\");\n\n for (_i = 0, _len = acceptedFiles.length; _i < _len; _i++) {\n validType = acceptedFiles[_i];\n validType = validType.trim();\n\n if (validType.charAt(0) === \".\") {\n if (file.name.toLowerCase().indexOf(validType.toLowerCase(), file.name.length - validType.length) !== -1) {\n return true;\n }\n } else if (/\\/\\*$/.test(validType)) {\n if (baseMimeType === validType.replace(/\\/.*$/, \"\")) {\n return true;\n }\n } else {\n if (mimeType === validType) {\n return true;\n }\n }\n }\n\n return false;\n };\n\n if (typeof jQuery !== \"undefined\" && jQuery !== null) {\n jQuery.fn.dropzone = function (options) {\n return this.each(function () {\n return new Dropzone(this, options);\n });\n };\n }\n\n if (typeof module !== \"undefined\" && module !== null) {\n module.exports = Dropzone;\n } else {\n window.Dropzone = Dropzone;\n }\n\n Dropzone.ADDED = \"added\";\n Dropzone.QUEUED = \"queued\";\n Dropzone.ACCEPTED = Dropzone.QUEUED;\n Dropzone.UPLOADING = \"uploading\";\n Dropzone.PROCESSING = Dropzone.UPLOADING;\n Dropzone.CANCELED = \"canceled\";\n Dropzone.ERROR = \"error\";\n Dropzone.SUCCESS = \"success\";\n /*\n \n Bugfix for iOS 6 and 7\n Source: http://stackoverflow.com/questions/11929099/html5-canvas-drawimage-ratio-bug-ios\n based on the work of https://github.com/stomita/ios-imagefile-megapixel\n */\n\n detectVerticalSquash = function detectVerticalSquash(img) {\n var alpha, canvas, ctx, data, ey, ih, iw, py, ratio, sy;\n iw = img.naturalWidth;\n ih = img.naturalHeight;\n canvas = document.createElement(\"canvas\");\n canvas.width = 1;\n canvas.height = ih;\n ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0);\n data = ctx.getImageData(0, 0, 1, ih).data;\n sy = 0;\n ey = ih;\n py = ih;\n\n while (py > sy) {\n alpha = data[(py - 1) * 4 + 3];\n\n if (alpha === 0) {\n ey = py;\n } else {\n sy = py;\n }\n\n py = ey + sy >> 1;\n }\n\n ratio = py / ih;\n\n if (ratio === 0) {\n return 1;\n } else {\n return ratio;\n }\n };\n\n drawImageIOSFix = function drawImageIOSFix(ctx, img, sx, sy, sw, sh, dx, dy, dw, dh) {\n var vertSquashRatio;\n vertSquashRatio = detectVerticalSquash(img);\n return ctx.drawImage(img, sx, sy, sw, sh, dx, dy, dw, dh / vertSquashRatio);\n };\n /*\n * contentloaded.js\n *\n * Author: Diego Perini (diego.perini at gmail.com)\n * Summary: cross-browser wrapper for DOMContentLoaded\n * Updated: 20101020\n * License: MIT\n * Version: 1.2\n *\n * URL:\n * http://javascript.nwbox.com/ContentLoaded/\n * http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE\n */\n\n\n contentLoaded = function contentLoaded(win, fn) {\n var add, doc, done, _init, _poll, pre, rem, root, top;\n\n done = false;\n top = true;\n doc = win.document;\n root = doc.documentElement;\n add = doc.addEventListener ? \"addEventListener\" : \"attachEvent\";\n rem = doc.addEventListener ? \"removeEventListener\" : \"detachEvent\";\n pre = doc.addEventListener ? \"\" : \"on\";\n\n _init = function init(e) {\n if (e.type === \"readystatechange\" && doc.readyState !== \"complete\") {\n return;\n }\n\n (e.type === \"load\" ? win : doc)[rem](pre + e.type, _init, false);\n\n if (!done && (done = true)) {\n return fn.call(win, e.type || e);\n }\n };\n\n _poll = function poll() {\n var e;\n\n try {\n root.doScroll(\"left\");\n } catch (_error) {\n e = _error;\n setTimeout(_poll, 50);\n return;\n }\n\n return _init(\"poll\");\n };\n\n if (doc.readyState !== \"complete\") {\n if (doc.createEventObject && root.doScroll) {\n try {\n top = !win.frameElement;\n } catch (_error) {}\n\n if (top) {\n _poll();\n }\n }\n\n doc[add](pre + \"DOMContentLoaded\", _init, false);\n doc[add](pre + \"readystatechange\", _init, false);\n return win[add](pre + \"load\", _init, false);\n }\n };\n\n Dropzone._autoDiscoverFunction = function () {\n if (Dropzone.autoDiscover) {\n return Dropzone.discover();\n }\n };\n\n contentLoaded(window, Dropzone._autoDiscoverFunction);\n}).call(this);","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] < 4 ? 1 : match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) redefine(target, key, src[key], options);\n return target;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar whitespaces = require('../internals/whitespaces');\n\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","// shim for using process in browser\nvar process = module.exports = {}; // cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\n\nfunction defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n}\n\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n})();\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n } // if setTimeout wasn't available but was latter defined\n\n\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\n\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n } // if clearTimeout wasn't available but was latter defined\n\n\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n}\n\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n\n draining = false;\n\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n\n while (len) {\n currentQueue = queue;\n queue = [];\n\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n\n queueIndex = -1;\n len = queue.length;\n }\n\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n\n queue.push(new Item(fun, args));\n\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n}; // v8 likes predictible objects\n\n\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\n\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\n\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) {\n return [];\n};\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () {\n return '/';\n};\n\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\nprocess.umask = function () {\n return 0;\n};","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","module.exports = {};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","module.exports = {};\n","var classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator);\n throw error;\n }\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport AjaxForm from \"./ajax_form.js.jsx\"\nimport Humanize from \"humanize-plus\"\n\nclass ActionItemForm extends React.Component {\n static propTypes = {\n actionableId: PropTypes.number,\n taggableUsers: PropTypes.array,\n userId: PropTypes.number,\n name: PropTypes.string,\n action: PropTypes.string,\n inputName: PropTypes.string\n }\n\n componentDidMount() {\n var taggableUsers = this.props.taggableUsers;\n $(\"#demo-input\").tokenInput(taggableUsers);\n\n // If the browser supports HTML5 date pickers & is a touch device, use it\n // otherwise, fallback to jquery-ui for a consistent ux\n var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\n if (!iOS || !Modernizr.inputtypes.date) {\n $('input[type=date]')\n .attr('type', 'text')\n .datepicker({\n // Consistent format with the HTML5 picker\n format: 'yyyy-mm-dd',\n zIndex: 2000\n });\n }\n }\n\n renderActionItemTaggedUsers(taggedUsers) {\n var renderedTaggedUsers;\n if (taggedUsers.length === 0) {\n renderedTaggedUsers =\n \n Tagged: None.\n
;\n } else {\n var taggedUserEmails = [];\n for (var i = 0; i < taggedUsers.length; i++) {\n var taggedUser = taggedUsers[i];\n taggedUserEmails.push(\n taggedUser['full_name_and_agency']\n );\n }\n renderedTaggedUsers =\n \n Tagged: {taggedUserEmails.join(\", \")}\n
;\n }\n return renderedTaggedUsers;\n }\n\n renderActionItemForm () {\n return (\n {window.location.reload(true);}} className=\"disable-after-click\" method=\"post\">\n \n \n \n
\n \n \n );\n }\n\n render() {\n return (\n \n {this.renderActionItemForm()}\n
\n );\n }\n}\n\nexport default ActionItemForm","/** @license React v17.0.2\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar l = require(\"object-assign\"),\n n = 60103,\n p = 60106;\n\nexports.Fragment = 60107;\nexports.StrictMode = 60108;\nexports.Profiler = 60114;\nvar q = 60109,\n r = 60110,\n t = 60112;\nexports.Suspense = 60113;\nvar u = 60115,\n v = 60116;\n\nif (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n exports.Fragment = w(\"react.fragment\");\n exports.StrictMode = w(\"react.strict_mode\");\n exports.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n exports.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n}\n\nvar x = \"function\" === typeof Symbol && Symbol.iterator;\n\nfunction y(a) {\n if (null === a || \"object\" !== _typeof(a)) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n}\n\nfunction z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) {\n b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n }\n\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\n\nvar A = {\n isMounted: function isMounted() {\n return !1;\n },\n enqueueForceUpdate: function enqueueForceUpdate() {},\n enqueueReplaceState: function enqueueReplaceState() {},\n enqueueSetState: function enqueueSetState() {}\n},\n B = {};\n\nfunction C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n}\n\nC.prototype.isReactComponent = {};\n\nC.prototype.setState = function (a, b) {\n if (\"object\" !== _typeof(a) && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n};\n\nC.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n};\n\nfunction D() {}\n\nD.prototype = C.prototype;\n\nfunction E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n}\n\nvar F = E.prototype = new D();\nF.constructor = E;\nl(F, C.prototype);\nF.isPureReactComponent = !0;\nvar G = {\n current: null\n},\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n};\n\nfunction J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) {\n H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n }\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) {\n f[m] = arguments[m + 2];\n }\n\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) {\n void 0 === d[e] && (d[e] = g[e]);\n }\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n}\n\nfunction K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n}\n\nfunction L(a) {\n return \"object\" === _typeof(a) && null !== a && a.$$typeof === n;\n}\n\nfunction escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n}\n\nvar M = /\\/+/g;\n\nfunction N(a, b) {\n return \"object\" === _typeof(a) && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n}\n\nfunction O(a, b, c, e, d) {\n var k = _typeof(a);\n\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) {\n k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);\n } else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n}\n\nfunction P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n}\n\nfunction Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n\n if (1 === a._status) return a._result;\n throw a._result;\n}\n\nvar R = {\n current: null\n};\n\nfunction S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n}\n\nvar T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n};\nexports.Children = {\n map: P,\n forEach: function forEach(a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function count(a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function toArray(a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function only(a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n};\nexports.Component = C;\nexports.PureComponent = E;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n\nexports.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n\n for (f in b) {\n H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n }\n\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n\n for (var m = 0; m < f; m++) {\n g[m] = arguments[m + 2];\n }\n\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n};\n\nexports.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n};\n\nexports.createElement = J;\n\nexports.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n};\n\nexports.createRef = function () {\n return {\n current: null\n };\n};\n\nexports.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n};\n\nexports.isValidElement = L;\n\nexports.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n};\n\nexports.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n};\n\nexports.useCallback = function (a, b) {\n return S().useCallback(a, b);\n};\n\nexports.useContext = function (a, b) {\n return S().useContext(a, b);\n};\n\nexports.useDebugValue = function () {};\n\nexports.useEffect = function (a, b) {\n return S().useEffect(a, b);\n};\n\nexports.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n};\n\nexports.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n};\n\nexports.useMemo = function (a, b) {\n return S().useMemo(a, b);\n};\n\nexports.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n};\n\nexports.useRef = function (a) {\n return S().useRef(a);\n};\n\nexports.useState = function (a) {\n return S().useState(a);\n};\n\nexports.version = \"17.0.2\";","import React from 'react'\nimport PropTypes from 'prop-types'\n\n// Change workflow state\n// Afrom r and remove us\nimport Humanize from \"humanize-plus\"\nimport AjaxForm from \"./ajax_form.js.jsx\"\nimport Comments from \"./comments.jsx\"\n\nclass ActionItemTags extends React.Component {\n static propTypes = {\n actionItem: PropTypes.object,\n actionItemUsers: PropTypes.array,\n actionItemUpdateUrl: PropTypes.string,\n updateActionItemUserUrl: PropTypes.string,\n taggableUsers: PropTypes.array,\n actionItemWorktypes: PropTypes.array,\n taggableWorktypes: PropTypes.array\n }\n\n componentDidMount() {\n $(\"#demo-input-pre-populated\").tokenInput(this.props.taggableUsers, {\n prePopulate: this.props.actionItemUsers\n });\n\n $(\"#worktype-input-pre-populated\").tokenInput(this.props.taggableWorktypes, {\n prePopulate: this.props.actionItemWorktypes\n });\n }\n\n optionUser() {\n return (\n \n );\n }\n\n optionWorktype() {\n return (\n \n );\n }\n\n renderWorktypes() {\n var worktypes = []\n this.props.taggableWorktypes.forEach(function(element) {\n worktypes.push(element.name)\n })\n return (\n \n Available tags: {worktypes.join(\", \")}\n
\n
\n )\n }\n\n render() {\n var humanizedWorkflowState = Humanize.capitalize(this.props.actionItem.workflow_state.replace(\"_\", \" \"));\n return (\n \n
\n
\n {this.optionUser()}\n \n Update Worktype
\n
\n {this.renderWorktypes()}\n {this.optionWorktype()}\n \n \n
\n );\n }\n}\n\nexport default ActionItemTags\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\n// Change workflow state\n// Add new user and remove user\nimport Humanize from \"humanize-plus\"\nimport AjaxForm from \"./ajax_form.js.jsx\"\nimport Comments from \"./comments.jsx\"\n\nclass ActionItemUpdateWorkflowState extends React.Component {\n static propTypes = {\n actionItem: PropTypes.object,\n actionItemUpdateUrl: PropTypes.string,\n updateActionItemUserUrl: PropTypes.string,\n }\n\n componentDidMount() {\n }\n\n changeWorkflowState(choice, color, action) {\n var inlineStyle = {display: 'inline'};\n return (\n \n \n \n \n {action + \" Task\"} \n \n );\n }\n\n optionWorkflowState() {\n var inlineStyle = {display: 'inline'};\n switch (this.props.actionItem.workflow_state) {\n case 'new': return (\n \n
\n {this.changeWorkflowState('acknowledge!', 'warning', 'Acknowledge')}\n
\n Acknowledge a task to let your collegues know that you're aware of the task and will begin work on it at your earliest convenience.\n
\n
\n
\n {this.changeWorkflowState('close!', 'secondary', 'Close')}\n
\n Close out a task when there's nothing left for you to do or have put the task on hold. Indicate in the comments why the task was closed.\n
\n
\n
\n );\n case 'acknowledged': return (\n \n
\n
\n {this.changeWorkflowState('start!', 'info', 'Start')}\n
\n Start a task when you've actually begun work on the task; this helps people know you're on the job.\n
\n
\n
\n {this.changeWorkflowState('close!', 'secondary', 'Close')}\n
\n Close out a task when there's nothing left for you to do or have put the task on hold. Indicate in the comments why the task was closed.\n
\n
\n
\n
\n );\n case 'in_progress': return (\n \n
\n
\n {this.changeWorkflowState('complete!', 'success', 'Complete')}\n
\n Complete the task when you've finished up your work.\n
\n
\n
\n {this.changeWorkflowState('close!', 'secondary', 'Close')}\n
\n Close out a task when there's nothing left for you to do or have put the task on hold. Indicate in the comments why the task was closed.\n
\n
\n
\n
\n );\n case 'completed': return (\n \n
\n This task has been completed. Reopen the task when you're ready to pick up this task again.\n
\n {this.changeWorkflowState('reopen!', 'secondary', 'Reopen')}\n
\n
\n );\n case 'closed': return (\n \n
\n This task has been closed. Reopen the task when you're ready to pick up this task again.\n \n {this.changeWorkflowState('reopen!', 'secondary', 'Reopen')}\n
\n
\n );\n }\n }\n\n evaluateCompletion(status) {\n if(status === 'new') {\n if(['new', 'acknowledged', 'in_progress', 'completed'].includes(this.props.actionItem.workflow_state)) {\n return \"is-complete\";\n }\n }else if(status === 'acknowledged') {\n if(['acknowledged', 'in_progress', 'completed'].includes(this.props.actionItem.workflow_state)) {\n return \"is-complete\";\n }\n }else if(status === 'in_progress') {\n if(['in_progress', 'completed'].includes(this.props.actionItem.workflow_state)) {\n return \"is-complete\";\n }\n }else if(status === 'completed') {\n if(['completed'].includes(this.props.actionItem.workflow_state)) {\n return \"is-complete\";\n }\n }\n }\n\n render() {\n return (\n \n
Change status
\n
Keep the status of the task up to date. Whenever you update the status by submitting an update below, we will notify anyone tagged that you're working on this task and keep them updated on your progress.
\n
\n \n \n New \n \n \n \n Acknowledged \n \n \n \n In Progress \n \n \n \n Completed \n \n \n
\n {this.optionWorkflowState()}\n
\n );\n }\n}\n\nexport default ActionItemUpdateWorkflowState\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport AjaxForm from \"./ajax_form.js.jsx\"\n\nclass AddTag extends React.Component {\n static propTypes = {\n updateUrl: PropTypes.string,\n taggableTypes: PropTypes.array,\n currentTags: PropTypes.array,\n onlyInput: PropTypes.bool\n }\n\n componentDidMount() {\n $(\"#tag-input-pre-populated\").tokenInput(this.props.taggableTypes, {\n prePopulate: this.props.currentTags\n });\n }\n\n optionTags() {\n return (\n \n \n \n \n Update \n
\n \n );\n }\n\n optionInput() {\n return (\n \n );\n }\n\n\n render() {\n if (this.props.onlyInput) {\n return (\n \n {this.optionInput()}\n
\n )\n } else {\n return (\n \n {this.optionTags()}\n
\n )\n }\n }\n\n}\n\nexport default AddTag\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\n/*jshint esversion: 6 */\n\nimport autocomplete from \"jquery-autocomplete\"\n\nclass AutocompleteInput extends React.Component {\n static propTypes = {\n autocompleteOptions: PropTypes.object,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.string,\n placeholder: PropTypes.string,\n class: PropTypes.string\n }\n\n constructor(props) {\n super(props)\n this.state = {\n query: this.props.value\n }\n }\n\n changeQuery(e) {\n this.setState({\n query: e.target.value\n });\n }\n\n componentDidMount() {\n if (!this.props.autocompleteOptions) {\n console.error(\"There's no autocomplete options. Remember to `include Nav` in the controller\");\n }\n\n var list = Object.keys(this.props.autocompleteOptions).map(x => {\n return {\n text: x + \" - \" + this.props.autocompleteOptions[x]\n }\n });\n $(\"#\"+this.props.id+\"_autocomplete\").autocomplete({\n list: list,\n matcher: function(typed) {\n if (!typed || typed.length === 0) {\n return undefined;\n }\n var reg = new RegExp(\"\\\\b\" + typed, \"i\");\n reg.typed = typed;\n return reg;\n },\n match: function(element, matcher) {\n if (!matcher) {\n return false;\n }\n var typed = matcher.typed;\n element.typed = typed;\n element.pre_match = element.text;\n element.match = element.post_match = '';\n var match_at = element.text.search(matcher);\n if (match_at != -1) {\n element.pre_match = element.text.slice(0, match_at);\n element.match = element.text.slice(match_at, match_at + typed.length);\n element.post_match = element.text.slice(match_at + typed.length);\n return true;\n }\n return false;\n },\n insertText: function(obj) {\n return obj.text;\n }\n });\n\n $(\"#\"+this.props.id+\"_autocomplete\").bind(\n \"activated.autocomplete\",\n this.changeQuery\n );\n }\n\n render() {\n var value = this.state.query.split(\" - \")[0];\n return (\n \n \n \n
\n );\n }\n}\n\nexport default AutocompleteInput\n","/**\r\n * @preserve jQuery Autocomplete plugin v1.2.1\r\n * @homepage http://xdsoft.net/jqplugins/autocomplete/\r\n * (c) 2014, Chupurnov Valeriy \r\n */\n(function ($) {\n 'use strict';\n\n var ARROWLEFT = 37,\n ARROWRIGHT = 39,\n ARROWUP = 38,\n ARROWDOWN = 40,\n TAB = 9,\n CTRLKEY = 17,\n SHIFTKEY = 16,\n DEL = 46,\n ENTER = 13,\n ESC = 27,\n BACKSPACE = 8,\n AKEY = 65,\n CKEY = 67,\n VKEY = 86,\n ZKEY = 90,\n YKEY = 89,\n defaultSetting = {},\n currentInput = false,\n ctrlDown = false,\n shiftDown = false,\n interval_for_visibility,\n publics = {},\n accent_map = {\n 'ẚ': 'a',\n 'Á': 'a',\n 'á': 'a',\n 'À': 'a',\n 'à': 'a',\n 'Ă': 'a',\n 'ă': 'a',\n 'Ắ': 'a',\n 'ắ': 'a',\n 'Ằ': 'a',\n 'ằ': 'a',\n 'Ẵ': 'a',\n 'ẵ': 'a',\n 'Ẳ': 'a',\n 'Ẫ': 'a',\n 'ẫ': 'a',\n 'Ẩ': 'a',\n 'ẩ': 'a',\n 'Ǎ': 'a',\n 'ǎ': 'a',\n 'Å': 'a',\n 'å': 'a',\n 'Ǻ': 'a',\n 'ǻ': 'a',\n 'Ä': 'a',\n 'ä': 'a',\n 'Ǟ': 'a',\n 'ǟ': 'a',\n 'Ã': 'a',\n 'ã': 'a',\n 'Ȧ': 'a',\n 'ȧ': 'a',\n 'Ǡ': 'a',\n 'ǡ': 'a',\n 'Ą': 'a',\n 'ą': 'a',\n 'Ā': 'a',\n 'ā': 'a',\n 'Ả': 'a',\n 'ả': 'a',\n 'Ȁ': 'a',\n 'ȁ': 'a',\n 'Ȃ': 'a',\n 'ȃ': 'a',\n 'Ạ': 'a',\n 'ạ': 'a',\n 'Ặ': 'a',\n 'ặ': 'a',\n 'Ậ': 'a',\n 'ậ': 'a',\n 'Ḁ': 'a',\n 'ḁ': 'a',\n 'Ⱥ': 'a',\n 'ⱥ': 'a',\n 'Ǽ': 'a',\n 'ǽ': 'a',\n 'Ǣ': 'a',\n 'ǣ': 'a',\n 'Ḃ': 'b',\n 'ḃ': 'b',\n 'Ḅ': 'b',\n 'ḅ': 'b',\n 'Ḇ': 'b',\n 'ḇ': 'b',\n 'Ƀ': 'b',\n 'ƀ': 'b',\n 'ᵬ': 'b',\n 'Ɓ': 'b',\n 'ɓ': 'b',\n 'Ƃ': 'b',\n 'ƃ': 'b',\n 'Ć': 'c',\n 'ć': 'c',\n 'Ĉ': 'c',\n 'ĉ': 'c',\n 'Č': 'c',\n 'č': 'c',\n 'Ċ': 'c',\n 'ċ': 'c',\n 'Ç': 'c',\n 'ç': 'c',\n 'Ḉ': 'c',\n 'ḉ': 'c',\n 'Ȼ': 'c',\n 'ȼ': 'c',\n 'Ƈ': 'c',\n 'ƈ': 'c',\n 'ɕ': 'c',\n 'Ď': 'd',\n 'ď': 'd',\n 'Ḋ': 'd',\n 'ḋ': 'd',\n 'Ḑ': 'd',\n 'ḑ': 'd',\n 'Ḍ': 'd',\n 'ḍ': 'd',\n 'Ḓ': 'd',\n 'ḓ': 'd',\n 'Ḏ': 'd',\n 'ḏ': 'd',\n 'Đ': 'd',\n 'đ': 'd',\n 'ᵭ': 'd',\n 'Ɖ': 'd',\n 'ɖ': 'd',\n 'Ɗ': 'd',\n 'ɗ': 'd',\n 'Ƌ': 'd',\n 'ƌ': 'd',\n 'ȡ': 'd',\n 'ð': 'd',\n 'É': 'e',\n 'Ə': 'e',\n 'Ǝ': 'e',\n 'ǝ': 'e',\n 'é': 'e',\n 'È': 'e',\n 'è': 'e',\n 'Ĕ': 'e',\n 'ĕ': 'e',\n 'Ê': 'e',\n 'ê': 'e',\n 'Ế': 'e',\n 'ế': 'e',\n 'Ề': 'e',\n 'ề': 'e',\n 'Ễ': 'e',\n 'ễ': 'e',\n 'Ể': 'e',\n 'ể': 'e',\n 'Ě': 'e',\n 'ě': 'e',\n 'Ë': 'e',\n 'ë': 'e',\n 'Ẽ': 'e',\n 'ẽ': 'e',\n 'Ė': 'e',\n 'ė': 'e',\n 'Ȩ': 'e',\n 'ȩ': 'e',\n 'Ḝ': 'e',\n 'ḝ': 'e',\n 'Ę': 'e',\n 'ę': 'e',\n 'Ē': 'e',\n 'ē': 'e',\n 'Ḗ': 'e',\n 'ḗ': 'e',\n 'Ḕ': 'e',\n 'ḕ': 'e',\n 'Ẻ': 'e',\n 'ẻ': 'e',\n 'Ȅ': 'e',\n 'ȅ': 'e',\n 'Ȇ': 'e',\n 'ȇ': 'e',\n 'Ẹ': 'e',\n 'ẹ': 'e',\n 'Ệ': 'e',\n 'ệ': 'e',\n 'Ḙ': 'e',\n 'ḙ': 'e',\n 'Ḛ': 'e',\n 'ḛ': 'e',\n 'Ɇ': 'e',\n 'ɇ': 'e',\n 'ɚ': 'e',\n 'ɝ': 'e',\n 'Ḟ': 'f',\n 'ḟ': 'f',\n 'ᵮ': 'f',\n 'Ƒ': 'f',\n 'ƒ': 'f',\n 'Ǵ': 'g',\n 'ǵ': 'g',\n 'Ğ': 'g',\n 'ğ': 'g',\n 'Ĝ': 'g',\n 'ĝ': 'g',\n 'Ǧ': 'g',\n 'ǧ': 'g',\n 'Ġ': 'g',\n 'ġ': 'g',\n 'Ģ': 'g',\n 'ģ': 'g',\n 'Ḡ': 'g',\n 'ḡ': 'g',\n 'Ǥ': 'g',\n 'ǥ': 'g',\n 'Ɠ': 'g',\n 'ɠ': 'g',\n 'Ĥ': 'h',\n 'ĥ': 'h',\n 'Ȟ': 'h',\n 'ȟ': 'h',\n 'Ḧ': 'h',\n 'ḧ': 'h',\n 'Ḣ': 'h',\n 'ḣ': 'h',\n 'Ḩ': 'h',\n 'ḩ': 'h',\n 'Ḥ': 'h',\n 'ḥ': 'h',\n 'Ḫ': 'h',\n 'ḫ': 'h',\n 'H': 'h',\n '̱': 'h',\n 'ẖ': 'h',\n 'Ħ': 'h',\n 'ħ': 'h',\n 'Ⱨ': 'h',\n 'ⱨ': 'h',\n 'Í': 'i',\n 'í': 'i',\n 'Ì': 'i',\n 'ì': 'i',\n 'Ĭ': 'i',\n 'ĭ': 'i',\n 'Î': 'i',\n 'î': 'i',\n 'Ǐ': 'i',\n 'ǐ': 'i',\n 'Ï': 'i',\n 'ï': 'i',\n 'Ḯ': 'i',\n 'ḯ': 'i',\n 'Ĩ': 'i',\n 'ĩ': 'i',\n 'İ': 'i',\n 'i': 'i',\n 'Į': 'i',\n 'į': 'i',\n 'Ī': 'i',\n 'ī': 'i',\n 'Ỉ': 'i',\n 'ỉ': 'i',\n 'Ȉ': 'i',\n 'ȉ': 'i',\n 'Ȋ': 'i',\n 'ȋ': 'i',\n 'Ị': 'i',\n 'ị': 'i',\n 'Ḭ': 'i',\n 'ḭ': 'i',\n 'I': 'i',\n 'ı': 'i',\n 'Ɨ': 'i',\n 'ɨ': 'i',\n 'Ĵ': 'j',\n 'ĵ': 'j',\n 'J': 'j',\n '̌': 'j',\n 'ǰ': 'j',\n 'ȷ': 'j',\n 'Ɉ': 'j',\n 'ɉ': 'j',\n 'ʝ': 'j',\n 'ɟ': 'j',\n 'ʄ': 'j',\n 'Ḱ': 'k',\n 'ḱ': 'k',\n 'Ǩ': 'k',\n 'ǩ': 'k',\n 'Ķ': 'k',\n 'ķ': 'k',\n 'Ḳ': 'k',\n 'ḳ': 'k',\n 'Ḵ': 'k',\n 'ḵ': 'k',\n 'Ƙ': 'k',\n 'ƙ': 'k',\n 'Ⱪ': 'k',\n 'ⱪ': 'k',\n 'Ĺ': 'a',\n 'ĺ': 'l',\n 'Ľ': 'l',\n 'ľ': 'l',\n 'Ļ': 'l',\n 'ļ': 'l',\n 'Ḷ': 'l',\n 'ḷ': 'l',\n 'Ḹ': 'l',\n 'ḹ': 'l',\n 'Ḽ': 'l',\n 'ḽ': 'l',\n 'Ḻ': 'l',\n 'ḻ': 'l',\n 'Ł': 'l',\n 'ł': 'l',\n '̣': 'l',\n 'Ŀ': 'l',\n 'ŀ': 'l',\n 'Ƚ': 'l',\n 'ƚ': 'l',\n 'Ⱡ': 'l',\n 'ⱡ': 'l',\n 'Ɫ': 'l',\n 'ɫ': 'l',\n 'ɬ': 'l',\n 'ɭ': 'l',\n 'ȴ': 'l',\n 'Ḿ': 'm',\n 'ḿ': 'm',\n 'Ṁ': 'm',\n 'ṁ': 'm',\n 'Ṃ': 'm',\n 'ṃ': 'm',\n 'ɱ': 'm',\n 'Ń': 'n',\n 'ń': 'n',\n 'Ǹ': 'n',\n 'ǹ': 'n',\n 'Ň': 'n',\n 'ň': 'n',\n 'Ñ': 'n',\n 'ñ': 'n',\n 'Ṅ': 'n',\n 'ṅ': 'n',\n 'Ņ': 'n',\n 'ņ': 'n',\n 'Ṇ': 'n',\n 'ṇ': 'n',\n 'Ṋ': 'n',\n 'ṋ': 'n',\n 'Ṉ': 'n',\n 'ṉ': 'n',\n 'Ɲ': 'n',\n 'ɲ': 'n',\n 'Ƞ': 'n',\n 'ƞ': 'n',\n 'ɳ': 'n',\n 'ȵ': 'n',\n 'N': 'n',\n '̈': 'n',\n 'n': 'n',\n 'Ó': 'o',\n 'ó': 'o',\n 'Ò': 'o',\n 'ò': 'o',\n 'Ŏ': 'o',\n 'ŏ': 'o',\n 'Ô': 'o',\n 'ô': 'o',\n 'Ố': 'o',\n 'ố': 'o',\n 'Ồ': 'o',\n 'ồ': 'o',\n 'Ỗ': 'o',\n 'ỗ': 'o',\n 'Ổ': 'o',\n 'ổ': 'o',\n 'Ǒ': 'o',\n 'ǒ': 'o',\n 'Ö': 'o',\n 'ö': 'o',\n 'Ȫ': 'o',\n 'ȫ': 'o',\n 'Ő': 'o',\n 'ő': 'o',\n 'Õ': 'o',\n 'õ': 'o',\n 'Ṍ': 'o',\n 'ṍ': 'o',\n 'Ṏ': 'o',\n 'ṏ': 'o',\n 'Ȭ': 'o',\n 'ȭ': 'o',\n 'Ȯ': 'o',\n 'ȯ': 'o',\n 'Ȱ': 'o',\n 'ȱ': 'o',\n 'Ø': 'o',\n 'ø': 'o',\n 'Ǿ': 'o',\n 'ǿ': 'o',\n 'Ǫ': 'o',\n 'ǫ': 'o',\n 'Ǭ': 'o',\n 'ǭ': 'o',\n 'Ō': 'o',\n 'ō': 'o',\n 'Ṓ': 'o',\n 'ṓ': 'o',\n 'Ṑ': 'o',\n 'ṑ': 'o',\n 'Ỏ': 'o',\n 'ỏ': 'o',\n 'Ȍ': 'o',\n 'ȍ': 'o',\n 'Ȏ': 'o',\n 'ȏ': 'o',\n 'Ơ': 'o',\n 'ơ': 'o',\n 'Ớ': 'o',\n 'ớ': 'o',\n 'Ờ': 'o',\n 'ờ': 'o',\n 'Ỡ': 'o',\n 'ỡ': 'o',\n 'Ở': 'o',\n 'ở': 'o',\n 'Ợ': 'o',\n 'ợ': 'o',\n 'Ọ': 'o',\n 'ọ': 'o',\n 'Ộ': 'o',\n 'ộ': 'o',\n 'Ɵ': 'o',\n 'ɵ': 'o',\n 'Ṕ': 'p',\n 'ṕ': 'p',\n 'Ṗ': 'p',\n 'ṗ': 'p',\n 'Ᵽ': 'p',\n 'Ƥ': 'p',\n 'ƥ': 'p',\n 'P': 'p',\n '̃': 'p',\n 'p': 'p',\n 'ʠ': 'q',\n 'Ɋ': 'q',\n 'ɋ': 'q',\n 'Ŕ': 'r',\n 'ŕ': 'r',\n 'Ř': 'r',\n 'ř': 'r',\n 'Ṙ': 'r',\n 'ṙ': 'r',\n 'Ŗ': 'r',\n 'ŗ': 'r',\n 'Ȑ': 'r',\n 'ȑ': 'r',\n 'Ȓ': 'r',\n 'ȓ': 'r',\n 'Ṛ': 'r',\n 'ṛ': 'r',\n 'Ṝ': 'r',\n 'ṝ': 'r',\n 'Ṟ': 'r',\n 'ṟ': 'r',\n 'Ɍ': 'r',\n 'ɍ': 'r',\n 'ᵲ': 'r',\n 'ɼ': 'r',\n 'Ɽ': 'r',\n 'ɽ': 'r',\n 'ɾ': 'r',\n 'ᵳ': 'r',\n 'ß': 's',\n 'Ś': 's',\n 'ś': 's',\n 'Ṥ': 's',\n 'ṥ': 's',\n 'Ŝ': 's',\n 'ŝ': 's',\n 'Š': 's',\n 'š': 's',\n 'Ṧ': 's',\n 'ṧ': 's',\n 'Ṡ': 's',\n 'ṡ': 's',\n 'ẛ': 's',\n 'Ş': 's',\n 'ş': 's',\n 'Ṣ': 's',\n 'ṣ': 's',\n 'Ṩ': 's',\n 'ṩ': 's',\n 'Ș': 's',\n 'ș': 's',\n 'ʂ': 's',\n 'S': 's',\n '̩': 's',\n 's': 's',\n 'Þ': 't',\n 'þ': 't',\n 'Ť': 't',\n 'ť': 't',\n 'T': 't',\n 'ẗ': 't',\n 'Ṫ': 't',\n 'ṫ': 't',\n 'Ţ': 't',\n 'ţ': 't',\n 'Ṭ': 't',\n 'ṭ': 't',\n 'Ț': 't',\n 'ț': 't',\n 'Ṱ': 't',\n 'ṱ': 't',\n 'Ṯ': 't',\n 'ṯ': 't',\n 'Ŧ': 't',\n 'ŧ': 't',\n 'Ⱦ': 't',\n 'ⱦ': 't',\n 'ᵵ': 't',\n 'ƫ': 't',\n 'Ƭ': 't',\n 'ƭ': 't',\n 'Ʈ': 't',\n 'ʈ': 't',\n 'ȶ': 't',\n 'Ú': 'u',\n 'ú': 'u',\n 'Ù': 'u',\n 'ù': 'u',\n 'Ŭ': 'u',\n 'ŭ': 'u',\n 'Û': 'u',\n 'û': 'u',\n 'Ǔ': 'u',\n 'ǔ': 'u',\n 'Ů': 'u',\n 'ů': 'u',\n 'Ü': 'u',\n 'ü': 'u',\n 'Ǘ': 'u',\n 'ǘ': 'u',\n 'Ǜ': 'u',\n 'ǜ': 'u',\n 'Ǚ': 'u',\n 'ǚ': 'u',\n 'Ǖ': 'u',\n 'ǖ': 'u',\n 'Ű': 'u',\n 'ű': 'u',\n 'Ũ': 'u',\n 'ũ': 'u',\n 'Ṹ': 'u',\n 'ṹ': 'u',\n 'Ų': 'u',\n 'ų': 'u',\n 'Ū': 'u',\n 'ū': 'u',\n 'Ṻ': 'u',\n 'ṻ': 'u',\n 'Ủ': 'u',\n 'ủ': 'u',\n 'Ȕ': 'u',\n 'ȕ': 'u',\n 'Ȗ': 'u',\n 'ȗ': 'u',\n 'Ư': 'u',\n 'ư': 'u',\n 'Ứ': 'u',\n 'ứ': 'u',\n 'Ừ': 'u',\n 'ừ': 'u',\n 'Ữ': 'u',\n 'ữ': 'u',\n 'Ử': 'u',\n 'ử': 'u',\n 'Ự': 'u',\n 'ự': 'u',\n 'Ụ': 'u',\n 'ụ': 'u',\n 'Ṳ': 'u',\n 'ṳ': 'u',\n 'Ṷ': 'u',\n 'ṷ': 'u',\n 'Ṵ': 'u',\n 'ṵ': 'u',\n 'Ʉ': 'u',\n 'ʉ': 'u',\n 'Ṽ': 'v',\n 'ṽ': 'v',\n 'Ṿ': 'v',\n 'ṿ': 'v',\n 'Ʋ': 'v',\n 'ʋ': 'v',\n 'Ẃ': 'w',\n 'ẃ': 'w',\n 'Ẁ': 'w',\n 'ẁ': 'w',\n 'Ŵ': 'w',\n 'ŵ': 'w',\n 'W': 'w',\n '̊': 'w',\n 'ẘ': 'w',\n 'Ẅ': 'w',\n 'ẅ': 'w',\n 'Ẇ': 'w',\n 'ẇ': 'w',\n 'Ẉ': 'w',\n 'ẉ': 'w',\n 'Ẍ': 'x',\n 'ẍ': 'x',\n 'Ẋ': 'x',\n 'ẋ': 'x',\n 'Ý': 'y',\n 'ý': 'y',\n 'Ỳ': 'y',\n 'ỳ': 'y',\n 'Ŷ': 'y',\n 'ŷ': 'y',\n 'Y': 'y',\n 'ẙ': 'y',\n 'Ÿ': 'y',\n 'ÿ': 'y',\n 'Ỹ': 'y',\n 'ỹ': 'y',\n 'Ẏ': 'y',\n 'ẏ': 'y',\n 'Ȳ': 'y',\n 'ȳ': 'y',\n 'Ỷ': 'y',\n 'ỷ': 'y',\n 'Ỵ': 'y',\n 'ỵ': 'y',\n 'ʏ': 'y',\n 'Ɏ': 'y',\n 'ɏ': 'y',\n 'Ƴ': 'y',\n 'ƴ': 'y',\n 'Ź': 'z',\n 'ź': 'z',\n 'Ẑ': 'z',\n 'ẑ': 'z',\n 'Ž': 'z',\n 'ž': 'z',\n 'Ż': 'z',\n 'ż': 'z',\n 'Ẓ': 'z',\n 'ẓ': 'z',\n 'Ẕ': 'z',\n 'ẕ': 'z',\n 'Ƶ': 'z',\n 'ƶ': 'z',\n 'Ȥ': 'z',\n 'ȥ': 'z',\n 'ʐ': 'z',\n 'ʑ': 'z',\n 'Ⱬ': 'z',\n 'ⱬ': 'z',\n 'Ǯ': 'z',\n 'ǯ': 'z',\n 'ƺ': 'z',\n '2': '2',\n '6': '6',\n 'B': 'B',\n 'F': 'F',\n 'J': 'J',\n 'N': 'N',\n 'R': 'R',\n 'V': 'V',\n 'Z': 'Z',\n 'b': 'b',\n 'f': 'f',\n 'j': 'j',\n 'n': 'n',\n 'r': 'r',\n 'v': 'v',\n 'z': 'z',\n '1': '1',\n '5': '5',\n '9': '9',\n 'A': 'A',\n 'E': 'E',\n 'I': 'I',\n 'M': 'M',\n 'Q': 'Q',\n 'U': 'U',\n 'Y': 'Y',\n 'a': 'a',\n 'e': 'e',\n 'i': 'i',\n 'm': 'm',\n 'q': 'q',\n 'u': 'u',\n 'y': 'y',\n '0': '0',\n '4': '4',\n '8': '8',\n 'D': 'D',\n 'H': 'H',\n 'L': 'L',\n 'P': 'P',\n 'T': 'T',\n 'X': 'X',\n 'd': 'd',\n 'h': 'h',\n 'l': 'l',\n 'p': 'p',\n 't': 't',\n 'x': 'x',\n '3': '3',\n '7': '7',\n 'C': 'C',\n 'G': 'G',\n 'K': 'K',\n 'O': 'O',\n 'S': 'S',\n 'W': 'W',\n 'c': 'c',\n 'g': 'g',\n 'k': 'k',\n 'o': 'o',\n 's': 's',\n 'w': 'w',\n 'ẳ': 'a',\n 'Â': 'a',\n 'â': 'a',\n 'Ấ': 'a',\n 'ấ': 'a',\n 'Ầ': 'a',\n 'ầ': 'a'\n };\n\n if (window.getComputedStyle === undefined) {\n window.getComputedStyle = function () {\n function getPixelSize(element, style, property, fontSize) {\n var sizeWithSuffix = style[property],\n size = parseFloat(sizeWithSuffix),\n suffix = sizeWithSuffix.split(/\\d/)[0],\n rootSize;\n fontSize = fontSize !== null ? fontSize : /%|em/.test(suffix) && element.parentElement ? getPixelSize(element.parentElement, element.parentElement.currentStyle, 'fontSize', null) : 16;\n rootSize = property === 'fontSize' ? fontSize : /width/i.test(property) ? element.clientWidth : element.clientHeight;\n return suffix === 'em' ? size * fontSize : suffix === 'in' ? size * 96 : suffix === 'pt' ? size * 96 / 72 : suffix === '%' ? size / 100 * rootSize : size;\n }\n\n function setShortStyleProperty(style, property) {\n var borderSuffix = property === 'border' ? 'Width' : '',\n t = property + 'Top' + borderSuffix,\n r = property + 'Right' + borderSuffix,\n b = property + 'Bottom' + borderSuffix,\n l = property + 'Left' + borderSuffix;\n style[property] = (style[t] === style[r] === style[b] === style[l] ? [style[t]] : style[t] === style[b] && style[l] === style[r] ? [style[t], style[r]] : style[l] === style[r] ? [style[t], style[r], style[b]] : [style[t], style[r], style[b], style[l]]).join(' ');\n }\n\n function CSSStyleDeclaration(element) {\n var currentStyle = element.currentStyle,\n style = this,\n property,\n fontSize = getPixelSize(element, currentStyle, 'fontSize', null);\n\n for (property in currentStyle) {\n if (currentStyle.hasOwnProperty(property)) {\n if (/width|height|margin.|padding.|border.+W/.test(property) && style[property] !== 'auto') {\n style[property] = getPixelSize(element, currentStyle, property, fontSize) + 'px';\n } else if (property === 'styleFloat') {\n style.float = currentStyle[property];\n } else {\n style[property] = currentStyle[property];\n }\n }\n }\n\n setShortStyleProperty(style, 'margin');\n setShortStyleProperty(style, 'padding');\n setShortStyleProperty(style, 'border');\n style.fontSize = fontSize + 'px';\n return style;\n }\n\n CSSStyleDeclaration.prototype = {\n constructor: CSSStyleDeclaration,\n getPropertyPriority: function getPropertyPriority() {},\n getPropertyValue: function getPropertyValue(prop) {\n return this[prop] || '';\n },\n item: function item() {},\n removeProperty: function removeProperty() {},\n setProperty: function setProperty() {},\n getPropertyCSSValue: function getPropertyCSSValue() {}\n };\n\n function getComputedStyle(element) {\n return new CSSStyleDeclaration(element);\n }\n\n return getComputedStyle;\n }(this);\n }\n\n $(document).on('keydown.xdsoftctrl', function (e) {\n if (e.keyCode === CTRLKEY) {\n ctrlDown = true;\n }\n\n if (e.keyCode === SHIFTKEY) {\n ctrlDown = true;\n }\n }).on('keyup.xdsoftctrl', function (e) {\n if (e.keyCode === CTRLKEY) {\n ctrlDown = false;\n }\n\n if (e.keyCode === SHIFTKEY) {\n ctrlDown = false;\n }\n });\n\n function accentReplace(s) {\n if (!s) {\n return '';\n }\n\n var ret = '',\n i;\n\n for (i = 0; i < s.length; i += 1) {\n ret += accent_map[s.charAt(i)] || s.charAt(i);\n }\n\n return ret;\n }\n\n function escapeRegExp(str) {\n return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\");\n }\n\n function getCaretPosition(input) {\n if (!input) {\n return;\n }\n\n if (input.selectionStart) {\n return input.selectionStart;\n }\n\n if (document.selection) {\n input.focus();\n var sel = document.selection.createRange(),\n selLen = document.selection.createRange().text.length;\n sel.moveStart('character', -input.value.length);\n return sel.text.length - selLen;\n }\n }\n\n function setCaretPosition(input, pos) {\n if (input.setSelectionRange) {\n input.focus();\n input.setSelectionRange(pos, pos);\n } else if (input.createTextRange) {\n var range = input.createTextRange();\n range.collapse(true);\n range.moveEnd('character', pos);\n range.moveStart('character', pos);\n range.select();\n }\n }\n\n function isset(value) {\n return value !== undefined;\n }\n\n function safe_call(callback, args, callback2, defaultValue) {\n if (isset(callback) && !$.isArray(callback)) {\n return $.isFunction(callback) ? callback.apply(this, args) : defaultValue;\n }\n\n if (isset(callback2)) {\n return safe_call.call(this, callback2, args);\n }\n\n return defaultValue;\n }\n\n ;\n\n function __safe(callbackName, source, args, defaultValue) {\n var undefinedVar;\n return safe_call.call(this, isset(this.source[source]) && this.source[source].hasOwnProperty(callbackName) ? this.source[source][callbackName] : undefinedVar, args, function () {\n return safe_call.call(this, isset(this[callbackName][source]) ? this[callbackName][source] : isset(this[callbackName][0]) ? this[callbackName][0] : this.hasOwnProperty(callbackName) ? this[callbackName] : undefinedVar, args, defaultSetting[callbackName][source] || defaultSetting[callbackName][0] || defaultSetting[callbackName], defaultValue);\n }, defaultValue);\n }\n\n ;\n\n function __get(property, source) {\n if (!isset(source)) source = 0;\n if ($.isArray(this.source) && isset(this.source[source]) && isset(this.source[source][property])) return this.source[source][property];\n\n if (isset(this[property])) {\n if ($.isArray(this[property])) {\n if (isset(this[property][source])) return this[property][source];\n if (isset(this[property][0])) return this[property][0];\n return null;\n }\n\n return this[property];\n }\n\n return null;\n }\n\n ;\n\n function loadRemote(url, sourceObject, done, debug) {\n $.ajax($.extend(true, {\n url: url,\n type: 'GET',\n async: true,\n cache: false,\n dataType: 'json'\n }, sourceObject.ajax)).done(function (data) {\n done && done.apply(this, $.makeArray(arguments));\n }).fail(function (jqXHR, textStatus) {\n if (debug) console.log(\"Request failed: \" + textStatus);\n });\n }\n\n function findRight(data, query) {\n var right = false,\n source;\n\n for (source = 0; source < data.length; source += 1) {\n if (right = __safe.call(this, \"findRight\", source, [data[source], query, source])) {\n return {\n right: right,\n source: source\n };\n }\n }\n\n return false;\n }\n\n function processData(data, query) {\n var source;\n preparseData.call(this, data, query);\n\n for (source = 0; source < data.length; source += 1) {\n data[source] = __safe.call(this, 'filter', source, [data[source], query, source], data[source]);\n }\n }\n\n ;\n\n function collectData(query, datasource, callback) {\n var options = this,\n source;\n\n if ($.isFunction(options.source)) {\n options.source.apply(options, [query, function (items) {\n datasource = [items];\n safe_call.call(options, callback, [query]);\n }, datasource, 0]);\n } else {\n for (source = 0; source < options.source.length; source += 1) {\n if ($.isArray(options.source[source])) {\n datasource[source] = options.source[source];\n } else if ($.isFunction(options.source[source])) {\n options.source[source].apply(options, [query, function (items) {\n if (!datasource[source]) {\n datasource[source] = [];\n }\n\n if (items && $.isArray(items)) {\n datasource[source] = datasource[source].concat(items);\n }\n\n safe_call.call(options, callback, [query]);\n }, datasource, source]);\n } else {\n switch (options.source[source].type) {\n case 'remote':\n if (isset(options.source[source].url)) {\n if (!isset(options.source[source].minLength) || query.length >= options.source[source].minLength) {\n var url = __safe.call(options, 'replace', source, [options.source[source].url, query], '');\n\n if (!datasource[source]) {\n datasource[source] = [];\n }\n\n (function (source) {\n loadRemote(url, options.source[source], function (resp) {\n datasource[source] = resp;\n safe_call.call(options, callback, [query]);\n }, options.debug);\n })(source);\n }\n }\n\n break;\n\n default:\n if (isset(options.source[source]['data'])) {\n datasource[source] = options.source[source]['data'];\n } else {\n datasource[source] = options.source[source];\n }\n\n }\n }\n }\n }\n\n safe_call.call(options, callback, [query]);\n }\n\n ;\n\n function preparseData(data, query) {\n for (var source = 0; source < data.length; source++) {\n data[source] = __safe.call(this, 'preparse', source, [data[source], query], data[source]);\n }\n }\n\n ;\n\n function renderData(data, query) {\n var source,\n i,\n $div,\n $divs = [];\n\n for (source = 0; source < data.length; source += 1) {\n for (i = 0; i < data[source].length; i += 1) {\n if ($divs.length >= this.limit) break;\n $div = $(__safe.call(this, 'render', source, [data[source][i], source, i, query], ''));\n $div.data('source', source);\n $div.data('pid', i);\n $div.data('item', data[source][i]);\n $divs.push($div);\n }\n }\n\n return $divs;\n }\n\n ;\n\n function getItem($div, dataset) {\n if (isset($div.data('source')) && isset($div.data('pid')) && isset(dataset[$div.data('source')]) && isset(dataset[$div.data('source')][$div.data('pid')])) {\n return dataset[$div.data('source')][$div.data('pid')];\n }\n\n return false;\n }\n\n ;\n\n function getValue($div, dataset) {\n var item = getItem($div, dataset);\n\n if (item) {\n return __safe.call(this, 'getValue', $div.data('source'), [item, $div.data('source')]);\n } else {\n if (isset($div.data('value'))) {\n return decodeURIComponent($div.data('value'));\n } else {\n return $div.html();\n }\n }\n }\n\n ;\n defaultSetting = {\n valueKey: 'value',\n titleKey: 'title',\n highlight: true,\n showHint: true,\n dropdownWidth: '100%',\n dropdownStyle: {},\n itemStyle: {},\n hintStyle: false,\n style: false,\n debug: true,\n openOnFocus: true,\n closeOnBlur: true,\n autoselect: false,\n accents: true,\n replaceAccentsForRemote: true,\n limit: 20,\n visibleLimit: 20,\n visibleHeight: 0,\n defaultHeightItem: 30,\n timeoutUpdate: 10,\n get: function get(property, source) {\n return __get.call(this, property, source);\n },\n replace: [function (url, query) {\n if (this.replaceAccentsForRemote) {\n query = accentReplace(query);\n }\n\n return url.replace('%QUERY%', encodeURIComponent(query));\n }],\n equal: function equal(value, query) {\n return query.toLowerCase() == value.substr(0, query.length).toLowerCase();\n },\n findRight: [function (items, query, source) {\n var results = [],\n value = '',\n i;\n\n for (i = 0; i < items.length; i += 1) {\n value = __safe.call(this, 'getValue', source, [items[i], source]);\n\n if (__safe.call(this, 'equal', source, [value, query, source], false)) {\n return items[i];\n }\n }\n\n return false;\n }],\n valid: [function (value, query) {\n if (this.accents) {\n value = accentReplace(value);\n query = accentReplace(query);\n }\n\n return value.toLowerCase().indexOf(query.toLowerCase()) != -1;\n }],\n filter: [function (items, query, source) {\n var results = [],\n value = '',\n i;\n\n for (i = 0; i < items.length; i += 1) {\n value = isset(items[i][this.get('valueKey', source)]) ? items[i][this.get('valueKey', source)] : items[i].toString();\n\n if (__safe.call(this, 'valid', source, [value, query])) {\n results.push(items[i]);\n }\n }\n\n return results;\n }],\n preparse: function preparse(items) {\n return items;\n },\n getValue: [function (item, source) {\n return isset(item[this.get('valueKey', source)]) ? item[this.get('valueKey', source)] : item.toString();\n }],\n getTitle: [function (item, source) {\n return isset(item[this.get('titleKey', source)]) ? item[this.get('titleKey', source)] : item.toString();\n }],\n render: [function (item, source, pid, query) {\n var value = isset(item[this.get('valueKey', source)]) ? item[this.get('valueKey', source)] : item.toString(),\n title = (isset(item[this.get('titleKey', source)]) ? item[this.get('titleKey', source)] : value) + '',\n _value = '',\n _query = '',\n _title = '',\n hilite_hints = '',\n highlighted = '',\n c,\n h,\n i,\n spos = 0;\n\n if (this.highlight) {\n if (!this.accents) {\n title = title.replace(new RegExp('(' + escapeRegExp(query) + ')', 'i'), '$1 ');\n } else {\n _title = accentReplace(title).toLowerCase().replace(/[<>]+/g, ''), _query = accentReplace(query).toLowerCase().replace(/[<>]+/g, '');\n hilite_hints = _title.replace(new RegExp(escapeRegExp(_query), 'g'), '<' + _query + '>');\n\n for (i = 0; i < hilite_hints.length; i += 1) {\n c = title.charAt(spos);\n h = hilite_hints.charAt(i);\n\n if (h === '<') {\n highlighted += '';\n } else if (h === '>') {\n highlighted += ' ';\n } else {\n spos += 1;\n highlighted += c;\n }\n }\n\n title = highlighted;\n }\n }\n\n return '' + title + '
';\n }],\n source: []\n };\n\n function init(that, options) {\n if ($(that).hasClass('xdsoft_input')) return;\n var $box = $('
'),\n $dropdown = $('
'),\n $hint = $(' '),\n $input = $(that),\n timer1 = 0,\n dataset = [],\n iOpen = false,\n value = '',\n currentValue = '',\n currentSelect = '',\n active = null,\n pos = 0; //it can be used to access settings\n\n $input.data('autocomplete_options', options);\n $dropdown.on('mousedown', function (e) {\n e.preventDefault();\n e.stopPropagation();\n }).on('updatescroll.xdsoft', function () {\n var _act = $dropdown.find('.active');\n\n if (!_act.length) {\n return;\n }\n\n var top = _act.position().top,\n actHght = _act.outerHeight(true),\n scrlTop = $dropdown.scrollTop(),\n hght = $dropdown.height();\n\n if (top < 0) {\n $dropdown.scrollTop(scrlTop - Math.abs(top));\n } else if (top + actHght > hght) {\n $dropdown.scrollTop(scrlTop + top + actHght - hght);\n }\n });\n $box.css({\n 'display': $input.css('display'),\n 'width': $input.css('width')\n });\n if (options.style) $box.css(options.style);\n $input.addClass('xdsoft_input').attr('autocomplete', 'off');\n $dropdown.on('mousemove', 'div', function () {\n if ($(this).hasClass('active')) return true;\n $dropdown.find('div').removeClass('active');\n $(this).addClass('active');\n }).on('mousedown', 'div', function () {\n $dropdown.find('div').removeClass('active');\n $(this).addClass('active');\n $input.trigger('pick.xdsoft');\n });\n\n function manageData() {\n if ($input.val() != currentValue) {\n currentValue = $input.val();\n } else return;\n\n collectData.call(options, currentValue, dataset, function (query) {\n if (query != currentValue) return;\n var right;\n processData.call(options, dataset, query);\n $input.trigger('updateContent.xdsoft');\n\n if (options.showHint && currentValue.length && currentValue.length <= $input.prop('size') && (right = findRight.call(options, dataset, currentValue))) {\n var title = __safe.call(options, 'getTitle', right.source, [right.right, right.source]);\n\n title =\n /*''+*/\n query +\n /*' '+*/\n title.substr(query.length);\n $hint.val(title);\n } else {\n $hint.val('');\n }\n });\n return;\n }\n\n function manageKey(event) {\n var key = event.which,\n right;\n\n switch (key) {\n case AKEY:\n case CKEY:\n case VKEY:\n case ZKEY:\n case YKEY:\n if (event.shiftKey || event.ctrlKey) {\n return true;\n }\n\n break;\n\n case SHIFTKEY:\n case CTRLKEY:\n return true;\n break;\n\n case ARROWRIGHT:\n case ARROWLEFT:\n if (ctrlDown || shiftDown || event.shiftKey || event.ctrlKey) {\n return true;\n }\n\n value = $input.val();\n pos = getCaretPosition($input[0]);\n\n if (key === ARROWRIGHT && pos === value.length) {\n if (right = findRight.call(options, dataset, value)) {\n $input.trigger('pick.xdsoft', [__safe.call(options, 'getValue', right.source, [right.right, right.source])]);\n } else {\n $input.trigger('pick.xdsoft');\n }\n\n event.preventDefault();\n return false;\n }\n\n return true;\n\n case TAB:\n return true;\n\n case ENTER:\n if (iOpen) {\n $input.trigger('pick.xdsoft');\n event.preventDefault();\n return false;\n } else {\n return true;\n }\n\n break;\n\n case ESC:\n $input.val(currentValue).trigger('close.xdsoft');\n event.preventDefault();\n return false;\n\n case ARROWDOWN:\n case ARROWUP:\n if (!iOpen) {\n $input.trigger('open.xdsoft');\n $input.trigger('updateContent.xdsoft');\n event.preventDefault();\n return false;\n }\n\n active = $dropdown.find('div.active');\n var next = key == ARROWDOWN ? 'next' : 'prev',\n timepick = true;\n\n if (active.length) {\n active.removeClass('active');\n\n if (active[next]().length) {\n active[next]().addClass('active');\n } else {\n $input.val(currentValue);\n timepick = false;\n }\n } else {\n $dropdown.children().eq(key == ARROWDOWN ? 0 : -1).addClass('active');\n }\n\n if (timepick) {\n $input.trigger('timepick.xdsoft');\n }\n\n $dropdown.trigger('updatescroll.xdsoft');\n event.preventDefault();\n return false;\n }\n\n return;\n }\n\n $input.data('xdsoft_autocomplete', dataset).after($box).on('pick.xdsoft', function (event, _value) {\n $input.trigger('timepick.xdsoft', _value);\n currentSelect = currentValue = $input.val();\n $input.trigger('close.xdsoft');\n currentInput = false;\n active = $dropdown.find('div.active').eq(0);\n if (!active.length) active = $dropdown.children().first();\n $input.trigger('selected.xdsoft', [getItem(active, dataset)]);\n }).on('timepick.xdsoft', function (event, _value) {\n active = $dropdown.find('div.active');\n if (!active.length) active = $dropdown.children().first();\n\n if (active.length) {\n if (!isset(_value)) {\n $input.val(getValue.call(options, active, dataset));\n } else {\n $input.val(_value);\n }\n\n $input.trigger('autocompleted.xdsoft', [getItem(active, dataset)]);\n $hint.val('');\n setCaretPosition($input[0], $input.val().length);\n }\n }).on('keydown.xdsoft keypress.xdsoft input.xdsoft cut.xdsoft paste.xdsoft', function (event) {\n var ret = manageKey(event);\n\n if (ret === false || ret === true) {\n return ret;\n }\n\n if (!iOpen) {\n $input.trigger('open.xdsoft');\n }\n\n setTimeout(function () {\n manageData();\n }, 1);\n manageData();\n });\n currentValue = $input.val();\n collectData.call(options, $input.val(), dataset, function (query) {\n processData.call(options, dataset, query);\n });\n\n if (options.openOnFocus) {\n $input.on('focusin.xdsoft', function () {\n $input.trigger('open.xdsoft');\n $input.trigger('updateContent.xdsoft');\n });\n }\n\n if (options.closeOnBlur) $input.on('focusout.xdsoft', function () {\n $input.trigger('close.xdsoft');\n });\n $box.append($input).append($dropdown);\n var olderBackground = false,\n timerUpdate = 0;\n $input.on('updateHelperPosition.xdsoft', function () {\n clearTimeout(timerUpdate);\n timerUpdate = setTimeout(function () {\n $box.css({\n 'display': $input.css('display'),\n 'width': $input.css('width')\n });\n $dropdown.css($.extend(true, {\n left: $input.position().left,\n top: $input.position().top + parseInt($input.css('marginTop')) + parseInt($input[0].offsetHeight),\n marginLeft: $input.css('marginLeft'),\n marginRight: $input.css('marginRight'),\n width: options.dropdownWidth == '100%' ? $input[0].offsetWidth : options.dropdownWidth\n }, options.dropdownStyle));\n\n if (options.showHint) {\n var style = getComputedStyle($input[0], \"\");\n $hint[0].style.cssText = style.cssText;\n $hint.css({\n 'box-sizing': style.boxSizing,\n borderStyle: 'solid',\n borderCollapse: style.borderCollapse,\n borderLeftWidth: style.borderLeftWidth,\n borderRightWidth: style.borderRightWidth,\n borderTopWidth: style.borderTopWidth,\n borderBottomWidth: style.borderBottomWidth,\n paddingBottom: style.paddingBottom,\n marginBottom: style.marginBottom,\n paddingTop: style.paddingTop,\n marginTop: style.marginTop,\n paddingLeft: style.paddingLeft,\n marginLeft: style.marginLeft,\n paddingRight: style.paddingRight,\n marginRight: style.marginRight,\n maxHeight: style.maxHeight,\n minHeight: style.minHeight,\n maxWidth: style.maxWidth,\n minWidth: style.minWidth,\n width: style.width,\n letterSpacing: style.letterSpacing,\n lineHeight: style.lineHeight,\n outlineWidth: style.outlineWidth,\n fontFamily: style.fontFamily,\n fontVariant: style.fontVariant,\n fontStyle: style.fontStyle,\n fontSize: style.fontSize,\n fontWeight: style.fontWeight,\n flex: style.flex,\n justifyContent: style.justifyContent,\n borderRadius: style.borderRadius,\n '-webkit-box-shadow': 'none',\n 'box-shadow': 'none'\n });\n $input.css('font-size', style.fontSize); // fix bug with em font size\n\n $hint.innerHeight($input.innerHeight());\n $hint.css($.extend(true, {\n position: 'absolute',\n zIndex: '1',\n borderColor: 'transparent',\n outlineColor: 'transparent',\n left: $input.position().left,\n top: $input.position().top,\n background: $input.css('background')\n }, options.hintStyle));\n\n if (olderBackground !== false) {\n $hint.css('background', olderBackground);\n } else {\n olderBackground = $input.css('background');\n }\n\n $input.css('background', 'transparent');\n $box.append($hint);\n }\n }, options.timeoutUpdate || 1);\n });\n\n if ($input.is(':visible')) {\n $input.trigger('updateHelperPosition.xdsoft');\n } else {\n interval_for_visibility = setInterval(function () {\n if ($input.is(':visible')) {\n $input.trigger('updateHelperPosition.xdsoft');\n clearInterval(interval_for_visibility);\n }\n }, 100);\n }\n\n $(window).on('resize', function () {\n $box.css({\n 'width': 'auto'\n });\n $input.trigger('updateHelperPosition.xdsoft');\n });\n $input.on('close.xdsoft', function () {\n if (!iOpen) return;\n $dropdown.hide();\n $hint.empty();\n if (!options.autoselect) $input.val(currentValue);\n iOpen = false;\n currentInput = false;\n }).on('updateContent.xdsoft', function () {\n var out = renderData.call(options, dataset, $input.val()),\n hght = 10;\n\n if (out.length) {\n $dropdown.show();\n } else {\n $dropdown.hide();\n return;\n }\n\n $(out).each(function () {\n this.css($.extend(true, {\n paddingLeft: $input.css('paddingLeft'),\n paddingRight: $input.css('paddingRight')\n }, options.itemStyle));\n });\n $dropdown.html(out);\n\n if (options.visibleHeight) {\n hght = options.visibleHeight;\n } else {\n hght = options.visibleLimit * ((out[0] ? out[0].outerHeight(true) : 0) || options.defaultHeightItem) + 5;\n }\n\n $dropdown.css('maxHeight', hght + 'px');\n }).on('open.xdsoft', function () {\n if (iOpen) return;\n $dropdown.show();\n iOpen = true;\n currentInput = $input;\n }).on('destroy.xdsoft', function () {\n $input.removeClass('xdsoft');\n $box.after($input);\n $box.remove();\n clearTimeout(timer1);\n currentInput = false;\n $input.data('xdsoft_autocomplete', null);\n $input.off('.xdsoft');\n });\n }\n\n ;\n publics = {\n destroy: function destroy() {\n return this.trigger('destroy.xdsoft');\n },\n update: function update() {\n return this.trigger('updateHelperPosition.xdsoft');\n },\n options: function options(_options) {\n if (this.data('autocomplete_options') && $.isPlainObject(_options)) {\n this.data('autocomplete_options', $.extend(true, this.data('autocomplete_options'), _options));\n }\n\n return this;\n },\n setSource: function setSource(_newsource, id) {\n if (this.data('autocomplete_options') && ($.isPlainObject(_newsource) || $.isFunction(_newsource) || $.isArray(_newsource))) {\n var options = this.data('autocomplete_options'),\n dataset = this.data('xdsoft_autocomplete'),\n source = options.source;\n\n if (id !== undefined && !isNaN(id)) {\n if ($.isPlainObject(_newsource) || $.isArray(_newsource)) {\n source[id] = $.extend(true, $.isArray(_newsource) ? [] : {}, _newsource);\n } else {\n source[id] = _newsource;\n }\n } else {\n if ($.isFunction(_newsource)) {\n this.data('autocomplete_options').source = _newsource;\n } else {\n $.extend(true, source, _newsource);\n }\n }\n\n collectData.call(options, this.val(), dataset, function (query) {\n processData.call(options, dataset, query);\n });\n }\n\n return this;\n },\n getSource: function getSource(id) {\n if (this.data('autocomplete_options')) {\n var source = this.data('autocomplete_options').source;\n\n if (id !== undefined && !isNaN(id) && source[id]) {\n return source[id];\n } else {\n return source;\n }\n }\n\n return null;\n }\n };\n\n $.fn.autocomplete = function (_options, _second, _third) {\n if ($.type(_options) === 'string' && publics[_options]) {\n return publics[_options].call(this, _second, _third);\n }\n\n return this.each(function () {\n var options = $.extend(true, {}, defaultSetting, _options);\n init(this, options);\n });\n };\n})(jQuery);","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport AjaxForm from \"./ajax_form.js.jsx\"\n\nclass CampTrashSettings extends React.Component {\n static propTypes = {\n trashCampUrl: PropTypes.string\n }\n\n renderSettings() {\n var onTrashCampSuccess = function() {\n window.location = \"/dashboard/camps/\";\n };\n\n return (\n \n
\n
Trash Bin
\n
Deleting this camp will remove the camp and all of its associated data, including media, comments, action items, encounters, and paths.\n
\n
\n
\n \n \n Delete Camp\n \n \n
\n
\n );\n }\n\n render() {\n return(\n \n {this.renderSettings()}\n
\n )\n }\n}\n\nexport default CampTrashSettings","import React from 'react'\n\nimport SearchBox from './search_box.js'\nimport Results from './results.js'\n// var SearchBox = require(\"./search_box.js.jsx\")\n// var Results = require(\"./results.js.jsx\")\n\nclass ClientSearch extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n didSearch: false,\n searchResults: []\n };\n }\n\n showResults(response) {\n console.log(response);\n this.setState({\n didSearch: true,\n searchResults: response\n })\n }\n\n search(URL) {\n console.log(`URL ${URL}`)\n $.ajax({\n type: \"GET\",\n context: this,\n dataType: 'json',\n url: URL,\n success: (response) => {\n this.showResults(response)\n }\n })\n }\n\n render() {\n return (\n \n \n \n
\n )\n }\n\n\n}\n\nexport default ClientSearch\n","/** @license React v17.0.2\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar aa = require(\"react\"),\n m = require(\"object-assign\"),\n r = require(\"scheduler\");\n\nfunction y(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) {\n b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n }\n\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\n\nif (!aa) throw Error(y(227));\nvar ba = new Set(),\n ca = {};\n\nfunction da(a, b) {\n ea(a, b);\n ea(a + \"Capture\", b);\n}\n\nfunction ea(a, b) {\n ca[a] = b;\n\n for (a = 0; a < b.length; a++) {\n ba.add(b[a]);\n }\n}\n\nvar fa = !(\"undefined\" === typeof window || \"undefined\" === typeof window.document || \"undefined\" === typeof window.document.createElement),\n ha = /^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,\n ia = Object.prototype.hasOwnProperty,\n ja = {},\n ka = {};\n\nfunction la(a) {\n if (ia.call(ka, a)) return !0;\n if (ia.call(ja, a)) return !1;\n if (ha.test(a)) return ka[a] = !0;\n ja[a] = !0;\n return !1;\n}\n\nfunction ma(a, b, c, d) {\n if (null !== c && 0 === c.type) return !1;\n\n switch (_typeof(b)) {\n case \"function\":\n case \"symbol\":\n return !0;\n\n case \"boolean\":\n if (d) return !1;\n if (null !== c) return !c.acceptsBooleans;\n a = a.toLowerCase().slice(0, 5);\n return \"data-\" !== a && \"aria-\" !== a;\n\n default:\n return !1;\n }\n}\n\nfunction na(a, b, c, d) {\n if (null === b || \"undefined\" === typeof b || ma(a, b, c, d)) return !0;\n if (d) return !1;\n if (null !== c) switch (c.type) {\n case 3:\n return !b;\n\n case 4:\n return !1 === b;\n\n case 5:\n return isNaN(b);\n\n case 6:\n return isNaN(b) || 1 > b;\n }\n return !1;\n}\n\nfunction B(a, b, c, d, e, f, g) {\n this.acceptsBooleans = 2 === b || 3 === b || 4 === b;\n this.attributeName = d;\n this.attributeNamespace = e;\n this.mustUseProperty = c;\n this.propertyName = a;\n this.type = b;\n this.sanitizeURL = f;\n this.removeEmptyString = g;\n}\n\nvar D = {};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function (a) {\n D[a] = new B(a, 0, !1, a, null, !1, !1);\n});\n[[\"acceptCharset\", \"accept-charset\"], [\"className\", \"class\"], [\"htmlFor\", \"for\"], [\"httpEquiv\", \"http-equiv\"]].forEach(function (a) {\n var b = a[0];\n D[b] = new B(b, 1, !1, a[1], null, !1, !1);\n});\n[\"contentEditable\", \"draggable\", \"spellCheck\", \"value\"].forEach(function (a) {\n D[a] = new B(a, 2, !1, a.toLowerCase(), null, !1, !1);\n});\n[\"autoReverse\", \"externalResourcesRequired\", \"focusable\", \"preserveAlpha\"].forEach(function (a) {\n D[a] = new B(a, 2, !1, a, null, !1, !1);\n});\n\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function (a) {\n D[a] = new B(a, 3, !1, a.toLowerCase(), null, !1, !1);\n});\n[\"checked\", \"multiple\", \"muted\", \"selected\"].forEach(function (a) {\n D[a] = new B(a, 3, !0, a, null, !1, !1);\n});\n[\"capture\", \"download\"].forEach(function (a) {\n D[a] = new B(a, 4, !1, a, null, !1, !1);\n});\n[\"cols\", \"rows\", \"size\", \"span\"].forEach(function (a) {\n D[a] = new B(a, 6, !1, a, null, !1, !1);\n});\n[\"rowSpan\", \"start\"].forEach(function (a) {\n D[a] = new B(a, 5, !1, a.toLowerCase(), null, !1, !1);\n});\nvar oa = /[\\-:]([a-z])/g;\n\nfunction pa(a) {\n return a[1].toUpperCase();\n}\n\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function (a) {\n var b = a.replace(oa, pa);\n D[b] = new B(b, 1, !1, a, null, !1, !1);\n});\n\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function (a) {\n var b = a.replace(oa, pa);\n D[b] = new B(b, 1, !1, a, \"http://www.w3.org/1999/xlink\", !1, !1);\n});\n[\"xml:base\", \"xml:lang\", \"xml:space\"].forEach(function (a) {\n var b = a.replace(oa, pa);\n D[b] = new B(b, 1, !1, a, \"http://www.w3.org/XML/1998/namespace\", !1, !1);\n});\n[\"tabIndex\", \"crossOrigin\"].forEach(function (a) {\n D[a] = new B(a, 1, !1, a.toLowerCase(), null, !1, !1);\n});\nD.xlinkHref = new B(\"xlinkHref\", 1, !1, \"xlink:href\", \"http://www.w3.org/1999/xlink\", !0, !1);\n[\"src\", \"href\", \"action\", \"formAction\"].forEach(function (a) {\n D[a] = new B(a, 1, !1, a.toLowerCase(), null, !0, !0);\n});\n\nfunction qa(a, b, c, d) {\n var e = D.hasOwnProperty(b) ? D[b] : null;\n var f = null !== e ? 0 === e.type : d ? !1 : !(2 < b.length) || \"o\" !== b[0] && \"O\" !== b[0] || \"n\" !== b[1] && \"N\" !== b[1] ? !1 : !0;\n f || (na(b, c, e, d) && (c = null), d || null === e ? la(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, \"\" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : \"\" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? \"\" : \"\" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))));\n}\n\nvar ra = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,\n sa = 60103,\n ta = 60106,\n ua = 60107,\n wa = 60108,\n xa = 60114,\n ya = 60109,\n za = 60110,\n Aa = 60112,\n Ba = 60113,\n Ca = 60120,\n Da = 60115,\n Ea = 60116,\n Fa = 60121,\n Ga = 60128,\n Ha = 60129,\n Ia = 60130,\n Ja = 60131;\n\nif (\"function\" === typeof Symbol && Symbol.for) {\n var E = Symbol.for;\n sa = E(\"react.element\");\n ta = E(\"react.portal\");\n ua = E(\"react.fragment\");\n wa = E(\"react.strict_mode\");\n xa = E(\"react.profiler\");\n ya = E(\"react.provider\");\n za = E(\"react.context\");\n Aa = E(\"react.forward_ref\");\n Ba = E(\"react.suspense\");\n Ca = E(\"react.suspense_list\");\n Da = E(\"react.memo\");\n Ea = E(\"react.lazy\");\n Fa = E(\"react.block\");\n E(\"react.scope\");\n Ga = E(\"react.opaque.id\");\n Ha = E(\"react.debug_trace_mode\");\n Ia = E(\"react.offscreen\");\n Ja = E(\"react.legacy_hidden\");\n}\n\nvar Ka = \"function\" === typeof Symbol && Symbol.iterator;\n\nfunction La(a) {\n if (null === a || \"object\" !== _typeof(a)) return null;\n a = Ka && a[Ka] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n}\n\nvar Ma;\n\nfunction Na(a) {\n if (void 0 === Ma) try {\n throw Error();\n } catch (c) {\n var b = c.stack.trim().match(/\\n( *(at )?)/);\n Ma = b && b[1] || \"\";\n }\n return \"\\n\" + Ma + a;\n}\n\nvar Oa = !1;\n\nfunction Pa(a, b) {\n if (!a || Oa) return \"\";\n Oa = !0;\n var c = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n\n try {\n if (b) {\n if (b = function b() {\n throw Error();\n }, Object.defineProperty(b.prototype, \"props\", {\n set: function set() {\n throw Error();\n }\n }), \"object\" === (typeof Reflect === \"undefined\" ? \"undefined\" : _typeof(Reflect)) && Reflect.construct) {\n try {\n Reflect.construct(b, []);\n } catch (k) {\n var d = k;\n }\n\n Reflect.construct(a, [], b);\n } else {\n try {\n b.call();\n } catch (k) {\n d = k;\n }\n\n a.call(b.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (k) {\n d = k;\n }\n\n a();\n }\n } catch (k) {\n if (k && d && \"string\" === typeof k.stack) {\n for (var e = k.stack.split(\"\\n\"), f = d.stack.split(\"\\n\"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];) {\n h--;\n }\n\n for (; 1 <= g && 0 <= h; g--, h--) {\n if (e[g] !== f[h]) {\n if (1 !== g || 1 !== h) {\n do {\n if (g--, h--, 0 > h || e[g] !== f[h]) return \"\\n\" + e[g].replace(\" at new \", \" at \");\n } while (1 <= g && 0 <= h);\n }\n\n break;\n }\n }\n }\n } finally {\n Oa = !1, Error.prepareStackTrace = c;\n }\n\n return (a = a ? a.displayName || a.name : \"\") ? Na(a) : \"\";\n}\n\nfunction Qa(a) {\n switch (a.tag) {\n case 5:\n return Na(a.type);\n\n case 16:\n return Na(\"Lazy\");\n\n case 13:\n return Na(\"Suspense\");\n\n case 19:\n return Na(\"SuspenseList\");\n\n case 0:\n case 2:\n case 15:\n return a = Pa(a.type, !1), a;\n\n case 11:\n return a = Pa(a.type.render, !1), a;\n\n case 22:\n return a = Pa(a.type._render, !1), a;\n\n case 1:\n return a = Pa(a.type, !0), a;\n\n default:\n return \"\";\n }\n}\n\nfunction Ra(a) {\n if (null == a) return null;\n if (\"function\" === typeof a) return a.displayName || a.name || null;\n if (\"string\" === typeof a) return a;\n\n switch (a) {\n case ua:\n return \"Fragment\";\n\n case ta:\n return \"Portal\";\n\n case xa:\n return \"Profiler\";\n\n case wa:\n return \"StrictMode\";\n\n case Ba:\n return \"Suspense\";\n\n case Ca:\n return \"SuspenseList\";\n }\n\n if (\"object\" === _typeof(a)) switch (a.$$typeof) {\n case za:\n return (a.displayName || \"Context\") + \".Consumer\";\n\n case ya:\n return (a._context.displayName || \"Context\") + \".Provider\";\n\n case Aa:\n var b = a.render;\n b = b.displayName || b.name || \"\";\n return a.displayName || (\"\" !== b ? \"ForwardRef(\" + b + \")\" : \"ForwardRef\");\n\n case Da:\n return Ra(a.type);\n\n case Fa:\n return Ra(a._render);\n\n case Ea:\n b = a._payload;\n a = a._init;\n\n try {\n return Ra(a(b));\n } catch (c) {}\n\n }\n return null;\n}\n\nfunction Sa(a) {\n switch (_typeof(a)) {\n case \"boolean\":\n case \"number\":\n case \"object\":\n case \"string\":\n case \"undefined\":\n return a;\n\n default:\n return \"\";\n }\n}\n\nfunction Ta(a) {\n var b = a.type;\n return (a = a.nodeName) && \"input\" === a.toLowerCase() && (\"checkbox\" === b || \"radio\" === b);\n}\n\nfunction Ua(a) {\n var b = Ta(a) ? \"checked\" : \"value\",\n c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b),\n d = \"\" + a[b];\n\n if (!a.hasOwnProperty(b) && \"undefined\" !== typeof c && \"function\" === typeof c.get && \"function\" === typeof c.set) {\n var e = c.get,\n f = c.set;\n Object.defineProperty(a, b, {\n configurable: !0,\n get: function get() {\n return e.call(this);\n },\n set: function set(a) {\n d = \"\" + a;\n f.call(this, a);\n }\n });\n Object.defineProperty(a, b, {\n enumerable: c.enumerable\n });\n return {\n getValue: function getValue() {\n return d;\n },\n setValue: function setValue(a) {\n d = \"\" + a;\n },\n stopTracking: function stopTracking() {\n a._valueTracker = null;\n delete a[b];\n }\n };\n }\n}\n\nfunction Va(a) {\n a._valueTracker || (a._valueTracker = Ua(a));\n}\n\nfunction Wa(a) {\n if (!a) return !1;\n var b = a._valueTracker;\n if (!b) return !0;\n var c = b.getValue();\n var d = \"\";\n a && (d = Ta(a) ? a.checked ? \"true\" : \"false\" : a.value);\n a = d;\n return a !== c ? (b.setValue(a), !0) : !1;\n}\n\nfunction Xa(a) {\n a = a || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof a) return null;\n\n try {\n return a.activeElement || a.body;\n } catch (b) {\n return a.body;\n }\n}\n\nfunction Ya(a, b) {\n var c = b.checked;\n return m({}, b, {\n defaultChecked: void 0,\n defaultValue: void 0,\n value: void 0,\n checked: null != c ? c : a._wrapperState.initialChecked\n });\n}\n\nfunction Za(a, b) {\n var c = null == b.defaultValue ? \"\" : b.defaultValue,\n d = null != b.checked ? b.checked : b.defaultChecked;\n c = Sa(null != b.value ? b.value : c);\n a._wrapperState = {\n initialChecked: d,\n initialValue: c,\n controlled: \"checkbox\" === b.type || \"radio\" === b.type ? null != b.checked : null != b.value\n };\n}\n\nfunction $a(a, b) {\n b = b.checked;\n null != b && qa(a, \"checked\", b, !1);\n}\n\nfunction ab(a, b) {\n $a(a, b);\n var c = Sa(b.value),\n d = b.type;\n if (null != c) {\n if (\"number\" === d) {\n if (0 === c && \"\" === a.value || a.value != c) a.value = \"\" + c;\n } else a.value !== \"\" + c && (a.value = \"\" + c);\n } else if (\"submit\" === d || \"reset\" === d) {\n a.removeAttribute(\"value\");\n return;\n }\n b.hasOwnProperty(\"value\") ? bb(a, b.type, c) : b.hasOwnProperty(\"defaultValue\") && bb(a, b.type, Sa(b.defaultValue));\n null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked);\n}\n\nfunction cb(a, b, c) {\n if (b.hasOwnProperty(\"value\") || b.hasOwnProperty(\"defaultValue\")) {\n var d = b.type;\n if (!(\"submit\" !== d && \"reset\" !== d || void 0 !== b.value && null !== b.value)) return;\n b = \"\" + a._wrapperState.initialValue;\n c || b === a.value || (a.value = b);\n a.defaultValue = b;\n }\n\n c = a.name;\n \"\" !== c && (a.name = \"\");\n a.defaultChecked = !!a._wrapperState.initialChecked;\n \"\" !== c && (a.name = c);\n}\n\nfunction bb(a, b, c) {\n if (\"number\" !== b || Xa(a.ownerDocument) !== a) null == c ? a.defaultValue = \"\" + a._wrapperState.initialValue : a.defaultValue !== \"\" + c && (a.defaultValue = \"\" + c);\n}\n\nfunction db(a) {\n var b = \"\";\n aa.Children.forEach(a, function (a) {\n null != a && (b += a);\n });\n return b;\n}\n\nfunction eb(a, b) {\n a = m({\n children: void 0\n }, b);\n if (b = db(b.children)) a.children = b;\n return a;\n}\n\nfunction fb(a, b, c, d) {\n a = a.options;\n\n if (b) {\n b = {};\n\n for (var e = 0; e < c.length; e++) {\n b[\"$\" + c[e]] = !0;\n }\n\n for (c = 0; c < a.length; c++) {\n e = b.hasOwnProperty(\"$\" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0);\n }\n } else {\n c = \"\" + Sa(c);\n b = null;\n\n for (e = 0; e < a.length; e++) {\n if (a[e].value === c) {\n a[e].selected = !0;\n d && (a[e].defaultSelected = !0);\n return;\n }\n\n null !== b || a[e].disabled || (b = a[e]);\n }\n\n null !== b && (b.selected = !0);\n }\n}\n\nfunction gb(a, b) {\n if (null != b.dangerouslySetInnerHTML) throw Error(y(91));\n return m({}, b, {\n value: void 0,\n defaultValue: void 0,\n children: \"\" + a._wrapperState.initialValue\n });\n}\n\nfunction hb(a, b) {\n var c = b.value;\n\n if (null == c) {\n c = b.children;\n b = b.defaultValue;\n\n if (null != c) {\n if (null != b) throw Error(y(92));\n\n if (Array.isArray(c)) {\n if (!(1 >= c.length)) throw Error(y(93));\n c = c[0];\n }\n\n b = c;\n }\n\n null == b && (b = \"\");\n c = b;\n }\n\n a._wrapperState = {\n initialValue: Sa(c)\n };\n}\n\nfunction ib(a, b) {\n var c = Sa(b.value),\n d = Sa(b.defaultValue);\n null != c && (c = \"\" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c));\n null != d && (a.defaultValue = \"\" + d);\n}\n\nfunction jb(a) {\n var b = a.textContent;\n b === a._wrapperState.initialValue && \"\" !== b && null !== b && (a.value = b);\n}\n\nvar kb = {\n html: \"http://www.w3.org/1999/xhtml\",\n mathml: \"http://www.w3.org/1998/Math/MathML\",\n svg: \"http://www.w3.org/2000/svg\"\n};\n\nfunction lb(a) {\n switch (a) {\n case \"svg\":\n return \"http://www.w3.org/2000/svg\";\n\n case \"math\":\n return \"http://www.w3.org/1998/Math/MathML\";\n\n default:\n return \"http://www.w3.org/1999/xhtml\";\n }\n}\n\nfunction mb(a, b) {\n return null == a || \"http://www.w3.org/1999/xhtml\" === a ? lb(b) : \"http://www.w3.org/2000/svg\" === a && \"foreignObject\" === b ? \"http://www.w3.org/1999/xhtml\" : a;\n}\n\nvar nb,\n ob = function (a) {\n return \"undefined\" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) {\n MSApp.execUnsafeLocalFunction(function () {\n return a(b, c, d, e);\n });\n } : a;\n}(function (a, b) {\n if (a.namespaceURI !== kb.svg || \"innerHTML\" in a) a.innerHTML = b;else {\n nb = nb || document.createElement(\"div\");\n nb.innerHTML = \"\" + b.valueOf().toString() + \" \";\n\n for (b = nb.firstChild; a.firstChild;) {\n a.removeChild(a.firstChild);\n }\n\n for (; b.firstChild;) {\n a.appendChild(b.firstChild);\n }\n }\n});\n\nfunction pb(a, b) {\n if (b) {\n var c = a.firstChild;\n\n if (c && c === a.lastChild && 3 === c.nodeType) {\n c.nodeValue = b;\n return;\n }\n }\n\n a.textContent = b;\n}\n\nvar qb = {\n animationIterationCount: !0,\n borderImageOutset: !0,\n borderImageSlice: !0,\n borderImageWidth: !0,\n boxFlex: !0,\n boxFlexGroup: !0,\n boxOrdinalGroup: !0,\n columnCount: !0,\n columns: !0,\n flex: !0,\n flexGrow: !0,\n flexPositive: !0,\n flexShrink: !0,\n flexNegative: !0,\n flexOrder: !0,\n gridArea: !0,\n gridRow: !0,\n gridRowEnd: !0,\n gridRowSpan: !0,\n gridRowStart: !0,\n gridColumn: !0,\n gridColumnEnd: !0,\n gridColumnSpan: !0,\n gridColumnStart: !0,\n fontWeight: !0,\n lineClamp: !0,\n lineHeight: !0,\n opacity: !0,\n order: !0,\n orphans: !0,\n tabSize: !0,\n widows: !0,\n zIndex: !0,\n zoom: !0,\n fillOpacity: !0,\n floodOpacity: !0,\n stopOpacity: !0,\n strokeDasharray: !0,\n strokeDashoffset: !0,\n strokeMiterlimit: !0,\n strokeOpacity: !0,\n strokeWidth: !0\n},\n rb = [\"Webkit\", \"ms\", \"Moz\", \"O\"];\nObject.keys(qb).forEach(function (a) {\n rb.forEach(function (b) {\n b = b + a.charAt(0).toUpperCase() + a.substring(1);\n qb[b] = qb[a];\n });\n});\n\nfunction sb(a, b, c) {\n return null == b || \"boolean\" === typeof b || \"\" === b ? \"\" : c || \"number\" !== typeof b || 0 === b || qb.hasOwnProperty(a) && qb[a] ? (\"\" + b).trim() : b + \"px\";\n}\n\nfunction tb(a, b) {\n a = a.style;\n\n for (var c in b) {\n if (b.hasOwnProperty(c)) {\n var d = 0 === c.indexOf(\"--\"),\n e = sb(c, b[c], d);\n \"float\" === c && (c = \"cssFloat\");\n d ? a.setProperty(c, e) : a[c] = e;\n }\n }\n}\n\nvar ub = m({\n menuitem: !0\n}, {\n area: !0,\n base: !0,\n br: !0,\n col: !0,\n embed: !0,\n hr: !0,\n img: !0,\n input: !0,\n keygen: !0,\n link: !0,\n meta: !0,\n param: !0,\n source: !0,\n track: !0,\n wbr: !0\n});\n\nfunction vb(a, b) {\n if (b) {\n if (ub[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(y(137, a));\n\n if (null != b.dangerouslySetInnerHTML) {\n if (null != b.children) throw Error(y(60));\n if (!(\"object\" === _typeof(b.dangerouslySetInnerHTML) && \"__html\" in b.dangerouslySetInnerHTML)) throw Error(y(61));\n }\n\n if (null != b.style && \"object\" !== _typeof(b.style)) throw Error(y(62));\n }\n}\n\nfunction wb(a, b) {\n if (-1 === a.indexOf(\"-\")) return \"string\" === typeof b.is;\n\n switch (a) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n\n default:\n return !0;\n }\n}\n\nfunction xb(a) {\n a = a.target || a.srcElement || window;\n a.correspondingUseElement && (a = a.correspondingUseElement);\n return 3 === a.nodeType ? a.parentNode : a;\n}\n\nvar yb = null,\n zb = null,\n Ab = null;\n\nfunction Bb(a) {\n if (a = Cb(a)) {\n if (\"function\" !== typeof yb) throw Error(y(280));\n var b = a.stateNode;\n b && (b = Db(b), yb(a.stateNode, a.type, b));\n }\n}\n\nfunction Eb(a) {\n zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a;\n}\n\nfunction Fb() {\n if (zb) {\n var a = zb,\n b = Ab;\n Ab = zb = null;\n Bb(a);\n if (b) for (a = 0; a < b.length; a++) {\n Bb(b[a]);\n }\n }\n}\n\nfunction Gb(a, b) {\n return a(b);\n}\n\nfunction Hb(a, b, c, d, e) {\n return a(b, c, d, e);\n}\n\nfunction Ib() {}\n\nvar Jb = Gb,\n Kb = !1,\n Lb = !1;\n\nfunction Mb() {\n if (null !== zb || null !== Ab) Ib(), Fb();\n}\n\nfunction Nb(a, b, c) {\n if (Lb) return a(b, c);\n Lb = !0;\n\n try {\n return Jb(a, b, c);\n } finally {\n Lb = !1, Mb();\n }\n}\n\nfunction Ob(a, b) {\n var c = a.stateNode;\n if (null === c) return null;\n var d = Db(c);\n if (null === d) return null;\n c = d[b];\n\n a: switch (b) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (d = !d.disabled) || (a = a.type, d = !(\"button\" === a || \"input\" === a || \"select\" === a || \"textarea\" === a));\n a = !d;\n break a;\n\n default:\n a = !1;\n }\n\n if (a) return null;\n if (c && \"function\" !== typeof c) throw Error(y(231, b, _typeof(c)));\n return c;\n}\n\nvar Pb = !1;\nif (fa) try {\n var Qb = {};\n Object.defineProperty(Qb, \"passive\", {\n get: function get() {\n Pb = !0;\n }\n });\n window.addEventListener(\"test\", Qb, Qb);\n window.removeEventListener(\"test\", Qb, Qb);\n} catch (a) {\n Pb = !1;\n}\n\nfunction Rb(a, b, c, d, e, f, g, h, k) {\n var l = Array.prototype.slice.call(arguments, 3);\n\n try {\n b.apply(c, l);\n } catch (n) {\n this.onError(n);\n }\n}\n\nvar Sb = !1,\n Tb = null,\n Ub = !1,\n Vb = null,\n Wb = {\n onError: function onError(a) {\n Sb = !0;\n Tb = a;\n }\n};\n\nfunction Xb(a, b, c, d, e, f, g, h, k) {\n Sb = !1;\n Tb = null;\n Rb.apply(Wb, arguments);\n}\n\nfunction Yb(a, b, c, d, e, f, g, h, k) {\n Xb.apply(this, arguments);\n\n if (Sb) {\n if (Sb) {\n var l = Tb;\n Sb = !1;\n Tb = null;\n } else throw Error(y(198));\n\n Ub || (Ub = !0, Vb = l);\n }\n}\n\nfunction Zb(a) {\n var b = a,\n c = a;\n if (a.alternate) for (; b.return;) {\n b = b.return;\n } else {\n a = b;\n\n do {\n b = a, 0 !== (b.flags & 1026) && (c = b.return), a = b.return;\n } while (a);\n }\n return 3 === b.tag ? c : null;\n}\n\nfunction $b(a) {\n if (13 === a.tag) {\n var b = a.memoizedState;\n null === b && (a = a.alternate, null !== a && (b = a.memoizedState));\n if (null !== b) return b.dehydrated;\n }\n\n return null;\n}\n\nfunction ac(a) {\n if (Zb(a) !== a) throw Error(y(188));\n}\n\nfunction bc(a) {\n var b = a.alternate;\n\n if (!b) {\n b = Zb(a);\n if (null === b) throw Error(y(188));\n return b !== a ? null : a;\n }\n\n for (var c = a, d = b;;) {\n var e = c.return;\n if (null === e) break;\n var f = e.alternate;\n\n if (null === f) {\n d = e.return;\n\n if (null !== d) {\n c = d;\n continue;\n }\n\n break;\n }\n\n if (e.child === f.child) {\n for (f = e.child; f;) {\n if (f === c) return ac(e), a;\n if (f === d) return ac(e), b;\n f = f.sibling;\n }\n\n throw Error(y(188));\n }\n\n if (c.return !== d.return) c = e, d = f;else {\n for (var g = !1, h = e.child; h;) {\n if (h === c) {\n g = !0;\n c = e;\n d = f;\n break;\n }\n\n if (h === d) {\n g = !0;\n d = e;\n c = f;\n break;\n }\n\n h = h.sibling;\n }\n\n if (!g) {\n for (h = f.child; h;) {\n if (h === c) {\n g = !0;\n c = f;\n d = e;\n break;\n }\n\n if (h === d) {\n g = !0;\n d = f;\n c = e;\n break;\n }\n\n h = h.sibling;\n }\n\n if (!g) throw Error(y(189));\n }\n }\n if (c.alternate !== d) throw Error(y(190));\n }\n\n if (3 !== c.tag) throw Error(y(188));\n return c.stateNode.current === c ? a : b;\n}\n\nfunction cc(a) {\n a = bc(a);\n if (!a) return null;\n\n for (var b = a;;) {\n if (5 === b.tag || 6 === b.tag) return b;\n if (b.child) b.child.return = b, b = b.child;else {\n if (b === a) break;\n\n for (; !b.sibling;) {\n if (!b.return || b.return === a) return null;\n b = b.return;\n }\n\n b.sibling.return = b.return;\n b = b.sibling;\n }\n }\n\n return null;\n}\n\nfunction dc(a, b) {\n for (var c = a.alternate; null !== b;) {\n if (b === a || b === c) return !0;\n b = b.return;\n }\n\n return !1;\n}\n\nvar ec,\n fc,\n gc,\n hc,\n ic = !1,\n jc = [],\n kc = null,\n lc = null,\n mc = null,\n nc = new Map(),\n oc = new Map(),\n pc = [],\n qc = \"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");\n\nfunction rc(a, b, c, d, e) {\n return {\n blockedOn: a,\n domEventName: b,\n eventSystemFlags: c | 16,\n nativeEvent: e,\n targetContainers: [d]\n };\n}\n\nfunction sc(a, b) {\n switch (a) {\n case \"focusin\":\n case \"focusout\":\n kc = null;\n break;\n\n case \"dragenter\":\n case \"dragleave\":\n lc = null;\n break;\n\n case \"mouseover\":\n case \"mouseout\":\n mc = null;\n break;\n\n case \"pointerover\":\n case \"pointerout\":\n nc.delete(b.pointerId);\n break;\n\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n oc.delete(b.pointerId);\n }\n}\n\nfunction tc(a, b, c, d, e, f) {\n if (null === a || a.nativeEvent !== f) return a = rc(b, c, d, e, f), null !== b && (b = Cb(b), null !== b && fc(b)), a;\n a.eventSystemFlags |= d;\n b = a.targetContainers;\n null !== e && -1 === b.indexOf(e) && b.push(e);\n return a;\n}\n\nfunction uc(a, b, c, d, e) {\n switch (b) {\n case \"focusin\":\n return kc = tc(kc, a, b, c, d, e), !0;\n\n case \"dragenter\":\n return lc = tc(lc, a, b, c, d, e), !0;\n\n case \"mouseover\":\n return mc = tc(mc, a, b, c, d, e), !0;\n\n case \"pointerover\":\n var f = e.pointerId;\n nc.set(f, tc(nc.get(f) || null, a, b, c, d, e));\n return !0;\n\n case \"gotpointercapture\":\n return f = e.pointerId, oc.set(f, tc(oc.get(f) || null, a, b, c, d, e)), !0;\n }\n\n return !1;\n}\n\nfunction vc(a) {\n var b = wc(a.target);\n\n if (null !== b) {\n var c = Zb(b);\n if (null !== c) if (b = c.tag, 13 === b) {\n if (b = $b(c), null !== b) {\n a.blockedOn = b;\n hc(a.lanePriority, function () {\n r.unstable_runWithPriority(a.priority, function () {\n gc(c);\n });\n });\n return;\n }\n } else if (3 === b && c.stateNode.hydrate) {\n a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null;\n return;\n }\n }\n\n a.blockedOn = null;\n}\n\nfunction xc(a) {\n if (null !== a.blockedOn) return !1;\n\n for (var b = a.targetContainers; 0 < b.length;) {\n var c = yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent);\n if (null !== c) return b = Cb(c), null !== b && fc(b), a.blockedOn = c, !1;\n b.shift();\n }\n\n return !0;\n}\n\nfunction zc(a, b, c) {\n xc(a) && c.delete(b);\n}\n\nfunction Ac() {\n for (ic = !1; 0 < jc.length;) {\n var a = jc[0];\n\n if (null !== a.blockedOn) {\n a = Cb(a.blockedOn);\n null !== a && ec(a);\n break;\n }\n\n for (var b = a.targetContainers; 0 < b.length;) {\n var c = yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent);\n\n if (null !== c) {\n a.blockedOn = c;\n break;\n }\n\n b.shift();\n }\n\n null === a.blockedOn && jc.shift();\n }\n\n null !== kc && xc(kc) && (kc = null);\n null !== lc && xc(lc) && (lc = null);\n null !== mc && xc(mc) && (mc = null);\n nc.forEach(zc);\n oc.forEach(zc);\n}\n\nfunction Bc(a, b) {\n a.blockedOn === b && (a.blockedOn = null, ic || (ic = !0, r.unstable_scheduleCallback(r.unstable_NormalPriority, Ac)));\n}\n\nfunction Cc(a) {\n function b(b) {\n return Bc(b, a);\n }\n\n if (0 < jc.length) {\n Bc(jc[0], a);\n\n for (var c = 1; c < jc.length; c++) {\n var d = jc[c];\n d.blockedOn === a && (d.blockedOn = null);\n }\n }\n\n null !== kc && Bc(kc, a);\n null !== lc && Bc(lc, a);\n null !== mc && Bc(mc, a);\n nc.forEach(b);\n oc.forEach(b);\n\n for (c = 0; c < pc.length; c++) {\n d = pc[c], d.blockedOn === a && (d.blockedOn = null);\n }\n\n for (; 0 < pc.length && (c = pc[0], null === c.blockedOn);) {\n vc(c), null === c.blockedOn && pc.shift();\n }\n}\n\nfunction Dc(a, b) {\n var c = {};\n c[a.toLowerCase()] = b.toLowerCase();\n c[\"Webkit\" + a] = \"webkit\" + b;\n c[\"Moz\" + a] = \"moz\" + b;\n return c;\n}\n\nvar Ec = {\n animationend: Dc(\"Animation\", \"AnimationEnd\"),\n animationiteration: Dc(\"Animation\", \"AnimationIteration\"),\n animationstart: Dc(\"Animation\", \"AnimationStart\"),\n transitionend: Dc(\"Transition\", \"TransitionEnd\")\n},\n Fc = {},\n Gc = {};\nfa && (Gc = document.createElement(\"div\").style, \"AnimationEvent\" in window || (delete Ec.animationend.animation, delete Ec.animationiteration.animation, delete Ec.animationstart.animation), \"TransitionEvent\" in window || delete Ec.transitionend.transition);\n\nfunction Hc(a) {\n if (Fc[a]) return Fc[a];\n if (!Ec[a]) return a;\n var b = Ec[a],\n c;\n\n for (c in b) {\n if (b.hasOwnProperty(c) && c in Gc) return Fc[a] = b[c];\n }\n\n return a;\n}\n\nvar Ic = Hc(\"animationend\"),\n Jc = Hc(\"animationiteration\"),\n Kc = Hc(\"animationstart\"),\n Lc = Hc(\"transitionend\"),\n Mc = new Map(),\n Nc = new Map(),\n Oc = [\"abort\", \"abort\", Ic, \"animationEnd\", Jc, \"animationIteration\", Kc, \"animationStart\", \"canplay\", \"canPlay\", \"canplaythrough\", \"canPlayThrough\", \"durationchange\", \"durationChange\", \"emptied\", \"emptied\", \"encrypted\", \"encrypted\", \"ended\", \"ended\", \"error\", \"error\", \"gotpointercapture\", \"gotPointerCapture\", \"load\", \"load\", \"loadeddata\", \"loadedData\", \"loadedmetadata\", \"loadedMetadata\", \"loadstart\", \"loadStart\", \"lostpointercapture\", \"lostPointerCapture\", \"playing\", \"playing\", \"progress\", \"progress\", \"seeking\", \"seeking\", \"stalled\", \"stalled\", \"suspend\", \"suspend\", \"timeupdate\", \"timeUpdate\", Lc, \"transitionEnd\", \"waiting\", \"waiting\"];\n\nfunction Pc(a, b) {\n for (var c = 0; c < a.length; c += 2) {\n var d = a[c],\n e = a[c + 1];\n e = \"on\" + (e[0].toUpperCase() + e.slice(1));\n Nc.set(d, b);\n Mc.set(d, e);\n da(e, [d]);\n }\n}\n\nvar Qc = r.unstable_now;\nQc();\nvar F = 8;\n\nfunction Rc(a) {\n if (0 !== (1 & a)) return F = 15, 1;\n if (0 !== (2 & a)) return F = 14, 2;\n if (0 !== (4 & a)) return F = 13, 4;\n var b = 24 & a;\n if (0 !== b) return F = 12, b;\n if (0 !== (a & 32)) return F = 11, 32;\n b = 192 & a;\n if (0 !== b) return F = 10, b;\n if (0 !== (a & 256)) return F = 9, 256;\n b = 3584 & a;\n if (0 !== b) return F = 8, b;\n if (0 !== (a & 4096)) return F = 7, 4096;\n b = 4186112 & a;\n if (0 !== b) return F = 6, b;\n b = 62914560 & a;\n if (0 !== b) return F = 5, b;\n if (a & 67108864) return F = 4, 67108864;\n if (0 !== (a & 134217728)) return F = 3, 134217728;\n b = 805306368 & a;\n if (0 !== b) return F = 2, b;\n if (0 !== (1073741824 & a)) return F = 1, 1073741824;\n F = 8;\n return a;\n}\n\nfunction Sc(a) {\n switch (a) {\n case 99:\n return 15;\n\n case 98:\n return 10;\n\n case 97:\n case 96:\n return 8;\n\n case 95:\n return 2;\n\n default:\n return 0;\n }\n}\n\nfunction Tc(a) {\n switch (a) {\n case 15:\n case 14:\n return 99;\n\n case 13:\n case 12:\n case 11:\n case 10:\n return 98;\n\n case 9:\n case 8:\n case 7:\n case 6:\n case 4:\n case 5:\n return 97;\n\n case 3:\n case 2:\n case 1:\n return 95;\n\n case 0:\n return 90;\n\n default:\n throw Error(y(358, a));\n }\n}\n\nfunction Uc(a, b) {\n var c = a.pendingLanes;\n if (0 === c) return F = 0;\n var d = 0,\n e = 0,\n f = a.expiredLanes,\n g = a.suspendedLanes,\n h = a.pingedLanes;\n if (0 !== f) d = f, e = F = 15;else if (f = c & 134217727, 0 !== f) {\n var k = f & ~g;\n 0 !== k ? (d = Rc(k), e = F) : (h &= f, 0 !== h && (d = Rc(h), e = F));\n } else f = c & ~g, 0 !== f ? (d = Rc(f), e = F) : 0 !== h && (d = Rc(h), e = F);\n if (0 === d) return 0;\n d = 31 - Vc(d);\n d = c & ((0 > d ? 0 : 1 << d) << 1) - 1;\n\n if (0 !== b && b !== d && 0 === (b & g)) {\n Rc(b);\n if (e <= F) return b;\n F = e;\n }\n\n b = a.entangledLanes;\n if (0 !== b) for (a = a.entanglements, b &= d; 0 < b;) {\n c = 31 - Vc(b), e = 1 << c, d |= a[c], b &= ~e;\n }\n return d;\n}\n\nfunction Wc(a) {\n a = a.pendingLanes & -1073741825;\n return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;\n}\n\nfunction Xc(a, b) {\n switch (a) {\n case 15:\n return 1;\n\n case 14:\n return 2;\n\n case 12:\n return a = Yc(24 & ~b), 0 === a ? Xc(10, b) : a;\n\n case 10:\n return a = Yc(192 & ~b), 0 === a ? Xc(8, b) : a;\n\n case 8:\n return a = Yc(3584 & ~b), 0 === a && (a = Yc(4186112 & ~b), 0 === a && (a = 512)), a;\n\n case 2:\n return b = Yc(805306368 & ~b), 0 === b && (b = 268435456), b;\n }\n\n throw Error(y(358, a));\n}\n\nfunction Yc(a) {\n return a & -a;\n}\n\nfunction Zc(a) {\n for (var b = [], c = 0; 31 > c; c++) {\n b.push(a);\n }\n\n return b;\n}\n\nfunction $c(a, b, c) {\n a.pendingLanes |= b;\n var d = b - 1;\n a.suspendedLanes &= d;\n a.pingedLanes &= d;\n a = a.eventTimes;\n b = 31 - Vc(b);\n a[b] = c;\n}\n\nvar Vc = Math.clz32 ? Math.clz32 : ad,\n bd = Math.log,\n cd = Math.LN2;\n\nfunction ad(a) {\n return 0 === a ? 32 : 31 - (bd(a) / cd | 0) | 0;\n}\n\nvar dd = r.unstable_UserBlockingPriority,\n ed = r.unstable_runWithPriority,\n fd = !0;\n\nfunction gd(a, b, c, d) {\n Kb || Ib();\n var e = hd,\n f = Kb;\n Kb = !0;\n\n try {\n Hb(e, a, b, c, d);\n } finally {\n (Kb = f) || Mb();\n }\n}\n\nfunction id(a, b, c, d) {\n ed(dd, hd.bind(null, a, b, c, d));\n}\n\nfunction hd(a, b, c, d) {\n if (fd) {\n var e;\n if ((e = 0 === (b & 4)) && 0 < jc.length && -1 < qc.indexOf(a)) a = rc(null, a, b, c, d), jc.push(a);else {\n var f = yc(a, b, c, d);\n if (null === f) e && sc(a, d);else {\n if (e) {\n if (-1 < qc.indexOf(a)) {\n a = rc(f, a, b, c, d);\n jc.push(a);\n return;\n }\n\n if (uc(f, a, b, c, d)) return;\n sc(a, d);\n }\n\n jd(a, b, d, null, c);\n }\n }\n }\n}\n\nfunction yc(a, b, c, d) {\n var e = xb(d);\n e = wc(e);\n\n if (null !== e) {\n var f = Zb(e);\n if (null === f) e = null;else {\n var g = f.tag;\n\n if (13 === g) {\n e = $b(f);\n if (null !== e) return e;\n e = null;\n } else if (3 === g) {\n if (f.stateNode.hydrate) return 3 === f.tag ? f.stateNode.containerInfo : null;\n e = null;\n } else f !== e && (e = null);\n }\n }\n\n jd(a, b, d, e, c);\n return null;\n}\n\nvar kd = null,\n ld = null,\n md = null;\n\nfunction nd() {\n if (md) return md;\n var a,\n b = ld,\n c = b.length,\n d,\n e = \"value\" in kd ? kd.value : kd.textContent,\n f = e.length;\n\n for (a = 0; a < c && b[a] === e[a]; a++) {\n ;\n }\n\n var g = c - a;\n\n for (d = 1; d <= g && b[c - d] === e[f - d]; d++) {\n ;\n }\n\n return md = e.slice(a, 1 < d ? 1 - d : void 0);\n}\n\nfunction od(a) {\n var b = a.keyCode;\n \"charCode\" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b;\n 10 === a && (a = 13);\n return 32 <= a || 13 === a ? a : 0;\n}\n\nfunction pd() {\n return !0;\n}\n\nfunction qd() {\n return !1;\n}\n\nfunction rd(a) {\n function b(b, d, e, f, g) {\n this._reactName = b;\n this._targetInst = e;\n this.type = d;\n this.nativeEvent = f;\n this.target = g;\n this.currentTarget = null;\n\n for (var c in a) {\n a.hasOwnProperty(c) && (b = a[c], this[c] = b ? b(f) : f[c]);\n }\n\n this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? pd : qd;\n this.isPropagationStopped = qd;\n return this;\n }\n\n m(b.prototype, {\n preventDefault: function preventDefault() {\n this.defaultPrevented = !0;\n var a = this.nativeEvent;\n a && (a.preventDefault ? a.preventDefault() : \"unknown\" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = pd);\n },\n stopPropagation: function stopPropagation() {\n var a = this.nativeEvent;\n a && (a.stopPropagation ? a.stopPropagation() : \"unknown\" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = pd);\n },\n persist: function persist() {},\n isPersistent: pd\n });\n return b;\n}\n\nvar sd = {\n eventPhase: 0,\n bubbles: 0,\n cancelable: 0,\n timeStamp: function timeStamp(a) {\n return a.timeStamp || Date.now();\n },\n defaultPrevented: 0,\n isTrusted: 0\n},\n td = rd(sd),\n ud = m({}, sd, {\n view: 0,\n detail: 0\n}),\n vd = rd(ud),\n wd,\n xd,\n yd,\n Ad = m({}, ud, {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n getModifierState: zd,\n button: 0,\n buttons: 0,\n relatedTarget: function relatedTarget(a) {\n return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget;\n },\n movementX: function movementX(a) {\n if (\"movementX\" in a) return a.movementX;\n a !== yd && (yd && \"mousemove\" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a);\n return wd;\n },\n movementY: function movementY(a) {\n return \"movementY\" in a ? a.movementY : xd;\n }\n}),\n Bd = rd(Ad),\n Cd = m({}, Ad, {\n dataTransfer: 0\n}),\n Dd = rd(Cd),\n Ed = m({}, ud, {\n relatedTarget: 0\n}),\n Fd = rd(Ed),\n Gd = m({}, sd, {\n animationName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n}),\n Hd = rd(Gd),\n Id = m({}, sd, {\n clipboardData: function clipboardData(a) {\n return \"clipboardData\" in a ? a.clipboardData : window.clipboardData;\n }\n}),\n Jd = rd(Id),\n Kd = m({}, sd, {\n data: 0\n}),\n Ld = rd(Kd),\n Md = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n},\n Nd = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n},\n Od = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n};\n\nfunction Pd(a) {\n var b = this.nativeEvent;\n return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : !1;\n}\n\nfunction zd() {\n return Pd;\n}\n\nvar Qd = m({}, ud, {\n key: function key(a) {\n if (a.key) {\n var b = Md[a.key] || a.key;\n if (\"Unidentified\" !== b) return b;\n }\n\n return \"keypress\" === a.type ? (a = od(a), 13 === a ? \"Enter\" : String.fromCharCode(a)) : \"keydown\" === a.type || \"keyup\" === a.type ? Nd[a.keyCode] || \"Unidentified\" : \"\";\n },\n code: 0,\n location: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n repeat: 0,\n locale: 0,\n getModifierState: zd,\n charCode: function charCode(a) {\n return \"keypress\" === a.type ? od(a) : 0;\n },\n keyCode: function keyCode(a) {\n return \"keydown\" === a.type || \"keyup\" === a.type ? a.keyCode : 0;\n },\n which: function which(a) {\n return \"keypress\" === a.type ? od(a) : \"keydown\" === a.type || \"keyup\" === a.type ? a.keyCode : 0;\n }\n}),\n Rd = rd(Qd),\n Sd = m({}, Ad, {\n pointerId: 0,\n width: 0,\n height: 0,\n pressure: 0,\n tangentialPressure: 0,\n tiltX: 0,\n tiltY: 0,\n twist: 0,\n pointerType: 0,\n isPrimary: 0\n}),\n Td = rd(Sd),\n Ud = m({}, ud, {\n touches: 0,\n targetTouches: 0,\n changedTouches: 0,\n altKey: 0,\n metaKey: 0,\n ctrlKey: 0,\n shiftKey: 0,\n getModifierState: zd\n}),\n Vd = rd(Ud),\n Wd = m({}, sd, {\n propertyName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n}),\n Xd = rd(Wd),\n Yd = m({}, Ad, {\n deltaX: function deltaX(a) {\n return \"deltaX\" in a ? a.deltaX : \"wheelDeltaX\" in a ? -a.wheelDeltaX : 0;\n },\n deltaY: function deltaY(a) {\n return \"deltaY\" in a ? a.deltaY : \"wheelDeltaY\" in a ? -a.wheelDeltaY : \"wheelDelta\" in a ? -a.wheelDelta : 0;\n },\n deltaZ: 0,\n deltaMode: 0\n}),\n Zd = rd(Yd),\n $d = [9, 13, 27, 32],\n ae = fa && \"CompositionEvent\" in window,\n be = null;\nfa && \"documentMode\" in document && (be = document.documentMode);\nvar ce = fa && \"TextEvent\" in window && !be,\n de = fa && (!ae || be && 8 < be && 11 >= be),\n ee = String.fromCharCode(32),\n fe = !1;\n\nfunction ge(a, b) {\n switch (a) {\n case \"keyup\":\n return -1 !== $d.indexOf(b.keyCode);\n\n case \"keydown\":\n return 229 !== b.keyCode;\n\n case \"keypress\":\n case \"mousedown\":\n case \"focusout\":\n return !0;\n\n default:\n return !1;\n }\n}\n\nfunction he(a) {\n a = a.detail;\n return \"object\" === _typeof(a) && \"data\" in a ? a.data : null;\n}\n\nvar ie = !1;\n\nfunction je(a, b) {\n switch (a) {\n case \"compositionend\":\n return he(b);\n\n case \"keypress\":\n if (32 !== b.which) return null;\n fe = !0;\n return ee;\n\n case \"textInput\":\n return a = b.data, a === ee && fe ? null : a;\n\n default:\n return null;\n }\n}\n\nfunction ke(a, b) {\n if (ie) return \"compositionend\" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = !1, a) : null;\n\n switch (a) {\n case \"paste\":\n return null;\n\n case \"keypress\":\n if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {\n if (b.char && 1 < b.char.length) return b.char;\n if (b.which) return String.fromCharCode(b.which);\n }\n\n return null;\n\n case \"compositionend\":\n return de && \"ko\" !== b.locale ? null : b.data;\n\n default:\n return null;\n }\n}\n\nvar le = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n};\n\nfunction me(a) {\n var b = a && a.nodeName && a.nodeName.toLowerCase();\n return \"input\" === b ? !!le[a.type] : \"textarea\" === b ? !0 : !1;\n}\n\nfunction ne(a, b, c, d) {\n Eb(d);\n b = oe(b, \"onChange\");\n 0 < b.length && (c = new td(\"onChange\", \"change\", null, c, d), a.push({\n event: c,\n listeners: b\n }));\n}\n\nvar pe = null,\n qe = null;\n\nfunction re(a) {\n se(a, 0);\n}\n\nfunction te(a) {\n var b = ue(a);\n if (Wa(b)) return a;\n}\n\nfunction ve(a, b) {\n if (\"change\" === a) return b;\n}\n\nvar we = !1;\n\nif (fa) {\n var xe;\n\n if (fa) {\n var ye = (\"oninput\" in document);\n\n if (!ye) {\n var ze = document.createElement(\"div\");\n ze.setAttribute(\"oninput\", \"return;\");\n ye = \"function\" === typeof ze.oninput;\n }\n\n xe = ye;\n } else xe = !1;\n\n we = xe && (!document.documentMode || 9 < document.documentMode);\n}\n\nfunction Ae() {\n pe && (pe.detachEvent(\"onpropertychange\", Be), qe = pe = null);\n}\n\nfunction Be(a) {\n if (\"value\" === a.propertyName && te(qe)) {\n var b = [];\n ne(b, qe, a, xb(a));\n a = re;\n if (Kb) a(b);else {\n Kb = !0;\n\n try {\n Gb(a, b);\n } finally {\n Kb = !1, Mb();\n }\n }\n }\n}\n\nfunction Ce(a, b, c) {\n \"focusin\" === a ? (Ae(), pe = b, qe = c, pe.attachEvent(\"onpropertychange\", Be)) : \"focusout\" === a && Ae();\n}\n\nfunction De(a) {\n if (\"selectionchange\" === a || \"keyup\" === a || \"keydown\" === a) return te(qe);\n}\n\nfunction Ee(a, b) {\n if (\"click\" === a) return te(b);\n}\n\nfunction Fe(a, b) {\n if (\"input\" === a || \"change\" === a) return te(b);\n}\n\nfunction Ge(a, b) {\n return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;\n}\n\nvar He = \"function\" === typeof Object.is ? Object.is : Ge,\n Ie = Object.prototype.hasOwnProperty;\n\nfunction Je(a, b) {\n if (He(a, b)) return !0;\n if (\"object\" !== _typeof(a) || null === a || \"object\" !== _typeof(b) || null === b) return !1;\n var c = Object.keys(a),\n d = Object.keys(b);\n if (c.length !== d.length) return !1;\n\n for (d = 0; d < c.length; d++) {\n if (!Ie.call(b, c[d]) || !He(a[c[d]], b[c[d]])) return !1;\n }\n\n return !0;\n}\n\nfunction Ke(a) {\n for (; a && a.firstChild;) {\n a = a.firstChild;\n }\n\n return a;\n}\n\nfunction Le(a, b) {\n var c = Ke(a);\n a = 0;\n\n for (var d; c;) {\n if (3 === c.nodeType) {\n d = a + c.textContent.length;\n if (a <= b && d >= b) return {\n node: c,\n offset: b - a\n };\n a = d;\n }\n\n a: {\n for (; c;) {\n if (c.nextSibling) {\n c = c.nextSibling;\n break a;\n }\n\n c = c.parentNode;\n }\n\n c = void 0;\n }\n\n c = Ke(c);\n }\n}\n\nfunction Me(a, b) {\n return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Me(a, b.parentNode) : \"contains\" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1;\n}\n\nfunction Ne() {\n for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement;) {\n try {\n var c = \"string\" === typeof b.contentWindow.location.href;\n } catch (d) {\n c = !1;\n }\n\n if (c) a = b.contentWindow;else break;\n b = Xa(a.document);\n }\n\n return b;\n}\n\nfunction Oe(a) {\n var b = a && a.nodeName && a.nodeName.toLowerCase();\n return b && (\"input\" === b && (\"text\" === a.type || \"search\" === a.type || \"tel\" === a.type || \"url\" === a.type || \"password\" === a.type) || \"textarea\" === b || \"true\" === a.contentEditable);\n}\n\nvar Pe = fa && \"documentMode\" in document && 11 >= document.documentMode,\n Qe = null,\n Re = null,\n Se = null,\n Te = !1;\n\nfunction Ue(a, b, c) {\n var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument;\n Te || null == Qe || Qe !== Xa(d) || (d = Qe, \"selectionStart\" in d && Oe(d) ? d = {\n start: d.selectionStart,\n end: d.selectionEnd\n } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = {\n anchorNode: d.anchorNode,\n anchorOffset: d.anchorOffset,\n focusNode: d.focusNode,\n focusOffset: d.focusOffset\n }), Se && Je(Se, d) || (Se = d, d = oe(Re, \"onSelect\"), 0 < d.length && (b = new td(\"onSelect\", \"select\", null, b, c), a.push({\n event: b,\n listeners: d\n }), b.target = Qe)));\n}\n\nPc(\"cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange\".split(\" \"), 0);\nPc(\"drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel\".split(\" \"), 1);\nPc(Oc, 2);\n\nfor (var Ve = \"change selectionchange textInput compositionstart compositionend compositionupdate\".split(\" \"), We = 0; We < Ve.length; We++) {\n Nc.set(Ve[We], 0);\n}\n\nea(\"onMouseEnter\", [\"mouseout\", \"mouseover\"]);\nea(\"onMouseLeave\", [\"mouseout\", \"mouseover\"]);\nea(\"onPointerEnter\", [\"pointerout\", \"pointerover\"]);\nea(\"onPointerLeave\", [\"pointerout\", \"pointerover\"]);\nda(\"onChange\", \"change click focusin focusout input keydown keyup selectionchange\".split(\" \"));\nda(\"onSelect\", \"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \"));\nda(\"onBeforeInput\", [\"compositionend\", \"keypress\", \"textInput\", \"paste\"]);\nda(\"onCompositionEnd\", \"compositionend focusout keydown keypress keyup mousedown\".split(\" \"));\nda(\"onCompositionStart\", \"compositionstart focusout keydown keypress keyup mousedown\".split(\" \"));\nda(\"onCompositionUpdate\", \"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));\nvar Xe = \"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),\n Ye = new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(Xe));\n\nfunction Ze(a, b, c) {\n var d = a.type || \"unknown-event\";\n a.currentTarget = c;\n Yb(d, b, void 0, a);\n a.currentTarget = null;\n}\n\nfunction se(a, b) {\n b = 0 !== (b & 4);\n\n for (var c = 0; c < a.length; c++) {\n var d = a[c],\n e = d.event;\n d = d.listeners;\n\n a: {\n var f = void 0;\n if (b) for (var g = d.length - 1; 0 <= g; g--) {\n var h = d[g],\n k = h.instance,\n l = h.currentTarget;\n h = h.listener;\n if (k !== f && e.isPropagationStopped()) break a;\n Ze(e, h, l);\n f = k;\n } else for (g = 0; g < d.length; g++) {\n h = d[g];\n k = h.instance;\n l = h.currentTarget;\n h = h.listener;\n if (k !== f && e.isPropagationStopped()) break a;\n Ze(e, h, l);\n f = k;\n }\n }\n }\n\n if (Ub) throw a = Vb, Ub = !1, Vb = null, a;\n}\n\nfunction G(a, b) {\n var c = $e(b),\n d = a + \"__bubble\";\n c.has(d) || (af(b, a, 2, !1), c.add(d));\n}\n\nvar bf = \"_reactListening\" + Math.random().toString(36).slice(2);\n\nfunction cf(a) {\n a[bf] || (a[bf] = !0, ba.forEach(function (b) {\n Ye.has(b) || df(b, !1, a, null);\n df(b, !0, a, null);\n }));\n}\n\nfunction df(a, b, c, d) {\n var e = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 0,\n f = c;\n \"selectionchange\" === a && 9 !== c.nodeType && (f = c.ownerDocument);\n\n if (null !== d && !b && Ye.has(a)) {\n if (\"scroll\" !== a) return;\n e |= 2;\n f = d;\n }\n\n var g = $e(f),\n h = a + \"__\" + (b ? \"capture\" : \"bubble\");\n g.has(h) || (b && (e |= 4), af(f, a, e, b), g.add(h));\n}\n\nfunction af(a, b, c, d) {\n var e = Nc.get(b);\n\n switch (void 0 === e ? 2 : e) {\n case 0:\n e = gd;\n break;\n\n case 1:\n e = id;\n break;\n\n default:\n e = hd;\n }\n\n c = e.bind(null, b, c, a);\n e = void 0;\n !Pb || \"touchstart\" !== b && \"touchmove\" !== b && \"wheel\" !== b || (e = !0);\n d ? void 0 !== e ? a.addEventListener(b, c, {\n capture: !0,\n passive: e\n }) : a.addEventListener(b, c, !0) : void 0 !== e ? a.addEventListener(b, c, {\n passive: e\n }) : a.addEventListener(b, c, !1);\n}\n\nfunction jd(a, b, c, d, e) {\n var f = d;\n if (0 === (b & 1) && 0 === (b & 2) && null !== d) a: for (;;) {\n if (null === d) return;\n var g = d.tag;\n\n if (3 === g || 4 === g) {\n var h = d.stateNode.containerInfo;\n if (h === e || 8 === h.nodeType && h.parentNode === e) break;\n if (4 === g) for (g = d.return; null !== g;) {\n var k = g.tag;\n if (3 === k || 4 === k) if (k = g.stateNode.containerInfo, k === e || 8 === k.nodeType && k.parentNode === e) return;\n g = g.return;\n }\n\n for (; null !== h;) {\n g = wc(h);\n if (null === g) return;\n k = g.tag;\n\n if (5 === k || 6 === k) {\n d = f = g;\n continue a;\n }\n\n h = h.parentNode;\n }\n }\n\n d = d.return;\n }\n Nb(function () {\n var d = f,\n e = xb(c),\n g = [];\n\n a: {\n var h = Mc.get(a);\n\n if (void 0 !== h) {\n var k = td,\n x = a;\n\n switch (a) {\n case \"keypress\":\n if (0 === od(c)) break a;\n\n case \"keydown\":\n case \"keyup\":\n k = Rd;\n break;\n\n case \"focusin\":\n x = \"focus\";\n k = Fd;\n break;\n\n case \"focusout\":\n x = \"blur\";\n k = Fd;\n break;\n\n case \"beforeblur\":\n case \"afterblur\":\n k = Fd;\n break;\n\n case \"click\":\n if (2 === c.button) break a;\n\n case \"auxclick\":\n case \"dblclick\":\n case \"mousedown\":\n case \"mousemove\":\n case \"mouseup\":\n case \"mouseout\":\n case \"mouseover\":\n case \"contextmenu\":\n k = Bd;\n break;\n\n case \"drag\":\n case \"dragend\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"dragstart\":\n case \"drop\":\n k = Dd;\n break;\n\n case \"touchcancel\":\n case \"touchend\":\n case \"touchmove\":\n case \"touchstart\":\n k = Vd;\n break;\n\n case Ic:\n case Jc:\n case Kc:\n k = Hd;\n break;\n\n case Lc:\n k = Xd;\n break;\n\n case \"scroll\":\n k = vd;\n break;\n\n case \"wheel\":\n k = Zd;\n break;\n\n case \"copy\":\n case \"cut\":\n case \"paste\":\n k = Jd;\n break;\n\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"pointerup\":\n k = Td;\n }\n\n var w = 0 !== (b & 4),\n z = !w && \"scroll\" === a,\n u = w ? null !== h ? h + \"Capture\" : null : h;\n w = [];\n\n for (var t = d, q; null !== t;) {\n q = t;\n var v = q.stateNode;\n 5 === q.tag && null !== v && (q = v, null !== u && (v = Ob(t, u), null != v && w.push(ef(t, v, q))));\n if (z) break;\n t = t.return;\n }\n\n 0 < w.length && (h = new k(h, x, null, c, e), g.push({\n event: h,\n listeners: w\n }));\n }\n }\n\n if (0 === (b & 7)) {\n a: {\n h = \"mouseover\" === a || \"pointerover\" === a;\n k = \"mouseout\" === a || \"pointerout\" === a;\n if (h && 0 === (b & 16) && (x = c.relatedTarget || c.fromElement) && (wc(x) || x[ff])) break a;\n\n if (k || h) {\n h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window;\n\n if (k) {\n if (x = c.relatedTarget || c.toElement, k = d, x = x ? wc(x) : null, null !== x && (z = Zb(x), x !== z || 5 !== x.tag && 6 !== x.tag)) x = null;\n } else k = null, x = d;\n\n if (k !== x) {\n w = Bd;\n v = \"onMouseLeave\";\n u = \"onMouseEnter\";\n t = \"mouse\";\n if (\"pointerout\" === a || \"pointerover\" === a) w = Td, v = \"onPointerLeave\", u = \"onPointerEnter\", t = \"pointer\";\n z = null == k ? h : ue(k);\n q = null == x ? h : ue(x);\n h = new w(v, t + \"leave\", k, c, e);\n h.target = z;\n h.relatedTarget = q;\n v = null;\n wc(e) === d && (w = new w(u, t + \"enter\", x, c, e), w.target = q, w.relatedTarget = z, v = w);\n z = v;\n if (k && x) b: {\n w = k;\n u = x;\n t = 0;\n\n for (q = w; q; q = gf(q)) {\n t++;\n }\n\n q = 0;\n\n for (v = u; v; v = gf(v)) {\n q++;\n }\n\n for (; 0 < t - q;) {\n w = gf(w), t--;\n }\n\n for (; 0 < q - t;) {\n u = gf(u), q--;\n }\n\n for (; t--;) {\n if (w === u || null !== u && w === u.alternate) break b;\n w = gf(w);\n u = gf(u);\n }\n\n w = null;\n } else w = null;\n null !== k && hf(g, h, k, w, !1);\n null !== x && null !== z && hf(g, z, x, w, !0);\n }\n }\n }\n\n a: {\n h = d ? ue(d) : window;\n k = h.nodeName && h.nodeName.toLowerCase();\n if (\"select\" === k || \"input\" === k && \"file\" === h.type) var J = ve;else if (me(h)) {\n if (we) J = Fe;else {\n J = De;\n var K = Ce;\n }\n } else (k = h.nodeName) && \"input\" === k.toLowerCase() && (\"checkbox\" === h.type || \"radio\" === h.type) && (J = Ee);\n\n if (J && (J = J(a, d))) {\n ne(g, J, c, e);\n break a;\n }\n\n K && K(a, h, d);\n \"focusout\" === a && (K = h._wrapperState) && K.controlled && \"number\" === h.type && bb(h, \"number\", h.value);\n }\n\n K = d ? ue(d) : window;\n\n switch (a) {\n case \"focusin\":\n if (me(K) || \"true\" === K.contentEditable) Qe = K, Re = d, Se = null;\n break;\n\n case \"focusout\":\n Se = Re = Qe = null;\n break;\n\n case \"mousedown\":\n Te = !0;\n break;\n\n case \"contextmenu\":\n case \"mouseup\":\n case \"dragend\":\n Te = !1;\n Ue(g, c, e);\n break;\n\n case \"selectionchange\":\n if (Pe) break;\n\n case \"keydown\":\n case \"keyup\":\n Ue(g, c, e);\n }\n\n var Q;\n if (ae) b: {\n switch (a) {\n case \"compositionstart\":\n var L = \"onCompositionStart\";\n break b;\n\n case \"compositionend\":\n L = \"onCompositionEnd\";\n break b;\n\n case \"compositionupdate\":\n L = \"onCompositionUpdate\";\n break b;\n }\n\n L = void 0;\n } else ie ? ge(a, c) && (L = \"onCompositionEnd\") : \"keydown\" === a && 229 === c.keyCode && (L = \"onCompositionStart\");\n L && (de && \"ko\" !== c.locale && (ie || \"onCompositionStart\" !== L ? \"onCompositionEnd\" === L && ie && (Q = nd()) : (kd = e, ld = \"value\" in kd ? kd.value : kd.textContent, ie = !0)), K = oe(d, L), 0 < K.length && (L = new Ld(L, a, null, c, e), g.push({\n event: L,\n listeners: K\n }), Q ? L.data = Q : (Q = he(c), null !== Q && (L.data = Q))));\n if (Q = ce ? je(a, c) : ke(a, c)) d = oe(d, \"onBeforeInput\"), 0 < d.length && (e = new Ld(\"onBeforeInput\", \"beforeinput\", null, c, e), g.push({\n event: e,\n listeners: d\n }), e.data = Q);\n }\n\n se(g, b);\n });\n}\n\nfunction ef(a, b, c) {\n return {\n instance: a,\n listener: b,\n currentTarget: c\n };\n}\n\nfunction oe(a, b) {\n for (var c = b + \"Capture\", d = []; null !== a;) {\n var e = a,\n f = e.stateNode;\n 5 === e.tag && null !== f && (e = f, f = Ob(a, c), null != f && d.unshift(ef(a, f, e)), f = Ob(a, b), null != f && d.push(ef(a, f, e)));\n a = a.return;\n }\n\n return d;\n}\n\nfunction gf(a) {\n if (null === a) return null;\n\n do {\n a = a.return;\n } while (a && 5 !== a.tag);\n\n return a ? a : null;\n}\n\nfunction hf(a, b, c, d, e) {\n for (var f = b._reactName, g = []; null !== c && c !== d;) {\n var h = c,\n k = h.alternate,\n l = h.stateNode;\n if (null !== k && k === d) break;\n 5 === h.tag && null !== l && (h = l, e ? (k = Ob(c, f), null != k && g.unshift(ef(c, k, h))) : e || (k = Ob(c, f), null != k && g.push(ef(c, k, h))));\n c = c.return;\n }\n\n 0 !== g.length && a.push({\n event: b,\n listeners: g\n });\n}\n\nfunction jf() {}\n\nvar kf = null,\n lf = null;\n\nfunction mf(a, b) {\n switch (a) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n return !!b.autoFocus;\n }\n\n return !1;\n}\n\nfunction nf(a, b) {\n return \"textarea\" === a || \"option\" === a || \"noscript\" === a || \"string\" === typeof b.children || \"number\" === typeof b.children || \"object\" === _typeof(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;\n}\n\nvar of = \"function\" === typeof setTimeout ? setTimeout : void 0,\n pf = \"function\" === typeof clearTimeout ? clearTimeout : void 0;\n\nfunction qf(a) {\n 1 === a.nodeType ? a.textContent = \"\" : 9 === a.nodeType && (a = a.body, null != a && (a.textContent = \"\"));\n}\n\nfunction rf(a) {\n for (; null != a; a = a.nextSibling) {\n var b = a.nodeType;\n if (1 === b || 3 === b) break;\n }\n\n return a;\n}\n\nfunction sf(a) {\n a = a.previousSibling;\n\n for (var b = 0; a;) {\n if (8 === a.nodeType) {\n var c = a.data;\n\n if (\"$\" === c || \"$!\" === c || \"$?\" === c) {\n if (0 === b) return a;\n b--;\n } else \"/$\" === c && b++;\n }\n\n a = a.previousSibling;\n }\n\n return null;\n}\n\nvar tf = 0;\n\nfunction uf(a) {\n return {\n $$typeof: Ga,\n toString: a,\n valueOf: a\n };\n}\n\nvar vf = Math.random().toString(36).slice(2),\n wf = \"__reactFiber$\" + vf,\n xf = \"__reactProps$\" + vf,\n ff = \"__reactContainer$\" + vf,\n yf = \"__reactEvents$\" + vf;\n\nfunction wc(a) {\n var b = a[wf];\n if (b) return b;\n\n for (var c = a.parentNode; c;) {\n if (b = c[ff] || c[wf]) {\n c = b.alternate;\n if (null !== b.child || null !== c && null !== c.child) for (a = sf(a); null !== a;) {\n if (c = a[wf]) return c;\n a = sf(a);\n }\n return b;\n }\n\n a = c;\n c = a.parentNode;\n }\n\n return null;\n}\n\nfunction Cb(a) {\n a = a[wf] || a[ff];\n return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;\n}\n\nfunction ue(a) {\n if (5 === a.tag || 6 === a.tag) return a.stateNode;\n throw Error(y(33));\n}\n\nfunction Db(a) {\n return a[xf] || null;\n}\n\nfunction $e(a) {\n var b = a[yf];\n void 0 === b && (b = a[yf] = new Set());\n return b;\n}\n\nvar zf = [],\n Af = -1;\n\nfunction Bf(a) {\n return {\n current: a\n };\n}\n\nfunction H(a) {\n 0 > Af || (a.current = zf[Af], zf[Af] = null, Af--);\n}\n\nfunction I(a, b) {\n Af++;\n zf[Af] = a.current;\n a.current = b;\n}\n\nvar Cf = {},\n M = Bf(Cf),\n N = Bf(!1),\n Df = Cf;\n\nfunction Ef(a, b) {\n var c = a.type.contextTypes;\n if (!c) return Cf;\n var d = a.stateNode;\n if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;\n var e = {},\n f;\n\n for (f in c) {\n e[f] = b[f];\n }\n\n d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);\n return e;\n}\n\nfunction Ff(a) {\n a = a.childContextTypes;\n return null !== a && void 0 !== a;\n}\n\nfunction Gf() {\n H(N);\n H(M);\n}\n\nfunction Hf(a, b, c) {\n if (M.current !== Cf) throw Error(y(168));\n I(M, b);\n I(N, c);\n}\n\nfunction If(a, b, c) {\n var d = a.stateNode;\n a = b.childContextTypes;\n if (\"function\" !== typeof d.getChildContext) return c;\n d = d.getChildContext();\n\n for (var e in d) {\n if (!(e in a)) throw Error(y(108, Ra(b) || \"Unknown\", e));\n }\n\n return m({}, c, d);\n}\n\nfunction Jf(a) {\n a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Cf;\n Df = M.current;\n I(M, a);\n I(N, N.current);\n return !0;\n}\n\nfunction Kf(a, b, c) {\n var d = a.stateNode;\n if (!d) throw Error(y(169));\n c ? (a = If(a, b, Df), d.__reactInternalMemoizedMergedChildContext = a, H(N), H(M), I(M, a)) : H(N);\n I(N, c);\n}\n\nvar Lf = null,\n Mf = null,\n Nf = r.unstable_runWithPriority,\n Of = r.unstable_scheduleCallback,\n Pf = r.unstable_cancelCallback,\n Qf = r.unstable_shouldYield,\n Rf = r.unstable_requestPaint,\n Sf = r.unstable_now,\n Tf = r.unstable_getCurrentPriorityLevel,\n Uf = r.unstable_ImmediatePriority,\n Vf = r.unstable_UserBlockingPriority,\n Wf = r.unstable_NormalPriority,\n Xf = r.unstable_LowPriority,\n Yf = r.unstable_IdlePriority,\n Zf = {},\n $f = void 0 !== Rf ? Rf : function () {},\n ag = null,\n bg = null,\n cg = !1,\n dg = Sf(),\n O = 1E4 > dg ? Sf : function () {\n return Sf() - dg;\n};\n\nfunction eg() {\n switch (Tf()) {\n case Uf:\n return 99;\n\n case Vf:\n return 98;\n\n case Wf:\n return 97;\n\n case Xf:\n return 96;\n\n case Yf:\n return 95;\n\n default:\n throw Error(y(332));\n }\n}\n\nfunction fg(a) {\n switch (a) {\n case 99:\n return Uf;\n\n case 98:\n return Vf;\n\n case 97:\n return Wf;\n\n case 96:\n return Xf;\n\n case 95:\n return Yf;\n\n default:\n throw Error(y(332));\n }\n}\n\nfunction gg(a, b) {\n a = fg(a);\n return Nf(a, b);\n}\n\nfunction hg(a, b, c) {\n a = fg(a);\n return Of(a, b, c);\n}\n\nfunction ig() {\n if (null !== bg) {\n var a = bg;\n bg = null;\n Pf(a);\n }\n\n jg();\n}\n\nfunction jg() {\n if (!cg && null !== ag) {\n cg = !0;\n var a = 0;\n\n try {\n var b = ag;\n gg(99, function () {\n for (; a < b.length; a++) {\n var c = b[a];\n\n do {\n c = c(!0);\n } while (null !== c);\n }\n });\n ag = null;\n } catch (c) {\n throw null !== ag && (ag = ag.slice(a + 1)), Of(Uf, ig), c;\n } finally {\n cg = !1;\n }\n }\n}\n\nvar kg = ra.ReactCurrentBatchConfig;\n\nfunction lg(a, b) {\n if (a && a.defaultProps) {\n b = m({}, b);\n a = a.defaultProps;\n\n for (var c in a) {\n void 0 === b[c] && (b[c] = a[c]);\n }\n\n return b;\n }\n\n return b;\n}\n\nvar mg = Bf(null),\n ng = null,\n og = null,\n pg = null;\n\nfunction qg() {\n pg = og = ng = null;\n}\n\nfunction rg(a) {\n var b = mg.current;\n H(mg);\n a.type._context._currentValue = b;\n}\n\nfunction sg(a, b) {\n for (; null !== a;) {\n var c = a.alternate;\n if ((a.childLanes & b) === b) {\n if (null === c || (c.childLanes & b) === b) break;else c.childLanes |= b;\n } else a.childLanes |= b, null !== c && (c.childLanes |= b);\n a = a.return;\n }\n}\n\nfunction tg(a, b) {\n ng = a;\n pg = og = null;\n a = a.dependencies;\n null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (ug = !0), a.firstContext = null);\n}\n\nfunction vg(a, b) {\n if (pg !== a && !1 !== b && 0 !== b) {\n if (\"number\" !== typeof b || 1073741823 === b) pg = a, b = 1073741823;\n b = {\n context: a,\n observedBits: b,\n next: null\n };\n\n if (null === og) {\n if (null === ng) throw Error(y(308));\n og = b;\n ng.dependencies = {\n lanes: 0,\n firstContext: b,\n responders: null\n };\n } else og = og.next = b;\n }\n\n return a._currentValue;\n}\n\nvar wg = !1;\n\nfunction xg(a) {\n a.updateQueue = {\n baseState: a.memoizedState,\n firstBaseUpdate: null,\n lastBaseUpdate: null,\n shared: {\n pending: null\n },\n effects: null\n };\n}\n\nfunction yg(a, b) {\n a = a.updateQueue;\n b.updateQueue === a && (b.updateQueue = {\n baseState: a.baseState,\n firstBaseUpdate: a.firstBaseUpdate,\n lastBaseUpdate: a.lastBaseUpdate,\n shared: a.shared,\n effects: a.effects\n });\n}\n\nfunction zg(a, b) {\n return {\n eventTime: a,\n lane: b,\n tag: 0,\n payload: null,\n callback: null,\n next: null\n };\n}\n\nfunction Ag(a, b) {\n a = a.updateQueue;\n\n if (null !== a) {\n a = a.shared;\n var c = a.pending;\n null === c ? b.next = b : (b.next = c.next, c.next = b);\n a.pending = b;\n }\n}\n\nfunction Bg(a, b) {\n var c = a.updateQueue,\n d = a.alternate;\n\n if (null !== d && (d = d.updateQueue, c === d)) {\n var e = null,\n f = null;\n c = c.firstBaseUpdate;\n\n if (null !== c) {\n do {\n var g = {\n eventTime: c.eventTime,\n lane: c.lane,\n tag: c.tag,\n payload: c.payload,\n callback: c.callback,\n next: null\n };\n null === f ? e = f = g : f = f.next = g;\n c = c.next;\n } while (null !== c);\n\n null === f ? e = f = b : f = f.next = b;\n } else e = f = b;\n\n c = {\n baseState: d.baseState,\n firstBaseUpdate: e,\n lastBaseUpdate: f,\n shared: d.shared,\n effects: d.effects\n };\n a.updateQueue = c;\n return;\n }\n\n a = c.lastBaseUpdate;\n null === a ? c.firstBaseUpdate = b : a.next = b;\n c.lastBaseUpdate = b;\n}\n\nfunction Cg(a, b, c, d) {\n var e = a.updateQueue;\n wg = !1;\n var f = e.firstBaseUpdate,\n g = e.lastBaseUpdate,\n h = e.shared.pending;\n\n if (null !== h) {\n e.shared.pending = null;\n var k = h,\n l = k.next;\n k.next = null;\n null === g ? f = l : g.next = l;\n g = k;\n var n = a.alternate;\n\n if (null !== n) {\n n = n.updateQueue;\n var A = n.lastBaseUpdate;\n A !== g && (null === A ? n.firstBaseUpdate = l : A.next = l, n.lastBaseUpdate = k);\n }\n }\n\n if (null !== f) {\n A = e.baseState;\n g = 0;\n n = l = k = null;\n\n do {\n h = f.lane;\n var p = f.eventTime;\n\n if ((d & h) === h) {\n null !== n && (n = n.next = {\n eventTime: p,\n lane: 0,\n tag: f.tag,\n payload: f.payload,\n callback: f.callback,\n next: null\n });\n\n a: {\n var C = a,\n x = f;\n h = b;\n p = c;\n\n switch (x.tag) {\n case 1:\n C = x.payload;\n\n if (\"function\" === typeof C) {\n A = C.call(p, A, h);\n break a;\n }\n\n A = C;\n break a;\n\n case 3:\n C.flags = C.flags & -4097 | 64;\n\n case 0:\n C = x.payload;\n h = \"function\" === typeof C ? C.call(p, A, h) : C;\n if (null === h || void 0 === h) break a;\n A = m({}, A, h);\n break a;\n\n case 2:\n wg = !0;\n }\n }\n\n null !== f.callback && (a.flags |= 32, h = e.effects, null === h ? e.effects = [f] : h.push(f));\n } else p = {\n eventTime: p,\n lane: h,\n tag: f.tag,\n payload: f.payload,\n callback: f.callback,\n next: null\n }, null === n ? (l = n = p, k = A) : n = n.next = p, g |= h;\n\n f = f.next;\n if (null === f) if (h = e.shared.pending, null === h) break;else f = h.next, h.next = null, e.lastBaseUpdate = h, e.shared.pending = null;\n } while (1);\n\n null === n && (k = A);\n e.baseState = k;\n e.firstBaseUpdate = l;\n e.lastBaseUpdate = n;\n Dg |= g;\n a.lanes = g;\n a.memoizedState = A;\n }\n}\n\nfunction Eg(a, b, c) {\n a = b.effects;\n b.effects = null;\n if (null !== a) for (b = 0; b < a.length; b++) {\n var d = a[b],\n e = d.callback;\n\n if (null !== e) {\n d.callback = null;\n d = c;\n if (\"function\" !== typeof e) throw Error(y(191, e));\n e.call(d);\n }\n }\n}\n\nvar Fg = new aa.Component().refs;\n\nfunction Gg(a, b, c, d) {\n b = a.memoizedState;\n c = c(d, b);\n c = null === c || void 0 === c ? b : m({}, b, c);\n a.memoizedState = c;\n 0 === a.lanes && (a.updateQueue.baseState = c);\n}\n\nvar Kg = {\n isMounted: function isMounted(a) {\n return (a = a._reactInternals) ? Zb(a) === a : !1;\n },\n enqueueSetState: function enqueueSetState(a, b, c) {\n a = a._reactInternals;\n var d = Hg(),\n e = Ig(a),\n f = zg(d, e);\n f.payload = b;\n void 0 !== c && null !== c && (f.callback = c);\n Ag(a, f);\n Jg(a, e, d);\n },\n enqueueReplaceState: function enqueueReplaceState(a, b, c) {\n a = a._reactInternals;\n var d = Hg(),\n e = Ig(a),\n f = zg(d, e);\n f.tag = 1;\n f.payload = b;\n void 0 !== c && null !== c && (f.callback = c);\n Ag(a, f);\n Jg(a, e, d);\n },\n enqueueForceUpdate: function enqueueForceUpdate(a, b) {\n a = a._reactInternals;\n var c = Hg(),\n d = Ig(a),\n e = zg(c, d);\n e.tag = 2;\n void 0 !== b && null !== b && (e.callback = b);\n Ag(a, e);\n Jg(a, d, c);\n }\n};\n\nfunction Lg(a, b, c, d, e, f, g) {\n a = a.stateNode;\n return \"function\" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !Je(c, d) || !Je(e, f) : !0;\n}\n\nfunction Mg(a, b, c) {\n var d = !1,\n e = Cf;\n var f = b.contextType;\n \"object\" === _typeof(f) && null !== f ? f = vg(f) : (e = Ff(b) ? Df : M.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Ef(a, e) : Cf);\n b = new b(c, f);\n a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;\n b.updater = Kg;\n a.stateNode = b;\n b._reactInternals = a;\n d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f);\n return b;\n}\n\nfunction Ng(a, b, c, d) {\n a = b.state;\n \"function\" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d);\n \"function\" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d);\n b.state !== a && Kg.enqueueReplaceState(b, b.state, null);\n}\n\nfunction Og(a, b, c, d) {\n var e = a.stateNode;\n e.props = c;\n e.state = a.memoizedState;\n e.refs = Fg;\n xg(a);\n var f = b.contextType;\n \"object\" === _typeof(f) && null !== f ? e.context = vg(f) : (f = Ff(b) ? Df : M.current, e.context = Ef(a, f));\n Cg(a, c, e, d);\n e.state = a.memoizedState;\n f = b.getDerivedStateFromProps;\n \"function\" === typeof f && (Gg(a, b, f, c), e.state = a.memoizedState);\n \"function\" === typeof b.getDerivedStateFromProps || \"function\" === typeof e.getSnapshotBeforeUpdate || \"function\" !== typeof e.UNSAFE_componentWillMount && \"function\" !== typeof e.componentWillMount || (b = e.state, \"function\" === typeof e.componentWillMount && e.componentWillMount(), \"function\" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Kg.enqueueReplaceState(e, e.state, null), Cg(a, c, e, d), e.state = a.memoizedState);\n \"function\" === typeof e.componentDidMount && (a.flags |= 4);\n}\n\nvar Pg = Array.isArray;\n\nfunction Qg(a, b, c) {\n a = c.ref;\n\n if (null !== a && \"function\" !== typeof a && \"object\" !== _typeof(a)) {\n if (c._owner) {\n c = c._owner;\n\n if (c) {\n if (1 !== c.tag) throw Error(y(309));\n var d = c.stateNode;\n }\n\n if (!d) throw Error(y(147, a));\n var e = \"\" + a;\n if (null !== b && null !== b.ref && \"function\" === typeof b.ref && b.ref._stringRef === e) return b.ref;\n\n b = function b(a) {\n var b = d.refs;\n b === Fg && (b = d.refs = {});\n null === a ? delete b[e] : b[e] = a;\n };\n\n b._stringRef = e;\n return b;\n }\n\n if (\"string\" !== typeof a) throw Error(y(284));\n if (!c._owner) throw Error(y(290, a));\n }\n\n return a;\n}\n\nfunction Rg(a, b) {\n if (\"textarea\" !== a.type) throw Error(y(31, \"[object Object]\" === Object.prototype.toString.call(b) ? \"object with keys {\" + Object.keys(b).join(\", \") + \"}\" : b));\n}\n\nfunction Sg(a) {\n function b(b, c) {\n if (a) {\n var d = b.lastEffect;\n null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c;\n c.nextEffect = null;\n c.flags = 8;\n }\n }\n\n function c(c, d) {\n if (!a) return null;\n\n for (; null !== d;) {\n b(c, d), d = d.sibling;\n }\n\n return null;\n }\n\n function d(a, b) {\n for (a = new Map(); null !== b;) {\n null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling;\n }\n\n return a;\n }\n\n function e(a, b) {\n a = Tg(a, b);\n a.index = 0;\n a.sibling = null;\n return a;\n }\n\n function f(b, c, d) {\n b.index = d;\n if (!a) return c;\n d = b.alternate;\n if (null !== d) return d = d.index, d < c ? (b.flags = 2, c) : d;\n b.flags = 2;\n return c;\n }\n\n function g(b) {\n a && null === b.alternate && (b.flags = 2);\n return b;\n }\n\n function h(a, b, c, d) {\n if (null === b || 6 !== b.tag) return b = Ug(c, a.mode, d), b.return = a, b;\n b = e(b, c);\n b.return = a;\n return b;\n }\n\n function k(a, b, c, d) {\n if (null !== b && b.elementType === c.type) return d = e(b, c.props), d.ref = Qg(a, b, c), d.return = a, d;\n d = Vg(c.type, c.key, c.props, null, a.mode, d);\n d.ref = Qg(a, b, c);\n d.return = a;\n return d;\n }\n\n function l(a, b, c, d) {\n if (null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation) return b = Wg(c, a.mode, d), b.return = a, b;\n b = e(b, c.children || []);\n b.return = a;\n return b;\n }\n\n function n(a, b, c, d, f) {\n if (null === b || 7 !== b.tag) return b = Xg(c, a.mode, d, f), b.return = a, b;\n b = e(b, c);\n b.return = a;\n return b;\n }\n\n function A(a, b, c) {\n if (\"string\" === typeof b || \"number\" === typeof b) return b = Ug(\"\" + b, a.mode, c), b.return = a, b;\n\n if (\"object\" === _typeof(b) && null !== b) {\n switch (b.$$typeof) {\n case sa:\n return c = Vg(b.type, b.key, b.props, null, a.mode, c), c.ref = Qg(a, null, b), c.return = a, c;\n\n case ta:\n return b = Wg(b, a.mode, c), b.return = a, b;\n }\n\n if (Pg(b) || La(b)) return b = Xg(b, a.mode, c, null), b.return = a, b;\n Rg(a, b);\n }\n\n return null;\n }\n\n function p(a, b, c, d) {\n var e = null !== b ? b.key : null;\n if (\"string\" === typeof c || \"number\" === typeof c) return null !== e ? null : h(a, b, \"\" + c, d);\n\n if (\"object\" === _typeof(c) && null !== c) {\n switch (c.$$typeof) {\n case sa:\n return c.key === e ? c.type === ua ? n(a, b, c.props.children, d, e) : k(a, b, c, d) : null;\n\n case ta:\n return c.key === e ? l(a, b, c, d) : null;\n }\n\n if (Pg(c) || La(c)) return null !== e ? null : n(a, b, c, d, null);\n Rg(a, c);\n }\n\n return null;\n }\n\n function C(a, b, c, d, e) {\n if (\"string\" === typeof d || \"number\" === typeof d) return a = a.get(c) || null, h(b, a, \"\" + d, e);\n\n if (\"object\" === _typeof(d) && null !== d) {\n switch (d.$$typeof) {\n case sa:\n return a = a.get(null === d.key ? c : d.key) || null, d.type === ua ? n(b, a, d.props.children, e, d.key) : k(b, a, d, e);\n\n case ta:\n return a = a.get(null === d.key ? c : d.key) || null, l(b, a, d, e);\n }\n\n if (Pg(d) || La(d)) return a = a.get(c) || null, n(b, a, d, e, null);\n Rg(b, d);\n }\n\n return null;\n }\n\n function x(e, g, h, k) {\n for (var l = null, t = null, u = g, z = g = 0, q = null; null !== u && z < h.length; z++) {\n u.index > z ? (q = u, u = null) : q = u.sibling;\n var n = p(e, u, h[z], k);\n\n if (null === n) {\n null === u && (u = q);\n break;\n }\n\n a && u && null === n.alternate && b(e, u);\n g = f(n, g, z);\n null === t ? l = n : t.sibling = n;\n t = n;\n u = q;\n }\n\n if (z === h.length) return c(e, u), l;\n\n if (null === u) {\n for (; z < h.length; z++) {\n u = A(e, h[z], k), null !== u && (g = f(u, g, z), null === t ? l = u : t.sibling = u, t = u);\n }\n\n return l;\n }\n\n for (u = d(e, u); z < h.length; z++) {\n q = C(u, e, z, h[z], k), null !== q && (a && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f(q, g, z), null === t ? l = q : t.sibling = q, t = q);\n }\n\n a && u.forEach(function (a) {\n return b(e, a);\n });\n return l;\n }\n\n function w(e, g, h, k) {\n var l = La(h);\n if (\"function\" !== typeof l) throw Error(y(150));\n h = l.call(h);\n if (null == h) throw Error(y(151));\n\n for (var t = l = null, u = g, z = g = 0, q = null, n = h.next(); null !== u && !n.done; z++, n = h.next()) {\n u.index > z ? (q = u, u = null) : q = u.sibling;\n var w = p(e, u, n.value, k);\n\n if (null === w) {\n null === u && (u = q);\n break;\n }\n\n a && u && null === w.alternate && b(e, u);\n g = f(w, g, z);\n null === t ? l = w : t.sibling = w;\n t = w;\n u = q;\n }\n\n if (n.done) return c(e, u), l;\n\n if (null === u) {\n for (; !n.done; z++, n = h.next()) {\n n = A(e, n.value, k), null !== n && (g = f(n, g, z), null === t ? l = n : t.sibling = n, t = n);\n }\n\n return l;\n }\n\n for (u = d(e, u); !n.done; z++, n = h.next()) {\n n = C(u, e, z, n.value, k), null !== n && (a && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f(n, g, z), null === t ? l = n : t.sibling = n, t = n);\n }\n\n a && u.forEach(function (a) {\n return b(e, a);\n });\n return l;\n }\n\n return function (a, d, f, h) {\n var k = \"object\" === _typeof(f) && null !== f && f.type === ua && null === f.key;\n k && (f = f.props.children);\n var l = \"object\" === _typeof(f) && null !== f;\n if (l) switch (f.$$typeof) {\n case sa:\n a: {\n l = f.key;\n\n for (k = d; null !== k;) {\n if (k.key === l) {\n switch (k.tag) {\n case 7:\n if (f.type === ua) {\n c(a, k.sibling);\n d = e(k, f.props.children);\n d.return = a;\n a = d;\n break a;\n }\n\n break;\n\n default:\n if (k.elementType === f.type) {\n c(a, k.sibling);\n d = e(k, f.props);\n d.ref = Qg(a, k, f);\n d.return = a;\n a = d;\n break a;\n }\n\n }\n\n c(a, k);\n break;\n } else b(a, k);\n\n k = k.sibling;\n }\n\n f.type === ua ? (d = Xg(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = Vg(f.type, f.key, f.props, null, a.mode, h), h.ref = Qg(a, d, f), h.return = a, a = h);\n }\n\n return g(a);\n\n case ta:\n a: {\n for (k = f.key; null !== d;) {\n if (d.key === k) {\n if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {\n c(a, d.sibling);\n d = e(d, f.children || []);\n d.return = a;\n a = d;\n break a;\n } else {\n c(a, d);\n break;\n }\n } else b(a, d);\n d = d.sibling;\n }\n\n d = Wg(f, a.mode, h);\n d.return = a;\n a = d;\n }\n\n return g(a);\n }\n if (\"string\" === typeof f || \"number\" === typeof f) return f = \"\" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = Ug(f, a.mode, h), d.return = a, a = d), g(a);\n if (Pg(f)) return x(a, d, f, h);\n if (La(f)) return w(a, d, f, h);\n l && Rg(a, f);\n if (\"undefined\" === typeof f && !k) switch (a.tag) {\n case 1:\n case 22:\n case 0:\n case 11:\n case 15:\n throw Error(y(152, Ra(a.type) || \"Component\"));\n }\n return c(a, d);\n };\n}\n\nvar Yg = Sg(!0),\n Zg = Sg(!1),\n $g = {},\n ah = Bf($g),\n bh = Bf($g),\n ch = Bf($g);\n\nfunction dh(a) {\n if (a === $g) throw Error(y(174));\n return a;\n}\n\nfunction eh(a, b) {\n I(ch, b);\n I(bh, a);\n I(ah, $g);\n a = b.nodeType;\n\n switch (a) {\n case 9:\n case 11:\n b = (b = b.documentElement) ? b.namespaceURI : mb(null, \"\");\n break;\n\n default:\n a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = mb(b, a);\n }\n\n H(ah);\n I(ah, b);\n}\n\nfunction fh() {\n H(ah);\n H(bh);\n H(ch);\n}\n\nfunction gh(a) {\n dh(ch.current);\n var b = dh(ah.current);\n var c = mb(b, a.type);\n b !== c && (I(bh, a), I(ah, c));\n}\n\nfunction hh(a) {\n bh.current === a && (H(ah), H(bh));\n}\n\nvar P = Bf(0);\n\nfunction ih(a) {\n for (var b = a; null !== b;) {\n if (13 === b.tag) {\n var c = b.memoizedState;\n if (null !== c && (c = c.dehydrated, null === c || \"$?\" === c.data || \"$!\" === c.data)) return b;\n } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) {\n if (0 !== (b.flags & 64)) return b;\n } else if (null !== b.child) {\n b.child.return = b;\n b = b.child;\n continue;\n }\n\n if (b === a) break;\n\n for (; null === b.sibling;) {\n if (null === b.return || b.return === a) return null;\n b = b.return;\n }\n\n b.sibling.return = b.return;\n b = b.sibling;\n }\n\n return null;\n}\n\nvar jh = null,\n kh = null,\n lh = !1;\n\nfunction mh(a, b) {\n var c = nh(5, null, null, 0);\n c.elementType = \"DELETED\";\n c.type = \"DELETED\";\n c.stateNode = b;\n c.return = a;\n c.flags = 8;\n null !== a.lastEffect ? (a.lastEffect.nextEffect = c, a.lastEffect = c) : a.firstEffect = a.lastEffect = c;\n}\n\nfunction oh(a, b) {\n switch (a.tag) {\n case 5:\n var c = a.type;\n b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b;\n return null !== b ? (a.stateNode = b, !0) : !1;\n\n case 6:\n return b = \"\" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, !0) : !1;\n\n case 13:\n return !1;\n\n default:\n return !1;\n }\n}\n\nfunction ph(a) {\n if (lh) {\n var b = kh;\n\n if (b) {\n var c = b;\n\n if (!oh(a, b)) {\n b = rf(c.nextSibling);\n\n if (!b || !oh(a, b)) {\n a.flags = a.flags & -1025 | 2;\n lh = !1;\n jh = a;\n return;\n }\n\n mh(jh, c);\n }\n\n jh = a;\n kh = rf(b.firstChild);\n } else a.flags = a.flags & -1025 | 2, lh = !1, jh = a;\n }\n}\n\nfunction qh(a) {\n for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) {\n a = a.return;\n }\n\n jh = a;\n}\n\nfunction rh(a) {\n if (a !== jh) return !1;\n if (!lh) return qh(a), lh = !0, !1;\n var b = a.type;\n if (5 !== a.tag || \"head\" !== b && \"body\" !== b && !nf(b, a.memoizedProps)) for (b = kh; b;) {\n mh(a, b), b = rf(b.nextSibling);\n }\n qh(a);\n\n if (13 === a.tag) {\n a = a.memoizedState;\n a = null !== a ? a.dehydrated : null;\n if (!a) throw Error(y(317));\n\n a: {\n a = a.nextSibling;\n\n for (b = 0; a;) {\n if (8 === a.nodeType) {\n var c = a.data;\n\n if (\"/$\" === c) {\n if (0 === b) {\n kh = rf(a.nextSibling);\n break a;\n }\n\n b--;\n } else \"$\" !== c && \"$!\" !== c && \"$?\" !== c || b++;\n }\n\n a = a.nextSibling;\n }\n\n kh = null;\n }\n } else kh = jh ? rf(a.stateNode.nextSibling) : null;\n\n return !0;\n}\n\nfunction sh() {\n kh = jh = null;\n lh = !1;\n}\n\nvar th = [];\n\nfunction uh() {\n for (var a = 0; a < th.length; a++) {\n th[a]._workInProgressVersionPrimary = null;\n }\n\n th.length = 0;\n}\n\nvar vh = ra.ReactCurrentDispatcher,\n wh = ra.ReactCurrentBatchConfig,\n xh = 0,\n R = null,\n S = null,\n T = null,\n yh = !1,\n zh = !1;\n\nfunction Ah() {\n throw Error(y(321));\n}\n\nfunction Bh(a, b) {\n if (null === b) return !1;\n\n for (var c = 0; c < b.length && c < a.length; c++) {\n if (!He(a[c], b[c])) return !1;\n }\n\n return !0;\n}\n\nfunction Ch(a, b, c, d, e, f) {\n xh = f;\n R = b;\n b.memoizedState = null;\n b.updateQueue = null;\n b.lanes = 0;\n vh.current = null === a || null === a.memoizedState ? Dh : Eh;\n a = c(d, e);\n\n if (zh) {\n f = 0;\n\n do {\n zh = !1;\n if (!(25 > f)) throw Error(y(301));\n f += 1;\n T = S = null;\n b.updateQueue = null;\n vh.current = Fh;\n a = c(d, e);\n } while (zh);\n }\n\n vh.current = Gh;\n b = null !== S && null !== S.next;\n xh = 0;\n T = S = R = null;\n yh = !1;\n if (b) throw Error(y(300));\n return a;\n}\n\nfunction Hh() {\n var a = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === T ? R.memoizedState = T = a : T = T.next = a;\n return T;\n}\n\nfunction Ih() {\n if (null === S) {\n var a = R.alternate;\n a = null !== a ? a.memoizedState : null;\n } else a = S.next;\n\n var b = null === T ? R.memoizedState : T.next;\n if (null !== b) T = b, S = a;else {\n if (null === a) throw Error(y(310));\n S = a;\n a = {\n memoizedState: S.memoizedState,\n baseState: S.baseState,\n baseQueue: S.baseQueue,\n queue: S.queue,\n next: null\n };\n null === T ? R.memoizedState = T = a : T = T.next = a;\n }\n return T;\n}\n\nfunction Jh(a, b) {\n return \"function\" === typeof b ? b(a) : b;\n}\n\nfunction Kh(a) {\n var b = Ih(),\n c = b.queue;\n if (null === c) throw Error(y(311));\n c.lastRenderedReducer = a;\n var d = S,\n e = d.baseQueue,\n f = c.pending;\n\n if (null !== f) {\n if (null !== e) {\n var g = e.next;\n e.next = f.next;\n f.next = g;\n }\n\n d.baseQueue = e = f;\n c.pending = null;\n }\n\n if (null !== e) {\n e = e.next;\n d = d.baseState;\n var h = g = f = null,\n k = e;\n\n do {\n var l = k.lane;\n if ((xh & l) === l) null !== h && (h = h.next = {\n lane: 0,\n action: k.action,\n eagerReducer: k.eagerReducer,\n eagerState: k.eagerState,\n next: null\n }), d = k.eagerReducer === a ? k.eagerState : a(d, k.action);else {\n var n = {\n lane: l,\n action: k.action,\n eagerReducer: k.eagerReducer,\n eagerState: k.eagerState,\n next: null\n };\n null === h ? (g = h = n, f = d) : h = h.next = n;\n R.lanes |= l;\n Dg |= l;\n }\n k = k.next;\n } while (null !== k && k !== e);\n\n null === h ? f = d : h.next = g;\n He(d, b.memoizedState) || (ug = !0);\n b.memoizedState = d;\n b.baseState = f;\n b.baseQueue = h;\n c.lastRenderedState = d;\n }\n\n return [b.memoizedState, c.dispatch];\n}\n\nfunction Lh(a) {\n var b = Ih(),\n c = b.queue;\n if (null === c) throw Error(y(311));\n c.lastRenderedReducer = a;\n var d = c.dispatch,\n e = c.pending,\n f = b.memoizedState;\n\n if (null !== e) {\n c.pending = null;\n var g = e = e.next;\n\n do {\n f = a(f, g.action), g = g.next;\n } while (g !== e);\n\n He(f, b.memoizedState) || (ug = !0);\n b.memoizedState = f;\n null === b.baseQueue && (b.baseState = f);\n c.lastRenderedState = f;\n }\n\n return [f, d];\n}\n\nfunction Mh(a, b, c) {\n var d = b._getVersion;\n d = d(b._source);\n var e = b._workInProgressVersionPrimary;\n if (null !== e) a = e === d;else if (a = a.mutableReadLanes, a = (xh & a) === a) b._workInProgressVersionPrimary = d, th.push(b);\n if (a) return c(b._source);\n th.push(b);\n throw Error(y(350));\n}\n\nfunction Nh(a, b, c, d) {\n var e = U;\n if (null === e) throw Error(y(349));\n var f = b._getVersion,\n g = f(b._source),\n h = vh.current,\n k = h.useState(function () {\n return Mh(e, b, c);\n }),\n l = k[1],\n n = k[0];\n k = T;\n var A = a.memoizedState,\n p = A.refs,\n C = p.getSnapshot,\n x = A.source;\n A = A.subscribe;\n var w = R;\n a.memoizedState = {\n refs: p,\n source: b,\n subscribe: d\n };\n h.useEffect(function () {\n p.getSnapshot = c;\n p.setSnapshot = l;\n var a = f(b._source);\n\n if (!He(g, a)) {\n a = c(b._source);\n He(n, a) || (l(a), a = Ig(w), e.mutableReadLanes |= a & e.pendingLanes);\n a = e.mutableReadLanes;\n e.entangledLanes |= a;\n\n for (var d = e.entanglements, h = a; 0 < h;) {\n var k = 31 - Vc(h),\n v = 1 << k;\n d[k] |= a;\n h &= ~v;\n }\n }\n }, [c, b, d]);\n h.useEffect(function () {\n return d(b._source, function () {\n var a = p.getSnapshot,\n c = p.setSnapshot;\n\n try {\n c(a(b._source));\n var d = Ig(w);\n e.mutableReadLanes |= d & e.pendingLanes;\n } catch (q) {\n c(function () {\n throw q;\n });\n }\n });\n }, [b, d]);\n He(C, c) && He(x, b) && He(A, d) || (a = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: Jh,\n lastRenderedState: n\n }, a.dispatch = l = Oh.bind(null, R, a), k.queue = a, k.baseQueue = null, n = Mh(e, b, c), k.memoizedState = k.baseState = n);\n return n;\n}\n\nfunction Ph(a, b, c) {\n var d = Ih();\n return Nh(d, a, b, c);\n}\n\nfunction Qh(a) {\n var b = Hh();\n \"function\" === typeof a && (a = a());\n b.memoizedState = b.baseState = a;\n a = b.queue = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: Jh,\n lastRenderedState: a\n };\n a = a.dispatch = Oh.bind(null, R, a);\n return [b.memoizedState, a];\n}\n\nfunction Rh(a, b, c, d) {\n a = {\n tag: a,\n create: b,\n destroy: c,\n deps: d,\n next: null\n };\n b = R.updateQueue;\n null === b ? (b = {\n lastEffect: null\n }, R.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));\n return a;\n}\n\nfunction Sh(a) {\n var b = Hh();\n a = {\n current: a\n };\n return b.memoizedState = a;\n}\n\nfunction Th() {\n return Ih().memoizedState;\n}\n\nfunction Uh(a, b, c, d) {\n var e = Hh();\n R.flags |= a;\n e.memoizedState = Rh(1 | b, c, void 0, void 0 === d ? null : d);\n}\n\nfunction Vh(a, b, c, d) {\n var e = Ih();\n d = void 0 === d ? null : d;\n var f = void 0;\n\n if (null !== S) {\n var g = S.memoizedState;\n f = g.destroy;\n\n if (null !== d && Bh(d, g.deps)) {\n Rh(b, c, f, d);\n return;\n }\n }\n\n R.flags |= a;\n e.memoizedState = Rh(1 | b, c, f, d);\n}\n\nfunction Wh(a, b) {\n return Uh(516, 4, a, b);\n}\n\nfunction Xh(a, b) {\n return Vh(516, 4, a, b);\n}\n\nfunction Yh(a, b) {\n return Vh(4, 2, a, b);\n}\n\nfunction Zh(a, b) {\n if (\"function\" === typeof b) return a = a(), b(a), function () {\n b(null);\n };\n if (null !== b && void 0 !== b) return a = a(), b.current = a, function () {\n b.current = null;\n };\n}\n\nfunction $h(a, b, c) {\n c = null !== c && void 0 !== c ? c.concat([a]) : null;\n return Vh(4, 2, Zh.bind(null, b, a), c);\n}\n\nfunction ai() {}\n\nfunction bi(a, b) {\n var c = Ih();\n b = void 0 === b ? null : b;\n var d = c.memoizedState;\n if (null !== d && null !== b && Bh(b, d[1])) return d[0];\n c.memoizedState = [a, b];\n return a;\n}\n\nfunction ci(a, b) {\n var c = Ih();\n b = void 0 === b ? null : b;\n var d = c.memoizedState;\n if (null !== d && null !== b && Bh(b, d[1])) return d[0];\n a = a();\n c.memoizedState = [a, b];\n return a;\n}\n\nfunction di(a, b) {\n var c = eg();\n gg(98 > c ? 98 : c, function () {\n a(!0);\n });\n gg(97 < c ? 97 : c, function () {\n var c = wh.transition;\n wh.transition = 1;\n\n try {\n a(!1), b();\n } finally {\n wh.transition = c;\n }\n });\n}\n\nfunction Oh(a, b, c) {\n var d = Hg(),\n e = Ig(a),\n f = {\n lane: e,\n action: c,\n eagerReducer: null,\n eagerState: null,\n next: null\n },\n g = b.pending;\n null === g ? f.next = f : (f.next = g.next, g.next = f);\n b.pending = f;\n g = a.alternate;\n if (a === R || null !== g && g === R) zh = yh = !0;else {\n if (0 === a.lanes && (null === g || 0 === g.lanes) && (g = b.lastRenderedReducer, null !== g)) try {\n var h = b.lastRenderedState,\n k = g(h, c);\n f.eagerReducer = g;\n f.eagerState = k;\n if (He(k, h)) return;\n } catch (l) {} finally {}\n Jg(a, e, d);\n }\n}\n\nvar Gh = {\n readContext: vg,\n useCallback: Ah,\n useContext: Ah,\n useEffect: Ah,\n useImperativeHandle: Ah,\n useLayoutEffect: Ah,\n useMemo: Ah,\n useReducer: Ah,\n useRef: Ah,\n useState: Ah,\n useDebugValue: Ah,\n useDeferredValue: Ah,\n useTransition: Ah,\n useMutableSource: Ah,\n useOpaqueIdentifier: Ah,\n unstable_isNewReconciler: !1\n},\n Dh = {\n readContext: vg,\n useCallback: function useCallback(a, b) {\n Hh().memoizedState = [a, void 0 === b ? null : b];\n return a;\n },\n useContext: vg,\n useEffect: Wh,\n useImperativeHandle: function useImperativeHandle(a, b, c) {\n c = null !== c && void 0 !== c ? c.concat([a]) : null;\n return Uh(4, 2, Zh.bind(null, b, a), c);\n },\n useLayoutEffect: function useLayoutEffect(a, b) {\n return Uh(4, 2, a, b);\n },\n useMemo: function useMemo(a, b) {\n var c = Hh();\n b = void 0 === b ? null : b;\n a = a();\n c.memoizedState = [a, b];\n return a;\n },\n useReducer: function useReducer(a, b, c) {\n var d = Hh();\n b = void 0 !== c ? c(b) : b;\n d.memoizedState = d.baseState = b;\n a = d.queue = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: a,\n lastRenderedState: b\n };\n a = a.dispatch = Oh.bind(null, R, a);\n return [d.memoizedState, a];\n },\n useRef: Sh,\n useState: Qh,\n useDebugValue: ai,\n useDeferredValue: function useDeferredValue(a) {\n var b = Qh(a),\n c = b[0],\n d = b[1];\n Wh(function () {\n var b = wh.transition;\n wh.transition = 1;\n\n try {\n d(a);\n } finally {\n wh.transition = b;\n }\n }, [a]);\n return c;\n },\n useTransition: function useTransition() {\n var a = Qh(!1),\n b = a[0];\n a = di.bind(null, a[1]);\n Sh(a);\n return [a, b];\n },\n useMutableSource: function useMutableSource(a, b, c) {\n var d = Hh();\n d.memoizedState = {\n refs: {\n getSnapshot: b,\n setSnapshot: null\n },\n source: a,\n subscribe: c\n };\n return Nh(d, a, b, c);\n },\n useOpaqueIdentifier: function useOpaqueIdentifier() {\n if (lh) {\n var a = !1,\n b = uf(function () {\n a || (a = !0, c(\"r:\" + (tf++).toString(36)));\n throw Error(y(355));\n }),\n c = Qh(b)[1];\n 0 === (R.mode & 2) && (R.flags |= 516, Rh(5, function () {\n c(\"r:\" + (tf++).toString(36));\n }, void 0, null));\n return b;\n }\n\n b = \"r:\" + (tf++).toString(36);\n Qh(b);\n return b;\n },\n unstable_isNewReconciler: !1\n},\n Eh = {\n readContext: vg,\n useCallback: bi,\n useContext: vg,\n useEffect: Xh,\n useImperativeHandle: $h,\n useLayoutEffect: Yh,\n useMemo: ci,\n useReducer: Kh,\n useRef: Th,\n useState: function useState() {\n return Kh(Jh);\n },\n useDebugValue: ai,\n useDeferredValue: function useDeferredValue(a) {\n var b = Kh(Jh),\n c = b[0],\n d = b[1];\n Xh(function () {\n var b = wh.transition;\n wh.transition = 1;\n\n try {\n d(a);\n } finally {\n wh.transition = b;\n }\n }, [a]);\n return c;\n },\n useTransition: function useTransition() {\n var a = Kh(Jh)[0];\n return [Th().current, a];\n },\n useMutableSource: Ph,\n useOpaqueIdentifier: function useOpaqueIdentifier() {\n return Kh(Jh)[0];\n },\n unstable_isNewReconciler: !1\n},\n Fh = {\n readContext: vg,\n useCallback: bi,\n useContext: vg,\n useEffect: Xh,\n useImperativeHandle: $h,\n useLayoutEffect: Yh,\n useMemo: ci,\n useReducer: Lh,\n useRef: Th,\n useState: function useState() {\n return Lh(Jh);\n },\n useDebugValue: ai,\n useDeferredValue: function useDeferredValue(a) {\n var b = Lh(Jh),\n c = b[0],\n d = b[1];\n Xh(function () {\n var b = wh.transition;\n wh.transition = 1;\n\n try {\n d(a);\n } finally {\n wh.transition = b;\n }\n }, [a]);\n return c;\n },\n useTransition: function useTransition() {\n var a = Lh(Jh)[0];\n return [Th().current, a];\n },\n useMutableSource: Ph,\n useOpaqueIdentifier: function useOpaqueIdentifier() {\n return Lh(Jh)[0];\n },\n unstable_isNewReconciler: !1\n},\n ei = ra.ReactCurrentOwner,\n ug = !1;\n\nfunction fi(a, b, c, d) {\n b.child = null === a ? Zg(b, null, c, d) : Yg(b, a.child, c, d);\n}\n\nfunction gi(a, b, c, d, e) {\n c = c.render;\n var f = b.ref;\n tg(b, e);\n d = Ch(a, b, c, d, f, e);\n if (null !== a && !ug) return b.updateQueue = a.updateQueue, b.flags &= -517, a.lanes &= ~e, hi(a, b, e);\n b.flags |= 1;\n fi(a, b, d, e);\n return b.child;\n}\n\nfunction ii(a, b, c, d, e, f) {\n if (null === a) {\n var g = c.type;\n if (\"function\" === typeof g && !ji(g) && void 0 === g.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = g, ki(a, b, g, d, e, f);\n a = Vg(c.type, null, d, b, b.mode, f);\n a.ref = b.ref;\n a.return = b;\n return b.child = a;\n }\n\n g = a.child;\n if (0 === (e & f) && (e = g.memoizedProps, c = c.compare, c = null !== c ? c : Je, c(e, d) && a.ref === b.ref)) return hi(a, b, f);\n b.flags |= 1;\n a = Tg(g, d);\n a.ref = b.ref;\n a.return = b;\n return b.child = a;\n}\n\nfunction ki(a, b, c, d, e, f) {\n if (null !== a && Je(a.memoizedProps, d) && a.ref === b.ref) if (ug = !1, 0 !== (f & e)) 0 !== (a.flags & 16384) && (ug = !0);else return b.lanes = a.lanes, hi(a, b, f);\n return li(a, b, c, d, f);\n}\n\nfunction mi(a, b, c) {\n var d = b.pendingProps,\n e = d.children,\n f = null !== a ? a.memoizedState : null;\n if (\"hidden\" === d.mode || \"unstable-defer-without-hiding\" === d.mode) {\n if (0 === (b.mode & 4)) b.memoizedState = {\n baseLanes: 0\n }, ni(b, c);else if (0 !== (c & 1073741824)) b.memoizedState = {\n baseLanes: 0\n }, ni(b, null !== f ? f.baseLanes : c);else return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = {\n baseLanes: a\n }, ni(b, a), null;\n } else null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, ni(b, d);\n fi(a, b, e, c);\n return b.child;\n}\n\nfunction oi(a, b) {\n var c = b.ref;\n if (null === a && null !== c || null !== a && a.ref !== c) b.flags |= 128;\n}\n\nfunction li(a, b, c, d, e) {\n var f = Ff(c) ? Df : M.current;\n f = Ef(b, f);\n tg(b, e);\n c = Ch(a, b, c, d, f, e);\n if (null !== a && !ug) return b.updateQueue = a.updateQueue, b.flags &= -517, a.lanes &= ~e, hi(a, b, e);\n b.flags |= 1;\n fi(a, b, c, e);\n return b.child;\n}\n\nfunction pi(a, b, c, d, e) {\n if (Ff(c)) {\n var f = !0;\n Jf(b);\n } else f = !1;\n\n tg(b, e);\n if (null === b.stateNode) null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), Mg(b, c, d), Og(b, c, d, e), d = !0;else if (null === a) {\n var g = b.stateNode,\n h = b.memoizedProps;\n g.props = h;\n var k = g.context,\n l = c.contextType;\n \"object\" === _typeof(l) && null !== l ? l = vg(l) : (l = Ff(c) ? Df : M.current, l = Ef(b, l));\n var n = c.getDerivedStateFromProps,\n A = \"function\" === typeof n || \"function\" === typeof g.getSnapshotBeforeUpdate;\n A || \"function\" !== typeof g.UNSAFE_componentWillReceiveProps && \"function\" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Ng(b, g, d, l);\n wg = !1;\n var p = b.memoizedState;\n g.state = p;\n Cg(b, d, g, e);\n k = b.memoizedState;\n h !== d || p !== k || N.current || wg ? (\"function\" === typeof n && (Gg(b, c, n, d), k = b.memoizedState), (h = wg || Lg(b, c, h, d, p, k, l)) ? (A || \"function\" !== typeof g.UNSAFE_componentWillMount && \"function\" !== typeof g.componentWillMount || (\"function\" === typeof g.componentWillMount && g.componentWillMount(), \"function\" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), \"function\" === typeof g.componentDidMount && (b.flags |= 4)) : (\"function\" === typeof g.componentDidMount && (b.flags |= 4), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : (\"function\" === typeof g.componentDidMount && (b.flags |= 4), d = !1);\n } else {\n g = b.stateNode;\n yg(a, b);\n h = b.memoizedProps;\n l = b.type === b.elementType ? h : lg(b.type, h);\n g.props = l;\n A = b.pendingProps;\n p = g.context;\n k = c.contextType;\n \"object\" === _typeof(k) && null !== k ? k = vg(k) : (k = Ff(c) ? Df : M.current, k = Ef(b, k));\n var C = c.getDerivedStateFromProps;\n (n = \"function\" === typeof C || \"function\" === typeof g.getSnapshotBeforeUpdate) || \"function\" !== typeof g.UNSAFE_componentWillReceiveProps && \"function\" !== typeof g.componentWillReceiveProps || (h !== A || p !== k) && Ng(b, g, d, k);\n wg = !1;\n p = b.memoizedState;\n g.state = p;\n Cg(b, d, g, e);\n var x = b.memoizedState;\n h !== A || p !== x || N.current || wg ? (\"function\" === typeof C && (Gg(b, c, C, d), x = b.memoizedState), (l = wg || Lg(b, c, l, d, p, x, k)) ? (n || \"function\" !== typeof g.UNSAFE_componentWillUpdate && \"function\" !== typeof g.componentWillUpdate || (\"function\" === typeof g.componentWillUpdate && g.componentWillUpdate(d, x, k), \"function\" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, x, k)), \"function\" === typeof g.componentDidUpdate && (b.flags |= 4), \"function\" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 256)) : (\"function\" !== typeof g.componentDidUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 4), \"function\" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 256), b.memoizedProps = d, b.memoizedState = x), g.props = d, g.state = x, g.context = k, d = l) : (\"function\" !== typeof g.componentDidUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 4), \"function\" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 256), d = !1);\n }\n return qi(a, b, c, d, f, e);\n}\n\nfunction qi(a, b, c, d, e, f) {\n oi(a, b);\n var g = 0 !== (b.flags & 64);\n if (!d && !g) return e && Kf(b, c, !1), hi(a, b, f);\n d = b.stateNode;\n ei.current = b;\n var h = g && \"function\" !== typeof c.getDerivedStateFromError ? null : d.render();\n b.flags |= 1;\n null !== a && g ? (b.child = Yg(b, a.child, null, f), b.child = Yg(b, null, h, f)) : fi(a, b, h, f);\n b.memoizedState = d.state;\n e && Kf(b, c, !0);\n return b.child;\n}\n\nfunction ri(a) {\n var b = a.stateNode;\n b.pendingContext ? Hf(a, b.pendingContext, b.pendingContext !== b.context) : b.context && Hf(a, b.context, !1);\n eh(a, b.containerInfo);\n}\n\nvar si = {\n dehydrated: null,\n retryLane: 0\n};\n\nfunction ti(a, b, c) {\n var d = b.pendingProps,\n e = P.current,\n f = !1,\n g;\n (g = 0 !== (b.flags & 64)) || (g = null !== a && null === a.memoizedState ? !1 : 0 !== (e & 2));\n g ? (f = !0, b.flags &= -65) : null !== a && null === a.memoizedState || void 0 === d.fallback || !0 === d.unstable_avoidThisFallback || (e |= 1);\n I(P, e & 1);\n\n if (null === a) {\n void 0 !== d.fallback && ph(b);\n a = d.children;\n e = d.fallback;\n if (f) return a = ui(b, a, e, c), b.child.memoizedState = {\n baseLanes: c\n }, b.memoizedState = si, a;\n if (\"number\" === typeof d.unstable_expectedLoadTime) return a = ui(b, a, e, c), b.child.memoizedState = {\n baseLanes: c\n }, b.memoizedState = si, b.lanes = 33554432, a;\n c = vi({\n mode: \"visible\",\n children: a\n }, b.mode, c, null);\n c.return = b;\n return b.child = c;\n }\n\n if (null !== a.memoizedState) {\n if (f) return d = wi(a, b, d.children, d.fallback, c), f = b.child, e = a.child.memoizedState, f.memoizedState = null === e ? {\n baseLanes: c\n } : {\n baseLanes: e.baseLanes | c\n }, f.childLanes = a.childLanes & ~c, b.memoizedState = si, d;\n c = xi(a, b, d.children, c);\n b.memoizedState = null;\n return c;\n }\n\n if (f) return d = wi(a, b, d.children, d.fallback, c), f = b.child, e = a.child.memoizedState, f.memoizedState = null === e ? {\n baseLanes: c\n } : {\n baseLanes: e.baseLanes | c\n }, f.childLanes = a.childLanes & ~c, b.memoizedState = si, d;\n c = xi(a, b, d.children, c);\n b.memoizedState = null;\n return c;\n}\n\nfunction ui(a, b, c, d) {\n var e = a.mode,\n f = a.child;\n b = {\n mode: \"hidden\",\n children: b\n };\n 0 === (e & 2) && null !== f ? (f.childLanes = 0, f.pendingProps = b) : f = vi(b, e, 0, null);\n c = Xg(c, e, d, null);\n f.return = a;\n c.return = a;\n f.sibling = c;\n a.child = f;\n return c;\n}\n\nfunction xi(a, b, c, d) {\n var e = a.child;\n a = e.sibling;\n c = Tg(e, {\n mode: \"visible\",\n children: c\n });\n 0 === (b.mode & 2) && (c.lanes = d);\n c.return = b;\n c.sibling = null;\n null !== a && (a.nextEffect = null, a.flags = 8, b.firstEffect = b.lastEffect = a);\n return b.child = c;\n}\n\nfunction wi(a, b, c, d, e) {\n var f = b.mode,\n g = a.child;\n a = g.sibling;\n var h = {\n mode: \"hidden\",\n children: c\n };\n 0 === (f & 2) && b.child !== g ? (c = b.child, c.childLanes = 0, c.pendingProps = h, g = c.lastEffect, null !== g ? (b.firstEffect = c.firstEffect, b.lastEffect = g, g.nextEffect = null) : b.firstEffect = b.lastEffect = null) : c = Tg(g, h);\n null !== a ? d = Tg(a, d) : (d = Xg(d, f, e, null), d.flags |= 2);\n d.return = b;\n c.return = b;\n c.sibling = d;\n b.child = c;\n return d;\n}\n\nfunction yi(a, b) {\n a.lanes |= b;\n var c = a.alternate;\n null !== c && (c.lanes |= b);\n sg(a.return, b);\n}\n\nfunction zi(a, b, c, d, e, f) {\n var g = a.memoizedState;\n null === g ? a.memoizedState = {\n isBackwards: b,\n rendering: null,\n renderingStartTime: 0,\n last: d,\n tail: c,\n tailMode: e,\n lastEffect: f\n } : (g.isBackwards = b, g.rendering = null, g.renderingStartTime = 0, g.last = d, g.tail = c, g.tailMode = e, g.lastEffect = f);\n}\n\nfunction Ai(a, b, c) {\n var d = b.pendingProps,\n e = d.revealOrder,\n f = d.tail;\n fi(a, b, d.children, c);\n d = P.current;\n if (0 !== (d & 2)) d = d & 1 | 2, b.flags |= 64;else {\n if (null !== a && 0 !== (a.flags & 64)) a: for (a = b.child; null !== a;) {\n if (13 === a.tag) null !== a.memoizedState && yi(a, c);else if (19 === a.tag) yi(a, c);else if (null !== a.child) {\n a.child.return = a;\n a = a.child;\n continue;\n }\n if (a === b) break a;\n\n for (; null === a.sibling;) {\n if (null === a.return || a.return === b) break a;\n a = a.return;\n }\n\n a.sibling.return = a.return;\n a = a.sibling;\n }\n d &= 1;\n }\n I(P, d);\n if (0 === (b.mode & 2)) b.memoizedState = null;else switch (e) {\n case \"forwards\":\n c = b.child;\n\n for (e = null; null !== c;) {\n a = c.alternate, null !== a && null === ih(a) && (e = c), c = c.sibling;\n }\n\n c = e;\n null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null);\n zi(b, !1, e, c, f, b.lastEffect);\n break;\n\n case \"backwards\":\n c = null;\n e = b.child;\n\n for (b.child = null; null !== e;) {\n a = e.alternate;\n\n if (null !== a && null === ih(a)) {\n b.child = e;\n break;\n }\n\n a = e.sibling;\n e.sibling = c;\n c = e;\n e = a;\n }\n\n zi(b, !0, c, null, f, b.lastEffect);\n break;\n\n case \"together\":\n zi(b, !1, null, null, void 0, b.lastEffect);\n break;\n\n default:\n b.memoizedState = null;\n }\n return b.child;\n}\n\nfunction hi(a, b, c) {\n null !== a && (b.dependencies = a.dependencies);\n Dg |= b.lanes;\n\n if (0 !== (c & b.childLanes)) {\n if (null !== a && b.child !== a.child) throw Error(y(153));\n\n if (null !== b.child) {\n a = b.child;\n c = Tg(a, a.pendingProps);\n b.child = c;\n\n for (c.return = b; null !== a.sibling;) {\n a = a.sibling, c = c.sibling = Tg(a, a.pendingProps), c.return = b;\n }\n\n c.sibling = null;\n }\n\n return b.child;\n }\n\n return null;\n}\n\nvar Bi, Ci, Di, Ei;\n\nBi = function Bi(a, b) {\n for (var c = b.child; null !== c;) {\n if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);else if (4 !== c.tag && null !== c.child) {\n c.child.return = c;\n c = c.child;\n continue;\n }\n if (c === b) break;\n\n for (; null === c.sibling;) {\n if (null === c.return || c.return === b) return;\n c = c.return;\n }\n\n c.sibling.return = c.return;\n c = c.sibling;\n }\n};\n\nCi = function Ci() {};\n\nDi = function Di(a, b, c, d) {\n var e = a.memoizedProps;\n\n if (e !== d) {\n a = b.stateNode;\n dh(ah.current);\n var f = null;\n\n switch (c) {\n case \"input\":\n e = Ya(a, e);\n d = Ya(a, d);\n f = [];\n break;\n\n case \"option\":\n e = eb(a, e);\n d = eb(a, d);\n f = [];\n break;\n\n case \"select\":\n e = m({}, e, {\n value: void 0\n });\n d = m({}, d, {\n value: void 0\n });\n f = [];\n break;\n\n case \"textarea\":\n e = gb(a, e);\n d = gb(a, d);\n f = [];\n break;\n\n default:\n \"function\" !== typeof e.onClick && \"function\" === typeof d.onClick && (a.onclick = jf);\n }\n\n vb(c, d);\n var g;\n c = null;\n\n for (l in e) {\n if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l]) if (\"style\" === l) {\n var h = e[l];\n\n for (g in h) {\n h.hasOwnProperty(g) && (c || (c = {}), c[g] = \"\");\n }\n } else \"dangerouslySetInnerHTML\" !== l && \"children\" !== l && \"suppressContentEditableWarning\" !== l && \"suppressHydrationWarning\" !== l && \"autoFocus\" !== l && (ca.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null));\n }\n\n for (l in d) {\n var k = d[l];\n h = null != e ? e[l] : void 0;\n if (d.hasOwnProperty(l) && k !== h && (null != k || null != h)) if (\"style\" === l) {\n if (h) {\n for (g in h) {\n !h.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (c || (c = {}), c[g] = \"\");\n }\n\n for (g in k) {\n k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), c[g] = k[g]);\n }\n } else c || (f || (f = []), f.push(l, c)), c = k;\n } else \"dangerouslySetInnerHTML\" === l ? (k = k ? k.__html : void 0, h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(l, k)) : \"children\" === l ? \"string\" !== typeof k && \"number\" !== typeof k || (f = f || []).push(l, \"\" + k) : \"suppressContentEditableWarning\" !== l && \"suppressHydrationWarning\" !== l && (ca.hasOwnProperty(l) ? (null != k && \"onScroll\" === l && G(\"scroll\", a), f || h === k || (f = [])) : \"object\" === _typeof(k) && null !== k && k.$$typeof === Ga ? k.toString() : (f = f || []).push(l, k));\n }\n\n c && (f = f || []).push(\"style\", c);\n var l = f;\n if (b.updateQueue = l) b.flags |= 4;\n }\n};\n\nEi = function Ei(a, b, c, d) {\n c !== d && (b.flags |= 4);\n};\n\nfunction Fi(a, b) {\n if (!lh) switch (a.tailMode) {\n case \"hidden\":\n b = a.tail;\n\n for (var c = null; null !== b;) {\n null !== b.alternate && (c = b), b = b.sibling;\n }\n\n null === c ? a.tail = null : c.sibling = null;\n break;\n\n case \"collapsed\":\n c = a.tail;\n\n for (var d = null; null !== c;) {\n null !== c.alternate && (d = c), c = c.sibling;\n }\n\n null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null;\n }\n}\n\nfunction Gi(a, b, c) {\n var d = b.pendingProps;\n\n switch (b.tag) {\n case 2:\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return null;\n\n case 1:\n return Ff(b.type) && Gf(), null;\n\n case 3:\n fh();\n H(N);\n H(M);\n uh();\n d = b.stateNode;\n d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null);\n if (null === a || null === a.child) rh(b) ? b.flags |= 4 : d.hydrate || (b.flags |= 256);\n Ci(b);\n return null;\n\n case 5:\n hh(b);\n var e = dh(ch.current);\n c = b.type;\n if (null !== a && null != b.stateNode) Di(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 128);else {\n if (!d) {\n if (null === b.stateNode) throw Error(y(166));\n return null;\n }\n\n a = dh(ah.current);\n\n if (rh(b)) {\n d = b.stateNode;\n c = b.type;\n var f = b.memoizedProps;\n d[wf] = b;\n d[xf] = f;\n\n switch (c) {\n case \"dialog\":\n G(\"cancel\", d);\n G(\"close\", d);\n break;\n\n case \"iframe\":\n case \"object\":\n case \"embed\":\n G(\"load\", d);\n break;\n\n case \"video\":\n case \"audio\":\n for (a = 0; a < Xe.length; a++) {\n G(Xe[a], d);\n }\n\n break;\n\n case \"source\":\n G(\"error\", d);\n break;\n\n case \"img\":\n case \"image\":\n case \"link\":\n G(\"error\", d);\n G(\"load\", d);\n break;\n\n case \"details\":\n G(\"toggle\", d);\n break;\n\n case \"input\":\n Za(d, f);\n G(\"invalid\", d);\n break;\n\n case \"select\":\n d._wrapperState = {\n wasMultiple: !!f.multiple\n };\n G(\"invalid\", d);\n break;\n\n case \"textarea\":\n hb(d, f), G(\"invalid\", d);\n }\n\n vb(c, f);\n a = null;\n\n for (var g in f) {\n f.hasOwnProperty(g) && (e = f[g], \"children\" === g ? \"string\" === typeof e ? d.textContent !== e && (a = [\"children\", e]) : \"number\" === typeof e && d.textContent !== \"\" + e && (a = [\"children\", \"\" + e]) : ca.hasOwnProperty(g) && null != e && \"onScroll\" === g && G(\"scroll\", d));\n }\n\n switch (c) {\n case \"input\":\n Va(d);\n cb(d, f, !0);\n break;\n\n case \"textarea\":\n Va(d);\n jb(d);\n break;\n\n case \"select\":\n case \"option\":\n break;\n\n default:\n \"function\" === typeof f.onClick && (d.onclick = jf);\n }\n\n d = a;\n b.updateQueue = d;\n null !== d && (b.flags |= 4);\n } else {\n g = 9 === e.nodeType ? e : e.ownerDocument;\n a === kb.html && (a = lb(c));\n a === kb.html ? \"script\" === c ? (a = g.createElement(\"div\"), a.innerHTML = \"\n if (val === '') return true;\n if (val === 'false') return false;\n if (val === 'true') return true;\n return val;\n }\n\n if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {\n var attrs = [['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']];\n attrs.forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n attr = _ref2[0],\n key = _ref2[1];\n\n var val = coerce(getAttrConfig(attr));\n\n if (val !== undefined && val !== null) {\n initial[key] = val;\n }\n });\n }\n\n var _default = {\n familyPrefix: DEFAULT_FAMILY_PREFIX,\n replacementClass: DEFAULT_REPLACEMENT_CLASS,\n autoReplaceSvg: true,\n autoAddCss: true,\n autoA11y: true,\n searchPseudoElements: false,\n observeMutations: true,\n mutateApproach: 'async',\n keepOriginalSource: true,\n measurePerformance: false,\n showMissingIcons: true\n };\n\n var _config = _objectSpread({}, _default, initial);\n\n if (!_config.autoReplaceSvg) _config.observeMutations = false;\n\n var config = _objectSpread({}, _config);\n\n WINDOW.FontAwesomeConfig = config;\n var w = WINDOW || {};\n if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};\n if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};\n if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};\n if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];\n var namespace = w[NAMESPACE_IDENTIFIER];\n var functions = [];\n\n var listener = function listener() {\n DOCUMENT.removeEventListener('DOMContentLoaded', listener);\n loaded = 1;\n functions.map(function (fn) {\n return fn();\n });\n };\n\n var loaded = false;\n\n if (IS_DOM) {\n loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);\n if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);\n }\n\n function domready(fn) {\n if (!IS_DOM) return;\n loaded ? setTimeout(fn, 0) : functions.push(fn);\n }\n\n var PENDING = 'pending';\n var SETTLED = 'settled';\n var FULFILLED = 'fulfilled';\n var REJECTED = 'rejected';\n\n var NOOP = function NOOP() {};\n\n var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';\n var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;\n var asyncQueue = [];\n var asyncTimer;\n\n function asyncFlush() {\n // run promise callbacks\n for (var i = 0; i < asyncQueue.length; i++) {\n asyncQueue[i][0](asyncQueue[i][1]);\n } // reset async asyncQueue\n\n\n asyncQueue = [];\n asyncTimer = false;\n }\n\n function asyncCall(callback, arg) {\n asyncQueue.push([callback, arg]);\n\n if (!asyncTimer) {\n asyncTimer = true;\n asyncSetTimer(asyncFlush, 0);\n }\n }\n\n function invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch (e) {\n rejectPromise(e);\n }\n }\n\n function invokeCallback(subscriber) {\n var owner = subscriber.owner;\n var settled = owner._state;\n var value = owner._data;\n var callback = subscriber[settled];\n var promise = subscriber.then;\n\n if (typeof callback === 'function') {\n settled = FULFILLED;\n\n try {\n value = callback(value);\n } catch (e) {\n reject(promise, e);\n }\n }\n\n if (!handleThenable(promise, value)) {\n if (settled === FULFILLED) {\n resolve(promise, value);\n }\n\n if (settled === REJECTED) {\n reject(promise, value);\n }\n }\n }\n\n function handleThenable(promise, value) {\n var resolved;\n\n try {\n if (promise === value) {\n throw new TypeError('A promises callback cannot return that same promise.');\n }\n\n if (value && (typeof value === 'function' || _typeof(value) === 'object')) {\n // then should be retrieved only once\n var then = value.then;\n\n if (typeof then === 'function') {\n then.call(value, function (val) {\n if (!resolved) {\n resolved = true;\n\n if (value === val) {\n fulfill(promise, val);\n } else {\n resolve(promise, val);\n }\n }\n }, function (reason) {\n if (!resolved) {\n resolved = true;\n reject(promise, reason);\n }\n });\n return true;\n }\n }\n } catch (e) {\n if (!resolved) {\n reject(promise, e);\n }\n\n return true;\n }\n\n return false;\n }\n\n function resolve(promise, value) {\n if (promise === value || !handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n }\n\n function fulfill(promise, value) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = value;\n asyncCall(publishFulfillment, promise);\n }\n }\n\n function reject(promise, reason) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = reason;\n asyncCall(publishRejection, promise);\n }\n }\n\n function publish(promise) {\n promise._then = promise._then.forEach(invokeCallback);\n }\n\n function publishFulfillment(promise) {\n promise._state = FULFILLED;\n publish(promise);\n }\n\n function publishRejection(promise) {\n promise._state = REJECTED;\n publish(promise);\n\n if (!promise._handled && isNode) {\n global.process.emit('unhandledRejection', promise._data, promise);\n }\n }\n\n function notifyRejectionHandled(promise) {\n global.process.emit('rejectionHandled', promise);\n }\n /**\n * @class\n */\n\n\n function P(resolver) {\n if (typeof resolver !== 'function') {\n throw new TypeError('Promise resolver ' + resolver + ' is not a function');\n }\n\n if (this instanceof P === false) {\n throw new TypeError('Failed to construct \\'Promise\\': Please use the \\'new\\' operator, this object constructor cannot be called as a function.');\n }\n\n this._then = [];\n invokeResolver(resolver, this);\n }\n\n P.prototype = {\n constructor: P,\n _state: PENDING,\n _then: null,\n _data: undefined,\n _handled: false,\n then: function then(onFulfillment, onRejection) {\n var subscriber = {\n owner: this,\n then: new this.constructor(NOOP),\n fulfilled: onFulfillment,\n rejected: onRejection\n };\n\n if ((onRejection || onFulfillment) && !this._handled) {\n this._handled = true;\n\n if (this._state === REJECTED && isNode) {\n asyncCall(notifyRejectionHandled, this);\n }\n }\n\n if (this._state === FULFILLED || this._state === REJECTED) {\n // already resolved, call callback async\n asyncCall(invokeCallback, subscriber);\n } else {\n // subscribe\n this._then.push(subscriber);\n }\n\n return subscriber.then;\n },\n catch: function _catch(onRejection) {\n return this.then(null, onRejection);\n }\n };\n\n P.all = function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError('You must pass an array to Promise.all().');\n }\n\n return new P(function (resolve, reject) {\n var results = [];\n var remaining = 0;\n\n function resolver(index) {\n remaining++;\n return function (value) {\n results[index] = value;\n\n if (! --remaining) {\n resolve(results);\n }\n };\n }\n\n for (var i = 0, promise; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolver(i), reject);\n } else {\n results[i] = promise;\n }\n }\n\n if (!remaining) {\n resolve(results);\n }\n });\n };\n\n P.race = function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError('You must pass an array to Promise.race().');\n }\n\n return new P(function (resolve, reject) {\n for (var i = 0, promise; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n };\n\n P.resolve = function (value) {\n if (value && _typeof(value) === 'object' && value.constructor === P) {\n return value;\n }\n\n return new P(function (resolve) {\n resolve(value);\n });\n };\n\n P.reject = function (reason) {\n return new P(function (resolve, reject) {\n reject(reason);\n });\n };\n\n var picked = typeof Promise === 'function' ? Promise : P;\n var d = UNITS_IN_GRID;\n var meaninglessTransform = {\n size: 16,\n x: 0,\n y: 0,\n rotate: 0,\n flipX: false,\n flipY: false\n };\n\n function isReserved(name) {\n return ~RESERVED_CLASSES.indexOf(name);\n }\n\n function bunker(fn) {\n try {\n fn();\n } catch (e) {\n if (!PRODUCTION) {\n throw e;\n }\n }\n }\n\n function insertCss(css) {\n if (!css || !IS_DOM) {\n return;\n }\n\n var style = DOCUMENT.createElement('style');\n style.setAttribute('type', 'text/css');\n style.innerHTML = css;\n var headChildren = DOCUMENT.head.childNodes;\n var beforeChild = null;\n\n for (var i = headChildren.length - 1; i > -1; i--) {\n var child = headChildren[i];\n var tagName = (child.tagName || '').toUpperCase();\n\n if (['STYLE', 'LINK'].indexOf(tagName) > -1) {\n beforeChild = child;\n }\n }\n\n DOCUMENT.head.insertBefore(style, beforeChild);\n return css;\n }\n\n var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\n function nextUniqueId() {\n var size = 12;\n var id = '';\n\n while (size-- > 0) {\n id += idPool[Math.random() * 62 | 0];\n }\n\n return id;\n }\n\n function toArray(obj) {\n var array = [];\n\n for (var i = (obj || []).length >>> 0; i--;) {\n array[i] = obj[i];\n }\n\n return array;\n }\n\n function classArray(node) {\n if (node.classList) {\n return toArray(node.classList);\n } else {\n return (node.getAttribute('class') || '').split(' ').filter(function (i) {\n return i;\n });\n }\n }\n\n function getIconName(familyPrefix, cls) {\n var parts = cls.split('-');\n var prefix = parts[0];\n var iconName = parts.slice(1).join('-');\n\n if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {\n return iconName;\n } else {\n return null;\n }\n }\n\n function htmlEscape(str) {\n return \"\".concat(str).replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(//g, '>');\n }\n\n function joinAttributes(attributes) {\n return Object.keys(attributes || {}).reduce(function (acc, attributeName) {\n return acc + \"\".concat(attributeName, \"=\\\"\").concat(htmlEscape(attributes[attributeName]), \"\\\" \");\n }, '').trim();\n }\n\n function joinStyles(styles) {\n return Object.keys(styles || {}).reduce(function (acc, styleName) {\n return acc + \"\".concat(styleName, \": \").concat(styles[styleName], \";\");\n }, '');\n }\n\n function transformIsMeaningful(transform) {\n return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;\n }\n\n function transformForSvg(_ref) {\n var transform = _ref.transform,\n containerWidth = _ref.containerWidth,\n iconWidth = _ref.iconWidth;\n var outer = {\n transform: \"translate(\".concat(containerWidth / 2, \" 256)\")\n };\n var innerTranslate = \"translate(\".concat(transform.x * 32, \", \").concat(transform.y * 32, \") \");\n var innerScale = \"scale(\".concat(transform.size / 16 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / 16 * (transform.flipY ? -1 : 1), \") \");\n var innerRotate = \"rotate(\".concat(transform.rotate, \" 0 0)\");\n var inner = {\n transform: \"\".concat(innerTranslate, \" \").concat(innerScale, \" \").concat(innerRotate)\n };\n var path = {\n transform: \"translate(\".concat(iconWidth / 2 * -1, \" -256)\")\n };\n return {\n outer: outer,\n inner: inner,\n path: path\n };\n }\n\n function transformForCss(_ref2) {\n var transform = _ref2.transform,\n _ref2$width = _ref2.width,\n width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,\n _ref2$height = _ref2.height,\n height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,\n _ref2$startCentered = _ref2.startCentered,\n startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;\n var val = '';\n\n if (startCentered && IS_IE) {\n val += \"translate(\".concat(transform.x / d - width / 2, \"em, \").concat(transform.y / d - height / 2, \"em) \");\n } else if (startCentered) {\n val += \"translate(calc(-50% + \".concat(transform.x / d, \"em), calc(-50% + \").concat(transform.y / d, \"em)) \");\n } else {\n val += \"translate(\".concat(transform.x / d, \"em, \").concat(transform.y / d, \"em) \");\n }\n\n val += \"scale(\".concat(transform.size / d * (transform.flipX ? -1 : 1), \", \").concat(transform.size / d * (transform.flipY ? -1 : 1), \") \");\n val += \"rotate(\".concat(transform.rotate, \"deg) \");\n return val;\n }\n\n var ALL_SPACE = {\n x: 0,\n y: 0,\n width: '100%',\n height: '100%'\n };\n\n function fillBlack(abstract) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (abstract.attributes && (abstract.attributes.fill || force)) {\n abstract.attributes.fill = 'black';\n }\n\n return abstract;\n }\n\n function deGroup(abstract) {\n if (abstract.tag === 'g') {\n return abstract.children;\n } else {\n return [abstract];\n }\n }\n\n function makeIconMasking(_ref) {\n var children = _ref.children,\n attributes = _ref.attributes,\n main = _ref.main,\n mask = _ref.mask,\n explicitMaskId = _ref.maskId,\n transform = _ref.transform;\n var mainWidth = main.width,\n mainPath = main.icon;\n var maskWidth = mask.width,\n maskPath = mask.icon;\n var trans = transformForSvg({\n transform: transform,\n containerWidth: maskWidth,\n iconWidth: mainWidth\n });\n var maskRect = {\n tag: 'rect',\n attributes: _objectSpread({}, ALL_SPACE, {\n fill: 'white'\n })\n };\n var maskInnerGroupChildrenMixin = mainPath.children ? {\n children: mainPath.children.map(fillBlack)\n } : {};\n var maskInnerGroup = {\n tag: 'g',\n attributes: _objectSpread({}, trans.inner),\n children: [fillBlack(_objectSpread({\n tag: mainPath.tag,\n attributes: _objectSpread({}, mainPath.attributes, trans.path)\n }, maskInnerGroupChildrenMixin))]\n };\n var maskOuterGroup = {\n tag: 'g',\n attributes: _objectSpread({}, trans.outer),\n children: [maskInnerGroup]\n };\n var maskId = \"mask-\".concat(explicitMaskId || nextUniqueId());\n var clipId = \"clip-\".concat(explicitMaskId || nextUniqueId());\n var maskTag = {\n tag: 'mask',\n attributes: _objectSpread({}, ALL_SPACE, {\n id: maskId,\n maskUnits: 'userSpaceOnUse',\n maskContentUnits: 'userSpaceOnUse'\n }),\n children: [maskRect, maskOuterGroup]\n };\n var defs = {\n tag: 'defs',\n children: [{\n tag: 'clipPath',\n attributes: {\n id: clipId\n },\n children: deGroup(maskPath)\n }, maskTag]\n };\n children.push(defs, {\n tag: 'rect',\n attributes: _objectSpread({\n fill: 'currentColor',\n 'clip-path': \"url(#\".concat(clipId, \")\"),\n mask: \"url(#\".concat(maskId, \")\")\n }, ALL_SPACE)\n });\n return {\n children: children,\n attributes: attributes\n };\n }\n\n function makeIconStandard(_ref) {\n var children = _ref.children,\n attributes = _ref.attributes,\n main = _ref.main,\n transform = _ref.transform,\n styles = _ref.styles;\n var styleString = joinStyles(styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n if (transformIsMeaningful(transform)) {\n var trans = transformForSvg({\n transform: transform,\n containerWidth: main.width,\n iconWidth: main.width\n });\n children.push({\n tag: 'g',\n attributes: _objectSpread({}, trans.outer),\n children: [{\n tag: 'g',\n attributes: _objectSpread({}, trans.inner),\n children: [{\n tag: main.icon.tag,\n children: main.icon.children,\n attributes: _objectSpread({}, main.icon.attributes, trans.path)\n }]\n }]\n });\n } else {\n children.push(main.icon);\n }\n\n return {\n children: children,\n attributes: attributes\n };\n }\n\n function asIcon(_ref) {\n var children = _ref.children,\n main = _ref.main,\n mask = _ref.mask,\n attributes = _ref.attributes,\n styles = _ref.styles,\n transform = _ref.transform;\n\n if (transformIsMeaningful(transform) && main.found && !mask.found) {\n var width = main.width,\n height = main.height;\n var offset = {\n x: width / height / 2,\n y: 0.5\n };\n attributes['style'] = joinStyles(_objectSpread({}, styles, {\n 'transform-origin': \"\".concat(offset.x + transform.x / 16, \"em \").concat(offset.y + transform.y / 16, \"em\")\n }));\n }\n\n return [{\n tag: 'svg',\n attributes: attributes,\n children: children\n }];\n }\n\n function asSymbol(_ref) {\n var prefix = _ref.prefix,\n iconName = _ref.iconName,\n children = _ref.children,\n attributes = _ref.attributes,\n symbol = _ref.symbol;\n var id = symbol === true ? \"\".concat(prefix, \"-\").concat(config.familyPrefix, \"-\").concat(iconName) : symbol;\n return [{\n tag: 'svg',\n attributes: {\n style: 'display: none;'\n },\n children: [{\n tag: 'symbol',\n attributes: _objectSpread({}, attributes, {\n id: id\n }),\n children: children\n }]\n }];\n }\n\n function makeInlineSvgAbstract(params) {\n var _params$icons = params.icons,\n main = _params$icons.main,\n mask = _params$icons.mask,\n prefix = params.prefix,\n iconName = params.iconName,\n transform = params.transform,\n symbol = params.symbol,\n title = params.title,\n maskId = params.maskId,\n titleId = params.titleId,\n extra = params.extra,\n _params$watchable = params.watchable,\n watchable = _params$watchable === void 0 ? false : _params$watchable;\n\n var _ref = mask.found ? mask : main,\n width = _ref.width,\n height = _ref.height;\n\n var isUploadedIcon = prefix === 'fak';\n var widthClass = isUploadedIcon ? '' : \"fa-w-\".concat(Math.ceil(width / height * 16));\n var attrClass = [config.replacementClass, iconName ? \"\".concat(config.familyPrefix, \"-\").concat(iconName) : '', widthClass].filter(function (c) {\n return extra.classes.indexOf(c) === -1;\n }).filter(function (c) {\n return c !== '' || !!c;\n }).concat(extra.classes).join(' ');\n var content = {\n children: [],\n attributes: _objectSpread({}, extra.attributes, {\n 'data-prefix': prefix,\n 'data-icon': iconName,\n 'class': attrClass,\n 'role': extra.attributes.role || 'img',\n 'xmlns': 'http://www.w3.org/2000/svg',\n 'viewBox': \"0 0 \".concat(width, \" \").concat(height)\n })\n };\n var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {\n width: \"\".concat(width / height * 16 * 0.0625, \"em\")\n } : {};\n\n if (watchable) {\n content.attributes[DATA_FA_I2SVG] = '';\n }\n\n if (title) content.children.push({\n tag: 'title',\n attributes: {\n id: content.attributes['aria-labelledby'] || \"title-\".concat(titleId || nextUniqueId())\n },\n children: [title]\n });\n\n var args = _objectSpread({}, content, {\n prefix: prefix,\n iconName: iconName,\n main: main,\n mask: mask,\n maskId: maskId,\n transform: transform,\n symbol: symbol,\n styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)\n });\n\n var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),\n children = _ref2.children,\n attributes = _ref2.attributes;\n\n args.children = children;\n args.attributes = attributes;\n\n if (symbol) {\n return asSymbol(args);\n } else {\n return asIcon(args);\n }\n }\n\n function makeLayersTextAbstract(params) {\n var content = params.content,\n width = params.width,\n height = params.height,\n transform = params.transform,\n title = params.title,\n extra = params.extra,\n _params$watchable2 = params.watchable,\n watchable = _params$watchable2 === void 0 ? false : _params$watchable2;\n\n var attributes = _objectSpread({}, extra.attributes, title ? {\n 'title': title\n } : {}, {\n 'class': extra.classes.join(' ')\n });\n\n if (watchable) {\n attributes[DATA_FA_I2SVG] = '';\n }\n\n var styles = _objectSpread({}, extra.styles);\n\n if (transformIsMeaningful(transform)) {\n styles['transform'] = transformForCss({\n transform: transform,\n startCentered: true,\n width: width,\n height: height\n });\n styles['-webkit-transform'] = styles['transform'];\n }\n\n var styleString = joinStyles(styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n\n return val;\n }\n\n function makeLayersCounterAbstract(params) {\n var content = params.content,\n title = params.title,\n extra = params.extra;\n\n var attributes = _objectSpread({}, extra.attributes, title ? {\n 'title': title\n } : {}, {\n 'class': extra.classes.join(' ')\n });\n\n var styleString = joinStyles(extra.styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n\n return val;\n }\n\n var noop$1 = function noop() {};\n\n var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {\n mark: noop$1,\n measure: noop$1\n };\n var preamble = \"FA \\\"5.15.3\\\"\";\n\n var begin = function begin(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" begins\"));\n return function () {\n return end(name);\n };\n };\n\n var end = function end(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" ends\"));\n p.measure(\"\".concat(preamble, \" \").concat(name), \"\".concat(preamble, \" \").concat(name, \" begins\"), \"\".concat(preamble, \" \").concat(name, \" ends\"));\n };\n\n var perf = {\n begin: begin,\n end: end\n };\n /**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */\n\n var bindInternal4 = function bindInternal4(func, thisContext) {\n return function (a, b, c, d) {\n return func.call(thisContext, a, b, c, d);\n };\n };\n /**\n * # Reduce\n *\n * A fast object `.reduce()` implementation.\n *\n * @param {Object} subject The object to reduce over.\n * @param {Function} fn The reducer function.\n * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].\n * @param {Object} thisContext The context for the reducer.\n * @return {mixed} The final result.\n */\n\n\n var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {\n var keys = Object.keys(subject),\n length = keys.length,\n iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,\n i,\n key,\n result;\n\n if (initialValue === undefined) {\n i = 1;\n result = subject[keys[0]];\n } else {\n i = 0;\n result = initialValue;\n }\n\n for (; i < length; i++) {\n key = keys[i];\n result = iterator(result, subject[key], key, subject);\n }\n\n return result;\n };\n\n function toHex(unicode) {\n var result = '';\n\n for (var i = 0; i < unicode.length; i++) {\n var hex = unicode.charCodeAt(i).toString(16);\n result += ('000' + hex).slice(-4);\n }\n\n return result;\n }\n\n function defineIcons(prefix, icons) {\n var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _params$skipHooks = params.skipHooks,\n skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;\n var normalized = Object.keys(icons).reduce(function (acc, iconName) {\n var icon = icons[iconName];\n var expanded = !!icon.icon;\n\n if (expanded) {\n acc[icon.iconName] = icon.icon;\n } else {\n acc[iconName] = icon;\n }\n\n return acc;\n }, {});\n\n if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {\n namespace.hooks.addPack(prefix, normalized);\n } else {\n namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);\n }\n /**\n * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction\n * of new styles we needed to differentiate between them. Prefix `fa` is now an alias\n * for `fas` so we'll easy the upgrade process for our users by automatically defining\n * this as well.\n */\n\n\n if (prefix === 'fas') {\n defineIcons('fa', icons);\n }\n }\n\n var styles = namespace.styles,\n shims = namespace.shims;\n var _byUnicode = {};\n var _byLigature = {};\n var _byOldName = {};\n\n var build = function build() {\n var lookup = function lookup(reducer) {\n return reduce(styles, function (o, style, prefix) {\n o[prefix] = reduce(style, reducer, {});\n return o;\n }, {});\n };\n\n _byUnicode = lookup(function (acc, icon, iconName) {\n if (icon[3]) {\n acc[icon[3]] = iconName;\n }\n\n return acc;\n });\n _byLigature = lookup(function (acc, icon, iconName) {\n var ligatures = icon[2];\n acc[iconName] = iconName;\n ligatures.forEach(function (ligature) {\n acc[ligature] = iconName;\n });\n return acc;\n });\n var hasRegular = ('far' in styles);\n _byOldName = reduce(shims, function (acc, shim) {\n var oldName = shim[0];\n var prefix = shim[1];\n var iconName = shim[2];\n\n if (prefix === 'far' && !hasRegular) {\n prefix = 'fas';\n }\n\n acc[oldName] = {\n prefix: prefix,\n iconName: iconName\n };\n return acc;\n }, {});\n };\n\n build();\n\n function byUnicode(prefix, unicode) {\n return (_byUnicode[prefix] || {})[unicode];\n }\n\n function byLigature(prefix, ligature) {\n return (_byLigature[prefix] || {})[ligature];\n }\n\n function byOldName(name) {\n return _byOldName[name] || {\n prefix: null,\n iconName: null\n };\n }\n\n var styles$1 = namespace.styles;\n\n var emptyCanonicalIcon = function emptyCanonicalIcon() {\n return {\n prefix: null,\n iconName: null,\n rest: []\n };\n };\n\n function getCanonicalIcon(values) {\n return values.reduce(function (acc, cls) {\n var iconName = getIconName(config.familyPrefix, cls);\n\n if (styles$1[cls]) {\n acc.prefix = cls;\n } else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) {\n acc.prefix = cls;\n } else if (iconName) {\n var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};\n acc.iconName = shim.iconName || iconName;\n acc.prefix = shim.prefix || acc.prefix;\n } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {\n acc.rest.push(cls);\n }\n\n return acc;\n }, emptyCanonicalIcon());\n }\n\n function iconFromMapping(mapping, prefix, iconName) {\n if (mapping && mapping[prefix] && mapping[prefix][iconName]) {\n return {\n prefix: prefix,\n iconName: iconName,\n icon: mapping[prefix][iconName]\n };\n }\n }\n\n function toHtml(abstractNodes) {\n var tag = abstractNodes.tag,\n _abstractNodes$attrib = abstractNodes.attributes,\n attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,\n _abstractNodes$childr = abstractNodes.children,\n children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;\n\n if (typeof abstractNodes === 'string') {\n return htmlEscape(abstractNodes);\n } else {\n return \"<\".concat(tag, \" \").concat(joinAttributes(attributes), \">\").concat(children.map(toHtml).join(''), \"\").concat(tag, \">\");\n }\n }\n\n var noop$2 = function noop() {};\n\n function isWatched(node) {\n var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;\n return typeof i2svg === 'string';\n }\n\n function getMutator() {\n if (config.autoReplaceSvg === true) {\n return mutators.replace;\n }\n\n var mutator = mutators[config.autoReplaceSvg];\n return mutator || mutators.replace;\n }\n\n var mutators = {\n replace: function replace(mutation) {\n var node = mutation[0];\n var abstract = mutation[1];\n var newOuterHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n\n if (node.parentNode && node.outerHTML) {\n node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? \"\") : '');\n } else if (node.parentNode) {\n var newNode = document.createElement('span');\n node.parentNode.replaceChild(newNode, node);\n newNode.outerHTML = newOuterHTML;\n }\n },\n nest: function nest(mutation) {\n var node = mutation[0];\n var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.\n // Short-circuit to the standard replacement\n\n if (~classArray(node).indexOf(config.replacementClass)) {\n return mutators.replace(mutation);\n }\n\n var forSvg = new RegExp(\"\".concat(config.familyPrefix, \"-.*\"));\n delete abstract[0].attributes.style;\n delete abstract[0].attributes.id;\n var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {\n if (cls === config.replacementClass || cls.match(forSvg)) {\n acc.toSvg.push(cls);\n } else {\n acc.toNode.push(cls);\n }\n\n return acc;\n }, {\n toNode: [],\n toSvg: []\n });\n abstract[0].attributes.class = splitClasses.toSvg.join(' ');\n var newInnerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.setAttribute('class', splitClasses.toNode.join(' '));\n node.setAttribute(DATA_FA_I2SVG, '');\n node.innerHTML = newInnerHTML;\n }\n };\n\n function performOperationSync(op) {\n op();\n }\n\n function perform(mutations, callback) {\n var callbackFunction = typeof callback === 'function' ? callback : noop$2;\n\n if (mutations.length === 0) {\n callbackFunction();\n } else {\n var frame = performOperationSync;\n\n if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {\n frame = WINDOW.requestAnimationFrame || performOperationSync;\n }\n\n frame(function () {\n var mutator = getMutator();\n var mark = perf.begin('mutate');\n mutations.map(mutator);\n mark();\n callbackFunction();\n });\n }\n }\n\n var disabled = false;\n\n function disableObservation() {\n disabled = true;\n }\n\n function enableObservation() {\n disabled = false;\n }\n\n var mo = null;\n\n function observe(options) {\n if (!MUTATION_OBSERVER) {\n return;\n }\n\n if (!config.observeMutations) {\n return;\n }\n\n var treeCallback = options.treeCallback,\n nodeCallback = options.nodeCallback,\n pseudoElementsCallback = options.pseudoElementsCallback,\n _options$observeMutat = options.observeMutationsRoot,\n observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;\n mo = new MUTATION_OBSERVER(function (objects) {\n if (disabled) return;\n toArray(objects).forEach(function (mutationRecord) {\n if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {\n if (config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target);\n }\n\n treeCallback(mutationRecord.target);\n }\n\n if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target.parentNode);\n }\n\n if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {\n if (mutationRecord.attributeName === 'class') {\n var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),\n prefix = _getCanonicalIcon.prefix,\n iconName = _getCanonicalIcon.iconName;\n\n if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);\n if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);\n } else {\n nodeCallback(mutationRecord.target);\n }\n }\n });\n });\n if (!IS_DOM) return;\n mo.observe(observeMutationsRoot, {\n childList: true,\n attributes: true,\n characterData: true,\n subtree: true\n });\n }\n\n function disconnect() {\n if (!mo) return;\n mo.disconnect();\n }\n\n function styleParser(node) {\n var style = node.getAttribute('style');\n var val = [];\n\n if (style) {\n val = style.split(';').reduce(function (acc, style) {\n var styles = style.split(':');\n var prop = styles[0];\n var value = styles.slice(1);\n\n if (prop && value.length > 0) {\n acc[prop] = value.join(':').trim();\n }\n\n return acc;\n }, {});\n }\n\n return val;\n }\n\n function classParser(node) {\n var existingPrefix = node.getAttribute('data-prefix');\n var existingIconName = node.getAttribute('data-icon');\n var innerText = node.innerText !== undefined ? node.innerText.trim() : '';\n var val = getCanonicalIcon(classArray(node));\n\n if (existingPrefix && existingIconName) {\n val.prefix = existingPrefix;\n val.iconName = existingIconName;\n }\n\n if (val.prefix && innerText.length > 1) {\n val.iconName = byLigature(val.prefix, node.innerText);\n } else if (val.prefix && innerText.length === 1) {\n val.iconName = byUnicode(val.prefix, toHex(node.innerText));\n }\n\n return val;\n }\n\n var parseTransformString = function parseTransformString(transformString) {\n var transform = {\n size: 16,\n x: 0,\n y: 0,\n flipX: false,\n flipY: false,\n rotate: 0\n };\n\n if (!transformString) {\n return transform;\n } else {\n return transformString.toLowerCase().split(' ').reduce(function (acc, n) {\n var parts = n.toLowerCase().split('-');\n var first = parts[0];\n var rest = parts.slice(1).join('-');\n\n if (first && rest === 'h') {\n acc.flipX = true;\n return acc;\n }\n\n if (first && rest === 'v') {\n acc.flipY = true;\n return acc;\n }\n\n rest = parseFloat(rest);\n\n if (isNaN(rest)) {\n return acc;\n }\n\n switch (first) {\n case 'grow':\n acc.size = acc.size + rest;\n break;\n\n case 'shrink':\n acc.size = acc.size - rest;\n break;\n\n case 'left':\n acc.x = acc.x - rest;\n break;\n\n case 'right':\n acc.x = acc.x + rest;\n break;\n\n case 'up':\n acc.y = acc.y - rest;\n break;\n\n case 'down':\n acc.y = acc.y + rest;\n break;\n\n case 'rotate':\n acc.rotate = acc.rotate + rest;\n break;\n }\n\n return acc;\n }, transform);\n }\n };\n\n function transformParser(node) {\n return parseTransformString(node.getAttribute('data-fa-transform'));\n }\n\n function symbolParser(node) {\n var symbol = node.getAttribute('data-fa-symbol');\n return symbol === null ? false : symbol === '' ? true : symbol;\n }\n\n function attributesParser(node) {\n var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {\n if (acc.name !== 'class' && acc.name !== 'style') {\n acc[attr.name] = attr.value;\n }\n\n return acc;\n }, {});\n var title = node.getAttribute('title');\n var titleId = node.getAttribute('data-fa-title-id');\n\n if (config.autoA11y) {\n if (title) {\n extraAttributes['aria-labelledby'] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n } else {\n extraAttributes['aria-hidden'] = 'true';\n extraAttributes['focusable'] = 'false';\n }\n }\n\n return extraAttributes;\n }\n\n function maskParser(node) {\n var mask = node.getAttribute('data-fa-mask');\n\n if (!mask) {\n return emptyCanonicalIcon();\n } else {\n return getCanonicalIcon(mask.split(' ').map(function (i) {\n return i.trim();\n }));\n }\n }\n\n function blankMeta() {\n return {\n iconName: null,\n title: null,\n titleId: null,\n prefix: null,\n transform: meaninglessTransform,\n symbol: false,\n mask: null,\n maskId: null,\n extra: {\n classes: [],\n styles: {},\n attributes: {}\n }\n };\n }\n\n function parseMeta(node) {\n var _classParser = classParser(node),\n iconName = _classParser.iconName,\n prefix = _classParser.prefix,\n extraClasses = _classParser.rest;\n\n var extraStyles = styleParser(node);\n var transform = transformParser(node);\n var symbol = symbolParser(node);\n var extraAttributes = attributesParser(node);\n var mask = maskParser(node);\n return {\n iconName: iconName,\n title: node.getAttribute('title'),\n titleId: node.getAttribute('data-fa-title-id'),\n prefix: prefix,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: node.getAttribute('data-fa-mask-id'),\n extra: {\n classes: extraClasses,\n styles: extraStyles,\n attributes: extraAttributes\n }\n };\n }\n\n function MissingIcon(error) {\n this.name = 'MissingIcon';\n this.message = error || 'Icon unavailable';\n this.stack = new Error().stack;\n }\n\n MissingIcon.prototype = Object.create(Error.prototype);\n MissingIcon.prototype.constructor = MissingIcon;\n var FILL = {\n fill: 'currentColor'\n };\n var ANIMATION_BASE = {\n attributeType: 'XML',\n repeatCount: 'indefinite',\n dur: '2s'\n };\n var RING = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n 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'\n })\n };\n\n var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {\n attributeName: 'opacity'\n });\n\n var DOT = {\n tag: 'circle',\n attributes: _objectSpread({}, FILL, {\n cx: '256',\n cy: '364',\n r: '28'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, ANIMATION_BASE, {\n attributeName: 'r',\n values: '28;14;28;28;14;28;'\n })\n }, {\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '1;0;1;1;0;1;'\n })\n }]\n };\n var QUESTION = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n opacity: '1',\n 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'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '1;0;0;0;0;1;'\n })\n }]\n };\n var EXCLAMATION = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n opacity: '0',\n 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'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '0;0;1;1;0;0;'\n })\n }]\n };\n var missing = {\n tag: 'g',\n children: [RING, DOT, QUESTION, EXCLAMATION]\n };\n var styles$2 = namespace.styles;\n\n function asFoundIcon(icon) {\n var width = icon[0];\n var height = icon[1];\n\n var _icon$slice = icon.slice(4),\n _icon$slice2 = _slicedToArray(_icon$slice, 1),\n vectorData = _icon$slice2[0];\n\n var element = null;\n\n if (Array.isArray(vectorData)) {\n element = {\n tag: 'g',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.GROUP)\n },\n children: [{\n tag: 'path',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.SECONDARY),\n fill: 'currentColor',\n d: vectorData[0]\n }\n }, {\n tag: 'path',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.PRIMARY),\n fill: 'currentColor',\n d: vectorData[1]\n }\n }]\n };\n } else {\n element = {\n tag: 'path',\n attributes: {\n fill: 'currentColor',\n d: vectorData\n }\n };\n }\n\n return {\n found: true,\n width: width,\n height: height,\n icon: element\n };\n }\n\n function findIcon(iconName, prefix) {\n return new picked(function (resolve, reject) {\n var val = {\n found: false,\n width: 512,\n height: 512,\n icon: missing\n };\n\n if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {\n var icon = styles$2[prefix][iconName];\n return resolve(asFoundIcon(icon));\n }\n\n if (iconName && prefix && !config.showMissingIcons) {\n reject(new MissingIcon(\"Icon is missing for prefix \".concat(prefix, \" with icon name \").concat(iconName)));\n } else {\n resolve(val);\n }\n });\n }\n\n var styles$3 = namespace.styles;\n\n function generateSvgReplacementMutation(node, nodeMeta) {\n var iconName = nodeMeta.iconName,\n title = nodeMeta.title,\n titleId = nodeMeta.titleId,\n prefix = nodeMeta.prefix,\n transform = nodeMeta.transform,\n symbol = nodeMeta.symbol,\n mask = nodeMeta.mask,\n maskId = nodeMeta.maskId,\n extra = nodeMeta.extra;\n return new picked(function (resolve, reject) {\n picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n main = _ref2[0],\n mask = _ref2[1];\n\n resolve([node, makeInlineSvgAbstract({\n icons: {\n main: main,\n mask: mask\n },\n prefix: prefix,\n iconName: iconName,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: maskId,\n title: title,\n titleId: titleId,\n extra: extra,\n watchable: true\n })]);\n });\n });\n }\n\n function generateLayersText(node, nodeMeta) {\n var title = nodeMeta.title,\n transform = nodeMeta.transform,\n extra = nodeMeta.extra;\n var width = null;\n var height = null;\n\n if (IS_IE) {\n var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);\n var boundingClientRect = node.getBoundingClientRect();\n width = boundingClientRect.width / computedFontSize;\n height = boundingClientRect.height / computedFontSize;\n }\n\n if (config.autoA11y && !title) {\n extra.attributes['aria-hidden'] = 'true';\n }\n\n return picked.resolve([node, makeLayersTextAbstract({\n content: node.innerHTML,\n width: width,\n height: height,\n transform: transform,\n title: title,\n extra: extra,\n watchable: true\n })]);\n }\n\n function generateMutation(node) {\n var nodeMeta = parseMeta(node);\n\n if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {\n return generateLayersText(node, nodeMeta);\n } else {\n return generateSvgReplacementMutation(node, nodeMeta);\n }\n }\n\n function onTree(root) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n if (!IS_DOM) return;\n var htmlClassList = DOCUMENT.documentElement.classList;\n\n var hclAdd = function hclAdd(suffix) {\n return htmlClassList.add(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n\n var hclRemove = function hclRemove(suffix) {\n return htmlClassList.remove(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n\n var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);\n var prefixesDomQuery = [\".\".concat(LAYERS_TEXT_CLASSNAME, \":not([\").concat(DATA_FA_I2SVG, \"])\")].concat(prefixes.map(function (p) {\n return \".\".concat(p, \":not([\").concat(DATA_FA_I2SVG, \"])\");\n })).join(', ');\n\n if (prefixesDomQuery.length === 0) {\n return;\n }\n\n var candidates = [];\n\n try {\n candidates = toArray(root.querySelectorAll(prefixesDomQuery));\n } catch (e) {// noop\n }\n\n if (candidates.length > 0) {\n hclAdd('pending');\n hclRemove('complete');\n } else {\n return;\n }\n\n var mark = perf.begin('onTree');\n var mutations = candidates.reduce(function (acc, node) {\n try {\n var mutation = generateMutation(node);\n\n if (mutation) {\n acc.push(mutation);\n }\n } catch (e) {\n if (!PRODUCTION) {\n if (e instanceof MissingIcon) {\n console.error(e);\n }\n }\n }\n\n return acc;\n }, []);\n return new picked(function (resolve, reject) {\n picked.all(mutations).then(function (resolvedMutations) {\n perform(resolvedMutations, function () {\n hclAdd('active');\n hclAdd('complete');\n hclRemove('pending');\n if (typeof callback === 'function') callback();\n mark();\n resolve();\n });\n }).catch(function () {\n mark();\n reject();\n });\n });\n }\n\n function onNode(node) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n generateMutation(node).then(function (mutation) {\n if (mutation) {\n perform([mutation], callback);\n }\n });\n }\n\n function replaceForPosition(node, position) {\n var pendingAttribute = \"\".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));\n return new picked(function (resolve, reject) {\n if (node.getAttribute(pendingAttribute) !== null) {\n // This node is already being processed\n return resolve();\n }\n\n var children = toArray(node.children);\n var alreadyProcessedPseudoElement = children.filter(function (c) {\n return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;\n })[0];\n var styles = WINDOW.getComputedStyle(node, position);\n var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);\n var fontWeight = styles.getPropertyValue('font-weight');\n var content = styles.getPropertyValue('content');\n\n if (alreadyProcessedPseudoElement && !fontFamily) {\n // If we've already processed it but the current computed style does not result in a font-family,\n // that probably means that a class name that was previously present to make the icon has been\n // removed. So we now should delete the icon.\n node.removeChild(alreadyProcessedPseudoElement);\n return resolve();\n } else if (fontFamily && content !== 'none' && content !== '') {\n var _content = styles.getPropertyValue('content');\n\n var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];\n var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);\n var iconName = byUnicode(prefix, hexValue);\n var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't\n // already done so with the same prefix and iconName\n\n if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {\n node.setAttribute(pendingAttribute, iconIdentifier);\n\n if (alreadyProcessedPseudoElement) {\n // Delete the old one, since we're replacing it with a new one\n node.removeChild(alreadyProcessedPseudoElement);\n }\n\n var meta = blankMeta();\n var extra = meta.extra;\n extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;\n findIcon(iconName, prefix).then(function (main) {\n var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {\n icons: {\n main: main,\n mask: emptyCanonicalIcon()\n },\n prefix: prefix,\n iconName: iconIdentifier,\n extra: extra,\n watchable: true\n }));\n var element = DOCUMENT.createElement('svg');\n\n if (position === ':before') {\n node.insertBefore(element, node.firstChild);\n } else {\n node.appendChild(element);\n }\n\n element.outerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.removeAttribute(pendingAttribute);\n resolve();\n }).catch(reject);\n } else {\n resolve();\n }\n } else {\n resolve();\n }\n });\n }\n\n function replace(node) {\n return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);\n }\n\n function processable(node) {\n return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');\n }\n\n function searchPseudoElements(root) {\n if (!IS_DOM) return;\n return new picked(function (resolve, reject) {\n var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);\n var end = perf.begin('searchPseudoElements');\n disableObservation();\n picked.all(operations).then(function () {\n end();\n enableObservation();\n resolve();\n }).catch(function () {\n end();\n enableObservation();\n reject();\n });\n });\n }\n\n var baseStyles = \"svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.3333333333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid .08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fad.fa-inverse{color:#fff}\";\n\n function css() {\n var dfp = DEFAULT_FAMILY_PREFIX;\n var drc = DEFAULT_REPLACEMENT_CLASS;\n var fp = config.familyPrefix;\n var rc = config.replacementClass;\n var s = baseStyles;\n\n if (fp !== dfp || rc !== drc) {\n var dPatt = new RegExp(\"\\\\.\".concat(dfp, \"\\\\-\"), 'g');\n var customPropPatt = new RegExp(\"\\\\--\".concat(dfp, \"\\\\-\"), 'g');\n var rPatt = new RegExp(\"\\\\.\".concat(drc), 'g');\n s = s.replace(dPatt, \".\".concat(fp, \"-\")).replace(customPropPatt, \"--\".concat(fp, \"-\")).replace(rPatt, \".\".concat(rc));\n }\n\n return s;\n }\n\n var Library = /*#__PURE__*/function () {\n function Library() {\n _classCallCheck(this, Library);\n\n this.definitions = {};\n }\n\n _createClass(Library, [{\n key: \"add\",\n value: function add() {\n var _this = this;\n\n for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {\n definitions[_key] = arguments[_key];\n }\n\n var additions = definitions.reduce(this._pullDefinitions, {});\n Object.keys(additions).forEach(function (key) {\n _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);\n defineIcons(key, additions[key]);\n build();\n });\n }\n }, {\n key: \"reset\",\n value: function reset() {\n this.definitions = {};\n }\n }, {\n key: \"_pullDefinitions\",\n value: function _pullDefinitions(additions, definition) {\n var normalized = definition.prefix && definition.iconName && definition.icon ? {\n 0: definition\n } : definition;\n Object.keys(normalized).map(function (key) {\n var _normalized$key = normalized[key],\n prefix = _normalized$key.prefix,\n iconName = _normalized$key.iconName,\n icon = _normalized$key.icon;\n if (!additions[prefix]) additions[prefix] = {};\n additions[prefix][iconName] = icon;\n });\n return additions;\n }\n }]);\n\n return Library;\n }();\n\n function ensureCss() {\n if (config.autoAddCss && !_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n }\n\n function apiObject(val, abstractCreator) {\n Object.defineProperty(val, 'abstract', {\n get: abstractCreator\n });\n Object.defineProperty(val, 'html', {\n get: function get() {\n return val.abstract.map(function (a) {\n return toHtml(a);\n });\n }\n });\n Object.defineProperty(val, 'node', {\n get: function get() {\n if (!IS_DOM) return;\n var container = DOCUMENT.createElement('div');\n container.innerHTML = val.html;\n return container.children;\n }\n });\n return val;\n }\n\n function findIconDefinition(iconLookup) {\n var _iconLookup$prefix = iconLookup.prefix,\n prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,\n iconName = iconLookup.iconName;\n if (!iconName) return;\n return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);\n }\n\n function resolveIcons(next) {\n return function (maybeIconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});\n var mask = params.mask;\n\n if (mask) {\n mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});\n }\n\n return next(iconDefinition, _objectSpread({}, params, {\n mask: mask\n }));\n };\n }\n\n var library = new Library();\n\n var noAuto = function noAuto() {\n config.autoReplaceSvg = false;\n config.observeMutations = false;\n disconnect();\n };\n\n var _cssInserted = false;\n var dom = {\n i2svg: function i2svg() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (IS_DOM) {\n ensureCss();\n var _params$node = params.node,\n node = _params$node === void 0 ? DOCUMENT : _params$node,\n _params$callback = params.callback,\n callback = _params$callback === void 0 ? function () {} : _params$callback;\n\n if (config.searchPseudoElements) {\n searchPseudoElements(node);\n }\n\n return onTree(node, callback);\n } else {\n return picked.reject('Operation requires a DOM of some kind.');\n }\n },\n css: css,\n insertCss: function insertCss$$1() {\n if (!_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n },\n watch: function watch() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var autoReplaceSvgRoot = params.autoReplaceSvgRoot,\n observeMutationsRoot = params.observeMutationsRoot;\n\n if (config.autoReplaceSvg === false) {\n config.autoReplaceSvg = true;\n }\n\n config.observeMutations = true;\n domready(function () {\n autoReplace({\n autoReplaceSvgRoot: autoReplaceSvgRoot\n });\n observe({\n treeCallback: onTree,\n nodeCallback: onNode,\n pseudoElementsCallback: searchPseudoElements,\n observeMutationsRoot: observeMutationsRoot\n });\n });\n }\n };\n var parse = {\n transform: function transform(transformString) {\n return parseTransformString(transformString);\n }\n };\n var icon = resolveIcons(function (iconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform = params.transform,\n transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,\n _params$symbol = params.symbol,\n symbol = _params$symbol === void 0 ? false : _params$symbol,\n _params$mask = params.mask,\n mask = _params$mask === void 0 ? null : _params$mask,\n _params$maskId = params.maskId,\n maskId = _params$maskId === void 0 ? null : _params$maskId,\n _params$title = params.title,\n title = _params$title === void 0 ? null : _params$title,\n _params$titleId = params.titleId,\n titleId = _params$titleId === void 0 ? null : _params$titleId,\n _params$classes = params.classes,\n classes = _params$classes === void 0 ? [] : _params$classes,\n _params$attributes = params.attributes,\n attributes = _params$attributes === void 0 ? {} : _params$attributes,\n _params$styles = params.styles,\n styles = _params$styles === void 0 ? {} : _params$styles;\n if (!iconDefinition) return;\n var prefix = iconDefinition.prefix,\n iconName = iconDefinition.iconName,\n icon = iconDefinition.icon;\n return apiObject(_objectSpread({\n type: 'icon'\n }, iconDefinition), function () {\n ensureCss();\n\n if (config.autoA11y) {\n if (title) {\n attributes['aria-labelledby'] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n } else {\n attributes['aria-hidden'] = 'true';\n attributes['focusable'] = 'false';\n }\n }\n\n return makeInlineSvgAbstract({\n icons: {\n main: asFoundIcon(icon),\n mask: mask ? asFoundIcon(mask.icon) : {\n found: false,\n width: null,\n height: null,\n icon: {}\n }\n },\n prefix: prefix,\n iconName: iconName,\n transform: _objectSpread({}, meaninglessTransform, transform),\n symbol: symbol,\n title: title,\n maskId: maskId,\n titleId: titleId,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: classes\n }\n });\n });\n });\n\n var text = function text(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform2 = params.transform,\n transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,\n _params$title2 = params.title,\n title = _params$title2 === void 0 ? null : _params$title2,\n _params$classes2 = params.classes,\n classes = _params$classes2 === void 0 ? [] : _params$classes2,\n _params$attributes2 = params.attributes,\n attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,\n _params$styles2 = params.styles,\n styles = _params$styles2 === void 0 ? {} : _params$styles2;\n return apiObject({\n type: 'text',\n content: content\n }, function () {\n ensureCss();\n return makeLayersTextAbstract({\n content: content,\n transform: _objectSpread({}, meaninglessTransform, transform),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\"\".concat(config.familyPrefix, \"-layers-text\")].concat(_toConsumableArray(classes))\n }\n });\n });\n };\n\n var counter = function counter(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$title3 = params.title,\n title = _params$title3 === void 0 ? null : _params$title3,\n _params$classes3 = params.classes,\n classes = _params$classes3 === void 0 ? [] : _params$classes3,\n _params$attributes3 = params.attributes,\n attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,\n _params$styles3 = params.styles,\n styles = _params$styles3 === void 0 ? {} : _params$styles3;\n return apiObject({\n type: 'counter',\n content: content\n }, function () {\n ensureCss();\n return makeLayersCounterAbstract({\n content: content.toString(),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\"\".concat(config.familyPrefix, \"-layers-counter\")].concat(_toConsumableArray(classes))\n }\n });\n });\n };\n\n var layer = function layer(assembler) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$classes4 = params.classes,\n classes = _params$classes4 === void 0 ? [] : _params$classes4;\n return apiObject({\n type: 'layer'\n }, function () {\n ensureCss();\n var children = [];\n assembler(function (args) {\n Array.isArray(args) ? args.map(function (a) {\n children = children.concat(a.abstract);\n }) : children = children.concat(args.abstract);\n });\n return [{\n tag: 'span',\n attributes: {\n class: [\"\".concat(config.familyPrefix, \"-layers\")].concat(_toConsumableArray(classes)).join(' ')\n },\n children: children\n }];\n });\n };\n\n var api = {\n noAuto: noAuto,\n config: config,\n dom: dom,\n library: library,\n parse: parse,\n findIconDefinition: findIconDefinition,\n icon: icon,\n text: text,\n counter: counter,\n layer: layer,\n toHtml: toHtml\n };\n\n var autoReplace = function autoReplace() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _params$autoReplaceSv = params.autoReplaceSvgRoot,\n autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;\n if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({\n node: autoReplaceSvgRoot\n });\n };\n\n function bootstrap() {\n if (IS_BROWSER) {\n if (!WINDOW.FontAwesome) {\n WINDOW.FontAwesome = api;\n }\n\n domready(function () {\n autoReplace();\n observe({\n treeCallback: onTree,\n nodeCallback: onNode,\n pseudoElementsCallback: searchPseudoElements\n });\n });\n }\n\n namespace.hooks = _objectSpread({}, namespace.hooks, {\n addPack: function addPack(prefix, icons) {\n namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, icons);\n build();\n autoReplace();\n },\n addShims: function addShims(shims) {\n var _namespace$shims;\n\n (_namespace$shims = namespace.shims).push.apply(_namespace$shims, _toConsumableArray(shims));\n\n build();\n autoReplace();\n }\n });\n }\n\n bunker(bootstrap);\n})();","var scope = typeof global !== \"undefined\" && global || typeof self !== \"undefined\" && self || window;\nvar apply = Function.prototype.apply; // DOM APIs, for completeness\n\nexports.setTimeout = function () {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\n\nexports.setInterval = function () {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\n\nexports.clearTimeout = exports.clearInterval = function (timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\n\nTimeout.prototype.unref = Timeout.prototype.ref = function () {};\n\nTimeout.prototype.close = function () {\n this._clearFn.call(scope, this._id);\n}; // Does not start the time, just sets up the members needed.\n\n\nexports.enroll = function (item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function (item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function (item) {\n clearTimeout(item._idleTimeoutId);\n var msecs = item._idleTimeout;\n\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout) item._onTimeout();\n }, msecs);\n }\n}; // setimmediate attaches itself to the global object\n\n\nrequire(\"setimmediate\"); // On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\n\n\nexports.setImmediate = typeof self !== \"undefined\" && self.setImmediate || typeof global !== \"undefined\" && global.setImmediate || this && this.setImmediate;\nexports.clearImmediate = typeof self !== \"undefined\" && self.clearImmediate || typeof global !== \"undefined\" && global.clearImmediate || this && this.clearImmediate;","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n } // Copy function arguments\n\n\n var args = new Array(arguments.length - 1);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n } // Store and register the task\n\n\n var task = {\n callback: callback,\n args: args\n };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n\n switch (args.length) {\n case 0:\n callback();\n break;\n\n case 1:\n callback(args[0]);\n break;\n\n case 2:\n callback(args[0], args[1]);\n break;\n\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n\n if (task) {\n currentlyRunningATask = true;\n\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function registerImmediate(handle) {\n process.nextTick(function () {\n runIfPresent(handle);\n });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n\n global.onmessage = function () {\n postMessageIsAsynchronous = false;\n };\n\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n\n var onGlobalMessage = function onGlobalMessage(event) {\n if (event.source === global && typeof event.data === \"string\" && event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function registerImmediate(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n\n channel.port1.onmessage = function (event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function registerImmediate(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n\n registerImmediate = function registerImmediate(handle) {\n // Create a