50\"\n />\n
\n \n \n {{ result.title }} \n
\n \n \n \n score: {{ result.score }} |\n {{ scoreTextTranslate[result.scoreText] }}\n
\n \n\n \n \n {{ result.shortDescription }}\n
\n \n\n \n \n {{ result.text }}\n
\n \n \n\n \n \n {{ facets.title }}
\n score: {{ facets.score }} |\n {{ scoreTextTranslate[facets.scoreText] }} \n \n {{ facets.text }}\n
\n \n \n 50\"\n class=\"html2pdf__page-break\"\n :key=\"index_key + 'break'\"\n />\n \n \n \n
\n Download PDF\n \n
\n
\n
\n CANDIDATO NÃO PREENCHEU O TESTE BIGFIVE\n \n \n
\n
\n BIG5 NÃO FOI PREENCHIDO\n
\n
\n CANDIDATO(A) NÃO PREENCHEU O TESTE BIGFIVE\n
\n
\n
\n
\n
RESULTADO BIGFIVE \n \n \n\n
\n
RESULTADO BIG FIVE
\n
\n
\n\n
\n
\n
\n {{ result.title }} \n
\n
\n score: {{ result.score }} |\n {{ scoreTextTranslate[result.scoreText] }}\n
\n
\n {{ result.shortDescription }}\n
\n\n
\n {{ result.text }}\n
\n
\n
\n
{{ facets.title }}
\n
score: {{ facets.score }} |\n {{ scoreTextTranslate[facets.scoreText] }} \n
\n {{ facets.text }}\n
\n
\n
\n
\n
\n\n
\n Próxima etapa\n \n \n
\n \n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=2e9d2c08&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var roundingMap = {\n ceil: Math.ceil,\n round: Math.round,\n floor: Math.floor,\n trunc: function trunc(value) {\n return value < 0 ? Math.ceil(value) : Math.floor(value);\n } // Math.trunc is not supported by IE\n};\n\nvar defaultRoundingMethod = 'trunc';\nexport function getRoundingMethod(method) {\n return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];\n}","!function (e, t) {\n \"object\" == typeof exports && \"object\" == typeof module ? module.exports = t(require(\"zxcvbn\")) : \"function\" == typeof define && define.amd ? define(\"Password\", [\"zxcvbn\"], t) : \"object\" == typeof exports ? exports.Password = t(require(\"zxcvbn\")) : e.Password = t(e.zxcvbn);\n}(this, function (e) {\n return function (e) {\n function t(r) {\n if (s[r]) return s[r].exports;\n var n = s[r] = {\n exports: {},\n id: r,\n loaded: !1\n };\n return e[r].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports;\n }\n var s = {};\n return t.m = e, t.c = s, t.p = \"\", t(0);\n }([function (e, t, s) {\n \"use strict\";\n\n function r(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n var n = s(4),\n o = r(n);\n e.exports = o.default;\n }, function (e, t, s) {\n \"use strict\";\n\n function r(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n var n = s(10),\n o = r(n);\n t.default = {\n name: \"VuePasswordStrengthMeter\",\n inheritAttrs: !1,\n props: {\n value: {\n type: String\n },\n secureLength: {\n type: Number,\n default: 7\n },\n badge: {\n type: Boolean,\n default: !0\n },\n toggle: {\n type: Boolean,\n default: !1\n },\n showPassword: {\n type: Boolean,\n default: !1\n },\n referenceValue: {\n type: String,\n default: \"input\"\n },\n showStrengthMeter: {\n type: Boolean,\n default: !0\n },\n strengthMeterOnly: {\n type: Boolean,\n default: !1\n },\n defaultClass: {\n type: String,\n default: \"Password__field\"\n },\n disabledClass: {\n type: String,\n default: \"Password__field--disabled\"\n },\n errorClass: {\n type: String,\n default: \"Password__badge--error\"\n },\n successClass: {\n type: String,\n default: \"Password__badge--success\"\n },\n strengthMeterClass: {\n type: String,\n default: \"Password__strength-meter\"\n },\n strengthMeterFillClass: {\n type: String,\n default: \"Password__strength-meter--fill\"\n },\n labelShow: {\n type: String,\n default: \"Show Password\"\n },\n labelHide: {\n type: String,\n default: \"Hide Password\"\n },\n userInputs: {\n type: Array,\n default: function () {\n return [];\n }\n }\n },\n data: function () {\n return {\n password: null,\n _showPassword: !1\n };\n },\n methods: {\n togglePassword: function () {\n this.$data._showPassword ? (this.$emit(\"hide\"), this.$data._showPassword = !1) : (this.$emit(\"show\"), this.$data._showPassword = !0);\n },\n emitValue: function (e, t) {\n this.$emit(e, t), this.password = t;\n }\n },\n computed: {\n passwordStrength: function () {\n return this.password ? (0, o.default)(this.password, this.userInputs.length >= 1 ? this.userInputs : null).score : null;\n },\n isSecure: function () {\n return this.password ? this.password.length >= this.secureLength : null;\n },\n isActive: function () {\n return this.password && this.password.length > 0;\n },\n passwordCount: function () {\n return this.password && (this.password.length > this.secureLength ? this.secureLength + \"+\" : this.password.length);\n },\n inputType: function () {\n return this.$data._showPassword || this.showPassword ? \"text\" : \"password\";\n },\n showPasswordLabel: function () {\n return this.$data._showPassword || this.showPassword ? this.labelHide : this.labelShow;\n }\n },\n watch: {\n value: function (e) {\n this.strengthMeterOnly && this.emitValue(\"input\", e);\n },\n passwordStrength: function (e) {\n this.$emit(\"score\", e), this.$emit(\"feedback\", (0, o.default)(this.password).feedback);\n }\n }\n };\n }, function (e, t, s) {\n t = e.exports = s(3)(!1), t.push([e.id, '[v-cloak]{display:none}.Password{max-width:400px;margin:0 auto}.Password__group{position:relative}.Password__strength-meter{position:relative;height:3px;background:#ddd;margin:10px auto 20px;border-radius:3px}.Password__strength-meter:after,.Password__strength-meter:before{content:\"\";height:inherit;background:transparent;display:block;border-color:#fff;border-style:solid;border-width:0 5px;position:absolute;width:20%;z-index:10}.Password__strength-meter:before{left:20%}.Password__strength-meter:after{right:20%}.Password__strength-meter--fill{background:transparent;height:inherit;position:absolute;width:0;border-radius:inherit;transition:width .5s ease-in-out,background .25s}.Password__strength-meter--fill[data-score=\"0\"]{background:darkred;width:20%}.Password__strength-meter--fill[data-score=\"1\"]{background:#ff4500;width:40%}.Password__strength-meter--fill[data-score=\"2\"]{background:orange;width:60%}.Password__strength-meter--fill[data-score=\"3\"]{background:#9acd32;width:80%}.Password__strength-meter--fill[data-score=\"4\"]{background:green;width:100%}.Password__field{background-color:#f1f1f1;border:1px solid #f1f1f1;border-radius:2px;box-sizing:border-box;font-size:14px;padding:13px;width:100%}.Password__field--disabled{background-color:#f6f6f6;border:1px solid #f6f6f6}.Password__icons{position:absolute;top:0;right:0;height:100%;display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.Password__badge,.Password__toggle{line-height:1.1;margin-right:13px}.Password__badge{position:relative;color:#fff;border-radius:6px;padding:3px;width:30px;height:15px;font-size:14px;display:flex;justify-content:center;align-items:center}.Password__badge--error{background:red}.Password__badge--success{background:#1bbf1b}.btn-clean{appearance:none;background:none;border:none;cursor:pointer;outline:none;color:#777;padding:0}.btn-clean svg{fill:currentColor}.btn-clean:focus,.btn-clean:hover{color:#404b69}', \"\"]);\n }, function (e, t) {\n function s(e, t) {\n var s = e[1] || \"\",\n n = e[3];\n if (!n) return s;\n if (t && \"function\" == typeof btoa) {\n var o = r(n),\n a = n.sources.map(function (e) {\n return \"/*# sourceURL=\" + n.sourceRoot + e + \" */\";\n });\n return [s].concat(a).concat([o]).join(\"\\n\");\n }\n return [s].join(\"\\n\");\n }\n function r(e) {\n var t = btoa(unescape(encodeURIComponent(JSON.stringify(e)))),\n s = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\" + t;\n return \"/*# \" + s + \" */\";\n }\n e.exports = function (e) {\n var t = [];\n return t.toString = function () {\n return this.map(function (t) {\n var r = s(t, e);\n return t[2] ? \"@media \" + t[2] + \"{\" + r + \"}\" : r;\n }).join(\"\");\n }, t.i = function (e, s) {\n \"string\" == typeof e && (e = [[null, e, \"\"]]);\n for (var r = {}, n = 0; n < this.length; n++) {\n var o = this[n][0];\n \"number\" == typeof o && (r[o] = !0);\n }\n for (n = 0; n < e.length; n++) {\n var a = e[n];\n \"number\" == typeof a[0] && r[a[0]] || (s && !a[2] ? a[2] = s : s && (a[2] = \"(\" + a[2] + \") and (\" + s + \")\"), t.push(a));\n }\n }, t;\n };\n }, function (e, t, s) {\n function r(e) {\n s(7);\n }\n var n = s(5)(s(1), s(6), r, null, null);\n e.exports = n.exports;\n }, function (e, t) {\n e.exports = function (e, t, s, r, n) {\n var o,\n a = e = e || {},\n i = typeof e.default;\n \"object\" !== i && \"function\" !== i || (o = e, a = e.default);\n var d = \"function\" == typeof a ? a.options : a;\n t && (d.render = t.render, d.staticRenderFns = t.staticRenderFns), r && (d._scopeId = r);\n var u;\n if (n ? (u = function (e) {\n e = e || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, e || \"undefined\" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__), s && s.call(this, e), e && e._registeredComponents && e._registeredComponents.add(n);\n }, d._ssrRegister = u) : s && (u = s), u) {\n var l = d.functional,\n c = l ? d.render : d.beforeCreate;\n l ? d.render = function (e, t) {\n return u.call(t), c(e, t);\n } : d.beforeCreate = c ? [].concat(c, u) : [u];\n }\n return {\n esModule: o,\n exports: a,\n options: d\n };\n };\n }, function (e, t) {\n e.exports = {\n render: function () {\n var e = this,\n t = e.$createElement,\n s = e._self._c || t;\n return s(\"div\", {\n staticClass: \"Password\"\n }, [e.strengthMeterOnly ? e._e() : s(\"div\", {\n staticClass: \"Password__group\"\n }, [s(\"input\", e._b({\n ref: e.referenceValue,\n class: [e.defaultClass, e.$attrs.disabled ? e.disabledClass : \"\"],\n attrs: {\n type: e.inputType\n },\n domProps: {\n value: e.value\n },\n on: {\n input: function (t) {\n return e.emitValue(\"input\", t.target.value);\n },\n blur: function (t) {\n return e.emitValue(\"blur\", t.target.value);\n },\n focus: function (t) {\n return e.emitValue(\"focus\", t.target.value);\n }\n }\n }, \"input\", e.$attrs, !1)), e._v(\" \"), s(\"div\", {\n staticClass: \"Password__icons\"\n }, [e.badge ? s(\"div\", {\n staticClass: \"Password__badge\",\n class: [e.isSecure ? e.successClass : \"\", !e.isSecure && e.isActive ? e.errorClass : \"\"]\n }, [e._v(\"\\n \" + e._s(e.passwordCount) + \"\\n \")]) : e._e(), e._v(\" \"), e.toggle ? s(\"div\", {\n staticClass: \"Password__toggle\"\n }, [s(\"button\", {\n staticClass: \"btn-clean\",\n attrs: {\n type: \"button\",\n \"aria-label\": e.showPasswordLabel,\n tabindex: \"-1\"\n },\n on: {\n click: function (t) {\n return t.preventDefault(), e.togglePassword();\n }\n }\n }, [this.$data._showPassword ? s(\"svg\", {\n attrs: {\n version: \"1.1\",\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\"\n }\n }, [s(\"title\", [e._v(e._s(e.showPasswordLabel))]), e._v(\" \"), s(\"path\", {\n attrs: {\n d: \"M12 9c1.641 0 3 1.359 3 3s-1.359 3-3 3-3-1.359-3-3 1.359-3 3-3zM12 17.016c2.766 0 5.016-2.25 5.016-5.016s-2.25-5.016-5.016-5.016-5.016 2.25-5.016 5.016 2.25 5.016 5.016 5.016zM12 4.5c5.016 0 9.281 3.094 11.016 7.5-1.734 4.406-6 7.5-11.016 7.5s-9.281-3.094-11.016-7.5c1.734-4.406 6-7.5 11.016-7.5z\"\n }\n })]) : s(\"svg\", {\n attrs: {\n version: \"1.1\",\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\"\n }\n }, [s(\"title\", [e._v(e._s(e.showPasswordLabel))]), e._v(\" \"), s(\"path\", {\n attrs: {\n d: \"M11.859 9h0.141c1.641 0 3 1.359 3 3v0.188zM7.547 9.797c-0.328 0.656-0.563 1.406-0.563 2.203 0 2.766 2.25 5.016 5.016 5.016 0.797 0 1.547-0.234 2.203-0.563l-1.547-1.547c-0.188 0.047-0.422 0.094-0.656 0.094-1.641 0-3-1.359-3-3 0-0.234 0.047-0.469 0.094-0.656zM2.016 4.266l1.266-1.266 17.719 17.719-1.266 1.266c-1.124-1.11-2.256-2.213-3.375-3.328-1.359 0.563-2.813 0.844-4.359 0.844-5.016 0-9.281-3.094-11.016-7.5 0.797-1.969 2.109-3.656 3.75-4.969-0.914-0.914-1.812-1.844-2.719-2.766zM12 6.984c-0.656 0-1.266 0.141-1.828 0.375l-2.156-2.156c1.219-0.469 2.578-0.703 3.984-0.703 5.016 0 9.234 3.094 10.969 7.5-0.75 1.875-1.922 3.469-3.422 4.734l-2.906-2.906c0.234-0.563 0.375-1.172 0.375-1.828 0-2.766-2.25-5.016-5.016-5.016z\"\n }\n })])])]) : e._e()])]), e._v(\" \"), e.showStrengthMeter ? s(\"div\", {\n class: [e.strengthMeterClass]\n }, [s(\"div\", {\n class: [e.strengthMeterFillClass],\n attrs: {\n \"data-score\": e.passwordStrength\n }\n })]) : e._e()]);\n },\n staticRenderFns: []\n };\n }, function (e, t, s) {\n var r = s(2);\n \"string\" == typeof r && (r = [[e.id, r, \"\"]]), r.locals && (e.exports = r.locals);\n s(8)(\"091d3898\", r, !0, {});\n }, function (e, t, s) {\n function r(e) {\n for (var t = 0; t < e.length; t++) {\n var s = e[t],\n r = l[s.id];\n if (r) {\n r.refs++;\n for (var n = 0; n < r.parts.length; n++) r.parts[n](s.parts[n]);\n for (; n < s.parts.length; n++) r.parts.push(o(s.parts[n]));\n r.parts.length > s.parts.length && (r.parts.length = s.parts.length);\n } else {\n for (var a = [], n = 0; n < s.parts.length; n++) a.push(o(s.parts[n]));\n l[s.id] = {\n id: s.id,\n refs: 1,\n parts: a\n };\n }\n }\n }\n function n() {\n var e = document.createElement(\"style\");\n return e.type = \"text/css\", c.appendChild(e), e;\n }\n function o(e) {\n var t,\n s,\n r = document.querySelector(\"style[\" + _ + '~=\"' + e.id + '\"]');\n if (r) {\n if (h) return g;\n r.parentNode.removeChild(r);\n }\n if (b) {\n var o = p++;\n r = f || (f = n()), t = a.bind(null, r, o, !1), s = a.bind(null, r, o, !0);\n } else r = n(), t = i.bind(null, r), s = function () {\n r.parentNode.removeChild(r);\n };\n return t(e), function (r) {\n if (r) {\n if (r.css === e.css && r.media === e.media && r.sourceMap === e.sourceMap) return;\n t(e = r);\n } else s();\n };\n }\n function a(e, t, s, r) {\n var n = s ? \"\" : r.css;\n if (e.styleSheet) e.styleSheet.cssText = v(t, n);else {\n var o = document.createTextNode(n),\n a = e.childNodes;\n a[t] && e.removeChild(a[t]), a.length ? e.insertBefore(o, a[t]) : e.appendChild(o);\n }\n }\n function i(e, t) {\n var s = t.css,\n r = t.media,\n n = t.sourceMap;\n if (r && e.setAttribute(\"media\", r), w.ssrId && e.setAttribute(_, t.id), n && (s += \"\\n/*# sourceURL=\" + n.sources[0] + \" */\", s += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(n)))) + \" */\"), e.styleSheet) e.styleSheet.cssText = s;else {\n for (; e.firstChild;) e.removeChild(e.firstChild);\n e.appendChild(document.createTextNode(s));\n }\n }\n var d = \"undefined\" != typeof document,\n u = s(9),\n l = {},\n c = d && (document.head || document.getElementsByTagName(\"head\")[0]),\n f = null,\n p = 0,\n h = !1,\n g = function () {},\n w = null,\n _ = \"data-vue-ssr-id\",\n b = \"undefined\" != typeof navigator && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());\n e.exports = function (e, t, s, n) {\n h = s, w = n || {};\n var o = u(e, t);\n return r(o), function (t) {\n for (var s = [], n = 0; n < o.length; n++) {\n var a = o[n],\n i = l[a.id];\n i.refs--, s.push(i);\n }\n t ? (o = u(e, t), r(o)) : o = [];\n for (var n = 0; n < s.length; n++) {\n var i = s[n];\n if (0 === i.refs) {\n for (var d = 0; d < i.parts.length; d++) i.parts[d]();\n delete l[i.id];\n }\n }\n };\n };\n var v = function () {\n var e = [];\n return function (t, s) {\n return e[t] = s, e.filter(Boolean).join(\"\\n\");\n };\n }();\n }, function (e, t) {\n e.exports = function (e, t) {\n for (var s = [], r = {}, n = 0; n < t.length; n++) {\n var o = t[n],\n a = o[0],\n i = o[1],\n d = o[2],\n u = o[3],\n l = {\n id: e + \":\" + n,\n css: i,\n media: d,\n sourceMap: u\n };\n r[a] ? r[a].parts.push(l) : s.push(r[a] = {\n id: a,\n parts: [l]\n });\n }\n return s;\n };\n }, function (t, s) {\n t.exports = e;\n }]);\n});","var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'less than a second',\n other: 'less than {{count}} seconds'\n },\n xSeconds: {\n one: '1 second',\n other: '{{count}} seconds'\n },\n halfAMinute: 'half a minute',\n lessThanXMinutes: {\n one: 'less than a minute',\n other: 'less than {{count}} minutes'\n },\n xMinutes: {\n one: '1 minute',\n other: '{{count}} minutes'\n },\n aboutXHours: {\n one: 'about 1 hour',\n other: 'about {{count}} hours'\n },\n xHours: {\n one: '1 hour',\n other: '{{count}} hours'\n },\n xDays: {\n one: '1 day',\n other: '{{count}} days'\n },\n aboutXWeeks: {\n one: 'about 1 week',\n other: 'about {{count}} weeks'\n },\n xWeeks: {\n one: '1 week',\n other: '{{count}} weeks'\n },\n aboutXMonths: {\n one: 'about 1 month',\n other: 'about {{count}} months'\n },\n xMonths: {\n one: '1 month',\n other: '{{count}} months'\n },\n aboutXYears: {\n one: 'about 1 year',\n other: 'about {{count}} years'\n },\n xYears: {\n one: '1 year',\n other: '{{count}} years'\n },\n overXYears: {\n one: 'over 1 year',\n other: 'over {{count}} years'\n },\n almostXYears: {\n one: 'almost 1 year',\n other: 'almost {{count}} years'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', count.toString());\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'in ' + result;\n } else {\n return result + ' ago';\n }\n }\n return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: 'EEEE, MMMM do, y',\n long: 'MMMM do, y',\n medium: 'MMM d, y',\n short: 'MM/dd/yyyy'\n};\nvar timeFormats = {\n full: 'h:mm:ss a zzzz',\n long: 'h:mm:ss a z',\n medium: 'h:mm:ss a',\n short: 'h:mm a'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;","var formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n};\nexport default formatRelative;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['B', 'A'],\n abbreviated: ['BC', 'AD'],\n wide: ['Before Christ', 'Anno Domini']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\nvar dayValues = {\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n var number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n var rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + 'st';\n case 2:\n return number + 'nd';\n case 3:\n return number + 'rd';\n }\n }\n return number + 'th';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}\n * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}\n */\nvar locale = {\n code: 'en-US',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1\n }\n};\nexport default locale;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i\n};\nvar parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\nvar parseMonthPatterns = {\n narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\nvar parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;","import defaultLocale from \"../../locale/en-US/index.js\";\nexport default defaultLocale;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pointer\",on:{\"click\":_vm.clickCheck}},[_c('div',{staticClass:\"left mr-2\"},[(!_vm.check)?_c('font-awesome-icon',{staticClass:\"f20 pointer color-primary-dark\",attrs:{\"icon\":['far', 'square']}}):_vm._e(),_vm._v(\" \"),(_vm.check)?_c('font-awesome-icon',{staticClass:\"f20 pointer color-primary-dark\",attrs:{\"icon\":['far', 'check-square']}}):_vm._e()],1),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.label))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckBox.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckBox.vue?vue&type=script&lang=js&\"","
\n \n
\n \n \n
\n
{{label}} \n
\n \n\n\n","import { render, staticRenderFns } from \"./CheckBox.vue?vue&type=template&id=762cc07f&\"\nimport script from \"./CheckBox.vue?vue&type=script&lang=js&\"\nexport * from \"./CheckBox.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"center\"},[_c('div',[_c('video',{staticClass:\"video-js vjs-default-skin\",attrs:{\"id\":`myVideo${_vm.index}`,\"playsinline\":\"\"}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.recordStart),expression:\"recordStart\"}],staticClass:\"timerCount\",class:{ textTimer: _vm.timerPlay < 0 ? true : false }},[_vm._v(\"\\n \"+_vm._s(_vm.timerPlay >= 0 ? _vm.timerPlay : \"GRAVANDO\")+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"control-video\"},[(\n !_vm.isRecord ||\n (!_vm.isRecord && _vm.timerPlay > 3 && _vm.retakers < _vm.question.number_retakers)\n )?_c('button',{staticClass:\"btn mt-5 mb-3 btn-primary btn-lg mr-1\",attrs:{\"disabled\":_vm.recordStart,\"type\":\"button\"},on:{\"click\":_vm.startRecord}},[_vm._v(\"\\n \"+_vm._s(_vm.retakers == 0 ? \"COMEÇAR A GRAVAR\" : \"REGRAVAR VÍDEO\")+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.isRecord)?_c('button',{staticClass:\"btn btn-lg mt-5 mb-3 btn-danger\",on:{\"click\":_vm.stopRecord}},[_vm._v(\"\\n PARAR GRAVAÇÃO\\n \")]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoJSRecordGallery.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoJSRecordGallery.vue?vue&type=script&lang=js&\"","
\n \n
\n
\n
\n {{ timerPlay >= 0 ? timerPlay : \"GRAVANDO\" }}\n
\n
\n
\n 3 && retakers < question.number_retakers)\n \"\n @click=\"startRecord\"\n :disabled=\"recordStart\"\n type=\"button\"\n class=\"btn mt-5 mb-3 btn-primary btn-lg mr-1\"\n >\n {{ retakers == 0 ? \"COMEÇAR A GRAVAR\" : \"REGRAVAR VÍDEO\" }}\n \n\n \n PARAR GRAVAÇÃO\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./VideoJSRecordGallery.vue?vue&type=template&id=0d7ba934&\"\nimport script from \"./VideoJSRecordGallery.vue?vue&type=script&lang=js&\"\nexport * from \"./VideoJSRecordGallery.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeek(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions = getDefaultOptions();\n var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n var date = toDate(dirtyDate);\n var day = date.getUTCDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n date.setUTCDate(date.getUTCDate() - diff);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n}","function _extends() {\n module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _extends.apply(this, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","export default function buildLocalizeFn(args) {\n return function (dirtyIndex, options) {\n var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';\n var valuesArray;\n if (context === 'formatting' && args.formattingValues) {\n var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;\n valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n var _defaultWidth = args.defaultWidth;\n var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;\n valuesArray = args.values[_width] || args.values[_defaultWidth];\n }\n var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;\n // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}","export default function buildMatchFn(args) {\n return function (string) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var width = options.width;\n var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\n var matchResult = string.match(matchPattern);\n if (!matchResult) {\n return null;\n }\n var matchedString = matchResult[0];\n var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\n var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {\n return pattern.test(matchedString);\n }) : findKey(parsePatterns, function (pattern) {\n return pattern.test(matchedString);\n });\n var value;\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback ? options.valueCallback(value) : value;\n var rest = string.slice(matchedString.length);\n return {\n value: value,\n rest: rest\n };\n };\n}\nfunction findKey(object, predicate) {\n for (var key in object) {\n if (object.hasOwnProperty(key) && predicate(object[key])) {\n return key;\n }\n }\n return undefined;\n}\nfunction findIndex(array, predicate) {\n for (var key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}","import addMilliseconds from \"../addMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name subMilliseconds\n * @category Millisecond Helpers\n * @summary Subtract the specified number of milliseconds from the given date.\n *\n * @description\n * Subtract the specified number of milliseconds from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:\n * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:29.250\n */\nexport default function subMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMilliseconds(dirtyDate, -amount);\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function startOfUTCISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n var weekStartsOn = 1;\n var date = toDate(dirtyDate);\n var day = date.getUTCDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n date.setUTCDate(date.getUTCDate() - diff);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row selectVideo\"},[_c('div',{staticClass:\"col-lg-6 pr-4 pt-2 pl-5 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 form-control-feedback\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Search\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchVideos.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"container-video\"},[(_vm.load)?_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}}):_vm._e(),_vm._v(\" \"),(_vm.videos.length == 0 && !_vm.load)?_c('span',[_vm._v(\"NÃO HÁ VÍDEOS\")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row mr-0 ml-0\"},_vm._l((_vm.videos),function(video,index){return _c('div',{key:index,staticClass:\"mt-2 mb-2 col-lg-4 col-xs-12\"},[_c('div',{staticClass:\"pointer\",class:{ selected_video: index == _vm.select ? true : false },on:{\"click\":function($event){return _vm.videoCurrent(index)}}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(video.video),expression:\"video.video\"}]},[_c('img',{class:{\n full: video.thumb != '/images/no_video.png',\n no_video: video.thumb == '/images/no_video.png',\n },attrs:{\"src\":video.thumbnail}})]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!video.video),expression:\"!video.video\"}]},[_c('video-embed',{attrs:{\"src\":video.iframe}})],1),_vm._v(\" \"),_c('p',{staticClass:\"align-left f12 mt-0 mb-0\"},[_vm._v(_vm._s(video.name))]),_vm._v(\" \"),_c('p',{staticClass:\"align-left name_recruiter mt-0 mb-0\"},[_vm._v(\"\\n \"+_vm._s(video.recruiter_name)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"align-left name_recruiter f9 mt-0 mb-0\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(video.created_at,\"D/MM/Y\"))+\"\\n \")])])])}),0)],1),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.chooseVideo}},[_vm._v(\"\\n SELECIONAR VÍDEO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 mr-0 col-xs-12 pr-5 pl-4\",staticStyle:{\"background-color\":\"#414141\"}},[(_vm.videos.length != 0)?_c('div',[_c('h2',{staticClass:\"color-white\"},[_vm._v(_vm._s(_vm.videos[_vm.select].name))]),_vm._v(\" \"),(_vm.videos.length != 0 && _vm.videos[_vm.select].video)?_c('video',{staticClass:\"full\",staticStyle:{\"margin\":\"0px auto\"},attrs:{\"id\":\"video_current\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.videos[_vm.select].video}})]):_vm._e(),_vm._v(\" \"),(_vm.videos.length != 0 && _vm.videos[_vm.select].iframe != '')?_c('video-embed',{attrs:{\"src\":_vm.videos[_vm.select].iframe}}):_vm._e()],1):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectVideo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectVideo.vue?vue&type=script&lang=js&\"","
\n \n
\n
\n \n \n
\n
\n
\n\n
NÃO HÁ VÍDEOS \n
\n
\n
\n
\n
\n
\n
\n \n
\n
{{ video.name }}
\n
\n {{ video.recruiter_name }}\n
\n
\n {{ video.created_at | moment(\"D/MM/Y\") }}\n
\n
\n
\n
\n
\n
\n SELECIONAR VÍDEO\n \n
\n
\n
\n
{{ videos[select].name }} \n \n \n \n \n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./SelectVideo.vue?vue&type=template&id=3dcce74e&\"\nimport script from \"./SelectVideo.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectVideo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import addLeadingZeros from \"../../addLeadingZeros/index.js\";\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\nvar formatters = {\n // Year\n y: function y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n var signedYear = date.getUTCFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n var year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);\n },\n // Month\n M: function M(date, token) {\n var month = date.getUTCMonth();\n return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n // Day of the month\n d: function d(date, token) {\n return addLeadingZeros(date.getUTCDate(), token.length);\n },\n // AM or PM\n a: function a(date, token) {\n var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';\n switch (token) {\n case 'a':\n case 'aa':\n return dayPeriodEnumValue.toUpperCase();\n case 'aaa':\n return dayPeriodEnumValue;\n case 'aaaaa':\n return dayPeriodEnumValue[0];\n case 'aaaa':\n default:\n return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';\n }\n },\n // Hour [1-12]\n h: function h(date, token) {\n return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);\n },\n // Hour [0-23]\n H: function H(date, token) {\n return addLeadingZeros(date.getUTCHours(), token.length);\n },\n // Minute\n m: function m(date, token) {\n return addLeadingZeros(date.getUTCMinutes(), token.length);\n },\n // Second\n s: function s(date, token) {\n return addLeadingZeros(date.getUTCSeconds(), token.length);\n },\n // Fraction of second\n S: function S(date, token) {\n var numberOfDigits = token.length;\n var milliseconds = date.getUTCMilliseconds();\n var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));\n return addLeadingZeros(fractionalSeconds, token.length);\n }\n};\nexport default formatters;","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var timestamp = toDate(dirtyDate).getTime();\n var amount = toInteger(dirtyAmount);\n return new Date(timestamp + amount);\n}","import differenceInMilliseconds from \"../differenceInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getRoundingMethod } from \"../_lib/roundingMethods/index.js\";\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of seconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport default function differenceInSeconds(dateLeft, dateRight, options) {\n requiredArgs(2, arguments);\n var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;\n return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}","export default function assign(target, object) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n for (var property in object) {\n if (Object.prototype.hasOwnProperty.call(object, property)) {\n ;\n target[property] = object[property];\n }\n }\n return target;\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:_vm.label == 'Dashboard' ? 'mt-1 mb-4' : 'my-4'},[_c('inertia-link',{attrs:{\"href\":_vm.url}},[_c('div',{staticClass:\"text-center\"},[_c('img',{staticClass:\"d-block\",staticStyle:{\"margin\":\"auto\"},attrs:{\"src\":_vm.hight ? _vm.img_active : _vm.img}}),_vm._v(\" \"),_c('span',{staticClass:\"d-block f12\",style:({ color: _vm.hight ? '#8f67fe' : '#8a8d93 ' })},[_vm._v(_vm._s(_vm.label))])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuAdminItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuAdminItem.vue?vue&type=script&lang=js&\"","
\n \n
\n \n
\n
{{ label }} \n
\n \n
\n \n\n","import { render, staticRenderFns } from \"./MenuAdminItem.vue?vue&type=template&id=8a808f98&\"\nimport script from \"./MenuAdminItem.vue?vue&type=script&lang=js&\"\nexport * from \"./MenuAdminItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"full_height body-candidate\"},[_vm._m(0),_vm._v(\" \"),_c('div',[_c('div',{staticClass:\"col-lg-12 col-xs-12\",class:{\n 'p-0': _vm.mobile ? true : false,\n }},[_c('div',{staticClass:\"AdminCandidate-background\"},[_vm._t(\"default\")],2)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-5 bg-white border-bottom box-shadow\"},[_c('img',{staticStyle:{\"width\":\"100px\"},attrs:{\"src\":\"/images/Jovool_logo.png\"}}),_vm._v(\" \"),_c('a',{staticClass:\"btn hide btn-outline-primary\",attrs:{\"href\":\"#\"}},[_vm._v(\"Sign up\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdminCandidate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdminCandidate.vue?vue&type=script&lang=js&\"","
\n \n \n\n\n","import { render, staticRenderFns } from \"./AdminCandidate.vue?vue&type=template&id=39eba4e9&\"\nimport script from \"./AdminCandidate.vue?vue&type=script&lang=js&\"\nexport * from \"./AdminCandidate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"center\"},[_c('div',[(_vm.error)?_c('div',{staticClass:\"center\",staticStyle:{\"color\":\"#000\"}},[_vm._m(0),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('p',[_vm._v(\"\\n SE VOCÊ CLICOU PARA NÃO PERMITIR A CAMERA QUANDO A PAGINA INICIOU,\\n PODE RECARREGAR ESSA PAGINA PARA ACEITAR NOVAMENTE, OU ENCONTRAR O\\n ICONE DE CAMERA NA PARTE SUPERIOR DO NAVEGADOR E ACEITAR A PERMISSÃO\\n \")])]):_vm._e(),_vm._v(\" \"),_c('video',{staticClass:\"video-js vjs-default-skin\",attrs:{\"id\":`candidateQuestion${_vm.index}`,\"playsinline\":\"\"}}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.recordStart),expression:\"recordStart\"}],staticClass:\"timerCount\",class:{ textTimer: _vm.timerPlay < 0 ? true : false }},[_vm._v(\"\\n \"+_vm._s(_vm.timerPlay >= 0 ? _vm.timerPlay : \"Gravando\")+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"control-video\"},[(\n (!_vm.isRecord && _vm.recruiter) ||\n (!_vm.isRecord && _vm.timerPlay > 3 && _vm.retakers < _vm.question.number_retakers)\n )?_c('button',{staticClass:\"btn mt-5 btn-success btn-lg mr-1\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.startRecord}},[_vm._v(\"\\n \"+_vm._s(_vm.retakers == 0 ? \"COMEÇAR A GRAVAR\" : \"REGRAVAR RESPOSTA\")+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.retakers != 0 && !_vm.isRecord && _vm.timerPlay > 3 && !_vm.recruiter)?_c('button',{staticClass:\"btn btn-lg mr-1 mt-5 btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.nextQuestion}},[_vm._v(\"\\n ENVIAR VÍDEO\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.isRecord)?_c('button',{staticClass:\"btn btn-lg mt-5 btn-danger\",on:{\"click\":_vm.stopRecord}},[_vm._v(\"\\n PARAR GRAVAÇÃO\\n \")]):_vm._e()]),_vm._v(\" \"),(!_vm.recruiter)?_c('span',[(\n _vm.retakers != 0 &&\n !_vm.isRecord &&\n _vm.retakers < _vm.question.number_retakers &&\n _vm.timerPlay > 3\n )?_c('span',{staticClass:\"color-grey\"},[_vm._v(\"VOCÊ TEM MAIS \"+_vm._s(_vm.question.number_retakers - _vm.retakers)+\"\\n \"+_vm._s(_vm.question.number_retakers - _vm.retakers == 1 ? \"TENTATIVA\" : \"TENTATIVAS\"))]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.question.choices.canBeEmpty)?_c('div',[_c('button',{staticClass:\"btn btn-primary full mt-2\",on:{\"click\":function($event){return _vm.nextQuestion(false)}}},[_vm._v(\"\\n Pular\\n \")])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_c('b',{staticStyle:{\"color\":\"#ff0000\"}},[_vm._v(\"ERRO AO TENTAR ABRIR A CÂMERA \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"f16\"},[_vm._v(\"\\n SEU DISPOSITIVO NÃO PERMITIU ABRIR A CAMERA, CONFIRA SE ELA ESTÁ\\n INSTALADA, VOCÊ TAMBEM PODE FAZER SUA INSCRIÇÃO COM UM COMPUTADOR E\\n UMA WEBCAM, OU UM CELULAR COM CAMERA, RECOMENDAMOS O NAVEGADOR\\n \"),_c('b',[_vm._v(\"Chrome\")]),_vm._v(\"\\n VOCÊ PODE BAIXA-LO E TENTAR NOVAMENTE\\n \")])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoJSRecord.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoJSRecord.vue?vue&type=script&lang=js&\"","
\n \n
\n
\n
ERRO AO TENTAR ABRIR A CÂMERA
\n
\n SEU DISPOSITIVO NÃO PERMITIU ABRIR A CAMERA, CONFIRA SE ELA ESTÁ\n INSTALADA, VOCÊ TAMBEM PODE FAZER SUA INSCRIÇÃO COM UM COMPUTADOR E\n UMA WEBCAM, OU UM CELULAR COM CAMERA, RECOMENDAMOS O NAVEGADOR\n Chrome \n VOCÊ PODE BAIXA-LO E TENTAR NOVAMENTE\n
\n
\n SE VOCÊ CLICOU PARA NÃO PERMITIR A CAMERA QUANDO A PAGINA INICIOU,\n PODE RECARREGAR ESSA PAGINA PARA ACEITAR NOVAMENTE, OU ENCONTRAR O\n ICONE DE CAMERA NA PARTE SUPERIOR DO NAVEGADOR E ACEITAR A PERMISSÃO\n
\n
\n
\n
\n {{ timerPlay >= 0 ? timerPlay : \"Gravando\" }}\n
\n
\n
\n 3 && retakers < question.number_retakers)\n \"\n @click=\"startRecord\"\n type=\"button\"\n class=\"btn mt-5 btn-success btn-lg mr-1\"\n >\n {{ retakers == 0 ? \"COMEÇAR A GRAVAR\" : \"REGRAVAR RESPOSTA\" }}\n \n\n 3 && !recruiter\"\n type=\"button\"\n class=\"btn btn-lg mr-1 mt-5 btn-primary\"\n @click=\"nextQuestion\"\n >\n ENVIAR VÍDEO\n \n\n \n PARAR GRAVAÇÃO\n \n
\n
\n 3\n \"\n class=\"color-grey\"\n >VOCÊ TEM MAIS {{ question.number_retakers - retakers }}\n {{\n question.number_retakers - retakers == 1 ? \"TENTATIVA\" : \"TENTATIVAS\"\n }} \n \n
\n \n Pular\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./VideoJSRecord.vue?vue&type=template&id=2d4eb23b&\"\nimport script from \"./VideoJSRecord.vue?vue&type=script&lang=js&\"\nexport * from \"./VideoJSRecord.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var protectedDayOfYearTokens = ['D', 'DD'];\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\nexport function isProtectedDayOfYearToken(token) {\n return protectedDayOfYearTokens.indexOf(token) !== -1;\n}\nexport function isProtectedWeekYearToken(token) {\n return protectedWeekYearTokens.indexOf(token) !== -1;\n}\nexport function throwProtectedError(token, format, input) {\n if (token === 'YYYY') {\n throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'YY') {\n throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'D') {\n throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'DD') {\n throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"icon_calendar\",class:{ calendar_checked: _vm.checked },on:{\"click\":_vm.open}},[_c('font-awesome-icon',{staticClass:\"color-primary\",attrs:{\"icon\":['far', 'calendar-check']}})],1),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"slide\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.checked),expression:\"checked\"}],staticClass:\"container_calendar p-0\",staticStyle:{\"overflow-y\":\"auto\",\"overflow-x\":\"hidden\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.list_show),expression:\"list_show\"}],staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('p',{staticClass:\"f20 mt-2 color-grey-primary\"},[_vm._v(\"\\n Agenda\\n \"),_c('inertia-link',{attrs:{\"href\":\"/recruiters/calendars/list\"}},[_c('font-awesome-icon',{staticClass:\"pointer right\",attrs:{\"icon\":['fas', 'external-link-alt']}})],1)],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},[_c('div',{staticClass:\"scroll_calendar\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.calendars.length > 0),expression:\"calendars.length > 0\"}],staticClass:\"pl-3 pr-3\"},_vm._l((_vm.calendars),function(event,index){return _c('div',{key:index},[_c('div',{staticClass:\"header_day\",class:{ hide: event.total_day == 0 }},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(event.day,\"ll\"))+\"\\n \"),_c('span',{staticClass:\"f12 right mr-2\"},[_vm._v(\"\\n total:\\n \"),_c('b',[_vm._v(_vm._s(event.total_day))])])]),_vm._v(\" \"),_vm._l((event.events),function(day,key){return _c('div',{key:key},[_c('div',{staticClass:\"pl-4 pr-4 calendar_unique\",class:{ opacity_4: day.status == 0 }},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"pl-0 pr-0 col-xs-2 col-lg-2\",class:{\n hours_true: day.status == 1,\n hours_false: day.status == 0,\n }},[_c('div',[_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(day.start_date,\"LT\")))])]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(day.end_date,\"LT\")))])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-10 col-lg-10\"},[_c('p',{staticClass:\"pointer text-truncate mb-0\",staticStyle:{\"max-width\":\"220px\"},on:{\"click\":function($event){return _vm.setEventCalendar(day)}}},[_vm._v(\"\\n \"+_vm._s(day.title)+\"\\n \")]),_vm._v(\" \"),(\n _vm.$moment(day.start_date).subtract(1, 'hours') <=\n _vm.$moment() &&\n _vm.$moment(day.end_date).add(1, 'hours') >= _vm.$moment()\n )?_c('a',{attrs:{\"href\":day.room_link,\"target\":\"_blank\"}},[_c('font-awesome-icon',{staticClass:\"pointer right f15 color-primary\",staticStyle:{\"margin-top\":\"-10px\"},attrs:{\"icon\":\"video\"}})],1):_vm._e(),_vm._v(\" \"),_c('p',{staticClass:\"text-truncate dark_grey mb-0\",staticStyle:{\"max-width\":\"250px\"}},[_vm._v(\"\\n \"+_vm._s(day.description)+\"\\n \")])])])])])})],2)}),0),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.calendars.length = 0)),expression:\"(calendars.length = 0)\"}],staticClass:\"pl-4 center pr-4\"},[_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}})],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.no_calendar),expression:\"no_calendar\"}]},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('p',[_vm._v(\"NÃO HÁ AGENDAMENTOS FUTUROS\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"pl-4 pr-4\"},[_c('button',{staticClass:\"btn full mb-2 btn-degrade normal-degrade\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.newCalendar}},[_vm._v(\"\\n NOVO AGENDAMENTO\\n \")])])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.list_show),expression:\"!list_show\"}],staticClass:\"row p-0 m-0\"},[_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('p',{staticClass:\"mt-3 mb-0 pointer\",on:{\"click\":_vm.back}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\" \"),_c('span',[_vm._v(\"VOLTAR\")])],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"scroll_calendar_full row\"},[_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('inputform',{staticClass:\"label-bold\",attrs:{\"type\":\"text\",\"label\":\"\",\"placeholder\":\"Título da agenda\",\"field\":_vm.$v.calendar.title},model:{value:(_vm.calendar.title),callback:function ($$v) {_vm.$set(_vm.calendar, \"title\", $$v)},expression:\"calendar.title\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},_vm._l((_vm.emails),function(item,index){return _c('div',{key:index,staticClass:\"pl-4 pr-4 mb-2\"},[_c('span',{staticClass:\"email_select_calendar f12\"},[_vm._v(\"\\n \"+_vm._s(item)+\"\\n \"),_c('font-awesome-icon',{staticClass:\"ml-2 mr-1 pointer\",attrs:{\"icon\":\"times\"},on:{\"click\":function($event){return _vm.removeEmail(index)}}})],1)])}),0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('vue-suggestion',{attrs:{\"items\":[],\"setLabel\":_vm.setLabel,\"itemTemplate\":_vm.itemTemplate,\"placeholder\":\"Emails participantes\"},on:{\"changed\":_vm.inputChange,\"selected\":_vm.itemSelected,\"enter\":function($event){return _vm.addEmail($event)}},model:{value:(_vm.person_select),callback:function ($$v) {_vm.person_select=$$v},expression:\"person_select\"}}),_vm._v(\" \"),_c('span',{staticClass:\"f12 ml-3\"},[_vm._v(\"PRESSIONE ENTER PARA ADICIONAR\")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-0 col-xs-12\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('Datepicker',{staticClass:\"mt-3 p-0\",attrs:{\"input-class\":\"form-control\",\"format\":_vm.customFormatter,\"placeholder\":\"Data do evento\",\"language\":_vm.ptBR},model:{value:(_vm.date_current),callback:function ($$v) {_vm.date_current=$$v},expression:\"date_current\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 p-0 col-xs-12 pl-0 ml-0\"},[_c('div',{staticClass:\"pl-4 mt-3 pr-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.start_hour),expression:\"start_hour\"},{name:\"mask\",rawName:\"v-mask\",value:(['##:##']),expression:\"['##:##']\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.start_hour)},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\"))return null;return _vm.autoCompleteStartHour()},\"input\":function($event){if($event.target.composing)return;_vm.start_hour=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 pt-4\",staticStyle:{\"width\":\"30px\"}},[_c('span',{},[_vm._v(\"ATÉ\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 p-0 col-xs-12 pr-0 mr-0\"},[_c('div',{staticClass:\"pl-0 mt-3 pr-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.end_hour),expression:\"end_hour\"},{name:\"mask\",rawName:\"v-mask\",value:(['##:##']),expression:\"['##:##']\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.end_hour)},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\"))return null;return _vm.autoCompleteEndHour()},\"input\":function($event){if($event.target.composing)return;_vm.end_hour=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 pl-4 pr-4 col-xs-12\"},[_c('CheckBox',{staticClass:\"mt-3\",attrs:{\"id\":\"1\",\"checked\":_vm.use_room,\"label\":\"CRIAR SALA DE REUNIÃO NA JOVOOL\",\"index\":\"0\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 p-0\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('textareaform',{staticClass:\"mt-3\",attrs:{\"label\":\"DESCRIÇÃO\",\"rows\":\"4\",\"field\":_vm.$v.calendar.description},model:{value:(_vm.calendar.description),callback:function ($$v) {_vm.$set(_vm.calendar, \"description\", $$v)},expression:\"calendar.description\"}})],1)]),_vm._v(\" \"),(_vm.calendar.id != 0)?_c('div',{staticClass:\"col-lg-12 col-xs-12 p-0\"},[_c('div',{staticClass:\"pl-4 pr-4\"},[_c('label',[_vm._v(\"Status do evento\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.calendar.status),expression:\"calendar.status\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.calendar, \"status\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"selected\":\"\"},domProps:{\"value\":1}},[_vm._v(\"Ativo\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":0}},[_vm._v(\"Cancelado\")])])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-0\"},[_c('div',{staticClass:\"pl-4 mt-3 mb-2 pr-4\"},[_c('a',{staticClass:\"mt-2 mb-3\",attrs:{\"href\":_vm.link}},[_vm._v(_vm._s(_vm.link))]),_vm._v(\" \"),_c('button',{staticClass:\"btn full mt-2 mb-2 normal-degrade btn-degrade\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.save}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"plus\"}}),_vm._v(\"SALVAR EVENTO\\n \")],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}]},[_c('div',{staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])])])])])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarButton.vue?vue&type=script&lang=js&\"","
\n \n
\n \n
\n
\n \n
\n
\n
\n
\n Agenda\n \n \n \n
\n
\n
\n
\n
\n\n
\n \n NOVO AGENDAMENTO\n \n
\n
\n
\n
\n
\n \n
\n \n\n\n","import { render, staticRenderFns } from \"./CalendarButton.vue?vue&type=template&id=f4360ca8&\"\nimport script from \"./CalendarButton.vue?vue&type=script&lang=js&\"\nexport * from \"./CalendarButton.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.finished == false)?_c('div',[_c('div',{staticClass:\"pb-2 mb-3\",staticStyle:{\"background-color\":\"#ccc\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 pt-3 col-12 col-sm-12\"},[_c('KProgress',{attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"col-lg-12 col-lg-12\"},[(_vm.amount == 0)?_c('h1',{staticClass:\"mb-3\"},[_vm._v(\"\\n Temos mais uma etapa para você!\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.amount == 0)?_c('p',[_vm._v(\"\\n Queremos te conhecer melhor e por isso utilizamos uma ferramenta de\\n assessment comportamental baseada na metodologia BigFive. O teste de\\n assessment serve para mapear características do seu perfil.\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.amount == 0)?_c('p',[_vm._v(\"\\n A partir de agora você deverá responder uma sequência de perguntas\\n sempre escolhendo a resposta que mais se adequa ao seu perfil. É\\n rapido, você vai precisar de menos de 10 minutos.\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.amount == 0)?_c('p',[_vm._v(\"\\n Ao final do teste você terá acesso ao seu resultado e poderá fazer o\\n download do relatório.\\n \")]):_vm._e(),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('br')]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[(_vm.questions.length == 0)?_c('div',[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.answers.length < _vm.total_item_test)?_c('div',_vm._l((_vm.questions.slice(\n _vm.amount,\n _vm.amount + _vm.items_per_page\n )),function(question){return _c('div',{key:question.id},[_c('h3',[_vm._v(_vm._s(question.text))]),_vm._v(\" \"),_vm._l((question.choices),function(choice,i){return _c('div',{key:i},[_c('label',{on:{\"click\":function($event){return _vm.set_answer(question.id, choice.score)}}},[_c('input',{attrs:{\"type\":\"radio\",\"name\":question.id},domProps:{\"value\":choice.score}}),_vm._v(\"\\n \"+_vm._s(choice.text)+\"\\n \")])])}),_vm._v(\" \"),_c('hr')],2)}),0):_vm._e(),_vm._v(\" \"),(_vm.answers.length < _vm.total_item_test)?_c('button',{staticClass:\"mb-3 btn btn-degrade save_bigfive right normal-degrade\",attrs:{\"disabled\":_vm.ableBtnSave()},on:{\"click\":_vm.next}},[_vm._v(\"\\n Salvar\\n \"),_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-right\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.answers.length == _vm.total_item_test)?_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.save}},[_vm._v(\"\\n Calcular resultado do teste\\n \")]):_vm._e()])])]):_vm._e(),_vm._v(\" \"),(_vm.finished)?_c('div',[_c('BigfiveShow',{attrs:{\"account_uid\":_vm.account_uid,\"candidate_uid\":_vm.uid ? _vm.uid : _vm.candidate_uid,\"no_next\":_vm.no_next}})],1):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])\n}]\n\nexport { render, staticRenderFns }","
\n \n
\n
\n
\n
\n
\n Temos mais uma etapa para você!\n \n
\n Queremos te conhecer melhor e por isso utilizamos uma ferramenta de\n assessment comportamental baseada na metodologia BigFive. O teste de\n assessment serve para mapear características do seu perfil.\n
\n\n
\n A partir de agora você deverá responder uma sequência de perguntas\n sempre escolhendo a resposta que mais se adequa ao seu perfil. É\n rapido, você vai precisar de menos de 10 minutos.\n
\n\n
\n Ao final do teste você terá acesso ao seu resultado e poderá fazer o\n download do relatório.\n
\n
\n
\n
\n
\n
\n
\n
\n
{{ question.text }} \n
\n \n \n {{ choice.text }}\n \n
\n
\n
\n
\n
\n Salvar\n \n \n\n
\n Calcular resultado do teste\n \n
\n
\n
\n
\n \n
\n
\n \n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Test.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Test.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Test.vue?vue&type=template&id=3c32dc26&\"\nimport script from \"./Test.vue?vue&type=script&lang=js&\"\nexport * from \"./Test.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\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); }\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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n/**\n * @license\n * Video.js 8.10.0
\n * Copyright Brightcove, Inc.
\n * Available under Apache License Version 2.0\n *
\n *\n * Includes vtt.js \n * Available under Apache License Version 2.0\n * \n */\n\nimport window$1 from 'global/window';\nimport document from 'global/document';\nimport keycode from 'keycode';\nimport safeParseTuple from 'safe-json-parse/tuple';\nimport XHR from '@videojs/xhr';\nimport vtt from 'videojs-vtt.js';\nimport _extends from '@babel/runtime/helpers/extends';\nimport _resolveUrl from '@videojs/vhs-utils/es/resolve-url.js';\nimport { Parser } from 'm3u8-parser';\nimport { DEFAULT_VIDEO_CODEC, DEFAULT_AUDIO_CODEC, parseCodecs, muxerSupportsCodec, browserSupportsCodec, translateLegacyCodec, codecsFromDefault, isAudioCodec, getMimeForCodec } from '@videojs/vhs-utils/es/codecs.js';\nimport { simpleTypeFromSourceType } from '@videojs/vhs-utils/es/media-types.js';\nimport { isArrayBufferView, concatTypedArrays, stringToBytes, toUint8 } from '@videojs/vhs-utils/es/byte-helpers';\nimport { generateSidxKey, parseUTCTiming, parse, addSidxSegmentsToPlaylist } from 'mpd-parser';\nimport parseSidx from 'mux.js/lib/tools/parse-sidx';\nimport { getId3Offset } from '@videojs/vhs-utils/es/id3-helpers';\nimport { detectContainerForBytes, isLikelyFmp4MediaSegment } from '@videojs/vhs-utils/es/containers';\nimport { ONE_SECOND_IN_TS } from 'mux.js/lib/utils/clock';\nvar version$6 = \"8.10.0\";\n\n/**\n * An Object that contains lifecycle hooks as keys which point to an array\n * of functions that are run when a lifecycle is triggered\n *\n * @private\n */\nconst hooks_ = {};\n\n/**\n * Get a list of hooks for a specific lifecycle\n *\n * @param {string} type\n * the lifecycle to get hooks from\n *\n * @param {Function|Function[]} [fn]\n * Optionally add a hook (or hooks) to the lifecycle that your are getting.\n *\n * @return {Array}\n * an array of hooks, or an empty array if there are none.\n */\nconst hooks = function (type, fn) {\n hooks_[type] = hooks_[type] || [];\n if (fn) {\n hooks_[type] = hooks_[type].concat(fn);\n }\n return hooks_[type];\n};\n\n/**\n * Add a function hook to a specific videojs lifecycle.\n *\n * @param {string} type\n * the lifecycle to hook the function to.\n *\n * @param {Function|Function[]}\n * The function or array of functions to attach.\n */\nconst hook = function (type, fn) {\n hooks(type, fn);\n};\n\n/**\n * Remove a hook from a specific videojs lifecycle.\n *\n * @param {string} type\n * the lifecycle that the function hooked to\n *\n * @param {Function} fn\n * The hooked function to remove\n *\n * @return {boolean}\n * The function that was removed or undef\n */\nconst removeHook = function (type, fn) {\n const index = hooks(type).indexOf(fn);\n if (index <= -1) {\n return false;\n }\n hooks_[type] = hooks_[type].slice();\n hooks_[type].splice(index, 1);\n return true;\n};\n\n/**\n * Add a function hook that will only run once to a specific videojs lifecycle.\n *\n * @param {string} type\n * the lifecycle to hook the function to.\n *\n * @param {Function|Function[]}\n * The function or array of functions to attach.\n */\nconst hookOnce = function (type, fn) {\n hooks(type, [].concat(fn).map(original => {\n const wrapper = function () {\n removeHook(type, wrapper);\n return original(...arguments);\n };\n return wrapper;\n }));\n};\n\n/**\n * @file fullscreen-api.js\n * @module fullscreen-api\n */\n\n/**\n * Store the browser-specific methods for the fullscreen API.\n *\n * @type {Object}\n * @see [Specification]{@link https://fullscreen.spec.whatwg.org}\n * @see [Map Approach From Screenfull.js]{@link https://github.com/sindresorhus/screenfull.js}\n */\nconst FullscreenApi = {\n prefixed: true\n};\n\n// browser API methods\nconst apiMap = [['requestFullscreen', 'exitFullscreen', 'fullscreenElement', 'fullscreenEnabled', 'fullscreenchange', 'fullscreenerror', 'fullscreen'],\n// WebKit\n['webkitRequestFullscreen', 'webkitExitFullscreen', 'webkitFullscreenElement', 'webkitFullscreenEnabled', 'webkitfullscreenchange', 'webkitfullscreenerror', '-webkit-full-screen']];\nconst specApi = apiMap[0];\nlet browserApi;\n\n// determine the supported set of functions\nfor (let i = 0; i < apiMap.length; i++) {\n // check for exitFullscreen function\n if (apiMap[i][1] in document) {\n browserApi = apiMap[i];\n break;\n }\n}\n\n// map the browser API names to the spec API names\nif (browserApi) {\n for (let i = 0; i < browserApi.length; i++) {\n FullscreenApi[specApi[i]] = browserApi[i];\n }\n FullscreenApi.prefixed = browserApi[0] !== specApi[0];\n}\n\n/**\n * @file create-logger.js\n * @module create-logger\n */\n\n// This is the private tracking variable for the logging history.\nlet history = [];\n\n/**\n * Log messages to the console and history based on the type of message\n *\n * @private\n * @param {string} name\n * The name of the console method to use.\n *\n * @param {Object} log\n * The arguments to be passed to the matching console method.\n *\n * @param {string} [styles]\n * styles for name\n */\nconst LogByTypeFactory = (name, log, styles) => (type, level, args) => {\n const lvl = log.levels[level];\n const lvlRegExp = new RegExp(`^(${lvl})$`);\n let resultName = name;\n if (type !== 'log') {\n // Add the type to the front of the message when it's not \"log\".\n args.unshift(type.toUpperCase() + ':');\n }\n if (styles) {\n resultName = `%c${name}`;\n args.unshift(styles);\n }\n\n // Add console prefix after adding to history.\n args.unshift(resultName + ':');\n\n // Add a clone of the args at this point to history.\n if (history) {\n history.push([].concat(args));\n\n // only store 1000 history entries\n const splice = history.length - 1000;\n history.splice(0, splice > 0 ? splice : 0);\n }\n\n // If there's no console then don't try to output messages, but they will\n // still be stored in history.\n if (!window$1.console) {\n return;\n }\n\n // Was setting these once outside of this function, but containing them\n // in the function makes it easier to test cases where console doesn't exist\n // when the module is executed.\n let fn = window$1.console[type];\n if (!fn && type === 'debug') {\n // Certain browsers don't have support for console.debug. For those, we\n // should default to the closest comparable log.\n fn = window$1.console.info || window$1.console.log;\n }\n\n // Bail out if there's no console or if this type is not allowed by the\n // current logging level.\n if (!fn || !lvl || !lvlRegExp.test(type)) {\n return;\n }\n fn[Array.isArray(args) ? 'apply' : 'call'](window$1.console, args);\n};\nfunction createLogger$1(name) {\n let delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ':';\n let styles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n // This is the private tracking variable for logging level.\n let level = 'info';\n\n // the curried logByType bound to the specific log and history\n let logByType;\n\n /**\n * Logs plain debug messages. Similar to `console.log`.\n *\n * Due to [limitations](https://github.com/jsdoc3/jsdoc/issues/955#issuecomment-313829149)\n * of our JSDoc template, we cannot properly document this as both a function\n * and a namespace, so its function signature is documented here.\n *\n * #### Arguments\n * ##### *args\n * *[]\n *\n * Any combination of values that could be passed to `console.log()`.\n *\n * #### Return Value\n *\n * `undefined`\n *\n * @namespace\n * @param {...*} args\n * One or more messages or objects that should be logged.\n */\n const log = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n logByType('log', level, args);\n };\n\n // This is the logByType helper that the logging methods below use\n logByType = LogByTypeFactory(name, log, styles);\n\n /**\n * Create a new subLogger which chains the old name to the new name.\n *\n * For example, doing `videojs.log.createLogger('player')` and then using that logger will log the following:\n * ```js\n * mylogger('foo');\n * // > VIDEOJS: player: foo\n * ```\n *\n * @param {string} subName\n * The name to add call the new logger\n * @param {string} [subDelimiter]\n * Optional delimiter\n * @param {string} [subStyles]\n * Optional styles\n * @return {Object}\n */\n log.createLogger = (subName, subDelimiter, subStyles) => {\n const resultDelimiter = subDelimiter !== undefined ? subDelimiter : delimiter;\n const resultStyles = subStyles !== undefined ? subStyles : styles;\n const resultName = `${name} ${resultDelimiter} ${subName}`;\n return createLogger$1(resultName, resultDelimiter, resultStyles);\n };\n\n /**\n * Create a new logger.\n *\n * @param {string} newName\n * The name for the new logger\n * @param {string} [newDelimiter]\n * Optional delimiter\n * @param {string} [newStyles]\n * Optional styles\n * @return {Object}\n */\n log.createNewLogger = (newName, newDelimiter, newStyles) => {\n return createLogger$1(newName, newDelimiter, newStyles);\n };\n\n /**\n * Enumeration of available logging levels, where the keys are the level names\n * and the values are `|`-separated strings containing logging methods allowed\n * in that logging level. These strings are used to create a regular expression\n * matching the function name being called.\n *\n * Levels provided by Video.js are:\n *\n * - `off`: Matches no calls. Any value that can be cast to `false` will have\n * this effect. The most restrictive.\n * - `all`: Matches only Video.js-provided functions (`debug`, `log`,\n * `log.warn`, and `log.error`).\n * - `debug`: Matches `log.debug`, `log`, `log.warn`, and `log.error` calls.\n * - `info` (default): Matches `log`, `log.warn`, and `log.error` calls.\n * - `warn`: Matches `log.warn` and `log.error` calls.\n * - `error`: Matches only `log.error` calls.\n *\n * @type {Object}\n */\n log.levels = {\n all: 'debug|log|warn|error',\n off: '',\n debug: 'debug|log|warn|error',\n info: 'log|warn|error',\n warn: 'warn|error',\n error: 'error',\n DEFAULT: level\n };\n\n /**\n * Get or set the current logging level.\n *\n * If a string matching a key from {@link module:log.levels} is provided, acts\n * as a setter.\n *\n * @param {'all'|'debug'|'info'|'warn'|'error'|'off'} [lvl]\n * Pass a valid level to set a new logging level.\n *\n * @return {string}\n * The current logging level.\n */\n log.level = lvl => {\n if (typeof lvl === 'string') {\n if (!log.levels.hasOwnProperty(lvl)) {\n throw new Error(`\"${lvl}\" in not a valid log level`);\n }\n level = lvl;\n }\n return level;\n };\n\n /**\n * Returns an array containing everything that has been logged to the history.\n *\n * This array is a shallow clone of the internal history record. However, its\n * contents are _not_ cloned; so, mutating objects inside this array will\n * mutate them in history.\n *\n * @return {Array}\n */\n log.history = () => history ? [].concat(history) : [];\n\n /**\n * Allows you to filter the history by the given logger name\n *\n * @param {string} fname\n * The name to filter by\n *\n * @return {Array}\n * The filtered list to return\n */\n log.history.filter = fname => {\n return (history || []).filter(historyItem => {\n // if the first item in each historyItem includes `fname`, then it's a match\n return new RegExp(`.*${fname}.*`).test(historyItem[0]);\n });\n };\n\n /**\n * Clears the internal history tracking, but does not prevent further history\n * tracking.\n */\n log.history.clear = () => {\n if (history) {\n history.length = 0;\n }\n };\n\n /**\n * Disable history tracking if it is currently enabled.\n */\n log.history.disable = () => {\n if (history !== null) {\n history.length = 0;\n history = null;\n }\n };\n\n /**\n * Enable history tracking if it is currently disabled.\n */\n log.history.enable = () => {\n if (history === null) {\n history = [];\n }\n };\n\n /**\n * Logs error messages. Similar to `console.error`.\n *\n * @param {...*} args\n * One or more messages or objects that should be logged as an error\n */\n log.error = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return logByType('error', level, args);\n };\n\n /**\n * Logs warning messages. Similar to `console.warn`.\n *\n * @param {...*} args\n * One or more messages or objects that should be logged as a warning.\n */\n log.warn = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n return logByType('warn', level, args);\n };\n\n /**\n * Logs debug messages. Similar to `console.debug`, but may also act as a comparable\n * log if `console.debug` is not available\n *\n * @param {...*} args\n * One or more messages or objects that should be logged as debug.\n */\n log.debug = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n return logByType('debug', level, args);\n };\n return log;\n}\n\n/**\n * @file log.js\n * @module log\n */\nconst log$1 = createLogger$1('VIDEOJS');\nconst createLogger = log$1.createLogger;\n\n/**\n * @file obj.js\n * @module obj\n */\n\n/**\n * @callback obj:EachCallback\n *\n * @param {*} value\n * The current key for the object that is being iterated over.\n *\n * @param {string} key\n * The current key-value for object that is being iterated over\n */\n\n/**\n * @callback obj:ReduceCallback\n *\n * @param {*} accum\n * The value that is accumulating over the reduce loop.\n *\n * @param {*} value\n * The current key for the object that is being iterated over.\n *\n * @param {string} key\n * The current key-value for object that is being iterated over\n *\n * @return {*}\n * The new accumulated value.\n */\nconst toString = Object.prototype.toString;\n\n/**\n * Get the keys of an Object\n *\n * @param {Object}\n * The Object to get the keys from\n *\n * @return {string[]}\n * An array of the keys from the object. Returns an empty array if the\n * object passed in was invalid or had no keys.\n *\n * @private\n */\nconst keys = function (object) {\n return isObject(object) ? Object.keys(object) : [];\n};\n\n/**\n * Array-like iteration for objects.\n *\n * @param {Object} object\n * The object to iterate over\n *\n * @param {obj:EachCallback} fn\n * The callback function which is called for each key in the object.\n */\nfunction each(object, fn) {\n keys(object).forEach(key => fn(object[key], key));\n}\n\n/**\n * Array-like reduce for objects.\n *\n * @param {Object} object\n * The Object that you want to reduce.\n *\n * @param {Function} fn\n * A callback function which is called for each key in the object. It\n * receives the accumulated value and the per-iteration value and key\n * as arguments.\n *\n * @param {*} [initial = 0]\n * Starting value\n *\n * @return {*}\n * The final accumulated value.\n */\nfunction reduce(object, fn) {\n let initial = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n return keys(object).reduce((accum, key) => fn(accum, object[key], key), initial);\n}\n\n/**\n * Returns whether a value is an object of any kind - including DOM nodes,\n * arrays, regular expressions, etc. Not functions, though.\n *\n * This avoids the gotcha where using `typeof` on a `null` value\n * results in `'object'`.\n *\n * @param {Object} value\n * @return {boolean}\n */\nfunction isObject(value) {\n return !!value && typeof value === 'object';\n}\n\n/**\n * Returns whether an object appears to be a \"plain\" object - that is, a\n * direct instance of `Object`.\n *\n * @param {Object} value\n * @return {boolean}\n */\nfunction isPlain(value) {\n return isObject(value) && toString.call(value) === '[object Object]' && value.constructor === Object;\n}\n\n/**\n * Merge two objects recursively.\n *\n * Performs a deep merge like\n * {@link https://lodash.com/docs/4.17.10#merge|lodash.merge}, but only merges\n * plain objects (not arrays, elements, or anything else).\n *\n * Non-plain object values will be copied directly from the right-most\n * argument.\n *\n * @param {Object[]} sources\n * One or more objects to merge into a new object.\n *\n * @return {Object}\n * A new object that is the merged result of all sources.\n */\nfunction merge$1() {\n const result = {};\n for (var _len5 = arguments.length, sources = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n sources[_key5] = arguments[_key5];\n }\n sources.forEach(source => {\n if (!source) {\n return;\n }\n each(source, (value, key) => {\n if (!isPlain(value)) {\n result[key] = value;\n return;\n }\n if (!isPlain(result[key])) {\n result[key] = {};\n }\n result[key] = merge$1(result[key], value);\n });\n });\n return result;\n}\n\n/**\n * Returns an array of values for a given object\n *\n * @param {Object} source - target object\n * @return {Array} - object values\n */\nfunction values() {\n let source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n const result = [];\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n const value = source[key];\n result.push(value);\n }\n }\n return result;\n}\n\n/**\n * Object.defineProperty but \"lazy\", which means that the value is only set after\n * it is retrieved the first time, rather than being set right away.\n *\n * @param {Object} obj the object to set the property on\n * @param {string} key the key for the property to set\n * @param {Function} getValue the function used to get the value when it is needed.\n * @param {boolean} setter whether a setter should be allowed or not\n */\nfunction defineLazyProperty(obj, key, getValue) {\n let setter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n const set = value => Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n writable: true\n });\n const options = {\n configurable: true,\n enumerable: true,\n get() {\n const value = getValue();\n set(value);\n return value;\n }\n };\n if (setter) {\n options.set = set;\n }\n return Object.defineProperty(obj, key, options);\n}\nvar Obj = /*#__PURE__*/Object.freeze({\n __proto__: null,\n each: each,\n reduce: reduce,\n isObject: isObject,\n isPlain: isPlain,\n merge: merge$1,\n values: values,\n defineLazyProperty: defineLazyProperty\n});\n\n/**\n * @file browser.js\n * @module browser\n */\n\n/**\n * Whether or not this device is an iPod.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_IPOD = false;\n\n/**\n * The detected iOS version - or `null`.\n *\n * @static\n * @type {string|null}\n */\nlet IOS_VERSION = null;\n\n/**\n * Whether or not this is an Android device.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_ANDROID = false;\n\n/**\n * The detected Android version - or `null` if not Android or indeterminable.\n *\n * @static\n * @type {number|string|null}\n */\nlet ANDROID_VERSION;\n\n/**\n * Whether or not this is Mozilla Firefox.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_FIREFOX = false;\n\n/**\n * Whether or not this is Microsoft Edge.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_EDGE = false;\n\n/**\n * Whether or not this is any Chromium Browser\n *\n * @static\n * @type {Boolean}\n */\nlet IS_CHROMIUM = false;\n\n/**\n * Whether or not this is any Chromium browser that is not Edge.\n *\n * This will also be `true` for Chrome on iOS, which will have different support\n * as it is actually Safari under the hood.\n *\n * Deprecated, as the behaviour to not match Edge was to prevent Legacy Edge's UA matching.\n * IS_CHROMIUM should be used instead.\n * \"Chromium but not Edge\" could be explicitly tested with IS_CHROMIUM && !IS_EDGE\n *\n * @static\n * @deprecated\n * @type {Boolean}\n */\nlet IS_CHROME = false;\n\n/**\n * The detected Chromium version - or `null`.\n *\n * @static\n * @type {number|null}\n */\nlet CHROMIUM_VERSION = null;\n\n/**\n * The detected Google Chrome version - or `null`.\n * This has always been the _Chromium_ version, i.e. would return on Chromium Edge.\n * Deprecated, use CHROMIUM_VERSION instead.\n *\n * @static\n * @deprecated\n * @type {number|null}\n */\nlet CHROME_VERSION = null;\n\n/**\n * The detected Internet Explorer version - or `null`.\n *\n * @static\n * @deprecated\n * @type {number|null}\n */\nlet IE_VERSION = null;\n\n/**\n * Whether or not this is desktop Safari.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_SAFARI = false;\n\n/**\n * Whether or not this is a Windows machine.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_WINDOWS = false;\n\n/**\n * Whether or not this device is an iPad.\n *\n * @static\n * @type {Boolean}\n */\nlet IS_IPAD = false;\n\n/**\n * Whether or not this device is an iPhone.\n *\n * @static\n * @type {Boolean}\n */\n// The Facebook app's UIWebView identifies as both an iPhone and iPad, so\n// to identify iPhones, we need to exclude iPads.\n// http://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/\nlet IS_IPHONE = false;\n\n/**\n * Whether or not this device is touch-enabled.\n *\n * @static\n * @const\n * @type {Boolean}\n */\nconst TOUCH_ENABLED = Boolean(isReal() && ('ontouchstart' in window$1 || window$1.navigator.maxTouchPoints || window$1.DocumentTouch && window$1.document instanceof window$1.DocumentTouch));\nconst UAD = window$1.navigator && window$1.navigator.userAgentData;\nif (UAD && UAD.platform && UAD.brands) {\n // If userAgentData is present, use it instead of userAgent to avoid warnings\n // Currently only implemented on Chromium\n // userAgentData does not expose Android version, so ANDROID_VERSION remains `null`\n\n IS_ANDROID = UAD.platform === 'Android';\n IS_EDGE = Boolean(UAD.brands.find(b => b.brand === 'Microsoft Edge'));\n IS_CHROMIUM = Boolean(UAD.brands.find(b => b.brand === 'Chromium'));\n IS_CHROME = !IS_EDGE && IS_CHROMIUM;\n CHROMIUM_VERSION = CHROME_VERSION = (UAD.brands.find(b => b.brand === 'Chromium') || {}).version || null;\n IS_WINDOWS = UAD.platform === 'Windows';\n}\n\n// If the browser is not Chromium, either userAgentData is not present which could be an old Chromium browser,\n// or it's a browser that has added userAgentData since that we don't have tests for yet. In either case,\n// the checks need to be made agiainst the regular userAgent string.\nif (!IS_CHROMIUM) {\n const USER_AGENT = window$1.navigator && window$1.navigator.userAgent || '';\n IS_IPOD = /iPod/i.test(USER_AGENT);\n IOS_VERSION = function () {\n const match = USER_AGENT.match(/OS (\\d+)_/i);\n if (match && match[1]) {\n return match[1];\n }\n return null;\n }();\n IS_ANDROID = /Android/i.test(USER_AGENT);\n ANDROID_VERSION = function () {\n // This matches Android Major.Minor.Patch versions\n // ANDROID_VERSION is Major.Minor as a Number, if Minor isn't available, then only Major is returned\n const match = USER_AGENT.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);\n if (!match) {\n return null;\n }\n const major = match[1] && parseFloat(match[1]);\n const minor = match[2] && parseFloat(match[2]);\n if (major && minor) {\n return parseFloat(match[1] + '.' + match[2]);\n } else if (major) {\n return major;\n }\n return null;\n }();\n IS_FIREFOX = /Firefox/i.test(USER_AGENT);\n IS_EDGE = /Edg/i.test(USER_AGENT);\n IS_CHROMIUM = /Chrome/i.test(USER_AGENT) || /CriOS/i.test(USER_AGENT);\n IS_CHROME = !IS_EDGE && IS_CHROMIUM;\n CHROMIUM_VERSION = CHROME_VERSION = function () {\n const match = USER_AGENT.match(/(Chrome|CriOS)\\/(\\d+)/);\n if (match && match[2]) {\n return parseFloat(match[2]);\n }\n return null;\n }();\n IE_VERSION = function () {\n const result = /MSIE\\s(\\d+)\\.\\d/.exec(USER_AGENT);\n let version = result && parseFloat(result[1]);\n if (!version && /Trident\\/7.0/i.test(USER_AGENT) && /rv:11.0/.test(USER_AGENT)) {\n // IE 11 has a different user agent string than other IE versions\n version = 11.0;\n }\n return version;\n }();\n IS_SAFARI = /Safari/i.test(USER_AGENT) && !IS_CHROME && !IS_ANDROID && !IS_EDGE;\n IS_WINDOWS = /Windows/i.test(USER_AGENT);\n IS_IPAD = /iPad/i.test(USER_AGENT) || IS_SAFARI && TOUCH_ENABLED && !/iPhone/i.test(USER_AGENT);\n IS_IPHONE = /iPhone/i.test(USER_AGENT) && !IS_IPAD;\n}\n\n/**\n * Whether or not this is an iOS device.\n *\n * @static\n * @const\n * @type {Boolean}\n */\nconst IS_IOS = IS_IPHONE || IS_IPAD || IS_IPOD;\n\n/**\n * Whether or not this is any flavor of Safari - including iOS.\n *\n * @static\n * @const\n * @type {Boolean}\n */\nconst IS_ANY_SAFARI = (IS_SAFARI || IS_IOS) && !IS_CHROME;\nvar browser = /*#__PURE__*/Object.freeze({\n __proto__: null,\n get IS_IPOD() {\n return IS_IPOD;\n },\n get IOS_VERSION() {\n return IOS_VERSION;\n },\n get IS_ANDROID() {\n return IS_ANDROID;\n },\n get ANDROID_VERSION() {\n return ANDROID_VERSION;\n },\n get IS_FIREFOX() {\n return IS_FIREFOX;\n },\n get IS_EDGE() {\n return IS_EDGE;\n },\n get IS_CHROMIUM() {\n return IS_CHROMIUM;\n },\n get IS_CHROME() {\n return IS_CHROME;\n },\n get CHROMIUM_VERSION() {\n return CHROMIUM_VERSION;\n },\n get CHROME_VERSION() {\n return CHROME_VERSION;\n },\n get IE_VERSION() {\n return IE_VERSION;\n },\n get IS_SAFARI() {\n return IS_SAFARI;\n },\n get IS_WINDOWS() {\n return IS_WINDOWS;\n },\n get IS_IPAD() {\n return IS_IPAD;\n },\n get IS_IPHONE() {\n return IS_IPHONE;\n },\n TOUCH_ENABLED: TOUCH_ENABLED,\n IS_IOS: IS_IOS,\n IS_ANY_SAFARI: IS_ANY_SAFARI\n});\n\n/**\n * @file dom.js\n * @module dom\n */\n\n/**\n * Detect if a value is a string with any non-whitespace characters.\n *\n * @private\n * @param {string} str\n * The string to check\n *\n * @return {boolean}\n * Will be `true` if the string is non-blank, `false` otherwise.\n *\n */\nfunction isNonBlankString(str) {\n // we use str.trim as it will trim any whitespace characters\n // from the front or back of non-whitespace characters. aka\n // Any string that contains non-whitespace characters will\n // still contain them after `trim` but whitespace only strings\n // will have a length of 0, failing this check.\n return typeof str === 'string' && Boolean(str.trim());\n}\n\n/**\n * Throws an error if the passed string has whitespace. This is used by\n * class methods to be relatively consistent with the classList API.\n *\n * @private\n * @param {string} str\n * The string to check for whitespace.\n *\n * @throws {Error}\n * Throws an error if there is whitespace in the string.\n */\nfunction throwIfWhitespace(str) {\n // str.indexOf instead of regex because str.indexOf is faster performance wise.\n if (str.indexOf(' ') >= 0) {\n throw new Error('class has illegal whitespace characters');\n }\n}\n\n/**\n * Whether the current DOM interface appears to be real (i.e. not simulated).\n *\n * @return {boolean}\n * Will be `true` if the DOM appears to be real, `false` otherwise.\n */\nfunction isReal() {\n // Both document and window will never be undefined thanks to `global`.\n return document === window$1.document;\n}\n\n/**\n * Determines, via duck typing, whether or not a value is a DOM element.\n *\n * @param {*} value\n * The value to check.\n *\n * @return {boolean}\n * Will be `true` if the value is a DOM element, `false` otherwise.\n */\nfunction isEl(value) {\n return isObject(value) && value.nodeType === 1;\n}\n\n/**\n * Determines if the current DOM is embedded in an iframe.\n *\n * @return {boolean}\n * Will be `true` if the DOM is embedded in an iframe, `false`\n * otherwise.\n */\nfunction isInFrame() {\n // We need a try/catch here because Safari will throw errors when attempting\n // to get either `parent` or `self`\n try {\n return window$1.parent !== window$1.self;\n } catch (x) {\n return true;\n }\n}\n\n/**\n * Creates functions to query the DOM using a given method.\n *\n * @private\n * @param {string} method\n * The method to create the query with.\n *\n * @return {Function}\n * The query method\n */\nfunction createQuerier(method) {\n return function (selector, context) {\n if (!isNonBlankString(selector)) {\n return document[method](null);\n }\n if (isNonBlankString(context)) {\n context = document.querySelector(context);\n }\n const ctx = isEl(context) ? context : document;\n return ctx[method] && ctx[method](selector);\n };\n}\n\n/**\n * Creates an element and applies properties, attributes, and inserts content.\n *\n * @param {string} [tagName='div']\n * Name of tag to be created.\n *\n * @param {Object} [properties={}]\n * Element properties to be applied.\n *\n * @param {Object} [attributes={}]\n * Element attributes to be applied.\n *\n * @param {ContentDescriptor} [content]\n * A content descriptor object.\n *\n * @return {Element}\n * The element that was created.\n */\nfunction createEl() {\n let tagName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'div';\n let properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n let content = arguments.length > 3 ? arguments[3] : undefined;\n const el = document.createElement(tagName);\n Object.getOwnPropertyNames(properties).forEach(function (propName) {\n const val = properties[propName];\n\n // Handle textContent since it's not supported everywhere and we have a\n // method for it.\n if (propName === 'textContent') {\n textContent(el, val);\n } else if (el[propName] !== val || propName === 'tabIndex') {\n el[propName] = val;\n }\n });\n Object.getOwnPropertyNames(attributes).forEach(function (attrName) {\n el.setAttribute(attrName, attributes[attrName]);\n });\n if (content) {\n appendContent(el, content);\n }\n return el;\n}\n\n/**\n * Injects text into an element, replacing any existing contents entirely.\n *\n * @param {HTMLElement} el\n * The element to add text content into\n *\n * @param {string} text\n * The text content to add.\n *\n * @return {Element}\n * The element with added text content.\n */\nfunction textContent(el, text) {\n if (typeof el.textContent === 'undefined') {\n el.innerText = text;\n } else {\n el.textContent = text;\n }\n return el;\n}\n\n/**\n * Insert an element as the first child node of another\n *\n * @param {Element} child\n * Element to insert\n *\n * @param {Element} parent\n * Element to insert child into\n */\nfunction prependTo(child, parent) {\n if (parent.firstChild) {\n parent.insertBefore(child, parent.firstChild);\n } else {\n parent.appendChild(child);\n }\n}\n\n/**\n * Check if an element has a class name.\n *\n * @param {Element} element\n * Element to check\n *\n * @param {string} classToCheck\n * Class name to check for\n *\n * @return {boolean}\n * Will be `true` if the element has a class, `false` otherwise.\n *\n * @throws {Error}\n * Throws an error if `classToCheck` has white space.\n */\nfunction hasClass(element, classToCheck) {\n throwIfWhitespace(classToCheck);\n return element.classList.contains(classToCheck);\n}\n\n/**\n * Add a class name to an element.\n *\n * @param {Element} element\n * Element to add class name to.\n *\n * @param {...string} classesToAdd\n * One or more class name to add.\n *\n * @return {Element}\n * The DOM element with the added class name.\n */\nfunction addClass(element) {\n for (var _len6 = arguments.length, classesToAdd = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n classesToAdd[_key6 - 1] = arguments[_key6];\n }\n element.classList.add(...classesToAdd.reduce((prev, current) => prev.concat(current.split(/\\s+/)), []));\n return element;\n}\n\n/**\n * Remove a class name from an element.\n *\n * @param {Element} element\n * Element to remove a class name from.\n *\n * @param {...string} classesToRemove\n * One or more class name to remove.\n *\n * @return {Element}\n * The DOM element with class name removed.\n */\nfunction removeClass(element) {\n // Protect in case the player gets disposed\n if (!element) {\n log$1.warn(\"removeClass was called with an element that doesn't exist\");\n return null;\n }\n for (var _len7 = arguments.length, classesToRemove = new Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {\n classesToRemove[_key7 - 1] = arguments[_key7];\n }\n element.classList.remove(...classesToRemove.reduce((prev, current) => prev.concat(current.split(/\\s+/)), []));\n return element;\n}\n\n/**\n * The callback definition for toggleClass.\n *\n * @callback module:dom~PredicateCallback\n * @param {Element} element\n * The DOM element of the Component.\n *\n * @param {string} classToToggle\n * The `className` that wants to be toggled\n *\n * @return {boolean|undefined}\n * If `true` is returned, the `classToToggle` will be added to the\n * `element`. If `false`, the `classToToggle` will be removed from\n * the `element`. If `undefined`, the callback will be ignored.\n */\n\n/**\n * Adds or removes a class name to/from an element depending on an optional\n * condition or the presence/absence of the class name.\n *\n * @param {Element} element\n * The element to toggle a class name on.\n *\n * @param {string} classToToggle\n * The class that should be toggled.\n *\n * @param {boolean|module:dom~PredicateCallback} [predicate]\n * See the return value for {@link module:dom~PredicateCallback}\n *\n * @return {Element}\n * The element with a class that has been toggled.\n */\nfunction toggleClass(element, classToToggle, predicate) {\n if (typeof predicate === 'function') {\n predicate = predicate(element, classToToggle);\n }\n if (typeof predicate !== 'boolean') {\n predicate = undefined;\n }\n classToToggle.split(/\\s+/).forEach(className => element.classList.toggle(className, predicate));\n return element;\n}\n\n/**\n * Apply attributes to an HTML element.\n *\n * @param {Element} el\n * Element to add attributes to.\n *\n * @param {Object} [attributes]\n * Attributes to be applied.\n */\nfunction setAttributes(el, attributes) {\n Object.getOwnPropertyNames(attributes).forEach(function (attrName) {\n const attrValue = attributes[attrName];\n if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {\n el.removeAttribute(attrName);\n } else {\n el.setAttribute(attrName, attrValue === true ? '' : attrValue);\n }\n });\n}\n\n/**\n * Get an element's attribute values, as defined on the HTML tag.\n *\n * Attributes are not the same as properties. They're defined on the tag\n * or with setAttribute.\n *\n * @param {Element} tag\n * Element from which to get tag attributes.\n *\n * @return {Object}\n * All attributes of the element. Boolean attributes will be `true` or\n * `false`, others will be strings.\n */\nfunction getAttributes(tag) {\n const obj = {};\n\n // known boolean attributes\n // we can check for matching boolean properties, but not all browsers\n // and not all tags know about these attributes, so, we still want to check them manually\n const knownBooleans = ['autoplay', 'controls', 'playsinline', 'loop', 'muted', 'default', 'defaultMuted'];\n if (tag && tag.attributes && tag.attributes.length > 0) {\n const attrs = tag.attributes;\n for (let i = attrs.length - 1; i >= 0; i--) {\n const attrName = attrs[i].name;\n /** @type {boolean|string} */\n let attrVal = attrs[i].value;\n\n // check for known booleans\n // the matching element property will return a value for typeof\n if (knownBooleans.includes(attrName)) {\n // the value of an included boolean attribute is typically an empty\n // string ('') which would equal false if we just check for a false value.\n // we also don't want support bad code like autoplay='false'\n attrVal = attrVal !== null ? true : false;\n }\n obj[attrName] = attrVal;\n }\n }\n return obj;\n}\n\n/**\n * Get the value of an element's attribute.\n *\n * @param {Element} el\n * A DOM element.\n *\n * @param {string} attribute\n * Attribute to get the value of.\n *\n * @return {string}\n * The value of the attribute.\n */\nfunction getAttribute(el, attribute) {\n return el.getAttribute(attribute);\n}\n\n/**\n * Set the value of an element's attribute.\n *\n * @param {Element} el\n * A DOM element.\n *\n * @param {string} attribute\n * Attribute to set.\n *\n * @param {string} value\n * Value to set the attribute to.\n */\nfunction setAttribute(el, attribute, value) {\n el.setAttribute(attribute, value);\n}\n\n/**\n * Remove an element's attribute.\n *\n * @param {Element} el\n * A DOM element.\n *\n * @param {string} attribute\n * Attribute to remove.\n */\nfunction removeAttribute(el, attribute) {\n el.removeAttribute(attribute);\n}\n\n/**\n * Attempt to block the ability to select text.\n */\nfunction blockTextSelection() {\n document.body.focus();\n document.onselectstart = function () {\n return false;\n };\n}\n\n/**\n * Turn off text selection blocking.\n */\nfunction unblockTextSelection() {\n document.onselectstart = function () {\n return true;\n };\n}\n\n/**\n * Identical to the native `getBoundingClientRect` function, but ensures that\n * the method is supported at all (it is in all browsers we claim to support)\n * and that the element is in the DOM before continuing.\n *\n * This wrapper function also shims properties which are not provided by some\n * older browsers (namely, IE8).\n *\n * Additionally, some browsers do not support adding properties to a\n * `ClientRect`/`DOMRect` object; so, we shallow-copy it with the standard\n * properties (except `x` and `y` which are not widely supported). This helps\n * avoid implementations where keys are non-enumerable.\n *\n * @param {Element} el\n * Element whose `ClientRect` we want to calculate.\n *\n * @return {Object|undefined}\n * Always returns a plain object - or `undefined` if it cannot.\n */\nfunction getBoundingClientRect(el) {\n if (el && el.getBoundingClientRect && el.parentNode) {\n const rect = el.getBoundingClientRect();\n const result = {};\n ['bottom', 'height', 'left', 'right', 'top', 'width'].forEach(k => {\n if (rect[k] !== undefined) {\n result[k] = rect[k];\n }\n });\n if (!result.height) {\n result.height = parseFloat(computedStyle(el, 'height'));\n }\n if (!result.width) {\n result.width = parseFloat(computedStyle(el, 'width'));\n }\n return result;\n }\n}\n\n/**\n * Represents the position of a DOM element on the page.\n *\n * @typedef {Object} module:dom~Position\n *\n * @property {number} left\n * Pixels to the left.\n *\n * @property {number} top\n * Pixels from the top.\n */\n\n/**\n * Get the position of an element in the DOM.\n *\n * Uses `getBoundingClientRect` technique from John Resig.\n *\n * @see http://ejohn.org/blog/getboundingclientrect-is-awesome/\n *\n * @param {Element} el\n * Element from which to get offset.\n *\n * @return {module:dom~Position}\n * The position of the element that was passed in.\n */\nfunction findPosition(el) {\n if (!el || el && !el.offsetParent) {\n return {\n left: 0,\n top: 0,\n width: 0,\n height: 0\n };\n }\n const width = el.offsetWidth;\n const height = el.offsetHeight;\n let left = 0;\n let top = 0;\n while (el.offsetParent && el !== document[FullscreenApi.fullscreenElement]) {\n left += el.offsetLeft;\n top += el.offsetTop;\n el = el.offsetParent;\n }\n return {\n left,\n top,\n width,\n height\n };\n}\n\n/**\n * Represents x and y coordinates for a DOM element or mouse pointer.\n *\n * @typedef {Object} module:dom~Coordinates\n *\n * @property {number} x\n * x coordinate in pixels\n *\n * @property {number} y\n * y coordinate in pixels\n */\n\n/**\n * Get the pointer position within an element.\n *\n * The base on the coordinates are the bottom left of the element.\n *\n * @param {Element} el\n * Element on which to get the pointer position on.\n *\n * @param {Event} event\n * Event object.\n *\n * @return {module:dom~Coordinates}\n * A coordinates object corresponding to the mouse position.\n *\n */\nfunction getPointerPosition(el, event) {\n const translated = {\n x: 0,\n y: 0\n };\n if (IS_IOS) {\n let item = el;\n while (item && item.nodeName.toLowerCase() !== 'html') {\n const transform = computedStyle(item, 'transform');\n if (/^matrix/.test(transform)) {\n const values = transform.slice(7, -1).split(/,\\s/).map(Number);\n translated.x += values[4];\n translated.y += values[5];\n } else if (/^matrix3d/.test(transform)) {\n const values = transform.slice(9, -1).split(/,\\s/).map(Number);\n translated.x += values[12];\n translated.y += values[13];\n }\n item = item.parentNode;\n }\n }\n const position = {};\n const boxTarget = findPosition(event.target);\n const box = findPosition(el);\n const boxW = box.width;\n const boxH = box.height;\n let offsetY = event.offsetY - (box.top - boxTarget.top);\n let offsetX = event.offsetX - (box.left - boxTarget.left);\n if (event.changedTouches) {\n offsetX = event.changedTouches[0].pageX - box.left;\n offsetY = event.changedTouches[0].pageY + box.top;\n if (IS_IOS) {\n offsetX -= translated.x;\n offsetY -= translated.y;\n }\n }\n position.y = 1 - Math.max(0, Math.min(1, offsetY / boxH));\n position.x = Math.max(0, Math.min(1, offsetX / boxW));\n return position;\n}\n\n/**\n * Determines, via duck typing, whether or not a value is a text node.\n *\n * @param {*} value\n * Check if this value is a text node.\n *\n * @return {boolean}\n * Will be `true` if the value is a text node, `false` otherwise.\n */\nfunction isTextNode(value) {\n return isObject(value) && value.nodeType === 3;\n}\n\n/**\n * Empties the contents of an element.\n *\n * @param {Element} el\n * The element to empty children from\n *\n * @return {Element}\n * The element with no children\n */\nfunction emptyEl(el) {\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n return el;\n}\n\n/**\n * This is a mixed value that describes content to be injected into the DOM\n * via some method. It can be of the following types:\n *\n * Type | Description\n * -----------|-------------\n * `string` | The value will be normalized into a text node.\n * `Element` | The value will be accepted as-is.\n * `Text` | A TextNode. The value will be accepted as-is.\n * `Array` | A one-dimensional array of strings, elements, text nodes, or functions. These functions should return a string, element, or text node (any other return value, like an array, will be ignored).\n * `Function` | A function, which is expected to return a string, element, text node, or array - any of the other possible values described above. This means that a content descriptor could be a function that returns an array of functions, but those second-level functions must return strings, elements, or text nodes.\n *\n * @typedef {string|Element|Text|Array|Function} ContentDescriptor\n */\n\n/**\n * Normalizes content for eventual insertion into the DOM.\n *\n * This allows a wide range of content definition methods, but helps protect\n * from falling into the trap of simply writing to `innerHTML`, which could\n * be an XSS concern.\n *\n * The content for an element can be passed in multiple types and\n * combinations, whose behavior is as follows:\n *\n * @param {ContentDescriptor} content\n * A content descriptor value.\n *\n * @return {Array}\n * All of the content that was passed in, normalized to an array of\n * elements or text nodes.\n */\nfunction normalizeContent(content) {\n // First, invoke content if it is a function. If it produces an array,\n // that needs to happen before normalization.\n if (typeof content === 'function') {\n content = content();\n }\n\n // Next up, normalize to an array, so one or many items can be normalized,\n // filtered, and returned.\n return (Array.isArray(content) ? content : [content]).map(value => {\n // First, invoke value if it is a function to produce a new value,\n // which will be subsequently normalized to a Node of some kind.\n if (typeof value === 'function') {\n value = value();\n }\n if (isEl(value) || isTextNode(value)) {\n return value;\n }\n if (typeof value === 'string' && /\\S/.test(value)) {\n return document.createTextNode(value);\n }\n }).filter(value => value);\n}\n\n/**\n * Normalizes and appends content to an element.\n *\n * @param {Element} el\n * Element to append normalized content to.\n *\n * @param {ContentDescriptor} content\n * A content descriptor value.\n *\n * @return {Element}\n * The element with appended normalized content.\n */\nfunction appendContent(el, content) {\n normalizeContent(content).forEach(node => el.appendChild(node));\n return el;\n}\n\n/**\n * Normalizes and inserts content into an element; this is identical to\n * `appendContent()`, except it empties the element first.\n *\n * @param {Element} el\n * Element to insert normalized content into.\n *\n * @param {ContentDescriptor} content\n * A content descriptor value.\n *\n * @return {Element}\n * The element with inserted normalized content.\n */\nfunction insertContent(el, content) {\n return appendContent(emptyEl(el), content);\n}\n\n/**\n * Check if an event was a single left click.\n *\n * @param {MouseEvent} event\n * Event object.\n *\n * @return {boolean}\n * Will be `true` if a single left click, `false` otherwise.\n */\nfunction isSingleLeftClick(event) {\n // Note: if you create something draggable, be sure to\n // call it on both `mousedown` and `mousemove` event,\n // otherwise `mousedown` should be enough for a button\n\n if (event.button === undefined && event.buttons === undefined) {\n // Why do we need `buttons` ?\n // Because, middle mouse sometimes have this:\n // e.button === 0 and e.buttons === 4\n // Furthermore, we want to prevent combination click, something like\n // HOLD middlemouse then left click, that would be\n // e.button === 0, e.buttons === 5\n // just `button` is not gonna work\n\n // Alright, then what this block does ?\n // this is for chrome `simulate mobile devices`\n // I want to support this as well\n\n return true;\n }\n if (event.button === 0 && event.buttons === undefined) {\n // Touch screen, sometimes on some specific device, `buttons`\n // doesn't have anything (safari on ios, blackberry...)\n\n return true;\n }\n\n // `mouseup` event on a single left click has\n // `button` and `buttons` equal to 0\n if (event.type === 'mouseup' && event.button === 0 && event.buttons === 0) {\n return true;\n }\n if (event.button !== 0 || event.buttons !== 1) {\n // This is the reason we have those if else block above\n // if any special case we can catch and let it slide\n // we do it above, when get to here, this definitely\n // is-not-left-click\n\n return false;\n }\n return true;\n}\n\n/**\n * Finds a single DOM element matching `selector` within the optional\n * `context` of another DOM element (defaulting to `document`).\n *\n * @param {string} selector\n * A valid CSS selector, which will be passed to `querySelector`.\n *\n * @param {Element|String} [context=document]\n * A DOM element within which to query. Can also be a selector\n * string in which case the first matching element will be used\n * as context. If missing (or no element matches selector), falls\n * back to `document`.\n *\n * @return {Element|null}\n * The element that was found or null.\n */\nconst $ = createQuerier('querySelector');\n\n/**\n * Finds a all DOM elements matching `selector` within the optional\n * `context` of another DOM element (defaulting to `document`).\n *\n * @param {string} selector\n * A valid CSS selector, which will be passed to `querySelectorAll`.\n *\n * @param {Element|String} [context=document]\n * A DOM element within which to query. Can also be a selector\n * string in which case the first matching element will be used\n * as context. If missing (or no element matches selector), falls\n * back to `document`.\n *\n * @return {NodeList}\n * A element list of elements that were found. Will be empty if none\n * were found.\n *\n */\nconst $$ = createQuerier('querySelectorAll');\n\n/**\n * A safe getComputedStyle.\n *\n * This is needed because in Firefox, if the player is loaded in an iframe with\n * `display:none`, then `getComputedStyle` returns `null`, so, we do a\n * null-check to make sure that the player doesn't break in these cases.\n *\n * @param {Element} el\n * The element you want the computed style of\n *\n * @param {string} prop\n * The property name you want\n *\n * @see https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n */\nfunction computedStyle(el, prop) {\n if (!el || !prop) {\n return '';\n }\n if (typeof window$1.getComputedStyle === 'function') {\n let computedStyleValue;\n try {\n computedStyleValue = window$1.getComputedStyle(el);\n } catch (e) {\n return '';\n }\n return computedStyleValue ? computedStyleValue.getPropertyValue(prop) || computedStyleValue[prop] : '';\n }\n return '';\n}\n\n/**\n * Copy document style sheets to another window.\n *\n * @param {Window} win\n * The window element you want to copy the document style sheets to.\n *\n */\nfunction copyStyleSheetsToWindow(win) {\n [...document.styleSheets].forEach(styleSheet => {\n try {\n const cssRules = [...styleSheet.cssRules].map(rule => rule.cssText).join('');\n const style = document.createElement('style');\n style.textContent = cssRules;\n win.document.head.appendChild(style);\n } catch (e) {\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.type = styleSheet.type;\n // For older Safari this has to be the string; on other browsers setting the MediaList works\n link.media = styleSheet.media.mediaText;\n link.href = styleSheet.href;\n win.document.head.appendChild(link);\n }\n });\n}\nvar Dom = /*#__PURE__*/Object.freeze({\n __proto__: null,\n isReal: isReal,\n isEl: isEl,\n isInFrame: isInFrame,\n createEl: createEl,\n textContent: textContent,\n prependTo: prependTo,\n hasClass: hasClass,\n addClass: addClass,\n removeClass: removeClass,\n toggleClass: toggleClass,\n setAttributes: setAttributes,\n getAttributes: getAttributes,\n getAttribute: getAttribute,\n setAttribute: setAttribute,\n removeAttribute: removeAttribute,\n blockTextSelection: blockTextSelection,\n unblockTextSelection: unblockTextSelection,\n getBoundingClientRect: getBoundingClientRect,\n findPosition: findPosition,\n getPointerPosition: getPointerPosition,\n isTextNode: isTextNode,\n emptyEl: emptyEl,\n normalizeContent: normalizeContent,\n appendContent: appendContent,\n insertContent: insertContent,\n isSingleLeftClick: isSingleLeftClick,\n $: $,\n $$: $$,\n computedStyle: computedStyle,\n copyStyleSheetsToWindow: copyStyleSheetsToWindow\n});\n\n/**\n * @file setup.js - Functions for setting up a player without\n * user interaction based on the data-setup `attribute` of the video tag.\n *\n * @module setup\n */\nlet _windowLoaded = false;\nlet videojs$1;\n\n/**\n * Set up any tags that have a data-setup `attribute` when the player is started.\n */\nconst autoSetup = function () {\n if (videojs$1.options.autoSetup === false) {\n return;\n }\n const vids = Array.prototype.slice.call(document.getElementsByTagName('video'));\n const audios = Array.prototype.slice.call(document.getElementsByTagName('audio'));\n const divs = Array.prototype.slice.call(document.getElementsByTagName('video-js'));\n const mediaEls = vids.concat(audios, divs);\n\n // Check if any media elements exist\n if (mediaEls && mediaEls.length > 0) {\n for (let i = 0, e = mediaEls.length; i < e; i++) {\n const mediaEl = mediaEls[i];\n\n // Check if element exists, has getAttribute func.\n if (mediaEl && mediaEl.getAttribute) {\n // Make sure this player hasn't already been set up.\n if (mediaEl.player === undefined) {\n const options = mediaEl.getAttribute('data-setup');\n\n // Check if data-setup attr exists.\n // We only auto-setup if they've added the data-setup attr.\n if (options !== null) {\n // Create new video.js instance.\n videojs$1(mediaEl);\n }\n }\n\n // If getAttribute isn't defined, we need to wait for the DOM.\n } else {\n autoSetupTimeout(1);\n break;\n }\n }\n\n // No videos were found, so keep looping unless page is finished loading.\n } else if (!_windowLoaded) {\n autoSetupTimeout(1);\n }\n};\n\n/**\n * Wait until the page is loaded before running autoSetup. This will be called in\n * autoSetup if `hasLoaded` returns false.\n *\n * @param {number} wait\n * How long to wait in ms\n *\n * @param {module:videojs} [vjs]\n * The videojs library function\n */\nfunction autoSetupTimeout(wait, vjs) {\n // Protect against breakage in non-browser environments\n if (!isReal()) {\n return;\n }\n if (vjs) {\n videojs$1 = vjs;\n }\n window$1.setTimeout(autoSetup, wait);\n}\n\n/**\n * Used to set the internal tracking of window loaded state to true.\n *\n * @private\n */\nfunction setWindowLoaded() {\n _windowLoaded = true;\n window$1.removeEventListener('load', setWindowLoaded);\n}\nif (isReal()) {\n if (document.readyState === 'complete') {\n setWindowLoaded();\n } else {\n /**\n * Listen for the load event on window, and set _windowLoaded to true.\n *\n * We use a standard event listener here to avoid incrementing the GUID\n * before any players are created.\n *\n * @listens load\n */\n window$1.addEventListener('load', setWindowLoaded);\n }\n}\n\n/**\n * @file stylesheet.js\n * @module stylesheet\n */\n\n/**\n * Create a DOM style element given a className for it.\n *\n * @param {string} className\n * The className to add to the created style element.\n *\n * @return {Element}\n * The element that was created.\n */\nconst createStyleElement = function (className) {\n const style = document.createElement('style');\n style.className = className;\n return style;\n};\n\n/**\n * Add text to a DOM element.\n *\n * @param {Element} el\n * The Element to add text content to.\n *\n * @param {string} content\n * The text to add to the element.\n */\nconst setTextContent = function (el, content) {\n if (el.styleSheet) {\n el.styleSheet.cssText = content;\n } else {\n el.textContent = content;\n }\n};\n\n/**\n * @file dom-data.js\n * @module dom-data\n */\n\n/**\n * Element Data Store.\n *\n * Allows for binding data to an element without putting it directly on the\n * element. Ex. Event listeners are stored here.\n * (also from jsninja.com, slightly modified and updated for closure compiler)\n *\n * @type {Object}\n * @private\n */\nvar DomData = new WeakMap();\n\n/**\n * @file guid.js\n * @module guid\n */\n\n// Default value for GUIDs. This allows us to reset the GUID counter in tests.\n//\n// The initial GUID is 3 because some users have come to rely on the first\n// default player ID ending up as `vjs_video_3`.\n//\n// See: https://github.com/videojs/video.js/pull/6216\nconst _initialGuid = 3;\n\n/**\n * Unique ID for an element or function\n *\n * @type {Number}\n */\nlet _guid = _initialGuid;\n\n/**\n * Get a unique auto-incrementing ID by number that has not been returned before.\n *\n * @return {number}\n * A new unique ID.\n */\nfunction newGUID() {\n return _guid++;\n}\n\n/**\n * @file events.js. An Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/)\n * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible)\n * This should work very similarly to jQuery's events, however it's based off the book version which isn't as\n * robust as jquery's, so there's probably some differences.\n *\n * @file events.js\n * @module events\n */\n\n/**\n * Clean up the listener cache and dispatchers\n *\n * @param {Element|Object} elem\n * Element to clean up\n *\n * @param {string} type\n * Type of event to clean up\n */\nfunction _cleanUpEvents(elem, type) {\n if (!DomData.has(elem)) {\n return;\n }\n const data = DomData.get(elem);\n\n // Remove the events of a particular type if there are none left\n if (data.handlers[type].length === 0) {\n delete data.handlers[type];\n // data.handlers[type] = null;\n // Setting to null was causing an error with data.handlers\n\n // Remove the meta-handler from the element\n if (elem.removeEventListener) {\n elem.removeEventListener(type, data.dispatcher, false);\n } else if (elem.detachEvent) {\n elem.detachEvent('on' + type, data.dispatcher);\n }\n }\n\n // Remove the events object if there are no types left\n if (Object.getOwnPropertyNames(data.handlers).length <= 0) {\n delete data.handlers;\n delete data.dispatcher;\n delete data.disabled;\n }\n\n // Finally remove the element data if there is no data left\n if (Object.getOwnPropertyNames(data).length === 0) {\n DomData.delete(elem);\n }\n}\n\n/**\n * Loops through an array of event types and calls the requested method for each type.\n *\n * @param {Function} fn\n * The event method we want to use.\n *\n * @param {Element|Object} elem\n * Element or object to bind listeners to\n *\n * @param {string[]} types\n * Type of event to bind to.\n *\n * @param {Function} callback\n * Event listener.\n */\nfunction _handleMultipleEvents(fn, elem, types, callback) {\n types.forEach(function (type) {\n // Call the event method for each one of the types\n fn(elem, type, callback);\n });\n}\n\n/**\n * Fix a native event to have standard property values\n *\n * @param {Object} event\n * Event object to fix.\n *\n * @return {Object}\n * Fixed event object.\n */\nfunction fixEvent(event) {\n if (event.fixed_) {\n return event;\n }\n function returnTrue() {\n return true;\n }\n function returnFalse() {\n return false;\n }\n\n // Test if fixing up is needed\n // Used to check if !event.stopPropagation instead of isPropagationStopped\n // But native events return true for stopPropagation, but don't have\n // other expected methods like isPropagationStopped. Seems to be a problem\n // with the Javascript Ninja code. So we're just overriding all events now.\n if (!event || !event.isPropagationStopped || !event.isImmediatePropagationStopped) {\n const old = event || window$1.event;\n event = {};\n // Clone the old object so that we can modify the values event = {};\n // IE8 Doesn't like when you mess with native event properties\n // Firefox returns false for event.hasOwnProperty('type') and other props\n // which makes copying more difficult.\n // TODO: Probably best to create a whitelist of event props\n for (const key in old) {\n // Safari 6.0.3 warns you if you try to copy deprecated layerX/Y\n // Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation\n // and webkitMovementX/Y\n // Lighthouse complains if Event.path is copied\n if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation' && key !== 'webkitMovementX' && key !== 'webkitMovementY' && key !== 'path') {\n // Chrome 32+ warns if you try to copy deprecated returnValue, but\n // we still want to if preventDefault isn't supported (IE8).\n if (!(key === 'returnValue' && old.preventDefault)) {\n event[key] = old[key];\n }\n }\n }\n\n // The event occurred on this element\n if (!event.target) {\n event.target = event.srcElement || document;\n }\n\n // Handle which other element the event is related to\n if (!event.relatedTarget) {\n event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;\n }\n\n // Stop the default browser action\n event.preventDefault = function () {\n if (old.preventDefault) {\n old.preventDefault();\n }\n event.returnValue = false;\n old.returnValue = false;\n event.defaultPrevented = true;\n };\n event.defaultPrevented = false;\n\n // Stop the event from bubbling\n event.stopPropagation = function () {\n if (old.stopPropagation) {\n old.stopPropagation();\n }\n event.cancelBubble = true;\n old.cancelBubble = true;\n event.isPropagationStopped = returnTrue;\n };\n event.isPropagationStopped = returnFalse;\n\n // Stop the event from bubbling and executing other handlers\n event.stopImmediatePropagation = function () {\n if (old.stopImmediatePropagation) {\n old.stopImmediatePropagation();\n }\n event.isImmediatePropagationStopped = returnTrue;\n event.stopPropagation();\n };\n event.isImmediatePropagationStopped = returnFalse;\n\n // Handle mouse position\n if (event.clientX !== null && event.clientX !== undefined) {\n const doc = document.documentElement;\n const body = document.body;\n event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);\n event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);\n }\n\n // Handle key presses\n event.which = event.charCode || event.keyCode;\n\n // Fix button for mouse clicks:\n // 0 == left; 1 == middle; 2 == right\n if (event.button !== null && event.button !== undefined) {\n // The following is disabled because it does not pass videojs-standard\n // and... yikes.\n /* eslint-disable */\n event.button = event.button & 1 ? 0 : event.button & 4 ? 1 : event.button & 2 ? 2 : 0;\n /* eslint-enable */\n }\n }\n\n event.fixed_ = true;\n // Returns fixed-up instance\n return event;\n}\n\n/**\n * Whether passive event listeners are supported\n */\nlet _supportsPassive;\nconst supportsPassive = function () {\n if (typeof _supportsPassive !== 'boolean') {\n _supportsPassive = false;\n try {\n const opts = Object.defineProperty({}, 'passive', {\n get() {\n _supportsPassive = true;\n }\n });\n window$1.addEventListener('test', null, opts);\n window$1.removeEventListener('test', null, opts);\n } catch (e) {\n // disregard\n }\n }\n return _supportsPassive;\n};\n\n/**\n * Touch events Chrome expects to be passive\n */\nconst passiveEvents = ['touchstart', 'touchmove'];\n\n/**\n * Add an event listener to element\n * It stores the handler function in a separate cache object\n * and adds a generic handler to the element's event,\n * along with a unique id (guid) to the element.\n *\n * @param {Element|Object} elem\n * Element or object to bind listeners to\n *\n * @param {string|string[]} type\n * Type of event to bind to.\n *\n * @param {Function} fn\n * Event listener.\n */\nfunction on(elem, type, fn) {\n if (Array.isArray(type)) {\n return _handleMultipleEvents(on, elem, type, fn);\n }\n if (!DomData.has(elem)) {\n DomData.set(elem, {});\n }\n const data = DomData.get(elem);\n\n // We need a place to store all our handler data\n if (!data.handlers) {\n data.handlers = {};\n }\n if (!data.handlers[type]) {\n data.handlers[type] = [];\n }\n if (!fn.guid) {\n fn.guid = newGUID();\n }\n data.handlers[type].push(fn);\n if (!data.dispatcher) {\n data.disabled = false;\n data.dispatcher = function (event, hash) {\n if (data.disabled) {\n return;\n }\n event = fixEvent(event);\n const handlers = data.handlers[event.type];\n if (handlers) {\n // Copy handlers so if handlers are added/removed during the process it doesn't throw everything off.\n const handlersCopy = handlers.slice(0);\n for (let m = 0, n = handlersCopy.length; m < n; m++) {\n if (event.isImmediatePropagationStopped()) {\n break;\n } else {\n try {\n handlersCopy[m].call(elem, event, hash);\n } catch (e) {\n log$1.error(e);\n }\n }\n }\n }\n };\n }\n if (data.handlers[type].length === 1) {\n if (elem.addEventListener) {\n let options = false;\n if (supportsPassive() && passiveEvents.indexOf(type) > -1) {\n options = {\n passive: true\n };\n }\n elem.addEventListener(type, data.dispatcher, options);\n } else if (elem.attachEvent) {\n elem.attachEvent('on' + type, data.dispatcher);\n }\n }\n}\n\n/**\n * Removes event listeners from an element\n *\n * @param {Element|Object} elem\n * Object to remove listeners from.\n *\n * @param {string|string[]} [type]\n * Type of listener to remove. Don't include to remove all events from element.\n *\n * @param {Function} [fn]\n * Specific listener to remove. Don't include to remove listeners for an event\n * type.\n */\nfunction off(elem, type, fn) {\n // Don't want to add a cache object through getElData if not needed\n if (!DomData.has(elem)) {\n return;\n }\n const data = DomData.get(elem);\n\n // If no events exist, nothing to unbind\n if (!data.handlers) {\n return;\n }\n if (Array.isArray(type)) {\n return _handleMultipleEvents(off, elem, type, fn);\n }\n\n // Utility function\n const removeType = function (el, t) {\n data.handlers[t] = [];\n _cleanUpEvents(el, t);\n };\n\n // Are we removing all bound events?\n if (type === undefined) {\n for (const t in data.handlers) {\n if (Object.prototype.hasOwnProperty.call(data.handlers || {}, t)) {\n removeType(elem, t);\n }\n }\n return;\n }\n const handlers = data.handlers[type];\n\n // If no handlers exist, nothing to unbind\n if (!handlers) {\n return;\n }\n\n // If no listener was provided, remove all listeners for type\n if (!fn) {\n removeType(elem, type);\n return;\n }\n\n // We're only removing a single handler\n if (fn.guid) {\n for (let n = 0; n < handlers.length; n++) {\n if (handlers[n].guid === fn.guid) {\n handlers.splice(n--, 1);\n }\n }\n }\n _cleanUpEvents(elem, type);\n}\n\n/**\n * Trigger an event for an element\n *\n * @param {Element|Object} elem\n * Element to trigger an event on\n *\n * @param {EventTarget~Event|string} event\n * A string (the type) or an event object with a type attribute\n *\n * @param {Object} [hash]\n * data hash to pass along with the event\n *\n * @return {boolean|undefined}\n * Returns the opposite of `defaultPrevented` if default was\n * prevented. Otherwise, returns `undefined`\n */\nfunction trigger(elem, event, hash) {\n // Fetches element data and a reference to the parent (for bubbling).\n // Don't want to add a data object to cache for every parent,\n // so checking hasElData first.\n const elemData = DomData.has(elem) ? DomData.get(elem) : {};\n const parent = elem.parentNode || elem.ownerDocument;\n // type = event.type || event,\n // handler;\n\n // If an event name was passed as a string, creates an event out of it\n if (typeof event === 'string') {\n event = {\n type: event,\n target: elem\n };\n } else if (!event.target) {\n event.target = elem;\n }\n\n // Normalizes the event properties.\n event = fixEvent(event);\n\n // If the passed element has a dispatcher, executes the established handlers.\n if (elemData.dispatcher) {\n elemData.dispatcher.call(elem, event, hash);\n }\n\n // Unless explicitly stopped or the event does not bubble (e.g. media events)\n // recursively calls this function to bubble the event up the DOM.\n if (parent && !event.isPropagationStopped() && event.bubbles === true) {\n trigger.call(null, parent, event, hash);\n\n // If at the top of the DOM, triggers the default action unless disabled.\n } else if (!parent && !event.defaultPrevented && event.target && event.target[event.type]) {\n if (!DomData.has(event.target)) {\n DomData.set(event.target, {});\n }\n const targetData = DomData.get(event.target);\n\n // Checks if the target has a default action for this event.\n if (event.target[event.type]) {\n // Temporarily disables event dispatching on the target as we have already executed the handler.\n targetData.disabled = true;\n // Executes the default action.\n if (typeof event.target[event.type] === 'function') {\n event.target[event.type]();\n }\n // Re-enables event dispatching.\n targetData.disabled = false;\n }\n }\n\n // Inform the triggerer if the default was prevented by returning false\n return !event.defaultPrevented;\n}\n\n/**\n * Trigger a listener only once for an event.\n *\n * @param {Element|Object} elem\n * Element or object to bind to.\n *\n * @param {string|string[]} type\n * Name/type of event\n *\n * @param {Event~EventListener} fn\n * Event listener function\n */\nfunction one(elem, type, fn) {\n if (Array.isArray(type)) {\n return _handleMultipleEvents(one, elem, type, fn);\n }\n const func = function () {\n off(elem, type, func);\n fn.apply(this, arguments);\n };\n\n // copy the guid to the new function so it can removed using the original function's ID\n func.guid = fn.guid = fn.guid || newGUID();\n on(elem, type, func);\n}\n\n/**\n * Trigger a listener only once and then turn if off for all\n * configured events\n *\n * @param {Element|Object} elem\n * Element or object to bind to.\n *\n * @param {string|string[]} type\n * Name/type of event\n *\n * @param {Event~EventListener} fn\n * Event listener function\n */\nfunction any(elem, type, fn) {\n const func = function () {\n off(elem, type, func);\n fn.apply(this, arguments);\n };\n\n // copy the guid to the new function so it can removed using the original function's ID\n func.guid = fn.guid = fn.guid || newGUID();\n\n // multiple ons, but one off for everything\n on(elem, type, func);\n}\nvar Events = /*#__PURE__*/Object.freeze({\n __proto__: null,\n fixEvent: fixEvent,\n on: on,\n off: off,\n trigger: trigger,\n one: one,\n any: any\n});\n\n/**\n * @file fn.js\n * @module fn\n */\nconst UPDATE_REFRESH_INTERVAL = 30;\n\n/**\n * A private, internal-only function for changing the context of a function.\n *\n * It also stores a unique id on the function so it can be easily removed from\n * events.\n *\n * @private\n * @function\n * @param {*} context\n * The object to bind as scope.\n *\n * @param {Function} fn\n * The function to be bound to a scope.\n *\n * @param {number} [uid]\n * An optional unique ID for the function to be set\n *\n * @return {Function}\n * The new function that will be bound into the context given\n */\nconst bind_ = function (context, fn, uid) {\n // Make sure the function has a unique ID\n if (!fn.guid) {\n fn.guid = newGUID();\n }\n\n // Create the new function that changes the context\n const bound = fn.bind(context);\n\n // Allow for the ability to individualize this function\n // Needed in the case where multiple objects might share the same prototype\n // IF both items add an event listener with the same function, then you try to remove just one\n // it will remove both because they both have the same guid.\n // when using this, you need to use the bind method when you remove the listener as well.\n // currently used in text tracks\n bound.guid = uid ? uid + '_' + fn.guid : fn.guid;\n return bound;\n};\n\n/**\n * Wraps the given function, `fn`, with a new function that only invokes `fn`\n * at most once per every `wait` milliseconds.\n *\n * @function\n * @param {Function} fn\n * The function to be throttled.\n *\n * @param {number} wait\n * The number of milliseconds by which to throttle.\n *\n * @return {Function}\n */\nconst throttle = function (fn, wait) {\n let last = window$1.performance.now();\n const throttled = function () {\n const now = window$1.performance.now();\n if (now - last >= wait) {\n fn(...arguments);\n last = now;\n }\n };\n return throttled;\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked.\n *\n * Inspired by lodash and underscore implementations.\n *\n * @function\n * @param {Function} func\n * The function to wrap with debounce behavior.\n *\n * @param {number} wait\n * The number of milliseconds to wait after the last invocation.\n *\n * @param {boolean} [immediate]\n * Whether or not to invoke the function immediately upon creation.\n *\n * @param {Object} [context=window]\n * The \"context\" in which the debounced function should debounce. For\n * example, if this function should be tied to a Video.js player,\n * the player can be passed here. Alternatively, defaults to the\n * global `window` object.\n *\n * @return {Function}\n * A debounced function.\n */\nconst debounce = function (func, wait, immediate) {\n let context = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : window$1;\n let timeout;\n const cancel = () => {\n context.clearTimeout(timeout);\n timeout = null;\n };\n\n /* eslint-disable consistent-this */\n const debounced = function () {\n const self = this;\n const args = arguments;\n let later = function () {\n timeout = null;\n later = null;\n if (!immediate) {\n func.apply(self, args);\n }\n };\n if (!timeout && immediate) {\n func.apply(self, args);\n }\n context.clearTimeout(timeout);\n timeout = context.setTimeout(later, wait);\n };\n /* eslint-enable consistent-this */\n\n debounced.cancel = cancel;\n return debounced;\n};\nvar Fn = /*#__PURE__*/Object.freeze({\n __proto__: null,\n UPDATE_REFRESH_INTERVAL: UPDATE_REFRESH_INTERVAL,\n bind_: bind_,\n throttle: throttle,\n debounce: debounce\n});\n\n/**\n * @file src/js/event-target.js\n */\nlet EVENT_MAP;\n\n/**\n * `EventTarget` is a class that can have the same API as the DOM `EventTarget`. It\n * adds shorthand functions that wrap around lengthy functions. For example:\n * the `on` function is a wrapper around `addEventListener`.\n *\n * @see [EventTarget Spec]{@link https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget}\n * @class EventTarget\n */\nclass EventTarget$2 {\n /**\n * Adds an `event listener` to an instance of an `EventTarget`. An `event listener` is a\n * function that will get called when an event with a certain name gets triggered.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to call with `EventTarget`s\n */\n on(type, fn) {\n // Remove the addEventListener alias before calling Events.on\n // so we don't get into an infinite type loop\n const ael = this.addEventListener;\n this.addEventListener = () => {};\n on(this, type, fn);\n this.addEventListener = ael;\n }\n /**\n * Removes an `event listener` for a specific event from an instance of `EventTarget`.\n * This makes it so that the `event listener` will no longer get called when the\n * named event happens.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to remove.\n */\n off(type, fn) {\n off(this, type, fn);\n }\n /**\n * This function will add an `event listener` that gets triggered only once. After the\n * first trigger it will get removed. This is like adding an `event listener`\n * with {@link EventTarget#on} that calls {@link EventTarget#off} on itself.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to be called once for each event name.\n */\n one(type, fn) {\n // Remove the addEventListener aliasing Events.on\n // so we don't get into an infinite type loop\n const ael = this.addEventListener;\n this.addEventListener = () => {};\n one(this, type, fn);\n this.addEventListener = ael;\n }\n /**\n * This function will add an `event listener` that gets triggered only once and is\n * removed from all events. This is like adding an array of `event listener`s\n * with {@link EventTarget#on} that calls {@link EventTarget#off} on all events the\n * first time it is triggered.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to be called once for each event name.\n */\n any(type, fn) {\n // Remove the addEventListener aliasing Events.on\n // so we don't get into an infinite type loop\n const ael = this.addEventListener;\n this.addEventListener = () => {};\n any(this, type, fn);\n this.addEventListener = ael;\n }\n /**\n * This function causes an event to happen. This will then cause any `event listeners`\n * that are waiting for that event, to get called. If there are no `event listeners`\n * for an event then nothing will happen.\n *\n * If the name of the `Event` that is being triggered is in `EventTarget.allowedEvents_`.\n * Trigger will also call the `on` + `uppercaseEventName` function.\n *\n * Example:\n * 'click' is in `EventTarget.allowedEvents_`, so, trigger will attempt to call\n * `onClick` if it exists.\n *\n * @param {string|EventTarget~Event|Object} event\n * The name of the event, an `Event`, or an object with a key of type set to\n * an event name.\n */\n trigger(event) {\n const type = event.type || event;\n\n // deprecation\n // In a future version we should default target to `this`\n // similar to how we default the target to `elem` in\n // `Events.trigger`. Right now the default `target` will be\n // `document` due to the `Event.fixEvent` call.\n if (typeof event === 'string') {\n event = {\n type\n };\n }\n event = fixEvent(event);\n if (this.allowedEvents_[type] && this['on' + type]) {\n this['on' + type](event);\n }\n trigger(this, event);\n }\n queueTrigger(event) {\n // only set up EVENT_MAP if it'll be used\n if (!EVENT_MAP) {\n EVENT_MAP = new Map();\n }\n const type = event.type || event;\n let map = EVENT_MAP.get(this);\n if (!map) {\n map = new Map();\n EVENT_MAP.set(this, map);\n }\n const oldTimeout = map.get(type);\n map.delete(type);\n window$1.clearTimeout(oldTimeout);\n const timeout = window$1.setTimeout(() => {\n map.delete(type);\n // if we cleared out all timeouts for the current target, delete its map\n if (map.size === 0) {\n map = null;\n EVENT_MAP.delete(this);\n }\n this.trigger(event);\n }, 0);\n map.set(type, timeout);\n }\n}\n\n/**\n * A Custom DOM event.\n *\n * @typedef {CustomEvent} Event\n * @see [Properties]{@link https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent}\n */\n\n/**\n * All event listeners should follow the following format.\n *\n * @callback EventListener\n * @this {EventTarget}\n *\n * @param {Event} event\n * the event that triggered this function\n *\n * @param {Object} [hash]\n * hash of data sent during the event\n */\n\n/**\n * An object containing event names as keys and booleans as values.\n *\n * > NOTE: If an event name is set to a true value here {@link EventTarget#trigger}\n * will have extra functionality. See that function for more information.\n *\n * @property EventTarget.prototype.allowedEvents_\n * @protected\n */\nEventTarget$2.prototype.allowedEvents_ = {};\n\n/**\n * An alias of {@link EventTarget#on}. Allows `EventTarget` to mimic\n * the standard DOM API.\n *\n * @function\n * @see {@link EventTarget#on}\n */\nEventTarget$2.prototype.addEventListener = EventTarget$2.prototype.on;\n\n/**\n * An alias of {@link EventTarget#off}. Allows `EventTarget` to mimic\n * the standard DOM API.\n *\n * @function\n * @see {@link EventTarget#off}\n */\nEventTarget$2.prototype.removeEventListener = EventTarget$2.prototype.off;\n\n/**\n * An alias of {@link EventTarget#trigger}. Allows `EventTarget` to mimic\n * the standard DOM API.\n *\n * @function\n * @see {@link EventTarget#trigger}\n */\nEventTarget$2.prototype.dispatchEvent = EventTarget$2.prototype.trigger;\n\n/**\n * @file mixins/evented.js\n * @module evented\n */\nconst objName = obj => {\n if (typeof obj.name === 'function') {\n return obj.name();\n }\n if (typeof obj.name === 'string') {\n return obj.name;\n }\n if (obj.name_) {\n return obj.name_;\n }\n if (obj.constructor && obj.constructor.name) {\n return obj.constructor.name;\n }\n return typeof obj;\n};\n\n/**\n * Returns whether or not an object has had the evented mixin applied.\n *\n * @param {Object} object\n * An object to test.\n *\n * @return {boolean}\n * Whether or not the object appears to be evented.\n */\nconst isEvented = object => object instanceof EventTarget$2 || !!object.eventBusEl_ && ['on', 'one', 'off', 'trigger'].every(k => typeof object[k] === 'function');\n\n/**\n * Adds a callback to run after the evented mixin applied.\n *\n * @param {Object} target\n * An object to Add\n * @param {Function} callback\n * The callback to run.\n */\nconst addEventedCallback = (target, callback) => {\n if (isEvented(target)) {\n callback();\n } else {\n if (!target.eventedCallbacks) {\n target.eventedCallbacks = [];\n }\n target.eventedCallbacks.push(callback);\n }\n};\n\n/**\n * Whether a value is a valid event type - non-empty string or array.\n *\n * @private\n * @param {string|Array} type\n * The type value to test.\n *\n * @return {boolean}\n * Whether or not the type is a valid event type.\n */\nconst isValidEventType = type =>\n// The regex here verifies that the `type` contains at least one non-\n// whitespace character.\ntypeof type === 'string' && /\\S/.test(type) || Array.isArray(type) && !!type.length;\n\n/**\n * Validates a value to determine if it is a valid event target. Throws if not.\n *\n * @private\n * @throws {Error}\n * If the target does not appear to be a valid event target.\n *\n * @param {Object} target\n * The object to test.\n *\n * @param {Object} obj\n * The evented object we are validating for\n *\n * @param {string} fnName\n * The name of the evented mixin function that called this.\n */\nconst validateTarget = (target, obj, fnName) => {\n if (!target || !target.nodeName && !isEvented(target)) {\n throw new Error(`Invalid target for ${objName(obj)}#${fnName}; must be a DOM node or evented object.`);\n }\n};\n\n/**\n * Validates a value to determine if it is a valid event target. Throws if not.\n *\n * @private\n * @throws {Error}\n * If the type does not appear to be a valid event type.\n *\n * @param {string|Array} type\n * The type to test.\n *\n * @param {Object} obj\n* The evented object we are validating for\n *\n * @param {string} fnName\n * The name of the evented mixin function that called this.\n */\nconst validateEventType = (type, obj, fnName) => {\n if (!isValidEventType(type)) {\n throw new Error(`Invalid event type for ${objName(obj)}#${fnName}; must be a non-empty string or array.`);\n }\n};\n\n/**\n * Validates a value to determine if it is a valid listener. Throws if not.\n *\n * @private\n * @throws {Error}\n * If the listener is not a function.\n *\n * @param {Function} listener\n * The listener to test.\n *\n * @param {Object} obj\n * The evented object we are validating for\n *\n * @param {string} fnName\n * The name of the evented mixin function that called this.\n */\nconst validateListener = (listener, obj, fnName) => {\n if (typeof listener !== 'function') {\n throw new Error(`Invalid listener for ${objName(obj)}#${fnName}; must be a function.`);\n }\n};\n\n/**\n * Takes an array of arguments given to `on()` or `one()`, validates them, and\n * normalizes them into an object.\n *\n * @private\n * @param {Object} self\n * The evented object on which `on()` or `one()` was called. This\n * object will be bound as the `this` value for the listener.\n *\n * @param {Array} args\n * An array of arguments passed to `on()` or `one()`.\n *\n * @param {string} fnName\n * The name of the evented mixin function that called this.\n *\n * @return {Object}\n * An object containing useful values for `on()` or `one()` calls.\n */\nconst normalizeListenArgs = (self, args, fnName) => {\n // If the number of arguments is less than 3, the target is always the\n // evented object itself.\n const isTargetingSelf = args.length < 3 || args[0] === self || args[0] === self.eventBusEl_;\n let target;\n let type;\n let listener;\n if (isTargetingSelf) {\n target = self.eventBusEl_;\n\n // Deal with cases where we got 3 arguments, but we are still listening to\n // the evented object itself.\n if (args.length >= 3) {\n args.shift();\n }\n var _args = _slicedToArray(args, 2);\n type = _args[0];\n listener = _args[1];\n } else {\n var _args2 = _slicedToArray(args, 3);\n target = _args2[0];\n type = _args2[1];\n listener = _args2[2];\n }\n validateTarget(target, self, fnName);\n validateEventType(type, self, fnName);\n validateListener(listener, self, fnName);\n listener = bind_(self, listener);\n return {\n isTargetingSelf,\n target,\n type,\n listener\n };\n};\n\n/**\n * Adds the listener to the event type(s) on the target, normalizing for\n * the type of target.\n *\n * @private\n * @param {Element|Object} target\n * A DOM node or evented object.\n *\n * @param {string} method\n * The event binding method to use (\"on\" or \"one\").\n *\n * @param {string|Array} type\n * One or more event type(s).\n *\n * @param {Function} listener\n * A listener function.\n */\nconst listen = (target, method, type, listener) => {\n validateTarget(target, target, method);\n if (target.nodeName) {\n Events[method](target, type, listener);\n } else {\n target[method](type, listener);\n }\n};\n\n/**\n * Contains methods that provide event capabilities to an object which is passed\n * to {@link module:evented|evented}.\n *\n * @mixin EventedMixin\n */\nconst EventedMixin = {\n /**\n * Add a listener to an event (or events) on this object or another evented\n * object.\n *\n * @param {string|Array|Element|Object} targetOrType\n * If this is a string or array, it represents the event type(s)\n * that will trigger the listener.\n *\n * Another evented object can be passed here instead, which will\n * cause the listener to listen for events on _that_ object.\n *\n * In either case, the listener's `this` value will be bound to\n * this object.\n *\n * @param {string|Array|Function} typeOrListener\n * If the first argument was a string or array, this should be the\n * listener function. Otherwise, this is a string or array of event\n * type(s).\n *\n * @param {Function} [listener]\n * If the first argument was another evented object, this will be\n * the listener function.\n */\n on() {\n for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {\n args[_key8] = arguments[_key8];\n }\n const _normalizeListenArgs = normalizeListenArgs(this, args, 'on'),\n isTargetingSelf = _normalizeListenArgs.isTargetingSelf,\n target = _normalizeListenArgs.target,\n type = _normalizeListenArgs.type,\n listener = _normalizeListenArgs.listener;\n listen(target, 'on', type, listener);\n\n // If this object is listening to another evented object.\n if (!isTargetingSelf) {\n // If this object is disposed, remove the listener.\n const removeListenerOnDispose = () => this.off(target, type, listener);\n\n // Use the same function ID as the listener so we can remove it later it\n // using the ID of the original listener.\n removeListenerOnDispose.guid = listener.guid;\n\n // Add a listener to the target's dispose event as well. This ensures\n // that if the target is disposed BEFORE this object, we remove the\n // removal listener that was just added. Otherwise, we create a memory leak.\n const removeRemoverOnTargetDispose = () => this.off('dispose', removeListenerOnDispose);\n\n // Use the same function ID as the listener so we can remove it later\n // it using the ID of the original listener.\n removeRemoverOnTargetDispose.guid = listener.guid;\n listen(this, 'on', 'dispose', removeListenerOnDispose);\n listen(target, 'on', 'dispose', removeRemoverOnTargetDispose);\n }\n },\n /**\n * Add a listener to an event (or events) on this object or another evented\n * object. The listener will be called once per event and then removed.\n *\n * @param {string|Array|Element|Object} targetOrType\n * If this is a string or array, it represents the event type(s)\n * that will trigger the listener.\n *\n * Another evented object can be passed here instead, which will\n * cause the listener to listen for events on _that_ object.\n *\n * In either case, the listener's `this` value will be bound to\n * this object.\n *\n * @param {string|Array|Function} typeOrListener\n * If the first argument was a string or array, this should be the\n * listener function. Otherwise, this is a string or array of event\n * type(s).\n *\n * @param {Function} [listener]\n * If the first argument was another evented object, this will be\n * the listener function.\n */\n one() {\n var _this = this;\n for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {\n args[_key9] = arguments[_key9];\n }\n const _normalizeListenArgs2 = normalizeListenArgs(this, args, 'one'),\n isTargetingSelf = _normalizeListenArgs2.isTargetingSelf,\n target = _normalizeListenArgs2.target,\n type = _normalizeListenArgs2.type,\n listener = _normalizeListenArgs2.listener;\n\n // Targeting this evented object.\n if (isTargetingSelf) {\n listen(target, 'one', type, listener);\n\n // Targeting another evented object.\n } else {\n // TODO: This wrapper is incorrect! It should only\n // remove the wrapper for the event type that called it.\n // Instead all listeners are removed on the first trigger!\n // see https://github.com/videojs/video.js/issues/5962\n const wrapper = function () {\n _this.off(target, type, wrapper);\n for (var _len10 = arguments.length, largs = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {\n largs[_key10] = arguments[_key10];\n }\n listener.apply(null, largs);\n };\n\n // Use the same function ID as the listener so we can remove it later\n // it using the ID of the original listener.\n wrapper.guid = listener.guid;\n listen(target, 'one', type, wrapper);\n }\n },\n /**\n * Add a listener to an event (or events) on this object or another evented\n * object. The listener will only be called once for the first event that is triggered\n * then removed.\n *\n * @param {string|Array|Element|Object} targetOrType\n * If this is a string or array, it represents the event type(s)\n * that will trigger the listener.\n *\n * Another evented object can be passed here instead, which will\n * cause the listener to listen for events on _that_ object.\n *\n * In either case, the listener's `this` value will be bound to\n * this object.\n *\n * @param {string|Array|Function} typeOrListener\n * If the first argument was a string or array, this should be the\n * listener function. Otherwise, this is a string or array of event\n * type(s).\n *\n * @param {Function} [listener]\n * If the first argument was another evented object, this will be\n * the listener function.\n */\n any() {\n var _this2 = this;\n for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {\n args[_key11] = arguments[_key11];\n }\n const _normalizeListenArgs3 = normalizeListenArgs(this, args, 'any'),\n isTargetingSelf = _normalizeListenArgs3.isTargetingSelf,\n target = _normalizeListenArgs3.target,\n type = _normalizeListenArgs3.type,\n listener = _normalizeListenArgs3.listener;\n\n // Targeting this evented object.\n if (isTargetingSelf) {\n listen(target, 'any', type, listener);\n\n // Targeting another evented object.\n } else {\n const wrapper = function () {\n _this2.off(target, type, wrapper);\n for (var _len12 = arguments.length, largs = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {\n largs[_key12] = arguments[_key12];\n }\n listener.apply(null, largs);\n };\n\n // Use the same function ID as the listener so we can remove it later\n // it using the ID of the original listener.\n wrapper.guid = listener.guid;\n listen(target, 'any', type, wrapper);\n }\n },\n /**\n * Removes listener(s) from event(s) on an evented object.\n *\n * @param {string|Array|Element|Object} [targetOrType]\n * If this is a string or array, it represents the event type(s).\n *\n * Another evented object can be passed here instead, in which case\n * ALL 3 arguments are _required_.\n *\n * @param {string|Array|Function} [typeOrListener]\n * If the first argument was a string or array, this may be the\n * listener function. Otherwise, this is a string or array of event\n * type(s).\n *\n * @param {Function} [listener]\n * If the first argument was another evented object, this will be\n * the listener function; otherwise, _all_ listeners bound to the\n * event type(s) will be removed.\n */\n off(targetOrType, typeOrListener, listener) {\n // Targeting this evented object.\n if (!targetOrType || isValidEventType(targetOrType)) {\n off(this.eventBusEl_, targetOrType, typeOrListener);\n\n // Targeting another evented object.\n } else {\n const target = targetOrType;\n const type = typeOrListener;\n\n // Fail fast and in a meaningful way!\n validateTarget(target, this, 'off');\n validateEventType(type, this, 'off');\n validateListener(listener, this, 'off');\n\n // Ensure there's at least a guid, even if the function hasn't been used\n listener = bind_(this, listener);\n\n // Remove the dispose listener on this evented object, which was given\n // the same guid as the event listener in on().\n this.off('dispose', listener);\n if (target.nodeName) {\n off(target, type, listener);\n off(target, 'dispose', listener);\n } else if (isEvented(target)) {\n target.off(type, listener);\n target.off('dispose', listener);\n }\n }\n },\n /**\n * Fire an event on this evented object, causing its listeners to be called.\n *\n * @param {string|Object} event\n * An event type or an object with a type property.\n *\n * @param {Object} [hash]\n * An additional object to pass along to listeners.\n *\n * @return {boolean}\n * Whether or not the default behavior was prevented.\n */\n trigger(event, hash) {\n validateTarget(this.eventBusEl_, this, 'trigger');\n const type = event && typeof event !== 'string' ? event.type : event;\n if (!isValidEventType(type)) {\n throw new Error(`Invalid event type for ${objName(this)}#trigger; ` + 'must be a non-empty string or object with a type key that has a non-empty value.');\n }\n return trigger(this.eventBusEl_, event, hash);\n }\n};\n\n/**\n * Applies {@link module:evented~EventedMixin|EventedMixin} to a target object.\n *\n * @param {Object} target\n * The object to which to add event methods.\n *\n * @param {Object} [options={}]\n * Options for customizing the mixin behavior.\n *\n * @param {string} [options.eventBusKey]\n * By default, adds a `eventBusEl_` DOM element to the target object,\n * which is used as an event bus. If the target object already has a\n * DOM element that should be used, pass its key here.\n *\n * @return {Object}\n * The target object.\n */\nfunction evented(target) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const eventBusKey = options.eventBusKey;\n\n // Set or create the eventBusEl_.\n if (eventBusKey) {\n if (!target[eventBusKey].nodeName) {\n throw new Error(`The eventBusKey \"${eventBusKey}\" does not refer to an element.`);\n }\n target.eventBusEl_ = target[eventBusKey];\n } else {\n target.eventBusEl_ = createEl('span', {\n className: 'vjs-event-bus'\n });\n }\n Object.assign(target, EventedMixin);\n if (target.eventedCallbacks) {\n target.eventedCallbacks.forEach(callback => {\n callback();\n });\n }\n\n // When any evented object is disposed, it removes all its listeners.\n target.on('dispose', () => {\n target.off();\n [target, target.el_, target.eventBusEl_].forEach(function (val) {\n if (val && DomData.has(val)) {\n DomData.delete(val);\n }\n });\n window$1.setTimeout(() => {\n target.eventBusEl_ = null;\n }, 0);\n });\n return target;\n}\n\n/**\n * @file mixins/stateful.js\n * @module stateful\n */\n\n/**\n * Contains methods that provide statefulness to an object which is passed\n * to {@link module:stateful}.\n *\n * @mixin StatefulMixin\n */\nconst StatefulMixin = {\n /**\n * A hash containing arbitrary keys and values representing the state of\n * the object.\n *\n * @type {Object}\n */\n state: {},\n /**\n * Set the state of an object by mutating its\n * {@link module:stateful~StatefulMixin.state|state} object in place.\n *\n * @fires module:stateful~StatefulMixin#statechanged\n * @param {Object|Function} stateUpdates\n * A new set of properties to shallow-merge into the plugin state.\n * Can be a plain object or a function returning a plain object.\n *\n * @return {Object|undefined}\n * An object containing changes that occurred. If no changes\n * occurred, returns `undefined`.\n */\n setState(stateUpdates) {\n // Support providing the `stateUpdates` state as a function.\n if (typeof stateUpdates === 'function') {\n stateUpdates = stateUpdates();\n }\n let changes;\n each(stateUpdates, (value, key) => {\n // Record the change if the value is different from what's in the\n // current state.\n if (this.state[key] !== value) {\n changes = changes || {};\n changes[key] = {\n from: this.state[key],\n to: value\n };\n }\n this.state[key] = value;\n });\n\n // Only trigger \"statechange\" if there were changes AND we have a trigger\n // function. This allows us to not require that the target object be an\n // evented object.\n if (changes && isEvented(this)) {\n /**\n * An event triggered on an object that is both\n * {@link module:stateful|stateful} and {@link module:evented|evented}\n * indicating that its state has changed.\n *\n * @event module:stateful~StatefulMixin#statechanged\n * @type {Object}\n * @property {Object} changes\n * A hash containing the properties that were changed and\n * the values they were changed `from` and `to`.\n */\n this.trigger({\n changes,\n type: 'statechanged'\n });\n }\n return changes;\n }\n};\n\n/**\n * Applies {@link module:stateful~StatefulMixin|StatefulMixin} to a target\n * object.\n *\n * If the target object is {@link module:evented|evented} and has a\n * `handleStateChanged` method, that method will be automatically bound to the\n * `statechanged` event on itself.\n *\n * @param {Object} target\n * The object to be made stateful.\n *\n * @param {Object} [defaultState]\n * A default set of properties to populate the newly-stateful object's\n * `state` property.\n *\n * @return {Object}\n * Returns the `target`.\n */\nfunction stateful(target, defaultState) {\n Object.assign(target, StatefulMixin);\n\n // This happens after the mixing-in because we need to replace the `state`\n // added in that step.\n target.state = Object.assign({}, target.state, defaultState);\n\n // Auto-bind the `handleStateChanged` method of the target object if it exists.\n if (typeof target.handleStateChanged === 'function' && isEvented(target)) {\n target.on('statechanged', target.handleStateChanged);\n }\n return target;\n}\n\n/**\n * @file str.js\n * @module to-lower-case\n */\n\n/**\n * Lowercase the first letter of a string.\n *\n * @param {string} string\n * String to be lowercased\n *\n * @return {string}\n * The string with a lowercased first letter\n */\nconst toLowerCase = function (string) {\n if (typeof string !== 'string') {\n return string;\n }\n return string.replace(/./, w => w.toLowerCase());\n};\n\n/**\n * Uppercase the first letter of a string.\n *\n * @param {string} string\n * String to be uppercased\n *\n * @return {string}\n * The string with an uppercased first letter\n */\nconst toTitleCase$1 = function (string) {\n if (typeof string !== 'string') {\n return string;\n }\n return string.replace(/./, w => w.toUpperCase());\n};\n\n/**\n * Compares the TitleCase versions of the two strings for equality.\n *\n * @param {string} str1\n * The first string to compare\n *\n * @param {string} str2\n * The second string to compare\n *\n * @return {boolean}\n * Whether the TitleCase versions of the strings are equal\n */\nconst titleCaseEquals = function (str1, str2) {\n return toTitleCase$1(str1) === toTitleCase$1(str2);\n};\nvar Str = /*#__PURE__*/Object.freeze({\n __proto__: null,\n toLowerCase: toLowerCase,\n toTitleCase: toTitleCase$1,\n titleCaseEquals: titleCaseEquals\n});\n\n/**\n * Player Component - Base class for all UI objects\n *\n * @file component.js\n */\n\n/**\n * Base class for all UI Components.\n * Components are UI objects which represent both a javascript object and an element\n * in the DOM. They can be children of other components, and can have\n * children themselves.\n *\n * Components can also use methods from {@link EventTarget}\n */\nclass Component$1 {\n /**\n * A callback that is called when a component is ready. Does not have any\n * parameters and any callback value will be ignored.\n *\n * @callback ReadyCallback\n * @this Component\n */\n\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of component options.\n *\n * @param {Object[]} [options.children]\n * An array of children objects to initialize this component with. Children objects have\n * a name property that will be used if more than one component of the same type needs to be\n * added.\n *\n * @param {string} [options.className]\n * A class or space separated list of classes to add the component\n *\n * @param {ReadyCallback} [ready]\n * Function that gets called when the `Component` is ready.\n */\n constructor(player, options, ready) {\n // The component might be the player itself and we can't pass `this` to super\n if (!player && this.play) {\n this.player_ = player = this; // eslint-disable-line\n } else {\n this.player_ = player;\n }\n this.isDisposed_ = false;\n\n // Hold the reference to the parent component via `addChild` method\n this.parentComponent_ = null;\n\n // Make a copy of prototype.options_ to protect against overriding defaults\n this.options_ = merge$1({}, this.options_);\n\n // Updated options with supplied options\n options = this.options_ = merge$1(this.options_, options);\n\n // Get ID from options or options element if one is supplied\n this.id_ = options.id || options.el && options.el.id;\n\n // If there was no ID from the options, generate one\n if (!this.id_) {\n // Don't require the player ID function in the case of mock players\n const id = player && player.id && player.id() || 'no_player';\n this.id_ = `${id}_component_${newGUID()}`;\n }\n this.name_ = options.name || null;\n\n // Create element if one wasn't provided in options\n if (options.el) {\n this.el_ = options.el;\n } else if (options.createEl !== false) {\n this.el_ = this.createEl();\n }\n if (options.className && this.el_) {\n options.className.split(' ').forEach(c => this.addClass(c));\n }\n\n // Remove the placeholder event methods. If the component is evented, the\n // real methods are added next\n ['on', 'off', 'one', 'any', 'trigger'].forEach(fn => {\n this[fn] = undefined;\n });\n\n // if evented is anything except false, we want to mixin in evented\n if (options.evented !== false) {\n // Make this an evented object and use `el_`, if available, as its event bus\n evented(this, {\n eventBusKey: this.el_ ? 'el_' : null\n });\n this.handleLanguagechange = this.handleLanguagechange.bind(this);\n this.on(this.player_, 'languagechange', this.handleLanguagechange);\n }\n stateful(this, this.constructor.defaultState);\n this.children_ = [];\n this.childIndex_ = {};\n this.childNameIndex_ = {};\n this.setTimeoutIds_ = new Set();\n this.setIntervalIds_ = new Set();\n this.rafIds_ = new Set();\n this.namedRafs_ = new Map();\n this.clearingTimersOnDispose_ = false;\n\n // Add any child components in options\n if (options.initChildren !== false) {\n this.initChildren();\n }\n\n // Don't want to trigger ready here or it will go before init is actually\n // finished for all children that run this constructor\n this.ready(ready);\n if (options.reportTouchActivity !== false) {\n this.enableTouchActivity();\n }\n }\n\n // `on`, `off`, `one`, `any` and `trigger` are here so tsc includes them in definitions.\n // They are replaced or removed in the constructor\n\n /**\n * Adds an `event listener` to an instance of an `EventTarget`. An `event listener` is a\n * function that will get called when an event with a certain name gets triggered.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to call with `EventTarget`s\n */\n on(type, fn) {}\n\n /**\n * Removes an `event listener` for a specific event from an instance of `EventTarget`.\n * This makes it so that the `event listener` will no longer get called when the\n * named event happens.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} [fn]\n * The function to remove. If not specified, all listeners managed by Video.js will be removed.\n */\n off(type, fn) {}\n\n /**\n * This function will add an `event listener` that gets triggered only once. After the\n * first trigger it will get removed. This is like adding an `event listener`\n * with {@link EventTarget#on} that calls {@link EventTarget#off} on itself.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to be called once for each event name.\n */\n one(type, fn) {}\n\n /**\n * This function will add an `event listener` that gets triggered only once and is\n * removed from all events. This is like adding an array of `event listener`s\n * with {@link EventTarget#on} that calls {@link EventTarget#off} on all events the\n * first time it is triggered.\n *\n * @param {string|string[]} type\n * An event name or an array of event names.\n *\n * @param {Function} fn\n * The function to be called once for each event name.\n */\n any(type, fn) {}\n\n /**\n * This function causes an event to happen. This will then cause any `event listeners`\n * that are waiting for that event, to get called. If there are no `event listeners`\n * for an event then nothing will happen.\n *\n * If the name of the `Event` that is being triggered is in `EventTarget.allowedEvents_`.\n * Trigger will also call the `on` + `uppercaseEventName` function.\n *\n * Example:\n * 'click' is in `EventTarget.allowedEvents_`, so, trigger will attempt to call\n * `onClick` if it exists.\n *\n * @param {string|Event|Object} event\n * The name of the event, an `Event`, or an object with a key of type set to\n * an event name.\n *\n * @param {Object} [hash]\n * Optionally extra argument to pass through to an event listener\n */\n trigger(event, hash) {}\n\n /**\n * Dispose of the `Component` and all child components.\n *\n * @fires Component#dispose\n *\n * @param {Object} options\n * @param {Element} options.originalEl element with which to replace player element\n */\n dispose() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n // Bail out if the component has already been disposed.\n if (this.isDisposed_) {\n return;\n }\n if (this.readyQueue_) {\n this.readyQueue_.length = 0;\n }\n\n /**\n * Triggered when a `Component` is disposed.\n *\n * @event Component#dispose\n * @type {Event}\n *\n * @property {boolean} [bubbles=false]\n * set to false so that the dispose event does not\n * bubble up\n */\n this.trigger({\n type: 'dispose',\n bubbles: false\n });\n this.isDisposed_ = true;\n\n // Dispose all children.\n if (this.children_) {\n for (let i = this.children_.length - 1; i >= 0; i--) {\n if (this.children_[i].dispose) {\n this.children_[i].dispose();\n }\n }\n }\n\n // Delete child references\n this.children_ = null;\n this.childIndex_ = null;\n this.childNameIndex_ = null;\n this.parentComponent_ = null;\n if (this.el_) {\n // Remove element from DOM\n if (this.el_.parentNode) {\n if (options.restoreEl) {\n this.el_.parentNode.replaceChild(options.restoreEl, this.el_);\n } else {\n this.el_.parentNode.removeChild(this.el_);\n }\n }\n this.el_ = null;\n }\n\n // remove reference to the player after disposing of the element\n this.player_ = null;\n }\n\n /**\n * Determine whether or not this component has been disposed.\n *\n * @return {boolean}\n * If the component has been disposed, will be `true`. Otherwise, `false`.\n */\n isDisposed() {\n return Boolean(this.isDisposed_);\n }\n\n /**\n * Return the {@link Player} that the `Component` has attached to.\n *\n * @return { import('./player').default }\n * The player that this `Component` has attached to.\n */\n player() {\n return this.player_;\n }\n\n /**\n * Deep merge of options objects with new options.\n * > Note: When both `obj` and `options` contain properties whose values are objects.\n * The two properties get merged using {@link module:obj.merge}\n *\n * @param {Object} obj\n * The object that contains new options.\n *\n * @return {Object}\n * A new object of `this.options_` and `obj` merged together.\n */\n options(obj) {\n if (!obj) {\n return this.options_;\n }\n this.options_ = merge$1(this.options_, obj);\n return this.options_;\n }\n\n /**\n * Get the `Component`s DOM element\n *\n * @return {Element}\n * The DOM element for this `Component`.\n */\n el() {\n return this.el_;\n }\n\n /**\n * Create the `Component`s DOM element.\n *\n * @param {string} [tagName]\n * Element's DOM node type. e.g. 'div'\n *\n * @param {Object} [properties]\n * An object of properties that should be set.\n *\n * @param {Object} [attributes]\n * An object of attributes that should be set.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl(tagName, properties, attributes) {\n return createEl(tagName, properties, attributes);\n }\n\n /**\n * Localize a string given the string in english.\n *\n * If tokens are provided, it'll try and run a simple token replacement on the provided string.\n * The tokens it looks for look like `{1}` with the index being 1-indexed into the tokens array.\n *\n * If a `defaultValue` is provided, it'll use that over `string`,\n * if a value isn't found in provided language files.\n * This is useful if you want to have a descriptive key for token replacement\n * but have a succinct localized string and not require `en.json` to be included.\n *\n * Currently, it is used for the progress bar timing.\n * ```js\n * {\n * \"progress bar timing: currentTime={1} duration={2}\": \"{1} of {2}\"\n * }\n * ```\n * It is then used like so:\n * ```js\n * this.localize('progress bar timing: currentTime={1} duration{2}',\n * [this.player_.currentTime(), this.player_.duration()],\n * '{1} of {2}');\n * ```\n *\n * Which outputs something like: `01:23 of 24:56`.\n *\n *\n * @param {string} string\n * The string to localize and the key to lookup in the language files.\n * @param {string[]} [tokens]\n * If the current item has token replacements, provide the tokens here.\n * @param {string} [defaultValue]\n * Defaults to `string`. Can be a default value to use for token replacement\n * if the lookup key is needed to be separate.\n *\n * @return {string}\n * The localized string or if no localization exists the english string.\n */\n localize(string, tokens) {\n let defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : string;\n const code = this.player_.language && this.player_.language();\n const languages = this.player_.languages && this.player_.languages();\n const language = languages && languages[code];\n const primaryCode = code && code.split('-')[0];\n const primaryLang = languages && languages[primaryCode];\n let localizedString = defaultValue;\n if (language && language[string]) {\n localizedString = language[string];\n } else if (primaryLang && primaryLang[string]) {\n localizedString = primaryLang[string];\n }\n if (tokens) {\n localizedString = localizedString.replace(/\\{(\\d+)\\}/g, function (match, index) {\n const value = tokens[index - 1];\n let ret = value;\n if (typeof value === 'undefined') {\n ret = match;\n }\n return ret;\n });\n }\n return localizedString;\n }\n\n /**\n * Handles language change for the player in components. Should be overridden by sub-components.\n *\n * @abstract\n */\n handleLanguagechange() {}\n\n /**\n * Return the `Component`s DOM element. This is where children get inserted.\n * This will usually be the the same as the element returned in {@link Component#el}.\n *\n * @return {Element}\n * The content element for this `Component`.\n */\n contentEl() {\n return this.contentEl_ || this.el_;\n }\n\n /**\n * Get this `Component`s ID\n *\n * @return {string}\n * The id of this `Component`\n */\n id() {\n return this.id_;\n }\n\n /**\n * Get the `Component`s name. The name gets used to reference the `Component`\n * and is set during registration.\n *\n * @return {string}\n * The name of this `Component`.\n */\n name() {\n return this.name_;\n }\n\n /**\n * Get an array of all child components\n *\n * @return {Array}\n * The children\n */\n children() {\n return this.children_;\n }\n\n /**\n * Returns the child `Component` with the given `id`.\n *\n * @param {string} id\n * The id of the child `Component` to get.\n *\n * @return {Component|undefined}\n * The child `Component` with the given `id` or undefined.\n */\n getChildById(id) {\n return this.childIndex_[id];\n }\n\n /**\n * Returns the child `Component` with the given `name`.\n *\n * @param {string} name\n * The name of the child `Component` to get.\n *\n * @return {Component|undefined}\n * The child `Component` with the given `name` or undefined.\n */\n getChild(name) {\n if (!name) {\n return;\n }\n return this.childNameIndex_[name];\n }\n\n /**\n * Returns the descendant `Component` following the givent\n * descendant `names`. For instance ['foo', 'bar', 'baz'] would\n * try to get 'foo' on the current component, 'bar' on the 'foo'\n * component and 'baz' on the 'bar' component and return undefined\n * if any of those don't exist.\n *\n * @param {...string[]|...string} names\n * The name of the child `Component` to get.\n *\n * @return {Component|undefined}\n * The descendant `Component` following the given descendant\n * `names` or undefined.\n */\n getDescendant() {\n for (var _len13 = arguments.length, names = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {\n names[_key13] = arguments[_key13];\n }\n // flatten array argument into the main array\n names = names.reduce((acc, n) => acc.concat(n), []);\n let currentChild = this;\n for (let i = 0; i < names.length; i++) {\n currentChild = currentChild.getChild(names[i]);\n if (!currentChild || !currentChild.getChild) {\n return;\n }\n }\n return currentChild;\n }\n\n /**\n * Adds an SVG icon element to another element or component.\n *\n * @param {string} iconName\n * The name of icon. A list of all the icon names can be found at 'sandbox/svg-icons.html'\n *\n * @param {Element} [el=this.el()]\n * Element to set the title on. Defaults to the current Component's element.\n *\n * @return {Element}\n * The newly created icon element.\n */\n setIcon(iconName) {\n let el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.el();\n // TODO: In v9 of video.js, we will want to remove font icons entirely.\n // This means this check, as well as the others throughout the code, and\n // the unecessary CSS for font icons, will need to be removed.\n // See https://github.com/videojs/video.js/pull/8260 as to which components\n // need updating.\n if (!this.player_.options_.experimentalSvgIcons) {\n return;\n }\n const xmlnsURL = 'http://www.w3.org/2000/svg';\n\n // The below creates an element in the format of:\n // .... \n const iconContainer = createEl('span', {\n className: 'vjs-icon-placeholder vjs-svg-icon'\n }, {\n 'aria-hidden': 'true'\n });\n const svgEl = document.createElementNS(xmlnsURL, 'svg');\n svgEl.setAttributeNS(null, 'viewBox', '0 0 512 512');\n const useEl = document.createElementNS(xmlnsURL, 'use');\n svgEl.appendChild(useEl);\n useEl.setAttributeNS(null, 'href', `#vjs-icon-${iconName}`);\n iconContainer.appendChild(svgEl);\n\n // Replace a pre-existing icon if one exists.\n if (this.iconIsSet_) {\n el.replaceChild(iconContainer, el.querySelector('.vjs-icon-placeholder'));\n } else {\n el.appendChild(iconContainer);\n }\n this.iconIsSet_ = true;\n return iconContainer;\n }\n\n /**\n * Add a child `Component` inside the current `Component`.\n *\n * @param {string|Component} child\n * The name or instance of a child to add.\n *\n * @param {Object} [options={}]\n * The key/value store of options that will get passed to children of\n * the child.\n *\n * @param {number} [index=this.children_.length]\n * The index to attempt to add a child into.\n *\n *\n * @return {Component}\n * The `Component` that gets added as a child. When using a string the\n * `Component` will get created by this process.\n */\n addChild(child) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.children_.length;\n let component;\n let componentName;\n\n // If child is a string, create component with options\n if (typeof child === 'string') {\n componentName = toTitleCase$1(child);\n const componentClassName = options.componentClass || componentName;\n\n // Set name through options\n options.name = componentName;\n\n // Create a new object & element for this controls set\n // If there's no .player_, this is a player\n const ComponentClass = Component$1.getComponent(componentClassName);\n if (!ComponentClass) {\n throw new Error(`Component ${componentClassName} does not exist`);\n }\n\n // data stored directly on the videojs object may be\n // misidentified as a component to retain\n // backwards-compatibility with 4.x. check to make sure the\n // component class can be instantiated.\n if (typeof ComponentClass !== 'function') {\n return null;\n }\n component = new ComponentClass(this.player_ || this, options);\n\n // child is a component instance\n } else {\n component = child;\n }\n if (component.parentComponent_) {\n component.parentComponent_.removeChild(component);\n }\n this.children_.splice(index, 0, component);\n component.parentComponent_ = this;\n if (typeof component.id === 'function') {\n this.childIndex_[component.id()] = component;\n }\n\n // If a name wasn't used to create the component, check if we can use the\n // name function of the component\n componentName = componentName || component.name && toTitleCase$1(component.name());\n if (componentName) {\n this.childNameIndex_[componentName] = component;\n this.childNameIndex_[toLowerCase(componentName)] = component;\n }\n\n // Add the UI object's element to the container div (box)\n // Having an element is not required\n if (typeof component.el === 'function' && component.el()) {\n // If inserting before a component, insert before that component's element\n let refNode = null;\n if (this.children_[index + 1]) {\n // Most children are components, but the video tech is an HTML element\n if (this.children_[index + 1].el_) {\n refNode = this.children_[index + 1].el_;\n } else if (isEl(this.children_[index + 1])) {\n refNode = this.children_[index + 1];\n }\n }\n this.contentEl().insertBefore(component.el(), refNode);\n }\n\n // Return so it can stored on parent object if desired.\n return component;\n }\n\n /**\n * Remove a child `Component` from this `Component`s list of children. Also removes\n * the child `Component`s element from this `Component`s element.\n *\n * @param {Component} component\n * The child `Component` to remove.\n */\n removeChild(component) {\n if (typeof component === 'string') {\n component = this.getChild(component);\n }\n if (!component || !this.children_) {\n return;\n }\n let childFound = false;\n for (let i = this.children_.length - 1; i >= 0; i--) {\n if (this.children_[i] === component) {\n childFound = true;\n this.children_.splice(i, 1);\n break;\n }\n }\n if (!childFound) {\n return;\n }\n component.parentComponent_ = null;\n this.childIndex_[component.id()] = null;\n this.childNameIndex_[toTitleCase$1(component.name())] = null;\n this.childNameIndex_[toLowerCase(component.name())] = null;\n const compEl = component.el();\n if (compEl && compEl.parentNode === this.contentEl()) {\n this.contentEl().removeChild(component.el());\n }\n }\n\n /**\n * Add and initialize default child `Component`s based upon options.\n */\n initChildren() {\n const children = this.options_.children;\n if (children) {\n // `this` is `parent`\n const parentOptions = this.options_;\n const handleAdd = child => {\n const name = child.name;\n let opts = child.opts;\n\n // Allow options for children to be set at the parent options\n // e.g. videojs(id, { controlBar: false });\n // instead of videojs(id, { children: { controlBar: false });\n if (parentOptions[name] !== undefined) {\n opts = parentOptions[name];\n }\n\n // Allow for disabling default components\n // e.g. options['children']['posterImage'] = false\n if (opts === false) {\n return;\n }\n\n // Allow options to be passed as a simple boolean if no configuration\n // is necessary.\n if (opts === true) {\n opts = {};\n }\n\n // We also want to pass the original player options\n // to each component as well so they don't need to\n // reach back into the player for options later.\n opts.playerOptions = this.options_.playerOptions;\n\n // Create and add the child component.\n // Add a direct reference to the child by name on the parent instance.\n // If two of the same component are used, different names should be supplied\n // for each\n const newChild = this.addChild(name, opts);\n if (newChild) {\n this[name] = newChild;\n }\n };\n\n // Allow for an array of children details to passed in the options\n let workingChildren;\n const Tech = Component$1.getComponent('Tech');\n if (Array.isArray(children)) {\n workingChildren = children;\n } else {\n workingChildren = Object.keys(children);\n }\n workingChildren\n // children that are in this.options_ but also in workingChildren would\n // give us extra children we do not want. So, we want to filter them out.\n .concat(Object.keys(this.options_).filter(function (child) {\n return !workingChildren.some(function (wchild) {\n if (typeof wchild === 'string') {\n return child === wchild;\n }\n return child === wchild.name;\n });\n })).map(child => {\n let name;\n let opts;\n if (typeof child === 'string') {\n name = child;\n opts = children[name] || this.options_[name] || {};\n } else {\n name = child.name;\n opts = child;\n }\n return {\n name,\n opts\n };\n }).filter(child => {\n // we have to make sure that child.name isn't in the techOrder since\n // techs are registered as Components but can't aren't compatible\n // See https://github.com/videojs/video.js/issues/2772\n const c = Component$1.getComponent(child.opts.componentClass || toTitleCase$1(child.name));\n return c && !Tech.isTech(c);\n }).forEach(handleAdd);\n }\n }\n\n /**\n * Builds the default DOM class name. Should be overridden by sub-components.\n *\n * @return {string}\n * The DOM class name for this object.\n *\n * @abstract\n */\n buildCSSClass() {\n // Child classes can include a function that does:\n // return 'CLASS NAME' + this._super();\n return '';\n }\n\n /**\n * Bind a listener to the component's ready state.\n * Different from event listeners in that if the ready event has already happened\n * it will trigger the function immediately.\n *\n * @param {ReadyCallback} fn\n * Function that gets called when the `Component` is ready.\n *\n * @return {Component}\n * Returns itself; method can be chained.\n */\n ready(fn) {\n let sync = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (!fn) {\n return;\n }\n if (!this.isReady_) {\n this.readyQueue_ = this.readyQueue_ || [];\n this.readyQueue_.push(fn);\n return;\n }\n if (sync) {\n fn.call(this);\n } else {\n // Call the function asynchronously by default for consistency\n this.setTimeout(fn, 1);\n }\n }\n\n /**\n * Trigger all the ready listeners for this `Component`.\n *\n * @fires Component#ready\n */\n triggerReady() {\n this.isReady_ = true;\n\n // Ensure ready is triggered asynchronously\n this.setTimeout(function () {\n const readyQueue = this.readyQueue_;\n\n // Reset Ready Queue\n this.readyQueue_ = [];\n if (readyQueue && readyQueue.length > 0) {\n readyQueue.forEach(function (fn) {\n fn.call(this);\n }, this);\n }\n\n // Allow for using event listeners also\n /**\n * Triggered when a `Component` is ready.\n *\n * @event Component#ready\n * @type {Event}\n */\n this.trigger('ready');\n }, 1);\n }\n\n /**\n * Find a single DOM element matching a `selector`. This can be within the `Component`s\n * `contentEl()` or another custom context.\n *\n * @param {string} selector\n * A valid CSS selector, which will be passed to `querySelector`.\n *\n * @param {Element|string} [context=this.contentEl()]\n * A DOM element within which to query. Can also be a selector string in\n * which case the first matching element will get used as context. If\n * missing `this.contentEl()` gets used. If `this.contentEl()` returns\n * nothing it falls back to `document`.\n *\n * @return {Element|null}\n * the dom element that was found, or null\n *\n * @see [Information on CSS Selectors](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_Started/Selectors)\n */\n $(selector, context) {\n return $(selector, context || this.contentEl());\n }\n\n /**\n * Finds all DOM element matching a `selector`. This can be within the `Component`s\n * `contentEl()` or another custom context.\n *\n * @param {string} selector\n * A valid CSS selector, which will be passed to `querySelectorAll`.\n *\n * @param {Element|string} [context=this.contentEl()]\n * A DOM element within which to query. Can also be a selector string in\n * which case the first matching element will get used as context. If\n * missing `this.contentEl()` gets used. If `this.contentEl()` returns\n * nothing it falls back to `document`.\n *\n * @return {NodeList}\n * a list of dom elements that were found\n *\n * @see [Information on CSS Selectors](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_Started/Selectors)\n */\n $$(selector, context) {\n return $$(selector, context || this.contentEl());\n }\n\n /**\n * Check if a component's element has a CSS class name.\n *\n * @param {string} classToCheck\n * CSS class name to check.\n *\n * @return {boolean}\n * - True if the `Component` has the class.\n * - False if the `Component` does not have the class`\n */\n hasClass(classToCheck) {\n return hasClass(this.el_, classToCheck);\n }\n\n /**\n * Add a CSS class name to the `Component`s element.\n *\n * @param {...string} classesToAdd\n * One or more CSS class name to add.\n */\n addClass() {\n for (var _len14 = arguments.length, classesToAdd = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {\n classesToAdd[_key14] = arguments[_key14];\n }\n addClass(this.el_, ...classesToAdd);\n }\n\n /**\n * Remove a CSS class name from the `Component`s element.\n *\n * @param {...string} classesToRemove\n * One or more CSS class name to remove.\n */\n removeClass() {\n for (var _len15 = arguments.length, classesToRemove = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {\n classesToRemove[_key15] = arguments[_key15];\n }\n removeClass(this.el_, ...classesToRemove);\n }\n\n /**\n * Add or remove a CSS class name from the component's element.\n * - `classToToggle` gets added when {@link Component#hasClass} would return false.\n * - `classToToggle` gets removed when {@link Component#hasClass} would return true.\n *\n * @param {string} classToToggle\n * The class to add or remove based on (@link Component#hasClass}\n *\n * @param {boolean|Dom~predicate} [predicate]\n * An {@link Dom~predicate} function or a boolean\n */\n toggleClass(classToToggle, predicate) {\n toggleClass(this.el_, classToToggle, predicate);\n }\n\n /**\n * Show the `Component`s element if it is hidden by removing the\n * 'vjs-hidden' class name from it.\n */\n show() {\n this.removeClass('vjs-hidden');\n }\n\n /**\n * Hide the `Component`s element if it is currently showing by adding the\n * 'vjs-hidden` class name to it.\n */\n hide() {\n this.addClass('vjs-hidden');\n }\n\n /**\n * Lock a `Component`s element in its visible state by adding the 'vjs-lock-showing'\n * class name to it. Used during fadeIn/fadeOut.\n *\n * @private\n */\n lockShowing() {\n this.addClass('vjs-lock-showing');\n }\n\n /**\n * Unlock a `Component`s element from its visible state by removing the 'vjs-lock-showing'\n * class name from it. Used during fadeIn/fadeOut.\n *\n * @private\n */\n unlockShowing() {\n this.removeClass('vjs-lock-showing');\n }\n\n /**\n * Get the value of an attribute on the `Component`s element.\n *\n * @param {string} attribute\n * Name of the attribute to get the value from.\n *\n * @return {string|null}\n * - The value of the attribute that was asked for.\n * - Can be an empty string on some browsers if the attribute does not exist\n * or has no value\n * - Most browsers will return null if the attribute does not exist or has\n * no value.\n *\n * @see [DOM API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute}\n */\n getAttribute(attribute) {\n return getAttribute(this.el_, attribute);\n }\n\n /**\n * Set the value of an attribute on the `Component`'s element\n *\n * @param {string} attribute\n * Name of the attribute to set.\n *\n * @param {string} value\n * Value to set the attribute to.\n *\n * @see [DOM API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute}\n */\n setAttribute(attribute, value) {\n setAttribute(this.el_, attribute, value);\n }\n\n /**\n * Remove an attribute from the `Component`s element.\n *\n * @param {string} attribute\n * Name of the attribute to remove.\n *\n * @see [DOM API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute}\n */\n removeAttribute(attribute) {\n removeAttribute(this.el_, attribute);\n }\n\n /**\n * Get or set the width of the component based upon the CSS styles.\n * See {@link Component#dimension} for more detailed information.\n *\n * @param {number|string} [num]\n * The width that you want to set postfixed with '%', 'px' or nothing.\n *\n * @param {boolean} [skipListeners]\n * Skip the componentresize event trigger\n *\n * @return {number|undefined}\n * The width when getting, zero if there is no width\n */\n width(num, skipListeners) {\n return this.dimension('width', num, skipListeners);\n }\n\n /**\n * Get or set the height of the component based upon the CSS styles.\n * See {@link Component#dimension} for more detailed information.\n *\n * @param {number|string} [num]\n * The height that you want to set postfixed with '%', 'px' or nothing.\n *\n * @param {boolean} [skipListeners]\n * Skip the componentresize event trigger\n *\n * @return {number|undefined}\n * The height when getting, zero if there is no height\n */\n height(num, skipListeners) {\n return this.dimension('height', num, skipListeners);\n }\n\n /**\n * Set both the width and height of the `Component` element at the same time.\n *\n * @param {number|string} width\n * Width to set the `Component`s element to.\n *\n * @param {number|string} height\n * Height to set the `Component`s element to.\n */\n dimensions(width, height) {\n // Skip componentresize listeners on width for optimization\n this.width(width, true);\n this.height(height);\n }\n\n /**\n * Get or set width or height of the `Component` element. This is the shared code\n * for the {@link Component#width} and {@link Component#height}.\n *\n * Things to know:\n * - If the width or height in an number this will return the number postfixed with 'px'.\n * - If the width/height is a percent this will return the percent postfixed with '%'\n * - Hidden elements have a width of 0 with `window.getComputedStyle`. This function\n * defaults to the `Component`s `style.width` and falls back to `window.getComputedStyle`.\n * See [this]{@link http://www.foliotek.com/devblog/getting-the-width-of-a-hidden-element-with-jquery-using-width/}\n * for more information\n * - If you want the computed style of the component, use {@link Component#currentWidth}\n * and {@link {Component#currentHeight}\n *\n * @fires Component#componentresize\n *\n * @param {string} widthOrHeight\n 8 'width' or 'height'\n *\n * @param {number|string} [num]\n 8 New dimension\n *\n * @param {boolean} [skipListeners]\n * Skip componentresize event trigger\n *\n * @return {number|undefined}\n * The dimension when getting or 0 if unset\n */\n dimension(widthOrHeight, num, skipListeners) {\n if (num !== undefined) {\n // Set to zero if null or literally NaN (NaN !== NaN)\n if (num === null || num !== num) {\n num = 0;\n }\n\n // Check if using css width/height (% or px) and adjust\n if (('' + num).indexOf('%') !== -1 || ('' + num).indexOf('px') !== -1) {\n this.el_.style[widthOrHeight] = num;\n } else if (num === 'auto') {\n this.el_.style[widthOrHeight] = '';\n } else {\n this.el_.style[widthOrHeight] = num + 'px';\n }\n\n // skipListeners allows us to avoid triggering the resize event when setting both width and height\n if (!skipListeners) {\n /**\n * Triggered when a component is resized.\n *\n * @event Component#componentresize\n * @type {Event}\n */\n this.trigger('componentresize');\n }\n return;\n }\n\n // Not setting a value, so getting it\n // Make sure element exists\n if (!this.el_) {\n return 0;\n }\n\n // Get dimension value from style\n const val = this.el_.style[widthOrHeight];\n const pxIndex = val.indexOf('px');\n if (pxIndex !== -1) {\n // Return the pixel value with no 'px'\n return parseInt(val.slice(0, pxIndex), 10);\n }\n\n // No px so using % or no style was set, so falling back to offsetWidth/height\n // If component has display:none, offset will return 0\n // TODO: handle display:none and no dimension style using px\n return parseInt(this.el_['offset' + toTitleCase$1(widthOrHeight)], 10);\n }\n\n /**\n * Get the computed width or the height of the component's element.\n *\n * Uses `window.getComputedStyle`.\n *\n * @param {string} widthOrHeight\n * A string containing 'width' or 'height'. Whichever one you want to get.\n *\n * @return {number}\n * The dimension that gets asked for or 0 if nothing was set\n * for that dimension.\n */\n currentDimension(widthOrHeight) {\n let computedWidthOrHeight = 0;\n if (widthOrHeight !== 'width' && widthOrHeight !== 'height') {\n throw new Error('currentDimension only accepts width or height value');\n }\n computedWidthOrHeight = computedStyle(this.el_, widthOrHeight);\n\n // remove 'px' from variable and parse as integer\n computedWidthOrHeight = parseFloat(computedWidthOrHeight);\n\n // if the computed value is still 0, it's possible that the browser is lying\n // and we want to check the offset values.\n // This code also runs wherever getComputedStyle doesn't exist.\n if (computedWidthOrHeight === 0 || isNaN(computedWidthOrHeight)) {\n const rule = `offset${toTitleCase$1(widthOrHeight)}`;\n computedWidthOrHeight = this.el_[rule];\n }\n return computedWidthOrHeight;\n }\n\n /**\n * An object that contains width and height values of the `Component`s\n * computed style. Uses `window.getComputedStyle`.\n *\n * @typedef {Object} Component~DimensionObject\n *\n * @property {number} width\n * The width of the `Component`s computed style.\n *\n * @property {number} height\n * The height of the `Component`s computed style.\n */\n\n /**\n * Get an object that contains computed width and height values of the\n * component's element.\n *\n * Uses `window.getComputedStyle`.\n *\n * @return {Component~DimensionObject}\n * The computed dimensions of the component's element.\n */\n currentDimensions() {\n return {\n width: this.currentDimension('width'),\n height: this.currentDimension('height')\n };\n }\n\n /**\n * Get the computed width of the component's element.\n *\n * Uses `window.getComputedStyle`.\n *\n * @return {number}\n * The computed width of the component's element.\n */\n currentWidth() {\n return this.currentDimension('width');\n }\n\n /**\n * Get the computed height of the component's element.\n *\n * Uses `window.getComputedStyle`.\n *\n * @return {number}\n * The computed height of the component's element.\n */\n currentHeight() {\n return this.currentDimension('height');\n }\n\n /**\n * Set the focus to this component\n */\n focus() {\n this.el_.focus();\n }\n\n /**\n * Remove the focus from this component\n */\n blur() {\n this.el_.blur();\n }\n\n /**\n * When this Component receives a `keydown` event which it does not process,\n * it passes the event to the Player for handling.\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n */\n handleKeyDown(event) {\n if (this.player_) {\n // We only stop propagation here because we want unhandled events to fall\n // back to the browser. Exclude Tab for focus trapping.\n if (!keycode.isEventKey(event, 'Tab')) {\n event.stopPropagation();\n }\n this.player_.handleKeyDown(event);\n }\n }\n\n /**\n * Many components used to have a `handleKeyPress` method, which was poorly\n * named because it listened to a `keydown` event. This method name now\n * delegates to `handleKeyDown`. This means anyone calling `handleKeyPress`\n * will not see their method calls stop working.\n *\n * @param {KeyboardEvent} event\n * The event that caused this function to be called.\n */\n handleKeyPress(event) {\n this.handleKeyDown(event);\n }\n\n /**\n * Emit a 'tap' events when touch event support gets detected. This gets used to\n * support toggling the controls through a tap on the video. They get enabled\n * because every sub-component would have extra overhead otherwise.\n *\n * @protected\n * @fires Component#tap\n * @listens Component#touchstart\n * @listens Component#touchmove\n * @listens Component#touchleave\n * @listens Component#touchcancel\n * @listens Component#touchend\n */\n emitTapEvents() {\n // Track the start time so we can determine how long the touch lasted\n let touchStart = 0;\n let firstTouch = null;\n\n // Maximum movement allowed during a touch event to still be considered a tap\n // Other popular libs use anywhere from 2 (hammer.js) to 15,\n // so 10 seems like a nice, round number.\n const tapMovementThreshold = 10;\n\n // The maximum length a touch can be while still being considered a tap\n const touchTimeThreshold = 200;\n let couldBeTap;\n this.on('touchstart', function (event) {\n // If more than one finger, don't consider treating this as a click\n if (event.touches.length === 1) {\n // Copy pageX/pageY from the object\n firstTouch = {\n pageX: event.touches[0].pageX,\n pageY: event.touches[0].pageY\n };\n // Record start time so we can detect a tap vs. \"touch and hold\"\n touchStart = window$1.performance.now();\n // Reset couldBeTap tracking\n couldBeTap = true;\n }\n });\n this.on('touchmove', function (event) {\n // If more than one finger, don't consider treating this as a click\n if (event.touches.length > 1) {\n couldBeTap = false;\n } else if (firstTouch) {\n // Some devices will throw touchmoves for all but the slightest of taps.\n // So, if we moved only a small distance, this could still be a tap\n const xdiff = event.touches[0].pageX - firstTouch.pageX;\n const ydiff = event.touches[0].pageY - firstTouch.pageY;\n const touchDistance = Math.sqrt(xdiff * xdiff + ydiff * ydiff);\n if (touchDistance > tapMovementThreshold) {\n couldBeTap = false;\n }\n }\n });\n const noTap = function () {\n couldBeTap = false;\n };\n\n // TODO: Listen to the original target. http://youtu.be/DujfpXOKUp8?t=13m8s\n this.on('touchleave', noTap);\n this.on('touchcancel', noTap);\n\n // When the touch ends, measure how long it took and trigger the appropriate\n // event\n this.on('touchend', function (event) {\n firstTouch = null;\n // Proceed only if the touchmove/leave/cancel event didn't happen\n if (couldBeTap === true) {\n // Measure how long the touch lasted\n const touchTime = window$1.performance.now() - touchStart;\n\n // Make sure the touch was less than the threshold to be considered a tap\n if (touchTime < touchTimeThreshold) {\n // Don't let browser turn this into a click\n event.preventDefault();\n /**\n * Triggered when a `Component` is tapped.\n *\n * @event Component#tap\n * @type {MouseEvent}\n */\n this.trigger('tap');\n // It may be good to copy the touchend event object and change the\n // type to tap, if the other event properties aren't exact after\n // Events.fixEvent runs (e.g. event.target)\n }\n }\n });\n }\n\n /**\n * This function reports user activity whenever touch events happen. This can get\n * turned off by any sub-components that wants touch events to act another way.\n *\n * Report user touch activity when touch events occur. User activity gets used to\n * determine when controls should show/hide. It is simple when it comes to mouse\n * events, because any mouse event should show the controls. So we capture mouse\n * events that bubble up to the player and report activity when that happens.\n * With touch events it isn't as easy as `touchstart` and `touchend` toggle player\n * controls. So touch events can't help us at the player level either.\n *\n * User activity gets checked asynchronously. So what could happen is a tap event\n * on the video turns the controls off. Then the `touchend` event bubbles up to\n * the player. Which, if it reported user activity, would turn the controls right\n * back on. We also don't want to completely block touch events from bubbling up.\n * Furthermore a `touchmove` event and anything other than a tap, should not turn\n * controls back on.\n *\n * @listens Component#touchstart\n * @listens Component#touchmove\n * @listens Component#touchend\n * @listens Component#touchcancel\n */\n enableTouchActivity() {\n // Don't continue if the root player doesn't support reporting user activity\n if (!this.player() || !this.player().reportUserActivity) {\n return;\n }\n\n // listener for reporting that the user is active\n const report = bind_(this.player(), this.player().reportUserActivity);\n let touchHolding;\n this.on('touchstart', function () {\n report();\n // For as long as the they are touching the device or have their mouse down,\n // we consider them active even if they're not moving their finger or mouse.\n // So we want to continue to update that they are active\n this.clearInterval(touchHolding);\n // report at the same interval as activityCheck\n touchHolding = this.setInterval(report, 250);\n });\n const touchEnd = function (event) {\n report();\n // stop the interval that maintains activity if the touch is holding\n this.clearInterval(touchHolding);\n };\n this.on('touchmove', report);\n this.on('touchend', touchEnd);\n this.on('touchcancel', touchEnd);\n }\n\n /**\n * A callback that has no parameters and is bound into `Component`s context.\n *\n * @callback Component~GenericCallback\n * @this Component\n */\n\n /**\n * Creates a function that runs after an `x` millisecond timeout. This function is a\n * wrapper around `window.setTimeout`. There are a few reasons to use this one\n * instead though:\n * 1. It gets cleared via {@link Component#clearTimeout} when\n * {@link Component#dispose} gets called.\n * 2. The function callback will gets turned into a {@link Component~GenericCallback}\n *\n * > Note: You can't use `window.clearTimeout` on the id returned by this function. This\n * will cause its dispose listener not to get cleaned up! Please use\n * {@link Component#clearTimeout} or {@link Component#dispose} instead.\n *\n * @param {Component~GenericCallback} fn\n * The function that will be run after `timeout`.\n *\n * @param {number} timeout\n * Timeout in milliseconds to delay before executing the specified function.\n *\n * @return {number}\n * Returns a timeout ID that gets used to identify the timeout. It can also\n * get used in {@link Component#clearTimeout} to clear the timeout that\n * was set.\n *\n * @listens Component#dispose\n * @see [Similar to]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout}\n */\n setTimeout(fn, timeout) {\n // declare as variables so they are properly available in timeout function\n // eslint-disable-next-line\n var timeoutId;\n fn = bind_(this, fn);\n this.clearTimersOnDispose_();\n timeoutId = window$1.setTimeout(() => {\n if (this.setTimeoutIds_.has(timeoutId)) {\n this.setTimeoutIds_.delete(timeoutId);\n }\n fn();\n }, timeout);\n this.setTimeoutIds_.add(timeoutId);\n return timeoutId;\n }\n\n /**\n * Clears a timeout that gets created via `window.setTimeout` or\n * {@link Component#setTimeout}. If you set a timeout via {@link Component#setTimeout}\n * use this function instead of `window.clearTimout`. If you don't your dispose\n * listener will not get cleaned up until {@link Component#dispose}!\n *\n * @param {number} timeoutId\n * The id of the timeout to clear. The return value of\n * {@link Component#setTimeout} or `window.setTimeout`.\n *\n * @return {number}\n * Returns the timeout id that was cleared.\n *\n * @see [Similar to]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/clearTimeout}\n */\n clearTimeout(timeoutId) {\n if (this.setTimeoutIds_.has(timeoutId)) {\n this.setTimeoutIds_.delete(timeoutId);\n window$1.clearTimeout(timeoutId);\n }\n return timeoutId;\n }\n\n /**\n * Creates a function that gets run every `x` milliseconds. This function is a wrapper\n * around `window.setInterval`. There are a few reasons to use this one instead though.\n * 1. It gets cleared via {@link Component#clearInterval} when\n * {@link Component#dispose} gets called.\n * 2. The function callback will be a {@link Component~GenericCallback}\n *\n * @param {Component~GenericCallback} fn\n * The function to run every `x` seconds.\n *\n * @param {number} interval\n * Execute the specified function every `x` milliseconds.\n *\n * @return {number}\n * Returns an id that can be used to identify the interval. It can also be be used in\n * {@link Component#clearInterval} to clear the interval.\n *\n * @listens Component#dispose\n * @see [Similar to]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setInterval}\n */\n setInterval(fn, interval) {\n fn = bind_(this, fn);\n this.clearTimersOnDispose_();\n const intervalId = window$1.setInterval(fn, interval);\n this.setIntervalIds_.add(intervalId);\n return intervalId;\n }\n\n /**\n * Clears an interval that gets created via `window.setInterval` or\n * {@link Component#setInterval}. If you set an interval via {@link Component#setInterval}\n * use this function instead of `window.clearInterval`. If you don't your dispose\n * listener will not get cleaned up until {@link Component#dispose}!\n *\n * @param {number} intervalId\n * The id of the interval to clear. The return value of\n * {@link Component#setInterval} or `window.setInterval`.\n *\n * @return {number}\n * Returns the interval id that was cleared.\n *\n * @see [Similar to]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/clearInterval}\n */\n clearInterval(intervalId) {\n if (this.setIntervalIds_.has(intervalId)) {\n this.setIntervalIds_.delete(intervalId);\n window$1.clearInterval(intervalId);\n }\n return intervalId;\n }\n\n /**\n * Queues up a callback to be passed to requestAnimationFrame (rAF), but\n * with a few extra bonuses:\n *\n * - Supports browsers that do not support rAF by falling back to\n * {@link Component#setTimeout}.\n *\n * - The callback is turned into a {@link Component~GenericCallback} (i.e.\n * bound to the component).\n *\n * - Automatic cancellation of the rAF callback is handled if the component\n * is disposed before it is called.\n *\n * @param {Component~GenericCallback} fn\n * A function that will be bound to this component and executed just\n * before the browser's next repaint.\n *\n * @return {number}\n * Returns an rAF ID that gets used to identify the timeout. It can\n * also be used in {@link Component#cancelAnimationFrame} to cancel\n * the animation frame callback.\n *\n * @listens Component#dispose\n * @see [Similar to]{@link https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame}\n */\n requestAnimationFrame(fn) {\n this.clearTimersOnDispose_();\n\n // declare as variables so they are properly available in rAF function\n // eslint-disable-next-line\n var id;\n fn = bind_(this, fn);\n id = window$1.requestAnimationFrame(() => {\n if (this.rafIds_.has(id)) {\n this.rafIds_.delete(id);\n }\n fn();\n });\n this.rafIds_.add(id);\n return id;\n }\n\n /**\n * Request an animation frame, but only one named animation\n * frame will be queued. Another will never be added until\n * the previous one finishes.\n *\n * @param {string} name\n * The name to give this requestAnimationFrame\n *\n * @param {Component~GenericCallback} fn\n * A function that will be bound to this component and executed just\n * before the browser's next repaint.\n */\n requestNamedAnimationFrame(name, fn) {\n if (this.namedRafs_.has(name)) {\n return;\n }\n this.clearTimersOnDispose_();\n fn = bind_(this, fn);\n const id = this.requestAnimationFrame(() => {\n fn();\n if (this.namedRafs_.has(name)) {\n this.namedRafs_.delete(name);\n }\n });\n this.namedRafs_.set(name, id);\n return name;\n }\n\n /**\n * Cancels a current named animation frame if it exists.\n *\n * @param {string} name\n * The name of the requestAnimationFrame to cancel.\n */\n cancelNamedAnimationFrame(name) {\n if (!this.namedRafs_.has(name)) {\n return;\n }\n this.cancelAnimationFrame(this.namedRafs_.get(name));\n this.namedRafs_.delete(name);\n }\n\n /**\n * Cancels a queued callback passed to {@link Component#requestAnimationFrame}\n * (rAF).\n *\n * If you queue an rAF callback via {@link Component#requestAnimationFrame},\n * use this function instead of `window.cancelAnimationFrame`. If you don't,\n * your dispose listener will not get cleaned up until {@link Component#dispose}!\n *\n * @param {number} id\n * The rAF ID to clear. The return value of {@link Component#requestAnimationFrame}.\n *\n * @return {number}\n * Returns the rAF ID that was cleared.\n *\n * @see [Similar to]{@link https://developer.mozilla.org/en-US/docs/Web/API/window/cancelAnimationFrame}\n */\n cancelAnimationFrame(id) {\n if (this.rafIds_.has(id)) {\n this.rafIds_.delete(id);\n window$1.cancelAnimationFrame(id);\n }\n return id;\n }\n\n /**\n * A function to setup `requestAnimationFrame`, `setTimeout`,\n * and `setInterval`, clearing on dispose.\n *\n * > Previously each timer added and removed dispose listeners on it's own.\n * For better performance it was decided to batch them all, and use `Set`s\n * to track outstanding timer ids.\n *\n * @private\n */\n clearTimersOnDispose_() {\n if (this.clearingTimersOnDispose_) {\n return;\n }\n this.clearingTimersOnDispose_ = true;\n this.one('dispose', () => {\n [['namedRafs_', 'cancelNamedAnimationFrame'], ['rafIds_', 'cancelAnimationFrame'], ['setTimeoutIds_', 'clearTimeout'], ['setIntervalIds_', 'clearInterval']].forEach(_ref => {\n let _ref2 = _slicedToArray(_ref, 2),\n idName = _ref2[0],\n cancelName = _ref2[1];\n // for a `Set` key will actually be the value again\n // so forEach((val, val) =>` but for maps we want to use\n // the key.\n this[idName].forEach((val, key) => this[cancelName](key));\n });\n this.clearingTimersOnDispose_ = false;\n });\n }\n\n /**\n * Register a `Component` with `videojs` given the name and the component.\n *\n * > NOTE: {@link Tech}s should not be registered as a `Component`. {@link Tech}s\n * should be registered using {@link Tech.registerTech} or\n * {@link videojs:videojs.registerTech}.\n *\n * > NOTE: This function can also be seen on videojs as\n * {@link videojs:videojs.registerComponent}.\n *\n * @param {string} name\n * The name of the `Component` to register.\n *\n * @param {Component} ComponentToRegister\n * The `Component` class to register.\n *\n * @return {Component}\n * The `Component` that was registered.\n */\n static registerComponent(name, ComponentToRegister) {\n if (typeof name !== 'string' || !name) {\n throw new Error(`Illegal component name, \"${name}\"; must be a non-empty string.`);\n }\n const Tech = Component$1.getComponent('Tech');\n\n // We need to make sure this check is only done if Tech has been registered.\n const isTech = Tech && Tech.isTech(ComponentToRegister);\n const isComp = Component$1 === ComponentToRegister || Component$1.prototype.isPrototypeOf(ComponentToRegister.prototype);\n if (isTech || !isComp) {\n let reason;\n if (isTech) {\n reason = 'techs must be registered using Tech.registerTech()';\n } else {\n reason = 'must be a Component subclass';\n }\n throw new Error(`Illegal component, \"${name}\"; ${reason}.`);\n }\n name = toTitleCase$1(name);\n if (!Component$1.components_) {\n Component$1.components_ = {};\n }\n const Player = Component$1.getComponent('Player');\n if (name === 'Player' && Player && Player.players) {\n const players = Player.players;\n const playerNames = Object.keys(players);\n\n // If we have players that were disposed, then their name will still be\n // in Players.players. So, we must loop through and verify that the value\n // for each item is not null. This allows registration of the Player component\n // after all players have been disposed or before any were created.\n if (players && playerNames.length > 0 && playerNames.map(pname => players[pname]).every(Boolean)) {\n throw new Error('Can not register Player component after player has been created.');\n }\n }\n Component$1.components_[name] = ComponentToRegister;\n Component$1.components_[toLowerCase(name)] = ComponentToRegister;\n return ComponentToRegister;\n }\n\n /**\n * Get a `Component` based on the name it was registered with.\n *\n * @param {string} name\n * The Name of the component to get.\n *\n * @return {typeof Component}\n * The `Component` that got registered under the given name.\n */\n static getComponent(name) {\n if (!name || !Component$1.components_) {\n return;\n }\n return Component$1.components_[name];\n }\n}\nComponent$1.registerComponent('Component', Component$1);\n\n/**\n * @file time.js\n * @module time\n */\n\n/**\n * Returns the time for the specified index at the start or end\n * of a TimeRange object.\n *\n * @typedef {Function} TimeRangeIndex\n *\n * @param {number} [index=0]\n * The range number to return the time for.\n *\n * @return {number}\n * The time offset at the specified index.\n *\n * @deprecated The index argument must be provided.\n * In the future, leaving it out will throw an error.\n */\n\n/**\n * An object that contains ranges of time, which mimics {@link TimeRanges}.\n *\n * @typedef {Object} TimeRange\n *\n * @property {number} length\n * The number of time ranges represented by this object.\n *\n * @property {module:time~TimeRangeIndex} start\n * Returns the time offset at which a specified time range begins.\n *\n * @property {module:time~TimeRangeIndex} end\n * Returns the time offset at which a specified time range ends.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges\n */\n\n/**\n * Check if any of the time ranges are over the maximum index.\n *\n * @private\n * @param {string} fnName\n * The function name to use for logging\n *\n * @param {number} index\n * The index to check\n *\n * @param {number} maxIndex\n * The maximum possible index\n *\n * @throws {Error} if the timeRanges provided are over the maxIndex\n */\nfunction rangeCheck(fnName, index, maxIndex) {\n if (typeof index !== 'number' || index < 0 || index > maxIndex) {\n throw new Error(`Failed to execute '${fnName}' on 'TimeRanges': The index provided (${index}) is non-numeric or out of bounds (0-${maxIndex}).`);\n }\n}\n\n/**\n * Get the time for the specified index at the start or end\n * of a TimeRange object.\n *\n * @private\n * @param {string} fnName\n * The function name to use for logging\n *\n * @param {string} valueIndex\n * The property that should be used to get the time. should be\n * 'start' or 'end'\n *\n * @param {Array} ranges\n * An array of time ranges\n *\n * @param {Array} [rangeIndex=0]\n * The index to start the search at\n *\n * @return {number}\n * The time that offset at the specified index.\n *\n * @deprecated rangeIndex must be set to a value, in the future this will throw an error.\n * @throws {Error} if rangeIndex is more than the length of ranges\n */\nfunction getRange(fnName, valueIndex, ranges, rangeIndex) {\n rangeCheck(fnName, rangeIndex, ranges.length - 1);\n return ranges[rangeIndex][valueIndex];\n}\n\n/**\n * Create a time range object given ranges of time.\n *\n * @private\n * @param {Array} [ranges]\n * An array of time ranges.\n *\n * @return {TimeRange}\n */\nfunction createTimeRangesObj(ranges) {\n let timeRangesObj;\n if (ranges === undefined || ranges.length === 0) {\n timeRangesObj = {\n length: 0,\n start() {\n throw new Error('This TimeRanges object is empty');\n },\n end() {\n throw new Error('This TimeRanges object is empty');\n }\n };\n } else {\n timeRangesObj = {\n length: ranges.length,\n start: getRange.bind(null, 'start', 0, ranges),\n end: getRange.bind(null, 'end', 1, ranges)\n };\n }\n if (window$1.Symbol && window$1.Symbol.iterator) {\n timeRangesObj[window$1.Symbol.iterator] = () => (ranges || []).values();\n }\n return timeRangesObj;\n}\n\n/**\n * Create a `TimeRange` object which mimics an\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges|HTML5 TimeRanges instance}.\n *\n * @param {number|Array[]} start\n * The start of a single range (a number) or an array of ranges (an\n * array of arrays of two numbers each).\n *\n * @param {number} end\n * The end of a single range. Cannot be used with the array form of\n * the `start` argument.\n *\n * @return {TimeRange}\n */\nfunction createTimeRanges$1(start, end) {\n if (Array.isArray(start)) {\n return createTimeRangesObj(start);\n } else if (start === undefined || end === undefined) {\n return createTimeRangesObj();\n }\n return createTimeRangesObj([[start, end]]);\n}\n\n/**\n * Format seconds as a time string, H:MM:SS or M:SS. Supplying a guide (in\n * seconds) will force a number of leading zeros to cover the length of the\n * guide.\n *\n * @private\n * @param {number} seconds\n * Number of seconds to be turned into a string\n *\n * @param {number} guide\n * Number (in seconds) to model the string after\n *\n * @return {string}\n * Time formatted as H:MM:SS or M:SS\n */\nconst defaultImplementation = function (seconds, guide) {\n seconds = seconds < 0 ? 0 : seconds;\n let s = Math.floor(seconds % 60);\n let m = Math.floor(seconds / 60 % 60);\n let h = Math.floor(seconds / 3600);\n const gm = Math.floor(guide / 60 % 60);\n const gh = Math.floor(guide / 3600);\n\n // handle invalid times\n if (isNaN(seconds) || seconds === Infinity) {\n // '-' is false for all relational operators (e.g. <, >=) so this setting\n // will add the minimum number of fields specified by the guide\n h = m = s = '-';\n }\n\n // Check if we need to show hours\n h = h > 0 || gh > 0 ? h + ':' : '';\n\n // If hours are showing, we may need to add a leading zero.\n // Always show at least one digit of minutes.\n m = ((h || gm >= 10) && m < 10 ? '0' + m : m) + ':';\n\n // Check if leading zero is need for seconds\n s = s < 10 ? '0' + s : s;\n return h + m + s;\n};\n\n// Internal pointer to the current implementation.\nlet implementation = defaultImplementation;\n\n/**\n * Replaces the default formatTime implementation with a custom implementation.\n *\n * @param {Function} customImplementation\n * A function which will be used in place of the default formatTime\n * implementation. Will receive the current time in seconds and the\n * guide (in seconds) as arguments.\n */\nfunction setFormatTime(customImplementation) {\n implementation = customImplementation;\n}\n\n/**\n * Resets formatTime to the default implementation.\n */\nfunction resetFormatTime() {\n implementation = defaultImplementation;\n}\n\n/**\n * Delegates to either the default time formatting function or a custom\n * function supplied via `setFormatTime`.\n *\n * Formats seconds as a time string (H:MM:SS or M:SS). Supplying a\n * guide (in seconds) will force a number of leading zeros to cover the\n * length of the guide.\n *\n * @example formatTime(125, 600) === \"02:05\"\n * @param {number} seconds\n * Number of seconds to be turned into a string\n *\n * @param {number} guide\n * Number (in seconds) to model the string after\n *\n * @return {string}\n * Time formatted as H:MM:SS or M:SS\n */\nfunction formatTime(seconds) {\n let guide = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : seconds;\n return implementation(seconds, guide);\n}\nvar Time = /*#__PURE__*/Object.freeze({\n __proto__: null,\n createTimeRanges: createTimeRanges$1,\n createTimeRange: createTimeRanges$1,\n setFormatTime: setFormatTime,\n resetFormatTime: resetFormatTime,\n formatTime: formatTime\n});\n\n/**\n * @file buffer.js\n * @module buffer\n */\n\n/**\n * Compute the percentage of the media that has been buffered.\n *\n * @param { import('./time').TimeRange } buffered\n * The current `TimeRanges` object representing buffered time ranges\n *\n * @param {number} duration\n * Total duration of the media\n *\n * @return {number}\n * Percent buffered of the total duration in decimal form.\n */\nfunction bufferedPercent(buffered, duration) {\n let bufferedDuration = 0;\n let start;\n let end;\n if (!duration) {\n return 0;\n }\n if (!buffered || !buffered.length) {\n buffered = createTimeRanges$1(0, 0);\n }\n for (let i = 0; i < buffered.length; i++) {\n start = buffered.start(i);\n end = buffered.end(i);\n\n // buffered end can be bigger than duration by a very small fraction\n if (end > duration) {\n end = duration;\n }\n bufferedDuration += end - start;\n }\n return bufferedDuration / duration;\n}\n\n/**\n * @file media-error.js\n */\n\n/**\n * A Custom `MediaError` class which mimics the standard HTML5 `MediaError` class.\n *\n * @param {number|string|Object|MediaError} value\n * This can be of multiple types:\n * - number: should be a standard error code\n * - string: an error message (the code will be 0)\n * - Object: arbitrary properties\n * - `MediaError` (native): used to populate a video.js `MediaError` object\n * - `MediaError` (video.js): will return itself if it's already a\n * video.js `MediaError` object.\n *\n * @see [MediaError Spec]{@link https://dev.w3.org/html5/spec-author-view/video.html#mediaerror}\n * @see [Encrypted MediaError Spec]{@link https://www.w3.org/TR/2013/WD-encrypted-media-20130510/#error-codes}\n *\n * @class MediaError\n */\nfunction MediaError(value) {\n // Allow redundant calls to this constructor to avoid having `instanceof`\n // checks peppered around the code.\n if (value instanceof MediaError) {\n return value;\n }\n if (typeof value === 'number') {\n this.code = value;\n } else if (typeof value === 'string') {\n // default code is zero, so this is a custom error\n this.message = value;\n } else if (isObject(value)) {\n // We assign the `code` property manually because native `MediaError` objects\n // do not expose it as an own/enumerable property of the object.\n if (typeof value.code === 'number') {\n this.code = value.code;\n }\n Object.assign(this, value);\n }\n if (!this.message) {\n this.message = MediaError.defaultMessages[this.code] || '';\n }\n}\n\n/**\n * The error code that refers two one of the defined `MediaError` types\n *\n * @type {Number}\n */\nMediaError.prototype.code = 0;\n\n/**\n * An optional message that to show with the error. Message is not part of the HTML5\n * video spec but allows for more informative custom errors.\n *\n * @type {String}\n */\nMediaError.prototype.message = '';\n\n/**\n * An optional status code that can be set by plugins to allow even more detail about\n * the error. For example a plugin might provide a specific HTTP status code and an\n * error message for that code. Then when the plugin gets that error this class will\n * know how to display an error message for it. This allows a custom message to show\n * up on the `Player` error overlay.\n *\n * @type {Array}\n */\nMediaError.prototype.status = null;\n\n/**\n * Errors indexed by the W3C standard. The order **CANNOT CHANGE**! See the\n * specification listed under {@link MediaError} for more information.\n *\n * @enum {array}\n * @readonly\n * @property {string} 0 - MEDIA_ERR_CUSTOM\n * @property {string} 1 - MEDIA_ERR_ABORTED\n * @property {string} 2 - MEDIA_ERR_NETWORK\n * @property {string} 3 - MEDIA_ERR_DECODE\n * @property {string} 4 - MEDIA_ERR_SRC_NOT_SUPPORTED\n * @property {string} 5 - MEDIA_ERR_ENCRYPTED\n */\nMediaError.errorTypes = ['MEDIA_ERR_CUSTOM', 'MEDIA_ERR_ABORTED', 'MEDIA_ERR_NETWORK', 'MEDIA_ERR_DECODE', 'MEDIA_ERR_SRC_NOT_SUPPORTED', 'MEDIA_ERR_ENCRYPTED'];\n\n/**\n * The default `MediaError` messages based on the {@link MediaError.errorTypes}.\n *\n * @type {Array}\n * @constant\n */\nMediaError.defaultMessages = {\n 1: 'You aborted the media playback',\n 2: 'A network error caused the media download to fail part-way.',\n 3: 'The media playback was aborted due to a corruption problem or because the media used features your browser did not support.',\n 4: 'The media could not be loaded, either because the server or network failed or because the format is not supported.',\n 5: 'The media is encrypted and we do not have the keys to decrypt it.'\n};\n\n// Add types as properties on MediaError\n// e.g. MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;\nfor (let errNum = 0; errNum < MediaError.errorTypes.length; errNum++) {\n MediaError[MediaError.errorTypes[errNum]] = errNum;\n // values should be accessible on both the class and instance\n MediaError.prototype[MediaError.errorTypes[errNum]] = errNum;\n}\n\n/**\n * Returns whether an object is `Promise`-like (i.e. has a `then` method).\n *\n * @param {Object} value\n * An object that may or may not be `Promise`-like.\n *\n * @return {boolean}\n * Whether or not the object is `Promise`-like.\n */\nfunction isPromise(value) {\n return value !== undefined && value !== null && typeof value.then === 'function';\n}\n\n/**\n * Silence a Promise-like object.\n *\n * This is useful for avoiding non-harmful, but potentially confusing \"uncaught\n * play promise\" rejection error messages.\n *\n * @param {Object} value\n * An object that may or may not be `Promise`-like.\n */\nfunction silencePromise(value) {\n if (isPromise(value)) {\n value.then(null, e => {});\n }\n}\n\n/**\n * @file text-track-list-converter.js Utilities for capturing text track state and\n * re-creating tracks based on a capture.\n *\n * @module text-track-list-converter\n */\n\n/**\n * Examine a single {@link TextTrack} and return a JSON-compatible javascript object that\n * represents the {@link TextTrack}'s state.\n *\n * @param {TextTrack} track\n * The text track to query.\n *\n * @return {Object}\n * A serializable javascript representation of the TextTrack.\n * @private\n */\nconst trackToJson_ = function (track) {\n const ret = ['kind', 'label', 'language', 'id', 'inBandMetadataTrackDispatchType', 'mode', 'src'].reduce((acc, prop, i) => {\n if (track[prop]) {\n acc[prop] = track[prop];\n }\n return acc;\n }, {\n cues: track.cues && Array.prototype.map.call(track.cues, function (cue) {\n return {\n startTime: cue.startTime,\n endTime: cue.endTime,\n text: cue.text,\n id: cue.id\n };\n })\n });\n return ret;\n};\n\n/**\n * Examine a {@link Tech} and return a JSON-compatible javascript array that represents the\n * state of all {@link TextTrack}s currently configured. The return array is compatible with\n * {@link text-track-list-converter:jsonToTextTracks}.\n *\n * @param { import('../tech/tech').default } tech\n * The tech object to query\n *\n * @return {Array}\n * A serializable javascript representation of the {@link Tech}s\n * {@link TextTrackList}.\n */\nconst textTracksToJson = function (tech) {\n const trackEls = tech.$$('track');\n const trackObjs = Array.prototype.map.call(trackEls, t => t.track);\n const tracks = Array.prototype.map.call(trackEls, function (trackEl) {\n const json = trackToJson_(trackEl.track);\n if (trackEl.src) {\n json.src = trackEl.src;\n }\n return json;\n });\n return tracks.concat(Array.prototype.filter.call(tech.textTracks(), function (track) {\n return trackObjs.indexOf(track) === -1;\n }).map(trackToJson_));\n};\n\n/**\n * Create a set of remote {@link TextTrack}s on a {@link Tech} based on an array of javascript\n * object {@link TextTrack} representations.\n *\n * @param {Array} json\n * An array of `TextTrack` representation objects, like those that would be\n * produced by `textTracksToJson`.\n *\n * @param {Tech} tech\n * The `Tech` to create the `TextTrack`s on.\n */\nconst jsonToTextTracks = function (json, tech) {\n json.forEach(function (track) {\n const addedTrack = tech.addRemoteTextTrack(track).track;\n if (!track.src && track.cues) {\n track.cues.forEach(cue => addedTrack.addCue(cue));\n }\n });\n return tech.textTracks();\n};\nvar textTrackConverter = {\n textTracksToJson,\n jsonToTextTracks,\n trackToJson_\n};\n\n/**\n * @file modal-dialog.js\n */\nconst MODAL_CLASS_NAME = 'vjs-modal-dialog';\n\n/**\n * The `ModalDialog` displays over the video and its controls, which blocks\n * interaction with the player until it is closed.\n *\n * Modal dialogs include a \"Close\" button and will close when that button\n * is activated - or when ESC is pressed anywhere.\n *\n * @extends Component\n */\nclass ModalDialog extends Component$1 {\n /**\n * Create an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param { import('./utils/dom').ContentDescriptor} [options.content=undefined]\n * Provide customized content for this modal.\n *\n * @param {string} [options.description]\n * A text description for the modal, primarily for accessibility.\n *\n * @param {boolean} [options.fillAlways=false]\n * Normally, modals are automatically filled only the first time\n * they open. This tells the modal to refresh its content\n * every time it opens.\n *\n * @param {string} [options.label]\n * A text label for the modal, primarily for accessibility.\n *\n * @param {boolean} [options.pauseOnOpen=true]\n * If `true`, playback will will be paused if playing when\n * the modal opens, and resumed when it closes.\n *\n * @param {boolean} [options.temporary=true]\n * If `true`, the modal can only be opened once; it will be\n * disposed as soon as it's closed.\n *\n * @param {boolean} [options.uncloseable=false]\n * If `true`, the user will not be able to close the modal\n * through the UI in the normal ways. Programmatic closing is\n * still possible.\n */\n constructor(player, options) {\n super(player, options);\n this.handleKeyDown_ = e => this.handleKeyDown(e);\n this.close_ = e => this.close(e);\n this.opened_ = this.hasBeenOpened_ = this.hasBeenFilled_ = false;\n this.closeable(!this.options_.uncloseable);\n this.content(this.options_.content);\n\n // Make sure the contentEl is defined AFTER any children are initialized\n // because we only want the contents of the modal in the contentEl\n // (not the UI elements like the close button).\n this.contentEl_ = createEl('div', {\n className: `${MODAL_CLASS_NAME}-content`\n }, {\n role: 'document'\n });\n this.descEl_ = createEl('p', {\n className: `${MODAL_CLASS_NAME}-description vjs-control-text`,\n id: this.el().getAttribute('aria-describedby')\n });\n textContent(this.descEl_, this.description());\n this.el_.appendChild(this.descEl_);\n this.el_.appendChild(this.contentEl_);\n }\n\n /**\n * Create the `ModalDialog`'s DOM element\n *\n * @return {Element}\n * The DOM element that gets created.\n */\n createEl() {\n return super.createEl('div', {\n className: this.buildCSSClass(),\n tabIndex: -1\n }, {\n 'aria-describedby': `${this.id()}_description`,\n 'aria-hidden': 'true',\n 'aria-label': this.label(),\n 'role': 'dialog'\n });\n }\n dispose() {\n this.contentEl_ = null;\n this.descEl_ = null;\n this.previouslyActiveEl_ = null;\n super.dispose();\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `${MODAL_CLASS_NAME} vjs-hidden ${super.buildCSSClass()}`;\n }\n\n /**\n * Returns the label string for this modal. Primarily used for accessibility.\n *\n * @return {string}\n * the localized or raw label of this modal.\n */\n label() {\n return this.localize(this.options_.label || 'Modal Window');\n }\n\n /**\n * Returns the description string for this modal. Primarily used for\n * accessibility.\n *\n * @return {string}\n * The localized or raw description of this modal.\n */\n description() {\n let desc = this.options_.description || this.localize('This is a modal window.');\n\n // Append a universal closeability message if the modal is closeable.\n if (this.closeable()) {\n desc += ' ' + this.localize('This modal can be closed by pressing the Escape key or activating the close button.');\n }\n return desc;\n }\n\n /**\n * Opens the modal.\n *\n * @fires ModalDialog#beforemodalopen\n * @fires ModalDialog#modalopen\n */\n open() {\n if (!this.opened_) {\n const player = this.player();\n\n /**\n * Fired just before a `ModalDialog` is opened.\n *\n * @event ModalDialog#beforemodalopen\n * @type {Event}\n */\n this.trigger('beforemodalopen');\n this.opened_ = true;\n\n // Fill content if the modal has never opened before and\n // never been filled.\n if (this.options_.fillAlways || !this.hasBeenOpened_ && !this.hasBeenFilled_) {\n this.fill();\n }\n\n // If the player was playing, pause it and take note of its previously\n // playing state.\n this.wasPlaying_ = !player.paused();\n if (this.options_.pauseOnOpen && this.wasPlaying_) {\n player.pause();\n }\n this.on('keydown', this.handleKeyDown_);\n\n // Hide controls and note if they were enabled.\n this.hadControls_ = player.controls();\n player.controls(false);\n this.show();\n this.conditionalFocus_();\n this.el().setAttribute('aria-hidden', 'false');\n\n /**\n * Fired just after a `ModalDialog` is opened.\n *\n * @event ModalDialog#modalopen\n * @type {Event}\n */\n this.trigger('modalopen');\n this.hasBeenOpened_ = true;\n }\n }\n\n /**\n * If the `ModalDialog` is currently open or closed.\n *\n * @param {boolean} [value]\n * If given, it will open (`true`) or close (`false`) the modal.\n *\n * @return {boolean}\n * the current open state of the modaldialog\n */\n opened(value) {\n if (typeof value === 'boolean') {\n this[value ? 'open' : 'close']();\n }\n return this.opened_;\n }\n\n /**\n * Closes the modal, does nothing if the `ModalDialog` is\n * not open.\n *\n * @fires ModalDialog#beforemodalclose\n * @fires ModalDialog#modalclose\n */\n close() {\n if (!this.opened_) {\n return;\n }\n const player = this.player();\n\n /**\n * Fired just before a `ModalDialog` is closed.\n *\n * @event ModalDialog#beforemodalclose\n * @type {Event}\n */\n this.trigger('beforemodalclose');\n this.opened_ = false;\n if (this.wasPlaying_ && this.options_.pauseOnOpen) {\n player.play();\n }\n this.off('keydown', this.handleKeyDown_);\n if (this.hadControls_) {\n player.controls(true);\n }\n this.hide();\n this.el().setAttribute('aria-hidden', 'true');\n\n /**\n * Fired just after a `ModalDialog` is closed.\n *\n * @event ModalDialog#modalclose\n * @type {Event}\n */\n this.trigger('modalclose');\n this.conditionalBlur_();\n if (this.options_.temporary) {\n this.dispose();\n }\n }\n\n /**\n * Check to see if the `ModalDialog` is closeable via the UI.\n *\n * @param {boolean} [value]\n * If given as a boolean, it will set the `closeable` option.\n *\n * @return {boolean}\n * Returns the final value of the closable option.\n */\n closeable(value) {\n if (typeof value === 'boolean') {\n const closeable = this.closeable_ = !!value;\n let close = this.getChild('closeButton');\n\n // If this is being made closeable and has no close button, add one.\n if (closeable && !close) {\n // The close button should be a child of the modal - not its\n // content element, so temporarily change the content element.\n const temp = this.contentEl_;\n this.contentEl_ = this.el_;\n close = this.addChild('closeButton', {\n controlText: 'Close Modal Dialog'\n });\n this.contentEl_ = temp;\n this.on(close, 'close', this.close_);\n }\n\n // If this is being made uncloseable and has a close button, remove it.\n if (!closeable && close) {\n this.off(close, 'close', this.close_);\n this.removeChild(close);\n close.dispose();\n }\n }\n return this.closeable_;\n }\n\n /**\n * Fill the modal's content element with the modal's \"content\" option.\n * The content element will be emptied before this change takes place.\n */\n fill() {\n this.fillWith(this.content());\n }\n\n /**\n * Fill the modal's content element with arbitrary content.\n * The content element will be emptied before this change takes place.\n *\n * @fires ModalDialog#beforemodalfill\n * @fires ModalDialog#modalfill\n *\n * @param { import('./utils/dom').ContentDescriptor} [content]\n * The same rules apply to this as apply to the `content` option.\n */\n fillWith(content) {\n const contentEl = this.contentEl();\n const parentEl = contentEl.parentNode;\n const nextSiblingEl = contentEl.nextSibling;\n\n /**\n * Fired just before a `ModalDialog` is filled with content.\n *\n * @event ModalDialog#beforemodalfill\n * @type {Event}\n */\n this.trigger('beforemodalfill');\n this.hasBeenFilled_ = true;\n\n // Detach the content element from the DOM before performing\n // manipulation to avoid modifying the live DOM multiple times.\n parentEl.removeChild(contentEl);\n this.empty();\n insertContent(contentEl, content);\n /**\n * Fired just after a `ModalDialog` is filled with content.\n *\n * @event ModalDialog#modalfill\n * @type {Event}\n */\n this.trigger('modalfill');\n\n // Re-inject the re-filled content element.\n if (nextSiblingEl) {\n parentEl.insertBefore(contentEl, nextSiblingEl);\n } else {\n parentEl.appendChild(contentEl);\n }\n\n // make sure that the close button is last in the dialog DOM\n const closeButton = this.getChild('closeButton');\n if (closeButton) {\n parentEl.appendChild(closeButton.el_);\n }\n }\n\n /**\n * Empties the content element. This happens anytime the modal is filled.\n *\n * @fires ModalDialog#beforemodalempty\n * @fires ModalDialog#modalempty\n */\n empty() {\n /**\n * Fired just before a `ModalDialog` is emptied.\n *\n * @event ModalDialog#beforemodalempty\n * @type {Event}\n */\n this.trigger('beforemodalempty');\n emptyEl(this.contentEl());\n\n /**\n * Fired just after a `ModalDialog` is emptied.\n *\n * @event ModalDialog#modalempty\n * @type {Event}\n */\n this.trigger('modalempty');\n }\n\n /**\n * Gets or sets the modal content, which gets normalized before being\n * rendered into the DOM.\n *\n * This does not update the DOM or fill the modal, but it is called during\n * that process.\n *\n * @param { import('./utils/dom').ContentDescriptor} [value]\n * If defined, sets the internal content value to be used on the\n * next call(s) to `fill`. This value is normalized before being\n * inserted. To \"clear\" the internal content value, pass `null`.\n *\n * @return { import('./utils/dom').ContentDescriptor}\n * The current content of the modal dialog\n */\n content(value) {\n if (typeof value !== 'undefined') {\n this.content_ = value;\n }\n return this.content_;\n }\n\n /**\n * conditionally focus the modal dialog if focus was previously on the player.\n *\n * @private\n */\n conditionalFocus_() {\n const activeEl = document.activeElement;\n const playerEl = this.player_.el_;\n this.previouslyActiveEl_ = null;\n if (playerEl.contains(activeEl) || playerEl === activeEl) {\n this.previouslyActiveEl_ = activeEl;\n this.focus();\n }\n }\n\n /**\n * conditionally blur the element and refocus the last focused element\n *\n * @private\n */\n conditionalBlur_() {\n if (this.previouslyActiveEl_) {\n this.previouslyActiveEl_.focus();\n this.previouslyActiveEl_ = null;\n }\n }\n\n /**\n * Keydown handler. Attached when modal is focused.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Do not allow keydowns to reach out of the modal dialog.\n event.stopPropagation();\n if (keycode.isEventKey(event, 'Escape') && this.closeable()) {\n event.preventDefault();\n this.close();\n return;\n }\n\n // exit early if it isn't a tab key\n if (!keycode.isEventKey(event, 'Tab')) {\n return;\n }\n const focusableEls = this.focusableEls_();\n const activeEl = this.el_.querySelector(':focus');\n let focusIndex;\n for (let i = 0; i < focusableEls.length; i++) {\n if (activeEl === focusableEls[i]) {\n focusIndex = i;\n break;\n }\n }\n if (document.activeElement === this.el_) {\n focusIndex = 0;\n }\n if (event.shiftKey && focusIndex === 0) {\n focusableEls[focusableEls.length - 1].focus();\n event.preventDefault();\n } else if (!event.shiftKey && focusIndex === focusableEls.length - 1) {\n focusableEls[0].focus();\n event.preventDefault();\n }\n }\n\n /**\n * get all focusable elements\n *\n * @private\n */\n focusableEls_() {\n const allChildren = this.el_.querySelectorAll('*');\n return Array.prototype.filter.call(allChildren, child => {\n return (child instanceof window$1.HTMLAnchorElement || child instanceof window$1.HTMLAreaElement) && child.hasAttribute('href') || (child instanceof window$1.HTMLInputElement || child instanceof window$1.HTMLSelectElement || child instanceof window$1.HTMLTextAreaElement || child instanceof window$1.HTMLButtonElement) && !child.hasAttribute('disabled') || child instanceof window$1.HTMLIFrameElement || child instanceof window$1.HTMLObjectElement || child instanceof window$1.HTMLEmbedElement || child.hasAttribute('tabindex') && child.getAttribute('tabindex') !== -1 || child.hasAttribute('contenteditable');\n });\n }\n}\n\n/**\n * Default options for `ModalDialog` default options.\n *\n * @type {Object}\n * @private\n */\nModalDialog.prototype.options_ = {\n pauseOnOpen: true,\n temporary: true\n};\nComponent$1.registerComponent('ModalDialog', ModalDialog);\n\n/**\n * @file track-list.js\n */\n\n/**\n * Common functionaliy between {@link TextTrackList}, {@link AudioTrackList}, and\n * {@link VideoTrackList}\n *\n * @extends EventTarget\n */\nclass TrackList extends EventTarget$2 {\n /**\n * Create an instance of this class\n *\n * @param { import('./track').default[] } tracks\n * A list of tracks to initialize the list with.\n *\n * @abstract\n */\n constructor() {\n let tracks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n super();\n this.tracks_ = [];\n\n /**\n * @memberof TrackList\n * @member {number} length\n * The current number of `Track`s in the this Trackist.\n * @instance\n */\n Object.defineProperty(this, 'length', {\n get() {\n return this.tracks_.length;\n }\n });\n for (let i = 0; i < tracks.length; i++) {\n this.addTrack(tracks[i]);\n }\n }\n\n /**\n * Add a {@link Track} to the `TrackList`\n *\n * @param { import('./track').default } track\n * The audio, video, or text track to add to the list.\n *\n * @fires TrackList#addtrack\n */\n addTrack(track) {\n const index = this.tracks_.length;\n if (!('' + index in this)) {\n Object.defineProperty(this, index, {\n get() {\n return this.tracks_[index];\n }\n });\n }\n\n // Do not add duplicate tracks\n if (this.tracks_.indexOf(track) === -1) {\n this.tracks_.push(track);\n /**\n * Triggered when a track is added to a track list.\n *\n * @event TrackList#addtrack\n * @type {Event}\n * @property {Track} track\n * A reference to track that was added.\n */\n this.trigger({\n track,\n type: 'addtrack',\n target: this\n });\n }\n\n /**\n * Triggered when a track label is changed.\n *\n * @event TrackList#addtrack\n * @type {Event}\n * @property {Track} track\n * A reference to track that was added.\n */\n track.labelchange_ = () => {\n this.trigger({\n track,\n type: 'labelchange',\n target: this\n });\n };\n if (isEvented(track)) {\n track.addEventListener('labelchange', track.labelchange_);\n }\n }\n\n /**\n * Remove a {@link Track} from the `TrackList`\n *\n * @param { import('./track').default } rtrack\n * The audio, video, or text track to remove from the list.\n *\n * @fires TrackList#removetrack\n */\n removeTrack(rtrack) {\n let track;\n for (let i = 0, l = this.length; i < l; i++) {\n if (this[i] === rtrack) {\n track = this[i];\n if (track.off) {\n track.off();\n }\n this.tracks_.splice(i, 1);\n break;\n }\n }\n if (!track) {\n return;\n }\n\n /**\n * Triggered when a track is removed from track list.\n *\n * @event TrackList#removetrack\n * @type {Event}\n * @property {Track} track\n * A reference to track that was removed.\n */\n this.trigger({\n track,\n type: 'removetrack',\n target: this\n });\n }\n\n /**\n * Get a Track from the TrackList by a tracks id\n *\n * @param {string} id - the id of the track to get\n * @method getTrackById\n * @return { import('./track').default }\n * @private\n */\n getTrackById(id) {\n let result = null;\n for (let i = 0, l = this.length; i < l; i++) {\n const track = this[i];\n if (track.id === id) {\n result = track;\n break;\n }\n }\n return result;\n }\n}\n\n/**\n * Triggered when a different track is selected/enabled.\n *\n * @event TrackList#change\n * @type {Event}\n */\n\n/**\n * Events that can be called with on + eventName. See {@link EventHandler}.\n *\n * @property {Object} TrackList#allowedEvents_\n * @protected\n */\nTrackList.prototype.allowedEvents_ = {\n change: 'change',\n addtrack: 'addtrack',\n removetrack: 'removetrack',\n labelchange: 'labelchange'\n};\n\n// emulate attribute EventHandler support to allow for feature detection\nfor (const event in TrackList.prototype.allowedEvents_) {\n TrackList.prototype['on' + event] = null;\n}\n\n/**\n * @file audio-track-list.js\n */\n\n/**\n * Anywhere we call this function we diverge from the spec\n * as we only support one enabled audiotrack at a time\n *\n * @param {AudioTrackList} list\n * list to work on\n *\n * @param { import('./audio-track').default } track\n * The track to skip\n *\n * @private\n */\nconst disableOthers$1 = function (list, track) {\n for (let i = 0; i < list.length; i++) {\n if (!Object.keys(list[i]).length || track.id === list[i].id) {\n continue;\n }\n // another audio track is enabled, disable it\n list[i].enabled = false;\n }\n};\n\n/**\n * The current list of {@link AudioTrack} for a media file.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist}\n * @extends TrackList\n */\nclass AudioTrackList extends TrackList {\n /**\n * Create an instance of this class.\n *\n * @param { import('./audio-track').default[] } [tracks=[]]\n * A list of `AudioTrack` to instantiate the list with.\n */\n constructor() {\n let tracks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n // make sure only 1 track is enabled\n // sorted from last index to first index\n for (let i = tracks.length - 1; i >= 0; i--) {\n if (tracks[i].enabled) {\n disableOthers$1(tracks, tracks[i]);\n break;\n }\n }\n super(tracks);\n this.changing_ = false;\n }\n\n /**\n * Add an {@link AudioTrack} to the `AudioTrackList`.\n *\n * @param { import('./audio-track').default } track\n * The AudioTrack to add to the list\n *\n * @fires TrackList#addtrack\n */\n addTrack(track) {\n if (track.enabled) {\n disableOthers$1(this, track);\n }\n super.addTrack(track);\n // native tracks don't have this\n if (!track.addEventListener) {\n return;\n }\n track.enabledChange_ = () => {\n // when we are disabling other tracks (since we don't support\n // more than one track at a time) we will set changing_\n // to true so that we don't trigger additional change events\n if (this.changing_) {\n return;\n }\n this.changing_ = true;\n disableOthers$1(this, track);\n this.changing_ = false;\n this.trigger('change');\n };\n\n /**\n * @listens AudioTrack#enabledchange\n * @fires TrackList#change\n */\n track.addEventListener('enabledchange', track.enabledChange_);\n }\n removeTrack(rtrack) {\n super.removeTrack(rtrack);\n if (rtrack.removeEventListener && rtrack.enabledChange_) {\n rtrack.removeEventListener('enabledchange', rtrack.enabledChange_);\n rtrack.enabledChange_ = null;\n }\n }\n}\n\n/**\n * @file video-track-list.js\n */\n\n/**\n * Un-select all other {@link VideoTrack}s that are selected.\n *\n * @param {VideoTrackList} list\n * list to work on\n *\n * @param { import('./video-track').default } track\n * The track to skip\n *\n * @private\n */\nconst disableOthers = function (list, track) {\n for (let i = 0; i < list.length; i++) {\n if (!Object.keys(list[i]).length || track.id === list[i].id) {\n continue;\n }\n // another video track is enabled, disable it\n list[i].selected = false;\n }\n};\n\n/**\n * The current list of {@link VideoTrack} for a video.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist}\n * @extends TrackList\n */\nclass VideoTrackList extends TrackList {\n /**\n * Create an instance of this class.\n *\n * @param {VideoTrack[]} [tracks=[]]\n * A list of `VideoTrack` to instantiate the list with.\n */\n constructor() {\n let tracks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n // make sure only 1 track is enabled\n // sorted from last index to first index\n for (let i = tracks.length - 1; i >= 0; i--) {\n if (tracks[i].selected) {\n disableOthers(tracks, tracks[i]);\n break;\n }\n }\n super(tracks);\n this.changing_ = false;\n\n /**\n * @member {number} VideoTrackList#selectedIndex\n * The current index of the selected {@link VideoTrack`}.\n */\n Object.defineProperty(this, 'selectedIndex', {\n get() {\n for (let i = 0; i < this.length; i++) {\n if (this[i].selected) {\n return i;\n }\n }\n return -1;\n },\n set() {}\n });\n }\n\n /**\n * Add a {@link VideoTrack} to the `VideoTrackList`.\n *\n * @param { import('./video-track').default } track\n * The VideoTrack to add to the list\n *\n * @fires TrackList#addtrack\n */\n addTrack(track) {\n if (track.selected) {\n disableOthers(this, track);\n }\n super.addTrack(track);\n // native tracks don't have this\n if (!track.addEventListener) {\n return;\n }\n track.selectedChange_ = () => {\n if (this.changing_) {\n return;\n }\n this.changing_ = true;\n disableOthers(this, track);\n this.changing_ = false;\n this.trigger('change');\n };\n\n /**\n * @listens VideoTrack#selectedchange\n * @fires TrackList#change\n */\n track.addEventListener('selectedchange', track.selectedChange_);\n }\n removeTrack(rtrack) {\n super.removeTrack(rtrack);\n if (rtrack.removeEventListener && rtrack.selectedChange_) {\n rtrack.removeEventListener('selectedchange', rtrack.selectedChange_);\n rtrack.selectedChange_ = null;\n }\n }\n}\n\n/**\n * @file text-track-list.js\n */\n\n/**\n * The current list of {@link TextTrack} for a media file.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#texttracklist}\n * @extends TrackList\n */\nclass TextTrackList extends TrackList {\n /**\n * Add a {@link TextTrack} to the `TextTrackList`\n *\n * @param { import('./text-track').default } track\n * The text track to add to the list.\n *\n * @fires TrackList#addtrack\n */\n addTrack(track) {\n super.addTrack(track);\n if (!this.queueChange_) {\n this.queueChange_ = () => this.queueTrigger('change');\n }\n if (!this.triggerSelectedlanguagechange) {\n this.triggerSelectedlanguagechange_ = () => this.trigger('selectedlanguagechange');\n }\n\n /**\n * @listens TextTrack#modechange\n * @fires TrackList#change\n */\n track.addEventListener('modechange', this.queueChange_);\n const nonLanguageTextTrackKind = ['metadata', 'chapters'];\n if (nonLanguageTextTrackKind.indexOf(track.kind) === -1) {\n track.addEventListener('modechange', this.triggerSelectedlanguagechange_);\n }\n }\n removeTrack(rtrack) {\n super.removeTrack(rtrack);\n\n // manually remove the event handlers we added\n if (rtrack.removeEventListener) {\n if (this.queueChange_) {\n rtrack.removeEventListener('modechange', this.queueChange_);\n }\n if (this.selectedlanguagechange_) {\n rtrack.removeEventListener('modechange', this.triggerSelectedlanguagechange_);\n }\n }\n }\n}\n\n/**\n * @file html-track-element-list.js\n */\n\n/**\n * The current list of {@link HtmlTrackElement}s.\n */\nclass HtmlTrackElementList {\n /**\n * Create an instance of this class.\n *\n * @param {HtmlTrackElement[]} [tracks=[]]\n * A list of `HtmlTrackElement` to instantiate the list with.\n */\n constructor() {\n let trackElements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n this.trackElements_ = [];\n\n /**\n * @memberof HtmlTrackElementList\n * @member {number} length\n * The current number of `Track`s in the this Trackist.\n * @instance\n */\n Object.defineProperty(this, 'length', {\n get() {\n return this.trackElements_.length;\n }\n });\n for (let i = 0, length = trackElements.length; i < length; i++) {\n this.addTrackElement_(trackElements[i]);\n }\n }\n\n /**\n * Add an {@link HtmlTrackElement} to the `HtmlTrackElementList`\n *\n * @param {HtmlTrackElement} trackElement\n * The track element to add to the list.\n *\n * @private\n */\n addTrackElement_(trackElement) {\n const index = this.trackElements_.length;\n if (!('' + index in this)) {\n Object.defineProperty(this, index, {\n get() {\n return this.trackElements_[index];\n }\n });\n }\n\n // Do not add duplicate elements\n if (this.trackElements_.indexOf(trackElement) === -1) {\n this.trackElements_.push(trackElement);\n }\n }\n\n /**\n * Get an {@link HtmlTrackElement} from the `HtmlTrackElementList` given an\n * {@link TextTrack}.\n *\n * @param {TextTrack} track\n * The track associated with a track element.\n *\n * @return {HtmlTrackElement|undefined}\n * The track element that was found or undefined.\n *\n * @private\n */\n getTrackElementByTrack_(track) {\n let trackElement_;\n for (let i = 0, length = this.trackElements_.length; i < length; i++) {\n if (track === this.trackElements_[i].track) {\n trackElement_ = this.trackElements_[i];\n break;\n }\n }\n return trackElement_;\n }\n\n /**\n * Remove a {@link HtmlTrackElement} from the `HtmlTrackElementList`\n *\n * @param {HtmlTrackElement} trackElement\n * The track element to remove from the list.\n *\n * @private\n */\n removeTrackElement_(trackElement) {\n for (let i = 0, length = this.trackElements_.length; i < length; i++) {\n if (trackElement === this.trackElements_[i]) {\n if (this.trackElements_[i].track && typeof this.trackElements_[i].track.off === 'function') {\n this.trackElements_[i].track.off();\n }\n if (typeof this.trackElements_[i].off === 'function') {\n this.trackElements_[i].off();\n }\n this.trackElements_.splice(i, 1);\n break;\n }\n }\n }\n}\n\n/**\n * @file text-track-cue-list.js\n */\n\n/**\n * @typedef {Object} TextTrackCueList~TextTrackCue\n *\n * @property {string} id\n * The unique id for this text track cue\n *\n * @property {number} startTime\n * The start time for this text track cue\n *\n * @property {number} endTime\n * The end time for this text track cue\n *\n * @property {boolean} pauseOnExit\n * Pause when the end time is reached if true.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcue}\n */\n\n/**\n * A List of TextTrackCues.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcuelist}\n */\nclass TextTrackCueList {\n /**\n * Create an instance of this class..\n *\n * @param {Array} cues\n * A list of cues to be initialized with\n */\n constructor(cues) {\n TextTrackCueList.prototype.setCues_.call(this, cues);\n\n /**\n * @memberof TextTrackCueList\n * @member {number} length\n * The current number of `TextTrackCue`s in the TextTrackCueList.\n * @instance\n */\n Object.defineProperty(this, 'length', {\n get() {\n return this.length_;\n }\n });\n }\n\n /**\n * A setter for cues in this list. Creates getters\n * an an index for the cues.\n *\n * @param {Array} cues\n * An array of cues to set\n *\n * @private\n */\n setCues_(cues) {\n const oldLength = this.length || 0;\n let i = 0;\n const l = cues.length;\n this.cues_ = cues;\n this.length_ = cues.length;\n const defineProp = function (index) {\n if (!('' + index in this)) {\n Object.defineProperty(this, '' + index, {\n get() {\n return this.cues_[index];\n }\n });\n }\n };\n if (oldLength < l) {\n i = oldLength;\n for (; i < l; i++) {\n defineProp.call(this, i);\n }\n }\n }\n\n /**\n * Get a `TextTrackCue` that is currently in the `TextTrackCueList` by id.\n *\n * @param {string} id\n * The id of the cue that should be searched for.\n *\n * @return {TextTrackCueList~TextTrackCue|null}\n * A single cue or null if none was found.\n */\n getCueById(id) {\n let result = null;\n for (let i = 0, l = this.length; i < l; i++) {\n const cue = this[i];\n if (cue.id === id) {\n result = cue;\n break;\n }\n }\n return result;\n }\n}\n\n/**\n * @file track-kinds.js\n */\n\n/**\n * All possible `VideoTrackKind`s\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-videotrack-kind\n * @typedef VideoTrack~Kind\n * @enum\n */\nconst VideoTrackKind = {\n alternative: 'alternative',\n captions: 'captions',\n main: 'main',\n sign: 'sign',\n subtitles: 'subtitles',\n commentary: 'commentary'\n};\n\n/**\n * All possible `AudioTrackKind`s\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-audiotrack-kind\n * @typedef AudioTrack~Kind\n * @enum\n */\nconst AudioTrackKind = {\n 'alternative': 'alternative',\n 'descriptions': 'descriptions',\n 'main': 'main',\n 'main-desc': 'main-desc',\n 'translation': 'translation',\n 'commentary': 'commentary'\n};\n\n/**\n * All possible `TextTrackKind`s\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-texttrack-kind\n * @typedef TextTrack~Kind\n * @enum\n */\nconst TextTrackKind = {\n subtitles: 'subtitles',\n captions: 'captions',\n descriptions: 'descriptions',\n chapters: 'chapters',\n metadata: 'metadata'\n};\n\n/**\n * All possible `TextTrackMode`s\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackmode\n * @typedef TextTrack~Mode\n * @enum\n */\nconst TextTrackMode = {\n disabled: 'disabled',\n hidden: 'hidden',\n showing: 'showing'\n};\n\n/**\n * @file track.js\n */\n\n/**\n * A Track class that contains all of the common functionality for {@link AudioTrack},\n * {@link VideoTrack}, and {@link TextTrack}.\n *\n * > Note: This class should not be used directly\n *\n * @see {@link https://html.spec.whatwg.org/multipage/embedded-content.html}\n * @extends EventTarget\n * @abstract\n */\nclass Track extends EventTarget$2 {\n /**\n * Create an instance of this class.\n *\n * @param {Object} [options={}]\n * Object of option names and values\n *\n * @param {string} [options.kind='']\n * A valid kind for the track type you are creating.\n *\n * @param {string} [options.id='vjs_track_' + Guid.newGUID()]\n * A unique id for this AudioTrack.\n *\n * @param {string} [options.label='']\n * The menu label for this track.\n *\n * @param {string} [options.language='']\n * A valid two character language code.\n *\n * @abstract\n */\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n super();\n const trackProps = {\n id: options.id || 'vjs_track_' + newGUID(),\n kind: options.kind || '',\n language: options.language || ''\n };\n let label = options.label || '';\n\n /**\n * @memberof Track\n * @member {string} id\n * The id of this track. Cannot be changed after creation.\n * @instance\n *\n * @readonly\n */\n\n /**\n * @memberof Track\n * @member {string} kind\n * The kind of track that this is. Cannot be changed after creation.\n * @instance\n *\n * @readonly\n */\n\n /**\n * @memberof Track\n * @member {string} language\n * The two letter language code for this track. Cannot be changed after\n * creation.\n * @instance\n *\n * @readonly\n */\n\n for (const key in trackProps) {\n Object.defineProperty(this, key, {\n get() {\n return trackProps[key];\n },\n set() {}\n });\n }\n\n /**\n * @memberof Track\n * @member {string} label\n * The label of this track. Cannot be changed after creation.\n * @instance\n *\n * @fires Track#labelchange\n */\n Object.defineProperty(this, 'label', {\n get() {\n return label;\n },\n set(newLabel) {\n if (newLabel !== label) {\n label = newLabel;\n\n /**\n * An event that fires when label changes on this track.\n *\n * > Note: This is not part of the spec!\n *\n * @event Track#labelchange\n * @type {Event}\n */\n this.trigger('labelchange');\n }\n }\n });\n }\n}\n\n/**\n * @file url.js\n * @module url\n */\n\n/**\n * @typedef {Object} url:URLObject\n *\n * @property {string} protocol\n * The protocol of the url that was parsed.\n *\n * @property {string} hostname\n * The hostname of the url that was parsed.\n *\n * @property {string} port\n * The port of the url that was parsed.\n *\n * @property {string} pathname\n * The pathname of the url that was parsed.\n *\n * @property {string} search\n * The search query of the url that was parsed.\n *\n * @property {string} hash\n * The hash of the url that was parsed.\n *\n * @property {string} host\n * The host of the url that was parsed.\n */\n\n/**\n * Resolve and parse the elements of a URL.\n *\n * @function\n * @param {String} url\n * The url to parse\n *\n * @return {url:URLObject}\n * An object of url details\n */\nconst parseUrl = function (url) {\n // This entire method can be replace with URL once we are able to drop IE11\n\n const props = ['protocol', 'hostname', 'port', 'pathname', 'search', 'hash', 'host'];\n\n // add the url to an anchor and let the browser parse the URL\n const a = document.createElement('a');\n a.href = url;\n\n // Copy the specific URL properties to a new object\n // This is also needed for IE because the anchor loses its\n // properties when it's removed from the dom\n const details = {};\n for (let i = 0; i < props.length; i++) {\n details[props[i]] = a[props[i]];\n }\n\n // IE adds the port to the host property unlike everyone else. If\n // a port identifier is added for standard ports, strip it.\n if (details.protocol === 'http:') {\n details.host = details.host.replace(/:80$/, '');\n }\n if (details.protocol === 'https:') {\n details.host = details.host.replace(/:443$/, '');\n }\n if (!details.protocol) {\n details.protocol = window$1.location.protocol;\n }\n\n /* istanbul ignore if */\n if (!details.host) {\n details.host = window$1.location.host;\n }\n return details;\n};\n\n/**\n * Get absolute version of relative URL.\n *\n * @function\n * @param {string} url\n * URL to make absolute\n *\n * @return {string}\n * Absolute URL\n *\n * @see http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue\n */\nconst getAbsoluteURL = function (url) {\n // Check if absolute URL\n if (!url.match(/^https?:\\/\\//)) {\n // Add the url to an anchor and let the browser parse it to convert to an absolute url\n const a = document.createElement('a');\n a.href = url;\n url = a.href;\n }\n return url;\n};\n\n/**\n * Returns the extension of the passed file name. It will return an empty string\n * if passed an invalid path.\n *\n * @function\n * @param {string} path\n * The fileName path like '/path/to/file.mp4'\n *\n * @return {string}\n * The extension in lower case or an empty string if no\n * extension could be found.\n */\nconst getFileExtension = function (path) {\n if (typeof path === 'string') {\n const splitPathRe = /^(\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?)(\\.([^\\.\\/\\?]+)))(?:[\\/]*|[\\?].*)$/;\n const pathParts = splitPathRe.exec(path);\n if (pathParts) {\n return pathParts.pop().toLowerCase();\n }\n }\n return '';\n};\n\n/**\n * Returns whether the url passed is a cross domain request or not.\n *\n * @function\n * @param {string} url\n * The url to check.\n *\n * @param {Object} [winLoc]\n * the domain to check the url against, defaults to window.location\n *\n * @param {string} [winLoc.protocol]\n * The window location protocol defaults to window.location.protocol\n *\n * @param {string} [winLoc.host]\n * The window location host defaults to window.location.host\n *\n * @return {boolean}\n * Whether it is a cross domain request or not.\n */\nconst isCrossOrigin = function (url) {\n let winLoc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window$1.location;\n const urlInfo = parseUrl(url);\n\n // IE8 protocol relative urls will return ':' for protocol\n const srcProtocol = urlInfo.protocol === ':' ? winLoc.protocol : urlInfo.protocol;\n\n // Check if url is for another domain/origin\n // IE8 doesn't know location.origin, so we won't rely on it here\n const crossOrigin = srcProtocol + urlInfo.host !== winLoc.protocol + winLoc.host;\n return crossOrigin;\n};\nvar Url = /*#__PURE__*/Object.freeze({\n __proto__: null,\n parseUrl: parseUrl,\n getAbsoluteURL: getAbsoluteURL,\n getFileExtension: getFileExtension,\n isCrossOrigin: isCrossOrigin\n});\n\n/**\n * @file text-track.js\n */\n\n/**\n * Takes a webvtt file contents and parses it into cues\n *\n * @param {string} srcContent\n * webVTT file contents\n *\n * @param {TextTrack} track\n * TextTrack to add cues to. Cues come from the srcContent.\n *\n * @private\n */\nconst parseCues = function (srcContent, track) {\n const parser = new window$1.WebVTT.Parser(window$1, window$1.vttjs, window$1.WebVTT.StringDecoder());\n const errors = [];\n parser.oncue = function (cue) {\n track.addCue(cue);\n };\n parser.onparsingerror = function (error) {\n errors.push(error);\n };\n parser.onflush = function () {\n track.trigger({\n type: 'loadeddata',\n target: track\n });\n };\n parser.parse(srcContent);\n if (errors.length > 0) {\n if (window$1.console && window$1.console.groupCollapsed) {\n window$1.console.groupCollapsed(`Text Track parsing errors for ${track.src}`);\n }\n errors.forEach(error => log$1.error(error));\n if (window$1.console && window$1.console.groupEnd) {\n window$1.console.groupEnd();\n }\n }\n parser.flush();\n};\n\n/**\n * Load a `TextTrack` from a specified url.\n *\n * @param {string} src\n * Url to load track from.\n *\n * @param {TextTrack} track\n * Track to add cues to. Comes from the content at the end of `url`.\n *\n * @private\n */\nconst loadTrack = function (src, track) {\n const opts = {\n uri: src\n };\n const crossOrigin = isCrossOrigin(src);\n if (crossOrigin) {\n opts.cors = crossOrigin;\n }\n const withCredentials = track.tech_.crossOrigin() === 'use-credentials';\n if (withCredentials) {\n opts.withCredentials = withCredentials;\n }\n XHR(opts, bind_(this, function (err, response, responseBody) {\n if (err) {\n return log$1.error(err, response);\n }\n track.loaded_ = true;\n\n // Make sure that vttjs has loaded, otherwise, wait till it finished loading\n // NOTE: this is only used for the alt/video.novtt.js build\n if (typeof window$1.WebVTT !== 'function') {\n if (track.tech_) {\n // to prevent use before define eslint error, we define loadHandler\n // as a let here\n track.tech_.any(['vttjsloaded', 'vttjserror'], event => {\n if (event.type === 'vttjserror') {\n log$1.error(`vttjs failed to load, stopping trying to process ${track.src}`);\n return;\n }\n return parseCues(responseBody, track);\n });\n }\n } else {\n parseCues(responseBody, track);\n }\n }));\n};\n\n/**\n * A representation of a single `TextTrack`.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#texttrack}\n * @extends Track\n */\nclass TextTrack extends Track {\n /**\n * Create an instance of this class.\n *\n * @param {Object} options={}\n * Object of option names and values\n *\n * @param { import('../tech/tech').default } options.tech\n * A reference to the tech that owns this TextTrack.\n *\n * @param {TextTrack~Kind} [options.kind='subtitles']\n * A valid text track kind.\n *\n * @param {TextTrack~Mode} [options.mode='disabled']\n * A valid text track mode.\n *\n * @param {string} [options.id='vjs_track_' + Guid.newGUID()]\n * A unique id for this TextTrack.\n *\n * @param {string} [options.label='']\n * The menu label for this track.\n *\n * @param {string} [options.language='']\n * A valid two character language code.\n *\n * @param {string} [options.srclang='']\n * A valid two character language code. An alternative, but deprioritized\n * version of `options.language`\n *\n * @param {string} [options.src]\n * A url to TextTrack cues.\n *\n * @param {boolean} [options.default]\n * If this track should default to on or off.\n */\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!options.tech) {\n throw new Error('A tech was not provided.');\n }\n const settings = merge$1(options, {\n kind: TextTrackKind[options.kind] || 'subtitles',\n language: options.language || options.srclang || ''\n });\n let mode = TextTrackMode[settings.mode] || 'disabled';\n const default_ = settings.default;\n if (settings.kind === 'metadata' || settings.kind === 'chapters') {\n mode = 'hidden';\n }\n super(settings);\n this.tech_ = settings.tech;\n this.cues_ = [];\n this.activeCues_ = [];\n this.preload_ = this.tech_.preloadTextTracks !== false;\n const cues = new TextTrackCueList(this.cues_);\n const activeCues = new TextTrackCueList(this.activeCues_);\n let changed = false;\n this.timeupdateHandler = bind_(this, function () {\n let event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (this.tech_.isDisposed()) {\n return;\n }\n if (!this.tech_.isReady_) {\n if (event.type !== 'timeupdate') {\n this.rvf_ = this.tech_.requestVideoFrameCallback(this.timeupdateHandler);\n }\n return;\n }\n\n // Accessing this.activeCues for the side-effects of updating itself\n // due to its nature as a getter function. Do not remove or cues will\n // stop updating!\n // Use the setter to prevent deletion from uglify (pure_getters rule)\n this.activeCues = this.activeCues;\n if (changed) {\n this.trigger('cuechange');\n changed = false;\n }\n if (event.type !== 'timeupdate') {\n this.rvf_ = this.tech_.requestVideoFrameCallback(this.timeupdateHandler);\n }\n });\n const disposeHandler = () => {\n this.stopTracking();\n };\n this.tech_.one('dispose', disposeHandler);\n if (mode !== 'disabled') {\n this.startTracking();\n }\n Object.defineProperties(this, {\n /**\n * @memberof TextTrack\n * @member {boolean} default\n * If this track was set to be on or off by default. Cannot be changed after\n * creation.\n * @instance\n *\n * @readonly\n */\n default: {\n get() {\n return default_;\n },\n set() {}\n },\n /**\n * @memberof TextTrack\n * @member {string} mode\n * Set the mode of this TextTrack to a valid {@link TextTrack~Mode}. Will\n * not be set if setting to an invalid mode.\n * @instance\n *\n * @fires TextTrack#modechange\n */\n mode: {\n get() {\n return mode;\n },\n set(newMode) {\n if (!TextTrackMode[newMode]) {\n return;\n }\n if (mode === newMode) {\n return;\n }\n mode = newMode;\n if (!this.preload_ && mode !== 'disabled' && this.cues.length === 0) {\n // On-demand load.\n loadTrack(this.src, this);\n }\n this.stopTracking();\n if (mode !== 'disabled') {\n this.startTracking();\n }\n /**\n * An event that fires when mode changes on this track. This allows\n * the TextTrackList that holds this track to act accordingly.\n *\n * > Note: This is not part of the spec!\n *\n * @event TextTrack#modechange\n * @type {Event}\n */\n this.trigger('modechange');\n }\n },\n /**\n * @memberof TextTrack\n * @member {TextTrackCueList} cues\n * The text track cue list for this TextTrack.\n * @instance\n */\n cues: {\n get() {\n if (!this.loaded_) {\n return null;\n }\n return cues;\n },\n set() {}\n },\n /**\n * @memberof TextTrack\n * @member {TextTrackCueList} activeCues\n * The list text track cues that are currently active for this TextTrack.\n * @instance\n */\n activeCues: {\n get() {\n if (!this.loaded_) {\n return null;\n }\n\n // nothing to do\n if (this.cues.length === 0) {\n return activeCues;\n }\n const ct = this.tech_.currentTime();\n const active = [];\n for (let i = 0, l = this.cues.length; i < l; i++) {\n const cue = this.cues[i];\n if (cue.startTime <= ct && cue.endTime >= ct) {\n active.push(cue);\n }\n }\n changed = false;\n if (active.length !== this.activeCues_.length) {\n changed = true;\n } else {\n for (let i = 0; i < active.length; i++) {\n if (this.activeCues_.indexOf(active[i]) === -1) {\n changed = true;\n }\n }\n }\n this.activeCues_ = active;\n activeCues.setCues_(this.activeCues_);\n return activeCues;\n },\n // /!\\ Keep this setter empty (see the timeupdate handler above)\n set() {}\n }\n });\n if (settings.src) {\n this.src = settings.src;\n if (!this.preload_) {\n // Tracks will load on-demand.\n // Act like we're loaded for other purposes.\n this.loaded_ = true;\n }\n if (this.preload_ || settings.kind !== 'subtitles' && settings.kind !== 'captions') {\n loadTrack(this.src, this);\n }\n } else {\n this.loaded_ = true;\n }\n }\n startTracking() {\n // More precise cues based on requestVideoFrameCallback with a requestAnimationFram fallback\n this.rvf_ = this.tech_.requestVideoFrameCallback(this.timeupdateHandler);\n // Also listen to timeupdate in case rVFC/rAF stops (window in background, audio in video el)\n this.tech_.on('timeupdate', this.timeupdateHandler);\n }\n stopTracking() {\n if (this.rvf_) {\n this.tech_.cancelVideoFrameCallback(this.rvf_);\n this.rvf_ = undefined;\n }\n this.tech_.off('timeupdate', this.timeupdateHandler);\n }\n\n /**\n * Add a cue to the internal list of cues.\n *\n * @param {TextTrack~Cue} cue\n * The cue to add to our internal list\n */\n addCue(originalCue) {\n let cue = originalCue;\n\n // Testing if the cue is a VTTCue in a way that survives minification\n if (!('getCueAsHTML' in cue)) {\n cue = new window$1.vttjs.VTTCue(originalCue.startTime, originalCue.endTime, originalCue.text);\n for (const prop in originalCue) {\n if (!(prop in cue)) {\n cue[prop] = originalCue[prop];\n }\n }\n\n // make sure that `id` is copied over\n cue.id = originalCue.id;\n cue.originalCue_ = originalCue;\n }\n const tracks = this.tech_.textTracks();\n for (let i = 0; i < tracks.length; i++) {\n if (tracks[i] !== this) {\n tracks[i].removeCue(cue);\n }\n }\n this.cues_.push(cue);\n this.cues.setCues_(this.cues_);\n }\n\n /**\n * Remove a cue from our internal list\n *\n * @param {TextTrack~Cue} removeCue\n * The cue to remove from our internal list\n */\n removeCue(removeCue) {\n let i = this.cues_.length;\n while (i--) {\n const cue = this.cues_[i];\n if (cue === removeCue || cue.originalCue_ && cue.originalCue_ === removeCue) {\n this.cues_.splice(i, 1);\n this.cues.setCues_(this.cues_);\n break;\n }\n }\n }\n}\n\n/**\n * cuechange - One or more cues in the track have become active or stopped being active.\n * @protected\n */\nTextTrack.prototype.allowedEvents_ = {\n cuechange: 'cuechange'\n};\n\n/**\n * A representation of a single `AudioTrack`. If it is part of an {@link AudioTrackList}\n * only one `AudioTrack` in the list will be enabled at a time.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#audiotrack}\n * @extends Track\n */\nclass AudioTrack extends Track {\n /**\n * Create an instance of this class.\n *\n * @param {Object} [options={}]\n * Object of option names and values\n *\n * @param {AudioTrack~Kind} [options.kind='']\n * A valid audio track kind\n *\n * @param {string} [options.id='vjs_track_' + Guid.newGUID()]\n * A unique id for this AudioTrack.\n *\n * @param {string} [options.label='']\n * The menu label for this track.\n *\n * @param {string} [options.language='']\n * A valid two character language code.\n *\n * @param {boolean} [options.enabled]\n * If this track is the one that is currently playing. If this track is part of\n * an {@link AudioTrackList}, only one {@link AudioTrack} will be enabled.\n */\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n const settings = merge$1(options, {\n kind: AudioTrackKind[options.kind] || ''\n });\n super(settings);\n let enabled = false;\n\n /**\n * @memberof AudioTrack\n * @member {boolean} enabled\n * If this `AudioTrack` is enabled or not. When setting this will\n * fire {@link AudioTrack#enabledchange} if the state of enabled is changed.\n * @instance\n *\n * @fires VideoTrack#selectedchange\n */\n Object.defineProperty(this, 'enabled', {\n get() {\n return enabled;\n },\n set(newEnabled) {\n // an invalid or unchanged value\n if (typeof newEnabled !== 'boolean' || newEnabled === enabled) {\n return;\n }\n enabled = newEnabled;\n\n /**\n * An event that fires when enabled changes on this track. This allows\n * the AudioTrackList that holds this track to act accordingly.\n *\n * > Note: This is not part of the spec! Native tracks will do\n * this internally without an event.\n *\n * @event AudioTrack#enabledchange\n * @type {Event}\n */\n this.trigger('enabledchange');\n }\n });\n\n // if the user sets this track to selected then\n // set selected to that true value otherwise\n // we keep it false\n if (settings.enabled) {\n this.enabled = settings.enabled;\n }\n this.loaded_ = true;\n }\n}\n\n/**\n * A representation of a single `VideoTrack`.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#videotrack}\n * @extends Track\n */\nclass VideoTrack extends Track {\n /**\n * Create an instance of this class.\n *\n * @param {Object} [options={}]\n * Object of option names and values\n *\n * @param {string} [options.kind='']\n * A valid {@link VideoTrack~Kind}\n *\n * @param {string} [options.id='vjs_track_' + Guid.newGUID()]\n * A unique id for this AudioTrack.\n *\n * @param {string} [options.label='']\n * The menu label for this track.\n *\n * @param {string} [options.language='']\n * A valid two character language code.\n *\n * @param {boolean} [options.selected]\n * If this track is the one that is currently playing.\n */\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n const settings = merge$1(options, {\n kind: VideoTrackKind[options.kind] || ''\n });\n super(settings);\n let selected = false;\n\n /**\n * @memberof VideoTrack\n * @member {boolean} selected\n * If this `VideoTrack` is selected or not. When setting this will\n * fire {@link VideoTrack#selectedchange} if the state of selected changed.\n * @instance\n *\n * @fires VideoTrack#selectedchange\n */\n Object.defineProperty(this, 'selected', {\n get() {\n return selected;\n },\n set(newSelected) {\n // an invalid or unchanged value\n if (typeof newSelected !== 'boolean' || newSelected === selected) {\n return;\n }\n selected = newSelected;\n\n /**\n * An event that fires when selected changes on this track. This allows\n * the VideoTrackList that holds this track to act accordingly.\n *\n * > Note: This is not part of the spec! Native tracks will do\n * this internally without an event.\n *\n * @event VideoTrack#selectedchange\n * @type {Event}\n */\n this.trigger('selectedchange');\n }\n });\n\n // if the user sets this track to selected then\n // set selected to that true value otherwise\n // we keep it false\n if (settings.selected) {\n this.selected = settings.selected;\n }\n }\n}\n\n/**\n * @file html-track-element.js\n */\n\n/**\n * A single track represented in the DOM.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#htmltrackelement}\n * @extends EventTarget\n */\nclass HTMLTrackElement extends EventTarget$2 {\n /**\n * Create an instance of this class.\n *\n * @param {Object} options={}\n * Object of option names and values\n *\n * @param { import('../tech/tech').default } options.tech\n * A reference to the tech that owns this HTMLTrackElement.\n *\n * @param {TextTrack~Kind} [options.kind='subtitles']\n * A valid text track kind.\n *\n * @param {TextTrack~Mode} [options.mode='disabled']\n * A valid text track mode.\n *\n * @param {string} [options.id='vjs_track_' + Guid.newGUID()]\n * A unique id for this TextTrack.\n *\n * @param {string} [options.label='']\n * The menu label for this track.\n *\n * @param {string} [options.language='']\n * A valid two character language code.\n *\n * @param {string} [options.srclang='']\n * A valid two character language code. An alternative, but deprioritized\n * version of `options.language`\n *\n * @param {string} [options.src]\n * A url to TextTrack cues.\n *\n * @param {boolean} [options.default]\n * If this track should default to on or off.\n */\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n super();\n let readyState;\n const track = new TextTrack(options);\n this.kind = track.kind;\n this.src = track.src;\n this.srclang = track.language;\n this.label = track.label;\n this.default = track.default;\n Object.defineProperties(this, {\n /**\n * @memberof HTMLTrackElement\n * @member {HTMLTrackElement~ReadyState} readyState\n * The current ready state of the track element.\n * @instance\n */\n readyState: {\n get() {\n return readyState;\n }\n },\n /**\n * @memberof HTMLTrackElement\n * @member {TextTrack} track\n * The underlying TextTrack object.\n * @instance\n *\n */\n track: {\n get() {\n return track;\n }\n }\n });\n readyState = HTMLTrackElement.NONE;\n\n /**\n * @listens TextTrack#loadeddata\n * @fires HTMLTrackElement#load\n */\n track.addEventListener('loadeddata', () => {\n readyState = HTMLTrackElement.LOADED;\n this.trigger({\n type: 'load',\n target: this\n });\n });\n }\n}\n\n/**\n * @protected\n */\nHTMLTrackElement.prototype.allowedEvents_ = {\n load: 'load'\n};\n\n/**\n * The text track not loaded state.\n *\n * @type {number}\n * @static\n */\nHTMLTrackElement.NONE = 0;\n\n/**\n * The text track loading state.\n *\n * @type {number}\n * @static\n */\nHTMLTrackElement.LOADING = 1;\n\n/**\n * The text track loaded state.\n *\n * @type {number}\n * @static\n */\nHTMLTrackElement.LOADED = 2;\n\n/**\n * The text track failed to load state.\n *\n * @type {number}\n * @static\n */\nHTMLTrackElement.ERROR = 3;\n\n/*\n * This file contains all track properties that are used in\n * player.js, tech.js, html5.js and possibly other techs in the future.\n */\n\nconst NORMAL = {\n audio: {\n ListClass: AudioTrackList,\n TrackClass: AudioTrack,\n capitalName: 'Audio'\n },\n video: {\n ListClass: VideoTrackList,\n TrackClass: VideoTrack,\n capitalName: 'Video'\n },\n text: {\n ListClass: TextTrackList,\n TrackClass: TextTrack,\n capitalName: 'Text'\n }\n};\nObject.keys(NORMAL).forEach(function (type) {\n NORMAL[type].getterName = `${type}Tracks`;\n NORMAL[type].privateName = `${type}Tracks_`;\n});\nconst REMOTE = {\n remoteText: {\n ListClass: TextTrackList,\n TrackClass: TextTrack,\n capitalName: 'RemoteText',\n getterName: 'remoteTextTracks',\n privateName: 'remoteTextTracks_'\n },\n remoteTextEl: {\n ListClass: HtmlTrackElementList,\n TrackClass: HTMLTrackElement,\n capitalName: 'RemoteTextTrackEls',\n getterName: 'remoteTextTrackEls',\n privateName: 'remoteTextTrackEls_'\n }\n};\nconst ALL = Object.assign({}, NORMAL, REMOTE);\nREMOTE.names = Object.keys(REMOTE);\nNORMAL.names = Object.keys(NORMAL);\nALL.names = [].concat(REMOTE.names).concat(NORMAL.names);\n\n/**\n * @file tech.js\n */\n\n/**\n * An Object containing a structure like: `{src: 'url', type: 'mimetype'}` or string\n * that just contains the src url alone.\n * * `var SourceObject = {src: 'http://ex.com/video.mp4', type: 'video/mp4'};`\n * `var SourceString = 'http://example.com/some-video.mp4';`\n *\n * @typedef {Object|string} SourceObject\n *\n * @property {string} src\n * The url to the source\n *\n * @property {string} type\n * The mime type of the source\n */\n\n/**\n * A function used by {@link Tech} to create a new {@link TextTrack}.\n *\n * @private\n *\n * @param {Tech} self\n * An instance of the Tech class.\n *\n * @param {string} kind\n * `TextTrack` kind (subtitles, captions, descriptions, chapters, or metadata)\n *\n * @param {string} [label]\n * Label to identify the text track\n *\n * @param {string} [language]\n * Two letter language abbreviation\n *\n * @param {Object} [options={}]\n * An object with additional text track options\n *\n * @return {TextTrack}\n * The text track that was created.\n */\nfunction createTrackHelper(self, kind, label, language) {\n let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};\n const tracks = self.textTracks();\n options.kind = kind;\n if (label) {\n options.label = label;\n }\n if (language) {\n options.language = language;\n }\n options.tech = self;\n const track = new ALL.text.TrackClass(options);\n tracks.addTrack(track);\n return track;\n}\n\n/**\n * This is the base class for media playback technology controllers, such as\n * {@link HTML5}\n *\n * @extends Component\n */\nclass Tech extends Component$1 {\n /**\n * Create an instance of this Tech.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * Callback function to call when the `HTML5` Tech is ready.\n */\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let ready = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};\n // we don't want the tech to report user activity automatically.\n // This is done manually in addControlsListeners\n options.reportTouchActivity = false;\n super(null, options, ready);\n this.onDurationChange_ = e => this.onDurationChange(e);\n this.trackProgress_ = e => this.trackProgress(e);\n this.trackCurrentTime_ = e => this.trackCurrentTime(e);\n this.stopTrackingCurrentTime_ = e => this.stopTrackingCurrentTime(e);\n this.disposeSourceHandler_ = e => this.disposeSourceHandler(e);\n this.queuedHanders_ = new Set();\n\n // keep track of whether the current source has played at all to\n // implement a very limited played()\n this.hasStarted_ = false;\n this.on('playing', function () {\n this.hasStarted_ = true;\n });\n this.on('loadstart', function () {\n this.hasStarted_ = false;\n });\n ALL.names.forEach(name => {\n const props = ALL[name];\n if (options && options[props.getterName]) {\n this[props.privateName] = options[props.getterName];\n }\n });\n\n // Manually track progress in cases where the browser/tech doesn't report it.\n if (!this.featuresProgressEvents) {\n this.manualProgressOn();\n }\n\n // Manually track timeupdates in cases where the browser/tech doesn't report it.\n if (!this.featuresTimeupdateEvents) {\n this.manualTimeUpdatesOn();\n }\n ['Text', 'Audio', 'Video'].forEach(track => {\n if (options[`native${track}Tracks`] === false) {\n this[`featuresNative${track}Tracks`] = false;\n }\n });\n if (options.nativeCaptions === false || options.nativeTextTracks === false) {\n this.featuresNativeTextTracks = false;\n } else if (options.nativeCaptions === true || options.nativeTextTracks === true) {\n this.featuresNativeTextTracks = true;\n }\n if (!this.featuresNativeTextTracks) {\n this.emulateTextTracks();\n }\n this.preloadTextTracks = options.preloadTextTracks !== false;\n this.autoRemoteTextTracks_ = new ALL.text.ListClass();\n this.initTrackListeners();\n\n // Turn on component tap events only if not using native controls\n if (!options.nativeControlsForTouch) {\n this.emitTapEvents();\n }\n if (this.constructor) {\n this.name_ = this.constructor.name || 'Unknown Tech';\n }\n }\n\n /**\n * A special function to trigger source set in a way that will allow player\n * to re-trigger if the player or tech are not ready yet.\n *\n * @fires Tech#sourceset\n * @param {string} src The source string at the time of the source changing.\n */\n triggerSourceset(src) {\n if (!this.isReady_) {\n // on initial ready we have to trigger source set\n // 1ms after ready so that player can watch for it.\n this.one('ready', () => this.setTimeout(() => this.triggerSourceset(src), 1));\n }\n\n /**\n * Fired when the source is set on the tech causing the media element\n * to reload.\n *\n * @see {@link Player#event:sourceset}\n * @event Tech#sourceset\n * @type {Event}\n */\n this.trigger({\n src,\n type: 'sourceset'\n });\n }\n\n /* Fallbacks for unsupported event types\n ================================================================================ */\n\n /**\n * Polyfill the `progress` event for browsers that don't support it natively.\n *\n * @see {@link Tech#trackProgress}\n */\n manualProgressOn() {\n this.on('durationchange', this.onDurationChange_);\n this.manualProgress = true;\n\n // Trigger progress watching when a source begins loading\n this.one('ready', this.trackProgress_);\n }\n\n /**\n * Turn off the polyfill for `progress` events that was created in\n * {@link Tech#manualProgressOn}\n */\n manualProgressOff() {\n this.manualProgress = false;\n this.stopTrackingProgress();\n this.off('durationchange', this.onDurationChange_);\n }\n\n /**\n * This is used to trigger a `progress` event when the buffered percent changes. It\n * sets an interval function that will be called every 500 milliseconds to check if the\n * buffer end percent has changed.\n *\n * > This function is called by {@link Tech#manualProgressOn}\n *\n * @param {Event} event\n * The `ready` event that caused this to run.\n *\n * @listens Tech#ready\n * @fires Tech#progress\n */\n trackProgress(event) {\n this.stopTrackingProgress();\n this.progressInterval = this.setInterval(bind_(this, function () {\n // Don't trigger unless buffered amount is greater than last time\n\n const numBufferedPercent = this.bufferedPercent();\n if (this.bufferedPercent_ !== numBufferedPercent) {\n /**\n * See {@link Player#progress}\n *\n * @event Tech#progress\n * @type {Event}\n */\n this.trigger('progress');\n }\n this.bufferedPercent_ = numBufferedPercent;\n if (numBufferedPercent === 1) {\n this.stopTrackingProgress();\n }\n }), 500);\n }\n\n /**\n * Update our internal duration on a `durationchange` event by calling\n * {@link Tech#duration}.\n *\n * @param {Event} event\n * The `durationchange` event that caused this to run.\n *\n * @listens Tech#durationchange\n */\n onDurationChange(event) {\n this.duration_ = this.duration();\n }\n\n /**\n * Get and create a `TimeRange` object for buffering.\n *\n * @return { import('../utils/time').TimeRange }\n * The time range object that was created.\n */\n buffered() {\n return createTimeRanges$1(0, 0);\n }\n\n /**\n * Get the percentage of the current video that is currently buffered.\n *\n * @return {number}\n * A number from 0 to 1 that represents the decimal percentage of the\n * video that is buffered.\n *\n */\n bufferedPercent() {\n return bufferedPercent(this.buffered(), this.duration_);\n }\n\n /**\n * Turn off the polyfill for `progress` events that was created in\n * {@link Tech#manualProgressOn}\n * Stop manually tracking progress events by clearing the interval that was set in\n * {@link Tech#trackProgress}.\n */\n stopTrackingProgress() {\n this.clearInterval(this.progressInterval);\n }\n\n /**\n * Polyfill the `timeupdate` event for browsers that don't support it.\n *\n * @see {@link Tech#trackCurrentTime}\n */\n manualTimeUpdatesOn() {\n this.manualTimeUpdates = true;\n this.on('play', this.trackCurrentTime_);\n this.on('pause', this.stopTrackingCurrentTime_);\n }\n\n /**\n * Turn off the polyfill for `timeupdate` events that was created in\n * {@link Tech#manualTimeUpdatesOn}\n */\n manualTimeUpdatesOff() {\n this.manualTimeUpdates = false;\n this.stopTrackingCurrentTime();\n this.off('play', this.trackCurrentTime_);\n this.off('pause', this.stopTrackingCurrentTime_);\n }\n\n /**\n * Sets up an interval function to track current time and trigger `timeupdate` every\n * 250 milliseconds.\n *\n * @listens Tech#play\n * @triggers Tech#timeupdate\n */\n trackCurrentTime() {\n if (this.currentTimeInterval) {\n this.stopTrackingCurrentTime();\n }\n this.currentTimeInterval = this.setInterval(function () {\n /**\n * Triggered at an interval of 250ms to indicated that time is passing in the video.\n *\n * @event Tech#timeupdate\n * @type {Event}\n */\n this.trigger({\n type: 'timeupdate',\n target: this,\n manuallyTriggered: true\n });\n\n // 42 = 24 fps // 250 is what Webkit uses // FF uses 15\n }, 250);\n }\n\n /**\n * Stop the interval function created in {@link Tech#trackCurrentTime} so that the\n * `timeupdate` event is no longer triggered.\n *\n * @listens {Tech#pause}\n */\n stopTrackingCurrentTime() {\n this.clearInterval(this.currentTimeInterval);\n\n // #1002 - if the video ends right before the next timeupdate would happen,\n // the progress bar won't make it all the way to the end\n this.trigger({\n type: 'timeupdate',\n target: this,\n manuallyTriggered: true\n });\n }\n\n /**\n * Turn off all event polyfills, clear the `Tech`s {@link AudioTrackList},\n * {@link VideoTrackList}, and {@link TextTrackList}, and dispose of this Tech.\n *\n * @fires Component#dispose\n */\n dispose() {\n // clear out all tracks because we can't reuse them between techs\n this.clearTracks(NORMAL.names);\n\n // Turn off any manual progress or timeupdate tracking\n if (this.manualProgress) {\n this.manualProgressOff();\n }\n if (this.manualTimeUpdates) {\n this.manualTimeUpdatesOff();\n }\n super.dispose();\n }\n\n /**\n * Clear out a single `TrackList` or an array of `TrackLists` given their names.\n *\n * > Note: Techs without source handlers should call this between sources for `video`\n * & `audio` tracks. You don't want to use them between tracks!\n *\n * @param {string[]|string} types\n * TrackList names to clear, valid names are `video`, `audio`, and\n * `text`.\n */\n clearTracks(types) {\n types = [].concat(types);\n // clear out all tracks because we can't reuse them between techs\n types.forEach(type => {\n const list = this[`${type}Tracks`]() || [];\n let i = list.length;\n while (i--) {\n const track = list[i];\n if (type === 'text') {\n this.removeRemoteTextTrack(track);\n }\n list.removeTrack(track);\n }\n });\n }\n\n /**\n * Remove any TextTracks added via addRemoteTextTrack that are\n * flagged for automatic garbage collection\n */\n cleanupAutoTextTracks() {\n const list = this.autoRemoteTextTracks_ || [];\n let i = list.length;\n while (i--) {\n const track = list[i];\n this.removeRemoteTextTrack(track);\n }\n }\n\n /**\n * Reset the tech, which will removes all sources and reset the internal readyState.\n *\n * @abstract\n */\n reset() {}\n\n /**\n * Get the value of `crossOrigin` from the tech.\n *\n * @abstract\n *\n * @see {Html5#crossOrigin}\n */\n crossOrigin() {}\n\n /**\n * Set the value of `crossOrigin` on the tech.\n *\n * @abstract\n *\n * @param {string} crossOrigin the crossOrigin value\n * @see {Html5#setCrossOrigin}\n */\n setCrossOrigin() {}\n\n /**\n * Get or set an error on the Tech.\n *\n * @param {MediaError} [err]\n * Error to set on the Tech\n *\n * @return {MediaError|null}\n * The current error object on the tech, or null if there isn't one.\n */\n error(err) {\n if (err !== undefined) {\n this.error_ = new MediaError(err);\n this.trigger('error');\n }\n return this.error_;\n }\n\n /**\n * Returns the `TimeRange`s that have been played through for the current source.\n *\n * > NOTE: This implementation is incomplete. It does not track the played `TimeRange`.\n * It only checks whether the source has played at all or not.\n *\n * @return { import('../utils/time').TimeRange }\n * - A single time range if this video has played\n * - An empty set of ranges if not.\n */\n played() {\n if (this.hasStarted_) {\n return createTimeRanges$1(0, 0);\n }\n return createTimeRanges$1();\n }\n\n /**\n * Start playback\n *\n * @abstract\n *\n * @see {Html5#play}\n */\n play() {}\n\n /**\n * Set whether we are scrubbing or not\n *\n * @abstract\n * @param {boolean} _isScrubbing\n * - true for we are currently scrubbing\n * - false for we are no longer scrubbing\n *\n * @see {Html5#setScrubbing}\n */\n setScrubbing(_isScrubbing) {}\n\n /**\n * Get whether we are scrubbing or not\n *\n * @abstract\n *\n * @see {Html5#scrubbing}\n */\n scrubbing() {}\n\n /**\n * Causes a manual time update to occur if {@link Tech#manualTimeUpdatesOn} was\n * previously called.\n *\n * @param {number} _seconds\n * Set the current time of the media to this.\n * @fires Tech#timeupdate\n */\n setCurrentTime(_seconds) {\n // improve the accuracy of manual timeupdates\n if (this.manualTimeUpdates) {\n /**\n * A manual `timeupdate` event.\n *\n * @event Tech#timeupdate\n * @type {Event}\n */\n this.trigger({\n type: 'timeupdate',\n target: this,\n manuallyTriggered: true\n });\n }\n }\n\n /**\n * Turn on listeners for {@link VideoTrackList}, {@link {AudioTrackList}, and\n * {@link TextTrackList} events.\n *\n * This adds {@link EventTarget~EventListeners} for `addtrack`, and `removetrack`.\n *\n * @fires Tech#audiotrackchange\n * @fires Tech#videotrackchange\n * @fires Tech#texttrackchange\n */\n initTrackListeners() {\n /**\n * Triggered when tracks are added or removed on the Tech {@link AudioTrackList}\n *\n * @event Tech#audiotrackchange\n * @type {Event}\n */\n\n /**\n * Triggered when tracks are added or removed on the Tech {@link VideoTrackList}\n *\n * @event Tech#videotrackchange\n * @type {Event}\n */\n\n /**\n * Triggered when tracks are added or removed on the Tech {@link TextTrackList}\n *\n * @event Tech#texttrackchange\n * @type {Event}\n */\n NORMAL.names.forEach(name => {\n const props = NORMAL[name];\n const trackListChanges = () => {\n this.trigger(`${name}trackchange`);\n };\n const tracks = this[props.getterName]();\n tracks.addEventListener('removetrack', trackListChanges);\n tracks.addEventListener('addtrack', trackListChanges);\n this.on('dispose', () => {\n tracks.removeEventListener('removetrack', trackListChanges);\n tracks.removeEventListener('addtrack', trackListChanges);\n });\n });\n }\n\n /**\n * Emulate TextTracks using vtt.js if necessary\n *\n * @fires Tech#vttjsloaded\n * @fires Tech#vttjserror\n */\n addWebVttScript_() {\n if (window$1.WebVTT) {\n return;\n }\n\n // Initially, Tech.el_ is a child of a dummy-div wait until the Component system\n // signals that the Tech is ready at which point Tech.el_ is part of the DOM\n // before inserting the WebVTT script\n if (document.body.contains(this.el())) {\n // load via require if available and vtt.js script location was not passed in\n // as an option. novtt builds will turn the above require call into an empty object\n // which will cause this if check to always fail.\n if (!this.options_['vtt.js'] && isPlain(vtt) && Object.keys(vtt).length > 0) {\n this.trigger('vttjsloaded');\n return;\n }\n\n // load vtt.js via the script location option or the cdn of no location was\n // passed in\n const script = document.createElement('script');\n script.src = this.options_['vtt.js'] || 'https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js';\n script.onload = () => {\n /**\n * Fired when vtt.js is loaded.\n *\n * @event Tech#vttjsloaded\n * @type {Event}\n */\n this.trigger('vttjsloaded');\n };\n script.onerror = () => {\n /**\n * Fired when vtt.js was not loaded due to an error\n *\n * @event Tech#vttjsloaded\n * @type {Event}\n */\n this.trigger('vttjserror');\n };\n this.on('dispose', () => {\n script.onload = null;\n script.onerror = null;\n });\n // but have not loaded yet and we set it to true before the inject so that\n // we don't overwrite the injected window.WebVTT if it loads right away\n window$1.WebVTT = true;\n this.el().parentNode.appendChild(script);\n } else {\n this.ready(this.addWebVttScript_);\n }\n }\n\n /**\n * Emulate texttracks\n *\n */\n emulateTextTracks() {\n const tracks = this.textTracks();\n const remoteTracks = this.remoteTextTracks();\n const handleAddTrack = e => tracks.addTrack(e.track);\n const handleRemoveTrack = e => tracks.removeTrack(e.track);\n remoteTracks.on('addtrack', handleAddTrack);\n remoteTracks.on('removetrack', handleRemoveTrack);\n this.addWebVttScript_();\n const updateDisplay = () => this.trigger('texttrackchange');\n const textTracksChanges = () => {\n updateDisplay();\n for (let i = 0; i < tracks.length; i++) {\n const track = tracks[i];\n track.removeEventListener('cuechange', updateDisplay);\n if (track.mode === 'showing') {\n track.addEventListener('cuechange', updateDisplay);\n }\n }\n };\n textTracksChanges();\n tracks.addEventListener('change', textTracksChanges);\n tracks.addEventListener('addtrack', textTracksChanges);\n tracks.addEventListener('removetrack', textTracksChanges);\n this.on('dispose', function () {\n remoteTracks.off('addtrack', handleAddTrack);\n remoteTracks.off('removetrack', handleRemoveTrack);\n tracks.removeEventListener('change', textTracksChanges);\n tracks.removeEventListener('addtrack', textTracksChanges);\n tracks.removeEventListener('removetrack', textTracksChanges);\n for (let i = 0; i < tracks.length; i++) {\n const track = tracks[i];\n track.removeEventListener('cuechange', updateDisplay);\n }\n });\n }\n\n /**\n * Create and returns a remote {@link TextTrack} object.\n *\n * @param {string} kind\n * `TextTrack` kind (subtitles, captions, descriptions, chapters, or metadata)\n *\n * @param {string} [label]\n * Label to identify the text track\n *\n * @param {string} [language]\n * Two letter language abbreviation\n *\n * @return {TextTrack}\n * The TextTrack that gets created.\n */\n addTextTrack(kind, label, language) {\n if (!kind) {\n throw new Error('TextTrack kind is required but was not provided');\n }\n return createTrackHelper(this, kind, label, language);\n }\n\n /**\n * Create an emulated TextTrack for use by addRemoteTextTrack\n *\n * This is intended to be overridden by classes that inherit from\n * Tech in order to create native or custom TextTracks.\n *\n * @param {Object} options\n * The object should contain the options to initialize the TextTrack with.\n *\n * @param {string} [options.kind]\n * `TextTrack` kind (subtitles, captions, descriptions, chapters, or metadata).\n *\n * @param {string} [options.label].\n * Label to identify the text track\n *\n * @param {string} [options.language]\n * Two letter language abbreviation.\n *\n * @return {HTMLTrackElement}\n * The track element that gets created.\n */\n createRemoteTextTrack(options) {\n const track = merge$1(options, {\n tech: this\n });\n return new REMOTE.remoteTextEl.TrackClass(track);\n }\n\n /**\n * Creates a remote text track object and returns an html track element.\n *\n * > Note: This can be an emulated {@link HTMLTrackElement} or a native one.\n *\n * @param {Object} options\n * See {@link Tech#createRemoteTextTrack} for more detailed properties.\n *\n * @param {boolean} [manualCleanup=false]\n * - When false: the TextTrack will be automatically removed from the video\n * element whenever the source changes\n * - When True: The TextTrack will have to be cleaned up manually\n *\n * @return {HTMLTrackElement}\n * An Html Track Element.\n *\n */\n addRemoteTextTrack() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let manualCleanup = arguments.length > 1 ? arguments[1] : undefined;\n const htmlTrackElement = this.createRemoteTextTrack(options);\n if (typeof manualCleanup !== 'boolean') {\n manualCleanup = false;\n }\n\n // store HTMLTrackElement and TextTrack to remote list\n this.remoteTextTrackEls().addTrackElement_(htmlTrackElement);\n this.remoteTextTracks().addTrack(htmlTrackElement.track);\n if (manualCleanup === false) {\n // create the TextTrackList if it doesn't exist\n this.ready(() => this.autoRemoteTextTracks_.addTrack(htmlTrackElement.track));\n }\n return htmlTrackElement;\n }\n\n /**\n * Remove a remote text track from the remote `TextTrackList`.\n *\n * @param {TextTrack} track\n * `TextTrack` to remove from the `TextTrackList`\n */\n removeRemoteTextTrack(track) {\n const trackElement = this.remoteTextTrackEls().getTrackElementByTrack_(track);\n\n // remove HTMLTrackElement and TextTrack from remote list\n this.remoteTextTrackEls().removeTrackElement_(trackElement);\n this.remoteTextTracks().removeTrack(track);\n this.autoRemoteTextTracks_.removeTrack(track);\n }\n\n /**\n * Gets available media playback quality metrics as specified by the W3C's Media\n * Playback Quality API.\n *\n * @see [Spec]{@link https://wicg.github.io/media-playback-quality}\n *\n * @return {Object}\n * An object with supported media playback quality metrics\n *\n * @abstract\n */\n getVideoPlaybackQuality() {\n return {};\n }\n\n /**\n * Attempt to create a floating video window always on top of other windows\n * so that users may continue consuming media while they interact with other\n * content sites, or applications on their device.\n *\n * @see [Spec]{@link https://wicg.github.io/picture-in-picture}\n *\n * @return {Promise|undefined}\n * A promise with a Picture-in-Picture window if the browser supports\n * Promises (or one was passed in as an option). It returns undefined\n * otherwise.\n *\n * @abstract\n */\n requestPictureInPicture() {\n return Promise.reject();\n }\n\n /**\n * A method to check for the value of the 'disablePictureInPicture' property.\n * Defaults to true, as it should be considered disabled if the tech does not support pip\n *\n * @abstract\n */\n disablePictureInPicture() {\n return true;\n }\n\n /**\n * A method to set or unset the 'disablePictureInPicture' property.\n *\n * @abstract\n */\n setDisablePictureInPicture() {}\n\n /**\n * A fallback implementation of requestVideoFrameCallback using requestAnimationFrame\n *\n * @param {function} cb\n * @return {number} request id\n */\n requestVideoFrameCallback(cb) {\n const id = newGUID();\n if (!this.isReady_ || this.paused()) {\n this.queuedHanders_.add(id);\n this.one('playing', () => {\n if (this.queuedHanders_.has(id)) {\n this.queuedHanders_.delete(id);\n cb();\n }\n });\n } else {\n this.requestNamedAnimationFrame(id, cb);\n }\n return id;\n }\n\n /**\n * A fallback implementation of cancelVideoFrameCallback\n *\n * @param {number} id id of callback to be cancelled\n */\n cancelVideoFrameCallback(id) {\n if (this.queuedHanders_.has(id)) {\n this.queuedHanders_.delete(id);\n } else {\n this.cancelNamedAnimationFrame(id);\n }\n }\n\n /**\n * A method to set a poster from a `Tech`.\n *\n * @abstract\n */\n setPoster() {}\n\n /**\n * A method to check for the presence of the 'playsinline' attribute.\n *\n * @abstract\n */\n playsinline() {}\n\n /**\n * A method to set or unset the 'playsinline' attribute.\n *\n * @abstract\n */\n setPlaysinline() {}\n\n /**\n * Attempt to force override of native audio tracks.\n *\n * @param {boolean} override - If set to true native audio will be overridden,\n * otherwise native audio will potentially be used.\n *\n * @abstract\n */\n overrideNativeAudioTracks(override) {}\n\n /**\n * Attempt to force override of native video tracks.\n *\n * @param {boolean} override - If set to true native video will be overridden,\n * otherwise native video will potentially be used.\n *\n * @abstract\n */\n overrideNativeVideoTracks(override) {}\n\n /**\n * Check if the tech can support the given mime-type.\n *\n * The base tech does not support any type, but source handlers might\n * overwrite this.\n *\n * @param {string} _type\n * The mimetype to check for support\n *\n * @return {string}\n * 'probably', 'maybe', or empty string\n *\n * @see [Spec]{@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType}\n *\n * @abstract\n */\n canPlayType(_type) {\n return '';\n }\n\n /**\n * Check if the type is supported by this tech.\n *\n * The base tech does not support any type, but source handlers might\n * overwrite this.\n *\n * @param {string} _type\n * The media type to check\n * @return {string} Returns the native video element's response\n */\n static canPlayType(_type) {\n return '';\n }\n\n /**\n * Check if the tech can support the given source\n *\n * @param {Object} srcObj\n * The source object\n * @param {Object} options\n * The options passed to the tech\n * @return {string} 'probably', 'maybe', or '' (empty string)\n */\n static canPlaySource(srcObj, options) {\n return Tech.canPlayType(srcObj.type);\n }\n\n /*\n * Return whether the argument is a Tech or not.\n * Can be passed either a Class like `Html5` or a instance like `player.tech_`\n *\n * @param {Object} component\n * The item to check\n *\n * @return {boolean}\n * Whether it is a tech or not\n * - True if it is a tech\n * - False if it is not\n */\n static isTech(component) {\n return component.prototype instanceof Tech || component instanceof Tech || component === Tech;\n }\n\n /**\n * Registers a `Tech` into a shared list for videojs.\n *\n * @param {string} name\n * Name of the `Tech` to register.\n *\n * @param {Object} tech\n * The `Tech` class to register.\n */\n static registerTech(name, tech) {\n if (!Tech.techs_) {\n Tech.techs_ = {};\n }\n if (!Tech.isTech(tech)) {\n throw new Error(`Tech ${name} must be a Tech`);\n }\n if (!Tech.canPlayType) {\n throw new Error('Techs must have a static canPlayType method on them');\n }\n if (!Tech.canPlaySource) {\n throw new Error('Techs must have a static canPlaySource method on them');\n }\n name = toTitleCase$1(name);\n Tech.techs_[name] = tech;\n Tech.techs_[toLowerCase(name)] = tech;\n if (name !== 'Tech') {\n // camel case the techName for use in techOrder\n Tech.defaultTechOrder_.push(name);\n }\n return tech;\n }\n\n /**\n * Get a `Tech` from the shared list by name.\n *\n * @param {string} name\n * `camelCase` or `TitleCase` name of the Tech to get\n *\n * @return {Tech|undefined}\n * The `Tech` or undefined if there was no tech with the name requested.\n */\n static getTech(name) {\n if (!name) {\n return;\n }\n if (Tech.techs_ && Tech.techs_[name]) {\n return Tech.techs_[name];\n }\n name = toTitleCase$1(name);\n if (window$1 && window$1.videojs && window$1.videojs[name]) {\n log$1.warn(`The ${name} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`);\n return window$1.videojs[name];\n }\n }\n}\n\n/**\n * Get the {@link VideoTrackList}\n *\n * @returns {VideoTrackList}\n * @method Tech.prototype.videoTracks\n */\n\n/**\n * Get the {@link AudioTrackList}\n *\n * @returns {AudioTrackList}\n * @method Tech.prototype.audioTracks\n */\n\n/**\n * Get the {@link TextTrackList}\n *\n * @returns {TextTrackList}\n * @method Tech.prototype.textTracks\n */\n\n/**\n * Get the remote element {@link TextTrackList}\n *\n * @returns {TextTrackList}\n * @method Tech.prototype.remoteTextTracks\n */\n\n/**\n * Get the remote element {@link HtmlTrackElementList}\n *\n * @returns {HtmlTrackElementList}\n * @method Tech.prototype.remoteTextTrackEls\n */\n\nALL.names.forEach(function (name) {\n const props = ALL[name];\n Tech.prototype[props.getterName] = function () {\n this[props.privateName] = this[props.privateName] || new props.ListClass();\n return this[props.privateName];\n };\n});\n\n/**\n * List of associated text tracks\n *\n * @type {TextTrackList}\n * @private\n * @property Tech#textTracks_\n */\n\n/**\n * List of associated audio tracks.\n *\n * @type {AudioTrackList}\n * @private\n * @property Tech#audioTracks_\n */\n\n/**\n * List of associated video tracks.\n *\n * @type {VideoTrackList}\n * @private\n * @property Tech#videoTracks_\n */\n\n/**\n * Boolean indicating whether the `Tech` supports volume control.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresVolumeControl = true;\n\n/**\n * Boolean indicating whether the `Tech` supports muting volume.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresMuteControl = true;\n\n/**\n * Boolean indicating whether the `Tech` supports fullscreen resize control.\n * Resizing plugins using request fullscreen reloads the plugin\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresFullscreenResize = false;\n\n/**\n * Boolean indicating whether the `Tech` supports changing the speed at which the video\n * plays. Examples:\n * - Set player to play 2x (twice) as fast\n * - Set player to play 0.5x (half) as fast\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresPlaybackRate = false;\n\n/**\n * Boolean indicating whether the `Tech` supports the `progress` event.\n * This will be used to determine if {@link Tech#manualProgressOn} should be called.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresProgressEvents = false;\n\n/**\n * Boolean indicating whether the `Tech` supports the `sourceset` event.\n *\n * A tech should set this to `true` and then use {@link Tech#triggerSourceset}\n * to trigger a {@link Tech#event:sourceset} at the earliest time after getting\n * a new source.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresSourceset = false;\n\n/**\n * Boolean indicating whether the `Tech` supports the `timeupdate` event.\n * This will be used to determine if {@link Tech#manualTimeUpdates} should be called.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresTimeupdateEvents = false;\n\n/**\n * Boolean indicating whether the `Tech` supports the native `TextTrack`s.\n * This will help us integrate with native `TextTrack`s if the browser supports them.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresNativeTextTracks = false;\n\n/**\n * Boolean indicating whether the `Tech` supports `requestVideoFrameCallback`.\n *\n * @type {boolean}\n * @default\n */\nTech.prototype.featuresVideoFrameCallback = false;\n\n/**\n * A functional mixin for techs that want to use the Source Handler pattern.\n * Source handlers are scripts for handling specific formats.\n * The source handler pattern is used for adaptive formats (HLS, DASH) that\n * manually load video data and feed it into a Source Buffer (Media Source Extensions)\n * Example: `Tech.withSourceHandlers.call(MyTech);`\n *\n * @param {Tech} _Tech\n * The tech to add source handler functions to.\n *\n * @mixes Tech~SourceHandlerAdditions\n */\nTech.withSourceHandlers = function (_Tech) {\n /**\n * Register a source handler\n *\n * @param {Function} handler\n * The source handler class\n *\n * @param {number} [index]\n * Register it at the following index\n */\n _Tech.registerSourceHandler = function (handler, index) {\n let handlers = _Tech.sourceHandlers;\n if (!handlers) {\n handlers = _Tech.sourceHandlers = [];\n }\n if (index === undefined) {\n // add to the end of the list\n index = handlers.length;\n }\n handlers.splice(index, 0, handler);\n };\n\n /**\n * Check if the tech can support the given type. Also checks the\n * Techs sourceHandlers.\n *\n * @param {string} type\n * The mimetype to check.\n *\n * @return {string}\n * 'probably', 'maybe', or '' (empty string)\n */\n _Tech.canPlayType = function (type) {\n const handlers = _Tech.sourceHandlers || [];\n let can;\n for (let i = 0; i < handlers.length; i++) {\n can = handlers[i].canPlayType(type);\n if (can) {\n return can;\n }\n }\n return '';\n };\n\n /**\n * Returns the first source handler that supports the source.\n *\n * TODO: Answer question: should 'probably' be prioritized over 'maybe'\n *\n * @param {SourceObject} source\n * The source object\n *\n * @param {Object} options\n * The options passed to the tech\n *\n * @return {SourceHandler|null}\n * The first source handler that supports the source or null if\n * no SourceHandler supports the source\n */\n _Tech.selectSourceHandler = function (source, options) {\n const handlers = _Tech.sourceHandlers || [];\n let can;\n for (let i = 0; i < handlers.length; i++) {\n can = handlers[i].canHandleSource(source, options);\n if (can) {\n return handlers[i];\n }\n }\n return null;\n };\n\n /**\n * Check if the tech can support the given source.\n *\n * @param {SourceObject} srcObj\n * The source object\n *\n * @param {Object} options\n * The options passed to the tech\n *\n * @return {string}\n * 'probably', 'maybe', or '' (empty string)\n */\n _Tech.canPlaySource = function (srcObj, options) {\n const sh = _Tech.selectSourceHandler(srcObj, options);\n if (sh) {\n return sh.canHandleSource(srcObj, options);\n }\n return '';\n };\n\n /**\n * When using a source handler, prefer its implementation of\n * any function normally provided by the tech.\n */\n const deferrable = ['seekable', 'seeking', 'duration'];\n\n /**\n * A wrapper around {@link Tech#seekable} that will call a `SourceHandler`s seekable\n * function if it exists, with a fallback to the Techs seekable function.\n *\n * @method _Tech.seekable\n */\n\n /**\n * A wrapper around {@link Tech#duration} that will call a `SourceHandler`s duration\n * function if it exists, otherwise it will fallback to the techs duration function.\n *\n * @method _Tech.duration\n */\n\n deferrable.forEach(function (fnName) {\n const originalFn = this[fnName];\n if (typeof originalFn !== 'function') {\n return;\n }\n this[fnName] = function () {\n if (this.sourceHandler_ && this.sourceHandler_[fnName]) {\n return this.sourceHandler_[fnName].apply(this.sourceHandler_, arguments);\n }\n return originalFn.apply(this, arguments);\n };\n }, _Tech.prototype);\n\n /**\n * Create a function for setting the source using a source object\n * and source handlers.\n * Should never be called unless a source handler was found.\n *\n * @param {SourceObject} source\n * A source object with src and type keys\n */\n _Tech.prototype.setSource = function (source) {\n let sh = _Tech.selectSourceHandler(source, this.options_);\n if (!sh) {\n // Fall back to a native source handler when unsupported sources are\n // deliberately set\n if (_Tech.nativeSourceHandler) {\n sh = _Tech.nativeSourceHandler;\n } else {\n log$1.error('No source handler found for the current source.');\n }\n }\n\n // Dispose any existing source handler\n this.disposeSourceHandler();\n this.off('dispose', this.disposeSourceHandler_);\n if (sh !== _Tech.nativeSourceHandler) {\n this.currentSource_ = source;\n }\n this.sourceHandler_ = sh.handleSource(source, this, this.options_);\n this.one('dispose', this.disposeSourceHandler_);\n };\n\n /**\n * Clean up any existing SourceHandlers and listeners when the Tech is disposed.\n *\n * @listens Tech#dispose\n */\n _Tech.prototype.disposeSourceHandler = function () {\n // if we have a source and get another one\n // then we are loading something new\n // than clear all of our current tracks\n if (this.currentSource_) {\n this.clearTracks(['audio', 'video']);\n this.currentSource_ = null;\n }\n\n // always clean up auto-text tracks\n this.cleanupAutoTextTracks();\n if (this.sourceHandler_) {\n if (this.sourceHandler_.dispose) {\n this.sourceHandler_.dispose();\n }\n this.sourceHandler_ = null;\n }\n };\n};\n\n// The base Tech class needs to be registered as a Component. It is the only\n// Tech that can be registered as a Component.\nComponent$1.registerComponent('Tech', Tech);\nTech.registerTech('Tech', Tech);\n\n/**\n * A list of techs that should be added to techOrder on Players\n *\n * @private\n */\nTech.defaultTechOrder_ = [];\n\n/**\n * @file middleware.js\n * @module middleware\n */\nconst middlewares = {};\nconst middlewareInstances = {};\nconst TERMINATOR = {};\n\n/**\n * A middleware object is a plain JavaScript object that has methods that\n * match the {@link Tech} methods found in the lists of allowed\n * {@link module:middleware.allowedGetters|getters},\n * {@link module:middleware.allowedSetters|setters}, and\n * {@link module:middleware.allowedMediators|mediators}.\n *\n * @typedef {Object} MiddlewareObject\n */\n\n/**\n * A middleware factory function that should return a\n * {@link module:middleware~MiddlewareObject|MiddlewareObject}.\n *\n * This factory will be called for each player when needed, with the player\n * passed in as an argument.\n *\n * @callback MiddlewareFactory\n * @param { import('../player').default } player\n * A Video.js player.\n */\n\n/**\n * Define a middleware that the player should use by way of a factory function\n * that returns a middleware object.\n *\n * @param {string} type\n * The MIME type to match or `\"*\"` for all MIME types.\n *\n * @param {MiddlewareFactory} middleware\n * A middleware factory function that will be executed for\n * matching types.\n */\nfunction use(type, middleware) {\n middlewares[type] = middlewares[type] || [];\n middlewares[type].push(middleware);\n}\n\n/**\n * Asynchronously sets a source using middleware by recursing through any\n * matching middlewares and calling `setSource` on each, passing along the\n * previous returned value each time.\n *\n * @param { import('../player').default } player\n * A {@link Player} instance.\n *\n * @param {Tech~SourceObject} src\n * A source object.\n *\n * @param {Function}\n * The next middleware to run.\n */\nfunction setSource(player, src, next) {\n player.setTimeout(() => setSourceHelper(src, middlewares[src.type], next, player), 1);\n}\n\n/**\n * When the tech is set, passes the tech to each middleware's `setTech` method.\n *\n * @param {Object[]} middleware\n * An array of middleware instances.\n *\n * @param { import('../tech/tech').default } tech\n * A Video.js tech.\n */\nfunction setTech(middleware, tech) {\n middleware.forEach(mw => mw.setTech && mw.setTech(tech));\n}\n\n/**\n * Calls a getter on the tech first, through each middleware\n * from right to left to the player.\n *\n * @param {Object[]} middleware\n * An array of middleware instances.\n *\n * @param { import('../tech/tech').default } tech\n * The current tech.\n *\n * @param {string} method\n * A method name.\n *\n * @return {*}\n * The final value from the tech after middleware has intercepted it.\n */\nfunction get(middleware, tech, method) {\n return middleware.reduceRight(middlewareIterator(method), tech[method]());\n}\n\n/**\n * Takes the argument given to the player and calls the setter method on each\n * middleware from left to right to the tech.\n *\n * @param {Object[]} middleware\n * An array of middleware instances.\n *\n * @param { import('../tech/tech').default } tech\n * The current tech.\n *\n * @param {string} method\n * A method name.\n *\n * @param {*} arg\n * The value to set on the tech.\n *\n * @return {*}\n * The return value of the `method` of the `tech`.\n */\nfunction set(middleware, tech, method, arg) {\n return tech[method](middleware.reduce(middlewareIterator(method), arg));\n}\n\n/**\n * Takes the argument given to the player and calls the `call` version of the\n * method on each middleware from left to right.\n *\n * Then, call the passed in method on the tech and return the result unchanged\n * back to the player, through middleware, this time from right to left.\n *\n * @param {Object[]} middleware\n * An array of middleware instances.\n *\n * @param { import('../tech/tech').default } tech\n * The current tech.\n *\n * @param {string} method\n * A method name.\n *\n * @param {*} arg\n * The value to set on the tech.\n *\n * @return {*}\n * The return value of the `method` of the `tech`, regardless of the\n * return values of middlewares.\n */\nfunction mediate(middleware, tech, method) {\n let arg = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n const callMethod = 'call' + toTitleCase$1(method);\n const middlewareValue = middleware.reduce(middlewareIterator(callMethod), arg);\n const terminated = middlewareValue === TERMINATOR;\n // deprecated. The `null` return value should instead return TERMINATOR to\n // prevent confusion if a techs method actually returns null.\n const returnValue = terminated ? null : tech[method](middlewareValue);\n executeRight(middleware, method, returnValue, terminated);\n return returnValue;\n}\n\n/**\n * Enumeration of allowed getters where the keys are method names.\n *\n * @type {Object}\n */\nconst allowedGetters = {\n buffered: 1,\n currentTime: 1,\n duration: 1,\n muted: 1,\n played: 1,\n paused: 1,\n seekable: 1,\n volume: 1,\n ended: 1\n};\n\n/**\n * Enumeration of allowed setters where the keys are method names.\n *\n * @type {Object}\n */\nconst allowedSetters = {\n setCurrentTime: 1,\n setMuted: 1,\n setVolume: 1\n};\n\n/**\n * Enumeration of allowed mediators where the keys are method names.\n *\n * @type {Object}\n */\nconst allowedMediators = {\n play: 1,\n pause: 1\n};\nfunction middlewareIterator(method) {\n return (value, mw) => {\n // if the previous middleware terminated, pass along the termination\n if (value === TERMINATOR) {\n return TERMINATOR;\n }\n if (mw[method]) {\n return mw[method](value);\n }\n return value;\n };\n}\nfunction executeRight(mws, method, value, terminated) {\n for (let i = mws.length - 1; i >= 0; i--) {\n const mw = mws[i];\n if (mw[method]) {\n mw[method](terminated, value);\n }\n }\n}\n\n/**\n * Clear the middleware cache for a player.\n *\n * @param { import('../player').default } player\n * A {@link Player} instance.\n */\nfunction clearCacheForPlayer(player) {\n middlewareInstances[player.id()] = null;\n}\n\n/**\n * {\n * [playerId]: [[mwFactory, mwInstance], ...]\n * }\n *\n * @private\n */\nfunction getOrCreateFactory(player, mwFactory) {\n const mws = middlewareInstances[player.id()];\n let mw = null;\n if (mws === undefined || mws === null) {\n mw = mwFactory(player);\n middlewareInstances[player.id()] = [[mwFactory, mw]];\n return mw;\n }\n for (let i = 0; i < mws.length; i++) {\n const _mws$i = _slicedToArray(mws[i], 2),\n mwf = _mws$i[0],\n mwi = _mws$i[1];\n if (mwf !== mwFactory) {\n continue;\n }\n mw = mwi;\n }\n if (mw === null) {\n mw = mwFactory(player);\n mws.push([mwFactory, mw]);\n }\n return mw;\n}\nfunction setSourceHelper() {\n let src = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let middleware = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n let next = arguments.length > 2 ? arguments[2] : undefined;\n let player = arguments.length > 3 ? arguments[3] : undefined;\n let acc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n let lastRun = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n const _middleware = _toArray(middleware),\n mwFactory = _middleware[0],\n mwrest = _middleware.slice(1);\n\n // if mwFactory is a string, then we're at a fork in the road\n if (typeof mwFactory === 'string') {\n setSourceHelper(src, middlewares[mwFactory], next, player, acc, lastRun);\n\n // if we have an mwFactory, call it with the player to get the mw,\n // then call the mw's setSource method\n } else if (mwFactory) {\n const mw = getOrCreateFactory(player, mwFactory);\n\n // if setSource isn't present, implicitly select this middleware\n if (!mw.setSource) {\n acc.push(mw);\n return setSourceHelper(src, mwrest, next, player, acc, lastRun);\n }\n mw.setSource(Object.assign({}, src), function (err, _src) {\n // something happened, try the next middleware on the current level\n // make sure to use the old src\n if (err) {\n return setSourceHelper(src, mwrest, next, player, acc, lastRun);\n }\n\n // we've succeeded, now we need to go deeper\n acc.push(mw);\n\n // if it's the same type, continue down the current chain\n // otherwise, we want to go down the new chain\n setSourceHelper(_src, src.type === _src.type ? mwrest : middlewares[_src.type], next, player, acc, lastRun);\n });\n } else if (mwrest.length) {\n setSourceHelper(src, mwrest, next, player, acc, lastRun);\n } else if (lastRun) {\n next(src, acc);\n } else {\n setSourceHelper(src, middlewares['*'], next, player, acc, true);\n }\n}\n\n/**\n * Mimetypes\n *\n * @see https://www.iana.org/assignments/media-types/media-types.xhtml\n * @typedef Mimetypes~Kind\n * @enum\n */\nconst MimetypesKind = {\n opus: 'video/ogg',\n ogv: 'video/ogg',\n mp4: 'video/mp4',\n mov: 'video/mp4',\n m4v: 'video/mp4',\n mkv: 'video/x-matroska',\n m4a: 'audio/mp4',\n mp3: 'audio/mpeg',\n aac: 'audio/aac',\n caf: 'audio/x-caf',\n flac: 'audio/flac',\n oga: 'audio/ogg',\n wav: 'audio/wav',\n m3u8: 'application/x-mpegURL',\n mpd: 'application/dash+xml',\n jpg: 'image/jpeg',\n jpeg: 'image/jpeg',\n gif: 'image/gif',\n png: 'image/png',\n svg: 'image/svg+xml',\n webp: 'image/webp'\n};\n\n/**\n * Get the mimetype of a given src url if possible\n *\n * @param {string} src\n * The url to the src\n *\n * @return {string}\n * return the mimetype if it was known or empty string otherwise\n */\nconst getMimetype = function () {\n let src = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n const ext = getFileExtension(src);\n const mimetype = MimetypesKind[ext.toLowerCase()];\n return mimetype || '';\n};\n\n/**\n * Find the mime type of a given source string if possible. Uses the player\n * source cache.\n *\n * @param { import('../player').default } player\n * The player object\n *\n * @param {string} src\n * The source string\n *\n * @return {string}\n * The type that was found\n */\nconst findMimetype = (player, src) => {\n if (!src) {\n return '';\n }\n\n // 1. check for the type in the `source` cache\n if (player.cache_.source.src === src && player.cache_.source.type) {\n return player.cache_.source.type;\n }\n\n // 2. see if we have this source in our `currentSources` cache\n const matchingSources = player.cache_.sources.filter(s => s.src === src);\n if (matchingSources.length) {\n return matchingSources[0].type;\n }\n\n // 3. look for the src url in source elements and use the type there\n const sources = player.$$('source');\n for (let i = 0; i < sources.length; i++) {\n const s = sources[i];\n if (s.type && s.src && s.src === src) {\n return s.type;\n }\n }\n\n // 4. finally fallback to our list of mime types based on src url extension\n return getMimetype(src);\n};\n\n/**\n * @module filter-source\n */\n\n/**\n * Filter out single bad source objects or multiple source objects in an\n * array. Also flattens nested source object arrays into a 1 dimensional\n * array of source objects.\n *\n * @param {Tech~SourceObject|Tech~SourceObject[]} src\n * The src object to filter\n *\n * @return {Tech~SourceObject[]}\n * An array of sourceobjects containing only valid sources\n *\n * @private\n */\nconst filterSource = function (src) {\n // traverse array\n if (Array.isArray(src)) {\n let newsrc = [];\n src.forEach(function (srcobj) {\n srcobj = filterSource(srcobj);\n if (Array.isArray(srcobj)) {\n newsrc = newsrc.concat(srcobj);\n } else if (isObject(srcobj)) {\n newsrc.push(srcobj);\n }\n });\n src = newsrc;\n } else if (typeof src === 'string' && src.trim()) {\n // convert string into object\n src = [fixSource({\n src\n })];\n } else if (isObject(src) && typeof src.src === 'string' && src.src && src.src.trim()) {\n // src is already valid\n src = [fixSource(src)];\n } else {\n // invalid source, turn it into an empty array\n src = [];\n }\n return src;\n};\n\n/**\n * Checks src mimetype, adding it when possible\n *\n * @param {Tech~SourceObject} src\n * The src object to check\n * @return {Tech~SourceObject}\n * src Object with known type\n */\nfunction fixSource(src) {\n if (!src.type) {\n const mimetype = getMimetype(src.src);\n if (mimetype) {\n src.type = mimetype;\n }\n }\n return src;\n}\nvar icons = \"\\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 \\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 \\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 * @file loader.js\n */\n\n/**\n * The `MediaLoader` is the `Component` that decides which playback technology to load\n * when a player is initialized.\n *\n * @extends Component\n */\nclass MediaLoader extends Component$1 {\n /**\n * Create an instance of this class.\n *\n * @param { import('../player').default } player\n * The `Player` that this class should attach to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function that is run when this component is ready.\n */\n constructor(player, options, ready) {\n // MediaLoader has no element\n const options_ = merge$1({\n createEl: false\n }, options);\n super(player, options_, ready);\n\n // If there are no sources when the player is initialized,\n // load the first supported playback technology.\n\n if (!options.playerOptions.sources || options.playerOptions.sources.length === 0) {\n for (let i = 0, j = options.playerOptions.techOrder; i < j.length; i++) {\n const techName = toTitleCase$1(j[i]);\n let tech = Tech.getTech(techName);\n\n // Support old behavior of techs being registered as components.\n // Remove once that deprecated behavior is removed.\n if (!techName) {\n tech = Component$1.getComponent(techName);\n }\n\n // Check if the browser supports this technology\n if (tech && tech.isSupported()) {\n player.loadTech_(techName);\n break;\n }\n }\n } else {\n // Loop through playback technologies (e.g. HTML5) and check for support.\n // Then load the best source.\n // A few assumptions here:\n // All playback technologies respect preload false.\n player.src(options.playerOptions.sources);\n }\n }\n}\nComponent$1.registerComponent('MediaLoader', MediaLoader);\n\n/**\n * @file clickable-component.js\n */\n\n/**\n * Component which is clickable or keyboard actionable, but is not a\n * native HTML button.\n *\n * @extends Component\n */\nclass ClickableComponent extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of component options.\n *\n * @param {function} [options.clickHandler]\n * The function to call when the button is clicked / activated\n *\n * @param {string} [options.controlText]\n * The text to set on the button\n *\n * @param {string} [options.className]\n * A class or space separated list of classes to add the component\n *\n */\n constructor(player, options) {\n super(player, options);\n if (this.options_.controlText) {\n this.controlText(this.options_.controlText);\n }\n this.handleMouseOver_ = e => this.handleMouseOver(e);\n this.handleMouseOut_ = e => this.handleMouseOut(e);\n this.handleClick_ = e => this.handleClick(e);\n this.handleKeyDown_ = e => this.handleKeyDown(e);\n this.emitTapEvents();\n this.enable();\n }\n\n /**\n * Create the `ClickableComponent`s DOM element.\n *\n * @param {string} [tag=div]\n * The element's node type.\n *\n * @param {Object} [props={}]\n * An object of properties that should be set on the element.\n *\n * @param {Object} [attributes={}]\n * An object of attributes that should be set on the element.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl() {\n let tag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'div';\n let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n props = Object.assign({\n className: this.buildCSSClass(),\n tabIndex: 0\n }, props);\n if (tag === 'button') {\n log$1.error(`Creating a ClickableComponent with an HTML element of ${tag} is not supported; use a Button instead.`);\n }\n\n // Add ARIA attributes for clickable element which is not a native HTML button\n attributes = Object.assign({\n role: 'button'\n }, attributes);\n this.tabIndex_ = props.tabIndex;\n const el = createEl(tag, props, attributes);\n if (!this.player_.options_.experimentalSvgIcons) {\n el.appendChild(createEl('span', {\n className: 'vjs-icon-placeholder'\n }, {\n 'aria-hidden': true\n }));\n }\n this.createControlTextEl(el);\n return el;\n }\n dispose() {\n // remove controlTextEl_ on dispose\n this.controlTextEl_ = null;\n super.dispose();\n }\n\n /**\n * Create a control text element on this `ClickableComponent`\n *\n * @param {Element} [el]\n * Parent element for the control text.\n *\n * @return {Element}\n * The control text element that gets created.\n */\n createControlTextEl(el) {\n this.controlTextEl_ = createEl('span', {\n className: 'vjs-control-text'\n }, {\n // let the screen reader user know that the text of the element may change\n 'aria-live': 'polite'\n });\n if (el) {\n el.appendChild(this.controlTextEl_);\n }\n this.controlText(this.controlText_, el);\n return this.controlTextEl_;\n }\n\n /**\n * Get or set the localize text to use for the controls on the `ClickableComponent`.\n *\n * @param {string} [text]\n * Control text for element.\n *\n * @param {Element} [el=this.el()]\n * Element to set the title on.\n *\n * @return {string}\n * - The control text when getting\n */\n controlText(text) {\n let el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.el();\n if (text === undefined) {\n return this.controlText_ || 'Need Text';\n }\n const localizedText = this.localize(text);\n\n /** @protected */\n this.controlText_ = text;\n textContent(this.controlTextEl_, localizedText);\n if (!this.nonIconControl && !this.player_.options_.noUITitleAttributes) {\n // Set title attribute if only an icon is shown\n el.setAttribute('title', localizedText);\n }\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-control vjs-button ${super.buildCSSClass()}`;\n }\n\n /**\n * Enable this `ClickableComponent`\n */\n enable() {\n if (!this.enabled_) {\n this.enabled_ = true;\n this.removeClass('vjs-disabled');\n this.el_.setAttribute('aria-disabled', 'false');\n if (typeof this.tabIndex_ !== 'undefined') {\n this.el_.setAttribute('tabIndex', this.tabIndex_);\n }\n this.on(['tap', 'click'], this.handleClick_);\n this.on('keydown', this.handleKeyDown_);\n }\n }\n\n /**\n * Disable this `ClickableComponent`\n */\n disable() {\n this.enabled_ = false;\n this.addClass('vjs-disabled');\n this.el_.setAttribute('aria-disabled', 'true');\n if (typeof this.tabIndex_ !== 'undefined') {\n this.el_.removeAttribute('tabIndex');\n }\n this.off('mouseover', this.handleMouseOver_);\n this.off('mouseout', this.handleMouseOut_);\n this.off(['tap', 'click'], this.handleClick_);\n this.off('keydown', this.handleKeyDown_);\n }\n\n /**\n * Handles language change in ClickableComponent for the player in components\n *\n *\n */\n handleLanguagechange() {\n this.controlText(this.controlText_);\n }\n\n /**\n * Event handler that is called when a `ClickableComponent` receives a\n * `click` or `tap` event.\n *\n * @param {Event} event\n * The `tap` or `click` event that caused this function to be called.\n *\n * @listens tap\n * @listens click\n * @abstract\n */\n handleClick(event) {\n if (this.options_.clickHandler) {\n this.options_.clickHandler.call(this, arguments);\n }\n }\n\n /**\n * Event handler that is called when a `ClickableComponent` receives a\n * `keydown` event.\n *\n * By default, if the key is Space or Enter, it will trigger a `click` event.\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Support Space or Enter key operation to fire a click event. Also,\n // prevent the event from propagating through the DOM and triggering\n // Player hotkeys.\n if (keycode.isEventKey(event, 'Space') || keycode.isEventKey(event, 'Enter')) {\n event.preventDefault();\n event.stopPropagation();\n this.trigger('click');\n } else {\n // Pass keypress handling up for unsupported keys\n super.handleKeyDown(event);\n }\n }\n}\nComponent$1.registerComponent('ClickableComponent', ClickableComponent);\n\n/**\n * @file poster-image.js\n */\n\n/**\n * A `ClickableComponent` that handles showing the poster image for the player.\n *\n * @extends ClickableComponent\n */\nclass PosterImage extends ClickableComponent {\n /**\n * Create an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should attach to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.update();\n this.update_ = e => this.update(e);\n player.on('posterchange', this.update_);\n }\n\n /**\n * Clean up and dispose of the `PosterImage`.\n */\n dispose() {\n this.player().off('posterchange', this.update_);\n super.dispose();\n }\n\n /**\n * Create the `PosterImage`s DOM element.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl() {\n // The el is an empty div to keep position in the DOM\n // A picture and img el will be inserted when a source is set\n return createEl('div', {\n className: 'vjs-poster'\n });\n }\n\n /**\n * Get or set the `PosterImage`'s crossOrigin option.\n *\n * @param {string|null} [value]\n * The value to set the crossOrigin to. If an argument is\n * given, must be one of `'anonymous'` or `'use-credentials'`, or 'null'.\n *\n * @return {string|null}\n * - The current crossOrigin value of the `Player` when getting.\n * - undefined when setting\n */\n crossOrigin(value) {\n // `null` can be set to unset a value\n if (typeof value === 'undefined') {\n if (this.$('img')) {\n // If the poster's element exists, give its value\n return this.$('img').crossOrigin;\n } else if (this.player_.tech_ && this.player_.tech_.isReady_) {\n // If not but the tech is ready, query the tech\n return this.player_.crossOrigin();\n }\n // Otherwise check options as the poster is usually set before the state of crossorigin\n // can be retrieved by the getter\n return this.player_.options_.crossOrigin || this.player_.options_.crossorigin || null;\n }\n if (value !== null && value !== 'anonymous' && value !== 'use-credentials') {\n this.player_.log.warn(`crossOrigin must be null, \"anonymous\" or \"use-credentials\", given \"${value}\"`);\n return;\n }\n if (this.$('img')) {\n this.$('img').crossOrigin = value;\n }\n return;\n }\n\n /**\n * An {@link EventTarget~EventListener} for {@link Player#posterchange} events.\n *\n * @listens Player#posterchange\n *\n * @param {Event} [event]\n * The `Player#posterchange` event that triggered this function.\n */\n update(event) {\n const url = this.player().poster();\n this.setSrc(url);\n\n // If there's no poster source we should display:none on this component\n // so it's not still clickable or right-clickable\n if (url) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n /**\n * Set the source of the `PosterImage` depending on the display method. (Re)creates\n * the inner picture and img elementss when needed.\n *\n * @param {string} [url]\n * The URL to the source for the `PosterImage`. If not specified or falsy,\n * any source and ant inner picture/img are removed.\n */\n setSrc(url) {\n if (!url) {\n this.el_.textContent = '';\n return;\n }\n if (!this.$('img')) {\n this.el_.appendChild(createEl('picture', {\n className: 'vjs-poster',\n // Don't want poster to be tabbable.\n tabIndex: -1\n }, {}, createEl('img', {\n loading: 'lazy',\n crossOrigin: this.crossOrigin()\n }, {\n alt: ''\n })));\n }\n this.$('img').src = url;\n }\n\n /**\n * An {@link EventTarget~EventListener} for clicks on the `PosterImage`. See\n * {@link ClickableComponent#handleClick} for instances where this will be triggered.\n *\n * @listens tap\n * @listens click\n * @listens keydown\n *\n * @param {Event} event\n + The `click`, `tap` or `keydown` event that caused this function to be called.\n */\n handleClick(event) {\n // We don't want a click to trigger playback when controls are disabled\n if (!this.player_.controls()) {\n return;\n }\n if (this.player_.tech(true)) {\n this.player_.tech(true).focus();\n }\n if (this.player_.paused()) {\n silencePromise(this.player_.play());\n } else {\n this.player_.pause();\n }\n }\n}\n\n/**\n * Get or set the `PosterImage`'s crossorigin option. For the HTML5 player, this\n * sets the `crossOrigin` property on the ` ` tag to control the CORS\n * behavior.\n *\n * @param {string|null} [value]\n * The value to set the `PosterImages`'s crossorigin to. If an argument is\n * given, must be one of `anonymous` or `use-credentials`.\n *\n * @return {string|null|undefined}\n * - The current crossorigin value of the `Player` when getting.\n * - undefined when setting\n */\nPosterImage.prototype.crossorigin = PosterImage.prototype.crossOrigin;\nComponent$1.registerComponent('PosterImage', PosterImage);\n\n/**\n * @file text-track-display.js\n */\nconst darkGray = '#222';\nconst lightGray = '#ccc';\nconst fontMap = {\n monospace: 'monospace',\n sansSerif: 'sans-serif',\n serif: 'serif',\n monospaceSansSerif: '\"Andale Mono\", \"Lucida Console\", monospace',\n monospaceSerif: '\"Courier New\", monospace',\n proportionalSansSerif: 'sans-serif',\n proportionalSerif: 'serif',\n casual: '\"Comic Sans MS\", Impact, fantasy',\n script: '\"Monotype Corsiva\", cursive',\n smallcaps: '\"Andale Mono\", \"Lucida Console\", monospace, sans-serif'\n};\n\n/**\n * Construct an rgba color from a given hex color code.\n *\n * @param {number} color\n * Hex number for color, like #f0e or #f604e2.\n *\n * @param {number} opacity\n * Value for opacity, 0.0 - 1.0.\n *\n * @return {string}\n * The rgba color that was created, like 'rgba(255, 0, 0, 0.3)'.\n */\nfunction constructColor(color, opacity) {\n let hex;\n if (color.length === 4) {\n // color looks like \"#f0e\"\n hex = color[1] + color[1] + color[2] + color[2] + color[3] + color[3];\n } else if (color.length === 7) {\n // color looks like \"#f604e2\"\n hex = color.slice(1);\n } else {\n throw new Error('Invalid color code provided, ' + color + '; must be formatted as e.g. #f0e or #f604e2.');\n }\n return 'rgba(' + parseInt(hex.slice(0, 2), 16) + ',' + parseInt(hex.slice(2, 4), 16) + ',' + parseInt(hex.slice(4, 6), 16) + ',' + opacity + ')';\n}\n\n/**\n * Try to update the style of a DOM element. Some style changes will throw an error,\n * particularly in IE8. Those should be noops.\n *\n * @param {Element} el\n * The DOM element to be styled.\n *\n * @param {string} style\n * The CSS property on the element that should be styled.\n *\n * @param {string} rule\n * The style rule that should be applied to the property.\n *\n * @private\n */\nfunction tryUpdateStyle(el, style, rule) {\n try {\n el.style[style] = rule;\n } catch (e) {\n // Satisfies linter.\n return;\n }\n}\n\n/**\n * Converts the CSS top/right/bottom/left property numeric value to string in pixels.\n *\n * @param {number} position\n * The CSS top/right/bottom/left property value.\n *\n * @return {string}\n * The CSS property value that was created, like '10px'.\n *\n * @private\n */\nfunction getCSSPositionValue(position) {\n return position ? `${position}px` : '';\n}\n\n/**\n * The component for displaying text track cues.\n *\n * @extends Component\n */\nclass TextTrackDisplay extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function to call when `TextTrackDisplay` is ready.\n */\n constructor(player, options, ready) {\n super(player, options, ready);\n const updateDisplayTextHandler = e => this.updateDisplay(e);\n const updateDisplayHandler = e => {\n this.updateDisplayOverlay();\n this.updateDisplay(e);\n };\n player.on('loadstart', e => this.toggleDisplay(e));\n player.on('texttrackchange', updateDisplayTextHandler);\n player.on('loadedmetadata', e => {\n this.updateDisplayOverlay();\n this.preselectTrack(e);\n });\n\n // This used to be called during player init, but was causing an error\n // if a track should show by default and the display hadn't loaded yet.\n // Should probably be moved to an external track loader when we support\n // tracks that don't need a display.\n player.ready(bind_(this, function () {\n if (player.tech_ && player.tech_.featuresNativeTextTracks) {\n this.hide();\n return;\n }\n player.on('fullscreenchange', updateDisplayHandler);\n player.on('playerresize', updateDisplayHandler);\n const screenOrientation = window$1.screen.orientation || window$1;\n const changeOrientationEvent = window$1.screen.orientation ? 'change' : 'orientationchange';\n screenOrientation.addEventListener(changeOrientationEvent, updateDisplayHandler);\n player.on('dispose', () => screenOrientation.removeEventListener(changeOrientationEvent, updateDisplayHandler));\n const tracks = this.options_.playerOptions.tracks || [];\n for (let i = 0; i < tracks.length; i++) {\n this.player_.addRemoteTextTrack(tracks[i], true);\n }\n this.preselectTrack();\n }));\n }\n\n /**\n * Preselect a track following this precedence:\n * - matches the previously selected {@link TextTrack}'s language and kind\n * - matches the previously selected {@link TextTrack}'s language only\n * - is the first default captions track\n * - is the first default descriptions track\n *\n * @listens Player#loadstart\n */\n preselectTrack() {\n const modes = {\n captions: 1,\n subtitles: 1\n };\n const trackList = this.player_.textTracks();\n const userPref = this.player_.cache_.selectedLanguage;\n let firstDesc;\n let firstCaptions;\n let preferredTrack;\n for (let i = 0; i < trackList.length; i++) {\n const track = trackList[i];\n if (userPref && userPref.enabled && userPref.language && userPref.language === track.language && track.kind in modes) {\n // Always choose the track that matches both language and kind\n if (track.kind === userPref.kind) {\n preferredTrack = track;\n // or choose the first track that matches language\n } else if (!preferredTrack) {\n preferredTrack = track;\n }\n\n // clear everything if offTextTrackMenuItem was clicked\n } else if (userPref && !userPref.enabled) {\n preferredTrack = null;\n firstDesc = null;\n firstCaptions = null;\n } else if (track.default) {\n if (track.kind === 'descriptions' && !firstDesc) {\n firstDesc = track;\n } else if (track.kind in modes && !firstCaptions) {\n firstCaptions = track;\n }\n }\n }\n\n // The preferredTrack matches the user preference and takes\n // precedence over all the other tracks.\n // So, display the preferredTrack before the first default track\n // and the subtitles/captions track before the descriptions track\n if (preferredTrack) {\n preferredTrack.mode = 'showing';\n } else if (firstCaptions) {\n firstCaptions.mode = 'showing';\n } else if (firstDesc) {\n firstDesc.mode = 'showing';\n }\n }\n\n /**\n * Turn display of {@link TextTrack}'s from the current state into the other state.\n * There are only two states:\n * - 'shown'\n * - 'hidden'\n *\n * @listens Player#loadstart\n */\n toggleDisplay() {\n if (this.player_.tech_ && this.player_.tech_.featuresNativeTextTracks) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n /**\n * Create the {@link Component}'s DOM element.\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-text-track-display'\n }, {\n 'translate': 'yes',\n 'aria-live': 'off',\n 'aria-atomic': 'true'\n });\n }\n\n /**\n * Clear all displayed {@link TextTrack}s.\n */\n clearDisplay() {\n if (typeof window$1.WebVTT === 'function') {\n window$1.WebVTT.processCues(window$1, [], this.el_);\n }\n }\n\n /**\n * Update the displayed TextTrack when a either a {@link Player#texttrackchange} or\n * a {@link Player#fullscreenchange} is fired.\n *\n * @listens Player#texttrackchange\n * @listens Player#fullscreenchange\n */\n updateDisplay() {\n const tracks = this.player_.textTracks();\n const allowMultipleShowingTracks = this.options_.allowMultipleShowingTracks;\n this.clearDisplay();\n if (allowMultipleShowingTracks) {\n const showingTracks = [];\n for (let i = 0; i < tracks.length; ++i) {\n const track = tracks[i];\n if (track.mode !== 'showing') {\n continue;\n }\n showingTracks.push(track);\n }\n this.updateForTrack(showingTracks);\n return;\n }\n\n // Track display prioritization model: if multiple tracks are 'showing',\n // display the first 'subtitles' or 'captions' track which is 'showing',\n // otherwise display the first 'descriptions' track which is 'showing'\n\n let descriptionsTrack = null;\n let captionsSubtitlesTrack = null;\n let i = tracks.length;\n while (i--) {\n const track = tracks[i];\n if (track.mode === 'showing') {\n if (track.kind === 'descriptions') {\n descriptionsTrack = track;\n } else {\n captionsSubtitlesTrack = track;\n }\n }\n }\n if (captionsSubtitlesTrack) {\n if (this.getAttribute('aria-live') !== 'off') {\n this.setAttribute('aria-live', 'off');\n }\n this.updateForTrack(captionsSubtitlesTrack);\n } else if (descriptionsTrack) {\n if (this.getAttribute('aria-live') !== 'assertive') {\n this.setAttribute('aria-live', 'assertive');\n }\n this.updateForTrack(descriptionsTrack);\n }\n }\n\n /**\n * Updates the displayed TextTrack to be sure it overlays the video when a either\n * a {@link Player#texttrackchange} or a {@link Player#fullscreenchange} is fired.\n */\n updateDisplayOverlay() {\n // inset-inline and inset-block are not supprted on old chrome, but these are\n // only likely to be used on TV devices\n if (!this.player_.videoHeight() || !window$1.CSS.supports('inset-inline: 10px')) {\n return;\n }\n const playerWidth = this.player_.currentWidth();\n const playerHeight = this.player_.currentHeight();\n const playerAspectRatio = playerWidth / playerHeight;\n const videoAspectRatio = this.player_.videoWidth() / this.player_.videoHeight();\n let insetInlineMatch = 0;\n let insetBlockMatch = 0;\n if (Math.abs(playerAspectRatio - videoAspectRatio) > 0.1) {\n if (playerAspectRatio > videoAspectRatio) {\n insetInlineMatch = Math.round((playerWidth - playerHeight * videoAspectRatio) / 2);\n } else {\n insetBlockMatch = Math.round((playerHeight - playerWidth / videoAspectRatio) / 2);\n }\n }\n tryUpdateStyle(this.el_, 'insetInline', getCSSPositionValue(insetInlineMatch));\n tryUpdateStyle(this.el_, 'insetBlock', getCSSPositionValue(insetBlockMatch));\n }\n\n /**\n * Style {@Link TextTrack} activeCues according to {@Link TextTrackSettings}.\n *\n * @param {TextTrack} track\n * Text track object containing active cues to style.\n */\n updateDisplayState(track) {\n const overrides = this.player_.textTrackSettings.getValues();\n const cues = track.activeCues;\n let i = cues.length;\n while (i--) {\n const cue = cues[i];\n if (!cue) {\n continue;\n }\n const cueDiv = cue.displayState;\n if (overrides.color) {\n cueDiv.firstChild.style.color = overrides.color;\n }\n if (overrides.textOpacity) {\n tryUpdateStyle(cueDiv.firstChild, 'color', constructColor(overrides.color || '#fff', overrides.textOpacity));\n }\n if (overrides.backgroundColor) {\n cueDiv.firstChild.style.backgroundColor = overrides.backgroundColor;\n }\n if (overrides.backgroundOpacity) {\n tryUpdateStyle(cueDiv.firstChild, 'backgroundColor', constructColor(overrides.backgroundColor || '#000', overrides.backgroundOpacity));\n }\n if (overrides.windowColor) {\n if (overrides.windowOpacity) {\n tryUpdateStyle(cueDiv, 'backgroundColor', constructColor(overrides.windowColor, overrides.windowOpacity));\n } else {\n cueDiv.style.backgroundColor = overrides.windowColor;\n }\n }\n if (overrides.edgeStyle) {\n if (overrides.edgeStyle === 'dropshadow') {\n cueDiv.firstChild.style.textShadow = `2px 2px 3px ${darkGray}, 2px 2px 4px ${darkGray}, 2px 2px 5px ${darkGray}`;\n } else if (overrides.edgeStyle === 'raised') {\n cueDiv.firstChild.style.textShadow = `1px 1px ${darkGray}, 2px 2px ${darkGray}, 3px 3px ${darkGray}`;\n } else if (overrides.edgeStyle === 'depressed') {\n cueDiv.firstChild.style.textShadow = `1px 1px ${lightGray}, 0 1px ${lightGray}, -1px -1px ${darkGray}, 0 -1px ${darkGray}`;\n } else if (overrides.edgeStyle === 'uniform') {\n cueDiv.firstChild.style.textShadow = `0 0 4px ${darkGray}, 0 0 4px ${darkGray}, 0 0 4px ${darkGray}, 0 0 4px ${darkGray}`;\n }\n }\n if (overrides.fontPercent && overrides.fontPercent !== 1) {\n const fontSize = window$1.parseFloat(cueDiv.style.fontSize);\n cueDiv.style.fontSize = fontSize * overrides.fontPercent + 'px';\n cueDiv.style.height = 'auto';\n cueDiv.style.top = 'auto';\n }\n if (overrides.fontFamily && overrides.fontFamily !== 'default') {\n if (overrides.fontFamily === 'small-caps') {\n cueDiv.firstChild.style.fontVariant = 'small-caps';\n } else {\n cueDiv.firstChild.style.fontFamily = fontMap[overrides.fontFamily];\n }\n }\n }\n }\n\n /**\n * Add an {@link TextTrack} to to the {@link Tech}s {@link TextTrackList}.\n *\n * @param {TextTrack|TextTrack[]} tracks\n * Text track object or text track array to be added to the list.\n */\n updateForTrack(tracks) {\n if (!Array.isArray(tracks)) {\n tracks = [tracks];\n }\n if (typeof window$1.WebVTT !== 'function' || tracks.every(track => {\n return !track.activeCues;\n })) {\n return;\n }\n const cues = [];\n\n // push all active track cues\n for (let i = 0; i < tracks.length; ++i) {\n const track = tracks[i];\n for (let j = 0; j < track.activeCues.length; ++j) {\n cues.push(track.activeCues[j]);\n }\n }\n\n // removes all cues before it processes new ones\n window$1.WebVTT.processCues(window$1, cues, this.el_);\n\n // add unique class to each language text track & add settings styling if necessary\n for (let i = 0; i < tracks.length; ++i) {\n const track = tracks[i];\n for (let j = 0; j < track.activeCues.length; ++j) {\n const cueEl = track.activeCues[j].displayState;\n addClass(cueEl, 'vjs-text-track-cue', 'vjs-text-track-cue-' + (track.language ? track.language : i));\n if (track.language) {\n setAttribute(cueEl, 'lang', track.language);\n }\n }\n if (this.player_.textTrackSettings) {\n this.updateDisplayState(track);\n }\n }\n }\n}\nComponent$1.registerComponent('TextTrackDisplay', TextTrackDisplay);\n\n/**\n * @file loading-spinner.js\n */\n\n/**\n * A loading spinner for use during waiting/loading events.\n *\n * @extends Component\n */\nclass LoadingSpinner extends Component$1 {\n /**\n * Create the `LoadingSpinner`s DOM element.\n *\n * @return {Element}\n * The dom element that gets created.\n */\n createEl() {\n const isAudio = this.player_.isAudio();\n const playerType = this.localize(isAudio ? 'Audio Player' : 'Video Player');\n const controlText = createEl('span', {\n className: 'vjs-control-text',\n textContent: this.localize('{1} is loading.', [playerType])\n });\n const el = super.createEl('div', {\n className: 'vjs-loading-spinner',\n dir: 'ltr'\n });\n el.appendChild(controlText);\n return el;\n }\n\n /**\n * Update control text on languagechange\n */\n handleLanguagechange() {\n this.$('.vjs-control-text').textContent = this.localize('{1} is loading.', [this.player_.isAudio() ? 'Audio Player' : 'Video Player']);\n }\n}\nComponent$1.registerComponent('LoadingSpinner', LoadingSpinner);\n\n/**\n * @file button.js\n */\n\n/**\n * Base class for all buttons.\n *\n * @extends ClickableComponent\n */\nclass Button extends ClickableComponent {\n /**\n * Create the `Button`s DOM element.\n *\n * @param {string} [tag=\"button\"]\n * The element's node type. This argument is IGNORED: no matter what\n * is passed, it will always create a `button` element.\n *\n * @param {Object} [props={}]\n * An object of properties that should be set on the element.\n *\n * @param {Object} [attributes={}]\n * An object of attributes that should be set on the element.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl(tag) {\n let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n tag = 'button';\n props = Object.assign({\n className: this.buildCSSClass()\n }, props);\n\n // Add attributes for button element\n attributes = Object.assign({\n // Necessary since the default button type is \"submit\"\n type: 'button'\n }, attributes);\n const el = createEl(tag, props, attributes);\n if (!this.player_.options_.experimentalSvgIcons) {\n el.appendChild(createEl('span', {\n className: 'vjs-icon-placeholder'\n }, {\n 'aria-hidden': true\n }));\n }\n this.createControlTextEl(el);\n return el;\n }\n\n /**\n * Add a child `Component` inside of this `Button`.\n *\n * @param {string|Component} child\n * The name or instance of a child to add.\n *\n * @param {Object} [options={}]\n * The key/value store of options that will get passed to children of\n * the child.\n *\n * @return {Component}\n * The `Component` that gets added as a child. When using a string the\n * `Component` will get created by this process.\n *\n * @deprecated since version 5\n */\n addChild(child) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const className = this.constructor.name;\n log$1.warn(`Adding an actionable (user controllable) child to a Button (${className}) is not supported; use a ClickableComponent instead.`);\n\n // Avoid the error message generated by ClickableComponent's addChild method\n return Component$1.prototype.addChild.call(this, child, options);\n }\n\n /**\n * Enable the `Button` element so that it can be activated or clicked. Use this with\n * {@link Button#disable}.\n */\n enable() {\n super.enable();\n this.el_.removeAttribute('disabled');\n }\n\n /**\n * Disable the `Button` element so that it cannot be activated or clicked. Use this with\n * {@link Button#enable}.\n */\n disable() {\n super.disable();\n this.el_.setAttribute('disabled', 'disabled');\n }\n\n /**\n * This gets called when a `Button` has focus and `keydown` is triggered via a key\n * press.\n *\n * @param {KeyboardEvent} event\n * The event that caused this function to get called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Ignore Space or Enter key operation, which is handled by the browser for\n // a button - though not for its super class, ClickableComponent. Also,\n // prevent the event from propagating through the DOM and triggering Player\n // hotkeys. We do not preventDefault here because we _want_ the browser to\n // handle it.\n if (keycode.isEventKey(event, 'Space') || keycode.isEventKey(event, 'Enter')) {\n event.stopPropagation();\n return;\n }\n\n // Pass keypress handling up for unsupported keys\n super.handleKeyDown(event);\n }\n}\nComponent$1.registerComponent('Button', Button);\n\n/**\n * @file big-play-button.js\n */\n\n/**\n * The initial play button that shows before the video has played. The hiding of the\n * `BigPlayButton` get done via CSS and `Player` states.\n *\n * @extends Button\n */\nclass BigPlayButton extends Button {\n constructor(player, options) {\n super(player, options);\n this.mouseused_ = false;\n this.setIcon('play');\n this.on('mousedown', e => this.handleMouseDown(e));\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object. Always returns 'vjs-big-play-button'.\n */\n buildCSSClass() {\n return 'vjs-big-play-button';\n }\n\n /**\n * This gets called when a `BigPlayButton` \"clicked\". See {@link ClickableComponent}\n * for more detailed information on what a click can be.\n *\n * @param {KeyboardEvent|MouseEvent|TouchEvent} event\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n const playPromise = this.player_.play();\n\n // exit early if clicked via the mouse\n if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {\n silencePromise(playPromise);\n if (this.player_.tech(true)) {\n this.player_.tech(true).focus();\n }\n return;\n }\n const cb = this.player_.getChild('controlBar');\n const playToggle = cb && cb.getChild('playToggle');\n if (!playToggle) {\n this.player_.tech(true).focus();\n return;\n }\n const playFocus = () => playToggle.focus();\n if (isPromise(playPromise)) {\n playPromise.then(playFocus, () => {});\n } else {\n this.setTimeout(playFocus, 1);\n }\n }\n\n /**\n * Event handler that is called when a `BigPlayButton` receives a\n * `keydown` event.\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n this.mouseused_ = false;\n super.handleKeyDown(event);\n }\n\n /**\n * Handle `mousedown` events on the `BigPlayButton`.\n *\n * @param {MouseEvent} event\n * `mousedown` or `touchstart` event that triggered this function\n *\n * @listens mousedown\n */\n handleMouseDown(event) {\n this.mouseused_ = true;\n }\n}\n\n/**\n * The text that should display over the `BigPlayButton`s controls. Added to for localization.\n *\n * @type {string}\n * @protected\n */\nBigPlayButton.prototype.controlText_ = 'Play Video';\nComponent$1.registerComponent('BigPlayButton', BigPlayButton);\n\n/**\n * @file close-button.js\n */\n\n/**\n * The `CloseButton` is a `{@link Button}` that fires a `close` event when\n * it gets clicked.\n *\n * @extends Button\n */\nclass CloseButton extends Button {\n /**\n * Creates an instance of the this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.setIcon('cancel');\n this.controlText(options && options.controlText || this.localize('Close'));\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-close-button ${super.buildCSSClass()}`;\n }\n\n /**\n * This gets called when a `CloseButton` gets clicked. See\n * {@link ClickableComponent#handleClick} for more information on when\n * this will be triggered\n *\n * @param {Event} event\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n * @fires CloseButton#close\n */\n handleClick(event) {\n /**\n * Triggered when the a `CloseButton` is clicked.\n *\n * @event CloseButton#close\n * @type {Event}\n *\n * @property {boolean} [bubbles=false]\n * set to false so that the close event does not\n * bubble up to parents if there is no listener\n */\n this.trigger({\n type: 'close',\n bubbles: false\n });\n }\n /**\n * Event handler that is called when a `CloseButton` receives a\n * `keydown` event.\n *\n * By default, if the key is Esc, it will trigger a `click` event.\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Esc button will trigger `click` event\n if (keycode.isEventKey(event, 'Esc')) {\n event.preventDefault();\n event.stopPropagation();\n this.trigger('click');\n } else {\n // Pass keypress handling up for unsupported keys\n super.handleKeyDown(event);\n }\n }\n}\nComponent$1.registerComponent('CloseButton', CloseButton);\n\n/**\n * @file play-toggle.js\n */\n\n/**\n * Button to toggle between play and pause.\n *\n * @extends Button\n */\nclass PlayToggle extends Button {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n super(player, options);\n\n // show or hide replay icon\n options.replay = options.replay === undefined || options.replay;\n this.setIcon('play');\n this.on(player, 'play', e => this.handlePlay(e));\n this.on(player, 'pause', e => this.handlePause(e));\n if (options.replay) {\n this.on(player, 'ended', e => this.handleEnded(e));\n }\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-play-control ${super.buildCSSClass()}`;\n }\n\n /**\n * This gets called when an `PlayToggle` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n if (this.player_.paused()) {\n silencePromise(this.player_.play());\n } else {\n this.player_.pause();\n }\n }\n\n /**\n * This gets called once after the video has ended and the user seeks so that\n * we can change the replay button back to a play button.\n *\n * @param {Event} [event]\n * The event that caused this function to run.\n *\n * @listens Player#seeked\n */\n handleSeeked(event) {\n this.removeClass('vjs-ended');\n if (this.player_.paused()) {\n this.handlePause(event);\n } else {\n this.handlePlay(event);\n }\n }\n\n /**\n * Add the vjs-playing class to the element so it can change appearance.\n *\n * @param {Event} [event]\n * The event that caused this function to run.\n *\n * @listens Player#play\n */\n handlePlay(event) {\n this.removeClass('vjs-ended', 'vjs-paused');\n this.addClass('vjs-playing');\n // change the button text to \"Pause\"\n this.setIcon('pause');\n this.controlText('Pause');\n }\n\n /**\n * Add the vjs-paused class to the element so it can change appearance.\n *\n * @param {Event} [event]\n * The event that caused this function to run.\n *\n * @listens Player#pause\n */\n handlePause(event) {\n this.removeClass('vjs-playing');\n this.addClass('vjs-paused');\n // change the button text to \"Play\"\n this.setIcon('play');\n this.controlText('Play');\n }\n\n /**\n * Add the vjs-ended class to the element so it can change appearance\n *\n * @param {Event} [event]\n * The event that caused this function to run.\n *\n * @listens Player#ended\n */\n handleEnded(event) {\n this.removeClass('vjs-playing');\n this.addClass('vjs-ended');\n // change the button text to \"Replay\"\n this.setIcon('replay');\n this.controlText('Replay');\n\n // on the next seek remove the replay button\n this.one(this.player_, 'seeked', e => this.handleSeeked(e));\n }\n}\n\n/**\n * The text that should display over the `PlayToggle`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nPlayToggle.prototype.controlText_ = 'Play';\nComponent$1.registerComponent('PlayToggle', PlayToggle);\n\n/**\n * @file time-display.js\n */\n\n/**\n * Displays time information about the video\n *\n * @extends Component\n */\nclass TimeDisplay extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.on(player, ['timeupdate', 'ended', 'seeking'], e => this.update(e));\n this.updateTextNode_();\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const className = this.buildCSSClass();\n const el = super.createEl('div', {\n className: `${className} vjs-time-control vjs-control`\n });\n const span = createEl('span', {\n className: 'vjs-control-text',\n textContent: `${this.localize(this.labelText_)}\\u00a0`\n }, {\n role: 'presentation'\n });\n el.appendChild(span);\n this.contentEl_ = createEl('span', {\n className: `${className}-display`\n }, {\n // span elements have no implicit role, but some screen readers (notably VoiceOver)\n // treat them as a break between items in the DOM when using arrow keys\n // (or left-to-right swipes on iOS) to read contents of a page. Using\n // role='presentation' causes VoiceOver to NOT treat this span as a break.\n role: 'presentation'\n });\n el.appendChild(this.contentEl_);\n return el;\n }\n dispose() {\n this.contentEl_ = null;\n this.textNode_ = null;\n super.dispose();\n }\n\n /**\n * Updates the displayed time according to the `updateContent` function which is defined in the child class.\n *\n * @param {Event} [event]\n * The `timeupdate`, `ended` or `seeking` (if enableSmoothSeeking is true) event that caused this function to be called.\n */\n update(event) {\n if (!this.player_.options_.enableSmoothSeeking && event.type === 'seeking') {\n return;\n }\n this.updateContent(event);\n }\n\n /**\n * Updates the time display text node with a new time\n *\n * @param {number} [time=0] the time to update to\n *\n * @private\n */\n updateTextNode_() {\n let time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n time = formatTime(time);\n if (this.formattedTime_ === time) {\n return;\n }\n this.formattedTime_ = time;\n this.requestNamedAnimationFrame('TimeDisplay#updateTextNode_', () => {\n if (!this.contentEl_) {\n return;\n }\n let oldNode = this.textNode_;\n if (oldNode && this.contentEl_.firstChild !== oldNode) {\n oldNode = null;\n log$1.warn('TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.');\n }\n this.textNode_ = document.createTextNode(this.formattedTime_);\n if (!this.textNode_) {\n return;\n }\n if (oldNode) {\n this.contentEl_.replaceChild(this.textNode_, oldNode);\n } else {\n this.contentEl_.appendChild(this.textNode_);\n }\n });\n }\n\n /**\n * To be filled out in the child class, should update the displayed time\n * in accordance with the fact that the current time has changed.\n *\n * @param {Event} [event]\n * The `timeupdate` event that caused this to run.\n *\n * @listens Player#timeupdate\n */\n updateContent(event) {}\n}\n\n/**\n * The text that is added to the `TimeDisplay` for screen reader users.\n *\n * @type {string}\n * @private\n */\nTimeDisplay.prototype.labelText_ = 'Time';\n\n/**\n * The text that should display over the `TimeDisplay`s controls. Added to for localization.\n *\n * @type {string}\n * @protected\n *\n * @deprecated in v7; controlText_ is not used in non-active display Components\n */\nTimeDisplay.prototype.controlText_ = 'Time';\nComponent$1.registerComponent('TimeDisplay', TimeDisplay);\n\n/**\n * @file current-time-display.js\n */\n\n/**\n * Displays the current time\n *\n * @extends Component\n */\nclass CurrentTimeDisplay extends TimeDisplay {\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return 'vjs-current-time';\n }\n\n /**\n * Update current time display\n *\n * @param {Event} [event]\n * The `timeupdate` event that caused this function to run.\n *\n * @listens Player#timeupdate\n */\n updateContent(event) {\n // Allows for smooth scrubbing, when player can't keep up.\n let time;\n if (this.player_.ended()) {\n time = this.player_.duration();\n } else {\n time = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();\n }\n this.updateTextNode_(time);\n }\n}\n\n/**\n * The text that is added to the `CurrentTimeDisplay` for screen reader users.\n *\n * @type {string}\n * @private\n */\nCurrentTimeDisplay.prototype.labelText_ = 'Current Time';\n\n/**\n * The text that should display over the `CurrentTimeDisplay`s controls. Added to for localization.\n *\n * @type {string}\n * @protected\n *\n * @deprecated in v7; controlText_ is not used in non-active display Components\n */\nCurrentTimeDisplay.prototype.controlText_ = 'Current Time';\nComponent$1.registerComponent('CurrentTimeDisplay', CurrentTimeDisplay);\n\n/**\n * @file duration-display.js\n */\n\n/**\n * Displays the duration\n *\n * @extends Component\n */\nclass DurationDisplay extends TimeDisplay {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n const updateContent = e => this.updateContent(e);\n\n // we do not want to/need to throttle duration changes,\n // as they should always display the changed duration as\n // it has changed\n this.on(player, 'durationchange', updateContent);\n\n // Listen to loadstart because the player duration is reset when a new media element is loaded,\n // but the durationchange on the user agent will not fire.\n // @see [Spec]{@link https://www.w3.org/TR/2011/WD-html5-20110113/video.html#media-element-load-algorithm}\n this.on(player, 'loadstart', updateContent);\n\n // Also listen for timeupdate (in the parent) and loadedmetadata because removing those\n // listeners could have broken dependent applications/libraries. These\n // can likely be removed for 7.0.\n this.on(player, 'loadedmetadata', updateContent);\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return 'vjs-duration';\n }\n\n /**\n * Update duration time display.\n *\n * @param {Event} [event]\n * The `durationchange`, `timeupdate`, or `loadedmetadata` event that caused\n * this function to be called.\n *\n * @listens Player#durationchange\n * @listens Player#timeupdate\n * @listens Player#loadedmetadata\n */\n updateContent(event) {\n const duration = this.player_.duration();\n this.updateTextNode_(duration);\n }\n}\n\n/**\n * The text that is added to the `DurationDisplay` for screen reader users.\n *\n * @type {string}\n * @private\n */\nDurationDisplay.prototype.labelText_ = 'Duration';\n\n/**\n * The text that should display over the `DurationDisplay`s controls. Added to for localization.\n *\n * @type {string}\n * @protected\n *\n * @deprecated in v7; controlText_ is not used in non-active display Components\n */\nDurationDisplay.prototype.controlText_ = 'Duration';\nComponent$1.registerComponent('DurationDisplay', DurationDisplay);\n\n/**\n * @file time-divider.js\n */\n\n/**\n * The separator between the current time and duration.\n * Can be hidden if it's not needed in the design.\n *\n * @extends Component\n */\nclass TimeDivider extends Component$1 {\n /**\n * Create the component's DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl('div', {\n className: 'vjs-time-control vjs-time-divider'\n }, {\n // this element and its contents can be hidden from assistive techs since\n // it is made extraneous by the announcement of the control text\n // for the current time and duration displays\n 'aria-hidden': true\n });\n const div = super.createEl('div');\n const span = super.createEl('span', {\n textContent: '/'\n });\n div.appendChild(span);\n el.appendChild(div);\n return el;\n }\n}\nComponent$1.registerComponent('TimeDivider', TimeDivider);\n\n/**\n * @file remaining-time-display.js\n */\n\n/**\n * Displays the time left in the video\n *\n * @extends Component\n */\nclass RemainingTimeDisplay extends TimeDisplay {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.on(player, 'durationchange', e => this.updateContent(e));\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return 'vjs-remaining-time';\n }\n\n /**\n * Create the `Component`'s DOM element with the \"minus\" character prepend to the time\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl();\n if (this.options_.displayNegative !== false) {\n el.insertBefore(createEl('span', {}, {\n 'aria-hidden': true\n }, '-'), this.contentEl_);\n }\n return el;\n }\n\n /**\n * Update remaining time display.\n *\n * @param {Event} [event]\n * The `timeupdate` or `durationchange` event that caused this to run.\n *\n * @listens Player#timeupdate\n * @listens Player#durationchange\n */\n updateContent(event) {\n if (typeof this.player_.duration() !== 'number') {\n return;\n }\n let time;\n\n // @deprecated We should only use remainingTimeDisplay\n // as of video.js 7\n if (this.player_.ended()) {\n time = 0;\n } else if (this.player_.remainingTimeDisplay) {\n time = this.player_.remainingTimeDisplay();\n } else {\n time = this.player_.remainingTime();\n }\n this.updateTextNode_(time);\n }\n}\n\n/**\n * The text that is added to the `RemainingTimeDisplay` for screen reader users.\n *\n * @type {string}\n * @private\n */\nRemainingTimeDisplay.prototype.labelText_ = 'Remaining Time';\n\n/**\n * The text that should display over the `RemainingTimeDisplay`s controls. Added to for localization.\n *\n * @type {string}\n * @protected\n *\n * @deprecated in v7; controlText_ is not used in non-active display Components\n */\nRemainingTimeDisplay.prototype.controlText_ = 'Remaining Time';\nComponent$1.registerComponent('RemainingTimeDisplay', RemainingTimeDisplay);\n\n/**\n * @file live-display.js\n */\n\n// TODO - Future make it click to snap to live\n\n/**\n * Displays the live indicator when duration is Infinity.\n *\n * @extends Component\n */\nclass LiveDisplay extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.updateShowing();\n this.on(this.player(), 'durationchange', e => this.updateShowing(e));\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl('div', {\n className: 'vjs-live-control vjs-control'\n });\n this.contentEl_ = createEl('div', {\n className: 'vjs-live-display'\n }, {\n 'aria-live': 'off'\n });\n this.contentEl_.appendChild(createEl('span', {\n className: 'vjs-control-text',\n textContent: `${this.localize('Stream Type')}\\u00a0`\n }));\n this.contentEl_.appendChild(document.createTextNode(this.localize('LIVE')));\n el.appendChild(this.contentEl_);\n return el;\n }\n dispose() {\n this.contentEl_ = null;\n super.dispose();\n }\n\n /**\n * Check the duration to see if the LiveDisplay should be showing or not. Then show/hide\n * it accordingly\n *\n * @param {Event} [event]\n * The {@link Player#durationchange} event that caused this function to run.\n *\n * @listens Player#durationchange\n */\n updateShowing(event) {\n if (this.player().duration() === Infinity) {\n this.show();\n } else {\n this.hide();\n }\n }\n}\nComponent$1.registerComponent('LiveDisplay', LiveDisplay);\n\n/**\n * @file seek-to-live.js\n */\n\n/**\n * Displays the live indicator when duration is Infinity.\n *\n * @extends Component\n */\nclass SeekToLive extends Button {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.updateLiveEdgeStatus();\n if (this.player_.liveTracker) {\n this.updateLiveEdgeStatusHandler_ = e => this.updateLiveEdgeStatus(e);\n this.on(this.player_.liveTracker, 'liveedgechange', this.updateLiveEdgeStatusHandler_);\n }\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl('button', {\n className: 'vjs-seek-to-live-control vjs-control'\n });\n this.setIcon('circle', el);\n this.textEl_ = createEl('span', {\n className: 'vjs-seek-to-live-text',\n textContent: this.localize('LIVE')\n }, {\n 'aria-hidden': 'true'\n });\n el.appendChild(this.textEl_);\n return el;\n }\n\n /**\n * Update the state of this button if we are at the live edge\n * or not\n */\n updateLiveEdgeStatus() {\n // default to live edge\n if (!this.player_.liveTracker || this.player_.liveTracker.atLiveEdge()) {\n this.setAttribute('aria-disabled', true);\n this.addClass('vjs-at-live-edge');\n this.controlText('Seek to live, currently playing live');\n } else {\n this.setAttribute('aria-disabled', false);\n this.removeClass('vjs-at-live-edge');\n this.controlText('Seek to live, currently behind live');\n }\n }\n\n /**\n * On click bring us as near to the live point as possible.\n * This requires that we wait for the next `live-seekable-change`\n * event which will happen every segment length seconds.\n */\n handleClick() {\n this.player_.liveTracker.seekToLiveEdge();\n }\n\n /**\n * Dispose of the element and stop tracking\n */\n dispose() {\n if (this.player_.liveTracker) {\n this.off(this.player_.liveTracker, 'liveedgechange', this.updateLiveEdgeStatusHandler_);\n }\n this.textEl_ = null;\n super.dispose();\n }\n}\n/**\n * The text that should display over the `SeekToLive`s control. Added for localization.\n *\n * @type {string}\n * @protected\n */\nSeekToLive.prototype.controlText_ = 'Seek to live, currently playing live';\nComponent$1.registerComponent('SeekToLive', SeekToLive);\n\n/**\n * @file num.js\n * @module num\n */\n\n/**\n * Keep a number between a min and a max value\n *\n * @param {number} number\n * The number to clamp\n *\n * @param {number} min\n * The minimum value\n * @param {number} max\n * The maximum value\n *\n * @return {number}\n * the clamped number\n */\nfunction clamp(number, min, max) {\n number = Number(number);\n return Math.min(max, Math.max(min, isNaN(number) ? min : number));\n}\nvar Num = /*#__PURE__*/Object.freeze({\n __proto__: null,\n clamp: clamp\n});\n\n/**\n * @file slider.js\n */\n\n/**\n * The base functionality for a slider. Can be vertical or horizontal.\n * For instance the volume bar or the seek bar on a video is a slider.\n *\n * @extends Component\n */\nclass Slider extends Component$1 {\n /**\n * Create an instance of this class\n *\n * @param { import('../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.handleMouseDown_ = e => this.handleMouseDown(e);\n this.handleMouseUp_ = e => this.handleMouseUp(e);\n this.handleKeyDown_ = e => this.handleKeyDown(e);\n this.handleClick_ = e => this.handleClick(e);\n this.handleMouseMove_ = e => this.handleMouseMove(e);\n this.update_ = e => this.update(e);\n\n // Set property names to bar to match with the child Slider class is looking for\n this.bar = this.getChild(this.options_.barName);\n\n // Set a horizontal or vertical class on the slider depending on the slider type\n this.vertical(!!this.options_.vertical);\n this.enable();\n }\n\n /**\n * Are controls are currently enabled for this slider or not.\n *\n * @return {boolean}\n * true if controls are enabled, false otherwise\n */\n enabled() {\n return this.enabled_;\n }\n\n /**\n * Enable controls for this slider if they are disabled\n */\n enable() {\n if (this.enabled()) {\n return;\n }\n this.on('mousedown', this.handleMouseDown_);\n this.on('touchstart', this.handleMouseDown_);\n this.on('keydown', this.handleKeyDown_);\n this.on('click', this.handleClick_);\n\n // TODO: deprecated, controlsvisible does not seem to be fired\n this.on(this.player_, 'controlsvisible', this.update);\n if (this.playerEvent) {\n this.on(this.player_, this.playerEvent, this.update);\n }\n this.removeClass('disabled');\n this.setAttribute('tabindex', 0);\n this.enabled_ = true;\n }\n\n /**\n * Disable controls for this slider if they are enabled\n */\n disable() {\n if (!this.enabled()) {\n return;\n }\n const doc = this.bar.el_.ownerDocument;\n this.off('mousedown', this.handleMouseDown_);\n this.off('touchstart', this.handleMouseDown_);\n this.off('keydown', this.handleKeyDown_);\n this.off('click', this.handleClick_);\n this.off(this.player_, 'controlsvisible', this.update_);\n this.off(doc, 'mousemove', this.handleMouseMove_);\n this.off(doc, 'mouseup', this.handleMouseUp_);\n this.off(doc, 'touchmove', this.handleMouseMove_);\n this.off(doc, 'touchend', this.handleMouseUp_);\n this.removeAttribute('tabindex');\n this.addClass('disabled');\n if (this.playerEvent) {\n this.off(this.player_, this.playerEvent, this.update);\n }\n this.enabled_ = false;\n }\n\n /**\n * Create the `Slider`s DOM element.\n *\n * @param {string} type\n * Type of element to create.\n *\n * @param {Object} [props={}]\n * List of properties in Object form.\n *\n * @param {Object} [attributes={}]\n * list of attributes in Object form.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl(type) {\n let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n // Add the slider element class to all sub classes\n props.className = props.className + ' vjs-slider';\n props = Object.assign({\n tabIndex: 0\n }, props);\n attributes = Object.assign({\n 'role': 'slider',\n 'aria-valuenow': 0,\n 'aria-valuemin': 0,\n 'aria-valuemax': 100\n }, attributes);\n return super.createEl(type, props, attributes);\n }\n\n /**\n * Handle `mousedown` or `touchstart` events on the `Slider`.\n *\n * @param {MouseEvent} event\n * `mousedown` or `touchstart` event that triggered this function\n *\n * @listens mousedown\n * @listens touchstart\n * @fires Slider#slideractive\n */\n handleMouseDown(event) {\n const doc = this.bar.el_.ownerDocument;\n if (event.type === 'mousedown') {\n event.preventDefault();\n }\n // Do not call preventDefault() on touchstart in Chrome\n // to avoid console warnings. Use a 'touch-action: none' style\n // instead to prevent unintended scrolling.\n // https://developers.google.com/web/updates/2017/01/scrolling-intervention\n if (event.type === 'touchstart' && !IS_CHROME) {\n event.preventDefault();\n }\n blockTextSelection();\n this.addClass('vjs-sliding');\n /**\n * Triggered when the slider is in an active state\n *\n * @event Slider#slideractive\n * @type {MouseEvent}\n */\n this.trigger('slideractive');\n this.on(doc, 'mousemove', this.handleMouseMove_);\n this.on(doc, 'mouseup', this.handleMouseUp_);\n this.on(doc, 'touchmove', this.handleMouseMove_);\n this.on(doc, 'touchend', this.handleMouseUp_);\n this.handleMouseMove(event, true);\n }\n\n /**\n * Handle the `mousemove`, `touchmove`, and `mousedown` events on this `Slider`.\n * The `mousemove` and `touchmove` events will only only trigger this function during\n * `mousedown` and `touchstart`. This is due to {@link Slider#handleMouseDown} and\n * {@link Slider#handleMouseUp}.\n *\n * @param {MouseEvent} event\n * `mousedown`, `mousemove`, `touchstart`, or `touchmove` event that triggered\n * this function\n * @param {boolean} mouseDown this is a flag that should be set to true if `handleMouseMove` is called directly. It allows us to skip things that should not happen if coming from mouse down but should happen on regular mouse move handler. Defaults to false.\n *\n * @listens mousemove\n * @listens touchmove\n */\n handleMouseMove(event) {}\n\n /**\n * Handle `mouseup` or `touchend` events on the `Slider`.\n *\n * @param {MouseEvent} event\n * `mouseup` or `touchend` event that triggered this function.\n *\n * @listens touchend\n * @listens mouseup\n * @fires Slider#sliderinactive\n */\n handleMouseUp(event) {\n const doc = this.bar.el_.ownerDocument;\n unblockTextSelection();\n this.removeClass('vjs-sliding');\n /**\n * Triggered when the slider is no longer in an active state.\n *\n * @event Slider#sliderinactive\n * @type {Event}\n */\n this.trigger('sliderinactive');\n this.off(doc, 'mousemove', this.handleMouseMove_);\n this.off(doc, 'mouseup', this.handleMouseUp_);\n this.off(doc, 'touchmove', this.handleMouseMove_);\n this.off(doc, 'touchend', this.handleMouseUp_);\n this.update();\n }\n\n /**\n * Update the progress bar of the `Slider`.\n *\n * @return {number}\n * The percentage of progress the progress bar represents as a\n * number from 0 to 1.\n */\n update() {\n // In VolumeBar init we have a setTimeout for update that pops and update\n // to the end of the execution stack. The player is destroyed before then\n // update will cause an error\n // If there's no bar...\n if (!this.el_ || !this.bar) {\n return;\n }\n\n // clamp progress between 0 and 1\n // and only round to four decimal places, as we round to two below\n const progress = this.getProgress();\n if (progress === this.progress_) {\n return progress;\n }\n this.progress_ = progress;\n this.requestNamedAnimationFrame('Slider#update', () => {\n // Set the new bar width or height\n const sizeKey = this.vertical() ? 'height' : 'width';\n\n // Convert to a percentage for css value\n this.bar.el().style[sizeKey] = (progress * 100).toFixed(2) + '%';\n });\n return progress;\n }\n\n /**\n * Get the percentage of the bar that should be filled\n * but clamped and rounded.\n *\n * @return {number}\n * percentage filled that the slider is\n */\n getProgress() {\n return Number(clamp(this.getPercent(), 0, 1).toFixed(4));\n }\n\n /**\n * Calculate distance for slider\n *\n * @param {Event} event\n * The event that caused this function to run.\n *\n * @return {number}\n * The current position of the Slider.\n * - position.x for vertical `Slider`s\n * - position.y for horizontal `Slider`s\n */\n calculateDistance(event) {\n const position = getPointerPosition(this.el_, event);\n if (this.vertical()) {\n return position.y;\n }\n return position.x;\n }\n\n /**\n * Handle a `keydown` event on the `Slider`. Watches for left, right, up, and down\n * arrow keys. This function will only be called when the slider has focus. See\n * {@link Slider#handleFocus} and {@link Slider#handleBlur}.\n *\n * @param {KeyboardEvent} event\n * the `keydown` event that caused this function to run.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Left and Down Arrows\n if (keycode.isEventKey(event, 'Left') || keycode.isEventKey(event, 'Down')) {\n event.preventDefault();\n event.stopPropagation();\n this.stepBack();\n\n // Up and Right Arrows\n } else if (keycode.isEventKey(event, 'Right') || keycode.isEventKey(event, 'Up')) {\n event.preventDefault();\n event.stopPropagation();\n this.stepForward();\n } else {\n // Pass keydown handling up for unsupported keys\n super.handleKeyDown(event);\n }\n }\n\n /**\n * Listener for click events on slider, used to prevent clicks\n * from bubbling up to parent elements like button menus.\n *\n * @param {Object} event\n * Event that caused this object to run\n */\n handleClick(event) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n /**\n * Get/set if slider is horizontal for vertical\n *\n * @param {boolean} [bool]\n * - true if slider is vertical,\n * - false is horizontal\n *\n * @return {boolean}\n * - true if slider is vertical, and getting\n * - false if the slider is horizontal, and getting\n */\n vertical(bool) {\n if (bool === undefined) {\n return this.vertical_ || false;\n }\n this.vertical_ = !!bool;\n if (this.vertical_) {\n this.addClass('vjs-slider-vertical');\n } else {\n this.addClass('vjs-slider-horizontal');\n }\n }\n}\nComponent$1.registerComponent('Slider', Slider);\n\n/**\n * @file load-progress-bar.js\n */\n\n// get the percent width of a time compared to the total end\nconst percentify = (time, end) => clamp(time / end * 100, 0, 100).toFixed(2) + '%';\n\n/**\n * Shows loading progress\n *\n * @extends Component\n */\nclass LoadProgressBar extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.partEls_ = [];\n this.on(player, 'progress', e => this.update(e));\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl('div', {\n className: 'vjs-load-progress'\n });\n const wrapper = createEl('span', {\n className: 'vjs-control-text'\n });\n const loadedText = createEl('span', {\n textContent: this.localize('Loaded')\n });\n const separator = document.createTextNode(': ');\n this.percentageEl_ = createEl('span', {\n className: 'vjs-control-text-loaded-percentage',\n textContent: '0%'\n });\n el.appendChild(wrapper);\n wrapper.appendChild(loadedText);\n wrapper.appendChild(separator);\n wrapper.appendChild(this.percentageEl_);\n return el;\n }\n dispose() {\n this.partEls_ = null;\n this.percentageEl_ = null;\n super.dispose();\n }\n\n /**\n * Update progress bar\n *\n * @param {Event} [event]\n * The `progress` event that caused this function to run.\n *\n * @listens Player#progress\n */\n update(event) {\n this.requestNamedAnimationFrame('LoadProgressBar#update', () => {\n const liveTracker = this.player_.liveTracker;\n const buffered = this.player_.buffered();\n const duration = liveTracker && liveTracker.isLive() ? liveTracker.seekableEnd() : this.player_.duration();\n const bufferedEnd = this.player_.bufferedEnd();\n const children = this.partEls_;\n const percent = percentify(bufferedEnd, duration);\n if (this.percent_ !== percent) {\n // update the width of the progress bar\n this.el_.style.width = percent;\n // update the control-text\n textContent(this.percentageEl_, percent);\n this.percent_ = percent;\n }\n\n // add child elements to represent the individual buffered time ranges\n for (let i = 0; i < buffered.length; i++) {\n const start = buffered.start(i);\n const end = buffered.end(i);\n let part = children[i];\n if (!part) {\n part = this.el_.appendChild(createEl());\n children[i] = part;\n }\n\n // only update if changed\n if (part.dataset.start === start && part.dataset.end === end) {\n continue;\n }\n part.dataset.start = start;\n part.dataset.end = end;\n\n // set the percent based on the width of the progress bar (bufferedEnd)\n part.style.left = percentify(start, bufferedEnd);\n part.style.width = percentify(end - start, bufferedEnd);\n }\n\n // remove unused buffered range elements\n for (let i = children.length; i > buffered.length; i--) {\n this.el_.removeChild(children[i - 1]);\n }\n children.length = buffered.length;\n });\n }\n}\nComponent$1.registerComponent('LoadProgressBar', LoadProgressBar);\n\n/**\n * @file time-tooltip.js\n */\n\n/**\n * Time tooltips display a time above the progress bar.\n *\n * @extends Component\n */\nclass TimeTooltip extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The {@link Player} that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.update = throttle(bind_(this, this.update), UPDATE_REFRESH_INTERVAL);\n }\n\n /**\n * Create the time tooltip DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-time-tooltip'\n }, {\n 'aria-hidden': 'true'\n });\n }\n\n /**\n * Updates the position of the time tooltip relative to the `SeekBar`.\n *\n * @param {Object} seekBarRect\n * The `ClientRect` for the {@link SeekBar} element.\n *\n * @param {number} seekBarPoint\n * A number from 0 to 1, representing a horizontal reference point\n * from the left edge of the {@link SeekBar}\n */\n update(seekBarRect, seekBarPoint, content) {\n const tooltipRect = findPosition(this.el_);\n const playerRect = getBoundingClientRect(this.player_.el());\n const seekBarPointPx = seekBarRect.width * seekBarPoint;\n\n // do nothing if either rect isn't available\n // for example, if the player isn't in the DOM for testing\n if (!playerRect || !tooltipRect) {\n return;\n }\n\n // This is the space left of the `seekBarPoint` available within the bounds\n // of the player. We calculate any gap between the left edge of the player\n // and the left edge of the `SeekBar` and add the number of pixels in the\n // `SeekBar` before hitting the `seekBarPoint`\n const spaceLeftOfPoint = seekBarRect.left - playerRect.left + seekBarPointPx;\n\n // This is the space right of the `seekBarPoint` available within the bounds\n // of the player. We calculate the number of pixels from the `seekBarPoint`\n // to the right edge of the `SeekBar` and add to that any gap between the\n // right edge of the `SeekBar` and the player.\n const spaceRightOfPoint = seekBarRect.width - seekBarPointPx + (playerRect.right - seekBarRect.right);\n\n // This is the number of pixels by which the tooltip will need to be pulled\n // further to the right to center it over the `seekBarPoint`.\n let pullTooltipBy = tooltipRect.width / 2;\n\n // Adjust the `pullTooltipBy` distance to the left or right depending on\n // the results of the space calculations above.\n if (spaceLeftOfPoint < pullTooltipBy) {\n pullTooltipBy += pullTooltipBy - spaceLeftOfPoint;\n } else if (spaceRightOfPoint < pullTooltipBy) {\n pullTooltipBy = spaceRightOfPoint;\n }\n\n // Due to the imprecision of decimal/ratio based calculations and varying\n // rounding behaviors, there are cases where the spacing adjustment is off\n // by a pixel or two. This adds insurance to these calculations.\n if (pullTooltipBy < 0) {\n pullTooltipBy = 0;\n } else if (pullTooltipBy > tooltipRect.width) {\n pullTooltipBy = tooltipRect.width;\n }\n\n // prevent small width fluctuations within 0.4px from\n // changing the value below.\n // This really helps for live to prevent the play\n // progress time tooltip from jittering\n pullTooltipBy = Math.round(pullTooltipBy);\n this.el_.style.right = `-${pullTooltipBy}px`;\n this.write(content);\n }\n\n /**\n * Write the time to the tooltip DOM element.\n *\n * @param {string} content\n * The formatted time for the tooltip.\n */\n write(content) {\n textContent(this.el_, content);\n }\n\n /**\n * Updates the position of the time tooltip relative to the `SeekBar`.\n *\n * @param {Object} seekBarRect\n * The `ClientRect` for the {@link SeekBar} element.\n *\n * @param {number} seekBarPoint\n * A number from 0 to 1, representing a horizontal reference point\n * from the left edge of the {@link SeekBar}\n *\n * @param {number} time\n * The time to update the tooltip to, not used during live playback\n *\n * @param {Function} cb\n * A function that will be called during the request animation frame\n * for tooltips that need to do additional animations from the default\n */\n updateTime(seekBarRect, seekBarPoint, time, cb) {\n this.requestNamedAnimationFrame('TimeTooltip#updateTime', () => {\n let content;\n const duration = this.player_.duration();\n if (this.player_.liveTracker && this.player_.liveTracker.isLive()) {\n const liveWindow = this.player_.liveTracker.liveWindow();\n const secondsBehind = liveWindow - seekBarPoint * liveWindow;\n content = (secondsBehind < 1 ? '' : '-') + formatTime(secondsBehind, liveWindow);\n } else {\n content = formatTime(time, duration);\n }\n this.update(seekBarRect, seekBarPoint, content);\n if (cb) {\n cb();\n }\n });\n }\n}\nComponent$1.registerComponent('TimeTooltip', TimeTooltip);\n\n/**\n * @file play-progress-bar.js\n */\n\n/**\n * Used by {@link SeekBar} to display media playback progress as part of the\n * {@link ProgressControl}.\n *\n * @extends Component\n */\nclass PlayProgressBar extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The {@link Player} that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.setIcon('circle');\n this.update = throttle(bind_(this, this.update), UPDATE_REFRESH_INTERVAL);\n }\n\n /**\n * Create the the DOM element for this class.\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-play-progress vjs-slider-bar'\n }, {\n 'aria-hidden': 'true'\n });\n }\n\n /**\n * Enqueues updates to its own DOM as well as the DOM of its\n * {@link TimeTooltip} child.\n *\n * @param {Object} seekBarRect\n * The `ClientRect` for the {@link SeekBar} element.\n *\n * @param {number} seekBarPoint\n * A number from 0 to 1, representing a horizontal reference point\n * from the left edge of the {@link SeekBar}\n */\n update(seekBarRect, seekBarPoint) {\n const timeTooltip = this.getChild('timeTooltip');\n if (!timeTooltip) {\n return;\n }\n const time = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();\n timeTooltip.updateTime(seekBarRect, seekBarPoint, time);\n }\n}\n\n/**\n * Default options for {@link PlayProgressBar}.\n *\n * @type {Object}\n * @private\n */\nPlayProgressBar.prototype.options_ = {\n children: []\n};\n\n// Time tooltips should not be added to a player on mobile devices\nif (!IS_IOS && !IS_ANDROID) {\n PlayProgressBar.prototype.options_.children.push('timeTooltip');\n}\nComponent$1.registerComponent('PlayProgressBar', PlayProgressBar);\n\n/**\n * @file mouse-time-display.js\n */\n\n/**\n * The {@link MouseTimeDisplay} component tracks mouse movement over the\n * {@link ProgressControl}. It displays an indicator and a {@link TimeTooltip}\n * indicating the time which is represented by a given point in the\n * {@link ProgressControl}.\n *\n * @extends Component\n */\nclass MouseTimeDisplay extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The {@link Player} that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.update = throttle(bind_(this, this.update), UPDATE_REFRESH_INTERVAL);\n }\n\n /**\n * Create the DOM element for this class.\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-mouse-display'\n });\n }\n\n /**\n * Enqueues updates to its own DOM as well as the DOM of its\n * {@link TimeTooltip} child.\n *\n * @param {Object} seekBarRect\n * The `ClientRect` for the {@link SeekBar} element.\n *\n * @param {number} seekBarPoint\n * A number from 0 to 1, representing a horizontal reference point\n * from the left edge of the {@link SeekBar}\n */\n update(seekBarRect, seekBarPoint) {\n const time = seekBarPoint * this.player_.duration();\n this.getChild('timeTooltip').updateTime(seekBarRect, seekBarPoint, time, () => {\n this.el_.style.left = `${seekBarRect.width * seekBarPoint}px`;\n });\n }\n}\n\n/**\n * Default options for `MouseTimeDisplay`\n *\n * @type {Object}\n * @private\n */\nMouseTimeDisplay.prototype.options_ = {\n children: ['timeTooltip']\n};\nComponent$1.registerComponent('MouseTimeDisplay', MouseTimeDisplay);\n\n/**\n * @file seek-bar.js\n */\n\n// The number of seconds the `step*` functions move the timeline.\nconst STEP_SECONDS = 5;\n\n// The multiplier of STEP_SECONDS that PgUp/PgDown move the timeline.\nconst PAGE_KEY_MULTIPLIER = 12;\n\n/**\n * Seek bar and container for the progress bars. Uses {@link PlayProgressBar}\n * as its `bar`.\n *\n * @extends Slider\n */\nclass SeekBar extends Slider {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.setEventHandlers_();\n }\n\n /**\n * Sets the event handlers\n *\n * @private\n */\n setEventHandlers_() {\n this.update_ = bind_(this, this.update);\n this.update = throttle(this.update_, UPDATE_REFRESH_INTERVAL);\n this.on(this.player_, ['ended', 'durationchange', 'timeupdate'], this.update);\n if (this.player_.liveTracker) {\n this.on(this.player_.liveTracker, 'liveedgechange', this.update);\n }\n\n // when playing, let's ensure we smoothly update the play progress bar\n // via an interval\n this.updateInterval = null;\n this.enableIntervalHandler_ = e => this.enableInterval_(e);\n this.disableIntervalHandler_ = e => this.disableInterval_(e);\n this.on(this.player_, ['playing'], this.enableIntervalHandler_);\n this.on(this.player_, ['ended', 'pause', 'waiting'], this.disableIntervalHandler_);\n\n // we don't need to update the play progress if the document is hidden,\n // also, this causes the CPU to spike and eventually crash the page on IE11.\n if ('hidden' in document && 'visibilityState' in document) {\n this.on(document, 'visibilitychange', this.toggleVisibility_);\n }\n }\n toggleVisibility_(e) {\n if (document.visibilityState === 'hidden') {\n this.cancelNamedAnimationFrame('SeekBar#update');\n this.cancelNamedAnimationFrame('Slider#update');\n this.disableInterval_(e);\n } else {\n if (!this.player_.ended() && !this.player_.paused()) {\n this.enableInterval_();\n }\n\n // we just switched back to the page and someone may be looking, so, update ASAP\n this.update();\n }\n }\n enableInterval_() {\n if (this.updateInterval) {\n return;\n }\n this.updateInterval = this.setInterval(this.update, UPDATE_REFRESH_INTERVAL);\n }\n disableInterval_(e) {\n if (this.player_.liveTracker && this.player_.liveTracker.isLive() && e && e.type !== 'ended') {\n return;\n }\n if (!this.updateInterval) {\n return;\n }\n this.clearInterval(this.updateInterval);\n this.updateInterval = null;\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-progress-holder'\n }, {\n 'aria-label': this.localize('Progress Bar')\n });\n }\n\n /**\n * This function updates the play progress bar and accessibility\n * attributes to whatever is passed in.\n *\n * @param {Event} [event]\n * The `timeupdate` or `ended` event that caused this to run.\n *\n * @listens Player#timeupdate\n *\n * @return {number}\n * The current percent at a number from 0-1\n */\n update(event) {\n // ignore updates while the tab is hidden\n if (document.visibilityState === 'hidden') {\n return;\n }\n const percent = super.update();\n this.requestNamedAnimationFrame('SeekBar#update', () => {\n const currentTime = this.player_.ended() ? this.player_.duration() : this.getCurrentTime_();\n const liveTracker = this.player_.liveTracker;\n let duration = this.player_.duration();\n if (liveTracker && liveTracker.isLive()) {\n duration = this.player_.liveTracker.liveCurrentTime();\n }\n if (this.percent_ !== percent) {\n // machine readable value of progress bar (percentage complete)\n this.el_.setAttribute('aria-valuenow', (percent * 100).toFixed(2));\n this.percent_ = percent;\n }\n if (this.currentTime_ !== currentTime || this.duration_ !== duration) {\n // human readable value of progress bar (time complete)\n this.el_.setAttribute('aria-valuetext', this.localize('progress bar timing: currentTime={1} duration={2}', [formatTime(currentTime, duration), formatTime(duration, duration)], '{1} of {2}'));\n this.currentTime_ = currentTime;\n this.duration_ = duration;\n }\n\n // update the progress bar time tooltip with the current time\n if (this.bar) {\n this.bar.update(getBoundingClientRect(this.el()), this.getProgress());\n }\n });\n return percent;\n }\n\n /**\n * Prevent liveThreshold from causing seeks to seem like they\n * are not happening from a user perspective.\n *\n * @param {number} ct\n * current time to seek to\n */\n userSeek_(ct) {\n if (this.player_.liveTracker && this.player_.liveTracker.isLive()) {\n this.player_.liveTracker.nextSeekedFromUser();\n }\n this.player_.currentTime(ct);\n }\n\n /**\n * Get the value of current time but allows for smooth scrubbing,\n * when player can't keep up.\n *\n * @return {number}\n * The current time value to display\n *\n * @private\n */\n getCurrentTime_() {\n return this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();\n }\n\n /**\n * Get the percentage of media played so far.\n *\n * @return {number}\n * The percentage of media played so far (0 to 1).\n */\n getPercent() {\n const currentTime = this.getCurrentTime_();\n let percent;\n const liveTracker = this.player_.liveTracker;\n if (liveTracker && liveTracker.isLive()) {\n percent = (currentTime - liveTracker.seekableStart()) / liveTracker.liveWindow();\n\n // prevent the percent from changing at the live edge\n if (liveTracker.atLiveEdge()) {\n percent = 1;\n }\n } else {\n percent = currentTime / this.player_.duration();\n }\n return percent;\n }\n\n /**\n * Handle mouse down on seek bar\n *\n * @param {MouseEvent} event\n * The `mousedown` event that caused this to run.\n *\n * @listens mousedown\n */\n handleMouseDown(event) {\n if (!isSingleLeftClick(event)) {\n return;\n }\n\n // Stop event propagation to prevent double fire in progress-control.js\n event.stopPropagation();\n this.videoWasPlaying = !this.player_.paused();\n this.player_.pause();\n super.handleMouseDown(event);\n }\n\n /**\n * Handle mouse move on seek bar\n *\n * @param {MouseEvent} event\n * The `mousemove` event that caused this to run.\n * @param {boolean} mouseDown this is a flag that should be set to true if `handleMouseMove` is called directly. It allows us to skip things that should not happen if coming from mouse down but should happen on regular mouse move handler. Defaults to false\n *\n * @listens mousemove\n */\n handleMouseMove(event) {\n let mouseDown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (!isSingleLeftClick(event) || isNaN(this.player_.duration())) {\n return;\n }\n if (!mouseDown && !this.player_.scrubbing()) {\n this.player_.scrubbing(true);\n }\n let newTime;\n const distance = this.calculateDistance(event);\n const liveTracker = this.player_.liveTracker;\n if (!liveTracker || !liveTracker.isLive()) {\n newTime = distance * this.player_.duration();\n\n // Don't let video end while scrubbing.\n if (newTime === this.player_.duration()) {\n newTime = newTime - 0.1;\n }\n } else {\n if (distance >= 0.99) {\n liveTracker.seekToLiveEdge();\n return;\n }\n const seekableStart = liveTracker.seekableStart();\n const seekableEnd = liveTracker.liveCurrentTime();\n newTime = seekableStart + distance * liveTracker.liveWindow();\n\n // Don't let video end while scrubbing.\n if (newTime >= seekableEnd) {\n newTime = seekableEnd;\n }\n\n // Compensate for precision differences so that currentTime is not less\n // than seekable start\n if (newTime <= seekableStart) {\n newTime = seekableStart + 0.1;\n }\n\n // On android seekableEnd can be Infinity sometimes,\n // this will cause newTime to be Infinity, which is\n // not a valid currentTime.\n if (newTime === Infinity) {\n return;\n }\n }\n\n // Set new time (tell player to seek to new time)\n this.userSeek_(newTime);\n if (this.player_.options_.enableSmoothSeeking) {\n this.update();\n }\n }\n enable() {\n super.enable();\n const mouseTimeDisplay = this.getChild('mouseTimeDisplay');\n if (!mouseTimeDisplay) {\n return;\n }\n mouseTimeDisplay.show();\n }\n disable() {\n super.disable();\n const mouseTimeDisplay = this.getChild('mouseTimeDisplay');\n if (!mouseTimeDisplay) {\n return;\n }\n mouseTimeDisplay.hide();\n }\n\n /**\n * Handle mouse up on seek bar\n *\n * @param {MouseEvent} event\n * The `mouseup` event that caused this to run.\n *\n * @listens mouseup\n */\n handleMouseUp(event) {\n super.handleMouseUp(event);\n\n // Stop event propagation to prevent double fire in progress-control.js\n if (event) {\n event.stopPropagation();\n }\n this.player_.scrubbing(false);\n\n /**\n * Trigger timeupdate because we're done seeking and the time has changed.\n * This is particularly useful for if the player is paused to time the time displays.\n *\n * @event Tech#timeupdate\n * @type {Event}\n */\n this.player_.trigger({\n type: 'timeupdate',\n target: this,\n manuallyTriggered: true\n });\n if (this.videoWasPlaying) {\n silencePromise(this.player_.play());\n } else {\n // We're done seeking and the time has changed.\n // If the player is paused, make sure we display the correct time on the seek bar.\n this.update_();\n }\n }\n\n /**\n * Move more quickly fast forward for keyboard-only users\n */\n stepForward() {\n this.userSeek_(this.player_.currentTime() + STEP_SECONDS);\n }\n\n /**\n * Move more quickly rewind for keyboard-only users\n */\n stepBack() {\n this.userSeek_(this.player_.currentTime() - STEP_SECONDS);\n }\n\n /**\n * Toggles the playback state of the player\n * This gets called when enter or space is used on the seekbar\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called\n *\n */\n handleAction(event) {\n if (this.player_.paused()) {\n this.player_.play();\n } else {\n this.player_.pause();\n }\n }\n\n /**\n * Called when this SeekBar has focus and a key gets pressed down.\n * Supports the following keys:\n *\n * Space or Enter key fire a click event\n * Home key moves to start of the timeline\n * End key moves to end of the timeline\n * Digit \"0\" through \"9\" keys move to 0%, 10% ... 80%, 90% of the timeline\n * PageDown key moves back a larger step than ArrowDown\n * PageUp key moves forward a large step\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n const liveTracker = this.player_.liveTracker;\n if (keycode.isEventKey(event, 'Space') || keycode.isEventKey(event, 'Enter')) {\n event.preventDefault();\n event.stopPropagation();\n this.handleAction(event);\n } else if (keycode.isEventKey(event, 'Home')) {\n event.preventDefault();\n event.stopPropagation();\n this.userSeek_(0);\n } else if (keycode.isEventKey(event, 'End')) {\n event.preventDefault();\n event.stopPropagation();\n if (liveTracker && liveTracker.isLive()) {\n this.userSeek_(liveTracker.liveCurrentTime());\n } else {\n this.userSeek_(this.player_.duration());\n }\n } else if (/^[0-9]$/.test(keycode(event))) {\n event.preventDefault();\n event.stopPropagation();\n const gotoFraction = (keycode.codes[keycode(event)] - keycode.codes['0']) * 10.0 / 100.0;\n if (liveTracker && liveTracker.isLive()) {\n this.userSeek_(liveTracker.seekableStart() + liveTracker.liveWindow() * gotoFraction);\n } else {\n this.userSeek_(this.player_.duration() * gotoFraction);\n }\n } else if (keycode.isEventKey(event, 'PgDn')) {\n event.preventDefault();\n event.stopPropagation();\n this.userSeek_(this.player_.currentTime() - STEP_SECONDS * PAGE_KEY_MULTIPLIER);\n } else if (keycode.isEventKey(event, 'PgUp')) {\n event.preventDefault();\n event.stopPropagation();\n this.userSeek_(this.player_.currentTime() + STEP_SECONDS * PAGE_KEY_MULTIPLIER);\n } else {\n // Pass keydown handling up for unsupported keys\n super.handleKeyDown(event);\n }\n }\n dispose() {\n this.disableInterval_();\n this.off(this.player_, ['ended', 'durationchange', 'timeupdate'], this.update);\n if (this.player_.liveTracker) {\n this.off(this.player_.liveTracker, 'liveedgechange', this.update);\n }\n this.off(this.player_, ['playing'], this.enableIntervalHandler_);\n this.off(this.player_, ['ended', 'pause', 'waiting'], this.disableIntervalHandler_);\n\n // we don't need to update the play progress if the document is hidden,\n // also, this causes the CPU to spike and eventually crash the page on IE11.\n if ('hidden' in document && 'visibilityState' in document) {\n this.off(document, 'visibilitychange', this.toggleVisibility_);\n }\n super.dispose();\n }\n}\n\n/**\n * Default options for the `SeekBar`\n *\n * @type {Object}\n * @private\n */\nSeekBar.prototype.options_ = {\n children: ['loadProgressBar', 'playProgressBar'],\n barName: 'playProgressBar'\n};\n\n// MouseTimeDisplay tooltips should not be added to a player on mobile devices\nif (!IS_IOS && !IS_ANDROID) {\n SeekBar.prototype.options_.children.splice(1, 0, 'mouseTimeDisplay');\n}\nComponent$1.registerComponent('SeekBar', SeekBar);\n\n/**\n * @file progress-control.js\n */\n\n/**\n * The Progress Control component contains the seek bar, load progress,\n * and play progress.\n *\n * @extends Component\n */\nclass ProgressControl extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.handleMouseMove = throttle(bind_(this, this.handleMouseMove), UPDATE_REFRESH_INTERVAL);\n this.throttledHandleMouseSeek = throttle(bind_(this, this.handleMouseSeek), UPDATE_REFRESH_INTERVAL);\n this.handleMouseUpHandler_ = e => this.handleMouseUp(e);\n this.handleMouseDownHandler_ = e => this.handleMouseDown(e);\n this.enable();\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-progress-control vjs-control'\n });\n }\n\n /**\n * When the mouse moves over the `ProgressControl`, the pointer position\n * gets passed down to the `MouseTimeDisplay` component.\n *\n * @param {Event} event\n * The `mousemove` event that caused this function to run.\n *\n * @listen mousemove\n */\n handleMouseMove(event) {\n const seekBar = this.getChild('seekBar');\n if (!seekBar) {\n return;\n }\n const playProgressBar = seekBar.getChild('playProgressBar');\n const mouseTimeDisplay = seekBar.getChild('mouseTimeDisplay');\n if (!playProgressBar && !mouseTimeDisplay) {\n return;\n }\n const seekBarEl = seekBar.el();\n const seekBarRect = findPosition(seekBarEl);\n let seekBarPoint = getPointerPosition(seekBarEl, event).x;\n\n // The default skin has a gap on either side of the `SeekBar`. This means\n // that it's possible to trigger this behavior outside the boundaries of\n // the `SeekBar`. This ensures we stay within it at all times.\n seekBarPoint = clamp(seekBarPoint, 0, 1);\n if (mouseTimeDisplay) {\n mouseTimeDisplay.update(seekBarRect, seekBarPoint);\n }\n if (playProgressBar) {\n playProgressBar.update(seekBarRect, seekBar.getProgress());\n }\n }\n\n /**\n * A throttled version of the {@link ProgressControl#handleMouseSeek} listener.\n *\n * @method ProgressControl#throttledHandleMouseSeek\n * @param {Event} event\n * The `mousemove` event that caused this function to run.\n *\n * @listen mousemove\n * @listen touchmove\n */\n\n /**\n * Handle `mousemove` or `touchmove` events on the `ProgressControl`.\n *\n * @param {Event} event\n * `mousedown` or `touchstart` event that triggered this function\n *\n * @listens mousemove\n * @listens touchmove\n */\n handleMouseSeek(event) {\n const seekBar = this.getChild('seekBar');\n if (seekBar) {\n seekBar.handleMouseMove(event);\n }\n }\n\n /**\n * Are controls are currently enabled for this progress control.\n *\n * @return {boolean}\n * true if controls are enabled, false otherwise\n */\n enabled() {\n return this.enabled_;\n }\n\n /**\n * Disable all controls on the progress control and its children\n */\n disable() {\n this.children().forEach(child => child.disable && child.disable());\n if (!this.enabled()) {\n return;\n }\n this.off(['mousedown', 'touchstart'], this.handleMouseDownHandler_);\n this.off(this.el_, 'mousemove', this.handleMouseMove);\n this.removeListenersAddedOnMousedownAndTouchstart();\n this.addClass('disabled');\n this.enabled_ = false;\n\n // Restore normal playback state if controls are disabled while scrubbing\n if (this.player_.scrubbing()) {\n const seekBar = this.getChild('seekBar');\n this.player_.scrubbing(false);\n if (seekBar.videoWasPlaying) {\n silencePromise(this.player_.play());\n }\n }\n }\n\n /**\n * Enable all controls on the progress control and its children\n */\n enable() {\n this.children().forEach(child => child.enable && child.enable());\n if (this.enabled()) {\n return;\n }\n this.on(['mousedown', 'touchstart'], this.handleMouseDownHandler_);\n this.on(this.el_, 'mousemove', this.handleMouseMove);\n this.removeClass('disabled');\n this.enabled_ = true;\n }\n\n /**\n * Cleanup listeners after the user finishes interacting with the progress controls\n */\n removeListenersAddedOnMousedownAndTouchstart() {\n const doc = this.el_.ownerDocument;\n this.off(doc, 'mousemove', this.throttledHandleMouseSeek);\n this.off(doc, 'touchmove', this.throttledHandleMouseSeek);\n this.off(doc, 'mouseup', this.handleMouseUpHandler_);\n this.off(doc, 'touchend', this.handleMouseUpHandler_);\n }\n\n /**\n * Handle `mousedown` or `touchstart` events on the `ProgressControl`.\n *\n * @param {Event} event\n * `mousedown` or `touchstart` event that triggered this function\n *\n * @listens mousedown\n * @listens touchstart\n */\n handleMouseDown(event) {\n const doc = this.el_.ownerDocument;\n const seekBar = this.getChild('seekBar');\n if (seekBar) {\n seekBar.handleMouseDown(event);\n }\n this.on(doc, 'mousemove', this.throttledHandleMouseSeek);\n this.on(doc, 'touchmove', this.throttledHandleMouseSeek);\n this.on(doc, 'mouseup', this.handleMouseUpHandler_);\n this.on(doc, 'touchend', this.handleMouseUpHandler_);\n }\n\n /**\n * Handle `mouseup` or `touchend` events on the `ProgressControl`.\n *\n * @param {Event} event\n * `mouseup` or `touchend` event that triggered this function.\n *\n * @listens touchend\n * @listens mouseup\n */\n handleMouseUp(event) {\n const seekBar = this.getChild('seekBar');\n if (seekBar) {\n seekBar.handleMouseUp(event);\n }\n this.removeListenersAddedOnMousedownAndTouchstart();\n }\n}\n\n/**\n * Default options for `ProgressControl`\n *\n * @type {Object}\n * @private\n */\nProgressControl.prototype.options_ = {\n children: ['seekBar']\n};\nComponent$1.registerComponent('ProgressControl', ProgressControl);\n\n/**\n * @file picture-in-picture-toggle.js\n */\n\n/**\n * Toggle Picture-in-Picture mode\n *\n * @extends Button\n */\nclass PictureInPictureToggle extends Button {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @listens Player#enterpictureinpicture\n * @listens Player#leavepictureinpicture\n */\n constructor(player, options) {\n super(player, options);\n this.setIcon('picture-in-picture-enter');\n this.on(player, ['enterpictureinpicture', 'leavepictureinpicture'], e => this.handlePictureInPictureChange(e));\n this.on(player, ['disablepictureinpicturechanged', 'loadedmetadata'], e => this.handlePictureInPictureEnabledChange(e));\n this.on(player, ['loadedmetadata', 'audioonlymodechange', 'audiopostermodechange'], () => this.handlePictureInPictureAudioModeChange());\n\n // TODO: Deactivate button on player emptied event.\n this.disable();\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`;\n }\n\n /**\n * Displays or hides the button depending on the audio mode detection.\n * Exits picture-in-picture if it is enabled when switching to audio mode.\n */\n handlePictureInPictureAudioModeChange() {\n // This audio detection will not detect HLS or DASH audio-only streams because there was no reliable way to detect them at the time\n const isSourceAudio = this.player_.currentType().substring(0, 5) === 'audio';\n const isAudioMode = isSourceAudio || this.player_.audioPosterMode() || this.player_.audioOnlyMode();\n if (!isAudioMode) {\n this.show();\n return;\n }\n if (this.player_.isInPictureInPicture()) {\n this.player_.exitPictureInPicture();\n }\n this.hide();\n }\n\n /**\n * Enables or disables button based on availability of a Picture-In-Picture mode.\n *\n * Enabled if\n * - `player.options().enableDocumentPictureInPicture` is true and\n * window.documentPictureInPicture is available; or\n * - `player.disablePictureInPicture()` is false and\n * element.requestPictureInPicture is available\n */\n handlePictureInPictureEnabledChange() {\n if (document.pictureInPictureEnabled && this.player_.disablePictureInPicture() === false || this.player_.options_.enableDocumentPictureInPicture && 'documentPictureInPicture' in window$1) {\n this.enable();\n } else {\n this.disable();\n }\n }\n\n /**\n * Handles enterpictureinpicture and leavepictureinpicture on the player and change control text accordingly.\n *\n * @param {Event} [event]\n * The {@link Player#enterpictureinpicture} or {@link Player#leavepictureinpicture} event that caused this function to be\n * called.\n *\n * @listens Player#enterpictureinpicture\n * @listens Player#leavepictureinpicture\n */\n handlePictureInPictureChange(event) {\n if (this.player_.isInPictureInPicture()) {\n this.setIcon('picture-in-picture-exit');\n this.controlText('Exit Picture-in-Picture');\n } else {\n this.setIcon('picture-in-picture-enter');\n this.controlText('Picture-in-Picture');\n }\n this.handlePictureInPictureEnabledChange();\n }\n\n /**\n * This gets called when an `PictureInPictureToggle` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n if (!this.player_.isInPictureInPicture()) {\n this.player_.requestPictureInPicture();\n } else {\n this.player_.exitPictureInPicture();\n }\n }\n\n /**\n * Show the `Component`s element if it is hidden by removing the\n * 'vjs-hidden' class name from it only in browsers that support the Picture-in-Picture API.\n */\n show() {\n // Does not allow to display the pictureInPictureToggle in browsers that do not support the Picture-in-Picture API, e.g. Firefox.\n if (typeof document.exitPictureInPicture !== 'function') {\n return;\n }\n super.show();\n }\n}\n\n/**\n * The text that should display over the `PictureInPictureToggle`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nPictureInPictureToggle.prototype.controlText_ = 'Picture-in-Picture';\nComponent$1.registerComponent('PictureInPictureToggle', PictureInPictureToggle);\n\n/**\n * @file fullscreen-toggle.js\n */\n\n/**\n * Toggle fullscreen video\n *\n * @extends Button\n */\nclass FullscreenToggle extends Button {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.setIcon('fullscreen-enter');\n this.on(player, 'fullscreenchange', e => this.handleFullscreenChange(e));\n if (document[player.fsApi_.fullscreenEnabled] === false) {\n this.disable();\n }\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-fullscreen-control ${super.buildCSSClass()}`;\n }\n\n /**\n * Handles fullscreenchange on the player and change control text accordingly.\n *\n * @param {Event} [event]\n * The {@link Player#fullscreenchange} event that caused this function to be\n * called.\n *\n * @listens Player#fullscreenchange\n */\n handleFullscreenChange(event) {\n if (this.player_.isFullscreen()) {\n this.controlText('Exit Fullscreen');\n this.setIcon('fullscreen-exit');\n } else {\n this.controlText('Fullscreen');\n this.setIcon('fullscreen-enter');\n }\n }\n\n /**\n * This gets called when an `FullscreenToggle` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n if (!this.player_.isFullscreen()) {\n this.player_.requestFullscreen();\n } else {\n this.player_.exitFullscreen();\n }\n }\n}\n\n/**\n * The text that should display over the `FullscreenToggle`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nFullscreenToggle.prototype.controlText_ = 'Fullscreen';\nComponent$1.registerComponent('FullscreenToggle', FullscreenToggle);\n\n/**\n * Check if volume control is supported and if it isn't hide the\n * `Component` that was passed using the `vjs-hidden` class.\n *\n * @param { import('../../component').default } self\n * The component that should be hidden if volume is unsupported\n *\n * @param { import('../../player').default } player\n * A reference to the player\n *\n * @private\n */\nconst checkVolumeSupport = function (self, player) {\n // hide volume controls when they're not supported by the current tech\n if (player.tech_ && !player.tech_.featuresVolumeControl) {\n self.addClass('vjs-hidden');\n }\n self.on(player, 'loadstart', function () {\n if (!player.tech_.featuresVolumeControl) {\n self.addClass('vjs-hidden');\n } else {\n self.removeClass('vjs-hidden');\n }\n });\n};\n\n/**\n * @file volume-level.js\n */\n\n/**\n * Shows volume level\n *\n * @extends Component\n */\nclass VolumeLevel extends Component$1 {\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl('div', {\n className: 'vjs-volume-level'\n });\n this.setIcon('circle', el);\n el.appendChild(super.createEl('span', {\n className: 'vjs-control-text'\n }));\n return el;\n }\n}\nComponent$1.registerComponent('VolumeLevel', VolumeLevel);\n\n/**\n * @file volume-level-tooltip.js\n */\n\n/**\n * Volume level tooltips display a volume above or side by side the volume bar.\n *\n * @extends Component\n */\nclass VolumeLevelTooltip extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The {@link Player} that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.update = throttle(bind_(this, this.update), UPDATE_REFRESH_INTERVAL);\n }\n\n /**\n * Create the volume tooltip DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-volume-tooltip'\n }, {\n 'aria-hidden': 'true'\n });\n }\n\n /**\n * Updates the position of the tooltip relative to the `VolumeBar` and\n * its content text.\n *\n * @param {Object} rangeBarRect\n * The `ClientRect` for the {@link VolumeBar} element.\n *\n * @param {number} rangeBarPoint\n * A number from 0 to 1, representing a horizontal/vertical reference point\n * from the left edge of the {@link VolumeBar}\n *\n * @param {boolean} vertical\n * Referees to the Volume control position\n * in the control bar{@link VolumeControl}\n *\n */\n update(rangeBarRect, rangeBarPoint, vertical, content) {\n if (!vertical) {\n const tooltipRect = getBoundingClientRect(this.el_);\n const playerRect = getBoundingClientRect(this.player_.el());\n const volumeBarPointPx = rangeBarRect.width * rangeBarPoint;\n if (!playerRect || !tooltipRect) {\n return;\n }\n const spaceLeftOfPoint = rangeBarRect.left - playerRect.left + volumeBarPointPx;\n const spaceRightOfPoint = rangeBarRect.width - volumeBarPointPx + (playerRect.right - rangeBarRect.right);\n let pullTooltipBy = tooltipRect.width / 2;\n if (spaceLeftOfPoint < pullTooltipBy) {\n pullTooltipBy += pullTooltipBy - spaceLeftOfPoint;\n } else if (spaceRightOfPoint < pullTooltipBy) {\n pullTooltipBy = spaceRightOfPoint;\n }\n if (pullTooltipBy < 0) {\n pullTooltipBy = 0;\n } else if (pullTooltipBy > tooltipRect.width) {\n pullTooltipBy = tooltipRect.width;\n }\n this.el_.style.right = `-${pullTooltipBy}px`;\n }\n this.write(`${content}%`);\n }\n\n /**\n * Write the volume to the tooltip DOM element.\n *\n * @param {string} content\n * The formatted volume for the tooltip.\n */\n write(content) {\n textContent(this.el_, content);\n }\n\n /**\n * Updates the position of the volume tooltip relative to the `VolumeBar`.\n *\n * @param {Object} rangeBarRect\n * The `ClientRect` for the {@link VolumeBar} element.\n *\n * @param {number} rangeBarPoint\n * A number from 0 to 1, representing a horizontal/vertical reference point\n * from the left edge of the {@link VolumeBar}\n *\n * @param {boolean} vertical\n * Referees to the Volume control position\n * in the control bar{@link VolumeControl}\n *\n * @param {number} volume\n * The volume level to update the tooltip to\n *\n * @param {Function} cb\n * A function that will be called during the request animation frame\n * for tooltips that need to do additional animations from the default\n */\n updateVolume(rangeBarRect, rangeBarPoint, vertical, volume, cb) {\n this.requestNamedAnimationFrame('VolumeLevelTooltip#updateVolume', () => {\n this.update(rangeBarRect, rangeBarPoint, vertical, volume.toFixed(0));\n if (cb) {\n cb();\n }\n });\n }\n}\nComponent$1.registerComponent('VolumeLevelTooltip', VolumeLevelTooltip);\n\n/**\n * @file mouse-volume-level-display.js\n */\n\n/**\n * The {@link MouseVolumeLevelDisplay} component tracks mouse movement over the\n * {@link VolumeControl}. It displays an indicator and a {@link VolumeLevelTooltip}\n * indicating the volume level which is represented by a given point in the\n * {@link VolumeBar}.\n *\n * @extends Component\n */\nclass MouseVolumeLevelDisplay extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The {@link Player} that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.update = throttle(bind_(this, this.update), UPDATE_REFRESH_INTERVAL);\n }\n\n /**\n * Create the DOM element for this class.\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-mouse-display'\n });\n }\n\n /**\n * Enquires updates to its own DOM as well as the DOM of its\n * {@link VolumeLevelTooltip} child.\n *\n * @param {Object} rangeBarRect\n * The `ClientRect` for the {@link VolumeBar} element.\n *\n * @param {number} rangeBarPoint\n * A number from 0 to 1, representing a horizontal/vertical reference point\n * from the left edge of the {@link VolumeBar}\n *\n * @param {boolean} vertical\n * Referees to the Volume control position\n * in the control bar{@link VolumeControl}\n *\n */\n update(rangeBarRect, rangeBarPoint, vertical) {\n const volume = 100 * rangeBarPoint;\n this.getChild('volumeLevelTooltip').updateVolume(rangeBarRect, rangeBarPoint, vertical, volume, () => {\n if (vertical) {\n this.el_.style.bottom = `${rangeBarRect.height * rangeBarPoint}px`;\n } else {\n this.el_.style.left = `${rangeBarRect.width * rangeBarPoint}px`;\n }\n });\n }\n}\n\n/**\n * Default options for `MouseVolumeLevelDisplay`\n *\n * @type {Object}\n * @private\n */\nMouseVolumeLevelDisplay.prototype.options_ = {\n children: ['volumeLevelTooltip']\n};\nComponent$1.registerComponent('MouseVolumeLevelDisplay', MouseVolumeLevelDisplay);\n\n/**\n * @file volume-bar.js\n */\n\n/**\n * The bar that contains the volume level and can be clicked on to adjust the level\n *\n * @extends Slider\n */\nclass VolumeBar extends Slider {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.on('slideractive', e => this.updateLastVolume_(e));\n this.on(player, 'volumechange', e => this.updateARIAAttributes(e));\n player.ready(() => this.updateARIAAttributes());\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-volume-bar vjs-slider-bar'\n }, {\n 'aria-label': this.localize('Volume Level'),\n 'aria-live': 'polite'\n });\n }\n\n /**\n * Handle mouse down on volume bar\n *\n * @param {Event} event\n * The `mousedown` event that caused this to run.\n *\n * @listens mousedown\n */\n handleMouseDown(event) {\n if (!isSingleLeftClick(event)) {\n return;\n }\n super.handleMouseDown(event);\n }\n\n /**\n * Handle movement events on the {@link VolumeMenuButton}.\n *\n * @param {Event} event\n * The event that caused this function to run.\n *\n * @listens mousemove\n */\n handleMouseMove(event) {\n const mouseVolumeLevelDisplay = this.getChild('mouseVolumeLevelDisplay');\n if (mouseVolumeLevelDisplay) {\n const volumeBarEl = this.el();\n const volumeBarRect = getBoundingClientRect(volumeBarEl);\n const vertical = this.vertical();\n let volumeBarPoint = getPointerPosition(volumeBarEl, event);\n volumeBarPoint = vertical ? volumeBarPoint.y : volumeBarPoint.x;\n // The default skin has a gap on either side of the `VolumeBar`. This means\n // that it's possible to trigger this behavior outside the boundaries of\n // the `VolumeBar`. This ensures we stay within it at all times.\n volumeBarPoint = clamp(volumeBarPoint, 0, 1);\n mouseVolumeLevelDisplay.update(volumeBarRect, volumeBarPoint, vertical);\n }\n if (!isSingleLeftClick(event)) {\n return;\n }\n this.checkMuted();\n this.player_.volume(this.calculateDistance(event));\n }\n\n /**\n * If the player is muted unmute it.\n */\n checkMuted() {\n if (this.player_.muted()) {\n this.player_.muted(false);\n }\n }\n\n /**\n * Get percent of volume level\n *\n * @return {number}\n * Volume level percent as a decimal number.\n */\n getPercent() {\n if (this.player_.muted()) {\n return 0;\n }\n return this.player_.volume();\n }\n\n /**\n * Increase volume level for keyboard users\n */\n stepForward() {\n this.checkMuted();\n this.player_.volume(this.player_.volume() + 0.1);\n }\n\n /**\n * Decrease volume level for keyboard users\n */\n stepBack() {\n this.checkMuted();\n this.player_.volume(this.player_.volume() - 0.1);\n }\n\n /**\n * Update ARIA accessibility attributes\n *\n * @param {Event} [event]\n * The `volumechange` event that caused this function to run.\n *\n * @listens Player#volumechange\n */\n updateARIAAttributes(event) {\n const ariaValue = this.player_.muted() ? 0 : this.volumeAsPercentage_();\n this.el_.setAttribute('aria-valuenow', ariaValue);\n this.el_.setAttribute('aria-valuetext', ariaValue + '%');\n }\n\n /**\n * Returns the current value of the player volume as a percentage\n *\n * @private\n */\n volumeAsPercentage_() {\n return Math.round(this.player_.volume() * 100);\n }\n\n /**\n * When user starts dragging the VolumeBar, store the volume and listen for\n * the end of the drag. When the drag ends, if the volume was set to zero,\n * set lastVolume to the stored volume.\n *\n * @listens slideractive\n * @private\n */\n updateLastVolume_() {\n const volumeBeforeDrag = this.player_.volume();\n this.one('sliderinactive', () => {\n if (this.player_.volume() === 0) {\n this.player_.lastVolume_(volumeBeforeDrag);\n }\n });\n }\n}\n\n/**\n * Default options for the `VolumeBar`\n *\n * @type {Object}\n * @private\n */\nVolumeBar.prototype.options_ = {\n children: ['volumeLevel'],\n barName: 'volumeLevel'\n};\n\n// MouseVolumeLevelDisplay tooltip should not be added to a player on mobile devices\nif (!IS_IOS && !IS_ANDROID) {\n VolumeBar.prototype.options_.children.splice(0, 0, 'mouseVolumeLevelDisplay');\n}\n\n/**\n * Call the update event for this Slider when this event happens on the player.\n *\n * @type {string}\n */\nVolumeBar.prototype.playerEvent = 'volumechange';\nComponent$1.registerComponent('VolumeBar', VolumeBar);\n\n/**\n * @file volume-control.js\n */\n\n/**\n * The component for controlling the volume level\n *\n * @extends Component\n */\nclass VolumeControl extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n options.vertical = options.vertical || false;\n\n // Pass the vertical option down to the VolumeBar if\n // the VolumeBar is turned on.\n if (typeof options.volumeBar === 'undefined' || isPlain(options.volumeBar)) {\n options.volumeBar = options.volumeBar || {};\n options.volumeBar.vertical = options.vertical;\n }\n super(player, options);\n\n // hide this control if volume support is missing\n checkVolumeSupport(this, player);\n this.throttledHandleMouseMove = throttle(bind_(this, this.handleMouseMove), UPDATE_REFRESH_INTERVAL);\n this.handleMouseUpHandler_ = e => this.handleMouseUp(e);\n this.on('mousedown', e => this.handleMouseDown(e));\n this.on('touchstart', e => this.handleMouseDown(e));\n this.on('mousemove', e => this.handleMouseMove(e));\n\n // while the slider is active (the mouse has been pressed down and\n // is dragging) or in focus we do not want to hide the VolumeBar\n this.on(this.volumeBar, ['focus', 'slideractive'], () => {\n this.volumeBar.addClass('vjs-slider-active');\n this.addClass('vjs-slider-active');\n this.trigger('slideractive');\n });\n this.on(this.volumeBar, ['blur', 'sliderinactive'], () => {\n this.volumeBar.removeClass('vjs-slider-active');\n this.removeClass('vjs-slider-active');\n this.trigger('sliderinactive');\n });\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n let orientationClass = 'vjs-volume-horizontal';\n if (this.options_.vertical) {\n orientationClass = 'vjs-volume-vertical';\n }\n return super.createEl('div', {\n className: `vjs-volume-control vjs-control ${orientationClass}`\n });\n }\n\n /**\n * Handle `mousedown` or `touchstart` events on the `VolumeControl`.\n *\n * @param {Event} event\n * `mousedown` or `touchstart` event that triggered this function\n *\n * @listens mousedown\n * @listens touchstart\n */\n handleMouseDown(event) {\n const doc = this.el_.ownerDocument;\n this.on(doc, 'mousemove', this.throttledHandleMouseMove);\n this.on(doc, 'touchmove', this.throttledHandleMouseMove);\n this.on(doc, 'mouseup', this.handleMouseUpHandler_);\n this.on(doc, 'touchend', this.handleMouseUpHandler_);\n }\n\n /**\n * Handle `mouseup` or `touchend` events on the `VolumeControl`.\n *\n * @param {Event} event\n * `mouseup` or `touchend` event that triggered this function.\n *\n * @listens touchend\n * @listens mouseup\n */\n handleMouseUp(event) {\n const doc = this.el_.ownerDocument;\n this.off(doc, 'mousemove', this.throttledHandleMouseMove);\n this.off(doc, 'touchmove', this.throttledHandleMouseMove);\n this.off(doc, 'mouseup', this.handleMouseUpHandler_);\n this.off(doc, 'touchend', this.handleMouseUpHandler_);\n }\n\n /**\n * Handle `mousedown` or `touchstart` events on the `VolumeControl`.\n *\n * @param {Event} event\n * `mousedown` or `touchstart` event that triggered this function\n *\n * @listens mousedown\n * @listens touchstart\n */\n handleMouseMove(event) {\n this.volumeBar.handleMouseMove(event);\n }\n}\n\n/**\n * Default options for the `VolumeControl`\n *\n * @type {Object}\n * @private\n */\nVolumeControl.prototype.options_ = {\n children: ['volumeBar']\n};\nComponent$1.registerComponent('VolumeControl', VolumeControl);\n\n/**\n * Check if muting volume is supported and if it isn't hide the mute toggle\n * button.\n *\n * @param { import('../../component').default } self\n * A reference to the mute toggle button\n *\n * @param { import('../../player').default } player\n * A reference to the player\n *\n * @private\n */\nconst checkMuteSupport = function (self, player) {\n // hide mute toggle button if it's not supported by the current tech\n if (player.tech_ && !player.tech_.featuresMuteControl) {\n self.addClass('vjs-hidden');\n }\n self.on(player, 'loadstart', function () {\n if (!player.tech_.featuresMuteControl) {\n self.addClass('vjs-hidden');\n } else {\n self.removeClass('vjs-hidden');\n }\n });\n};\n\n/**\n * @file mute-toggle.js\n */\n\n/**\n * A button component for muting the audio.\n *\n * @extends Button\n */\nclass MuteToggle extends Button {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n\n // hide this control if volume support is missing\n checkMuteSupport(this, player);\n this.on(player, ['loadstart', 'volumechange'], e => this.update(e));\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-mute-control ${super.buildCSSClass()}`;\n }\n\n /**\n * This gets called when an `MuteToggle` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n const vol = this.player_.volume();\n const lastVolume = this.player_.lastVolume_();\n if (vol === 0) {\n const volumeToSet = lastVolume < 0.1 ? 0.1 : lastVolume;\n this.player_.volume(volumeToSet);\n this.player_.muted(false);\n } else {\n this.player_.muted(this.player_.muted() ? false : true);\n }\n }\n\n /**\n * Update the `MuteToggle` button based on the state of `volume` and `muted`\n * on the player.\n *\n * @param {Event} [event]\n * The {@link Player#loadstart} event if this function was called\n * through an event.\n *\n * @listens Player#loadstart\n * @listens Player#volumechange\n */\n update(event) {\n this.updateIcon_();\n this.updateControlText_();\n }\n\n /**\n * Update the appearance of the `MuteToggle` icon.\n *\n * Possible states (given `level` variable below):\n * - 0: crossed out\n * - 1: zero bars of volume\n * - 2: one bar of volume\n * - 3: two bars of volume\n *\n * @private\n */\n updateIcon_() {\n const vol = this.player_.volume();\n let level = 3;\n this.setIcon('volume-high');\n\n // in iOS when a player is loaded with muted attribute\n // and volume is changed with a native mute button\n // we want to make sure muted state is updated\n if (IS_IOS && this.player_.tech_ && this.player_.tech_.el_) {\n this.player_.muted(this.player_.tech_.el_.muted);\n }\n if (vol === 0 || this.player_.muted()) {\n this.setIcon('volume-mute');\n level = 0;\n } else if (vol < 0.33) {\n this.setIcon('volume-low');\n level = 1;\n } else if (vol < 0.67) {\n this.setIcon('volume-medium');\n level = 2;\n }\n removeClass(this.el_, [0, 1, 2, 3].reduce((str, i) => str + `${i ? ' ' : ''}vjs-vol-${i}`, ''));\n addClass(this.el_, `vjs-vol-${level}`);\n }\n\n /**\n * If `muted` has changed on the player, update the control text\n * (`title` attribute on `vjs-mute-control` element and content of\n * `vjs-control-text` element).\n *\n * @private\n */\n updateControlText_() {\n const soundOff = this.player_.muted() || this.player_.volume() === 0;\n const text = soundOff ? 'Unmute' : 'Mute';\n if (this.controlText() !== text) {\n this.controlText(text);\n }\n }\n}\n\n/**\n * The text that should display over the `MuteToggle`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nMuteToggle.prototype.controlText_ = 'Mute';\nComponent$1.registerComponent('MuteToggle', MuteToggle);\n\n/**\n * @file volume-control.js\n */\n\n/**\n * A Component to contain the MuteToggle and VolumeControl so that\n * they can work together.\n *\n * @extends Component\n */\nclass VolumePanel extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (typeof options.inline !== 'undefined') {\n options.inline = options.inline;\n } else {\n options.inline = true;\n }\n\n // pass the inline option down to the VolumeControl as vertical if\n // the VolumeControl is on.\n if (typeof options.volumeControl === 'undefined' || isPlain(options.volumeControl)) {\n options.volumeControl = options.volumeControl || {};\n options.volumeControl.vertical = !options.inline;\n }\n super(player, options);\n\n // this handler is used by mouse handler methods below\n this.handleKeyPressHandler_ = e => this.handleKeyPress(e);\n this.on(player, ['loadstart'], e => this.volumePanelState_(e));\n this.on(this.muteToggle, 'keyup', e => this.handleKeyPress(e));\n this.on(this.volumeControl, 'keyup', e => this.handleVolumeControlKeyUp(e));\n this.on('keydown', e => this.handleKeyPress(e));\n this.on('mouseover', e => this.handleMouseOver(e));\n this.on('mouseout', e => this.handleMouseOut(e));\n\n // while the slider is active (the mouse has been pressed down and\n // is dragging) we do not want to hide the VolumeBar\n this.on(this.volumeControl, ['slideractive'], this.sliderActive_);\n this.on(this.volumeControl, ['sliderinactive'], this.sliderInactive_);\n }\n\n /**\n * Add vjs-slider-active class to the VolumePanel\n *\n * @listens VolumeControl#slideractive\n * @private\n */\n sliderActive_() {\n this.addClass('vjs-slider-active');\n }\n\n /**\n * Removes vjs-slider-active class to the VolumePanel\n *\n * @listens VolumeControl#sliderinactive\n * @private\n */\n sliderInactive_() {\n this.removeClass('vjs-slider-active');\n }\n\n /**\n * Adds vjs-hidden or vjs-mute-toggle-only to the VolumePanel\n * depending on MuteToggle and VolumeControl state\n *\n * @listens Player#loadstart\n * @private\n */\n volumePanelState_() {\n // hide volume panel if neither volume control or mute toggle\n // are displayed\n if (this.volumeControl.hasClass('vjs-hidden') && this.muteToggle.hasClass('vjs-hidden')) {\n this.addClass('vjs-hidden');\n }\n\n // if only mute toggle is visible we don't want\n // volume panel expanding when hovered or active\n if (this.volumeControl.hasClass('vjs-hidden') && !this.muteToggle.hasClass('vjs-hidden')) {\n this.addClass('vjs-mute-toggle-only');\n }\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n let orientationClass = 'vjs-volume-panel-horizontal';\n if (!this.options_.inline) {\n orientationClass = 'vjs-volume-panel-vertical';\n }\n return super.createEl('div', {\n className: `vjs-volume-panel vjs-control ${orientationClass}`\n });\n }\n\n /**\n * Dispose of the `volume-panel` and all child components.\n */\n dispose() {\n this.handleMouseOut();\n super.dispose();\n }\n\n /**\n * Handles `keyup` events on the `VolumeControl`, looking for ESC, which closes\n * the volume panel and sets focus on `MuteToggle`.\n *\n * @param {Event} event\n * The `keyup` event that caused this function to be called.\n *\n * @listens keyup\n */\n handleVolumeControlKeyUp(event) {\n if (keycode.isEventKey(event, 'Esc')) {\n this.muteToggle.focus();\n }\n }\n\n /**\n * This gets called when a `VolumePanel` gains hover via a `mouseover` event.\n * Turns on listening for `mouseover` event. When they happen it\n * calls `this.handleMouseOver`.\n *\n * @param {Event} event\n * The `mouseover` event that caused this function to be called.\n *\n * @listens mouseover\n */\n handleMouseOver(event) {\n this.addClass('vjs-hover');\n on(document, 'keyup', this.handleKeyPressHandler_);\n }\n\n /**\n * This gets called when a `VolumePanel` gains hover via a `mouseout` event.\n * Turns on listening for `mouseout` event. When they happen it\n * calls `this.handleMouseOut`.\n *\n * @param {Event} event\n * The `mouseout` event that caused this function to be called.\n *\n * @listens mouseout\n */\n handleMouseOut(event) {\n this.removeClass('vjs-hover');\n off(document, 'keyup', this.handleKeyPressHandler_);\n }\n\n /**\n * Handles `keyup` event on the document or `keydown` event on the `VolumePanel`,\n * looking for ESC, which hides the `VolumeControl`.\n *\n * @param {Event} event\n * The keypress that triggered this event.\n *\n * @listens keydown | keyup\n */\n handleKeyPress(event) {\n if (keycode.isEventKey(event, 'Esc')) {\n this.handleMouseOut();\n }\n }\n}\n\n/**\n * Default options for the `VolumeControl`\n *\n * @type {Object}\n * @private\n */\nVolumePanel.prototype.options_ = {\n children: ['muteToggle', 'volumeControl']\n};\nComponent$1.registerComponent('VolumePanel', VolumePanel);\n\n/**\n * Button to skip forward a configurable amount of time\n * through a video. Renders in the control bar.\n *\n * e.g. options: {controlBar: {skipButtons: forward: 5}}\n *\n * @extends Button\n */\nclass SkipForward extends Button {\n constructor(player, options) {\n super(player, options);\n this.validOptions = [5, 10, 30];\n this.skipTime = this.getSkipForwardTime();\n if (this.skipTime && this.validOptions.includes(this.skipTime)) {\n this.setIcon(`forward-${this.skipTime}`);\n this.controlText(this.localize('Skip forward {1} seconds', [this.skipTime]));\n this.show();\n } else {\n this.hide();\n }\n }\n getSkipForwardTime() {\n const playerOptions = this.options_.playerOptions;\n return playerOptions.controlBar && playerOptions.controlBar.skipButtons && playerOptions.controlBar.skipButtons.forward;\n }\n buildCSSClass() {\n return `vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`;\n }\n\n /**\n * On click, skips forward in the duration/seekable range by a configurable amount of seconds.\n * If the time left in the duration/seekable range is less than the configured 'skip forward' time,\n * skips to end of duration/seekable range.\n *\n * Handle a click on a `SkipForward` button\n *\n * @param {EventTarget~Event} event\n * The `click` event that caused this function\n * to be called\n */\n handleClick(event) {\n if (isNaN(this.player_.duration())) {\n return;\n }\n const currentVideoTime = this.player_.currentTime();\n const liveTracker = this.player_.liveTracker;\n const duration = liveTracker && liveTracker.isLive() ? liveTracker.seekableEnd() : this.player_.duration();\n let newTime;\n if (currentVideoTime + this.skipTime <= duration) {\n newTime = currentVideoTime + this.skipTime;\n } else {\n newTime = duration;\n }\n this.player_.currentTime(newTime);\n }\n\n /**\n * Update control text on languagechange\n */\n handleLanguagechange() {\n this.controlText(this.localize('Skip forward {1} seconds', [this.skipTime]));\n }\n}\nSkipForward.prototype.controlText_ = 'Skip Forward';\nComponent$1.registerComponent('SkipForward', SkipForward);\n\n/**\n * Button to skip backward a configurable amount of time\n * through a video. Renders in the control bar.\n *\n * * e.g. options: {controlBar: {skipButtons: backward: 5}}\n *\n * @extends Button\n */\nclass SkipBackward extends Button {\n constructor(player, options) {\n super(player, options);\n this.validOptions = [5, 10, 30];\n this.skipTime = this.getSkipBackwardTime();\n if (this.skipTime && this.validOptions.includes(this.skipTime)) {\n this.setIcon(`replay-${this.skipTime}`);\n this.controlText(this.localize('Skip backward {1} seconds', [this.skipTime]));\n this.show();\n } else {\n this.hide();\n }\n }\n getSkipBackwardTime() {\n const playerOptions = this.options_.playerOptions;\n return playerOptions.controlBar && playerOptions.controlBar.skipButtons && playerOptions.controlBar.skipButtons.backward;\n }\n buildCSSClass() {\n return `vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`;\n }\n\n /**\n * On click, skips backward in the video by a configurable amount of seconds.\n * If the current time in the video is less than the configured 'skip backward' time,\n * skips to beginning of video or seekable range.\n *\n * Handle a click on a `SkipBackward` button\n *\n * @param {EventTarget~Event} event\n * The `click` event that caused this function\n * to be called\n */\n handleClick(event) {\n const currentVideoTime = this.player_.currentTime();\n const liveTracker = this.player_.liveTracker;\n const seekableStart = liveTracker && liveTracker.isLive() && liveTracker.seekableStart();\n let newTime;\n if (seekableStart && currentVideoTime - this.skipTime <= seekableStart) {\n newTime = seekableStart;\n } else if (currentVideoTime >= this.skipTime) {\n newTime = currentVideoTime - this.skipTime;\n } else {\n newTime = 0;\n }\n this.player_.currentTime(newTime);\n }\n\n /**\n * Update control text on languagechange\n */\n handleLanguagechange() {\n this.controlText(this.localize('Skip backward {1} seconds', [this.skipTime]));\n }\n}\nSkipBackward.prototype.controlText_ = 'Skip Backward';\nComponent$1.registerComponent('SkipBackward', SkipBackward);\n\n/**\n * @file menu.js\n */\n\n/**\n * The Menu component is used to build popup menus, including subtitle and\n * captions selection menus.\n *\n * @extends Component\n */\nclass Menu extends Component$1 {\n /**\n * Create an instance of this class.\n *\n * @param { import('../player').default } player\n * the player that this component should attach to\n *\n * @param {Object} [options]\n * Object of option names and values\n *\n */\n constructor(player, options) {\n super(player, options);\n if (options) {\n this.menuButton_ = options.menuButton;\n }\n this.focusedChild_ = -1;\n this.on('keydown', e => this.handleKeyDown(e));\n\n // All the menu item instances share the same blur handler provided by the menu container.\n this.boundHandleBlur_ = e => this.handleBlur(e);\n this.boundHandleTapClick_ = e => this.handleTapClick(e);\n }\n\n /**\n * Add event listeners to the {@link MenuItem}.\n *\n * @param {Object} component\n * The instance of the `MenuItem` to add listeners to.\n *\n */\n addEventListenerForItem(component) {\n if (!(component instanceof Component$1)) {\n return;\n }\n this.on(component, 'blur', this.boundHandleBlur_);\n this.on(component, ['tap', 'click'], this.boundHandleTapClick_);\n }\n\n /**\n * Remove event listeners from the {@link MenuItem}.\n *\n * @param {Object} component\n * The instance of the `MenuItem` to remove listeners.\n *\n */\n removeEventListenerForItem(component) {\n if (!(component instanceof Component$1)) {\n return;\n }\n this.off(component, 'blur', this.boundHandleBlur_);\n this.off(component, ['tap', 'click'], this.boundHandleTapClick_);\n }\n\n /**\n * This method will be called indirectly when the component has been added\n * before the component adds to the new menu instance by `addItem`.\n * In this case, the original menu instance will remove the component\n * by calling `removeChild`.\n *\n * @param {Object} component\n * The instance of the `MenuItem`\n */\n removeChild(component) {\n if (typeof component === 'string') {\n component = this.getChild(component);\n }\n this.removeEventListenerForItem(component);\n super.removeChild(component);\n }\n\n /**\n * Add a {@link MenuItem} to the menu.\n *\n * @param {Object|string} component\n * The name or instance of the `MenuItem` to add.\n *\n */\n addItem(component) {\n const childComponent = this.addChild(component);\n if (childComponent) {\n this.addEventListenerForItem(childComponent);\n }\n }\n\n /**\n * Create the `Menu`s DOM element.\n *\n * @return {Element}\n * the element that was created\n */\n createEl() {\n const contentElType = this.options_.contentElType || 'ul';\n this.contentEl_ = createEl(contentElType, {\n className: 'vjs-menu-content'\n });\n this.contentEl_.setAttribute('role', 'menu');\n const el = super.createEl('div', {\n append: this.contentEl_,\n className: 'vjs-menu'\n });\n el.appendChild(this.contentEl_);\n\n // Prevent clicks from bubbling up. Needed for Menu Buttons,\n // where a click on the parent is significant\n on(el, 'click', function (event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n return el;\n }\n dispose() {\n this.contentEl_ = null;\n this.boundHandleBlur_ = null;\n this.boundHandleTapClick_ = null;\n super.dispose();\n }\n\n /**\n * Called when a `MenuItem` loses focus.\n *\n * @param {Event} event\n * The `blur` event that caused this function to be called.\n *\n * @listens blur\n */\n handleBlur(event) {\n const relatedTarget = event.relatedTarget || document.activeElement;\n\n // Close menu popup when a user clicks outside the menu\n if (!this.children().some(element => {\n return element.el() === relatedTarget;\n })) {\n const btn = this.menuButton_;\n if (btn && btn.buttonPressed_ && relatedTarget !== btn.el().firstChild) {\n btn.unpressButton();\n }\n }\n }\n\n /**\n * Called when a `MenuItem` gets clicked or tapped.\n *\n * @param {Event} event\n * The `click` or `tap` event that caused this function to be called.\n *\n * @listens click,tap\n */\n handleTapClick(event) {\n // Unpress the associated MenuButton, and move focus back to it\n if (this.menuButton_) {\n this.menuButton_.unpressButton();\n const childComponents = this.children();\n if (!Array.isArray(childComponents)) {\n return;\n }\n const foundComponent = childComponents.filter(component => component.el() === event.target)[0];\n if (!foundComponent) {\n return;\n }\n\n // don't focus menu button if item is a caption settings item\n // because focus will move elsewhere\n if (foundComponent.name() !== 'CaptionSettingsMenuItem') {\n this.menuButton_.focus();\n }\n }\n }\n\n /**\n * Handle a `keydown` event on this menu. This listener is added in the constructor.\n *\n * @param {KeyboardEvent} event\n * A `keydown` event that happened on the menu.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Left and Down Arrows\n if (keycode.isEventKey(event, 'Left') || keycode.isEventKey(event, 'Down')) {\n event.preventDefault();\n event.stopPropagation();\n this.stepForward();\n\n // Up and Right Arrows\n } else if (keycode.isEventKey(event, 'Right') || keycode.isEventKey(event, 'Up')) {\n event.preventDefault();\n event.stopPropagation();\n this.stepBack();\n }\n }\n\n /**\n * Move to next (lower) menu item for keyboard users.\n */\n stepForward() {\n let stepChild = 0;\n if (this.focusedChild_ !== undefined) {\n stepChild = this.focusedChild_ + 1;\n }\n this.focus(stepChild);\n }\n\n /**\n * Move to previous (higher) menu item for keyboard users.\n */\n stepBack() {\n let stepChild = 0;\n if (this.focusedChild_ !== undefined) {\n stepChild = this.focusedChild_ - 1;\n }\n this.focus(stepChild);\n }\n\n /**\n * Set focus on a {@link MenuItem} in the `Menu`.\n *\n * @param {Object|string} [item=0]\n * Index of child item set focus on.\n */\n focus() {\n let item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n const children = this.children().slice();\n const haveTitle = children.length && children[0].hasClass('vjs-menu-title');\n if (haveTitle) {\n children.shift();\n }\n if (children.length > 0) {\n if (item < 0) {\n item = 0;\n } else if (item >= children.length) {\n item = children.length - 1;\n }\n this.focusedChild_ = item;\n children[item].el_.focus();\n }\n }\n}\nComponent$1.registerComponent('Menu', Menu);\n\n/**\n * @file menu-button.js\n */\n\n/**\n * A `MenuButton` class for any popup {@link Menu}.\n *\n * @extends Component\n */\nclass MenuButton extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n super(player, options);\n this.menuButton_ = new Button(player, options);\n this.menuButton_.controlText(this.controlText_);\n this.menuButton_.el_.setAttribute('aria-haspopup', 'true');\n\n // Add buildCSSClass values to the button, not the wrapper\n const buttonClass = Button.prototype.buildCSSClass();\n this.menuButton_.el_.className = this.buildCSSClass() + ' ' + buttonClass;\n this.menuButton_.removeClass('vjs-control');\n this.addChild(this.menuButton_);\n this.update();\n this.enabled_ = true;\n const handleClick = e => this.handleClick(e);\n this.handleMenuKeyUp_ = e => this.handleMenuKeyUp(e);\n this.on(this.menuButton_, 'tap', handleClick);\n this.on(this.menuButton_, 'click', handleClick);\n this.on(this.menuButton_, 'keydown', e => this.handleKeyDown(e));\n this.on(this.menuButton_, 'mouseenter', () => {\n this.addClass('vjs-hover');\n this.menu.show();\n on(document, 'keyup', this.handleMenuKeyUp_);\n });\n this.on('mouseleave', e => this.handleMouseLeave(e));\n this.on('keydown', e => this.handleSubmenuKeyDown(e));\n }\n\n /**\n * Update the menu based on the current state of its items.\n */\n update() {\n const menu = this.createMenu();\n if (this.menu) {\n this.menu.dispose();\n this.removeChild(this.menu);\n }\n this.menu = menu;\n this.addChild(menu);\n\n /**\n * Track the state of the menu button\n *\n * @type {Boolean}\n * @private\n */\n this.buttonPressed_ = false;\n this.menuButton_.el_.setAttribute('aria-expanded', 'false');\n if (this.items && this.items.length <= this.hideThreshold_) {\n this.hide();\n this.menu.contentEl_.removeAttribute('role');\n } else {\n this.show();\n this.menu.contentEl_.setAttribute('role', 'menu');\n }\n }\n\n /**\n * Create the menu and add all items to it.\n *\n * @return {Menu}\n * The constructed menu\n */\n createMenu() {\n const menu = new Menu(this.player_, {\n menuButton: this\n });\n\n /**\n * Hide the menu if the number of items is less than or equal to this threshold. This defaults\n * to 0 and whenever we add items which can be hidden to the menu we'll increment it. We list\n * it here because every time we run `createMenu` we need to reset the value.\n *\n * @protected\n * @type {Number}\n */\n this.hideThreshold_ = 0;\n\n // Add a title list item to the top\n if (this.options_.title) {\n const titleEl = createEl('li', {\n className: 'vjs-menu-title',\n textContent: toTitleCase$1(this.options_.title),\n tabIndex: -1\n });\n const titleComponent = new Component$1(this.player_, {\n el: titleEl\n });\n menu.addItem(titleComponent);\n }\n this.items = this.createItems();\n if (this.items) {\n // Add menu items to the menu\n for (let i = 0; i < this.items.length; i++) {\n menu.addItem(this.items[i]);\n }\n }\n return menu;\n }\n\n /**\n * Create the list of menu items. Specific to each subclass.\n *\n * @abstract\n */\n createItems() {}\n\n /**\n * Create the `MenuButtons`s DOM element.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl() {\n return super.createEl('div', {\n className: this.buildWrapperCSSClass()\n }, {});\n }\n\n /**\n * Overwrites the `setIcon` method from `Component`.\n * In this case, we want the icon to be appended to the menuButton.\n *\n * @param {string} name\n * The icon name to be added.\n */\n setIcon(name) {\n super.setIcon(name, this.menuButton_.el_);\n }\n\n /**\n * Allow sub components to stack CSS class names for the wrapper element\n *\n * @return {string}\n * The constructed wrapper DOM `className`\n */\n buildWrapperCSSClass() {\n let menuButtonClass = 'vjs-menu-button';\n\n // If the inline option is passed, we want to use different styles altogether.\n if (this.options_.inline === true) {\n menuButtonClass += '-inline';\n } else {\n menuButtonClass += '-popup';\n }\n\n // TODO: Fix the CSS so that this isn't necessary\n const buttonClass = Button.prototype.buildCSSClass();\n return `vjs-menu-button ${menuButtonClass} ${buttonClass} ${super.buildCSSClass()}`;\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n let menuButtonClass = 'vjs-menu-button';\n\n // If the inline option is passed, we want to use different styles altogether.\n if (this.options_.inline === true) {\n menuButtonClass += '-inline';\n } else {\n menuButtonClass += '-popup';\n }\n return `vjs-menu-button ${menuButtonClass} ${super.buildCSSClass()}`;\n }\n\n /**\n * Get or set the localized control text that will be used for accessibility.\n *\n * > NOTE: This will come from the internal `menuButton_` element.\n *\n * @param {string} [text]\n * Control text for element.\n *\n * @param {Element} [el=this.menuButton_.el()]\n * Element to set the title on.\n *\n * @return {string}\n * - The control text when getting\n */\n controlText(text) {\n let el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.menuButton_.el();\n return this.menuButton_.controlText(text, el);\n }\n\n /**\n * Dispose of the `menu-button` and all child components.\n */\n dispose() {\n this.handleMouseLeave();\n super.dispose();\n }\n\n /**\n * Handle a click on a `MenuButton`.\n * See {@link ClickableComponent#handleClick} for instances where this is called.\n *\n * @param {Event} event\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n if (this.buttonPressed_) {\n this.unpressButton();\n } else {\n this.pressButton();\n }\n }\n\n /**\n * Handle `mouseleave` for `MenuButton`.\n *\n * @param {Event} event\n * The `mouseleave` event that caused this function to be called.\n *\n * @listens mouseleave\n */\n handleMouseLeave(event) {\n this.removeClass('vjs-hover');\n off(document, 'keyup', this.handleMenuKeyUp_);\n }\n\n /**\n * Set the focus to the actual button, not to this element\n */\n focus() {\n this.menuButton_.focus();\n }\n\n /**\n * Remove the focus from the actual button, not this element\n */\n blur() {\n this.menuButton_.blur();\n }\n\n /**\n * Handle tab, escape, down arrow, and up arrow keys for `MenuButton`. See\n * {@link ClickableComponent#handleKeyDown} for instances where this is called.\n *\n * @param {Event} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n // Escape or Tab unpress the 'button'\n if (keycode.isEventKey(event, 'Esc') || keycode.isEventKey(event, 'Tab')) {\n if (this.buttonPressed_) {\n this.unpressButton();\n }\n\n // Don't preventDefault for Tab key - we still want to lose focus\n if (!keycode.isEventKey(event, 'Tab')) {\n event.preventDefault();\n // Set focus back to the menu button's button\n this.menuButton_.focus();\n }\n // Up Arrow or Down Arrow also 'press' the button to open the menu\n } else if (keycode.isEventKey(event, 'Up') || keycode.isEventKey(event, 'Down')) {\n if (!this.buttonPressed_) {\n event.preventDefault();\n this.pressButton();\n }\n }\n }\n\n /**\n * Handle a `keyup` event on a `MenuButton`. The listener for this is added in\n * the constructor.\n *\n * @param {Event} event\n * Key press event\n *\n * @listens keyup\n */\n handleMenuKeyUp(event) {\n // Escape hides popup menu\n if (keycode.isEventKey(event, 'Esc') || keycode.isEventKey(event, 'Tab')) {\n this.removeClass('vjs-hover');\n }\n }\n\n /**\n * This method name now delegates to `handleSubmenuKeyDown`. This means\n * anyone calling `handleSubmenuKeyPress` will not see their method calls\n * stop working.\n *\n * @param {Event} event\n * The event that caused this function to be called.\n */\n handleSubmenuKeyPress(event) {\n this.handleSubmenuKeyDown(event);\n }\n\n /**\n * Handle a `keydown` event on a sub-menu. The listener for this is added in\n * the constructor.\n *\n * @param {Event} event\n * Key press event\n *\n * @listens keydown\n */\n handleSubmenuKeyDown(event) {\n // Escape or Tab unpress the 'button'\n if (keycode.isEventKey(event, 'Esc') || keycode.isEventKey(event, 'Tab')) {\n if (this.buttonPressed_) {\n this.unpressButton();\n }\n // Don't preventDefault for Tab key - we still want to lose focus\n if (!keycode.isEventKey(event, 'Tab')) {\n event.preventDefault();\n // Set focus back to the menu button's button\n this.menuButton_.focus();\n }\n }\n }\n\n /**\n * Put the current `MenuButton` into a pressed state.\n */\n pressButton() {\n if (this.enabled_) {\n this.buttonPressed_ = true;\n this.menu.show();\n this.menu.lockShowing();\n this.menuButton_.el_.setAttribute('aria-expanded', 'true');\n\n // set the focus into the submenu, except on iOS where it is resulting in\n // undesired scrolling behavior when the player is in an iframe\n if (IS_IOS && isInFrame()) {\n // Return early so that the menu isn't focused\n return;\n }\n this.menu.focus();\n }\n }\n\n /**\n * Take the current `MenuButton` out of a pressed state.\n */\n unpressButton() {\n if (this.enabled_) {\n this.buttonPressed_ = false;\n this.menu.unlockShowing();\n this.menu.hide();\n this.menuButton_.el_.setAttribute('aria-expanded', 'false');\n }\n }\n\n /**\n * Disable the `MenuButton`. Don't allow it to be clicked.\n */\n disable() {\n this.unpressButton();\n this.enabled_ = false;\n this.addClass('vjs-disabled');\n this.menuButton_.disable();\n }\n\n /**\n * Enable the `MenuButton`. Allow it to be clicked.\n */\n enable() {\n this.enabled_ = true;\n this.removeClass('vjs-disabled');\n this.menuButton_.enable();\n }\n}\nComponent$1.registerComponent('MenuButton', MenuButton);\n\n/**\n * @file track-button.js\n */\n\n/**\n * The base class for buttons that toggle specific track types (e.g. subtitles).\n *\n * @extends MenuButton\n */\nclass TrackButton extends MenuButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n const tracks = options.tracks;\n super(player, options);\n if (this.items.length <= 1) {\n this.hide();\n }\n if (!tracks) {\n return;\n }\n const updateHandler = bind_(this, this.update);\n tracks.addEventListener('removetrack', updateHandler);\n tracks.addEventListener('addtrack', updateHandler);\n tracks.addEventListener('labelchange', updateHandler);\n this.player_.on('ready', updateHandler);\n this.player_.on('dispose', function () {\n tracks.removeEventListener('removetrack', updateHandler);\n tracks.removeEventListener('addtrack', updateHandler);\n tracks.removeEventListener('labelchange', updateHandler);\n });\n }\n}\nComponent$1.registerComponent('TrackButton', TrackButton);\n\n/**\n * @file menu-keys.js\n */\n\n/**\n * All keys used for operation of a menu (`MenuButton`, `Menu`, and `MenuItem`)\n * Note that 'Enter' and 'Space' are not included here (otherwise they would\n * prevent the `MenuButton` and `MenuItem` from being keyboard-clickable)\n *\n * @typedef MenuKeys\n * @array\n */\nconst MenuKeys = ['Tab', 'Esc', 'Up', 'Down', 'Right', 'Left'];\n\n/**\n * @file menu-item.js\n */\n\n/**\n * The component for a menu item. ``\n *\n * @extends ClickableComponent\n */\nclass MenuItem extends ClickableComponent {\n /**\n * Creates an instance of the this class.\n *\n * @param { import('../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n *\n */\n constructor(player, options) {\n super(player, options);\n this.selectable = options.selectable;\n this.isSelected_ = options.selected || false;\n this.multiSelectable = options.multiSelectable;\n this.selected(this.isSelected_);\n if (this.selectable) {\n if (this.multiSelectable) {\n this.el_.setAttribute('role', 'menuitemcheckbox');\n } else {\n this.el_.setAttribute('role', 'menuitemradio');\n }\n } else {\n this.el_.setAttribute('role', 'menuitem');\n }\n }\n\n /**\n * Create the `MenuItem's DOM element\n *\n * @param {string} [type=li]\n * Element's node type, not actually used, always set to `li`.\n *\n * @param {Object} [props={}]\n * An object of properties that should be set on the element\n *\n * @param {Object} [attrs={}]\n * An object of attributes that should be set on the element\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl(type, props, attrs) {\n // The control is textual, not just an icon\n this.nonIconControl = true;\n const el = super.createEl('li', Object.assign({\n className: 'vjs-menu-item',\n tabIndex: -1\n }, props), attrs);\n\n // swap icon with menu item text.\n const menuItemEl = createEl('span', {\n className: 'vjs-menu-item-text',\n textContent: this.localize(this.options_.label)\n });\n\n // If using SVG icons, the element with vjs-icon-placeholder will be added separately.\n if (this.player_.options_.experimentalSvgIcons) {\n el.appendChild(menuItemEl);\n } else {\n el.replaceChild(menuItemEl, el.querySelector('.vjs-icon-placeholder'));\n }\n return el;\n }\n\n /**\n * Ignore keys which are used by the menu, but pass any other ones up. See\n * {@link ClickableComponent#handleKeyDown} for instances where this is called.\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n if (!MenuKeys.some(key => keycode.isEventKey(event, key))) {\n // Pass keydown handling up for unused keys\n super.handleKeyDown(event);\n }\n }\n\n /**\n * Any click on a `MenuItem` puts it into the selected state.\n * See {@link ClickableComponent#handleClick} for instances where this is called.\n *\n * @param {Event} event\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n this.selected(true);\n }\n\n /**\n * Set the state for this menu item as selected or not.\n *\n * @param {boolean} selected\n * if the menu item is selected or not\n */\n selected(selected) {\n if (this.selectable) {\n if (selected) {\n this.addClass('vjs-selected');\n this.el_.setAttribute('aria-checked', 'true');\n // aria-checked isn't fully supported by browsers/screen readers,\n // so indicate selected state to screen reader in the control text.\n this.controlText(', selected');\n this.isSelected_ = true;\n } else {\n this.removeClass('vjs-selected');\n this.el_.setAttribute('aria-checked', 'false');\n // Indicate un-selected state to screen reader\n this.controlText('');\n this.isSelected_ = false;\n }\n }\n }\n}\nComponent$1.registerComponent('MenuItem', MenuItem);\n\n/**\n * @file text-track-menu-item.js\n */\n\n/**\n * The specific menu item type for selecting a language within a text track kind\n *\n * @extends MenuItem\n */\nclass TextTrackMenuItem extends MenuItem {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n var _this3;\n const track = options.track;\n const tracks = player.textTracks();\n\n // Modify options for parent MenuItem class's init.\n options.label = track.label || track.language || 'Unknown';\n options.selected = track.mode === 'showing';\n super(player, options);\n _this3 = this;\n this.track = track;\n // Determine the relevant kind(s) of tracks for this component and filter\n // out empty kinds.\n this.kinds = (options.kinds || [options.kind || this.track.kind]).filter(Boolean);\n const changeHandler = function () {\n for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {\n args[_key16] = arguments[_key16];\n }\n _this3.handleTracksChange.apply(_this3, args);\n };\n const selectedLanguageChangeHandler = function () {\n for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {\n args[_key17] = arguments[_key17];\n }\n _this3.handleSelectedLanguageChange.apply(_this3, args);\n };\n player.on(['loadstart', 'texttrackchange'], changeHandler);\n tracks.addEventListener('change', changeHandler);\n tracks.addEventListener('selectedlanguagechange', selectedLanguageChangeHandler);\n this.on('dispose', function () {\n player.off(['loadstart', 'texttrackchange'], changeHandler);\n tracks.removeEventListener('change', changeHandler);\n tracks.removeEventListener('selectedlanguagechange', selectedLanguageChangeHandler);\n });\n\n // iOS7 doesn't dispatch change events to TextTrackLists when an\n // associated track's mode changes. Without something like\n // Object.observe() (also not present on iOS7), it's not\n // possible to detect changes to the mode attribute and polyfill\n // the change event. As a poor substitute, we manually dispatch\n // change events whenever the controls modify the mode.\n if (tracks.onchange === undefined) {\n let event;\n this.on(['tap', 'click'], function () {\n if (typeof window$1.Event !== 'object') {\n // Android 2.3 throws an Illegal Constructor error for window.Event\n try {\n event = new window$1.Event('change');\n } catch (err) {\n // continue regardless of error\n }\n }\n if (!event) {\n event = document.createEvent('Event');\n event.initEvent('change', true, true);\n }\n tracks.dispatchEvent(event);\n });\n }\n\n // set the default state based on current tracks\n this.handleTracksChange();\n }\n\n /**\n * This gets called when an `TextTrackMenuItem` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} event\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n const referenceTrack = this.track;\n const tracks = this.player_.textTracks();\n super.handleClick(event);\n if (!tracks) {\n return;\n }\n for (let i = 0; i < tracks.length; i++) {\n const track = tracks[i];\n\n // If the track from the text tracks list is not of the right kind,\n // skip it. We do not want to affect tracks of incompatible kind(s).\n if (this.kinds.indexOf(track.kind) === -1) {\n continue;\n }\n\n // If this text track is the component's track and it is not showing,\n // set it to showing.\n if (track === referenceTrack) {\n if (track.mode !== 'showing') {\n track.mode = 'showing';\n }\n\n // If this text track is not the component's track and it is not\n // disabled, set it to disabled.\n } else if (track.mode !== 'disabled') {\n track.mode = 'disabled';\n }\n }\n }\n\n /**\n * Handle text track list change\n *\n * @param {Event} event\n * The `change` event that caused this function to be called.\n *\n * @listens TextTrackList#change\n */\n handleTracksChange(event) {\n const shouldBeSelected = this.track.mode === 'showing';\n\n // Prevent redundant selected() calls because they may cause\n // screen readers to read the appended control text unnecessarily\n if (shouldBeSelected !== this.isSelected_) {\n this.selected(shouldBeSelected);\n }\n }\n handleSelectedLanguageChange(event) {\n if (this.track.mode === 'showing') {\n const selectedLanguage = this.player_.cache_.selectedLanguage;\n\n // Don't replace the kind of track across the same language\n if (selectedLanguage && selectedLanguage.enabled && selectedLanguage.language === this.track.language && selectedLanguage.kind !== this.track.kind) {\n return;\n }\n this.player_.cache_.selectedLanguage = {\n enabled: true,\n language: this.track.language,\n kind: this.track.kind\n };\n }\n }\n dispose() {\n // remove reference to track object on dispose\n this.track = null;\n super.dispose();\n }\n}\nComponent$1.registerComponent('TextTrackMenuItem', TextTrackMenuItem);\n\n/**\n * @file off-text-track-menu-item.js\n */\n\n/**\n * A special menu item for turning off a specific type of text track\n *\n * @extends TextTrackMenuItem\n */\nclass OffTextTrackMenuItem extends TextTrackMenuItem {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n // Create pseudo track info\n // Requires options['kind']\n options.track = {\n player,\n // it is no longer necessary to store `kind` or `kinds` on the track itself\n // since they are now stored in the `kinds` property of all instances of\n // TextTrackMenuItem, but this will remain for backwards compatibility\n kind: options.kind,\n kinds: options.kinds,\n default: false,\n mode: 'disabled'\n };\n if (!options.kinds) {\n options.kinds = [options.kind];\n }\n if (options.label) {\n options.track.label = options.label;\n } else {\n options.track.label = options.kinds.join(' and ') + ' off';\n }\n\n // MenuItem is selectable\n options.selectable = true;\n // MenuItem is NOT multiSelectable (i.e. only one can be marked \"selected\" at a time)\n options.multiSelectable = false;\n super(player, options);\n }\n\n /**\n * Handle text track change\n *\n * @param {Event} event\n * The event that caused this function to run\n */\n handleTracksChange(event) {\n const tracks = this.player().textTracks();\n let shouldBeSelected = true;\n for (let i = 0, l = tracks.length; i < l; i++) {\n const track = tracks[i];\n if (this.options_.kinds.indexOf(track.kind) > -1 && track.mode === 'showing') {\n shouldBeSelected = false;\n break;\n }\n }\n\n // Prevent redundant selected() calls because they may cause\n // screen readers to read the appended control text unnecessarily\n if (shouldBeSelected !== this.isSelected_) {\n this.selected(shouldBeSelected);\n }\n }\n handleSelectedLanguageChange(event) {\n const tracks = this.player().textTracks();\n let allHidden = true;\n for (let i = 0, l = tracks.length; i < l; i++) {\n const track = tracks[i];\n if (['captions', 'descriptions', 'subtitles'].indexOf(track.kind) > -1 && track.mode === 'showing') {\n allHidden = false;\n break;\n }\n }\n if (allHidden) {\n this.player_.cache_.selectedLanguage = {\n enabled: false\n };\n }\n }\n\n /**\n * Update control text and label on languagechange\n */\n handleLanguagechange() {\n this.$('.vjs-menu-item-text').textContent = this.player_.localize(this.options_.label);\n super.handleLanguagechange();\n }\n}\nComponent$1.registerComponent('OffTextTrackMenuItem', OffTextTrackMenuItem);\n\n/**\n * @file text-track-button.js\n */\n\n/**\n * The base class for buttons that toggle specific text track types (e.g. subtitles)\n *\n * @extends MenuButton\n */\nclass TextTrackButton extends TrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n options.tracks = player.textTracks();\n super(player, options);\n }\n\n /**\n * Create a menu item for each text track\n *\n * @param {TextTrackMenuItem[]} [items=[]]\n * Existing array of items to use during creation\n *\n * @return {TextTrackMenuItem[]}\n * Array of menu items that were created\n */\n createItems() {\n let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n let TrackMenuItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TextTrackMenuItem;\n // Label is an override for the [track] off label\n // USed to localise captions/subtitles\n let label;\n if (this.label_) {\n label = `${this.label_} off`;\n }\n // Add an OFF menu item to turn all tracks off\n items.push(new OffTextTrackMenuItem(this.player_, {\n kinds: this.kinds_,\n kind: this.kind_,\n label\n }));\n this.hideThreshold_ += 1;\n const tracks = this.player_.textTracks();\n if (!Array.isArray(this.kinds_)) {\n this.kinds_ = [this.kind_];\n }\n for (let i = 0; i < tracks.length; i++) {\n const track = tracks[i];\n\n // only add tracks that are of an appropriate kind and have a label\n if (this.kinds_.indexOf(track.kind) > -1) {\n const item = new TrackMenuItem(this.player_, {\n track,\n kinds: this.kinds_,\n kind: this.kind_,\n // MenuItem is selectable\n selectable: true,\n // MenuItem is NOT multiSelectable (i.e. only one can be marked \"selected\" at a time)\n multiSelectable: false\n });\n item.addClass(`vjs-${track.kind}-menu-item`);\n items.push(item);\n }\n }\n return items;\n }\n}\nComponent$1.registerComponent('TextTrackButton', TextTrackButton);\n\n/**\n * @file chapters-track-menu-item.js\n */\n\n/**\n * The chapter track menu item\n *\n * @extends MenuItem\n */\nclass ChaptersTrackMenuItem extends MenuItem {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n const track = options.track;\n const cue = options.cue;\n const currentTime = player.currentTime();\n\n // Modify options for parent MenuItem class's init.\n options.selectable = true;\n options.multiSelectable = false;\n options.label = cue.text;\n options.selected = cue.startTime <= currentTime && currentTime < cue.endTime;\n super(player, options);\n this.track = track;\n this.cue = cue;\n }\n\n /**\n * This gets called when an `ChaptersTrackMenuItem` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n super.handleClick();\n this.player_.currentTime(this.cue.startTime);\n }\n}\nComponent$1.registerComponent('ChaptersTrackMenuItem', ChaptersTrackMenuItem);\n\n/**\n * @file chapters-button.js\n */\n\n/**\n * The button component for toggling and selecting chapters\n * Chapters act much differently than other text tracks\n * Cues are navigation vs. other tracks of alternative languages\n *\n * @extends TextTrackButton\n */\nclass ChaptersButton extends TextTrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function to call when this function is ready.\n */\n constructor(player, options, ready) {\n super(player, options, ready);\n this.setIcon('chapters');\n this.selectCurrentItem_ = () => {\n this.items.forEach(item => {\n item.selected(this.track_.activeCues[0] === item.cue);\n });\n };\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-chapters-button ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-chapters-button ${super.buildWrapperCSSClass()}`;\n }\n\n /**\n * Update the menu based on the current state of its items.\n *\n * @param {Event} [event]\n * An event that triggered this function to run.\n *\n * @listens TextTrackList#addtrack\n * @listens TextTrackList#removetrack\n * @listens TextTrackList#change\n */\n update(event) {\n if (event && event.track && event.track.kind !== 'chapters') {\n return;\n }\n const track = this.findChaptersTrack();\n if (track !== this.track_) {\n this.setTrack(track);\n super.update();\n } else if (!this.items || track && track.cues && track.cues.length !== this.items.length) {\n // Update the menu initially or if the number of cues has changed since set\n super.update();\n }\n }\n\n /**\n * Set the currently selected track for the chapters button.\n *\n * @param {TextTrack} track\n * The new track to select. Nothing will change if this is the currently selected\n * track.\n */\n setTrack(track) {\n if (this.track_ === track) {\n return;\n }\n if (!this.updateHandler_) {\n this.updateHandler_ = this.update.bind(this);\n }\n\n // here this.track_ refers to the old track instance\n if (this.track_) {\n const remoteTextTrackEl = this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);\n if (remoteTextTrackEl) {\n remoteTextTrackEl.removeEventListener('load', this.updateHandler_);\n }\n this.track_.removeEventListener('cuechange', this.selectCurrentItem_);\n this.track_ = null;\n }\n this.track_ = track;\n\n // here this.track_ refers to the new track instance\n if (this.track_) {\n this.track_.mode = 'hidden';\n const remoteTextTrackEl = this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);\n if (remoteTextTrackEl) {\n remoteTextTrackEl.addEventListener('load', this.updateHandler_);\n }\n this.track_.addEventListener('cuechange', this.selectCurrentItem_);\n }\n }\n\n /**\n * Find the track object that is currently in use by this ChaptersButton\n *\n * @return {TextTrack|undefined}\n * The current track or undefined if none was found.\n */\n findChaptersTrack() {\n const tracks = this.player_.textTracks() || [];\n for (let i = tracks.length - 1; i >= 0; i--) {\n // We will always choose the last track as our chaptersTrack\n const track = tracks[i];\n if (track.kind === this.kind_) {\n return track;\n }\n }\n }\n\n /**\n * Get the caption for the ChaptersButton based on the track label. This will also\n * use the current tracks localized kind as a fallback if a label does not exist.\n *\n * @return {string}\n * The tracks current label or the localized track kind.\n */\n getMenuCaption() {\n if (this.track_ && this.track_.label) {\n return this.track_.label;\n }\n return this.localize(toTitleCase$1(this.kind_));\n }\n\n /**\n * Create menu from chapter track\n *\n * @return { import('../../menu/menu').default }\n * New menu for the chapter buttons\n */\n createMenu() {\n this.options_.title = this.getMenuCaption();\n return super.createMenu();\n }\n\n /**\n * Create a menu item for each text track\n *\n * @return { import('./text-track-menu-item').default[] }\n * Array of menu items\n */\n createItems() {\n const items = [];\n if (!this.track_) {\n return items;\n }\n const cues = this.track_.cues;\n if (!cues) {\n return items;\n }\n for (let i = 0, l = cues.length; i < l; i++) {\n const cue = cues[i];\n const mi = new ChaptersTrackMenuItem(this.player_, {\n track: this.track_,\n cue\n });\n items.push(mi);\n }\n return items;\n }\n}\n\n/**\n * `kind` of TextTrack to look for to associate it with this menu.\n *\n * @type {string}\n * @private\n */\nChaptersButton.prototype.kind_ = 'chapters';\n\n/**\n * The text that should display over the `ChaptersButton`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nChaptersButton.prototype.controlText_ = 'Chapters';\nComponent$1.registerComponent('ChaptersButton', ChaptersButton);\n\n/**\n * @file descriptions-button.js\n */\n\n/**\n * The button component for toggling and selecting descriptions\n *\n * @extends TextTrackButton\n */\nclass DescriptionsButton extends TextTrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function to call when this component is ready.\n */\n constructor(player, options, ready) {\n super(player, options, ready);\n this.setIcon('audio-description');\n const tracks = player.textTracks();\n const changeHandler = bind_(this, this.handleTracksChange);\n tracks.addEventListener('change', changeHandler);\n this.on('dispose', function () {\n tracks.removeEventListener('change', changeHandler);\n });\n }\n\n /**\n * Handle text track change\n *\n * @param {Event} event\n * The event that caused this function to run\n *\n * @listens TextTrackList#change\n */\n handleTracksChange(event) {\n const tracks = this.player().textTracks();\n let disabled = false;\n\n // Check whether a track of a different kind is showing\n for (let i = 0, l = tracks.length; i < l; i++) {\n const track = tracks[i];\n if (track.kind !== this.kind_ && track.mode === 'showing') {\n disabled = true;\n break;\n }\n }\n\n // If another track is showing, disable this menu button\n if (disabled) {\n this.disable();\n } else {\n this.enable();\n }\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-descriptions-button ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-descriptions-button ${super.buildWrapperCSSClass()}`;\n }\n}\n\n/**\n * `kind` of TextTrack to look for to associate it with this menu.\n *\n * @type {string}\n * @private\n */\nDescriptionsButton.prototype.kind_ = 'descriptions';\n\n/**\n * The text that should display over the `DescriptionsButton`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nDescriptionsButton.prototype.controlText_ = 'Descriptions';\nComponent$1.registerComponent('DescriptionsButton', DescriptionsButton);\n\n/**\n * @file subtitles-button.js\n */\n\n/**\n * The button component for toggling and selecting subtitles\n *\n * @extends TextTrackButton\n */\nclass SubtitlesButton extends TextTrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function to call when this component is ready.\n */\n constructor(player, options, ready) {\n super(player, options, ready);\n this.setIcon('subtitles');\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-subtitles-button ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-subtitles-button ${super.buildWrapperCSSClass()}`;\n }\n}\n\n/**\n * `kind` of TextTrack to look for to associate it with this menu.\n *\n * @type {string}\n * @private\n */\nSubtitlesButton.prototype.kind_ = 'subtitles';\n\n/**\n * The text that should display over the `SubtitlesButton`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nSubtitlesButton.prototype.controlText_ = 'Subtitles';\nComponent$1.registerComponent('SubtitlesButton', SubtitlesButton);\n\n/**\n * @file caption-settings-menu-item.js\n */\n\n/**\n * The menu item for caption track settings menu\n *\n * @extends TextTrackMenuItem\n */\nclass CaptionSettingsMenuItem extends TextTrackMenuItem {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n options.track = {\n player,\n kind: options.kind,\n label: options.kind + ' settings',\n selectable: false,\n default: false,\n mode: 'disabled'\n };\n\n // CaptionSettingsMenuItem has no concept of 'selected'\n options.selectable = false;\n options.name = 'CaptionSettingsMenuItem';\n super(player, options);\n this.addClass('vjs-texttrack-settings');\n this.controlText(', opens ' + options.kind + ' settings dialog');\n }\n\n /**\n * This gets called when an `CaptionSettingsMenuItem` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n this.player().getChild('textTrackSettings').open();\n }\n\n /**\n * Update control text and label on languagechange\n */\n handleLanguagechange() {\n this.$('.vjs-menu-item-text').textContent = this.player_.localize(this.options_.kind + ' settings');\n super.handleLanguagechange();\n }\n}\nComponent$1.registerComponent('CaptionSettingsMenuItem', CaptionSettingsMenuItem);\n\n/**\n * @file captions-button.js\n */\n\n/**\n * The button component for toggling and selecting captions\n *\n * @extends TextTrackButton\n */\nclass CaptionsButton extends TextTrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function to call when this component is ready.\n */\n constructor(player, options, ready) {\n super(player, options, ready);\n this.setIcon('captions');\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-captions-button ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-captions-button ${super.buildWrapperCSSClass()}`;\n }\n\n /**\n * Create caption menu items\n *\n * @return {CaptionSettingsMenuItem[]}\n * The array of current menu items.\n */\n createItems() {\n const items = [];\n if (!(this.player().tech_ && this.player().tech_.featuresNativeTextTracks) && this.player().getChild('textTrackSettings')) {\n items.push(new CaptionSettingsMenuItem(this.player_, {\n kind: this.kind_\n }));\n this.hideThreshold_ += 1;\n }\n return super.createItems(items);\n }\n}\n\n/**\n * `kind` of TextTrack to look for to associate it with this menu.\n *\n * @type {string}\n * @private\n */\nCaptionsButton.prototype.kind_ = 'captions';\n\n/**\n * The text that should display over the `CaptionsButton`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nCaptionsButton.prototype.controlText_ = 'Captions';\nComponent$1.registerComponent('CaptionsButton', CaptionsButton);\n\n/**\n * @file subs-caps-menu-item.js\n */\n\n/**\n * SubsCapsMenuItem has an [cc] icon to distinguish captions from subtitles\n * in the SubsCapsMenu.\n *\n * @extends TextTrackMenuItem\n */\nclass SubsCapsMenuItem extends TextTrackMenuItem {\n createEl(type, props, attrs) {\n const el = super.createEl(type, props, attrs);\n const parentSpan = el.querySelector('.vjs-menu-item-text');\n if (this.options_.track.kind === 'captions') {\n if (this.player_.options_.experimentalSvgIcons) {\n this.setIcon('captions', el);\n } else {\n parentSpan.appendChild(createEl('span', {\n className: 'vjs-icon-placeholder'\n }, {\n 'aria-hidden': true\n }));\n }\n parentSpan.appendChild(createEl('span', {\n className: 'vjs-control-text',\n // space added as the text will visually flow with the\n // label\n textContent: ` ${this.localize('Captions')}`\n }));\n }\n return el;\n }\n}\nComponent$1.registerComponent('SubsCapsMenuItem', SubsCapsMenuItem);\n\n/**\n * @file sub-caps-button.js\n */\n\n/**\n * The button component for toggling and selecting captions and/or subtitles\n *\n * @extends TextTrackButton\n */\nclass SubsCapsButton extends TextTrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * The function to call when this component is ready.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n super(player, options);\n\n // Although North America uses \"captions\" in most cases for\n // \"captions and subtitles\" other locales use \"subtitles\"\n this.label_ = 'subtitles';\n this.setIcon('subtitles');\n if (['en', 'en-us', 'en-ca', 'fr-ca'].indexOf(this.player_.language_) > -1) {\n this.label_ = 'captions';\n this.setIcon('captions');\n }\n this.menuButton_.controlText(toTitleCase$1(this.label_));\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-subs-caps-button ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-subs-caps-button ${super.buildWrapperCSSClass()}`;\n }\n\n /**\n * Create caption/subtitles menu items\n *\n * @return {CaptionSettingsMenuItem[]}\n * The array of current menu items.\n */\n createItems() {\n let items = [];\n if (!(this.player().tech_ && this.player().tech_.featuresNativeTextTracks) && this.player().getChild('textTrackSettings')) {\n items.push(new CaptionSettingsMenuItem(this.player_, {\n kind: this.label_\n }));\n this.hideThreshold_ += 1;\n }\n items = super.createItems(items, SubsCapsMenuItem);\n return items;\n }\n}\n\n/**\n * `kind`s of TextTrack to look for to associate it with this menu.\n *\n * @type {array}\n * @private\n */\nSubsCapsButton.prototype.kinds_ = ['captions', 'subtitles'];\n\n/**\n * The text that should display over the `SubsCapsButton`s controls.\n *\n *\n * @type {string}\n * @protected\n */\nSubsCapsButton.prototype.controlText_ = 'Subtitles';\nComponent$1.registerComponent('SubsCapsButton', SubsCapsButton);\n\n/**\n * @file audio-track-menu-item.js\n */\n\n/**\n * An {@link AudioTrack} {@link MenuItem}\n *\n * @extends MenuItem\n */\nclass AudioTrackMenuItem extends MenuItem {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n var _this4;\n const track = options.track;\n const tracks = player.audioTracks();\n\n // Modify options for parent MenuItem class's init.\n options.label = track.label || track.language || 'Unknown';\n options.selected = track.enabled;\n super(player, options);\n _this4 = this;\n this.track = track;\n this.addClass(`vjs-${track.kind}-menu-item`);\n const changeHandler = function () {\n for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {\n args[_key18] = arguments[_key18];\n }\n _this4.handleTracksChange.apply(_this4, args);\n };\n tracks.addEventListener('change', changeHandler);\n this.on('dispose', () => {\n tracks.removeEventListener('change', changeHandler);\n });\n }\n createEl(type, props, attrs) {\n const el = super.createEl(type, props, attrs);\n const parentSpan = el.querySelector('.vjs-menu-item-text');\n if (['main-desc', 'description'].indexOf(this.options_.track.kind) >= 0) {\n parentSpan.appendChild(createEl('span', {\n className: 'vjs-icon-placeholder'\n }, {\n 'aria-hidden': true\n }));\n parentSpan.appendChild(createEl('span', {\n className: 'vjs-control-text',\n textContent: ' ' + this.localize('Descriptions')\n }));\n }\n return el;\n }\n\n /**\n * This gets called when an `AudioTrackMenuItem is \"clicked\". See {@link ClickableComponent}\n * for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n super.handleClick(event);\n\n // the audio track list will automatically toggle other tracks\n // off for us.\n this.track.enabled = true;\n\n // when native audio tracks are used, we want to make sure that other tracks are turned off\n if (this.player_.tech_.featuresNativeAudioTracks) {\n const tracks = this.player_.audioTracks();\n for (let i = 0; i < tracks.length; i++) {\n const track = tracks[i];\n\n // skip the current track since we enabled it above\n if (track === this.track) {\n continue;\n }\n track.enabled = track === this.track;\n }\n }\n }\n\n /**\n * Handle any {@link AudioTrack} change.\n *\n * @param {Event} [event]\n * The {@link AudioTrackList#change} event that caused this to run.\n *\n * @listens AudioTrackList#change\n */\n handleTracksChange(event) {\n this.selected(this.track.enabled);\n }\n}\nComponent$1.registerComponent('AudioTrackMenuItem', AudioTrackMenuItem);\n\n/**\n * @file audio-track-button.js\n */\n\n/**\n * The base class for buttons that toggle specific {@link AudioTrack} types.\n *\n * @extends TrackButton\n */\nclass AudioTrackButton extends TrackButton {\n /**\n * Creates an instance of this class.\n *\n * @param {Player} player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options={}]\n * The key/value store of player options.\n */\n constructor(player) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n options.tracks = player.audioTracks();\n super(player, options);\n this.setIcon('audio');\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-audio-button ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-audio-button ${super.buildWrapperCSSClass()}`;\n }\n\n /**\n * Create a menu item for each audio track\n *\n * @param {AudioTrackMenuItem[]} [items=[]]\n * An array of existing menu items to use.\n *\n * @return {AudioTrackMenuItem[]}\n * An array of menu items\n */\n createItems() {\n let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n // if there's only one audio track, there no point in showing it\n this.hideThreshold_ = 1;\n const tracks = this.player_.audioTracks();\n for (let i = 0; i < tracks.length; i++) {\n const track = tracks[i];\n items.push(new AudioTrackMenuItem(this.player_, {\n track,\n // MenuItem is selectable\n selectable: true,\n // MenuItem is NOT multiSelectable (i.e. only one can be marked \"selected\" at a time)\n multiSelectable: false\n }));\n }\n return items;\n }\n}\n\n/**\n * The text that should display over the `AudioTrackButton`s controls. Added for localization.\n *\n * @type {string}\n * @protected\n */\nAudioTrackButton.prototype.controlText_ = 'Audio Track';\nComponent$1.registerComponent('AudioTrackButton', AudioTrackButton);\n\n/**\n * @file playback-rate-menu-item.js\n */\n\n/**\n * The specific menu item type for selecting a playback rate.\n *\n * @extends MenuItem\n */\nclass PlaybackRateMenuItem extends MenuItem {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n const label = options.rate;\n const rate = parseFloat(label, 10);\n\n // Modify options for parent MenuItem class's init.\n options.label = label;\n options.selected = rate === player.playbackRate();\n options.selectable = true;\n options.multiSelectable = false;\n super(player, options);\n this.label = label;\n this.rate = rate;\n this.on(player, 'ratechange', e => this.update(e));\n }\n\n /**\n * This gets called when an `PlaybackRateMenuItem` is \"clicked\". See\n * {@link ClickableComponent} for more detailed information on what a click can be.\n *\n * @param {Event} [event]\n * The `keydown`, `tap`, or `click` event that caused this function to be\n * called.\n *\n * @listens tap\n * @listens click\n */\n handleClick(event) {\n super.handleClick();\n this.player().playbackRate(this.rate);\n }\n\n /**\n * Update the PlaybackRateMenuItem when the playbackrate changes.\n *\n * @param {Event} [event]\n * The `ratechange` event that caused this function to run.\n *\n * @listens Player#ratechange\n */\n update(event) {\n this.selected(this.player().playbackRate() === this.rate);\n }\n}\n\n/**\n * The text that should display over the `PlaybackRateMenuItem`s controls. Added for localization.\n *\n * @type {string}\n * @private\n */\nPlaybackRateMenuItem.prototype.contentElType = 'button';\nComponent$1.registerComponent('PlaybackRateMenuItem', PlaybackRateMenuItem);\n\n/**\n * @file playback-rate-menu-button.js\n */\n\n/**\n * The component for controlling the playback rate.\n *\n * @extends MenuButton\n */\nclass PlaybackRateMenuButton extends MenuButton {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.menuButton_.el_.setAttribute('aria-describedby', this.labelElId_);\n this.updateVisibility();\n this.updateLabel();\n this.on(player, 'loadstart', e => this.updateVisibility(e));\n this.on(player, 'ratechange', e => this.updateLabel(e));\n this.on(player, 'playbackrateschange', e => this.handlePlaybackRateschange(e));\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n const el = super.createEl();\n this.labelElId_ = 'vjs-playback-rate-value-label-' + this.id_;\n this.labelEl_ = createEl('div', {\n className: 'vjs-playback-rate-value',\n id: this.labelElId_,\n textContent: '1x'\n });\n el.appendChild(this.labelEl_);\n return el;\n }\n dispose() {\n this.labelEl_ = null;\n super.dispose();\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-playback-rate ${super.buildCSSClass()}`;\n }\n buildWrapperCSSClass() {\n return `vjs-playback-rate ${super.buildWrapperCSSClass()}`;\n }\n\n /**\n * Create the list of menu items. Specific to each subclass.\n *\n */\n createItems() {\n const rates = this.playbackRates();\n const items = [];\n for (let i = rates.length - 1; i >= 0; i--) {\n items.push(new PlaybackRateMenuItem(this.player(), {\n rate: rates[i] + 'x'\n }));\n }\n return items;\n }\n\n /**\n * On playbackrateschange, update the menu to account for the new items.\n *\n * @listens Player#playbackrateschange\n */\n handlePlaybackRateschange(event) {\n this.update();\n }\n\n /**\n * Get possible playback rates\n *\n * @return {Array}\n * All possible playback rates\n */\n playbackRates() {\n const player = this.player();\n return player.playbackRates && player.playbackRates() || [];\n }\n\n /**\n * Get whether playback rates is supported by the tech\n * and an array of playback rates exists\n *\n * @return {boolean}\n * Whether changing playback rate is supported\n */\n playbackRateSupported() {\n return this.player().tech_ && this.player().tech_.featuresPlaybackRate && this.playbackRates() && this.playbackRates().length > 0;\n }\n\n /**\n * Hide playback rate controls when they're no playback rate options to select\n *\n * @param {Event} [event]\n * The event that caused this function to run.\n *\n * @listens Player#loadstart\n */\n updateVisibility(event) {\n if (this.playbackRateSupported()) {\n this.removeClass('vjs-hidden');\n } else {\n this.addClass('vjs-hidden');\n }\n }\n\n /**\n * Update button label when rate changed\n *\n * @param {Event} [event]\n * The event that caused this function to run.\n *\n * @listens Player#ratechange\n */\n updateLabel(event) {\n if (this.playbackRateSupported()) {\n this.labelEl_.textContent = this.player().playbackRate() + 'x';\n }\n }\n}\n\n/**\n * The text that should display over the `PlaybackRateMenuButton`s controls.\n *\n * Added for localization.\n *\n * @type {string}\n * @protected\n */\nPlaybackRateMenuButton.prototype.controlText_ = 'Playback Rate';\nComponent$1.registerComponent('PlaybackRateMenuButton', PlaybackRateMenuButton);\n\n/**\n * @file spacer.js\n */\n\n/**\n * Just an empty spacer element that can be used as an append point for plugins, etc.\n * Also can be used to create space between elements when necessary.\n *\n * @extends Component\n */\nclass Spacer extends Component$1 {\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-spacer ${super.buildCSSClass()}`;\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n let tag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'div';\n let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n if (!props.className) {\n props.className = this.buildCSSClass();\n }\n return super.createEl(tag, props, attributes);\n }\n}\nComponent$1.registerComponent('Spacer', Spacer);\n\n/**\n * @file custom-control-spacer.js\n */\n\n/**\n * Spacer specifically meant to be used as an insertion point for new plugins, etc.\n *\n * @extends Spacer\n */\nclass CustomControlSpacer extends Spacer {\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n */\n buildCSSClass() {\n return `vjs-custom-control-spacer ${super.buildCSSClass()}`;\n }\n\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: this.buildCSSClass(),\n // No-flex/table-cell mode requires there be some content\n // in the cell to fill the remaining space of the table.\n textContent: '\\u00a0'\n });\n }\n}\nComponent$1.registerComponent('CustomControlSpacer', CustomControlSpacer);\n\n/**\n * @file control-bar.js\n */\n\n/**\n * Container of main controls.\n *\n * @extends Component\n */\nclass ControlBar extends Component$1 {\n /**\n * Create the `Component`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n return super.createEl('div', {\n className: 'vjs-control-bar',\n dir: 'ltr'\n });\n }\n}\n\n/**\n * Default options for `ControlBar`\n *\n * @type {Object}\n * @private\n */\nControlBar.prototype.options_ = {\n children: ['playToggle', 'skipBackward', 'skipForward', 'volumePanel', 'currentTimeDisplay', 'timeDivider', 'durationDisplay', 'progressControl', 'liveDisplay', 'seekToLive', 'remainingTimeDisplay', 'customControlSpacer', 'playbackRateMenuButton', 'chaptersButton', 'descriptionsButton', 'subsCapsButton', 'audioTrackButton', 'pictureInPictureToggle', 'fullscreenToggle']\n};\nComponent$1.registerComponent('ControlBar', ControlBar);\n\n/**\n * @file error-display.js\n */\n\n/**\n * A display that indicates an error has occurred. This means that the video\n * is unplayable.\n *\n * @extends ModalDialog\n */\nclass ErrorDisplay extends ModalDialog {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n super(player, options);\n this.on(player, 'error', e => {\n this.close();\n this.open(e);\n });\n }\n\n /**\n * Builds the default DOM `className`.\n *\n * @return {string}\n * The DOM `className` for this object.\n *\n * @deprecated Since version 5.\n */\n buildCSSClass() {\n return `vjs-error-display ${super.buildCSSClass()}`;\n }\n\n /**\n * Gets the localized error message based on the `Player`s error.\n *\n * @return {string}\n * The `Player`s error message localized or an empty string.\n */\n content() {\n const error = this.player().error();\n return error ? this.localize(error.message) : '';\n }\n}\n\n/**\n * The default options for an `ErrorDisplay`.\n *\n * @private\n */\nErrorDisplay.prototype.options_ = Object.assign({}, ModalDialog.prototype.options_, {\n pauseOnOpen: false,\n fillAlways: true,\n temporary: false,\n uncloseable: true\n});\nComponent$1.registerComponent('ErrorDisplay', ErrorDisplay);\n\n/**\n * @file text-track-settings.js\n */\nconst LOCAL_STORAGE_KEY$1 = 'vjs-text-track-settings';\nconst COLOR_BLACK = ['#000', 'Black'];\nconst COLOR_BLUE = ['#00F', 'Blue'];\nconst COLOR_CYAN = ['#0FF', 'Cyan'];\nconst COLOR_GREEN = ['#0F0', 'Green'];\nconst COLOR_MAGENTA = ['#F0F', 'Magenta'];\nconst COLOR_RED = ['#F00', 'Red'];\nconst COLOR_WHITE = ['#FFF', 'White'];\nconst COLOR_YELLOW = ['#FF0', 'Yellow'];\nconst OPACITY_OPAQUE = ['1', 'Opaque'];\nconst OPACITY_SEMI = ['0.5', 'Semi-Transparent'];\nconst OPACITY_TRANS = ['0', 'Transparent'];\n\n// Configuration for the various elements in the DOM of this component.\n//\n// Possible keys include:\n//\n// `default`:\n// The default option index. Only needs to be provided if not zero.\n// `parser`:\n// A function which is used to parse the value from the selected option in\n// a customized way.\n// `selector`:\n// The selector used to find the associated element.\nconst selectConfigs = {\n backgroundColor: {\n selector: '.vjs-bg-color > select',\n id: 'captions-background-color-%s',\n label: 'Color',\n options: [COLOR_BLACK, COLOR_WHITE, COLOR_RED, COLOR_GREEN, COLOR_BLUE, COLOR_YELLOW, COLOR_MAGENTA, COLOR_CYAN]\n },\n backgroundOpacity: {\n selector: '.vjs-bg-opacity > select',\n id: 'captions-background-opacity-%s',\n label: 'Opacity',\n options: [OPACITY_OPAQUE, OPACITY_SEMI, OPACITY_TRANS]\n },\n color: {\n selector: '.vjs-text-color > select',\n id: 'captions-foreground-color-%s',\n label: 'Color',\n options: [COLOR_WHITE, COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_BLUE, COLOR_YELLOW, COLOR_MAGENTA, COLOR_CYAN]\n },\n edgeStyle: {\n selector: '.vjs-edge-style > select',\n id: '%s',\n label: 'Text Edge Style',\n options: [['none', 'None'], ['raised', 'Raised'], ['depressed', 'Depressed'], ['uniform', 'Uniform'], ['dropshadow', 'Drop shadow']]\n },\n fontFamily: {\n selector: '.vjs-font-family > select',\n id: 'captions-font-family-%s',\n label: 'Font Family',\n options: [['proportionalSansSerif', 'Proportional Sans-Serif'], ['monospaceSansSerif', 'Monospace Sans-Serif'], ['proportionalSerif', 'Proportional Serif'], ['monospaceSerif', 'Monospace Serif'], ['casual', 'Casual'], ['script', 'Script'], ['small-caps', 'Small Caps']]\n },\n fontPercent: {\n selector: '.vjs-font-percent > select',\n id: 'captions-font-size-%s',\n label: 'Font Size',\n options: [['0.50', '50%'], ['0.75', '75%'], ['1.00', '100%'], ['1.25', '125%'], ['1.50', '150%'], ['1.75', '175%'], ['2.00', '200%'], ['3.00', '300%'], ['4.00', '400%']],\n default: 2,\n parser: v => v === '1.00' ? null : Number(v)\n },\n textOpacity: {\n selector: '.vjs-text-opacity > select',\n id: 'captions-foreground-opacity-%s',\n label: 'Opacity',\n options: [OPACITY_OPAQUE, OPACITY_SEMI]\n },\n // Options for this object are defined below.\n windowColor: {\n selector: '.vjs-window-color > select',\n id: 'captions-window-color-%s',\n label: 'Color'\n },\n // Options for this object are defined below.\n windowOpacity: {\n selector: '.vjs-window-opacity > select',\n id: 'captions-window-opacity-%s',\n label: 'Opacity',\n options: [OPACITY_TRANS, OPACITY_SEMI, OPACITY_OPAQUE]\n }\n};\nselectConfigs.windowColor.options = selectConfigs.backgroundColor.options;\n\n/**\n * Get the actual value of an option.\n *\n * @param {string} value\n * The value to get\n *\n * @param {Function} [parser]\n * Optional function to adjust the value.\n *\n * @return {*}\n * - Will be `undefined` if no value exists\n * - Will be `undefined` if the given value is \"none\".\n * - Will be the actual value otherwise.\n *\n * @private\n */\nfunction parseOptionValue(value, parser) {\n if (parser) {\n value = parser(value);\n }\n if (value && value !== 'none') {\n return value;\n }\n}\n\n/**\n * Gets the value of the selected element within a element.\n *\n * @param {Element} el\n * the element to look in\n *\n * @param {Function} [parser]\n * Optional function to adjust the value.\n *\n * @return {*}\n * - Will be `undefined` if no value exists\n * - Will be `undefined` if the given value is \"none\".\n * - Will be the actual value otherwise.\n *\n * @private\n */\nfunction getSelectedOptionValue(el, parser) {\n const value = el.options[el.options.selectedIndex].value;\n return parseOptionValue(value, parser);\n}\n\n/**\n * Sets the selected element within a element based on a\n * given value.\n *\n * @param {Element} el\n * The element to look in.\n *\n * @param {string} value\n * the property to look on.\n *\n * @param {Function} [parser]\n * Optional function to adjust the value before comparing.\n *\n * @private\n */\nfunction setSelectedOption(el, value, parser) {\n if (!value) {\n return;\n }\n for (let i = 0; i < el.options.length; i++) {\n if (parseOptionValue(el.options[i].value, parser) === value) {\n el.selectedIndex = i;\n break;\n }\n }\n}\n\n/**\n * Manipulate Text Tracks settings.\n *\n * @extends ModalDialog\n */\nclass TextTrackSettings extends ModalDialog {\n /**\n * Creates an instance of this class.\n *\n * @param { import('../player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n */\n constructor(player, options) {\n options.temporary = false;\n super(player, options);\n this.updateDisplay = this.updateDisplay.bind(this);\n\n // fill the modal and pretend we have opened it\n this.fill();\n this.hasBeenOpened_ = this.hasBeenFilled_ = true;\n this.endDialog = createEl('p', {\n className: 'vjs-control-text',\n textContent: this.localize('End of dialog window.')\n });\n this.el().appendChild(this.endDialog);\n this.setDefaults();\n\n // Grab `persistTextTrackSettings` from the player options if not passed in child options\n if (options.persistTextTrackSettings === undefined) {\n this.options_.persistTextTrackSettings = this.options_.playerOptions.persistTextTrackSettings;\n }\n this.on(this.$('.vjs-done-button'), 'click', () => {\n this.saveSettings();\n this.close();\n });\n this.on(this.$('.vjs-default-button'), 'click', () => {\n this.setDefaults();\n this.updateDisplay();\n });\n each(selectConfigs, config => {\n this.on(this.$(config.selector), 'change', this.updateDisplay);\n });\n if (this.options_.persistTextTrackSettings) {\n this.restoreSettings();\n }\n }\n dispose() {\n this.endDialog = null;\n super.dispose();\n }\n\n /**\n * Create a element with configured options.\n *\n * @param {string} key\n * Configuration key to use during creation.\n *\n * @param {string} [legendId]\n * Id of associated .\n *\n * @param {string} [type=label]\n * Type of labelling element, `label` or `legend`\n *\n * @return {string}\n * An HTML string.\n *\n * @private\n */\n createElSelect_(key) {\n let legendId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'label';\n const config = selectConfigs[key];\n const id = config.id.replace('%s', this.id_);\n const selectLabelledbyIds = [legendId, id].join(' ').trim();\n const guid = `vjs_select_${newGUID()}`;\n return [`<${type} id=\"${id}\"${type === 'label' ? ` for=\"${guid}\" class=\"vjs-label\"` : ''}>`, this.localize(config.label), `${type}>`, ``].concat(config.options.map(o => {\n const optionId = id + '-' + o[1].replace(/\\W+/g, '');\n return [``, this.localize(o[1]), ' '].join('');\n })).concat(' ').join('');\n }\n\n /**\n * Create foreground color element for the component\n *\n * @return {string}\n * An HTML string.\n *\n * @private\n */\n createElFgColor_() {\n const legendId = `captions-text-legend-${this.id_}`;\n return [' ', ``, this.localize('Text'), ' ', '', this.createElSelect_('color', legendId), ' ', '', this.createElSelect_('textOpacity', legendId), ' ', ' '].join('');\n }\n\n /**\n * Create background color element for the component\n *\n * @return {string}\n * An HTML string.\n *\n * @private\n */\n createElBgColor_() {\n const legendId = `captions-background-${this.id_}`;\n return ['', ``, this.localize('Text Background'), ' ', '', this.createElSelect_('backgroundColor', legendId), ' ', '', this.createElSelect_('backgroundOpacity', legendId), ' ', ' '].join('');\n }\n\n /**\n * Create window color element for the component\n *\n * @return {string}\n * An HTML string.\n *\n * @private\n */\n createElWinColor_() {\n const legendId = `captions-window-${this.id_}`;\n return ['', ``, this.localize('Caption Area Background'), ' ', '', this.createElSelect_('windowColor', legendId), ' ', '', this.createElSelect_('windowOpacity', legendId), ' ', ' '].join('');\n }\n\n /**\n * Create color elements for the component\n *\n * @return {Element}\n * The element that was created\n *\n * @private\n */\n createElColors_() {\n return createEl('div', {\n className: 'vjs-track-settings-colors',\n innerHTML: [this.createElFgColor_(), this.createElBgColor_(), this.createElWinColor_()].join('')\n });\n }\n\n /**\n * Create font elements for the component\n *\n * @return {Element}\n * The element that was created.\n *\n * @private\n */\n createElFont_() {\n return createEl('div', {\n className: 'vjs-track-settings-font',\n innerHTML: ['', this.createElSelect_('fontPercent', '', 'legend'), ' ', '', this.createElSelect_('edgeStyle', '', 'legend'), ' ', '', this.createElSelect_('fontFamily', '', 'legend'), ' '].join('')\n });\n }\n\n /**\n * Create controls for the component\n *\n * @return {Element}\n * The element that was created.\n *\n * @private\n */\n createElControls_() {\n const defaultsDescription = this.localize('restore all settings to the default values');\n return createEl('div', {\n className: 'vjs-track-settings-controls',\n innerHTML: [``, this.localize('Reset'), ` ${defaultsDescription} `, ' ', `${this.localize('Done')} `].join('')\n });\n }\n content() {\n return [this.createElColors_(), this.createElFont_(), this.createElControls_()];\n }\n label() {\n return this.localize('Caption Settings Dialog');\n }\n description() {\n return this.localize('Beginning of dialog window. Escape will cancel and close the window.');\n }\n buildCSSClass() {\n return super.buildCSSClass() + ' vjs-text-track-settings';\n }\n\n /**\n * Gets an object of text track settings (or null).\n *\n * @return {Object}\n * An object with config values parsed from the DOM or localStorage.\n */\n getValues() {\n return reduce(selectConfigs, (accum, config, key) => {\n const value = getSelectedOptionValue(this.$(config.selector), config.parser);\n if (value !== undefined) {\n accum[key] = value;\n }\n return accum;\n }, {});\n }\n\n /**\n * Sets text track settings from an object of values.\n *\n * @param {Object} values\n * An object with config values parsed from the DOM or localStorage.\n */\n setValues(values) {\n each(selectConfigs, (config, key) => {\n setSelectedOption(this.$(config.selector), values[key], config.parser);\n });\n }\n\n /**\n * Sets all `` elements to their default values.\n */\n setDefaults() {\n each(selectConfigs, config => {\n const index = config.hasOwnProperty('default') ? config.default : 0;\n this.$(config.selector).selectedIndex = index;\n });\n }\n\n /**\n * Restore texttrack settings from localStorage\n */\n restoreSettings() {\n let values;\n try {\n values = JSON.parse(window$1.localStorage.getItem(LOCAL_STORAGE_KEY$1));\n } catch (err) {\n log$1.warn(err);\n }\n if (values) {\n this.setValues(values);\n }\n }\n\n /**\n * Save text track settings to localStorage\n */\n saveSettings() {\n if (!this.options_.persistTextTrackSettings) {\n return;\n }\n const values = this.getValues();\n try {\n if (Object.keys(values).length) {\n window$1.localStorage.setItem(LOCAL_STORAGE_KEY$1, JSON.stringify(values));\n } else {\n window$1.localStorage.removeItem(LOCAL_STORAGE_KEY$1);\n }\n } catch (err) {\n log$1.warn(err);\n }\n }\n\n /**\n * Update display of text track settings\n */\n updateDisplay() {\n const ttDisplay = this.player_.getChild('textTrackDisplay');\n if (ttDisplay) {\n ttDisplay.updateDisplay();\n }\n }\n\n /**\n * conditionally blur the element and refocus the captions button\n *\n * @private\n */\n conditionalBlur_() {\n this.previouslyActiveEl_ = null;\n const cb = this.player_.controlBar;\n const subsCapsBtn = cb && cb.subsCapsButton;\n const ccBtn = cb && cb.captionsButton;\n if (subsCapsBtn) {\n subsCapsBtn.focus();\n } else if (ccBtn) {\n ccBtn.focus();\n }\n }\n\n /**\n * Repopulate dialog with new localizations on languagechange\n */\n handleLanguagechange() {\n this.fill();\n }\n}\nComponent$1.registerComponent('TextTrackSettings', TextTrackSettings);\n\n/**\n * @file resize-manager.js\n */\n\n/**\n * A Resize Manager. It is in charge of triggering `playerresize` on the player in the right conditions.\n *\n * It'll either create an iframe and use a debounced resize handler on it or use the new {@link https://wicg.github.io/ResizeObserver/|ResizeObserver}.\n *\n * If the ResizeObserver is available natively, it will be used. A polyfill can be passed in as an option.\n * If a `playerresize` event is not needed, the ResizeManager component can be removed from the player, see the example below.\n *\n * @example How to disable the resize manager \n * const player = videojs('#vid', {\n * resizeManager: false\n * });\n *\n * @see {@link https://wicg.github.io/ResizeObserver/|ResizeObserver specification}\n *\n * @extends Component\n */\nclass ResizeManager extends Component$1 {\n /**\n * Create the ResizeManager.\n *\n * @param {Object} player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of ResizeManager options.\n *\n * @param {Object} [options.ResizeObserver]\n * A polyfill for ResizeObserver can be passed in here.\n * If this is set to null it will ignore the native ResizeObserver and fall back to the iframe fallback.\n */\n constructor(player, options) {\n let RESIZE_OBSERVER_AVAILABLE = options.ResizeObserver || window$1.ResizeObserver;\n\n // if `null` was passed, we want to disable the ResizeObserver\n if (options.ResizeObserver === null) {\n RESIZE_OBSERVER_AVAILABLE = false;\n }\n\n // Only create an element when ResizeObserver isn't available\n const options_ = merge$1({\n createEl: !RESIZE_OBSERVER_AVAILABLE,\n reportTouchActivity: false\n }, options);\n super(player, options_);\n this.ResizeObserver = options.ResizeObserver || window$1.ResizeObserver;\n this.loadListener_ = null;\n this.resizeObserver_ = null;\n this.debouncedHandler_ = debounce(() => {\n this.resizeHandler();\n }, 100, false, this);\n if (RESIZE_OBSERVER_AVAILABLE) {\n this.resizeObserver_ = new this.ResizeObserver(this.debouncedHandler_);\n this.resizeObserver_.observe(player.el());\n } else {\n this.loadListener_ = () => {\n if (!this.el_ || !this.el_.contentWindow) {\n return;\n }\n const debouncedHandler_ = this.debouncedHandler_;\n let unloadListener_ = this.unloadListener_ = function () {\n off(this, 'resize', debouncedHandler_);\n off(this, 'unload', unloadListener_);\n unloadListener_ = null;\n };\n\n // safari and edge can unload the iframe before resizemanager dispose\n // we have to dispose of event handlers correctly before that happens\n on(this.el_.contentWindow, 'unload', unloadListener_);\n on(this.el_.contentWindow, 'resize', debouncedHandler_);\n };\n this.one('load', this.loadListener_);\n }\n }\n createEl() {\n return super.createEl('iframe', {\n className: 'vjs-resize-manager',\n tabIndex: -1,\n title: this.localize('No content')\n }, {\n 'aria-hidden': 'true'\n });\n }\n\n /**\n * Called when a resize is triggered on the iframe or a resize is observed via the ResizeObserver\n *\n * @fires Player#playerresize\n */\n resizeHandler() {\n /**\n * Called when the player size has changed\n *\n * @event Player#playerresize\n * @type {Event}\n */\n // make sure player is still around to trigger\n // prevents this from causing an error after dispose\n if (!this.player_ || !this.player_.trigger) {\n return;\n }\n this.player_.trigger('playerresize');\n }\n dispose() {\n if (this.debouncedHandler_) {\n this.debouncedHandler_.cancel();\n }\n if (this.resizeObserver_) {\n if (this.player_.el()) {\n this.resizeObserver_.unobserve(this.player_.el());\n }\n this.resizeObserver_.disconnect();\n }\n if (this.loadListener_) {\n this.off('load', this.loadListener_);\n }\n if (this.el_ && this.el_.contentWindow && this.unloadListener_) {\n this.unloadListener_.call(this.el_.contentWindow);\n }\n this.ResizeObserver = null;\n this.resizeObserver = null;\n this.debouncedHandler_ = null;\n this.loadListener_ = null;\n super.dispose();\n }\n}\nComponent$1.registerComponent('ResizeManager', ResizeManager);\nconst defaults = {\n trackingThreshold: 20,\n liveTolerance: 15\n};\n\n/*\n track when we are at the live edge, and other helpers for live playback */\n\n/**\n * A class for checking live current time and determining when the player\n * is at or behind the live edge.\n */\nclass LiveTracker extends Component$1 {\n /**\n * Creates an instance of this class.\n *\n * @param { import('./player').default } player\n * The `Player` that this class should be attached to.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {number} [options.trackingThreshold=20]\n * Number of seconds of live window (seekableEnd - seekableStart) that\n * media needs to have before the liveui will be shown.\n *\n * @param {number} [options.liveTolerance=15]\n * Number of seconds behind live that we have to be\n * before we will be considered non-live. Note that this will only\n * be used when playing at the live edge. This allows large seekable end\n * changes to not effect whether we are live or not.\n */\n constructor(player, options) {\n // LiveTracker does not need an element\n const options_ = merge$1(defaults, options, {\n createEl: false\n });\n super(player, options_);\n this.trackLiveHandler_ = () => this.trackLive_();\n this.handlePlay_ = e => this.handlePlay(e);\n this.handleFirstTimeupdate_ = e => this.handleFirstTimeupdate(e);\n this.handleSeeked_ = e => this.handleSeeked(e);\n this.seekToLiveEdge_ = e => this.seekToLiveEdge(e);\n this.reset_();\n this.on(this.player_, 'durationchange', e => this.handleDurationchange(e));\n // we should try to toggle tracking on canplay as native playback engines, like Safari\n // may not have the proper values for things like seekableEnd until then\n this.on(this.player_, 'canplay', () => this.toggleTracking());\n }\n\n /**\n * all the functionality for tracking when seek end changes\n * and for tracking how far past seek end we should be\n */\n trackLive_() {\n const seekable = this.player_.seekable();\n\n // skip undefined seekable\n if (!seekable || !seekable.length) {\n return;\n }\n const newTime = Number(window$1.performance.now().toFixed(4));\n const deltaTime = this.lastTime_ === -1 ? 0 : (newTime - this.lastTime_) / 1000;\n this.lastTime_ = newTime;\n this.pastSeekEnd_ = this.pastSeekEnd() + deltaTime;\n const liveCurrentTime = this.liveCurrentTime();\n const currentTime = this.player_.currentTime();\n\n // we are behind live if any are true\n // 1. the player is paused\n // 2. the user seeked to a location 2 seconds away from live\n // 3. the difference between live and current time is greater\n // liveTolerance which defaults to 15s\n let isBehind = this.player_.paused() || this.seekedBehindLive_ || Math.abs(liveCurrentTime - currentTime) > this.options_.liveTolerance;\n\n // we cannot be behind if\n // 1. until we have not seen a timeupdate yet\n // 2. liveCurrentTime is Infinity, which happens on Android and Native Safari\n if (!this.timeupdateSeen_ || liveCurrentTime === Infinity) {\n isBehind = false;\n }\n if (isBehind !== this.behindLiveEdge_) {\n this.behindLiveEdge_ = isBehind;\n this.trigger('liveedgechange');\n }\n }\n\n /**\n * handle a durationchange event on the player\n * and start/stop tracking accordingly.\n */\n handleDurationchange() {\n this.toggleTracking();\n }\n\n /**\n * start/stop tracking\n */\n toggleTracking() {\n if (this.player_.duration() === Infinity && this.liveWindow() >= this.options_.trackingThreshold) {\n if (this.player_.options_.liveui) {\n this.player_.addClass('vjs-liveui');\n }\n this.startTracking();\n } else {\n this.player_.removeClass('vjs-liveui');\n this.stopTracking();\n }\n }\n\n /**\n * start tracking live playback\n */\n startTracking() {\n if (this.isTracking()) {\n return;\n }\n\n // If we haven't seen a timeupdate, we need to check whether playback\n // began before this component started tracking. This can happen commonly\n // when using autoplay.\n if (!this.timeupdateSeen_) {\n this.timeupdateSeen_ = this.player_.hasStarted();\n }\n this.trackingInterval_ = this.setInterval(this.trackLiveHandler_, UPDATE_REFRESH_INTERVAL);\n this.trackLive_();\n this.on(this.player_, ['play', 'pause'], this.trackLiveHandler_);\n if (!this.timeupdateSeen_) {\n this.one(this.player_, 'play', this.handlePlay_);\n this.one(this.player_, 'timeupdate', this.handleFirstTimeupdate_);\n } else {\n this.on(this.player_, 'seeked', this.handleSeeked_);\n }\n }\n\n /**\n * handle the first timeupdate on the player if it wasn't already playing\n * when live tracker started tracking.\n */\n handleFirstTimeupdate() {\n this.timeupdateSeen_ = true;\n this.on(this.player_, 'seeked', this.handleSeeked_);\n }\n\n /**\n * Keep track of what time a seek starts, and listen for seeked\n * to find where a seek ends.\n */\n handleSeeked() {\n const timeDiff = Math.abs(this.liveCurrentTime() - this.player_.currentTime());\n this.seekedBehindLive_ = this.nextSeekedFromUser_ && timeDiff > 2;\n this.nextSeekedFromUser_ = false;\n this.trackLive_();\n }\n\n /**\n * handle the first play on the player, and make sure that we seek\n * right to the live edge.\n */\n handlePlay() {\n this.one(this.player_, 'timeupdate', this.seekToLiveEdge_);\n }\n\n /**\n * Stop tracking, and set all internal variables to\n * their initial value.\n */\n reset_() {\n this.lastTime_ = -1;\n this.pastSeekEnd_ = 0;\n this.lastSeekEnd_ = -1;\n this.behindLiveEdge_ = true;\n this.timeupdateSeen_ = false;\n this.seekedBehindLive_ = false;\n this.nextSeekedFromUser_ = false;\n this.clearInterval(this.trackingInterval_);\n this.trackingInterval_ = null;\n this.off(this.player_, ['play', 'pause'], this.trackLiveHandler_);\n this.off(this.player_, 'seeked', this.handleSeeked_);\n this.off(this.player_, 'play', this.handlePlay_);\n this.off(this.player_, 'timeupdate', this.handleFirstTimeupdate_);\n this.off(this.player_, 'timeupdate', this.seekToLiveEdge_);\n }\n\n /**\n * The next seeked event is from the user. Meaning that any seek\n * > 2s behind live will be considered behind live for real and\n * liveTolerance will be ignored.\n */\n nextSeekedFromUser() {\n this.nextSeekedFromUser_ = true;\n }\n\n /**\n * stop tracking live playback\n */\n stopTracking() {\n if (!this.isTracking()) {\n return;\n }\n this.reset_();\n this.trigger('liveedgechange');\n }\n\n /**\n * A helper to get the player seekable end\n * so that we don't have to null check everywhere\n *\n * @return {number}\n * The furthest seekable end or Infinity.\n */\n seekableEnd() {\n const seekable = this.player_.seekable();\n const seekableEnds = [];\n let i = seekable ? seekable.length : 0;\n while (i--) {\n seekableEnds.push(seekable.end(i));\n }\n\n // grab the furthest seekable end after sorting, or if there are none\n // default to Infinity\n return seekableEnds.length ? seekableEnds.sort()[seekableEnds.length - 1] : Infinity;\n }\n\n /**\n * A helper to get the player seekable start\n * so that we don't have to null check everywhere\n *\n * @return {number}\n * The earliest seekable start or 0.\n */\n seekableStart() {\n const seekable = this.player_.seekable();\n const seekableStarts = [];\n let i = seekable ? seekable.length : 0;\n while (i--) {\n seekableStarts.push(seekable.start(i));\n }\n\n // grab the first seekable start after sorting, or if there are none\n // default to 0\n return seekableStarts.length ? seekableStarts.sort()[0] : 0;\n }\n\n /**\n * Get the live time window aka\n * the amount of time between seekable start and\n * live current time.\n *\n * @return {number}\n * The amount of seconds that are seekable in\n * the live video.\n */\n liveWindow() {\n const liveCurrentTime = this.liveCurrentTime();\n\n // if liveCurrenTime is Infinity then we don't have a liveWindow at all\n if (liveCurrentTime === Infinity) {\n return 0;\n }\n return liveCurrentTime - this.seekableStart();\n }\n\n /**\n * Determines if the player is live, only checks if this component\n * is tracking live playback or not\n *\n * @return {boolean}\n * Whether liveTracker is tracking\n */\n isLive() {\n return this.isTracking();\n }\n\n /**\n * Determines if currentTime is at the live edge and won't fall behind\n * on each seekableendchange\n *\n * @return {boolean}\n * Whether playback is at the live edge\n */\n atLiveEdge() {\n return !this.behindLiveEdge();\n }\n\n /**\n * get what we expect the live current time to be\n *\n * @return {number}\n * The expected live current time\n */\n liveCurrentTime() {\n return this.pastSeekEnd() + this.seekableEnd();\n }\n\n /**\n * The number of seconds that have occurred after seekable end\n * changed. This will be reset to 0 once seekable end changes.\n *\n * @return {number}\n * Seconds past the current seekable end\n */\n pastSeekEnd() {\n const seekableEnd = this.seekableEnd();\n if (this.lastSeekEnd_ !== -1 && seekableEnd !== this.lastSeekEnd_) {\n this.pastSeekEnd_ = 0;\n }\n this.lastSeekEnd_ = seekableEnd;\n return this.pastSeekEnd_;\n }\n\n /**\n * If we are currently behind the live edge, aka currentTime will be\n * behind on a seekableendchange\n *\n * @return {boolean}\n * If we are behind the live edge\n */\n behindLiveEdge() {\n return this.behindLiveEdge_;\n }\n\n /**\n * Whether live tracker is currently tracking or not.\n */\n isTracking() {\n return typeof this.trackingInterval_ === 'number';\n }\n\n /**\n * Seek to the live edge if we are behind the live edge\n */\n seekToLiveEdge() {\n this.seekedBehindLive_ = false;\n if (this.atLiveEdge()) {\n return;\n }\n this.nextSeekedFromUser_ = false;\n this.player_.currentTime(this.liveCurrentTime());\n }\n\n /**\n * Dispose of liveTracker\n */\n dispose() {\n this.stopTracking();\n super.dispose();\n }\n}\nComponent$1.registerComponent('LiveTracker', LiveTracker);\n\n/**\n * Displays an element over the player which contains an optional title and\n * description for the current content.\n *\n * Much of the code for this component originated in the now obsolete\n * videojs-dock plugin: https://github.com/brightcove/videojs-dock/\n *\n * @extends Component\n */\nclass TitleBar extends Component$1 {\n constructor(player, options) {\n super(player, options);\n this.on('statechanged', e => this.updateDom_());\n this.updateDom_();\n }\n\n /**\n * Create the `TitleBar`'s DOM element\n *\n * @return {Element}\n * The element that was created.\n */\n createEl() {\n this.els = {\n title: createEl('div', {\n className: 'vjs-title-bar-title',\n id: `vjs-title-bar-title-${newGUID()}`\n }),\n description: createEl('div', {\n className: 'vjs-title-bar-description',\n id: `vjs-title-bar-description-${newGUID()}`\n })\n };\n return createEl('div', {\n className: 'vjs-title-bar'\n }, {}, values(this.els));\n }\n\n /**\n * Updates the DOM based on the component's state object.\n */\n updateDom_() {\n const tech = this.player_.tech_;\n const techEl = tech && tech.el_;\n const techAriaAttrs = {\n title: 'aria-labelledby',\n description: 'aria-describedby'\n };\n ['title', 'description'].forEach(k => {\n const value = this.state[k];\n const el = this.els[k];\n const techAriaAttr = techAriaAttrs[k];\n emptyEl(el);\n if (value) {\n textContent(el, value);\n }\n\n // If there is a tech element available, update its ARIA attributes\n // according to whether a title and/or description have been provided.\n if (techEl) {\n techEl.removeAttribute(techAriaAttr);\n if (value) {\n techEl.setAttribute(techAriaAttr, el.id);\n }\n }\n });\n if (this.state.title || this.state.description) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n /**\n * Update the contents of the title bar component with new title and\n * description text.\n *\n * If both title and description are missing, the title bar will be hidden.\n *\n * If either title or description are present, the title bar will be visible.\n *\n * NOTE: Any previously set value will be preserved. To unset a previously\n * set value, you must pass an empty string or null.\n *\n * For example:\n *\n * ```\n * update({title: 'foo', description: 'bar'}) // title: 'foo', description: 'bar'\n * update({description: 'bar2'}) // title: 'foo', description: 'bar2'\n * update({title: ''}) // title: '', description: 'bar2'\n * update({title: 'foo', description: null}) // title: 'foo', description: null\n * ```\n *\n * @param {Object} [options={}]\n * An options object. When empty, the title bar will be hidden.\n *\n * @param {string} [options.title]\n * A title to display in the title bar.\n *\n * @param {string} [options.description]\n * A description to display in the title bar.\n */\n update(options) {\n this.setState(options);\n }\n\n /**\n * Dispose the component.\n */\n dispose() {\n const tech = this.player_.tech_;\n const techEl = tech && tech.el_;\n if (techEl) {\n techEl.removeAttribute('aria-labelledby');\n techEl.removeAttribute('aria-describedby');\n }\n super.dispose();\n this.els = null;\n }\n}\nComponent$1.registerComponent('TitleBar', TitleBar);\n\n/**\n * This function is used to fire a sourceset when there is something\n * similar to `mediaEl.load()` being called. It will try to find the source via\n * the `src` attribute and then the `` elements. It will then fire `sourceset`\n * with the source that was found or empty string if we cannot know. If it cannot\n * find a source then `sourceset` will not be fired.\n *\n * @param { import('./html5').default } tech\n * The tech object that sourceset was setup on\n *\n * @return {boolean}\n * returns false if the sourceset was not fired and true otherwise.\n */\nconst sourcesetLoad = tech => {\n const el = tech.el();\n\n // if `el.src` is set, that source will be loaded.\n if (el.hasAttribute('src')) {\n tech.triggerSourceset(el.src);\n return true;\n }\n\n /**\n * Since there isn't a src property on the media element, source elements will be used for\n * implementing the source selection algorithm. This happens asynchronously and\n * for most cases were there is more than one source we cannot tell what source will\n * be loaded, without re-implementing the source selection algorithm. At this time we are not\n * going to do that. There are three special cases that we do handle here though:\n *\n * 1. If there are no sources, do not fire `sourceset`.\n * 2. If there is only one `` with a `src` property/attribute that is our `src`\n * 3. If there is more than one `` but all of them have the same `src` url.\n * That will be our src.\n */\n const sources = tech.$$('source');\n const srcUrls = [];\n let src = '';\n\n // if there are no sources, do not fire sourceset\n if (!sources.length) {\n return false;\n }\n\n // only count valid/non-duplicate source elements\n for (let i = 0; i < sources.length; i++) {\n const url = sources[i].src;\n if (url && srcUrls.indexOf(url) === -1) {\n srcUrls.push(url);\n }\n }\n\n // there were no valid sources\n if (!srcUrls.length) {\n return false;\n }\n\n // there is only one valid source element url\n // use that\n if (srcUrls.length === 1) {\n src = srcUrls[0];\n }\n tech.triggerSourceset(src);\n return true;\n};\n\n/**\n * our implementation of an `innerHTML` descriptor for browsers\n * that do not have one.\n */\nconst innerHTMLDescriptorPolyfill = Object.defineProperty({}, 'innerHTML', {\n get() {\n return this.cloneNode(true).innerHTML;\n },\n set(v) {\n // make a dummy node to use innerHTML on\n const dummy = document.createElement(this.nodeName.toLowerCase());\n\n // set innerHTML to the value provided\n dummy.innerHTML = v;\n\n // make a document fragment to hold the nodes from dummy\n const docFrag = document.createDocumentFragment();\n\n // copy all of the nodes created by the innerHTML on dummy\n // to the document fragment\n while (dummy.childNodes.length) {\n docFrag.appendChild(dummy.childNodes[0]);\n }\n\n // remove content\n this.innerText = '';\n\n // now we add all of that html in one by appending the\n // document fragment. This is how innerHTML does it.\n window$1.Element.prototype.appendChild.call(this, docFrag);\n\n // then return the result that innerHTML's setter would\n return this.innerHTML;\n }\n});\n\n/**\n * Get a property descriptor given a list of priorities and the\n * property to get.\n */\nconst getDescriptor = (priority, prop) => {\n let descriptor = {};\n for (let i = 0; i < priority.length; i++) {\n descriptor = Object.getOwnPropertyDescriptor(priority[i], prop);\n if (descriptor && descriptor.set && descriptor.get) {\n break;\n }\n }\n descriptor.enumerable = true;\n descriptor.configurable = true;\n return descriptor;\n};\nconst getInnerHTMLDescriptor = tech => getDescriptor([tech.el(), window$1.HTMLMediaElement.prototype, window$1.Element.prototype, innerHTMLDescriptorPolyfill], 'innerHTML');\n\n/**\n * Patches browser internal functions so that we can tell synchronously\n * if a `` was appended to the media element. For some reason this\n * causes a `sourceset` if the the media element is ready and has no source.\n * This happens when:\n * - The page has just loaded and the media element does not have a source.\n * - The media element was emptied of all sources, then `load()` was called.\n *\n * It does this by patching the following functions/properties when they are supported:\n *\n * - `append()` - can be used to add a `` element to the media element\n * - `appendChild()` - can be used to add a `` element to the media element\n * - `insertAdjacentHTML()` - can be used to add a `` element to the media element\n * - `innerHTML` - can be used to add a `` element to the media element\n *\n * @param {Html5} tech\n * The tech object that sourceset is being setup on.\n */\nconst firstSourceWatch = function (tech) {\n const el = tech.el();\n\n // make sure firstSourceWatch isn't setup twice.\n if (el.resetSourceWatch_) {\n return;\n }\n const old = {};\n const innerDescriptor = getInnerHTMLDescriptor(tech);\n const appendWrapper = appendFn => function () {\n for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {\n args[_key19] = arguments[_key19];\n }\n const retval = appendFn.apply(el, args);\n sourcesetLoad(tech);\n return retval;\n };\n ['append', 'appendChild', 'insertAdjacentHTML'].forEach(k => {\n if (!el[k]) {\n return;\n }\n\n // store the old function\n old[k] = el[k];\n\n // call the old function with a sourceset if a source\n // was loaded\n el[k] = appendWrapper(old[k]);\n });\n Object.defineProperty(el, 'innerHTML', merge$1(innerDescriptor, {\n set: appendWrapper(innerDescriptor.set)\n }));\n el.resetSourceWatch_ = () => {\n el.resetSourceWatch_ = null;\n Object.keys(old).forEach(k => {\n el[k] = old[k];\n });\n Object.defineProperty(el, 'innerHTML', innerDescriptor);\n };\n\n // on the first sourceset, we need to revert our changes\n tech.one('sourceset', el.resetSourceWatch_);\n};\n\n/**\n * our implementation of a `src` descriptor for browsers\n * that do not have one\n */\nconst srcDescriptorPolyfill = Object.defineProperty({}, 'src', {\n get() {\n if (this.hasAttribute('src')) {\n return getAbsoluteURL(window$1.Element.prototype.getAttribute.call(this, 'src'));\n }\n return '';\n },\n set(v) {\n window$1.Element.prototype.setAttribute.call(this, 'src', v);\n return v;\n }\n});\nconst getSrcDescriptor = tech => getDescriptor([tech.el(), window$1.HTMLMediaElement.prototype, srcDescriptorPolyfill], 'src');\n\n/**\n * setup `sourceset` handling on the `Html5` tech. This function\n * patches the following element properties/functions:\n *\n * - `src` - to determine when `src` is set\n * - `setAttribute()` - to determine when `src` is set\n * - `load()` - this re-triggers the source selection algorithm, and can\n * cause a sourceset.\n *\n * If there is no source when we are adding `sourceset` support or during a `load()`\n * we also patch the functions listed in `firstSourceWatch`.\n *\n * @param {Html5} tech\n * The tech to patch\n */\nconst setupSourceset = function (tech) {\n if (!tech.featuresSourceset) {\n return;\n }\n const el = tech.el();\n\n // make sure sourceset isn't setup twice.\n if (el.resetSourceset_) {\n return;\n }\n const srcDescriptor = getSrcDescriptor(tech);\n const oldSetAttribute = el.setAttribute;\n const oldLoad = el.load;\n Object.defineProperty(el, 'src', merge$1(srcDescriptor, {\n set: v => {\n const retval = srcDescriptor.set.call(el, v);\n\n // we use the getter here to get the actual value set on src\n tech.triggerSourceset(el.src);\n return retval;\n }\n }));\n el.setAttribute = (n, v) => {\n const retval = oldSetAttribute.call(el, n, v);\n if (/src/i.test(n)) {\n tech.triggerSourceset(el.src);\n }\n return retval;\n };\n el.load = () => {\n const retval = oldLoad.call(el);\n\n // if load was called, but there was no source to fire\n // sourceset on. We have to watch for a source append\n // as that can trigger a `sourceset` when the media element\n // has no source\n if (!sourcesetLoad(tech)) {\n tech.triggerSourceset('');\n firstSourceWatch(tech);\n }\n return retval;\n };\n if (el.currentSrc) {\n tech.triggerSourceset(el.currentSrc);\n } else if (!sourcesetLoad(tech)) {\n firstSourceWatch(tech);\n }\n el.resetSourceset_ = () => {\n el.resetSourceset_ = null;\n el.load = oldLoad;\n el.setAttribute = oldSetAttribute;\n Object.defineProperty(el, 'src', srcDescriptor);\n if (el.resetSourceWatch_) {\n el.resetSourceWatch_();\n }\n };\n};\n\n/**\n * @file html5.js\n */\n\n/**\n * HTML5 Media Controller - Wrapper for HTML5 Media API\n *\n * @mixes Tech~SourceHandlerAdditions\n * @extends Tech\n */\nclass Html5 extends Tech {\n /**\n * Create an instance of this Tech.\n *\n * @param {Object} [options]\n * The key/value store of player options.\n *\n * @param {Function} [ready]\n * Callback function to call when the `HTML5` Tech is ready.\n */\n constructor(options, ready) {\n super(options, ready);\n const source = options.source;\n let crossoriginTracks = false;\n this.featuresVideoFrameCallback = this.featuresVideoFrameCallback && this.el_.tagName === 'VIDEO';\n\n // Set the source if one is provided\n // 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted)\n // 2) Check to see if the network state of the tag was failed at init, and if so, reset the source\n // anyway so the error gets fired.\n if (source && (this.el_.currentSrc !== source.src || options.tag && options.tag.initNetworkState_ === 3)) {\n this.setSource(source);\n } else {\n this.handleLateInit_(this.el_);\n }\n\n // setup sourceset after late sourceset/init\n if (options.enableSourceset) {\n this.setupSourcesetHandling_();\n }\n this.isScrubbing_ = false;\n if (this.el_.hasChildNodes()) {\n const nodes = this.el_.childNodes;\n let nodesLength = nodes.length;\n const removeNodes = [];\n while (nodesLength--) {\n const node = nodes[nodesLength];\n const nodeName = node.nodeName.toLowerCase();\n if (nodeName === 'track') {\n if (!this.featuresNativeTextTracks) {\n // Empty video tag tracks so the built-in player doesn't use them also.\n // This may not be fast enough to stop HTML5 browsers from reading the tags\n // so we'll need to turn off any default tracks if we're manually doing\n // captions and subtitles. videoElement.textTracks\n removeNodes.push(node);\n } else {\n // store HTMLTrackElement and TextTrack to remote list\n this.remoteTextTrackEls().addTrackElement_(node);\n this.remoteTextTracks().addTrack(node.track);\n this.textTracks().addTrack(node.track);\n if (!crossoriginTracks && !this.el_.hasAttribute('crossorigin') && isCrossOrigin(node.src)) {\n crossoriginTracks = true;\n }\n }\n }\n }\n for (let i = 0; i < removeNodes.length; i++) {\n this.el_.removeChild(removeNodes[i]);\n }\n }\n this.proxyNativeTracks_();\n if (this.featuresNativeTextTracks && crossoriginTracks) {\n log$1.warn('Text Tracks are being loaded from another origin but the crossorigin attribute isn\\'t used.\\n' + 'This may prevent text tracks from loading.');\n }\n\n // prevent iOS Safari from disabling metadata text tracks during native playback\n this.restoreMetadataTracksInIOSNativePlayer_();\n\n // Determine if native controls should be used\n // Our goal should be to get the custom controls on mobile solid everywhere\n // so we can remove this all together. Right now this will block custom\n // controls on touch enabled laptops like the Chrome Pixel\n if ((TOUCH_ENABLED || IS_IPHONE) && options.nativeControlsForTouch === true) {\n this.setControls(true);\n }\n\n // on iOS, we want to proxy `webkitbeginfullscreen` and `webkitendfullscreen`\n // into a `fullscreenchange` event\n this.proxyWebkitFullscreen_();\n this.triggerReady();\n }\n\n /**\n * Dispose of `HTML5` media element and remove all tracks.\n */\n dispose() {\n if (this.el_ && this.el_.resetSourceset_) {\n this.el_.resetSourceset_();\n }\n Html5.disposeMediaElement(this.el_);\n this.options_ = null;\n\n // tech will handle clearing of the emulated track list\n super.dispose();\n }\n\n /**\n * Modify the media element so that we can detect when\n * the source is changed. Fires `sourceset` just after the source has changed\n */\n setupSourcesetHandling_() {\n setupSourceset(this);\n }\n\n /**\n * When a captions track is enabled in the iOS Safari native player, all other\n * tracks are disabled (including metadata tracks), which nulls all of their\n * associated cue points. This will restore metadata tracks to their pre-fullscreen\n * state in those cases so that cue points are not needlessly lost.\n *\n * @private\n */\n restoreMetadataTracksInIOSNativePlayer_() {\n const textTracks = this.textTracks();\n let metadataTracksPreFullscreenState;\n\n // captures a snapshot of every metadata track's current state\n const takeMetadataTrackSnapshot = () => {\n metadataTracksPreFullscreenState = [];\n for (let i = 0; i < textTracks.length; i++) {\n const track = textTracks[i];\n if (track.kind === 'metadata') {\n metadataTracksPreFullscreenState.push({\n track,\n storedMode: track.mode\n });\n }\n }\n };\n\n // snapshot each metadata track's initial state, and update the snapshot\n // each time there is a track 'change' event\n takeMetadataTrackSnapshot();\n textTracks.addEventListener('change', takeMetadataTrackSnapshot);\n this.on('dispose', () => textTracks.removeEventListener('change', takeMetadataTrackSnapshot));\n const restoreTrackMode = () => {\n for (let i = 0; i < metadataTracksPreFullscreenState.length; i++) {\n const storedTrack = metadataTracksPreFullscreenState[i];\n if (storedTrack.track.mode === 'disabled' && storedTrack.track.mode !== storedTrack.storedMode) {\n storedTrack.track.mode = storedTrack.storedMode;\n }\n }\n // we only want this handler to be executed on the first 'change' event\n textTracks.removeEventListener('change', restoreTrackMode);\n };\n\n // when we enter fullscreen playback, stop updating the snapshot and\n // restore all track modes to their pre-fullscreen state\n this.on('webkitbeginfullscreen', () => {\n textTracks.removeEventListener('change', takeMetadataTrackSnapshot);\n\n // remove the listener before adding it just in case it wasn't previously removed\n textTracks.removeEventListener('change', restoreTrackMode);\n textTracks.addEventListener('change', restoreTrackMode);\n });\n\n // start updating the snapshot again after leaving fullscreen\n this.on('webkitendfullscreen', () => {\n // remove the listener before adding it just in case it wasn't previously removed\n textTracks.removeEventListener('change', takeMetadataTrackSnapshot);\n textTracks.addEventListener('change', takeMetadataTrackSnapshot);\n\n // remove the restoreTrackMode handler in case it wasn't triggered during fullscreen playback\n textTracks.removeEventListener('change', restoreTrackMode);\n });\n }\n\n /**\n * Attempt to force override of tracks for the given type\n *\n * @param {string} type - Track type to override, possible values include 'Audio',\n * 'Video', and 'Text'.\n * @param {boolean} override - If set to true native audio/video will be overridden,\n * otherwise native audio/video will potentially be used.\n * @private\n */\n overrideNative_(type, override) {\n // If there is no behavioral change don't add/remove listeners\n if (override !== this[`featuresNative${type}Tracks`]) {\n return;\n }\n const lowerCaseType = type.toLowerCase();\n if (this[`${lowerCaseType}TracksListeners_`]) {\n Object.keys(this[`${lowerCaseType}TracksListeners_`]).forEach(eventName => {\n const elTracks = this.el()[`${lowerCaseType}Tracks`];\n elTracks.removeEventListener(eventName, this[`${lowerCaseType}TracksListeners_`][eventName]);\n });\n }\n this[`featuresNative${type}Tracks`] = !override;\n this[`${lowerCaseType}TracksListeners_`] = null;\n this.proxyNativeTracksForType_(lowerCaseType);\n }\n\n /**\n * Attempt to force override of native audio tracks.\n *\n * @param {boolean} override - If set to true native audio will be overridden,\n * otherwise native audio will potentially be used.\n */\n overrideNativeAudioTracks(override) {\n this.overrideNative_('Audio', override);\n }\n\n /**\n * Attempt to force override of native video tracks.\n *\n * @param {boolean} override - If set to true native video will be overridden,\n * otherwise native video will potentially be used.\n */\n overrideNativeVideoTracks(override) {\n this.overrideNative_('Video', override);\n }\n\n /**\n * Proxy native track list events for the given type to our track\n * lists if the browser we are playing in supports that type of track list.\n *\n * @param {string} name - Track type; values include 'audio', 'video', and 'text'\n * @private\n */\n proxyNativeTracksForType_(name) {\n const props = NORMAL[name];\n const elTracks = this.el()[props.getterName];\n const techTracks = this[props.getterName]();\n if (!this[`featuresNative${props.capitalName}Tracks`] || !elTracks || !elTracks.addEventListener) {\n return;\n }\n const listeners = {\n change: e => {\n const event = {\n type: 'change',\n target: techTracks,\n currentTarget: techTracks,\n srcElement: techTracks\n };\n techTracks.trigger(event);\n\n // if we are a text track change event, we should also notify the\n // remote text track list. This can potentially cause a false positive\n // if we were to get a change event on a non-remote track and\n // we triggered the event on the remote text track list which doesn't\n // contain that track. However, best practices mean looping through the\n // list of tracks and searching for the appropriate mode value, so,\n // this shouldn't pose an issue\n if (name === 'text') {\n this[REMOTE.remoteText.getterName]().trigger(event);\n }\n },\n addtrack(e) {\n techTracks.addTrack(e.track);\n },\n removetrack(e) {\n techTracks.removeTrack(e.track);\n }\n };\n const removeOldTracks = function () {\n const removeTracks = [];\n for (let i = 0; i < techTracks.length; i++) {\n let found = false;\n for (let j = 0; j < elTracks.length; j++) {\n if (elTracks[j] === techTracks[i]) {\n found = true;\n break;\n }\n }\n if (!found) {\n removeTracks.push(techTracks[i]);\n }\n }\n while (removeTracks.length) {\n techTracks.removeTrack(removeTracks.shift());\n }\n };\n this[props.getterName + 'Listeners_'] = listeners;\n Object.keys(listeners).forEach(eventName => {\n const listener = listeners[eventName];\n elTracks.addEventListener(eventName, listener);\n this.on('dispose', e => elTracks.removeEventListener(eventName, listener));\n });\n\n // Remove (native) tracks that are not used anymore\n this.on('loadstart', removeOldTracks);\n this.on('dispose', e => this.off('loadstart', removeOldTracks));\n }\n\n /**\n * Proxy all native track list events to our track lists if the browser we are playing\n * in supports that type of track list.\n *\n * @private\n */\n proxyNativeTracks_() {\n NORMAL.names.forEach(name => {\n this.proxyNativeTracksForType_(name);\n });\n }\n\n /**\n * Create the `Html5` Tech's DOM element.\n *\n * @return {Element}\n * The element that gets created.\n */\n createEl() {\n let el = this.options_.tag;\n\n // Check if this browser supports moving the element into the box.\n // On the iPhone video will break if you move the element,\n // So we have to create a brand new element.\n // If we ingested the player div, we do not need to move the media element.\n if (!el || !(this.options_.playerElIngest || this.movingMediaElementInDOM)) {\n // If the original tag is still there, clone and remove it.\n if (el) {\n const clone = el.cloneNode(true);\n if (el.parentNode) {\n el.parentNode.insertBefore(clone, el);\n }\n Html5.disposeMediaElement(el);\n el = clone;\n } else {\n el = document.createElement('video');\n\n // determine if native controls should be used\n const tagAttributes = this.options_.tag && getAttributes(this.options_.tag);\n const attributes = merge$1({}, tagAttributes);\n if (!TOUCH_ENABLED || this.options_.nativeControlsForTouch !== true) {\n delete attributes.controls;\n }\n setAttributes(el, Object.assign(attributes, {\n id: this.options_.techId,\n class: 'vjs-tech'\n }));\n }\n el.playerId = this.options_.playerId;\n }\n if (typeof this.options_.preload !== 'undefined') {\n setAttribute(el, 'preload', this.options_.preload);\n }\n if (this.options_.disablePictureInPicture !== undefined) {\n el.disablePictureInPicture = this.options_.disablePictureInPicture;\n }\n\n // Update specific tag settings, in case they were overridden\n // `autoplay` has to be *last* so that `muted` and `playsinline` are present\n // when iOS/Safari or other browsers attempt to autoplay.\n const settingsAttrs = ['loop', 'muted', 'playsinline', 'autoplay'];\n for (let i = 0; i < settingsAttrs.length; i++) {\n const attr = settingsAttrs[i];\n const value = this.options_[attr];\n if (typeof value !== 'undefined') {\n if (value) {\n setAttribute(el, attr, attr);\n } else {\n removeAttribute(el, attr);\n }\n el[attr] = value;\n }\n }\n return el;\n }\n\n /**\n * This will be triggered if the loadstart event has already fired, before videojs was\n * ready. Two known examples of when this can happen are:\n * 1. If we're loading the playback object after it has started loading\n * 2. The media is already playing the (often with autoplay on) then\n *\n * This function will fire another loadstart so that videojs can catchup.\n *\n * @fires Tech#loadstart\n *\n * @return {undefined}\n * returns nothing.\n */\n handleLateInit_(el) {\n if (el.networkState === 0 || el.networkState === 3) {\n // The video element hasn't started loading the source yet\n // or didn't find a source\n return;\n }\n if (el.readyState === 0) {\n // NetworkState is set synchronously BUT loadstart is fired at the\n // end of the current stack, usually before setInterval(fn, 0).\n // So at this point we know loadstart may have already fired or is\n // about to fire, and either way the player hasn't seen it yet.\n // We don't want to fire loadstart prematurely here and cause a\n // double loadstart so we'll wait and see if it happens between now\n // and the next loop, and fire it if not.\n // HOWEVER, we also want to make sure it fires before loadedmetadata\n // which could also happen between now and the next loop, so we'll\n // watch for that also.\n let loadstartFired = false;\n const setLoadstartFired = function () {\n loadstartFired = true;\n };\n this.on('loadstart', setLoadstartFired);\n const triggerLoadstart = function () {\n // We did miss the original loadstart. Make sure the player\n // sees loadstart before loadedmetadata\n if (!loadstartFired) {\n this.trigger('loadstart');\n }\n };\n this.on('loadedmetadata', triggerLoadstart);\n this.ready(function () {\n this.off('loadstart', setLoadstartFired);\n this.off('loadedmetadata', triggerLoadstart);\n if (!loadstartFired) {\n // We did miss the original native loadstart. Fire it now.\n this.trigger('loadstart');\n }\n });\n return;\n }\n\n // From here on we know that loadstart already fired and we missed it.\n // The other readyState events aren't as much of a problem if we double\n // them, so not going to go to as much trouble as loadstart to prevent\n // that unless we find reason to.\n const eventsToTrigger = ['loadstart'];\n\n // loadedmetadata: newly equal to HAVE_METADATA (1) or greater\n eventsToTrigger.push('loadedmetadata');\n\n // loadeddata: newly increased to HAVE_CURRENT_DATA (2) or greater\n if (el.readyState >= 2) {\n eventsToTrigger.push('loadeddata');\n }\n\n // canplay: newly increased to HAVE_FUTURE_DATA (3) or greater\n if (el.readyState >= 3) {\n eventsToTrigger.push('canplay');\n }\n\n // canplaythrough: newly equal to HAVE_ENOUGH_DATA (4)\n if (el.readyState >= 4) {\n eventsToTrigger.push('canplaythrough');\n }\n\n // We still need to give the player time to add event listeners\n this.ready(function () {\n eventsToTrigger.forEach(function (type) {\n this.trigger(type);\n }, this);\n });\n }\n\n /**\n * Set whether we are scrubbing or not.\n * This is used to decide whether we should use `fastSeek` or not.\n * `fastSeek` is used to provide trick play on Safari browsers.\n *\n * @param {boolean} isScrubbing\n * - true for we are currently scrubbing\n * - false for we are no longer scrubbing\n */\n setScrubbing(isScrubbing) {\n this.isScrubbing_ = isScrubbing;\n }\n\n /**\n * Get whether we are scrubbing or not.\n *\n * @return {boolean} isScrubbing\n * - true for we are currently scrubbing\n * - false for we are no longer scrubbing\n */\n scrubbing() {\n return this.isScrubbing_;\n }\n\n /**\n * Set current time for the `HTML5` tech.\n *\n * @param {number} seconds\n * Set the current time of the media to this.\n */\n setCurrentTime(seconds) {\n try {\n if (this.isScrubbing_ && this.el_.fastSeek && IS_ANY_SAFARI) {\n this.el_.fastSeek(seconds);\n } else {\n this.el_.currentTime = seconds;\n }\n } catch (e) {\n log$1(e, 'Video is not ready. (Video.js)');\n // this.warning(VideoJS.warnings.videoNotReady);\n }\n }\n\n /**\n * Get the current duration of the HTML5 media element.\n *\n * @return {number}\n * The duration of the media or 0 if there is no duration.\n */\n duration() {\n // Android Chrome will report duration as Infinity for VOD HLS until after\n // playback has started, which triggers the live display erroneously.\n // Return NaN if playback has not started and trigger a durationupdate once\n // the duration can be reliably known.\n if (this.el_.duration === Infinity && IS_ANDROID && IS_CHROME && this.el_.currentTime === 0) {\n // Wait for the first `timeupdate` with currentTime > 0 - there may be\n // several with 0\n const checkProgress = () => {\n if (this.el_.currentTime > 0) {\n // Trigger durationchange for genuinely live video\n if (this.el_.duration === Infinity) {\n this.trigger('durationchange');\n }\n this.off('timeupdate', checkProgress);\n }\n };\n this.on('timeupdate', checkProgress);\n return NaN;\n }\n return this.el_.duration || NaN;\n }\n\n /**\n * Get the current width of the HTML5 media element.\n *\n * @return {number}\n * The width of the HTML5 media element.\n */\n width() {\n return this.el_.offsetWidth;\n }\n\n /**\n * Get the current height of the HTML5 media element.\n *\n * @return {number}\n * The height of the HTML5 media element.\n */\n height() {\n return this.el_.offsetHeight;\n }\n\n /**\n * Proxy iOS `webkitbeginfullscreen` and `webkitendfullscreen` into\n * `fullscreenchange` event.\n *\n * @private\n * @fires fullscreenchange\n * @listens webkitendfullscreen\n * @listens webkitbeginfullscreen\n * @listens webkitbeginfullscreen\n */\n proxyWebkitFullscreen_() {\n if (!('webkitDisplayingFullscreen' in this.el_)) {\n return;\n }\n const endFn = function () {\n this.trigger('fullscreenchange', {\n isFullscreen: false\n });\n // Safari will sometimes set controls on the videoelement when existing fullscreen.\n if (this.el_.controls && !this.options_.nativeControlsForTouch && this.controls()) {\n this.el_.controls = false;\n }\n };\n const beginFn = function () {\n if ('webkitPresentationMode' in this.el_ && this.el_.webkitPresentationMode !== 'picture-in-picture') {\n this.one('webkitendfullscreen', endFn);\n this.trigger('fullscreenchange', {\n isFullscreen: true,\n // set a flag in case another tech triggers fullscreenchange\n nativeIOSFullscreen: true\n });\n }\n };\n this.on('webkitbeginfullscreen', beginFn);\n this.on('dispose', () => {\n this.off('webkitbeginfullscreen', beginFn);\n this.off('webkitendfullscreen', endFn);\n });\n }\n\n /**\n * Check if fullscreen is supported on the video el.\n *\n * @return {boolean}\n * - True if fullscreen is supported.\n * - False if fullscreen is not supported.\n */\n supportsFullScreen() {\n return typeof this.el_.webkitEnterFullScreen === 'function';\n }\n\n /**\n * Request that the `HTML5` Tech enter fullscreen.\n */\n enterFullScreen() {\n const video = this.el_;\n if (video.paused && video.networkState <= video.HAVE_METADATA) {\n // attempt to prime the video element for programmatic access\n // this isn't necessary on the desktop but shouldn't hurt\n silencePromise(this.el_.play());\n\n // playing and pausing synchronously during the transition to fullscreen\n // can get iOS ~6.1 devices into a play/pause loop\n this.setTimeout(function () {\n video.pause();\n try {\n video.webkitEnterFullScreen();\n } catch (e) {\n this.trigger('fullscreenerror', e);\n }\n }, 0);\n } else {\n try {\n video.webkitEnterFullScreen();\n } catch (e) {\n this.trigger('fullscreenerror', e);\n }\n }\n }\n\n /**\n * Request that the `HTML5` Tech exit fullscreen.\n */\n exitFullScreen() {\n if (!this.el_.webkitDisplayingFullscreen) {\n this.trigger('fullscreenerror', new Error('The video is not fullscreen'));\n return;\n }\n this.el_.webkitExitFullScreen();\n }\n\n /**\n * Create a floating video window always on top of other windows so that users may\n * continue consuming media while they interact with other content sites, or\n * applications on their device.\n *\n * @see [Spec]{@link https://wicg.github.io/picture-in-picture}\n *\n * @return {Promise}\n * A promise with a Picture-in-Picture window.\n */\n requestPictureInPicture() {\n return this.el_.requestPictureInPicture();\n }\n\n /**\n * Native requestVideoFrameCallback if supported by browser/tech, or fallback\n * Don't use rVCF on Safari when DRM is playing, as it doesn't fire\n * Needs to be checked later than the constructor\n * This will be a false positive for clear sources loaded after a Fairplay source\n *\n * @param {function} cb function to call\n * @return {number} id of request\n */\n requestVideoFrameCallback(cb) {\n if (this.featuresVideoFrameCallback && !this.el_.webkitKeys) {\n return this.el_.requestVideoFrameCallback(cb);\n }\n return super.requestVideoFrameCallback(cb);\n }\n\n /**\n * Native or fallback requestVideoFrameCallback\n *\n * @param {number} id request id to cancel\n */\n cancelVideoFrameCallback(id) {\n if (this.featuresVideoFrameCallback && !this.el_.webkitKeys) {\n this.el_.cancelVideoFrameCallback(id);\n } else {\n super.cancelVideoFrameCallback(id);\n }\n }\n\n /**\n * A getter/setter for the `Html5` Tech's source object.\n * > Note: Please use {@link Html5#setSource}\n *\n * @param {Tech~SourceObject} [src]\n * The source object you want to set on the `HTML5` techs element.\n *\n * @return {Tech~SourceObject|undefined}\n * - The current source object when a source is not passed in.\n * - undefined when setting\n *\n * @deprecated Since version 5.\n */\n src(src) {\n if (src === undefined) {\n return this.el_.src;\n }\n\n // Setting src through `src` instead of `setSrc` will be deprecated\n this.setSrc(src);\n }\n\n /**\n * Reset the tech by removing all sources and then calling\n * {@link Html5.resetMediaElement}.\n */\n reset() {\n Html5.resetMediaElement(this.el_);\n }\n\n /**\n * Get the current source on the `HTML5` Tech. Falls back to returning the source from\n * the HTML5 media element.\n *\n * @return {Tech~SourceObject}\n * The current source object from the HTML5 tech. With a fallback to the\n * elements source.\n */\n currentSrc() {\n if (this.currentSource_) {\n return this.currentSource_.src;\n }\n return this.el_.currentSrc;\n }\n\n /**\n * Set controls attribute for the HTML5 media Element.\n *\n * @param {string} val\n * Value to set the controls attribute to\n */\n setControls(val) {\n this.el_.controls = !!val;\n }\n\n /**\n * Create and returns a remote {@link TextTrack} object.\n *\n * @param {string} kind\n * `TextTrack` kind (subtitles, captions, descriptions, chapters, or metadata)\n *\n * @param {string} [label]\n * Label to identify the text track\n *\n * @param {string} [language]\n * Two letter language abbreviation\n *\n * @return {TextTrack}\n * The TextTrack that gets created.\n */\n addTextTrack(kind, label, language) {\n if (!this.featuresNativeTextTracks) {\n return super.addTextTrack(kind, label, language);\n }\n return this.el_.addTextTrack(kind, label, language);\n }\n\n /**\n * Creates either native TextTrack or an emulated TextTrack depending\n * on the value of `featuresNativeTextTracks`\n *\n * @param {Object} options\n * The object should contain the options to initialize the TextTrack with.\n *\n * @param {string} [options.kind]\n * `TextTrack` kind (subtitles, captions, descriptions, chapters, or metadata).\n *\n * @param {string} [options.label]\n * Label to identify the text track\n *\n * @param {string} [options.language]\n * Two letter language abbreviation.\n *\n * @param {boolean} [options.default]\n * Default this track to on.\n *\n * @param {string} [options.id]\n * The internal id to assign this track.\n *\n * @param {string} [options.src]\n * A source url for the track.\n *\n * @return {HTMLTrackElement}\n * The track element that gets created.\n */\n createRemoteTextTrack(options) {\n if (!this.featuresNativeTextTracks) {\n return super.createRemoteTextTrack(options);\n }\n const htmlTrackElement = document.createElement('track');\n if (options.kind) {\n htmlTrackElement.kind = options.kind;\n }\n if (options.label) {\n htmlTrackElement.label = options.label;\n }\n if (options.language || options.srclang) {\n htmlTrackElement.srclang = options.language || options.srclang;\n }\n if (options.default) {\n htmlTrackElement.default = options.default;\n }\n if (options.id) {\n htmlTrackElement.id = options.id;\n }\n if (options.src) {\n htmlTrackElement.src = options.src;\n }\n return htmlTrackElement;\n }\n\n /**\n * Creates a remote text track object and returns an html track element.\n *\n * @param {Object} options The object should contain values for\n * kind, language, label, and src (location of the WebVTT file)\n * @param {boolean} [manualCleanup=false] if set to true, the TextTrack\n * will not be removed from the TextTrackList and HtmlTrackElementList\n * after a source change\n * @return {HTMLTrackElement} An Html Track Element.\n * This can be an emulated {@link HTMLTrackElement} or a native one.\n *\n */\n addRemoteTextTrack(options, manualCleanup) {\n const htmlTrackElement = super.addRemoteTextTrack(options, manualCleanup);\n if (this.featuresNativeTextTracks) {\n this.el().appendChild(htmlTrackElement);\n }\n return htmlTrackElement;\n }\n\n /**\n * Remove remote `TextTrack` from `TextTrackList` object\n *\n * @param {TextTrack} track\n * `TextTrack` object to remove\n */\n removeRemoteTextTrack(track) {\n super.removeRemoteTextTrack(track);\n if (this.featuresNativeTextTracks) {\n const tracks = this.$$('track');\n let i = tracks.length;\n while (i--) {\n if (track === tracks[i] || track === tracks[i].track) {\n this.el().removeChild(tracks[i]);\n }\n }\n }\n }\n\n /**\n * Gets available media playback quality metrics as specified by the W3C's Media\n * Playback Quality API.\n *\n * @see [Spec]{@link https://wicg.github.io/media-playback-quality}\n *\n * @return {Object}\n * An object with supported media playback quality metrics\n */\n getVideoPlaybackQuality() {\n if (typeof this.el().getVideoPlaybackQuality === 'function') {\n return this.el().getVideoPlaybackQuality();\n }\n const videoPlaybackQuality = {};\n if (typeof this.el().webkitDroppedFrameCount !== 'undefined' && typeof this.el().webkitDecodedFrameCount !== 'undefined') {\n videoPlaybackQuality.droppedVideoFrames = this.el().webkitDroppedFrameCount;\n videoPlaybackQuality.totalVideoFrames = this.el().webkitDecodedFrameCount;\n }\n if (window$1.performance) {\n videoPlaybackQuality.creationTime = window$1.performance.now();\n }\n return videoPlaybackQuality;\n }\n}\n\n/* HTML5 Support Testing ---------------------------------------------------- */\n\n/**\n * Element for testing browser HTML5 media capabilities\n *\n * @type {Element}\n * @constant\n * @private\n */\ndefineLazyProperty(Html5, 'TEST_VID', function () {\n if (!isReal()) {\n return;\n }\n const video = document.createElement('video');\n const track = document.createElement('track');\n track.kind = 'captions';\n track.srclang = 'en';\n track.label = 'English';\n video.appendChild(track);\n return video;\n});\n\n/**\n * Check if HTML5 media is supported by this browser/device.\n *\n * @return {boolean}\n * - True if HTML5 media is supported.\n * - False if HTML5 media is not supported.\n */\nHtml5.isSupported = function () {\n // IE with no Media Player is a LIAR! (#984)\n try {\n Html5.TEST_VID.volume = 0.5;\n } catch (e) {\n return false;\n }\n return !!(Html5.TEST_VID && Html5.TEST_VID.canPlayType);\n};\n\n/**\n * Check if the tech can support the given type\n *\n * @param {string} type\n * The mimetype to check\n * @return {string} 'probably', 'maybe', or '' (empty string)\n */\nHtml5.canPlayType = function (type) {\n return Html5.TEST_VID.canPlayType(type);\n};\n\n/**\n * Check if the tech can support the given source\n *\n * @param {Object} srcObj\n * The source object\n * @param {Object} options\n * The options passed to the tech\n * @return {string} 'probably', 'maybe', or '' (empty string)\n */\nHtml5.canPlaySource = function (srcObj, options) {\n return Html5.canPlayType(srcObj.type);\n};\n\n/**\n * Check if the volume can be changed in this browser/device.\n * Volume cannot be changed in a lot of mobile devices.\n * Specifically, it can't be changed from 1 on iOS.\n *\n * @return {boolean}\n * - True if volume can be controlled\n * - False otherwise\n */\nHtml5.canControlVolume = function () {\n // IE will error if Windows Media Player not installed #3315\n try {\n const volume = Html5.TEST_VID.volume;\n Html5.TEST_VID.volume = volume / 2 + 0.1;\n const canControl = volume !== Html5.TEST_VID.volume;\n\n // With the introduction of iOS 15, there are cases where the volume is read as\n // changed but reverts back to its original state at the start of the next tick.\n // To determine whether volume can be controlled on iOS,\n // a timeout is set and the volume is checked asynchronously.\n // Since `features` doesn't currently work asynchronously, the value is manually set.\n if (canControl && IS_IOS) {\n window$1.setTimeout(() => {\n if (Html5 && Html5.prototype) {\n Html5.prototype.featuresVolumeControl = volume !== Html5.TEST_VID.volume;\n }\n });\n\n // default iOS to false, which will be updated in the timeout above.\n return false;\n }\n return canControl;\n } catch (e) {\n return false;\n }\n};\n\n/**\n * Check if the volume can be muted in this browser/device.\n * Some devices, e.g. iOS, don't allow changing volume\n * but permits muting/unmuting.\n *\n * @return {boolean}\n * - True if volume can be muted\n * - False otherwise\n */\nHtml5.canMuteVolume = function () {\n try {\n const muted = Html5.TEST_VID.muted;\n\n // in some versions of iOS muted property doesn't always\n // work, so we want to set both property and attribute\n Html5.TEST_VID.muted = !muted;\n if (Html5.TEST_VID.muted) {\n setAttribute(Html5.TEST_VID, 'muted', 'muted');\n } else {\n removeAttribute(Html5.TEST_VID, 'muted', 'muted');\n }\n return muted !== Html5.TEST_VID.muted;\n } catch (e) {\n return false;\n }\n};\n\n/**\n * Check if the playback rate can be changed in this browser/device.\n *\n * @return {boolean}\n * - True if playback rate can be controlled\n * - False otherwise\n */\nHtml5.canControlPlaybackRate = function () {\n // Playback rate API is implemented in Android Chrome, but doesn't do anything\n // https://github.com/videojs/video.js/issues/3180\n if (IS_ANDROID && IS_CHROME && CHROME_VERSION < 58) {\n return false;\n }\n // IE will error if Windows Media Player not installed #3315\n try {\n const playbackRate = Html5.TEST_VID.playbackRate;\n Html5.TEST_VID.playbackRate = playbackRate / 2 + 0.1;\n return playbackRate !== Html5.TEST_VID.playbackRate;\n } catch (e) {\n return false;\n }\n};\n\n/**\n * Check if we can override a video/audio elements attributes, with\n * Object.defineProperty.\n *\n * @return {boolean}\n * - True if builtin attributes can be overridden\n * - False otherwise\n */\nHtml5.canOverrideAttributes = function () {\n // if we cannot overwrite the src/innerHTML property, there is no support\n // iOS 7 safari for instance cannot do this.\n try {\n const noop = () => {};\n Object.defineProperty(document.createElement('video'), 'src', {\n get: noop,\n set: noop\n });\n Object.defineProperty(document.createElement('audio'), 'src', {\n get: noop,\n set: noop\n });\n Object.defineProperty(document.createElement('video'), 'innerHTML', {\n get: noop,\n set: noop\n });\n Object.defineProperty(document.createElement('audio'), 'innerHTML', {\n get: noop,\n set: noop\n });\n } catch (e) {\n return false;\n }\n return true;\n};\n\n/**\n * Check to see if native `TextTrack`s are supported by this browser/device.\n *\n * @return {boolean}\n * - True if native `TextTrack`s are supported.\n * - False otherwise\n */\nHtml5.supportsNativeTextTracks = function () {\n return IS_ANY_SAFARI || IS_IOS && IS_CHROME;\n};\n\n/**\n * Check to see if native `VideoTrack`s are supported by this browser/device\n *\n * @return {boolean}\n * - True if native `VideoTrack`s are supported.\n * - False otherwise\n */\nHtml5.supportsNativeVideoTracks = function () {\n return !!(Html5.TEST_VID && Html5.TEST_VID.videoTracks);\n};\n\n/**\n * Check to see if native `AudioTrack`s are supported by this browser/device\n *\n * @return {boolean}\n * - True if native `AudioTrack`s are supported.\n * - False otherwise\n */\nHtml5.supportsNativeAudioTracks = function () {\n return !!(Html5.TEST_VID && Html5.TEST_VID.audioTracks);\n};\n\n/**\n * An array of events available on the Html5 tech.\n *\n * @private\n * @type {Array}\n */\nHtml5.Events = ['loadstart', 'suspend', 'abort', 'error', 'emptied', 'stalled', 'loadedmetadata', 'loadeddata', 'canplay', 'canplaythrough', 'playing', 'waiting', 'seeking', 'seeked', 'ended', 'durationchange', 'timeupdate', 'progress', 'play', 'pause', 'ratechange', 'resize', 'volumechange'];\n\n/**\n * Boolean indicating whether the `Tech` supports volume control.\n *\n * @type {boolean}\n * @default {@link Html5.canControlVolume}\n */\n/**\n * Boolean indicating whether the `Tech` supports muting volume.\n *\n * @type {boolean}\n * @default {@link Html5.canMuteVolume}\n */\n\n/**\n * Boolean indicating whether the `Tech` supports changing the speed at which the media\n * plays. Examples:\n * - Set player to play 2x (twice) as fast\n * - Set player to play 0.5x (half) as fast\n *\n * @type {boolean}\n * @default {@link Html5.canControlPlaybackRate}\n */\n\n/**\n * Boolean indicating whether the `Tech` supports the `sourceset` event.\n *\n * @type {boolean}\n * @default\n */\n/**\n * Boolean indicating whether the `HTML5` tech currently supports native `TextTrack`s.\n *\n * @type {boolean}\n * @default {@link Html5.supportsNativeTextTracks}\n */\n/**\n * Boolean indicating whether the `HTML5` tech currently supports native `VideoTrack`s.\n *\n * @type {boolean}\n * @default {@link Html5.supportsNativeVideoTracks}\n */\n/**\n * Boolean indicating whether the `HTML5` tech currently supports native `AudioTrack`s.\n *\n * @type {boolean}\n * @default {@link Html5.supportsNativeAudioTracks}\n */\n[['featuresMuteControl', 'canMuteVolume'], ['featuresPlaybackRate', 'canControlPlaybackRate'], ['featuresSourceset', 'canOverrideAttributes'], ['featuresNativeTextTracks', 'supportsNativeTextTracks'], ['featuresNativeVideoTracks', 'supportsNativeVideoTracks'], ['featuresNativeAudioTracks', 'supportsNativeAudioTracks']].forEach(function (_ref3) {\n let _ref4 = _slicedToArray(_ref3, 2),\n key = _ref4[0],\n fn = _ref4[1];\n defineLazyProperty(Html5.prototype, key, () => Html5[fn](), true);\n});\nHtml5.prototype.featuresVolumeControl = Html5.canControlVolume();\n\n/**\n * Boolean indicating whether the `HTML5` tech currently supports the media element\n * moving in the DOM. iOS breaks if you move the media element, so this is set this to\n * false there. Everywhere else this should be true.\n *\n * @type {boolean}\n * @default\n */\nHtml5.prototype.movingMediaElementInDOM = !IS_IOS;\n\n// TODO: Previous comment: No longer appears to be used. Can probably be removed.\n// Is this true?\n/**\n * Boolean indicating whether the `HTML5` tech currently supports automatic media resize\n * when going into fullscreen.\n *\n * @type {boolean}\n * @default\n */\nHtml5.prototype.featuresFullscreenResize = true;\n\n/**\n * Boolean indicating whether the `HTML5` tech currently supports the progress event.\n * If this is false, manual `progress` events will be triggered instead.\n *\n * @type {boolean}\n * @default\n */\nHtml5.prototype.featuresProgressEvents = true;\n\n/**\n * Boolean indicating whether the `HTML5` tech currently supports the timeupdate event.\n * If this is false, manual `timeupdate` events will be triggered instead.\n *\n * @default\n */\nHtml5.prototype.featuresTimeupdateEvents = true;\n\n/**\n * Whether the HTML5 el supports `requestVideoFrameCallback`\n *\n * @type {boolean}\n */\nHtml5.prototype.featuresVideoFrameCallback = !!(Html5.TEST_VID && Html5.TEST_VID.requestVideoFrameCallback);\nHtml5.disposeMediaElement = function (el) {\n if (!el) {\n return;\n }\n if (el.parentNode) {\n el.parentNode.removeChild(el);\n }\n\n // remove any child track or source nodes to prevent their loading\n while (el.hasChildNodes()) {\n el.removeChild(el.firstChild);\n }\n\n // remove any src reference. not setting `src=''` because that causes a warning\n // in firefox\n el.removeAttribute('src');\n\n // force the media element to update its loading state by calling load()\n // however IE on Windows 7N has a bug that throws an error so need a try/catch (#793)\n if (typeof el.load === 'function') {\n // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)\n (function () {\n try {\n el.load();\n } catch (e) {\n // not supported\n }\n })();\n }\n};\nHtml5.resetMediaElement = function (el) {\n if (!el) {\n return;\n }\n const sources = el.querySelectorAll('source');\n let i = sources.length;\n while (i--) {\n el.removeChild(sources[i]);\n }\n\n // remove any src reference.\n // not setting `src=''` because that throws an error\n el.removeAttribute('src');\n if (typeof el.load === 'function') {\n // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)\n (function () {\n try {\n el.load();\n } catch (e) {\n // satisfy linter\n }\n })();\n }\n};\n\n/* Native HTML5 element property wrapping ----------------------------------- */\n// Wrap native boolean attributes with getters that check both property and attribute\n// The list is as followed:\n// muted, defaultMuted, autoplay, controls, loop, playsinline\n[\n/**\n * Get the value of `muted` from the media element. `muted` indicates\n * that the volume for the media should be set to silent. This does not actually change\n * the `volume` attribute.\n *\n * @method Html5#muted\n * @return {boolean}\n * - True if the value of `volume` should be ignored and the audio set to silent.\n * - False if the value of `volume` should be used.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-muted}\n */\n'muted',\n/**\n * Get the value of `defaultMuted` from the media element. `defaultMuted` indicates\n * whether the media should start muted or not. Only changes the default state of the\n * media. `muted` and `defaultMuted` can have different values. {@link Html5#muted} indicates the\n * current state.\n *\n * @method Html5#defaultMuted\n * @return {boolean}\n * - The value of `defaultMuted` from the media element.\n * - True indicates that the media should start muted.\n * - False indicates that the media should not start muted\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-defaultmuted}\n */\n'defaultMuted',\n/**\n * Get the value of `autoplay` from the media element. `autoplay` indicates\n * that the media should start to play as soon as the page is ready.\n *\n * @method Html5#autoplay\n * @return {boolean}\n * - The value of `autoplay` from the media element.\n * - True indicates that the media should start as soon as the page loads.\n * - False indicates that the media should not start as soon as the page loads.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-autoplay}\n */\n'autoplay',\n/**\n * Get the value of `controls` from the media element. `controls` indicates\n * whether the native media controls should be shown or hidden.\n *\n * @method Html5#controls\n * @return {boolean}\n * - The value of `controls` from the media element.\n * - True indicates that native controls should be showing.\n * - False indicates that native controls should be hidden.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-controls}\n */\n'controls',\n/**\n * Get the value of `loop` from the media element. `loop` indicates\n * that the media should return to the start of the media and continue playing once\n * it reaches the end.\n *\n * @method Html5#loop\n * @return {boolean}\n * - The value of `loop` from the media element.\n * - True indicates that playback should seek back to start once\n * the end of a media is reached.\n * - False indicates that playback should not loop back to the start when the\n * end of the media is reached.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-loop}\n */\n'loop',\n/**\n * Get the value of `playsinline` from the media element. `playsinline` indicates\n * to the browser that non-fullscreen playback is preferred when fullscreen\n * playback is the native default, such as in iOS Safari.\n *\n * @method Html5#playsinline\n * @return {boolean}\n * - The value of `playsinline` from the media element.\n * - True indicates that the media should play inline.\n * - False indicates that the media should not play inline.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/#attr-video-playsinline}\n */\n'playsinline'].forEach(function (prop) {\n Html5.prototype[prop] = function () {\n return this.el_[prop] || this.el_.hasAttribute(prop);\n };\n});\n\n// Wrap native boolean attributes with setters that set both property and attribute\n// The list is as followed:\n// setMuted, setDefaultMuted, setAutoplay, setLoop, setPlaysinline\n// setControls is special-cased above\n[\n/**\n * Set the value of `muted` on the media element. `muted` indicates that the current\n * audio level should be silent.\n *\n * @method Html5#setMuted\n * @param {boolean} muted\n * - True if the audio should be set to silent\n * - False otherwise\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-muted}\n */\n'muted',\n/**\n * Set the value of `defaultMuted` on the media element. `defaultMuted` indicates that the current\n * audio level should be silent, but will only effect the muted level on initial playback..\n *\n * @method Html5.prototype.setDefaultMuted\n * @param {boolean} defaultMuted\n * - True if the audio should be set to silent\n * - False otherwise\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-defaultmuted}\n */\n'defaultMuted',\n/**\n * Set the value of `autoplay` on the media element. `autoplay` indicates\n * that the media should start to play as soon as the page is ready.\n *\n * @method Html5#setAutoplay\n * @param {boolean} autoplay\n * - True indicates that the media should start as soon as the page loads.\n * - False indicates that the media should not start as soon as the page loads.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-autoplay}\n */\n'autoplay',\n/**\n * Set the value of `loop` on the media element. `loop` indicates\n * that the media should return to the start of the media and continue playing once\n * it reaches the end.\n *\n * @method Html5#setLoop\n * @param {boolean} loop\n * - True indicates that playback should seek back to start once\n * the end of a media is reached.\n * - False indicates that playback should not loop back to the start when the\n * end of the media is reached.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-loop}\n */\n'loop',\n/**\n * Set the value of `playsinline` from the media element. `playsinline` indicates\n * to the browser that non-fullscreen playback is preferred when fullscreen\n * playback is the native default, such as in iOS Safari.\n *\n * @method Html5#setPlaysinline\n * @param {boolean} playsinline\n * - True indicates that the media should play inline.\n * - False indicates that the media should not play inline.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/#attr-video-playsinline}\n */\n'playsinline'].forEach(function (prop) {\n Html5.prototype['set' + toTitleCase$1(prop)] = function (v) {\n this.el_[prop] = v;\n if (v) {\n this.el_.setAttribute(prop, prop);\n } else {\n this.el_.removeAttribute(prop);\n }\n };\n});\n\n// Wrap native properties with a getter\n// The list is as followed\n// paused, currentTime, buffered, volume, poster, preload, error, seeking\n// seekable, ended, playbackRate, defaultPlaybackRate, disablePictureInPicture\n// played, networkState, readyState, videoWidth, videoHeight, crossOrigin\n[\n/**\n * Get the value of `paused` from the media element. `paused` indicates whether the media element\n * is currently paused or not.\n *\n * @method Html5#paused\n * @return {boolean}\n * The value of `paused` from the media element.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-paused}\n */\n'paused',\n/**\n * Get the value of `currentTime` from the media element. `currentTime` indicates\n * the current second that the media is at in playback.\n *\n * @method Html5#currentTime\n * @return {number}\n * The value of `currentTime` from the media element.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-currenttime}\n */\n'currentTime',\n/**\n * Get the value of `buffered` from the media element. `buffered` is a `TimeRange`\n * object that represents the parts of the media that are already downloaded and\n * available for playback.\n *\n * @method Html5#buffered\n * @return {TimeRange}\n * The value of `buffered` from the media element.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-buffered}\n */\n'buffered',\n/**\n * Get the value of `volume` from the media element. `volume` indicates\n * the current playback volume of audio for a media. `volume` will be a value from 0\n * (silent) to 1 (loudest and default).\n *\n * @method Html5#volume\n * @return {number}\n * The value of `volume` from the media element. Value will be between 0-1.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-a-volume}\n */\n'volume',\n/**\n * Get the value of `poster` from the media element. `poster` indicates\n * that the url of an image file that can/will be shown when no media data is available.\n *\n * @method Html5#poster\n * @return {string}\n * The value of `poster` from the media element. Value will be a url to an\n * image.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-video-poster}\n */\n'poster',\n/**\n * Get the value of `preload` from the media element. `preload` indicates\n * what should download before the media is interacted with. It can have the following\n * values:\n * - none: nothing should be downloaded\n * - metadata: poster and the first few frames of the media may be downloaded to get\n * media dimensions and other metadata\n * - auto: allow the media and metadata for the media to be downloaded before\n * interaction\n *\n * @method Html5#preload\n * @return {string}\n * The value of `preload` from the media element. Will be 'none', 'metadata',\n * or 'auto'.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-preload}\n */\n'preload',\n/**\n * Get the value of the `error` from the media element. `error` indicates any\n * MediaError that may have occurred during playback. If error returns null there is no\n * current error.\n *\n * @method Html5#error\n * @return {MediaError|null}\n * The value of `error` from the media element. Will be `MediaError` if there\n * is a current error and null otherwise.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-error}\n */\n'error',\n/**\n * Get the value of `seeking` from the media element. `seeking` indicates whether the\n * media is currently seeking to a new position or not.\n *\n * @method Html5#seeking\n * @return {boolean}\n * - The value of `seeking` from the media element.\n * - True indicates that the media is currently seeking to a new position.\n * - False indicates that the media is not seeking to a new position at this time.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-seeking}\n */\n'seeking',\n/**\n * Get the value of `seekable` from the media element. `seekable` returns a\n * `TimeRange` object indicating ranges of time that can currently be `seeked` to.\n *\n * @method Html5#seekable\n * @return {TimeRange}\n * The value of `seekable` from the media element. A `TimeRange` object\n * indicating the current ranges of time that can be seeked to.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-seekable}\n */\n'seekable',\n/**\n * Get the value of `ended` from the media element. `ended` indicates whether\n * the media has reached the end or not.\n *\n * @method Html5#ended\n * @return {boolean}\n * - The value of `ended` from the media element.\n * - True indicates that the media has ended.\n * - False indicates that the media has not ended.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-ended}\n */\n'ended',\n/**\n * Get the value of `playbackRate` from the media element. `playbackRate` indicates\n * the rate at which the media is currently playing back. Examples:\n * - if playbackRate is set to 2, media will play twice as fast.\n * - if playbackRate is set to 0.5, media will play half as fast.\n *\n * @method Html5#playbackRate\n * @return {number}\n * The value of `playbackRate` from the media element. A number indicating\n * the current playback speed of the media, where 1 is normal speed.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-playbackrate}\n */\n'playbackRate',\n/**\n * Get the value of `defaultPlaybackRate` from the media element. `defaultPlaybackRate` indicates\n * the rate at which the media is currently playing back. This value will not indicate the current\n * `playbackRate` after playback has started, use {@link Html5#playbackRate} for that.\n *\n * Examples:\n * - if defaultPlaybackRate is set to 2, media will play twice as fast.\n * - if defaultPlaybackRate is set to 0.5, media will play half as fast.\n *\n * @method Html5.prototype.defaultPlaybackRate\n * @return {number}\n * The value of `defaultPlaybackRate` from the media element. A number indicating\n * the current playback speed of the media, where 1 is normal speed.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-playbackrate}\n */\n'defaultPlaybackRate',\n/**\n * Get the value of 'disablePictureInPicture' from the video element.\n *\n * @method Html5#disablePictureInPicture\n * @return {boolean} value\n * - The value of `disablePictureInPicture` from the video element.\n * - True indicates that the video can't be played in Picture-In-Picture mode\n * - False indicates that the video can be played in Picture-In-Picture mode\n *\n * @see [Spec]{@link https://w3c.github.io/picture-in-picture/#disable-pip}\n */\n'disablePictureInPicture',\n/**\n * Get the value of `played` from the media element. `played` returns a `TimeRange`\n * object representing points in the media timeline that have been played.\n *\n * @method Html5#played\n * @return {TimeRange}\n * The value of `played` from the media element. A `TimeRange` object indicating\n * the ranges of time that have been played.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-played}\n */\n'played',\n/**\n * Get the value of `networkState` from the media element. `networkState` indicates\n * the current network state. It returns an enumeration from the following list:\n * - 0: NETWORK_EMPTY\n * - 1: NETWORK_IDLE\n * - 2: NETWORK_LOADING\n * - 3: NETWORK_NO_SOURCE\n *\n * @method Html5#networkState\n * @return {number}\n * The value of `networkState` from the media element. This will be a number\n * from the list in the description.\n *\n * @see [Spec] {@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-networkstate}\n */\n'networkState',\n/**\n * Get the value of `readyState` from the media element. `readyState` indicates\n * the current state of the media element. It returns an enumeration from the\n * following list:\n * - 0: HAVE_NOTHING\n * - 1: HAVE_METADATA\n * - 2: HAVE_CURRENT_DATA\n * - 3: HAVE_FUTURE_DATA\n * - 4: HAVE_ENOUGH_DATA\n *\n * @method Html5#readyState\n * @return {number}\n * The value of `readyState` from the media element. This will be a number\n * from the list in the description.\n *\n * @see [Spec] {@link https://www.w3.org/TR/html5/embedded-content-0.html#ready-states}\n */\n'readyState',\n/**\n * Get the value of `videoWidth` from the video element. `videoWidth` indicates\n * the current width of the video in css pixels.\n *\n * @method Html5#videoWidth\n * @return {number}\n * The value of `videoWidth` from the video element. This will be a number\n * in css pixels.\n *\n * @see [Spec] {@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-video-videowidth}\n */\n'videoWidth',\n/**\n * Get the value of `videoHeight` from the video element. `videoHeight` indicates\n * the current height of the video in css pixels.\n *\n * @method Html5#videoHeight\n * @return {number}\n * The value of `videoHeight` from the video element. This will be a number\n * in css pixels.\n *\n * @see [Spec] {@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-video-videowidth}\n */\n'videoHeight',\n/**\n * Get the value of `crossOrigin` from the media element. `crossOrigin` indicates\n * to the browser that should sent the cookies along with the requests for the\n * different assets/playlists\n *\n * @method Html5#crossOrigin\n * @return {string}\n * - anonymous indicates that the media should not sent cookies.\n * - use-credentials indicates that the media should sent cookies along the requests.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/#attr-media-crossorigin}\n */\n'crossOrigin'].forEach(function (prop) {\n Html5.prototype[prop] = function () {\n return this.el_[prop];\n };\n});\n\n// Wrap native properties with a setter in this format:\n// set + toTitleCase(name)\n// The list is as follows:\n// setVolume, setSrc, setPoster, setPreload, setPlaybackRate, setDefaultPlaybackRate,\n// setDisablePictureInPicture, setCrossOrigin\n[\n/**\n * Set the value of `volume` on the media element. `volume` indicates the current\n * audio level as a percentage in decimal form. This means that 1 is 100%, 0.5 is 50%, and\n * so on.\n *\n * @method Html5#setVolume\n * @param {number} percentAsDecimal\n * The volume percent as a decimal. Valid range is from 0-1.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-a-volume}\n */\n'volume',\n/**\n * Set the value of `src` on the media element. `src` indicates the current\n * {@link Tech~SourceObject} for the media.\n *\n * @method Html5#setSrc\n * @param {Tech~SourceObject} src\n * The source object to set as the current source.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-src}\n */\n'src',\n/**\n * Set the value of `poster` on the media element. `poster` is the url to\n * an image file that can/will be shown when no media data is available.\n *\n * @method Html5#setPoster\n * @param {string} poster\n * The url to an image that should be used as the `poster` for the media\n * element.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-poster}\n */\n'poster',\n/**\n * Set the value of `preload` on the media element. `preload` indicates\n * what should download before the media is interacted with. It can have the following\n * values:\n * - none: nothing should be downloaded\n * - metadata: poster and the first few frames of the media may be downloaded to get\n * media dimensions and other metadata\n * - auto: allow the media and metadata for the media to be downloaded before\n * interaction\n *\n * @method Html5#setPreload\n * @param {string} preload\n * The value of `preload` to set on the media element. Must be 'none', 'metadata',\n * or 'auto'.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-preload}\n */\n'preload',\n/**\n * Set the value of `playbackRate` on the media element. `playbackRate` indicates\n * the rate at which the media should play back. Examples:\n * - if playbackRate is set to 2, media will play twice as fast.\n * - if playbackRate is set to 0.5, media will play half as fast.\n *\n * @method Html5#setPlaybackRate\n * @return {number}\n * The value of `playbackRate` from the media element. A number indicating\n * the current playback speed of the media, where 1 is normal speed.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-playbackrate}\n */\n'playbackRate',\n/**\n * Set the value of `defaultPlaybackRate` on the media element. `defaultPlaybackRate` indicates\n * the rate at which the media should play back upon initial startup. Changing this value\n * after a video has started will do nothing. Instead you should used {@link Html5#setPlaybackRate}.\n *\n * Example Values:\n * - if playbackRate is set to 2, media will play twice as fast.\n * - if playbackRate is set to 0.5, media will play half as fast.\n *\n * @method Html5.prototype.setDefaultPlaybackRate\n * @return {number}\n * The value of `defaultPlaybackRate` from the media element. A number indicating\n * the current playback speed of the media, where 1 is normal speed.\n *\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-defaultplaybackrate}\n */\n'defaultPlaybackRate',\n/**\n * Prevents the browser from suggesting a Picture-in-Picture context menu\n * or to request Picture-in-Picture automatically in some cases.\n *\n * @method Html5#setDisablePictureInPicture\n * @param {boolean} value\n * The true value will disable Picture-in-Picture mode.\n *\n * @see [Spec]{@link https://w3c.github.io/picture-in-picture/#disable-pip}\n */\n'disablePictureInPicture',\n/**\n * Set the value of `crossOrigin` from the media element. `crossOrigin` indicates\n * to the browser that should sent the cookies along with the requests for the\n * different assets/playlists\n *\n * @method Html5#setCrossOrigin\n * @param {string} crossOrigin\n * - anonymous indicates that the media should not sent cookies.\n * - use-credentials indicates that the media should sent cookies along the requests.\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/#attr-media-crossorigin}\n */\n'crossOrigin'].forEach(function (prop) {\n Html5.prototype['set' + toTitleCase$1(prop)] = function (v) {\n this.el_[prop] = v;\n };\n});\n\n// wrap native functions with a function\n// The list is as follows:\n// pause, load, play\n[\n/**\n * A wrapper around the media elements `pause` function. This will call the `HTML5`\n * media elements `pause` function.\n *\n * @method Html5#pause\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-pause}\n */\n'pause',\n/**\n * A wrapper around the media elements `load` function. This will call the `HTML5`s\n * media element `load` function.\n *\n * @method Html5#load\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-load}\n */\n'load',\n/**\n * A wrapper around the media elements `play` function. This will call the `HTML5`s\n * media element `play` function.\n *\n * @method Html5#play\n * @see [Spec]{@link https://www.w3.org/TR/html5/embedded-content-0.html#dom-media-play}\n */\n'play'].forEach(function (prop) {\n Html5.prototype[prop] = function () {\n return this.el_[prop]();\n };\n});\nTech.withSourceHandlers(Html5);\n\n/**\n * Native source handler for Html5, simply passes the source to the media element.\n *\n * @property {Tech~SourceObject} source\n * The source object\n *\n * @property {Html5} tech\n * The instance of the HTML5 tech.\n */\nHtml5.nativeSourceHandler = {};\n\n/**\n * Check if the media element can play the given mime type.\n *\n * @param {string} type\n * The mimetype to check\n *\n * @return {string}\n * 'probably', 'maybe', or '' (empty string)\n */\nHtml5.nativeSourceHandler.canPlayType = function (type) {\n // IE without MediaPlayer throws an error (#519)\n try {\n return Html5.TEST_VID.canPlayType(type);\n } catch (e) {\n return '';\n }\n};\n\n/**\n * Check if the media element can handle a source natively.\n *\n * @param {Tech~SourceObject} source\n * The source object\n *\n * @param {Object} [options]\n * Options to be passed to the tech.\n *\n * @return {string}\n * 'probably', 'maybe', or '' (empty string).\n */\nHtml5.nativeSourceHandler.canHandleSource = function (source, options) {\n // If a type was provided we should rely on that\n if (source.type) {\n return Html5.nativeSourceHandler.canPlayType(source.type);\n\n // If no type, fall back to checking 'video/[EXTENSION]'\n } else if (source.src) {\n const ext = getFileExtension(source.src);\n return Html5.nativeSourceHandler.canPlayType(`video/${ext}`);\n }\n return '';\n};\n\n/**\n * Pass the source to the native media element.\n *\n * @param {Tech~SourceObject} source\n * The source object\n *\n * @param {Html5} tech\n * The instance of the Html5 tech\n *\n * @param {Object} [options]\n * The options to pass to the source\n */\nHtml5.nativeSourceHandler.handleSource = function (source, tech, options) {\n tech.setSrc(source.src);\n};\n\n/**\n * A noop for the native dispose function, as cleanup is not needed.\n */\nHtml5.nativeSourceHandler.dispose = function () {};\n\n// Register the native source handler\nHtml5.registerSourceHandler(Html5.nativeSourceHandler);\nTech.registerTech('Html5', Html5);\n\n/**\n * @file player.js\n */\n\n// The following tech events are simply re-triggered\n// on the player when they happen\nconst TECH_EVENTS_RETRIGGER = [\n/**\n * Fired while the user agent is downloading media data.\n *\n * @event Player#progress\n * @type {Event}\n */\n/**\n * Retrigger the `progress` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechProgress_\n * @fires Player#progress\n * @listens Tech#progress\n */\n'progress',\n/**\n * Fires when the loading of an audio/video is aborted.\n *\n * @event Player#abort\n * @type {Event}\n */\n/**\n * Retrigger the `abort` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechAbort_\n * @fires Player#abort\n * @listens Tech#abort\n */\n'abort',\n/**\n * Fires when the browser is intentionally not getting media data.\n *\n * @event Player#suspend\n * @type {Event}\n */\n/**\n * Retrigger the `suspend` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechSuspend_\n * @fires Player#suspend\n * @listens Tech#suspend\n */\n'suspend',\n/**\n * Fires when the current playlist is empty.\n *\n * @event Player#emptied\n * @type {Event}\n */\n/**\n * Retrigger the `emptied` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechEmptied_\n * @fires Player#emptied\n * @listens Tech#emptied\n */\n'emptied',\n/**\n * Fires when the browser is trying to get media data, but data is not available.\n *\n * @event Player#stalled\n * @type {Event}\n */\n/**\n * Retrigger the `stalled` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechStalled_\n * @fires Player#stalled\n * @listens Tech#stalled\n */\n'stalled',\n/**\n * Fires when the browser has loaded meta data for the audio/video.\n *\n * @event Player#loadedmetadata\n * @type {Event}\n */\n/**\n * Retrigger the `loadedmetadata` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechLoadedmetadata_\n * @fires Player#loadedmetadata\n * @listens Tech#loadedmetadata\n */\n'loadedmetadata',\n/**\n * Fires when the browser has loaded the current frame of the audio/video.\n *\n * @event Player#loadeddata\n * @type {event}\n */\n/**\n * Retrigger the `loadeddata` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechLoaddeddata_\n * @fires Player#loadeddata\n * @listens Tech#loadeddata\n */\n'loadeddata',\n/**\n * Fires when the current playback position has changed.\n *\n * @event Player#timeupdate\n * @type {event}\n */\n/**\n * Retrigger the `timeupdate` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechTimeUpdate_\n * @fires Player#timeupdate\n * @listens Tech#timeupdate\n */\n'timeupdate',\n/**\n * Fires when the video's intrinsic dimensions change\n *\n * @event Player#resize\n * @type {event}\n */\n/**\n * Retrigger the `resize` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechResize_\n * @fires Player#resize\n * @listens Tech#resize\n */\n'resize',\n/**\n * Fires when the volume has been changed\n *\n * @event Player#volumechange\n * @type {event}\n */\n/**\n * Retrigger the `volumechange` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechVolumechange_\n * @fires Player#volumechange\n * @listens Tech#volumechange\n */\n'volumechange',\n/**\n * Fires when the text track has been changed\n *\n * @event Player#texttrackchange\n * @type {event}\n */\n/**\n * Retrigger the `texttrackchange` event that was triggered by the {@link Tech}.\n *\n * @private\n * @method Player#handleTechTexttrackchange_\n * @fires Player#texttrackchange\n * @listens Tech#texttrackchange\n */\n'texttrackchange'];\n\n// events to queue when playback rate is zero\n// this is a hash for the sole purpose of mapping non-camel-cased event names\n// to camel-cased function names\nconst TECH_EVENTS_QUEUE = {\n canplay: 'CanPlay',\n canplaythrough: 'CanPlayThrough',\n playing: 'Playing',\n seeked: 'Seeked'\n};\nconst BREAKPOINT_ORDER = ['tiny', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'huge'];\nconst BREAKPOINT_CLASSES = {};\n\n// grep: vjs-layout-tiny\n// grep: vjs-layout-x-small\n// grep: vjs-layout-small\n// grep: vjs-layout-medium\n// grep: vjs-layout-large\n// grep: vjs-layout-x-large\n// grep: vjs-layout-huge\nBREAKPOINT_ORDER.forEach(k => {\n const v = k.charAt(0) === 'x' ? `x-${k.substring(1)}` : k;\n BREAKPOINT_CLASSES[k] = `vjs-layout-${v}`;\n});\nconst DEFAULT_BREAKPOINTS = {\n tiny: 210,\n xsmall: 320,\n small: 425,\n medium: 768,\n large: 1440,\n xlarge: 2560,\n huge: Infinity\n};\n\n/**\n * An instance of the `Player` class is created when any of the Video.js setup methods\n * are used to initialize a video.\n *\n * After an instance has been created it can be accessed globally in three ways:\n * 1. By calling `videojs.getPlayer('example_video_1');`\n * 2. By calling `videojs('example_video_1');` (not recommended)\n * 2. By using it directly via `videojs.players.example_video_1;`\n *\n * @extends Component\n * @global\n */\nclass Player extends Component$1 {\n /**\n * Create an instance of this class.\n *\n * @param {Element} tag\n * The original video DOM element used for configuring options.\n *\n * @param {Object} [options]\n * Object of option names and values.\n *\n * @param {Function} [ready]\n * Ready callback function.\n */\n constructor(tag, options, ready) {\n // Make sure tag ID exists\n // also here.. probably better\n tag.id = tag.id || options.id || `vjs_video_${newGUID()}`;\n\n // Set Options\n // The options argument overrides options set in the video tag\n // which overrides globally set options.\n // This latter part coincides with the load order\n // (tag must exist before Player)\n options = Object.assign(Player.getTagSettings(tag), options);\n\n // Delay the initialization of children because we need to set up\n // player properties first, and can't use `this` before `super()`\n options.initChildren = false;\n\n // Same with creating the element\n options.createEl = false;\n\n // don't auto mixin the evented mixin\n options.evented = false;\n\n // we don't want the player to report touch activity on itself\n // see enableTouchActivity in Component\n options.reportTouchActivity = false;\n\n // If language is not set, get the closest lang attribute\n if (!options.language) {\n const closest = tag.closest('[lang]');\n if (closest) {\n options.language = closest.getAttribute('lang');\n }\n }\n\n // Run base component initializing with new options\n super(null, options, ready);\n\n // Create bound methods for document listeners.\n this.boundDocumentFullscreenChange_ = e => this.documentFullscreenChange_(e);\n this.boundFullWindowOnEscKey_ = e => this.fullWindowOnEscKey(e);\n this.boundUpdateStyleEl_ = e => this.updateStyleEl_(e);\n this.boundApplyInitTime_ = e => this.applyInitTime_(e);\n this.boundUpdateCurrentBreakpoint_ = e => this.updateCurrentBreakpoint_(e);\n this.boundHandleTechClick_ = e => this.handleTechClick_(e);\n this.boundHandleTechDoubleClick_ = e => this.handleTechDoubleClick_(e);\n this.boundHandleTechTouchStart_ = e => this.handleTechTouchStart_(e);\n this.boundHandleTechTouchMove_ = e => this.handleTechTouchMove_(e);\n this.boundHandleTechTouchEnd_ = e => this.handleTechTouchEnd_(e);\n this.boundHandleTechTap_ = e => this.handleTechTap_(e);\n\n // default isFullscreen_ to false\n this.isFullscreen_ = false;\n\n // create logger\n this.log = createLogger(this.id_);\n\n // Hold our own reference to fullscreen api so it can be mocked in tests\n this.fsApi_ = FullscreenApi;\n\n // Tracks when a tech changes the poster\n this.isPosterFromTech_ = false;\n\n // Holds callback info that gets queued when playback rate is zero\n // and a seek is happening\n this.queuedCallbacks_ = [];\n\n // Turn off API access because we're loading a new tech that might load asynchronously\n this.isReady_ = false;\n\n // Init state hasStarted_\n this.hasStarted_ = false;\n\n // Init state userActive_\n this.userActive_ = false;\n\n // Init debugEnabled_\n this.debugEnabled_ = false;\n\n // Init state audioOnlyMode_\n this.audioOnlyMode_ = false;\n\n // Init state audioPosterMode_\n this.audioPosterMode_ = false;\n\n // Init state audioOnlyCache_\n this.audioOnlyCache_ = {\n playerHeight: null,\n hiddenChildren: []\n };\n\n // if the global option object was accidentally blown away by\n // someone, bail early with an informative error\n if (!this.options_ || !this.options_.techOrder || !this.options_.techOrder.length) {\n throw new Error('No techOrder specified. Did you overwrite ' + 'videojs.options instead of just changing the ' + 'properties you want to override?');\n }\n\n // Store the original tag used to set options\n this.tag = tag;\n\n // Store the tag attributes used to restore html5 element\n this.tagAttributes = tag && getAttributes(tag);\n\n // Update current language\n this.language(this.options_.language);\n\n // Update Supported Languages\n if (options.languages) {\n // Normalise player option languages to lowercase\n const languagesToLower = {};\n Object.getOwnPropertyNames(options.languages).forEach(function (name) {\n languagesToLower[name.toLowerCase()] = options.languages[name];\n });\n this.languages_ = languagesToLower;\n } else {\n this.languages_ = Player.prototype.options_.languages;\n }\n this.resetCache_();\n\n // Set poster\n /** @type string */\n this.poster_ = options.poster || '';\n\n // Set controls\n /** @type {boolean} */\n this.controls_ = !!options.controls;\n\n // Original tag settings stored in options\n // now remove immediately so native controls don't flash.\n // May be turned back on by HTML5 tech if nativeControlsForTouch is true\n tag.controls = false;\n tag.removeAttribute('controls');\n this.changingSrc_ = false;\n this.playCallbacks_ = [];\n this.playTerminatedQueue_ = [];\n\n // the attribute overrides the option\n if (tag.hasAttribute('autoplay')) {\n this.autoplay(true);\n } else {\n // otherwise use the setter to validate and\n // set the correct value.\n this.autoplay(this.options_.autoplay);\n }\n\n // check plugins\n if (options.plugins) {\n Object.keys(options.plugins).forEach(name => {\n if (typeof this[name] !== 'function') {\n throw new Error(`plugin \"${name}\" does not exist`);\n }\n });\n }\n\n /*\n * Store the internal state of scrubbing\n *\n * @private\n * @return {Boolean} True if the user is scrubbing\n */\n this.scrubbing_ = false;\n this.el_ = this.createEl();\n\n // Make this an evented object and use `el_` as its event bus.\n evented(this, {\n eventBusKey: 'el_'\n });\n\n // listen to document and player fullscreenchange handlers so we receive those events\n // before a user can receive them so we can update isFullscreen appropriately.\n // make sure that we listen to fullscreenchange events before everything else to make sure that\n // our isFullscreen method is updated properly for internal components as well as external.\n if (this.fsApi_.requestFullscreen) {\n on(document, this.fsApi_.fullscreenchange, this.boundDocumentFullscreenChange_);\n this.on(this.fsApi_.fullscreenchange, this.boundDocumentFullscreenChange_);\n }\n if (this.fluid_) {\n this.on(['playerreset', 'resize'], this.boundUpdateStyleEl_);\n }\n // We also want to pass the original player options to each component and plugin\n // as well so they don't need to reach back into the player for options later.\n // We also need to do another copy of this.options_ so we don't end up with\n // an infinite loop.\n const playerOptionsCopy = merge$1(this.options_);\n\n // Load plugins\n if (options.plugins) {\n Object.keys(options.plugins).forEach(name => {\n this[name](options.plugins[name]);\n });\n }\n\n // Enable debug mode to fire debugon event for all plugins.\n if (options.debug) {\n this.debug(true);\n }\n this.options_.playerOptions = playerOptionsCopy;\n this.middleware_ = [];\n this.playbackRates(options.playbackRates);\n if (options.experimentalSvgIcons) {\n // Add SVG Sprite to the DOM\n const parser = new window$1.DOMParser();\n const parsedSVG = parser.parseFromString(icons, 'image/svg+xml');\n const errorNode = parsedSVG.querySelector('parsererror');\n if (errorNode) {\n log$1.warn('Failed to load SVG Icons. Falling back to Font Icons.');\n this.options_.experimentalSvgIcons = null;\n } else {\n const sprite = parsedSVG.documentElement;\n sprite.style.display = 'none';\n this.el_.appendChild(sprite);\n this.addClass('vjs-svg-icons-enabled');\n }\n }\n this.initChildren();\n\n // Set isAudio based on whether or not an audio tag was used\n this.isAudio(tag.nodeName.toLowerCase() === 'audio');\n\n // Update controls className. Can't do this when the controls are initially\n // set because the element doesn't exist yet.\n if (this.controls()) {\n this.addClass('vjs-controls-enabled');\n } else {\n this.addClass('vjs-controls-disabled');\n }\n\n // Set ARIA label and region role depending on player type\n this.el_.setAttribute('role', 'region');\n if (this.isAudio()) {\n this.el_.setAttribute('aria-label', this.localize('Audio Player'));\n } else {\n this.el_.setAttribute('aria-label', this.localize('Video Player'));\n }\n if (this.isAudio()) {\n this.addClass('vjs-audio');\n }\n\n // TODO: Make this smarter. Toggle user state between touching/mousing\n // using events, since devices can have both touch and mouse events.\n // TODO: Make this check be performed again when the window switches between monitors\n // (See https://github.com/videojs/video.js/issues/5683)\n if (TOUCH_ENABLED) {\n this.addClass('vjs-touch-enabled');\n }\n\n // iOS Safari has broken hover handling\n if (!IS_IOS) {\n this.addClass('vjs-workinghover');\n }\n\n // Make player easily findable by ID\n Player.players[this.id_] = this;\n\n // Add a major version class to aid css in plugins\n const majorVersion = version$6.split('.')[0];\n this.addClass(`vjs-v${majorVersion}`);\n\n // When the player is first initialized, trigger activity so components\n // like the control bar show themselves if needed\n this.userActive(true);\n this.reportUserActivity();\n this.one('play', e => this.listenForUserActivity_(e));\n this.on('keydown', e => this.handleKeyDown(e));\n this.on('languagechange', e => this.handleLanguagechange(e));\n this.breakpoints(this.options_.breakpoints);\n this.responsive(this.options_.responsive);\n\n // Calling both the audio mode methods after the player is fully\n // setup to be able to listen to the events triggered by them\n this.on('ready', () => {\n // Calling the audioPosterMode method first so that\n // the audioOnlyMode can take precedence when both options are set to true\n this.audioPosterMode(this.options_.audioPosterMode);\n this.audioOnlyMode(this.options_.audioOnlyMode);\n });\n }\n\n /**\n * Destroys the video player and does any necessary cleanup.\n *\n * This is especially helpful if you are dynamically adding and removing videos\n * to/from the DOM.\n *\n * @fires Player#dispose\n */\n dispose() {\n /**\n * Called when the player is being disposed of.\n *\n * @event Player#dispose\n * @type {Event}\n */\n this.trigger('dispose');\n // prevent dispose from being called twice\n this.off('dispose');\n\n // Make sure all player-specific document listeners are unbound. This is\n off(document, this.fsApi_.fullscreenchange, this.boundDocumentFullscreenChange_);\n off(document, 'keydown', this.boundFullWindowOnEscKey_);\n if (this.styleEl_ && this.styleEl_.parentNode) {\n this.styleEl_.parentNode.removeChild(this.styleEl_);\n this.styleEl_ = null;\n }\n\n // Kill reference to this player\n Player.players[this.id_] = null;\n if (this.tag && this.tag.player) {\n this.tag.player = null;\n }\n if (this.el_ && this.el_.player) {\n this.el_.player = null;\n }\n if (this.tech_) {\n this.tech_.dispose();\n this.isPosterFromTech_ = false;\n this.poster_ = '';\n }\n if (this.playerElIngest_) {\n this.playerElIngest_ = null;\n }\n if (this.tag) {\n this.tag = null;\n }\n clearCacheForPlayer(this);\n\n // remove all event handlers for track lists\n // all tracks and track listeners are removed on\n // tech dispose\n ALL.names.forEach(name => {\n const props = ALL[name];\n const list = this[props.getterName]();\n\n // if it is not a native list\n // we have to manually remove event listeners\n if (list && list.off) {\n list.off();\n }\n });\n\n // the actual .el_ is removed here, or replaced if\n super.dispose({\n restoreEl: this.options_.restoreEl\n });\n }\n\n /**\n * Create the `Player`'s DOM element.\n *\n * @return {Element}\n * The DOM element that gets created.\n */\n createEl() {\n let tag = this.tag;\n let el;\n let playerElIngest = this.playerElIngest_ = tag.parentNode && tag.parentNode.hasAttribute && tag.parentNode.hasAttribute('data-vjs-player');\n const divEmbed = this.tag.tagName.toLowerCase() === 'video-js';\n if (playerElIngest) {\n el = this.el_ = tag.parentNode;\n } else if (!divEmbed) {\n el = this.el_ = super.createEl('div');\n }\n\n // Copy over all the attributes from the tag, including ID and class\n // ID will now reference player box, not the video tag\n const attrs = getAttributes(tag);\n if (divEmbed) {\n el = this.el_ = tag;\n tag = this.tag = document.createElement('video');\n while (el.children.length) {\n tag.appendChild(el.firstChild);\n }\n if (!hasClass(el, 'video-js')) {\n addClass(el, 'video-js');\n }\n el.appendChild(tag);\n playerElIngest = this.playerElIngest_ = el;\n // move properties over from our custom `video-js` element\n // to our new `video` element. This will move things like\n // `src` or `controls` that were set via js before the player\n // was initialized.\n Object.keys(el).forEach(k => {\n try {\n tag[k] = el[k];\n } catch (e) {\n // we got a a property like outerHTML which we can't actually copy, ignore it\n }\n });\n }\n\n // set tabindex to -1 to remove the video element from the focus order\n tag.setAttribute('tabindex', '-1');\n attrs.tabindex = '-1';\n\n // Workaround for #4583 on Chrome (on Windows) with JAWS.\n // See https://github.com/FreedomScientific/VFO-standards-support/issues/78\n // Note that we can't detect if JAWS is being used, but this ARIA attribute\n // doesn't change behavior of Chrome if JAWS is not being used\n if (IS_CHROME && IS_WINDOWS) {\n tag.setAttribute('role', 'application');\n attrs.role = 'application';\n }\n\n // Remove width/height attrs from tag so CSS can make it 100% width/height\n tag.removeAttribute('width');\n tag.removeAttribute('height');\n if ('width' in attrs) {\n delete attrs.width;\n }\n if ('height' in attrs) {\n delete attrs.height;\n }\n Object.getOwnPropertyNames(attrs).forEach(function (attr) {\n // don't copy over the class attribute to the player element when we're in a div embed\n // the class is already set up properly in the divEmbed case\n // and we want to make sure that the `video-js` class doesn't get lost\n if (!(divEmbed && attr === 'class')) {\n el.setAttribute(attr, attrs[attr]);\n }\n if (divEmbed) {\n tag.setAttribute(attr, attrs[attr]);\n }\n });\n\n // Update tag id/class for use as HTML5 playback tech\n // Might think we should do this after embedding in container so .vjs-tech class\n // doesn't flash 100% width/height, but class only applies with .video-js parent\n tag.playerId = tag.id;\n tag.id += '_html5_api';\n tag.className = 'vjs-tech';\n\n // Make player findable on elements\n tag.player = el.player = this;\n // Default state of video is paused\n this.addClass('vjs-paused');\n\n // Add a style element in the player that we'll use to set the width/height\n // of the player in a way that's still overridable by CSS, just like the\n // video element\n if (window$1.VIDEOJS_NO_DYNAMIC_STYLE !== true) {\n this.styleEl_ = createStyleElement('vjs-styles-dimensions');\n const defaultsStyleEl = $('.vjs-styles-defaults');\n const head = $('head');\n head.insertBefore(this.styleEl_, defaultsStyleEl ? defaultsStyleEl.nextSibling : head.firstChild);\n }\n this.fill_ = false;\n this.fluid_ = false;\n\n // Pass in the width/height/aspectRatio options which will update the style el\n this.width(this.options_.width);\n this.height(this.options_.height);\n this.fill(this.options_.fill);\n this.fluid(this.options_.fluid);\n this.aspectRatio(this.options_.aspectRatio);\n // support both crossOrigin and crossorigin to reduce confusion and issues around the name\n this.crossOrigin(this.options_.crossOrigin || this.options_.crossorigin);\n\n // Hide any links within the video/audio tag,\n // because IE doesn't hide them completely from screen readers.\n const links = tag.getElementsByTagName('a');\n for (let i = 0; i < links.length; i++) {\n const linkEl = links.item(i);\n addClass(linkEl, 'vjs-hidden');\n linkEl.setAttribute('hidden', 'hidden');\n }\n\n // insertElFirst seems to cause the networkState to flicker from 3 to 2, so\n // keep track of the original for later so we can know if the source originally failed\n tag.initNetworkState_ = tag.networkState;\n\n // Wrap video tag in div (el/box) container\n if (tag.parentNode && !playerElIngest) {\n tag.parentNode.insertBefore(el, tag);\n }\n\n // insert the tag as the first child of the player element\n // then manually add it to the children array so that this.addChild\n // will work properly for other components\n //\n // Breaks iPhone, fixed in HTML5 setup.\n prependTo(tag, el);\n this.children_.unshift(tag);\n\n // Set lang attr on player to ensure CSS :lang() in consistent with player\n // if it's been set to something different to the doc\n this.el_.setAttribute('lang', this.language_);\n this.el_.setAttribute('translate', 'no');\n this.el_ = el;\n return el;\n }\n\n /**\n * Get or set the `Player`'s crossOrigin option. For the HTML5 player, this\n * sets the `crossOrigin` property on the `` tag to control the CORS\n * behavior.\n *\n * @see [Video Element Attributes]{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-crossorigin}\n *\n * @param {string|null} [value]\n * The value to set the `Player`'s crossOrigin to. If an argument is\n * given, must be one of `'anonymous'` or `'use-credentials'`, or 'null'.\n *\n * @return {string|null|undefined}\n * - The current crossOrigin value of the `Player` when getting.\n * - undefined when setting\n */\n crossOrigin(value) {\n // `null` can be set to unset a value\n if (typeof value === 'undefined') {\n return this.techGet_('crossOrigin');\n }\n if (value !== null && value !== 'anonymous' && value !== 'use-credentials') {\n log$1.warn(`crossOrigin must be null, \"anonymous\" or \"use-credentials\", given \"${value}\"`);\n return;\n }\n this.techCall_('setCrossOrigin', value);\n if (this.posterImage) {\n this.posterImage.crossOrigin(value);\n }\n return;\n }\n\n /**\n * A getter/setter for the `Player`'s width. Returns the player's configured value.\n * To get the current width use `currentWidth()`.\n *\n * @param {number|string} [value]\n * CSS value to set the `Player`'s width to.\n *\n * @return {number|undefined}\n * - The current width of the `Player` when getting.\n * - Nothing when setting\n */\n width(value) {\n return this.dimension('width', value);\n }\n\n /**\n * A getter/setter for the `Player`'s height. Returns the player's configured value.\n * To get the current height use `currentheight()`.\n *\n * @param {number|string} [value]\n * CSS value to set the `Player`'s height to.\n *\n * @return {number|undefined}\n * - The current height of the `Player` when getting.\n * - Nothing when setting\n */\n height(value) {\n return this.dimension('height', value);\n }\n\n /**\n * A getter/setter for the `Player`'s width & height.\n *\n * @param {string} dimension\n * This string can be:\n * - 'width'\n * - 'height'\n *\n * @param {number|string} [value]\n * Value for dimension specified in the first argument.\n *\n * @return {number}\n * The dimension arguments value when getting (width/height).\n */\n dimension(dimension, value) {\n const privDimension = dimension + '_';\n if (value === undefined) {\n return this[privDimension] || 0;\n }\n if (value === '' || value === 'auto') {\n // If an empty string is given, reset the dimension to be automatic\n this[privDimension] = undefined;\n this.updateStyleEl_();\n return;\n }\n const parsedVal = parseFloat(value);\n if (isNaN(parsedVal)) {\n log$1.error(`Improper value \"${value}\" supplied for for ${dimension}`);\n return;\n }\n this[privDimension] = parsedVal;\n this.updateStyleEl_();\n }\n\n /**\n * A getter/setter/toggler for the vjs-fluid `className` on the `Player`.\n *\n * Turning this on will turn off fill mode.\n *\n * @param {boolean} [bool]\n * - A value of true adds the class.\n * - A value of false removes the class.\n * - No value will be a getter.\n *\n * @return {boolean|undefined}\n * - The value of fluid when getting.\n * - `undefined` when setting.\n */\n fluid(bool) {\n if (bool === undefined) {\n return !!this.fluid_;\n }\n this.fluid_ = !!bool;\n if (isEvented(this)) {\n this.off(['playerreset', 'resize'], this.boundUpdateStyleEl_);\n }\n if (bool) {\n this.addClass('vjs-fluid');\n this.fill(false);\n addEventedCallback(this, () => {\n this.on(['playerreset', 'resize'], this.boundUpdateStyleEl_);\n });\n } else {\n this.removeClass('vjs-fluid');\n }\n this.updateStyleEl_();\n }\n\n /**\n * A getter/setter/toggler for the vjs-fill `className` on the `Player`.\n *\n * Turning this on will turn off fluid mode.\n *\n * @param {boolean} [bool]\n * - A value of true adds the class.\n * - A value of false removes the class.\n * - No value will be a getter.\n *\n * @return {boolean|undefined}\n * - The value of fluid when getting.\n * - `undefined` when setting.\n */\n fill(bool) {\n if (bool === undefined) {\n return !!this.fill_;\n }\n this.fill_ = !!bool;\n if (bool) {\n this.addClass('vjs-fill');\n this.fluid(false);\n } else {\n this.removeClass('vjs-fill');\n }\n }\n\n /**\n * Get/Set the aspect ratio\n *\n * @param {string} [ratio]\n * Aspect ratio for player\n *\n * @return {string|undefined}\n * returns the current aspect ratio when getting\n */\n\n /**\n * A getter/setter for the `Player`'s aspect ratio.\n *\n * @param {string} [ratio]\n * The value to set the `Player`'s aspect ratio to.\n *\n * @return {string|undefined}\n * - The current aspect ratio of the `Player` when getting.\n * - undefined when setting\n */\n aspectRatio(ratio) {\n if (ratio === undefined) {\n return this.aspectRatio_;\n }\n\n // Check for width:height format\n if (!/^\\d+\\:\\d+$/.test(ratio)) {\n throw new Error('Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.');\n }\n this.aspectRatio_ = ratio;\n\n // We're assuming if you set an aspect ratio you want fluid mode,\n // because in fixed mode you could calculate width and height yourself.\n this.fluid(true);\n this.updateStyleEl_();\n }\n\n /**\n * Update styles of the `Player` element (height, width and aspect ratio).\n *\n * @private\n * @listens Tech#loadedmetadata\n */\n updateStyleEl_() {\n if (window$1.VIDEOJS_NO_DYNAMIC_STYLE === true) {\n const width = typeof this.width_ === 'number' ? this.width_ : this.options_.width;\n const height = typeof this.height_ === 'number' ? this.height_ : this.options_.height;\n const techEl = this.tech_ && this.tech_.el();\n if (techEl) {\n if (width >= 0) {\n techEl.width = width;\n }\n if (height >= 0) {\n techEl.height = height;\n }\n }\n return;\n }\n let width;\n let height;\n let aspectRatio;\n let idClass;\n\n // The aspect ratio is either used directly or to calculate width and height.\n if (this.aspectRatio_ !== undefined && this.aspectRatio_ !== 'auto') {\n // Use any aspectRatio that's been specifically set\n aspectRatio = this.aspectRatio_;\n } else if (this.videoWidth() > 0) {\n // Otherwise try to get the aspect ratio from the video metadata\n aspectRatio = this.videoWidth() + ':' + this.videoHeight();\n } else {\n // Or use a default. The video element's is 2:1, but 16:9 is more common.\n aspectRatio = '16:9';\n }\n\n // Get the ratio as a decimal we can use to calculate dimensions\n const ratioParts = aspectRatio.split(':');\n const ratioMultiplier = ratioParts[1] / ratioParts[0];\n if (this.width_ !== undefined) {\n // Use any width that's been specifically set\n width = this.width_;\n } else if (this.height_ !== undefined) {\n // Or calculate the width from the aspect ratio if a height has been set\n width = this.height_ / ratioMultiplier;\n } else {\n // Or use the video's metadata, or use the video el's default of 300\n width = this.videoWidth() || 300;\n }\n if (this.height_ !== undefined) {\n // Use any height that's been specifically set\n height = this.height_;\n } else {\n // Otherwise calculate the height from the ratio and the width\n height = width * ratioMultiplier;\n }\n\n // Ensure the CSS class is valid by starting with an alpha character\n if (/^[^a-zA-Z]/.test(this.id())) {\n idClass = 'dimensions-' + this.id();\n } else {\n idClass = this.id() + '-dimensions';\n }\n\n // Ensure the right class is still on the player for the style element\n this.addClass(idClass);\n setTextContent(this.styleEl_, `\n .${idClass} {\n width: ${width}px;\n height: ${height}px;\n }\n\n .${idClass}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${ratioMultiplier * 100}%;\n }\n `);\n }\n\n /**\n * Load/Create an instance of playback {@link Tech} including element\n * and API methods. Then append the `Tech` element in `Player` as a child.\n *\n * @param {string} techName\n * name of the playback technology\n *\n * @param {string} source\n * video source\n *\n * @private\n */\n loadTech_(techName, source) {\n // Pause and remove current playback technology\n if (this.tech_) {\n this.unloadTech_();\n }\n const titleTechName = toTitleCase$1(techName);\n const camelTechName = techName.charAt(0).toLowerCase() + techName.slice(1);\n\n // get rid of the HTML5 video tag as soon as we are using another tech\n if (titleTechName !== 'Html5' && this.tag) {\n Tech.getTech('Html5').disposeMediaElement(this.tag);\n this.tag.player = null;\n this.tag = null;\n }\n this.techName_ = titleTechName;\n\n // Turn off API access because we're loading a new tech that might load asynchronously\n this.isReady_ = false;\n let autoplay = this.autoplay();\n\n // if autoplay is a string (or `true` with normalizeAutoplay: true) we pass false to the tech\n // because the player is going to handle autoplay on `loadstart`\n if (typeof this.autoplay() === 'string' || this.autoplay() === true && this.options_.normalizeAutoplay) {\n autoplay = false;\n }\n\n // Grab tech-specific options from player options and add source and parent element to use.\n const techOptions = {\n source,\n autoplay,\n 'nativeControlsForTouch': this.options_.nativeControlsForTouch,\n 'playerId': this.id(),\n 'techId': `${this.id()}_${camelTechName}_api`,\n 'playsinline': this.options_.playsinline,\n 'preload': this.options_.preload,\n 'loop': this.options_.loop,\n 'disablePictureInPicture': this.options_.disablePictureInPicture,\n 'muted': this.options_.muted,\n 'poster': this.poster(),\n 'language': this.language(),\n 'playerElIngest': this.playerElIngest_ || false,\n 'vtt.js': this.options_['vtt.js'],\n 'canOverridePoster': !!this.options_.techCanOverridePoster,\n 'enableSourceset': this.options_.enableSourceset\n };\n ALL.names.forEach(name => {\n const props = ALL[name];\n techOptions[props.getterName] = this[props.privateName];\n });\n Object.assign(techOptions, this.options_[titleTechName]);\n Object.assign(techOptions, this.options_[camelTechName]);\n Object.assign(techOptions, this.options_[techName.toLowerCase()]);\n if (this.tag) {\n techOptions.tag = this.tag;\n }\n if (source && source.src === this.cache_.src && this.cache_.currentTime > 0) {\n techOptions.startTime = this.cache_.currentTime;\n }\n\n // Initialize tech instance\n const TechClass = Tech.getTech(techName);\n if (!TechClass) {\n throw new Error(`No Tech named '${titleTechName}' exists! '${titleTechName}' should be registered using videojs.registerTech()'`);\n }\n this.tech_ = new TechClass(techOptions);\n\n // player.triggerReady is always async, so don't need this to be async\n this.tech_.ready(bind_(this, this.handleTechReady_), true);\n textTrackConverter.jsonToTextTracks(this.textTracksJson_ || [], this.tech_);\n\n // Listen to all HTML5-defined events and trigger them on the player\n TECH_EVENTS_RETRIGGER.forEach(event => {\n this.on(this.tech_, event, e => this[`handleTech${toTitleCase$1(event)}_`](e));\n });\n Object.keys(TECH_EVENTS_QUEUE).forEach(event => {\n this.on(this.tech_, event, eventObj => {\n if (this.tech_.playbackRate() === 0 && this.tech_.seeking()) {\n this.queuedCallbacks_.push({\n callback: this[`handleTech${TECH_EVENTS_QUEUE[event]}_`].bind(this),\n event: eventObj\n });\n return;\n }\n this[`handleTech${TECH_EVENTS_QUEUE[event]}_`](eventObj);\n });\n });\n this.on(this.tech_, 'loadstart', e => this.handleTechLoadStart_(e));\n this.on(this.tech_, 'sourceset', e => this.handleTechSourceset_(e));\n this.on(this.tech_, 'waiting', e => this.handleTechWaiting_(e));\n this.on(this.tech_, 'ended', e => this.handleTechEnded_(e));\n this.on(this.tech_, 'seeking', e => this.handleTechSeeking_(e));\n this.on(this.tech_, 'play', e => this.handleTechPlay_(e));\n this.on(this.tech_, 'pause', e => this.handleTechPause_(e));\n this.on(this.tech_, 'durationchange', e => this.handleTechDurationChange_(e));\n this.on(this.tech_, 'fullscreenchange', (e, data) => this.handleTechFullscreenChange_(e, data));\n this.on(this.tech_, 'fullscreenerror', (e, err) => this.handleTechFullscreenError_(e, err));\n this.on(this.tech_, 'enterpictureinpicture', e => this.handleTechEnterPictureInPicture_(e));\n this.on(this.tech_, 'leavepictureinpicture', e => this.handleTechLeavePictureInPicture_(e));\n this.on(this.tech_, 'error', e => this.handleTechError_(e));\n this.on(this.tech_, 'posterchange', e => this.handleTechPosterChange_(e));\n this.on(this.tech_, 'textdata', e => this.handleTechTextData_(e));\n this.on(this.tech_, 'ratechange', e => this.handleTechRateChange_(e));\n this.on(this.tech_, 'loadedmetadata', this.boundUpdateStyleEl_);\n this.usingNativeControls(this.techGet_('controls'));\n if (this.controls() && !this.usingNativeControls()) {\n this.addTechControlsListeners_();\n }\n\n // Add the tech element in the DOM if it was not already there\n // Make sure to not insert the original video element if using Html5\n if (this.tech_.el().parentNode !== this.el() && (titleTechName !== 'Html5' || !this.tag)) {\n prependTo(this.tech_.el(), this.el());\n }\n\n // Get rid of the original video tag reference after the first tech is loaded\n if (this.tag) {\n this.tag.player = null;\n this.tag = null;\n }\n }\n\n /**\n * Unload and dispose of the current playback {@link Tech}.\n *\n * @private\n */\n unloadTech_() {\n // Save the current text tracks so that we can reuse the same text tracks with the next tech\n ALL.names.forEach(name => {\n const props = ALL[name];\n this[props.privateName] = this[props.getterName]();\n });\n this.textTracksJson_ = textTrackConverter.textTracksToJson(this.tech_);\n this.isReady_ = false;\n this.tech_.dispose();\n this.tech_ = false;\n if (this.isPosterFromTech_) {\n this.poster_ = '';\n this.trigger('posterchange');\n }\n this.isPosterFromTech_ = false;\n }\n\n /**\n * Return a reference to the current {@link Tech}.\n * It will print a warning by default about the danger of using the tech directly\n * but any argument that is passed in will silence the warning.\n *\n * @param {*} [safety]\n * Anything passed in to silence the warning\n *\n * @return {Tech}\n * The Tech\n */\n tech(safety) {\n if (safety === undefined) {\n log$1.warn('Using the tech directly can be dangerous. I hope you know what you\\'re doing.\\n' + 'See https://github.com/videojs/video.js/issues/2617 for more info.\\n');\n }\n return this.tech_;\n }\n\n /**\n * An object that contains Video.js version.\n *\n * @typedef {Object} PlayerVersion\n *\n * @property {string} 'video.js' - Video.js version\n */\n\n /**\n * Returns an object with Video.js version.\n *\n * @return {PlayerVersion}\n * An object with Video.js version.\n */\n version() {\n return {\n 'video.js': version$6\n };\n }\n\n /**\n * Set up click and touch listeners for the playback element\n *\n * - On desktops: a click on the video itself will toggle playback\n * - On mobile devices: a click on the video toggles controls\n * which is done by toggling the user state between active and\n * inactive\n * - A tap can signal that a user has become active or has become inactive\n * e.g. a quick tap on an iPhone movie should reveal the controls. Another\n * quick tap should hide them again (signaling the user is in an inactive\n * viewing state)\n * - In addition to this, we still want the user to be considered inactive after\n * a few seconds of inactivity.\n *\n * > Note: the only part of iOS interaction we can't mimic with this setup\n * is a touch and hold on the video element counting as activity in order to\n * keep the controls showing, but that shouldn't be an issue. A touch and hold\n * on any controls will still keep the user active\n *\n * @private\n */\n addTechControlsListeners_() {\n // Make sure to remove all the previous listeners in case we are called multiple times.\n this.removeTechControlsListeners_();\n this.on(this.tech_, 'click', this.boundHandleTechClick_);\n this.on(this.tech_, 'dblclick', this.boundHandleTechDoubleClick_);\n\n // If the controls were hidden we don't want that to change without a tap event\n // so we'll check if the controls were already showing before reporting user\n // activity\n this.on(this.tech_, 'touchstart', this.boundHandleTechTouchStart_);\n this.on(this.tech_, 'touchmove', this.boundHandleTechTouchMove_);\n this.on(this.tech_, 'touchend', this.boundHandleTechTouchEnd_);\n\n // The tap listener needs to come after the touchend listener because the tap\n // listener cancels out any reportedUserActivity when setting userActive(false)\n this.on(this.tech_, 'tap', this.boundHandleTechTap_);\n }\n\n /**\n * Remove the listeners used for click and tap controls. This is needed for\n * toggling to controls disabled, where a tap/touch should do nothing.\n *\n * @private\n */\n removeTechControlsListeners_() {\n // We don't want to just use `this.off()` because there might be other needed\n // listeners added by techs that extend this.\n this.off(this.tech_, 'tap', this.boundHandleTechTap_);\n this.off(this.tech_, 'touchstart', this.boundHandleTechTouchStart_);\n this.off(this.tech_, 'touchmove', this.boundHandleTechTouchMove_);\n this.off(this.tech_, 'touchend', this.boundHandleTechTouchEnd_);\n this.off(this.tech_, 'click', this.boundHandleTechClick_);\n this.off(this.tech_, 'dblclick', this.boundHandleTechDoubleClick_);\n }\n\n /**\n * Player waits for the tech to be ready\n *\n * @private\n */\n handleTechReady_() {\n this.triggerReady();\n\n // Keep the same volume as before\n if (this.cache_.volume) {\n this.techCall_('setVolume', this.cache_.volume);\n }\n\n // Look if the tech found a higher resolution poster while loading\n this.handleTechPosterChange_();\n\n // Update the duration if available\n this.handleTechDurationChange_();\n }\n\n /**\n * Retrigger the `loadstart` event that was triggered by the {@link Tech}.\n *\n * @fires Player#loadstart\n * @listens Tech#loadstart\n * @private\n */\n handleTechLoadStart_() {\n // TODO: Update to use `emptied` event instead. See #1277.\n\n this.removeClass('vjs-ended', 'vjs-seeking');\n\n // reset the error state\n this.error(null);\n\n // Update the duration\n this.handleTechDurationChange_();\n if (!this.paused()) {\n /**\n * Fired when the user agent begins looking for media data\n *\n * @event Player#loadstart\n * @type {Event}\n */\n this.trigger('loadstart');\n } else {\n // reset the hasStarted state\n this.hasStarted(false);\n this.trigger('loadstart');\n }\n\n // autoplay happens after loadstart for the browser,\n // so we mimic that behavior\n this.manualAutoplay_(this.autoplay() === true && this.options_.normalizeAutoplay ? 'play' : this.autoplay());\n }\n\n /**\n * Handle autoplay string values, rather than the typical boolean\n * values that should be handled by the tech. Note that this is not\n * part of any specification. Valid values and what they do can be\n * found on the autoplay getter at Player#autoplay()\n */\n manualAutoplay_(type) {\n if (!this.tech_ || typeof type !== 'string') {\n return;\n }\n\n // Save original muted() value, set muted to true, and attempt to play().\n // On promise rejection, restore muted from saved value\n const resolveMuted = () => {\n const previouslyMuted = this.muted();\n this.muted(true);\n const restoreMuted = () => {\n this.muted(previouslyMuted);\n };\n\n // restore muted on play terminatation\n this.playTerminatedQueue_.push(restoreMuted);\n const mutedPromise = this.play();\n if (!isPromise(mutedPromise)) {\n return;\n }\n return mutedPromise.catch(err => {\n restoreMuted();\n throw new Error(`Rejection at manualAutoplay. Restoring muted value. ${err ? err : ''}`);\n });\n };\n let promise;\n\n // if muted defaults to true\n // the only thing we can do is call play\n if (type === 'any' && !this.muted()) {\n promise = this.play();\n if (isPromise(promise)) {\n promise = promise.catch(resolveMuted);\n }\n } else if (type === 'muted' && !this.muted()) {\n promise = resolveMuted();\n } else {\n promise = this.play();\n }\n if (!isPromise(promise)) {\n return;\n }\n return promise.then(() => {\n this.trigger({\n type: 'autoplay-success',\n autoplay: type\n });\n }).catch(() => {\n this.trigger({\n type: 'autoplay-failure',\n autoplay: type\n });\n });\n }\n\n /**\n * Update the internal source caches so that we return the correct source from\n * `src()`, `currentSource()`, and `currentSources()`.\n *\n * > Note: `currentSources` will not be updated if the source that is passed in exists\n * in the current `currentSources` cache.\n *\n *\n * @param {Tech~SourceObject} srcObj\n * A string or object source to update our caches to.\n */\n updateSourceCaches_() {\n let srcObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n let src = srcObj;\n let type = '';\n if (typeof src !== 'string') {\n src = srcObj.src;\n type = srcObj.type;\n }\n\n // make sure all the caches are set to default values\n // to prevent null checking\n this.cache_.source = this.cache_.source || {};\n this.cache_.sources = this.cache_.sources || [];\n\n // try to get the type of the src that was passed in\n if (src && !type) {\n type = findMimetype(this, src);\n }\n\n // update `currentSource` cache always\n this.cache_.source = merge$1({}, srcObj, {\n src,\n type\n });\n const matchingSources = this.cache_.sources.filter(s => s.src && s.src === src);\n const sourceElSources = [];\n const sourceEls = this.$$('source');\n const matchingSourceEls = [];\n for (let i = 0; i < sourceEls.length; i++) {\n const sourceObj = getAttributes(sourceEls[i]);\n sourceElSources.push(sourceObj);\n if (sourceObj.src && sourceObj.src === src) {\n matchingSourceEls.push(sourceObj.src);\n }\n }\n\n // if we have matching source els but not matching sources\n // the current source cache is not up to date\n if (matchingSourceEls.length && !matchingSources.length) {\n this.cache_.sources = sourceElSources;\n // if we don't have matching source or source els set the\n // sources cache to the `currentSource` cache\n } else if (!matchingSources.length) {\n this.cache_.sources = [this.cache_.source];\n }\n\n // update the tech `src` cache\n this.cache_.src = src;\n }\n\n /**\n * *EXPERIMENTAL* Fired when the source is set or changed on the {@link Tech}\n * causing the media element to reload.\n *\n * It will fire for the initial source and each subsequent source.\n * This event is a custom event from Video.js and is triggered by the {@link Tech}.\n *\n * The event object for this event contains a `src` property that will contain the source\n * that was available when the event was triggered. This is generally only necessary if Video.js\n * is switching techs while the source was being changed.\n *\n * It is also fired when `load` is called on the player (or media element)\n * because the {@link https://html.spec.whatwg.org/multipage/media.html#dom-media-load|specification for `load`}\n * says that the resource selection algorithm needs to be aborted and restarted.\n * In this case, it is very likely that the `src` property will be set to the\n * empty string `\"\"` to indicate we do not know what the source will be but\n * that it is changing.\n *\n * *This event is currently still experimental and may change in minor releases.*\n * __To use this, pass `enableSourceset` option to the player.__\n *\n * @event Player#sourceset\n * @type {Event}\n * @prop {string} src\n * The source url available when the `sourceset` was triggered.\n * It will be an empty string if we cannot know what the source is\n * but know that the source will change.\n */\n /**\n * Retrigger the `sourceset` event that was triggered by the {@link Tech}.\n *\n * @fires Player#sourceset\n * @listens Tech#sourceset\n * @private\n */\n handleTechSourceset_(event) {\n // only update the source cache when the source\n // was not updated using the player api\n if (!this.changingSrc_) {\n let updateSourceCaches = src => this.updateSourceCaches_(src);\n const playerSrc = this.currentSource().src;\n const eventSrc = event.src;\n\n // if we have a playerSrc that is not a blob, and a tech src that is a blob\n if (playerSrc && !/^blob:/.test(playerSrc) && /^blob:/.test(eventSrc)) {\n // if both the tech source and the player source were updated we assume\n // something like @videojs/http-streaming did the sourceset and skip updating the source cache.\n if (!this.lastSource_ || this.lastSource_.tech !== eventSrc && this.lastSource_.player !== playerSrc) {\n updateSourceCaches = () => {};\n }\n }\n\n // update the source to the initial source right away\n // in some cases this will be empty string\n updateSourceCaches(eventSrc);\n\n // if the `sourceset` `src` was an empty string\n // wait for a `loadstart` to update the cache to `currentSrc`.\n // If a sourceset happens before a `loadstart`, we reset the state\n if (!event.src) {\n this.tech_.any(['sourceset', 'loadstart'], e => {\n // if a sourceset happens before a `loadstart` there\n // is nothing to do as this `handleTechSourceset_`\n // will be called again and this will be handled there.\n if (e.type === 'sourceset') {\n return;\n }\n const techSrc = this.techGet_('currentSrc');\n this.lastSource_.tech = techSrc;\n this.updateSourceCaches_(techSrc);\n });\n }\n }\n this.lastSource_ = {\n player: this.currentSource().src,\n tech: event.src\n };\n this.trigger({\n src: event.src,\n type: 'sourceset'\n });\n }\n\n /**\n * Add/remove the vjs-has-started class\n *\n *\n * @param {boolean} request\n * - true: adds the class\n * - false: remove the class\n *\n * @return {boolean}\n * the boolean value of hasStarted_\n */\n hasStarted(request) {\n if (request === undefined) {\n // act as getter, if we have no request to change\n return this.hasStarted_;\n }\n if (request === this.hasStarted_) {\n return;\n }\n this.hasStarted_ = request;\n if (this.hasStarted_) {\n this.addClass('vjs-has-started');\n } else {\n this.removeClass('vjs-has-started');\n }\n }\n\n /**\n * Fired whenever the media begins or resumes playback\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-play}\n * @fires Player#play\n * @listens Tech#play\n * @private\n */\n handleTechPlay_() {\n this.removeClass('vjs-ended', 'vjs-paused');\n this.addClass('vjs-playing');\n\n // hide the poster when the user hits play\n this.hasStarted(true);\n /**\n * Triggered whenever an {@link Tech#play} event happens. Indicates that\n * playback has started or resumed.\n *\n * @event Player#play\n * @type {Event}\n */\n this.trigger('play');\n }\n\n /**\n * Retrigger the `ratechange` event that was triggered by the {@link Tech}.\n *\n * If there were any events queued while the playback rate was zero, fire\n * those events now.\n *\n * @private\n * @method Player#handleTechRateChange_\n * @fires Player#ratechange\n * @listens Tech#ratechange\n */\n handleTechRateChange_() {\n if (this.tech_.playbackRate() > 0 && this.cache_.lastPlaybackRate === 0) {\n this.queuedCallbacks_.forEach(queued => queued.callback(queued.event));\n this.queuedCallbacks_ = [];\n }\n this.cache_.lastPlaybackRate = this.tech_.playbackRate();\n /**\n * Fires when the playing speed of the audio/video is changed\n *\n * @event Player#ratechange\n * @type {event}\n */\n this.trigger('ratechange');\n }\n\n /**\n * Retrigger the `waiting` event that was triggered by the {@link Tech}.\n *\n * @fires Player#waiting\n * @listens Tech#waiting\n * @private\n */\n handleTechWaiting_() {\n this.addClass('vjs-waiting');\n /**\n * A readyState change on the DOM element has caused playback to stop.\n *\n * @event Player#waiting\n * @type {Event}\n */\n this.trigger('waiting');\n\n // Browsers may emit a timeupdate event after a waiting event. In order to prevent\n // premature removal of the waiting class, wait for the time to change.\n const timeWhenWaiting = this.currentTime();\n const timeUpdateListener = () => {\n if (timeWhenWaiting !== this.currentTime()) {\n this.removeClass('vjs-waiting');\n this.off('timeupdate', timeUpdateListener);\n }\n };\n this.on('timeupdate', timeUpdateListener);\n }\n\n /**\n * Retrigger the `canplay` event that was triggered by the {@link Tech}.\n * > Note: This is not consistent between browsers. See #1351\n *\n * @fires Player#canplay\n * @listens Tech#canplay\n * @private\n */\n handleTechCanPlay_() {\n this.removeClass('vjs-waiting');\n /**\n * The media has a readyState of HAVE_FUTURE_DATA or greater.\n *\n * @event Player#canplay\n * @type {Event}\n */\n this.trigger('canplay');\n }\n\n /**\n * Retrigger the `canplaythrough` event that was triggered by the {@link Tech}.\n *\n * @fires Player#canplaythrough\n * @listens Tech#canplaythrough\n * @private\n */\n handleTechCanPlayThrough_() {\n this.removeClass('vjs-waiting');\n /**\n * The media has a readyState of HAVE_ENOUGH_DATA or greater. This means that the\n * entire media file can be played without buffering.\n *\n * @event Player#canplaythrough\n * @type {Event}\n */\n this.trigger('canplaythrough');\n }\n\n /**\n * Retrigger the `playing` event that was triggered by the {@link Tech}.\n *\n * @fires Player#playing\n * @listens Tech#playing\n * @private\n */\n handleTechPlaying_() {\n this.removeClass('vjs-waiting');\n /**\n * The media is no longer blocked from playback, and has started playing.\n *\n * @event Player#playing\n * @type {Event}\n */\n this.trigger('playing');\n }\n\n /**\n * Retrigger the `seeking` event that was triggered by the {@link Tech}.\n *\n * @fires Player#seeking\n * @listens Tech#seeking\n * @private\n */\n handleTechSeeking_() {\n this.addClass('vjs-seeking');\n /**\n * Fired whenever the player is jumping to a new time\n *\n * @event Player#seeking\n * @type {Event}\n */\n this.trigger('seeking');\n }\n\n /**\n * Retrigger the `seeked` event that was triggered by the {@link Tech}.\n *\n * @fires Player#seeked\n * @listens Tech#seeked\n * @private\n */\n handleTechSeeked_() {\n this.removeClass('vjs-seeking', 'vjs-ended');\n /**\n * Fired when the player has finished jumping to a new time\n *\n * @event Player#seeked\n * @type {Event}\n */\n this.trigger('seeked');\n }\n\n /**\n * Retrigger the `pause` event that was triggered by the {@link Tech}.\n *\n * @fires Player#pause\n * @listens Tech#pause\n * @private\n */\n handleTechPause_() {\n this.removeClass('vjs-playing');\n this.addClass('vjs-paused');\n /**\n * Fired whenever the media has been paused\n *\n * @event Player#pause\n * @type {Event}\n */\n this.trigger('pause');\n }\n\n /**\n * Retrigger the `ended` event that was triggered by the {@link Tech}.\n *\n * @fires Player#ended\n * @listens Tech#ended\n * @private\n */\n handleTechEnded_() {\n this.addClass('vjs-ended');\n this.removeClass('vjs-waiting');\n if (this.options_.loop) {\n this.currentTime(0);\n this.play();\n } else if (!this.paused()) {\n this.pause();\n }\n\n /**\n * Fired when the end of the media resource is reached (currentTime == duration)\n *\n * @event Player#ended\n * @type {Event}\n */\n this.trigger('ended');\n }\n\n /**\n * Fired when the duration of the media resource is first known or changed\n *\n * @listens Tech#durationchange\n * @private\n */\n handleTechDurationChange_() {\n this.duration(this.techGet_('duration'));\n }\n\n /**\n * Handle a click on the media element to play/pause\n *\n * @param {Event} event\n * the event that caused this function to trigger\n *\n * @listens Tech#click\n * @private\n */\n handleTechClick_(event) {\n // When controls are disabled a click should not toggle playback because\n // the click is considered a control\n if (!this.controls_) {\n return;\n }\n if (this.options_ === undefined || this.options_.userActions === undefined || this.options_.userActions.click === undefined || this.options_.userActions.click !== false) {\n if (this.options_ !== undefined && this.options_.userActions !== undefined && typeof this.options_.userActions.click === 'function') {\n this.options_.userActions.click.call(this, event);\n } else if (this.paused()) {\n silencePromise(this.play());\n } else {\n this.pause();\n }\n }\n }\n\n /**\n * Handle a double-click on the media element to enter/exit fullscreen\n *\n * @param {Event} event\n * the event that caused this function to trigger\n *\n * @listens Tech#dblclick\n * @private\n */\n handleTechDoubleClick_(event) {\n if (!this.controls_) {\n return;\n }\n\n // we do not want to toggle fullscreen state\n // when double-clicking inside a control bar or a modal\n const inAllowedEls = Array.prototype.some.call(this.$$('.vjs-control-bar, .vjs-modal-dialog'), el => el.contains(event.target));\n if (!inAllowedEls) {\n /*\n * options.userActions.doubleClick\n *\n * If `undefined` or `true`, double-click toggles fullscreen if controls are present\n * Set to `false` to disable double-click handling\n * Set to a function to substitute an external double-click handler\n */\n if (this.options_ === undefined || this.options_.userActions === undefined || this.options_.userActions.doubleClick === undefined || this.options_.userActions.doubleClick !== false) {\n if (this.options_ !== undefined && this.options_.userActions !== undefined && typeof this.options_.userActions.doubleClick === 'function') {\n this.options_.userActions.doubleClick.call(this, event);\n } else if (this.isFullscreen()) {\n this.exitFullscreen();\n } else {\n this.requestFullscreen();\n }\n }\n }\n }\n\n /**\n * Handle a tap on the media element. It will toggle the user\n * activity state, which hides and shows the controls.\n *\n * @listens Tech#tap\n * @private\n */\n handleTechTap_() {\n this.userActive(!this.userActive());\n }\n\n /**\n * Handle touch to start\n *\n * @listens Tech#touchstart\n * @private\n */\n handleTechTouchStart_() {\n this.userWasActive = this.userActive();\n }\n\n /**\n * Handle touch to move\n *\n * @listens Tech#touchmove\n * @private\n */\n handleTechTouchMove_() {\n if (this.userWasActive) {\n this.reportUserActivity();\n }\n }\n\n /**\n * Handle touch to end\n *\n * @param {Event} event\n * the touchend event that triggered\n * this function\n *\n * @listens Tech#touchend\n * @private\n */\n handleTechTouchEnd_(event) {\n // Stop the mouse events from also happening\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n\n /**\n * @private\n */\n toggleFullscreenClass_() {\n if (this.isFullscreen()) {\n this.addClass('vjs-fullscreen');\n } else {\n this.removeClass('vjs-fullscreen');\n }\n }\n\n /**\n * when the document fschange event triggers it calls this\n */\n documentFullscreenChange_(e) {\n const targetPlayer = e.target.player;\n\n // if another player was fullscreen\n // do a null check for targetPlayer because older firefox's would put document as e.target\n if (targetPlayer && targetPlayer !== this) {\n return;\n }\n const el = this.el();\n let isFs = document[this.fsApi_.fullscreenElement] === el;\n if (!isFs && el.matches) {\n isFs = el.matches(':' + this.fsApi_.fullscreen);\n }\n this.isFullscreen(isFs);\n }\n\n /**\n * Handle Tech Fullscreen Change\n *\n * @param {Event} event\n * the fullscreenchange event that triggered this function\n *\n * @param {Object} data\n * the data that was sent with the event\n *\n * @private\n * @listens Tech#fullscreenchange\n * @fires Player#fullscreenchange\n */\n handleTechFullscreenChange_(event, data) {\n if (data) {\n if (data.nativeIOSFullscreen) {\n this.addClass('vjs-ios-native-fs');\n this.tech_.one('webkitendfullscreen', () => {\n this.removeClass('vjs-ios-native-fs');\n });\n }\n this.isFullscreen(data.isFullscreen);\n }\n }\n handleTechFullscreenError_(event, err) {\n this.trigger('fullscreenerror', err);\n }\n\n /**\n * @private\n */\n togglePictureInPictureClass_() {\n if (this.isInPictureInPicture()) {\n this.addClass('vjs-picture-in-picture');\n } else {\n this.removeClass('vjs-picture-in-picture');\n }\n }\n\n /**\n * Handle Tech Enter Picture-in-Picture.\n *\n * @param {Event} event\n * the enterpictureinpicture event that triggered this function\n *\n * @private\n * @listens Tech#enterpictureinpicture\n */\n handleTechEnterPictureInPicture_(event) {\n this.isInPictureInPicture(true);\n }\n\n /**\n * Handle Tech Leave Picture-in-Picture.\n *\n * @param {Event} event\n * the leavepictureinpicture event that triggered this function\n *\n * @private\n * @listens Tech#leavepictureinpicture\n */\n handleTechLeavePictureInPicture_(event) {\n this.isInPictureInPicture(false);\n }\n\n /**\n * Fires when an error occurred during the loading of an audio/video.\n *\n * @private\n * @listens Tech#error\n */\n handleTechError_() {\n const error = this.tech_.error();\n if (error) {\n this.error(error);\n }\n }\n\n /**\n * Retrigger the `textdata` event that was triggered by the {@link Tech}.\n *\n * @fires Player#textdata\n * @listens Tech#textdata\n * @private\n */\n handleTechTextData_() {\n let data = null;\n if (arguments.length > 1) {\n data = arguments[1];\n }\n\n /**\n * Fires when we get a textdata event from tech\n *\n * @event Player#textdata\n * @type {Event}\n */\n this.trigger('textdata', data);\n }\n\n /**\n * Get object for cached values.\n *\n * @return {Object}\n * get the current object cache\n */\n getCache() {\n return this.cache_;\n }\n\n /**\n * Resets the internal cache object.\n *\n * Using this function outside the player constructor or reset method may\n * have unintended side-effects.\n *\n * @private\n */\n resetCache_() {\n this.cache_ = {\n // Right now, the currentTime is not _really_ cached because it is always\n // retrieved from the tech (see: currentTime). However, for completeness,\n // we set it to zero here to ensure that if we do start actually caching\n // it, we reset it along with everything else.\n currentTime: 0,\n initTime: 0,\n inactivityTimeout: this.options_.inactivityTimeout,\n duration: NaN,\n lastVolume: 1,\n lastPlaybackRate: this.defaultPlaybackRate(),\n media: null,\n src: '',\n source: {},\n sources: [],\n playbackRates: [],\n volume: 1\n };\n }\n\n /**\n * Pass values to the playback tech\n *\n * @param {string} [method]\n * the method to call\n *\n * @param {Object} [arg]\n * the argument to pass\n *\n * @private\n */\n techCall_(method, arg) {\n // If it's not ready yet, call method when it is\n\n this.ready(function () {\n if (method in allowedSetters) {\n return set(this.middleware_, this.tech_, method, arg);\n } else if (method in allowedMediators) {\n return mediate(this.middleware_, this.tech_, method, arg);\n }\n try {\n if (this.tech_) {\n this.tech_[method](arg);\n }\n } catch (e) {\n log$1(e);\n throw e;\n }\n }, true);\n }\n\n /**\n * Mediate attempt to call playback tech method\n * and return the value of the method called.\n *\n * @param {string} method\n * Tech method\n *\n * @return {*}\n * Value returned by the tech method called, undefined if tech\n * is not ready or tech method is not present\n *\n * @private\n */\n techGet_(method) {\n if (!this.tech_ || !this.tech_.isReady_) {\n return;\n }\n if (method in allowedGetters) {\n return get(this.middleware_, this.tech_, method);\n } else if (method in allowedMediators) {\n return mediate(this.middleware_, this.tech_, method);\n }\n\n // Log error when playback tech object is present but method\n // is undefined or unavailable\n try {\n return this.tech_[method]();\n } catch (e) {\n // When building additional tech libs, an expected method may not be defined yet\n if (this.tech_[method] === undefined) {\n log$1(`Video.js: ${method} method not defined for ${this.techName_} playback technology.`, e);\n throw e;\n }\n\n // When a method isn't available on the object it throws a TypeError\n if (e.name === 'TypeError') {\n log$1(`Video.js: ${method} unavailable on ${this.techName_} playback technology element.`, e);\n this.tech_.isReady_ = false;\n throw e;\n }\n\n // If error unknown, just log and throw\n log$1(e);\n throw e;\n }\n }\n\n /**\n * Attempt to begin playback at the first opportunity.\n *\n * @return {Promise|undefined}\n * Returns a promise if the browser supports Promises (or one\n * was passed in as an option). This promise will be resolved on\n * the return value of play. If this is undefined it will fulfill the\n * promise chain otherwise the promise chain will be fulfilled when\n * the promise from play is fulfilled.\n */\n play() {\n return new Promise(resolve => {\n this.play_(resolve);\n });\n }\n\n /**\n * The actual logic for play, takes a callback that will be resolved on the\n * return value of play. This allows us to resolve to the play promise if there\n * is one on modern browsers.\n *\n * @private\n * @param {Function} [callback]\n * The callback that should be called when the techs play is actually called\n */\n play_() {\n let callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : silencePromise;\n this.playCallbacks_.push(callback);\n const isSrcReady = Boolean(!this.changingSrc_ && (this.src() || this.currentSrc()));\n const isSafariOrIOS = Boolean(IS_ANY_SAFARI || IS_IOS);\n\n // treat calls to play_ somewhat like the `one` event function\n if (this.waitToPlay_) {\n this.off(['ready', 'loadstart'], this.waitToPlay_);\n this.waitToPlay_ = null;\n }\n\n // if the player/tech is not ready or the src itself is not ready\n // queue up a call to play on `ready` or `loadstart`\n if (!this.isReady_ || !isSrcReady) {\n this.waitToPlay_ = e => {\n this.play_();\n };\n this.one(['ready', 'loadstart'], this.waitToPlay_);\n\n // if we are in Safari, there is a high chance that loadstart will trigger after the gesture timeperiod\n // in that case, we need to prime the video element by calling load so it'll be ready in time\n if (!isSrcReady && isSafariOrIOS) {\n this.load();\n }\n return;\n }\n\n // If the player/tech is ready and we have a source, we can attempt playback.\n const val = this.techGet_('play');\n\n // For native playback, reset the progress bar if we get a play call from a replay.\n const isNativeReplay = isSafariOrIOS && this.hasClass('vjs-ended');\n if (isNativeReplay) {\n this.resetProgressBar_();\n }\n // play was terminated if the returned value is null\n if (val === null) {\n this.runPlayTerminatedQueue_();\n } else {\n this.runPlayCallbacks_(val);\n }\n }\n\n /**\n * These functions will be run when if play is terminated. If play\n * runPlayCallbacks_ is run these function will not be run. This allows us\n * to differentiate between a terminated play and an actual call to play.\n */\n runPlayTerminatedQueue_() {\n const queue = this.playTerminatedQueue_.slice(0);\n this.playTerminatedQueue_ = [];\n queue.forEach(function (q) {\n q();\n });\n }\n\n /**\n * When a callback to play is delayed we have to run these\n * callbacks when play is actually called on the tech. This function\n * runs the callbacks that were delayed and accepts the return value\n * from the tech.\n *\n * @param {undefined|Promise} val\n * The return value from the tech.\n */\n runPlayCallbacks_(val) {\n const callbacks = this.playCallbacks_.slice(0);\n this.playCallbacks_ = [];\n // clear play terminatedQueue since we finished a real play\n this.playTerminatedQueue_ = [];\n callbacks.forEach(function (cb) {\n cb(val);\n });\n }\n\n /**\n * Pause the video playback\n */\n pause() {\n this.techCall_('pause');\n }\n\n /**\n * Check if the player is paused or has yet to play\n *\n * @return {boolean}\n * - false: if the media is currently playing\n * - true: if media is not currently playing\n */\n paused() {\n // The initial state of paused should be true (in Safari it's actually false)\n return this.techGet_('paused') === false ? false : true;\n }\n\n /**\n * Get a TimeRange object representing the current ranges of time that the user\n * has played.\n *\n * @return { import('./utils/time').TimeRange }\n * A time range object that represents all the increments of time that have\n * been played.\n */\n played() {\n return this.techGet_('played') || createTimeRanges$1(0, 0);\n }\n\n /**\n * Sets or returns whether or not the user is \"scrubbing\". Scrubbing is\n * when the user has clicked the progress bar handle and is\n * dragging it along the progress bar.\n *\n * @param {boolean} [isScrubbing]\n * whether the user is or is not scrubbing\n *\n * @return {boolean|undefined}\n * - The value of scrubbing when getting\n * - Nothing when setting\n */\n scrubbing(isScrubbing) {\n if (typeof isScrubbing === 'undefined') {\n return this.scrubbing_;\n }\n this.scrubbing_ = !!isScrubbing;\n this.techCall_('setScrubbing', this.scrubbing_);\n if (isScrubbing) {\n this.addClass('vjs-scrubbing');\n } else {\n this.removeClass('vjs-scrubbing');\n }\n }\n\n /**\n * Get or set the current time (in seconds)\n *\n * @param {number|string} [seconds]\n * The time to seek to in seconds\n *\n * @return {number|undefined}\n * - the current time in seconds when getting\n * - Nothing when setting\n */\n currentTime(seconds) {\n if (seconds === undefined) {\n // cache last currentTime and return. default to 0 seconds\n //\n // Caching the currentTime is meant to prevent a massive amount of reads on the tech's\n // currentTime when scrubbing, but may not provide much performance benefit after all.\n // Should be tested. Also something has to read the actual current time or the cache will\n // never get updated.\n this.cache_.currentTime = this.techGet_('currentTime') || 0;\n return this.cache_.currentTime;\n }\n if (seconds < 0) {\n seconds = 0;\n }\n if (!this.isReady_ || this.changingSrc_ || !this.tech_ || !this.tech_.isReady_) {\n this.cache_.initTime = seconds;\n this.off('canplay', this.boundApplyInitTime_);\n this.one('canplay', this.boundApplyInitTime_);\n return;\n }\n this.techCall_('setCurrentTime', seconds);\n this.cache_.initTime = 0;\n if (isFinite(seconds)) {\n this.cache_.currentTime = Number(seconds);\n }\n }\n\n /**\n * Apply the value of initTime stored in cache as currentTime.\n *\n * @private\n */\n applyInitTime_() {\n this.currentTime(this.cache_.initTime);\n }\n\n /**\n * Normally gets the length in time of the video in seconds;\n * in all but the rarest use cases an argument will NOT be passed to the method\n *\n * > **NOTE**: The video must have started loading before the duration can be\n * known, and depending on preload behaviour may not be known until the video starts\n * playing.\n *\n * @fires Player#durationchange\n *\n * @param {number} [seconds]\n * The duration of the video to set in seconds\n *\n * @return {number|undefined}\n * - The duration of the video in seconds when getting\n * - Nothing when setting\n */\n duration(seconds) {\n if (seconds === undefined) {\n // return NaN if the duration is not known\n return this.cache_.duration !== undefined ? this.cache_.duration : NaN;\n }\n seconds = parseFloat(seconds);\n\n // Standardize on Infinity for signaling video is live\n if (seconds < 0) {\n seconds = Infinity;\n }\n if (seconds !== this.cache_.duration) {\n // Cache the last set value for optimized scrubbing\n this.cache_.duration = seconds;\n if (seconds === Infinity) {\n this.addClass('vjs-live');\n } else {\n this.removeClass('vjs-live');\n }\n if (!isNaN(seconds)) {\n // Do not fire durationchange unless the duration value is known.\n // @see [Spec]{@link https://www.w3.org/TR/2011/WD-html5-20110113/video.html#media-element-load-algorithm}\n\n /**\n * @event Player#durationchange\n * @type {Event}\n */\n this.trigger('durationchange');\n }\n }\n }\n\n /**\n * Calculates how much time is left in the video. Not part\n * of the native video API.\n *\n * @return {number}\n * The time remaining in seconds\n */\n remainingTime() {\n return this.duration() - this.currentTime();\n }\n\n /**\n * A remaining time function that is intended to be used when\n * the time is to be displayed directly to the user.\n *\n * @return {number}\n * The rounded time remaining in seconds\n */\n remainingTimeDisplay() {\n return Math.floor(this.duration()) - Math.floor(this.currentTime());\n }\n\n //\n // Kind of like an array of portions of the video that have been downloaded.\n\n /**\n * Get a TimeRange object with an array of the times of the video\n * that have been downloaded. If you just want the percent of the\n * video that's been downloaded, use bufferedPercent.\n *\n * @see [Buffered Spec]{@link http://dev.w3.org/html5/spec/video.html#dom-media-buffered}\n *\n * @return { import('./utils/time').TimeRange }\n * A mock {@link TimeRanges} object (following HTML spec)\n */\n buffered() {\n let buffered = this.techGet_('buffered');\n if (!buffered || !buffered.length) {\n buffered = createTimeRanges$1(0, 0);\n }\n return buffered;\n }\n\n /**\n * Get the TimeRanges of the media that are currently available\n * for seeking to.\n *\n * @see [Seekable Spec]{@link https://html.spec.whatwg.org/multipage/media.html#dom-media-seekable}\n *\n * @return { import('./utils/time').TimeRange }\n * A mock {@link TimeRanges} object (following HTML spec)\n */\n seekable() {\n let seekable = this.techGet_('seekable');\n if (!seekable || !seekable.length) {\n seekable = createTimeRanges$1(0, 0);\n }\n return seekable;\n }\n\n /**\n * Returns whether the player is in the \"seeking\" state.\n *\n * @return {boolean} True if the player is in the seeking state, false if not.\n */\n seeking() {\n return this.techGet_('seeking');\n }\n\n /**\n * Returns whether the player is in the \"ended\" state.\n *\n * @return {boolean} True if the player is in the ended state, false if not.\n */\n ended() {\n return this.techGet_('ended');\n }\n\n /**\n * Returns the current state of network activity for the element, from\n * the codes in the list below.\n * - NETWORK_EMPTY (numeric value 0)\n * The element has not yet been initialised. All attributes are in\n * their initial states.\n * - NETWORK_IDLE (numeric value 1)\n * The element's resource selection algorithm is active and has\n * selected a resource, but it is not actually using the network at\n * this time.\n * - NETWORK_LOADING (numeric value 2)\n * The user agent is actively trying to download data.\n * - NETWORK_NO_SOURCE (numeric value 3)\n * The element's resource selection algorithm is active, but it has\n * not yet found a resource to use.\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#network-states\n * @return {number} the current network activity state\n */\n networkState() {\n return this.techGet_('networkState');\n }\n\n /**\n * Returns a value that expresses the current state of the element\n * with respect to rendering the current playback position, from the\n * codes in the list below.\n * - HAVE_NOTHING (numeric value 0)\n * No information regarding the media resource is available.\n * - HAVE_METADATA (numeric value 1)\n * Enough of the resource has been obtained that the duration of the\n * resource is available.\n * - HAVE_CURRENT_DATA (numeric value 2)\n * Data for the immediate current playback position is available.\n * - HAVE_FUTURE_DATA (numeric value 3)\n * Data for the immediate current playback position is available, as\n * well as enough data for the user agent to advance the current\n * playback position in the direction of playback.\n * - HAVE_ENOUGH_DATA (numeric value 4)\n * The user agent estimates that enough data is available for\n * playback to proceed uninterrupted.\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-readystate\n * @return {number} the current playback rendering state\n */\n readyState() {\n return this.techGet_('readyState');\n }\n\n /**\n * Get the percent (as a decimal) of the video that's been downloaded.\n * This method is not a part of the native HTML video API.\n *\n * @return {number}\n * A decimal between 0 and 1 representing the percent\n * that is buffered 0 being 0% and 1 being 100%\n */\n bufferedPercent() {\n return bufferedPercent(this.buffered(), this.duration());\n }\n\n /**\n * Get the ending time of the last buffered time range\n * This is used in the progress bar to encapsulate all time ranges.\n *\n * @return {number}\n * The end of the last buffered time range\n */\n bufferedEnd() {\n const buffered = this.buffered();\n const duration = this.duration();\n let end = buffered.end(buffered.length - 1);\n if (end > duration) {\n end = duration;\n }\n return end;\n }\n\n /**\n * Get or set the current volume of the media\n *\n * @param {number} [percentAsDecimal]\n * The new volume as a decimal percent:\n * - 0 is muted/0%/off\n * - 1.0 is 100%/full\n * - 0.5 is half volume or 50%\n *\n * @return {number|undefined}\n * The current volume as a percent when getting\n */\n volume(percentAsDecimal) {\n let vol;\n if (percentAsDecimal !== undefined) {\n // Force value to between 0 and 1\n vol = Math.max(0, Math.min(1, percentAsDecimal));\n this.cache_.volume = vol;\n this.techCall_('setVolume', vol);\n if (vol > 0) {\n this.lastVolume_(vol);\n }\n return;\n }\n\n // Default to 1 when returning current volume.\n vol = parseFloat(this.techGet_('volume'));\n return isNaN(vol) ? 1 : vol;\n }\n\n /**\n * Get the current muted state, or turn mute on or off\n *\n * @param {boolean} [muted]\n * - true to mute\n * - false to unmute\n *\n * @return {boolean|undefined}\n * - true if mute is on and getting\n * - false if mute is off and getting\n * - nothing if setting\n */\n muted(muted) {\n if (muted !== undefined) {\n this.techCall_('setMuted', muted);\n return;\n }\n return this.techGet_('muted') || false;\n }\n\n /**\n * Get the current defaultMuted state, or turn defaultMuted on or off. defaultMuted\n * indicates the state of muted on initial playback.\n *\n * ```js\n * var myPlayer = videojs('some-player-id');\n *\n * myPlayer.src(\"http://www.example.com/path/to/video.mp4\");\n *\n * // get, should be false\n * console.log(myPlayer.defaultMuted());\n * // set to true\n * myPlayer.defaultMuted(true);\n * // get should be true\n * console.log(myPlayer.defaultMuted());\n * ```\n *\n * @param {boolean} [defaultMuted]\n * - true to mute\n * - false to unmute\n *\n * @return {boolean|undefined}\n * - true if defaultMuted is on and getting\n * - false if defaultMuted is off and getting\n * - Nothing when setting\n */\n defaultMuted(defaultMuted) {\n if (defaultMuted !== undefined) {\n this.techCall_('setDefaultMuted', defaultMuted);\n }\n return this.techGet_('defaultMuted') || false;\n }\n\n /**\n * Get the last volume, or set it\n *\n * @param {number} [percentAsDecimal]\n * The new last volume as a decimal percent:\n * - 0 is muted/0%/off\n * - 1.0 is 100%/full\n * - 0.5 is half volume or 50%\n *\n * @return {number|undefined}\n * - The current value of lastVolume as a percent when getting\n * - Nothing when setting\n *\n * @private\n */\n lastVolume_(percentAsDecimal) {\n if (percentAsDecimal !== undefined && percentAsDecimal !== 0) {\n this.cache_.lastVolume = percentAsDecimal;\n return;\n }\n return this.cache_.lastVolume;\n }\n\n /**\n * Check if current tech can support native fullscreen\n * (e.g. with built in controls like iOS)\n *\n * @return {boolean}\n * if native fullscreen is supported\n */\n supportsFullScreen() {\n return this.techGet_('supportsFullScreen') || false;\n }\n\n /**\n * Check if the player is in fullscreen mode or tell the player that it\n * is or is not in fullscreen mode.\n *\n * > NOTE: As of the latest HTML5 spec, isFullscreen is no longer an official\n * property and instead document.fullscreenElement is used. But isFullscreen is\n * still a valuable property for internal player workings.\n *\n * @param {boolean} [isFS]\n * Set the players current fullscreen state\n *\n * @return {boolean|undefined}\n * - true if fullscreen is on and getting\n * - false if fullscreen is off and getting\n * - Nothing when setting\n */\n isFullscreen(isFS) {\n if (isFS !== undefined) {\n const oldValue = this.isFullscreen_;\n this.isFullscreen_ = Boolean(isFS);\n\n // if we changed fullscreen state and we're in prefixed mode, trigger fullscreenchange\n // this is the only place where we trigger fullscreenchange events for older browsers\n // fullWindow mode is treated as a prefixed event and will get a fullscreenchange event as well\n if (this.isFullscreen_ !== oldValue && this.fsApi_.prefixed) {\n /**\n * @event Player#fullscreenchange\n * @type {Event}\n */\n this.trigger('fullscreenchange');\n }\n this.toggleFullscreenClass_();\n return;\n }\n return this.isFullscreen_;\n }\n\n /**\n * Increase the size of the video to full screen\n * In some browsers, full screen is not supported natively, so it enters\n * \"full window mode\", where the video fills the browser window.\n * In browsers and devices that support native full screen, sometimes the\n * browser's default controls will be shown, and not the Video.js custom skin.\n * This includes most mobile devices (iOS, Android) and older versions of\n * Safari.\n *\n * @param {Object} [fullscreenOptions]\n * Override the player fullscreen options\n *\n * @fires Player#fullscreenchange\n */\n requestFullscreen(fullscreenOptions) {\n if (this.isInPictureInPicture()) {\n this.exitPictureInPicture();\n }\n const self = this;\n return new Promise((resolve, reject) => {\n function offHandler() {\n self.off('fullscreenerror', errorHandler);\n self.off('fullscreenchange', changeHandler);\n }\n function changeHandler() {\n offHandler();\n resolve();\n }\n function errorHandler(e, err) {\n offHandler();\n reject(err);\n }\n self.one('fullscreenchange', changeHandler);\n self.one('fullscreenerror', errorHandler);\n const promise = self.requestFullscreenHelper_(fullscreenOptions);\n if (promise) {\n promise.then(offHandler, offHandler);\n promise.then(resolve, reject);\n }\n });\n }\n requestFullscreenHelper_(fullscreenOptions) {\n let fsOptions;\n\n // Only pass fullscreen options to requestFullscreen in spec-compliant browsers.\n // Use defaults or player configured option unless passed directly to this method.\n if (!this.fsApi_.prefixed) {\n fsOptions = this.options_.fullscreen && this.options_.fullscreen.options || {};\n if (fullscreenOptions !== undefined) {\n fsOptions = fullscreenOptions;\n }\n }\n\n // This method works as follows:\n // 1. if a fullscreen api is available, use it\n // 1. call requestFullscreen with potential options\n // 2. if we got a promise from above, use it to update isFullscreen()\n // 2. otherwise, if the tech supports fullscreen, call `enterFullScreen` on it.\n // This is particularly used for iPhone, older iPads, and non-safari browser on iOS.\n // 3. otherwise, use \"fullWindow\" mode\n if (this.fsApi_.requestFullscreen) {\n const promise = this.el_[this.fsApi_.requestFullscreen](fsOptions);\n\n // Even on browsers with promise support this may not return a promise\n if (promise) {\n promise.then(() => this.isFullscreen(true), () => this.isFullscreen(false));\n }\n return promise;\n } else if (this.tech_.supportsFullScreen() && !this.options_.preferFullWindow === true) {\n // we can't take the video.js controls fullscreen but we can go fullscreen\n // with native controls\n this.techCall_('enterFullScreen');\n } else {\n // fullscreen isn't supported so we'll just stretch the video element to\n // fill the viewport\n this.enterFullWindow();\n }\n }\n\n /**\n * Return the video to its normal size after having been in full screen mode\n *\n * @fires Player#fullscreenchange\n */\n exitFullscreen() {\n const self = this;\n return new Promise((resolve, reject) => {\n function offHandler() {\n self.off('fullscreenerror', errorHandler);\n self.off('fullscreenchange', changeHandler);\n }\n function changeHandler() {\n offHandler();\n resolve();\n }\n function errorHandler(e, err) {\n offHandler();\n reject(err);\n }\n self.one('fullscreenchange', changeHandler);\n self.one('fullscreenerror', errorHandler);\n const promise = self.exitFullscreenHelper_();\n if (promise) {\n promise.then(offHandler, offHandler);\n // map the promise to our resolve/reject methods\n promise.then(resolve, reject);\n }\n });\n }\n exitFullscreenHelper_() {\n if (this.fsApi_.requestFullscreen) {\n const promise = document[this.fsApi_.exitFullscreen]();\n\n // Even on browsers with promise support this may not return a promise\n if (promise) {\n // we're splitting the promise here, so, we want to catch the\n // potential error so that this chain doesn't have unhandled errors\n silencePromise(promise.then(() => this.isFullscreen(false)));\n }\n return promise;\n } else if (this.tech_.supportsFullScreen() && !this.options_.preferFullWindow === true) {\n this.techCall_('exitFullScreen');\n } else {\n this.exitFullWindow();\n }\n }\n\n /**\n * When fullscreen isn't supported we can stretch the\n * video container to as wide as the browser will let us.\n *\n * @fires Player#enterFullWindow\n */\n enterFullWindow() {\n this.isFullscreen(true);\n this.isFullWindow = true;\n\n // Storing original doc overflow value to return to when fullscreen is off\n this.docOrigOverflow = document.documentElement.style.overflow;\n\n // Add listener for esc key to exit fullscreen\n on(document, 'keydown', this.boundFullWindowOnEscKey_);\n\n // Hide any scroll bars\n document.documentElement.style.overflow = 'hidden';\n\n // Apply fullscreen styles\n addClass(document.body, 'vjs-full-window');\n\n /**\n * @event Player#enterFullWindow\n * @type {Event}\n */\n this.trigger('enterFullWindow');\n }\n\n /**\n * Check for call to either exit full window or\n * full screen on ESC key\n *\n * @param {string} event\n * Event to check for key press\n */\n fullWindowOnEscKey(event) {\n if (keycode.isEventKey(event, 'Esc')) {\n if (this.isFullscreen() === true) {\n if (!this.isFullWindow) {\n this.exitFullscreen();\n } else {\n this.exitFullWindow();\n }\n }\n }\n }\n\n /**\n * Exit full window\n *\n * @fires Player#exitFullWindow\n */\n exitFullWindow() {\n this.isFullscreen(false);\n this.isFullWindow = false;\n off(document, 'keydown', this.boundFullWindowOnEscKey_);\n\n // Unhide scroll bars.\n document.documentElement.style.overflow = this.docOrigOverflow;\n\n // Remove fullscreen styles\n removeClass(document.body, 'vjs-full-window');\n\n // Resize the box, controller, and poster to original sizes\n // this.positionAll();\n /**\n * @event Player#exitFullWindow\n * @type {Event}\n */\n this.trigger('exitFullWindow');\n }\n\n /**\n * Get or set disable Picture-in-Picture mode.\n *\n * @param {boolean} [value]\n * - true will disable Picture-in-Picture mode\n * - false will enable Picture-in-Picture mode\n */\n disablePictureInPicture(value) {\n if (value === undefined) {\n return this.techGet_('disablePictureInPicture');\n }\n this.techCall_('setDisablePictureInPicture', value);\n this.options_.disablePictureInPicture = value;\n this.trigger('disablepictureinpicturechanged');\n }\n\n /**\n * Check if the player is in Picture-in-Picture mode or tell the player that it\n * is or is not in Picture-in-Picture mode.\n *\n * @param {boolean} [isPiP]\n * Set the players current Picture-in-Picture state\n *\n * @return {boolean|undefined}\n * - true if Picture-in-Picture is on and getting\n * - false if Picture-in-Picture is off and getting\n * - nothing if setting\n */\n isInPictureInPicture(isPiP) {\n if (isPiP !== undefined) {\n this.isInPictureInPicture_ = !!isPiP;\n this.togglePictureInPictureClass_();\n return;\n }\n return !!this.isInPictureInPicture_;\n }\n\n /**\n * Create a floating video window always on top of other windows so that users may\n * continue consuming media while they interact with other content sites, or\n * applications on their device.\n *\n * This can use document picture-in-picture or element picture in picture\n *\n * Set `enableDocumentPictureInPicture` to `true` to use docPiP on a supported browser\n * Else set `disablePictureInPicture` to `false` to disable elPiP on a supported browser\n *\n *\n * @see [Spec]{@link https://w3c.github.io/picture-in-picture/}\n * @see [Spec]{@link https://wicg.github.io/document-picture-in-picture/}\n *\n * @fires Player#enterpictureinpicture\n *\n * @return {Promise}\n * A promise with a Picture-in-Picture window.\n */\n requestPictureInPicture() {\n if (this.options_.enableDocumentPictureInPicture && window$1.documentPictureInPicture) {\n const pipContainer = document.createElement(this.el().tagName);\n pipContainer.classList = this.el().classList;\n pipContainer.classList.add('vjs-pip-container');\n if (this.posterImage) {\n pipContainer.appendChild(this.posterImage.el().cloneNode(true));\n }\n if (this.titleBar) {\n pipContainer.appendChild(this.titleBar.el().cloneNode(true));\n }\n pipContainer.appendChild(createEl('p', {\n className: 'vjs-pip-text'\n }, {}, this.localize('Playing in picture-in-picture')));\n return window$1.documentPictureInPicture.requestWindow({\n // The aspect ratio won't be correct, Chrome bug https://crbug.com/1407629\n width: this.videoWidth(),\n height: this.videoHeight()\n }).then(pipWindow => {\n copyStyleSheetsToWindow(pipWindow);\n this.el_.parentNode.insertBefore(pipContainer, this.el_);\n pipWindow.document.body.appendChild(this.el_);\n pipWindow.document.body.classList.add('vjs-pip-window');\n this.player_.isInPictureInPicture(true);\n this.player_.trigger('enterpictureinpicture');\n\n // Listen for the PiP closing event to move the video back.\n pipWindow.addEventListener('pagehide', event => {\n const pipVideo = event.target.querySelector('.video-js');\n pipContainer.parentNode.replaceChild(pipVideo, pipContainer);\n this.player_.isInPictureInPicture(false);\n this.player_.trigger('leavepictureinpicture');\n });\n return pipWindow;\n });\n }\n if ('pictureInPictureEnabled' in document && this.disablePictureInPicture() === false) {\n /**\n * This event fires when the player enters picture in picture mode\n *\n * @event Player#enterpictureinpicture\n * @type {Event}\n */\n return this.techGet_('requestPictureInPicture');\n }\n return Promise.reject('No PiP mode is available');\n }\n\n /**\n * Exit Picture-in-Picture mode.\n *\n * @see [Spec]{@link https://wicg.github.io/picture-in-picture}\n *\n * @fires Player#leavepictureinpicture\n *\n * @return {Promise}\n * A promise.\n */\n exitPictureInPicture() {\n if (window$1.documentPictureInPicture && window$1.documentPictureInPicture.window) {\n // With documentPictureInPicture, Player#leavepictureinpicture is fired in the pagehide handler\n window$1.documentPictureInPicture.window.close();\n return Promise.resolve();\n }\n if ('pictureInPictureEnabled' in document) {\n /**\n * This event fires when the player leaves picture in picture mode\n *\n * @event Player#leavepictureinpicture\n * @type {Event}\n */\n return document.exitPictureInPicture();\n }\n }\n\n /**\n * Called when this Player has focus and a key gets pressed down, or when\n * any Component of this player receives a key press that it doesn't handle.\n * This allows player-wide hotkeys (either as defined below, or optionally\n * by an external function).\n *\n * @param {KeyboardEvent} event\n * The `keydown` event that caused this function to be called.\n *\n * @listens keydown\n */\n handleKeyDown(event) {\n const userActions = this.options_.userActions;\n\n // Bail out if hotkeys are not configured.\n if (!userActions || !userActions.hotkeys) {\n return;\n }\n\n // Function that determines whether or not to exclude an element from\n // hotkeys handling.\n const excludeElement = el => {\n const tagName = el.tagName.toLowerCase();\n\n // The first and easiest test is for `contenteditable` elements.\n if (el.isContentEditable) {\n return true;\n }\n\n // Inputs matching these types will still trigger hotkey handling as\n // they are not text inputs.\n const allowedInputTypes = ['button', 'checkbox', 'hidden', 'radio', 'reset', 'submit'];\n if (tagName === 'input') {\n return allowedInputTypes.indexOf(el.type) === -1;\n }\n\n // The final test is by tag name. These tags will be excluded entirely.\n const excludedTags = ['textarea'];\n return excludedTags.indexOf(tagName) !== -1;\n };\n\n // Bail out if the user is focused on an interactive form element.\n if (excludeElement(this.el_.ownerDocument.activeElement)) {\n return;\n }\n if (typeof userActions.hotkeys === 'function') {\n userActions.hotkeys.call(this, event);\n } else {\n this.handleHotkeys(event);\n }\n }\n\n /**\n * Called when this Player receives a hotkey keydown event.\n * Supported player-wide hotkeys are:\n *\n * f - toggle fullscreen\n * m - toggle mute\n * k or Space - toggle play/pause\n *\n * @param {Event} event\n * The `keydown` event that caused this function to be called.\n */\n handleHotkeys(event) {\n const hotkeys = this.options_.userActions ? this.options_.userActions.hotkeys : {};\n\n // set fullscreenKey, muteKey, playPauseKey from `hotkeys`, use defaults if not set\n const _hotkeys$fullscreenKe = hotkeys.fullscreenKey,\n fullscreenKey = _hotkeys$fullscreenKe === void 0 ? keydownEvent => keycode.isEventKey(keydownEvent, 'f') : _hotkeys$fullscreenKe,\n _hotkeys$muteKey = hotkeys.muteKey,\n muteKey = _hotkeys$muteKey === void 0 ? keydownEvent => keycode.isEventKey(keydownEvent, 'm') : _hotkeys$muteKey,\n _hotkeys$playPauseKey = hotkeys.playPauseKey,\n playPauseKey = _hotkeys$playPauseKey === void 0 ? keydownEvent => keycode.isEventKey(keydownEvent, 'k') || keycode.isEventKey(keydownEvent, 'Space') : _hotkeys$playPauseKey;\n if (fullscreenKey.call(this, event)) {\n event.preventDefault();\n event.stopPropagation();\n const FSToggle = Component$1.getComponent('FullscreenToggle');\n if (document[this.fsApi_.fullscreenEnabled] !== false) {\n FSToggle.prototype.handleClick.call(this, event);\n }\n } else if (muteKey.call(this, event)) {\n event.preventDefault();\n event.stopPropagation();\n const MuteToggle = Component$1.getComponent('MuteToggle');\n MuteToggle.prototype.handleClick.call(this, event);\n } else if (playPauseKey.call(this, event)) {\n event.preventDefault();\n event.stopPropagation();\n const PlayToggle = Component$1.getComponent('PlayToggle');\n PlayToggle.prototype.handleClick.call(this, event);\n }\n }\n\n /**\n * Check whether the player can play a given mimetype\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110113/video.html#dom-navigator-canplaytype\n *\n * @param {string} type\n * The mimetype to check\n *\n * @return {string}\n * 'probably', 'maybe', or '' (empty string)\n */\n canPlayType(type) {\n let can;\n\n // Loop through each playback technology in the options order\n for (let i = 0, j = this.options_.techOrder; i < j.length; i++) {\n const techName = j[i];\n let tech = Tech.getTech(techName);\n\n // Support old behavior of techs being registered as components.\n // Remove once that deprecated behavior is removed.\n if (!tech) {\n tech = Component$1.getComponent(techName);\n }\n\n // Check if the current tech is defined before continuing\n if (!tech) {\n log$1.error(`The \"${techName}\" tech is undefined. Skipped browser support check for that tech.`);\n continue;\n }\n\n // Check if the browser supports this technology\n if (tech.isSupported()) {\n can = tech.canPlayType(type);\n if (can) {\n return can;\n }\n }\n }\n return '';\n }\n\n /**\n * Select source based on tech-order or source-order\n * Uses source-order selection if `options.sourceOrder` is truthy. Otherwise,\n * defaults to tech-order selection\n *\n * @param {Array} sources\n * The sources for a media asset\n *\n * @return {Object|boolean}\n * Object of source and tech order or false\n */\n selectSource(sources) {\n // Get only the techs specified in `techOrder` that exist and are supported by the\n // current platform\n const techs = this.options_.techOrder.map(techName => {\n return [techName, Tech.getTech(techName)];\n }).filter(_ref5 => {\n let _ref6 = _slicedToArray(_ref5, 2),\n techName = _ref6[0],\n tech = _ref6[1];\n // Check if the current tech is defined before continuing\n if (tech) {\n // Check if the browser supports this technology\n return tech.isSupported();\n }\n log$1.error(`The \"${techName}\" tech is undefined. Skipped browser support check for that tech.`);\n return false;\n });\n\n // Iterate over each `innerArray` element once per `outerArray` element and execute\n // `tester` with both. If `tester` returns a non-falsy value, exit early and return\n // that value.\n const findFirstPassingTechSourcePair = function (outerArray, innerArray, tester) {\n let found;\n outerArray.some(outerChoice => {\n return innerArray.some(innerChoice => {\n found = tester(outerChoice, innerChoice);\n if (found) {\n return true;\n }\n });\n });\n return found;\n };\n let foundSourceAndTech;\n const flip = fn => (a, b) => fn(b, a);\n const finder = (_ref7, source) => {\n let _ref8 = _slicedToArray(_ref7, 2),\n techName = _ref8[0],\n tech = _ref8[1];\n if (tech.canPlaySource(source, this.options_[techName.toLowerCase()])) {\n return {\n source,\n tech: techName\n };\n }\n };\n\n // Depending on the truthiness of `options.sourceOrder`, we swap the order of techs and sources\n // to select from them based on their priority.\n if (this.options_.sourceOrder) {\n // Source-first ordering\n foundSourceAndTech = findFirstPassingTechSourcePair(sources, techs, flip(finder));\n } else {\n // Tech-first ordering\n foundSourceAndTech = findFirstPassingTechSourcePair(techs, sources, finder);\n }\n return foundSourceAndTech || false;\n }\n\n /**\n * Executes source setting and getting logic\n *\n * @param {Tech~SourceObject|Tech~SourceObject[]|string} [source]\n * A SourceObject, an array of SourceObjects, or a string referencing\n * a URL to a media source. It is _highly recommended_ that an object\n * or array of objects is used here, so that source selection\n * algorithms can take the `type` into account.\n *\n * If not provided, this method acts as a getter.\n * @param {boolean} [isRetry]\n * Indicates whether this is being called internally as a result of a retry\n *\n * @return {string|undefined}\n * If the `source` argument is missing, returns the current source\n * URL. Otherwise, returns nothing/undefined.\n */\n handleSrc_(source, isRetry) {\n // getter usage\n if (typeof source === 'undefined') {\n return this.cache_.src || '';\n }\n\n // Reset retry behavior for new source\n if (this.resetRetryOnError_) {\n this.resetRetryOnError_();\n }\n\n // filter out invalid sources and turn our source into\n // an array of source objects\n const sources = filterSource(source);\n\n // if a source was passed in then it is invalid because\n // it was filtered to a zero length Array. So we have to\n // show an error\n if (!sources.length) {\n this.setTimeout(function () {\n this.error({\n code: 4,\n message: this.options_.notSupportedMessage\n });\n }, 0);\n return;\n }\n\n // initial sources\n this.changingSrc_ = true;\n\n // Only update the cached source list if we are not retrying a new source after error,\n // since in that case we want to include the failed source(s) in the cache\n if (!isRetry) {\n this.cache_.sources = sources;\n }\n this.updateSourceCaches_(sources[0]);\n\n // middlewareSource is the source after it has been changed by middleware\n setSource(this, sources[0], (middlewareSource, mws) => {\n this.middleware_ = mws;\n\n // since sourceSet is async we have to update the cache again after we select a source since\n // the source that is selected could be out of order from the cache update above this callback.\n if (!isRetry) {\n this.cache_.sources = sources;\n }\n this.updateSourceCaches_(middlewareSource);\n const err = this.src_(middlewareSource);\n if (err) {\n if (sources.length > 1) {\n return this.handleSrc_(sources.slice(1));\n }\n this.changingSrc_ = false;\n\n // We need to wrap this in a timeout to give folks a chance to add error event handlers\n this.setTimeout(function () {\n this.error({\n code: 4,\n message: this.options_.notSupportedMessage\n });\n }, 0);\n\n // we could not find an appropriate tech, but let's still notify the delegate that this is it\n // this needs a better comment about why this is needed\n this.triggerReady();\n return;\n }\n setTech(mws, this.tech_);\n });\n\n // Try another available source if this one fails before playback.\n if (sources.length > 1) {\n const retry = () => {\n // Remove the error modal\n this.error(null);\n this.handleSrc_(sources.slice(1), true);\n };\n const stopListeningForErrors = () => {\n this.off('error', retry);\n };\n this.one('error', retry);\n this.one('playing', stopListeningForErrors);\n this.resetRetryOnError_ = () => {\n this.off('error', retry);\n this.off('playing', stopListeningForErrors);\n };\n }\n }\n\n /**\n * Get or set the video source.\n *\n * @param {Tech~SourceObject|Tech~SourceObject[]|string} [source]\n * A SourceObject, an array of SourceObjects, or a string referencing\n * a URL to a media source. It is _highly recommended_ that an object\n * or array of objects is used here, so that source selection\n * algorithms can take the `type` into account.\n *\n * If not provided, this method acts as a getter.\n *\n * @return {string|undefined}\n * If the `source` argument is missing, returns the current source\n * URL. Otherwise, returns nothing/undefined.\n */\n src(source) {\n return this.handleSrc_(source, false);\n }\n\n /**\n * Set the source object on the tech, returns a boolean that indicates whether\n * there is a tech that can play the source or not\n *\n * @param {Tech~SourceObject} source\n * The source object to set on the Tech\n *\n * @return {boolean}\n * - True if there is no Tech to playback this source\n * - False otherwise\n *\n * @private\n */\n src_(source) {\n const sourceTech = this.selectSource([source]);\n if (!sourceTech) {\n return true;\n }\n if (!titleCaseEquals(sourceTech.tech, this.techName_)) {\n this.changingSrc_ = true;\n // load this technology with the chosen source\n this.loadTech_(sourceTech.tech, sourceTech.source);\n this.tech_.ready(() => {\n this.changingSrc_ = false;\n });\n return false;\n }\n\n // wait until the tech is ready to set the source\n // and set it synchronously if possible (#2326)\n this.ready(function () {\n // The setSource tech method was added with source handlers\n // so older techs won't support it\n // We need to check the direct prototype for the case where subclasses\n // of the tech do not support source handlers\n if (this.tech_.constructor.prototype.hasOwnProperty('setSource')) {\n this.techCall_('setSource', source);\n } else {\n this.techCall_('src', source.src);\n }\n this.changingSrc_ = false;\n }, true);\n return false;\n }\n\n /**\n * Begin loading the src data.\n */\n load() {\n // Workaround to use the load method with the VHS.\n // Does not cover the case when the load method is called directly from the mediaElement.\n if (this.tech_ && this.tech_.vhs) {\n this.src(this.currentSource());\n return;\n }\n this.techCall_('load');\n }\n\n /**\n * Reset the player. Loads the first tech in the techOrder,\n * removes all the text tracks in the existing `tech`,\n * and calls `reset` on the `tech`.\n */\n reset() {\n if (this.paused()) {\n this.doReset_();\n } else {\n const playPromise = this.play();\n silencePromise(playPromise.then(() => this.doReset_()));\n }\n }\n doReset_() {\n if (this.tech_) {\n this.tech_.clearTracks('text');\n }\n this.removeClass('vjs-playing');\n this.addClass('vjs-paused');\n this.resetCache_();\n this.poster('');\n this.loadTech_(this.options_.techOrder[0], null);\n this.techCall_('reset');\n this.resetControlBarUI_();\n this.error(null);\n if (this.titleBar) {\n this.titleBar.update({\n title: undefined,\n description: undefined\n });\n }\n if (isEvented(this)) {\n this.trigger('playerreset');\n }\n }\n\n /**\n * Reset Control Bar's UI by calling sub-methods that reset\n * all of Control Bar's components\n */\n resetControlBarUI_() {\n this.resetProgressBar_();\n this.resetPlaybackRate_();\n this.resetVolumeBar_();\n }\n\n /**\n * Reset tech's progress so progress bar is reset in the UI\n */\n resetProgressBar_() {\n this.currentTime(0);\n const _ref9 = this.controlBar || {},\n currentTimeDisplay = _ref9.currentTimeDisplay,\n durationDisplay = _ref9.durationDisplay,\n progressControl = _ref9.progressControl,\n remainingTimeDisplay = _ref9.remainingTimeDisplay;\n const _ref10 = progressControl || {},\n seekBar = _ref10.seekBar;\n if (currentTimeDisplay) {\n currentTimeDisplay.updateContent();\n }\n if (durationDisplay) {\n durationDisplay.updateContent();\n }\n if (remainingTimeDisplay) {\n remainingTimeDisplay.updateContent();\n }\n if (seekBar) {\n seekBar.update();\n if (seekBar.loadProgressBar) {\n seekBar.loadProgressBar.update();\n }\n }\n }\n\n /**\n * Reset Playback ratio\n */\n resetPlaybackRate_() {\n this.playbackRate(this.defaultPlaybackRate());\n this.handleTechRateChange_();\n }\n\n /**\n * Reset Volume bar\n */\n resetVolumeBar_() {\n this.volume(1.0);\n this.trigger('volumechange');\n }\n\n /**\n * Returns all of the current source objects.\n *\n * @return {Tech~SourceObject[]}\n * The current source objects\n */\n currentSources() {\n const source = this.currentSource();\n const sources = [];\n\n // assume `{}` or `{ src }`\n if (Object.keys(source).length !== 0) {\n sources.push(source);\n }\n return this.cache_.sources || sources;\n }\n\n /**\n * Returns the current source object.\n *\n * @return {Tech~SourceObject}\n * The current source object\n */\n currentSource() {\n return this.cache_.source || {};\n }\n\n /**\n * Returns the fully qualified URL of the current source value e.g. http://mysite.com/video.mp4\n * Can be used in conjunction with `currentType` to assist in rebuilding the current source object.\n *\n * @return {string}\n * The current source\n */\n currentSrc() {\n return this.currentSource() && this.currentSource().src || '';\n }\n\n /**\n * Get the current source type e.g. video/mp4\n * This can allow you rebuild the current source object so that you could load the same\n * source and tech later\n *\n * @return {string}\n * The source MIME type\n */\n currentType() {\n return this.currentSource() && this.currentSource().type || '';\n }\n\n /**\n * Get or set the preload attribute\n *\n * @param {'none'|'auto'|'metadata'} [value]\n * Preload mode to pass to tech\n *\n * @return {string|undefined}\n * - The preload attribute value when getting\n * - Nothing when setting\n */\n preload(value) {\n if (value !== undefined) {\n this.techCall_('setPreload', value);\n this.options_.preload = value;\n return;\n }\n return this.techGet_('preload');\n }\n\n /**\n * Get or set the autoplay option. When this is a boolean it will\n * modify the attribute on the tech. When this is a string the attribute on\n * the tech will be removed and `Player` will handle autoplay on loadstarts.\n *\n * @param {boolean|'play'|'muted'|'any'} [value]\n * - true: autoplay using the browser behavior\n * - false: do not autoplay\n * - 'play': call play() on every loadstart\n * - 'muted': call muted() then play() on every loadstart\n * - 'any': call play() on every loadstart. if that fails call muted() then play().\n * - *: values other than those listed here will be set `autoplay` to true\n *\n * @return {boolean|string|undefined}\n * - The current value of autoplay when getting\n * - Nothing when setting\n */\n autoplay(value) {\n // getter usage\n if (value === undefined) {\n return this.options_.autoplay || false;\n }\n let techAutoplay;\n\n // if the value is a valid string set it to that, or normalize `true` to 'play', if need be\n if (typeof value === 'string' && /(any|play|muted)/.test(value) || value === true && this.options_.normalizeAutoplay) {\n this.options_.autoplay = value;\n this.manualAutoplay_(typeof value === 'string' ? value : 'play');\n techAutoplay = false;\n\n // any falsy value sets autoplay to false in the browser,\n // lets do the same\n } else if (!value) {\n this.options_.autoplay = false;\n\n // any other value (ie truthy) sets autoplay to true\n } else {\n this.options_.autoplay = true;\n }\n techAutoplay = typeof techAutoplay === 'undefined' ? this.options_.autoplay : techAutoplay;\n\n // if we don't have a tech then we do not queue up\n // a setAutoplay call on tech ready. We do this because the\n // autoplay option will be passed in the constructor and we\n // do not need to set it twice\n if (this.tech_) {\n this.techCall_('setAutoplay', techAutoplay);\n }\n }\n\n /**\n * Set or unset the playsinline attribute.\n * Playsinline tells the browser that non-fullscreen playback is preferred.\n *\n * @param {boolean} [value]\n * - true means that we should try to play inline by default\n * - false means that we should use the browser's default playback mode,\n * which in most cases is inline. iOS Safari is a notable exception\n * and plays fullscreen by default.\n *\n * @return {string|undefined}\n * - the current value of playsinline\n * - Nothing when setting\n *\n * @see [Spec]{@link https://html.spec.whatwg.org/#attr-video-playsinline}\n */\n playsinline(value) {\n if (value !== undefined) {\n this.techCall_('setPlaysinline', value);\n this.options_.playsinline = value;\n }\n return this.techGet_('playsinline');\n }\n\n /**\n * Get or set the loop attribute on the video element.\n *\n * @param {boolean} [value]\n * - true means that we should loop the video\n * - false means that we should not loop the video\n *\n * @return {boolean|undefined}\n * - The current value of loop when getting\n * - Nothing when setting\n */\n loop(value) {\n if (value !== undefined) {\n this.techCall_('setLoop', value);\n this.options_.loop = value;\n return;\n }\n return this.techGet_('loop');\n }\n\n /**\n * Get or set the poster image source url\n *\n * @fires Player#posterchange\n *\n * @param {string} [src]\n * Poster image source URL\n *\n * @return {string|undefined}\n * - The current value of poster when getting\n * - Nothing when setting\n */\n poster(src) {\n if (src === undefined) {\n return this.poster_;\n }\n\n // The correct way to remove a poster is to set as an empty string\n // other falsey values will throw errors\n if (!src) {\n src = '';\n }\n if (src === this.poster_) {\n return;\n }\n\n // update the internal poster variable\n this.poster_ = src;\n\n // update the tech's poster\n this.techCall_('setPoster', src);\n this.isPosterFromTech_ = false;\n\n // alert components that the poster has been set\n /**\n * This event fires when the poster image is changed on the player.\n *\n * @event Player#posterchange\n * @type {Event}\n */\n this.trigger('posterchange');\n }\n\n /**\n * Some techs (e.g. YouTube) can provide a poster source in an\n * asynchronous way. We want the poster component to use this\n * poster source so that it covers up the tech's controls.\n * (YouTube's play button). However we only want to use this\n * source if the player user hasn't set a poster through\n * the normal APIs.\n *\n * @fires Player#posterchange\n * @listens Tech#posterchange\n * @private\n */\n handleTechPosterChange_() {\n if ((!this.poster_ || this.options_.techCanOverridePoster) && this.tech_ && this.tech_.poster) {\n const newPoster = this.tech_.poster() || '';\n if (newPoster !== this.poster_) {\n this.poster_ = newPoster;\n this.isPosterFromTech_ = true;\n\n // Let components know the poster has changed\n this.trigger('posterchange');\n }\n }\n }\n\n /**\n * Get or set whether or not the controls are showing.\n *\n * @fires Player#controlsenabled\n *\n * @param {boolean} [bool]\n * - true to turn controls on\n * - false to turn controls off\n *\n * @return {boolean|undefined}\n * - The current value of controls when getting\n * - Nothing when setting\n */\n controls(bool) {\n if (bool === undefined) {\n return !!this.controls_;\n }\n bool = !!bool;\n\n // Don't trigger a change event unless it actually changed\n if (this.controls_ === bool) {\n return;\n }\n this.controls_ = bool;\n if (this.usingNativeControls()) {\n this.techCall_('setControls', bool);\n }\n if (this.controls_) {\n this.removeClass('vjs-controls-disabled');\n this.addClass('vjs-controls-enabled');\n /**\n * @event Player#controlsenabled\n * @type {Event}\n */\n this.trigger('controlsenabled');\n if (!this.usingNativeControls()) {\n this.addTechControlsListeners_();\n }\n } else {\n this.removeClass('vjs-controls-enabled');\n this.addClass('vjs-controls-disabled');\n /**\n * @event Player#controlsdisabled\n * @type {Event}\n */\n this.trigger('controlsdisabled');\n if (!this.usingNativeControls()) {\n this.removeTechControlsListeners_();\n }\n }\n }\n\n /**\n * Toggle native controls on/off. Native controls are the controls built into\n * devices (e.g. default iPhone controls) or other techs\n * (e.g. Vimeo Controls)\n * **This should only be set by the current tech, because only the tech knows\n * if it can support native controls**\n *\n * @fires Player#usingnativecontrols\n * @fires Player#usingcustomcontrols\n *\n * @param {boolean} [bool]\n * - true to turn native controls on\n * - false to turn native controls off\n *\n * @return {boolean|undefined}\n * - The current value of native controls when getting\n * - Nothing when setting\n */\n usingNativeControls(bool) {\n if (bool === undefined) {\n return !!this.usingNativeControls_;\n }\n bool = !!bool;\n\n // Don't trigger a change event unless it actually changed\n if (this.usingNativeControls_ === bool) {\n return;\n }\n this.usingNativeControls_ = bool;\n if (this.usingNativeControls_) {\n this.addClass('vjs-using-native-controls');\n\n /**\n * player is using the native device controls\n *\n * @event Player#usingnativecontrols\n * @type {Event}\n */\n this.trigger('usingnativecontrols');\n } else {\n this.removeClass('vjs-using-native-controls');\n\n /**\n * player is using the custom HTML controls\n *\n * @event Player#usingcustomcontrols\n * @type {Event}\n */\n this.trigger('usingcustomcontrols');\n }\n }\n\n /**\n * Set or get the current MediaError\n *\n * @fires Player#error\n *\n * @param {MediaError|string|number} [err]\n * A MediaError or a string/number to be turned\n * into a MediaError\n *\n * @return {MediaError|null|undefined}\n * - The current MediaError when getting (or null)\n * - Nothing when setting\n */\n error(err) {\n if (err === undefined) {\n return this.error_ || null;\n }\n\n // allow hooks to modify error object\n hooks('beforeerror').forEach(hookFunction => {\n const newErr = hookFunction(this, err);\n if (!(isObject(newErr) && !Array.isArray(newErr) || typeof newErr === 'string' || typeof newErr === 'number' || newErr === null)) {\n this.log.error('please return a value that MediaError expects in beforeerror hooks');\n return;\n }\n err = newErr;\n });\n\n // Suppress the first error message for no compatible source until\n // user interaction\n if (this.options_.suppressNotSupportedError && err && err.code === 4) {\n const triggerSuppressedError = function () {\n this.error(err);\n };\n this.options_.suppressNotSupportedError = false;\n this.any(['click', 'touchstart'], triggerSuppressedError);\n this.one('loadstart', function () {\n this.off(['click', 'touchstart'], triggerSuppressedError);\n });\n return;\n }\n\n // restoring to default\n if (err === null) {\n this.error_ = null;\n this.removeClass('vjs-error');\n if (this.errorDisplay) {\n this.errorDisplay.close();\n }\n return;\n }\n this.error_ = new MediaError(err);\n\n // add the vjs-error classname to the player\n this.addClass('vjs-error');\n\n // log the name of the error type and any message\n // IE11 logs \"[object object]\" and required you to expand message to see error object\n log$1.error(`(CODE:${this.error_.code} ${MediaError.errorTypes[this.error_.code]})`, this.error_.message, this.error_);\n\n /**\n * @event Player#error\n * @type {Event}\n */\n this.trigger('error');\n\n // notify hooks of the per player error\n hooks('error').forEach(hookFunction => hookFunction(this, this.error_));\n return;\n }\n\n /**\n * Report user activity\n *\n * @param {Object} event\n * Event object\n */\n reportUserActivity(event) {\n this.userActivity_ = true;\n }\n\n /**\n * Get/set if user is active\n *\n * @fires Player#useractive\n * @fires Player#userinactive\n *\n * @param {boolean} [bool]\n * - true if the user is active\n * - false if the user is inactive\n *\n * @return {boolean|undefined}\n * - The current value of userActive when getting\n * - Nothing when setting\n */\n userActive(bool) {\n if (bool === undefined) {\n return this.userActive_;\n }\n bool = !!bool;\n if (bool === this.userActive_) {\n return;\n }\n this.userActive_ = bool;\n if (this.userActive_) {\n this.userActivity_ = true;\n this.removeClass('vjs-user-inactive');\n this.addClass('vjs-user-active');\n /**\n * @event Player#useractive\n * @type {Event}\n */\n this.trigger('useractive');\n return;\n }\n\n // Chrome/Safari/IE have bugs where when you change the cursor it can\n // trigger a mousemove event. This causes an issue when you're hiding\n // the cursor when the user is inactive, and a mousemove signals user\n // activity. Making it impossible to go into inactive mode. Specifically\n // this happens in fullscreen when we really need to hide the cursor.\n //\n // When this gets resolved in ALL browsers it can be removed\n // https://code.google.com/p/chromium/issues/detail?id=103041\n if (this.tech_) {\n this.tech_.one('mousemove', function (e) {\n e.stopPropagation();\n e.preventDefault();\n });\n }\n this.userActivity_ = false;\n this.removeClass('vjs-user-active');\n this.addClass('vjs-user-inactive');\n /**\n * @event Player#userinactive\n * @type {Event}\n */\n this.trigger('userinactive');\n }\n\n /**\n * Listen for user activity based on timeout value\n *\n * @private\n */\n listenForUserActivity_() {\n let mouseInProgress;\n let lastMoveX;\n let lastMoveY;\n const handleActivity = bind_(this, this.reportUserActivity);\n const handleMouseMove = function (e) {\n // #1068 - Prevent mousemove spamming\n // Chrome Bug: https://code.google.com/p/chromium/issues/detail?id=366970\n if (e.screenX !== lastMoveX || e.screenY !== lastMoveY) {\n lastMoveX = e.screenX;\n lastMoveY = e.screenY;\n handleActivity();\n }\n };\n const handleMouseDown = function () {\n handleActivity();\n // For as long as the they are touching the device or have their mouse down,\n // we consider them active even if they're not moving their finger or mouse.\n // So we want to continue to update that they are active\n this.clearInterval(mouseInProgress);\n // Setting userActivity=true now and setting the interval to the same time\n // as the activityCheck interval (250) should ensure we never miss the\n // next activityCheck\n mouseInProgress = this.setInterval(handleActivity, 250);\n };\n const handleMouseUpAndMouseLeave = function (event) {\n handleActivity();\n // Stop the interval that maintains activity if the mouse/touch is down\n this.clearInterval(mouseInProgress);\n };\n\n // Any mouse movement will be considered user activity\n this.on('mousedown', handleMouseDown);\n this.on('mousemove', handleMouseMove);\n this.on('mouseup', handleMouseUpAndMouseLeave);\n this.on('mouseleave', handleMouseUpAndMouseLeave);\n const controlBar = this.getChild('controlBar');\n\n // Fixes bug on Android & iOS where when tapping progressBar (when control bar is displayed)\n // controlBar would no longer be hidden by default timeout.\n if (controlBar && !IS_IOS && !IS_ANDROID) {\n controlBar.on('mouseenter', function (event) {\n if (this.player().options_.inactivityTimeout !== 0) {\n this.player().cache_.inactivityTimeout = this.player().options_.inactivityTimeout;\n }\n this.player().options_.inactivityTimeout = 0;\n });\n controlBar.on('mouseleave', function (event) {\n this.player().options_.inactivityTimeout = this.player().cache_.inactivityTimeout;\n });\n }\n\n // Listen for keyboard navigation\n // Shouldn't need to use inProgress interval because of key repeat\n this.on('keydown', handleActivity);\n this.on('keyup', handleActivity);\n\n // Run an interval every 250 milliseconds instead of stuffing everything into\n // the mousemove/touchmove function itself, to prevent performance degradation.\n // `this.reportUserActivity` simply sets this.userActivity_ to true, which\n // then gets picked up by this loop\n // http://ejohn.org/blog/learning-from-twitter/\n let inactivityTimeout;\n\n /** @this Player */\n const activityCheck = function () {\n // Check to see if mouse/touch activity has happened\n if (!this.userActivity_) {\n return;\n }\n\n // Reset the activity tracker\n this.userActivity_ = false;\n\n // If the user state was inactive, set the state to active\n this.userActive(true);\n\n // Clear any existing inactivity timeout to start the timer over\n this.clearTimeout(inactivityTimeout);\n const timeout = this.options_.inactivityTimeout;\n if (timeout <= 0) {\n return;\n }\n\n // In milliseconds, if no more activity has occurred the\n // user will be considered inactive\n inactivityTimeout = this.setTimeout(function () {\n // Protect against the case where the inactivityTimeout can trigger just\n // before the next user activity is picked up by the activity check loop\n // causing a flicker\n if (!this.userActivity_) {\n this.userActive(false);\n }\n }, timeout);\n };\n this.setInterval(activityCheck, 250);\n }\n\n /**\n * Gets or sets the current playback rate. A playback rate of\n * 1.0 represents normal speed and 0.5 would indicate half-speed\n * playback, for instance.\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-playbackrate\n *\n * @param {number} [rate]\n * New playback rate to set.\n *\n * @return {number|undefined}\n * - The current playback rate when getting or 1.0\n * - Nothing when setting\n */\n playbackRate(rate) {\n if (rate !== undefined) {\n // NOTE: this.cache_.lastPlaybackRate is set from the tech handler\n // that is registered above\n this.techCall_('setPlaybackRate', rate);\n return;\n }\n if (this.tech_ && this.tech_.featuresPlaybackRate) {\n return this.cache_.lastPlaybackRate || this.techGet_('playbackRate');\n }\n return 1.0;\n }\n\n /**\n * Gets or sets the current default playback rate. A default playback rate of\n * 1.0 represents normal speed and 0.5 would indicate half-speed playback, for instance.\n * defaultPlaybackRate will only represent what the initial playbackRate of a video was, not\n * not the current playbackRate.\n *\n * @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-defaultplaybackrate\n *\n * @param {number} [rate]\n * New default playback rate to set.\n *\n * @return {number|undefined}\n * - The default playback rate when getting or 1.0\n * - Nothing when setting\n */\n defaultPlaybackRate(rate) {\n if (rate !== undefined) {\n return this.techCall_('setDefaultPlaybackRate', rate);\n }\n if (this.tech_ && this.tech_.featuresPlaybackRate) {\n return this.techGet_('defaultPlaybackRate');\n }\n return 1.0;\n }\n\n /**\n * Gets or sets the audio flag\n *\n * @param {boolean} [bool]\n * - true signals that this is an audio player\n * - false signals that this is not an audio player\n *\n * @return {boolean|undefined}\n * - The current value of isAudio when getting\n * - Nothing when setting\n */\n isAudio(bool) {\n if (bool !== undefined) {\n this.isAudio_ = !!bool;\n return;\n }\n return !!this.isAudio_;\n }\n enableAudioOnlyUI_() {\n // Update styling immediately to show the control bar so we can get its height\n this.addClass('vjs-audio-only-mode');\n const playerChildren = this.children();\n const controlBar = this.getChild('ControlBar');\n const controlBarHeight = controlBar && controlBar.currentHeight();\n\n // Hide all player components except the control bar. Control bar components\n // needed only for video are hidden with CSS\n playerChildren.forEach(child => {\n if (child === controlBar) {\n return;\n }\n if (child.el_ && !child.hasClass('vjs-hidden')) {\n child.hide();\n this.audioOnlyCache_.hiddenChildren.push(child);\n }\n });\n this.audioOnlyCache_.playerHeight = this.currentHeight();\n\n // Set the player height the same as the control bar\n this.height(controlBarHeight);\n this.trigger('audioonlymodechange');\n }\n disableAudioOnlyUI_() {\n this.removeClass('vjs-audio-only-mode');\n\n // Show player components that were previously hidden\n this.audioOnlyCache_.hiddenChildren.forEach(child => child.show());\n\n // Reset player height\n this.height(this.audioOnlyCache_.playerHeight);\n this.trigger('audioonlymodechange');\n }\n\n /**\n * Get the current audioOnlyMode state or set audioOnlyMode to true or false.\n *\n * Setting this to `true` will hide all player components except the control bar,\n * as well as control bar components needed only for video.\n *\n * @param {boolean} [value]\n * The value to set audioOnlyMode to.\n *\n * @return {Promise|boolean}\n * A Promise is returned when setting the state, and a boolean when getting\n * the present state\n */\n audioOnlyMode(value) {\n if (typeof value !== 'boolean' || value === this.audioOnlyMode_) {\n return this.audioOnlyMode_;\n }\n this.audioOnlyMode_ = value;\n\n // Enable Audio Only Mode\n if (value) {\n const exitPromises = [];\n\n // Fullscreen and PiP are not supported in audioOnlyMode, so exit if we need to.\n if (this.isInPictureInPicture()) {\n exitPromises.push(this.exitPictureInPicture());\n }\n if (this.isFullscreen()) {\n exitPromises.push(this.exitFullscreen());\n }\n if (this.audioPosterMode()) {\n exitPromises.push(this.audioPosterMode(false));\n }\n return Promise.all(exitPromises).then(() => this.enableAudioOnlyUI_());\n }\n\n // Disable Audio Only Mode\n return Promise.resolve().then(() => this.disableAudioOnlyUI_());\n }\n enablePosterModeUI_() {\n // Hide the video element and show the poster image to enable posterModeUI\n const tech = this.tech_ && this.tech_;\n tech.hide();\n this.addClass('vjs-audio-poster-mode');\n this.trigger('audiopostermodechange');\n }\n disablePosterModeUI_() {\n // Show the video element and hide the poster image to disable posterModeUI\n const tech = this.tech_ && this.tech_;\n tech.show();\n this.removeClass('vjs-audio-poster-mode');\n this.trigger('audiopostermodechange');\n }\n\n /**\n * Get the current audioPosterMode state or set audioPosterMode to true or false\n *\n * @param {boolean} [value]\n * The value to set audioPosterMode to.\n *\n * @return {Promise|boolean}\n * A Promise is returned when setting the state, and a boolean when getting\n * the present state\n */\n audioPosterMode(value) {\n if (typeof value !== 'boolean' || value === this.audioPosterMode_) {\n return this.audioPosterMode_;\n }\n this.audioPosterMode_ = value;\n if (value) {\n if (this.audioOnlyMode()) {\n const audioOnlyModePromise = this.audioOnlyMode(false);\n return audioOnlyModePromise.then(() => {\n // enable audio poster mode after audio only mode is disabled\n this.enablePosterModeUI_();\n });\n }\n return Promise.resolve().then(() => {\n // enable audio poster mode\n this.enablePosterModeUI_();\n });\n }\n return Promise.resolve().then(() => {\n // disable audio poster mode\n this.disablePosterModeUI_();\n });\n }\n\n /**\n * A helper method for adding a {@link TextTrack} to our\n * {@link TextTrackList}.\n *\n * In addition to the W3C settings we allow adding additional info through options.\n *\n * @see http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-addtexttrack\n *\n * @param {string} [kind]\n * the kind of TextTrack you are adding\n *\n * @param {string} [label]\n * the label to give the TextTrack label\n *\n * @param {string} [language]\n * the language to set on the TextTrack\n *\n * @return {TextTrack|undefined}\n * the TextTrack that was added or undefined\n * if there is no tech\n */\n addTextTrack(kind, label, language) {\n if (this.tech_) {\n return this.tech_.addTextTrack(kind, label, language);\n }\n }\n\n /**\n * Create a remote {@link TextTrack} and an {@link HTMLTrackElement}.\n *\n * @param {Object} options\n * Options to pass to {@link HTMLTrackElement} during creation. See\n * {@link HTMLTrackElement} for object properties that you should use.\n *\n * @param {boolean} [manualCleanup=false] if set to true, the TextTrack will not be removed\n * from the TextTrackList and HtmlTrackElementList\n * after a source change\n *\n * @return { import('./tracks/html-track-element').default }\n * the HTMLTrackElement that was created and added\n * to the HtmlTrackElementList and the remote\n * TextTrackList\n *\n */\n addRemoteTextTrack(options, manualCleanup) {\n if (this.tech_) {\n return this.tech_.addRemoteTextTrack(options, manualCleanup);\n }\n }\n\n /**\n * Remove a remote {@link TextTrack} from the respective\n * {@link TextTrackList} and {@link HtmlTrackElementList}.\n *\n * @param {Object} track\n * Remote {@link TextTrack} to remove\n *\n * @return {undefined}\n * does not return anything\n */\n removeRemoteTextTrack() {\n let obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let track = obj.track;\n if (!track) {\n track = obj;\n }\n\n // destructure the input into an object with a track argument, defaulting to arguments[0]\n // default the whole argument to an empty object if nothing was passed in\n\n if (this.tech_) {\n return this.tech_.removeRemoteTextTrack(track);\n }\n }\n\n /**\n * Gets available media playback quality metrics as specified by the W3C's Media\n * Playback Quality API.\n *\n * @see [Spec]{@link https://wicg.github.io/media-playback-quality}\n *\n * @return {Object|undefined}\n * An object with supported media playback quality metrics or undefined if there\n * is no tech or the tech does not support it.\n */\n getVideoPlaybackQuality() {\n return this.techGet_('getVideoPlaybackQuality');\n }\n\n /**\n * Get video width\n *\n * @return {number}\n * current video width\n */\n videoWidth() {\n return this.tech_ && this.tech_.videoWidth && this.tech_.videoWidth() || 0;\n }\n\n /**\n * Get video height\n *\n * @return {number}\n * current video height\n */\n videoHeight() {\n return this.tech_ && this.tech_.videoHeight && this.tech_.videoHeight() || 0;\n }\n\n /**\n * Set or get the player's language code.\n *\n * Changing the language will trigger\n * [languagechange]{@link Player#event:languagechange}\n * which Components can use to update control text.\n * ClickableComponent will update its control text by default on\n * [languagechange]{@link Player#event:languagechange}.\n *\n * @fires Player#languagechange\n *\n * @param {string} [code]\n * the language code to set the player to\n *\n * @return {string|undefined}\n * - The current language code when getting\n * - Nothing when setting\n */\n language(code) {\n if (code === undefined) {\n return this.language_;\n }\n if (this.language_ !== String(code).toLowerCase()) {\n this.language_ = String(code).toLowerCase();\n\n // during first init, it's possible some things won't be evented\n if (isEvented(this)) {\n /**\n * fires when the player language change\n *\n * @event Player#languagechange\n * @type {Event}\n */\n this.trigger('languagechange');\n }\n }\n }\n\n /**\n * Get the player's language dictionary\n * Merge every time, because a newly added plugin might call videojs.addLanguage() at any time\n * Languages specified directly in the player options have precedence\n *\n * @return {Array}\n * An array of of supported languages\n */\n languages() {\n return merge$1(Player.prototype.options_.languages, this.languages_);\n }\n\n /**\n * returns a JavaScript object representing the current track\n * information. **DOES not return it as JSON**\n *\n * @return {Object}\n * Object representing the current of track info\n */\n toJSON() {\n const options = merge$1(this.options_);\n const tracks = options.tracks;\n options.tracks = [];\n for (let i = 0; i < tracks.length; i++) {\n let track = tracks[i];\n\n // deep merge tracks and null out player so no circular references\n track = merge$1(track);\n track.player = undefined;\n options.tracks[i] = track;\n }\n return options;\n }\n\n /**\n * Creates a simple modal dialog (an instance of the {@link ModalDialog}\n * component) that immediately overlays the player with arbitrary\n * content and removes itself when closed.\n *\n * @param {string|Function|Element|Array|null} content\n * Same as {@link ModalDialog#content}'s param of the same name.\n * The most straight-forward usage is to provide a string or DOM\n * element.\n *\n * @param {Object} [options]\n * Extra options which will be passed on to the {@link ModalDialog}.\n *\n * @return {ModalDialog}\n * the {@link ModalDialog} that was created\n */\n createModal(content, options) {\n options = options || {};\n options.content = content || '';\n const modal = new ModalDialog(this, options);\n this.addChild(modal);\n modal.on('dispose', () => {\n this.removeChild(modal);\n });\n modal.open();\n return modal;\n }\n\n /**\n * Change breakpoint classes when the player resizes.\n *\n * @private\n */\n updateCurrentBreakpoint_() {\n if (!this.responsive()) {\n return;\n }\n const currentBreakpoint = this.currentBreakpoint();\n const currentWidth = this.currentWidth();\n for (let i = 0; i < BREAKPOINT_ORDER.length; i++) {\n const candidateBreakpoint = BREAKPOINT_ORDER[i];\n const maxWidth = this.breakpoints_[candidateBreakpoint];\n if (currentWidth <= maxWidth) {\n // The current breakpoint did not change, nothing to do.\n if (currentBreakpoint === candidateBreakpoint) {\n return;\n }\n\n // Only remove a class if there is a current breakpoint.\n if (currentBreakpoint) {\n this.removeClass(BREAKPOINT_CLASSES[currentBreakpoint]);\n }\n this.addClass(BREAKPOINT_CLASSES[candidateBreakpoint]);\n this.breakpoint_ = candidateBreakpoint;\n break;\n }\n }\n }\n\n /**\n * Removes the current breakpoint.\n *\n * @private\n */\n removeCurrentBreakpoint_() {\n const className = this.currentBreakpointClass();\n this.breakpoint_ = '';\n if (className) {\n this.removeClass(className);\n }\n }\n\n /**\n * Get or set breakpoints on the player.\n *\n * Calling this method with an object or `true` will remove any previous\n * custom breakpoints and start from the defaults again.\n *\n * @param {Object|boolean} [breakpoints]\n * If an object is given, it can be used to provide custom\n * breakpoints. If `true` is given, will set default breakpoints.\n * If this argument is not given, will simply return the current\n * breakpoints.\n *\n * @param {number} [breakpoints.tiny]\n * The maximum width for the \"vjs-layout-tiny\" class.\n *\n * @param {number} [breakpoints.xsmall]\n * The maximum width for the \"vjs-layout-x-small\" class.\n *\n * @param {number} [breakpoints.small]\n * The maximum width for the \"vjs-layout-small\" class.\n *\n * @param {number} [breakpoints.medium]\n * The maximum width for the \"vjs-layout-medium\" class.\n *\n * @param {number} [breakpoints.large]\n * The maximum width for the \"vjs-layout-large\" class.\n *\n * @param {number} [breakpoints.xlarge]\n * The maximum width for the \"vjs-layout-x-large\" class.\n *\n * @param {number} [breakpoints.huge]\n * The maximum width for the \"vjs-layout-huge\" class.\n *\n * @return {Object}\n * An object mapping breakpoint names to maximum width values.\n */\n breakpoints(breakpoints) {\n // Used as a getter.\n if (breakpoints === undefined) {\n return Object.assign(this.breakpoints_);\n }\n this.breakpoint_ = '';\n this.breakpoints_ = Object.assign({}, DEFAULT_BREAKPOINTS, breakpoints);\n\n // When breakpoint definitions change, we need to update the currently\n // selected breakpoint.\n this.updateCurrentBreakpoint_();\n\n // Clone the breakpoints before returning.\n return Object.assign(this.breakpoints_);\n }\n\n /**\n * Get or set a flag indicating whether or not this player should adjust\n * its UI based on its dimensions.\n *\n * @param {boolean} [value]\n * Should be `true` if the player should adjust its UI based on its\n * dimensions; otherwise, should be `false`.\n *\n * @return {boolean|undefined}\n * Will be `true` if this player should adjust its UI based on its\n * dimensions; otherwise, will be `false`.\n * Nothing if setting\n */\n responsive(value) {\n // Used as a getter.\n if (value === undefined) {\n return this.responsive_;\n }\n value = Boolean(value);\n const current = this.responsive_;\n\n // Nothing changed.\n if (value === current) {\n return;\n }\n\n // The value actually changed, set it.\n this.responsive_ = value;\n\n // Start listening for breakpoints and set the initial breakpoint if the\n // player is now responsive.\n if (value) {\n this.on('playerresize', this.boundUpdateCurrentBreakpoint_);\n this.updateCurrentBreakpoint_();\n\n // Stop listening for breakpoints if the player is no longer responsive.\n } else {\n this.off('playerresize', this.boundUpdateCurrentBreakpoint_);\n this.removeCurrentBreakpoint_();\n }\n return value;\n }\n\n /**\n * Get current breakpoint name, if any.\n *\n * @return {string}\n * If there is currently a breakpoint set, returns a the key from the\n * breakpoints object matching it. Otherwise, returns an empty string.\n */\n currentBreakpoint() {\n return this.breakpoint_;\n }\n\n /**\n * Get the current breakpoint class name.\n *\n * @return {string}\n * The matching class name (e.g. `\"vjs-layout-tiny\"` or\n * `\"vjs-layout-large\"`) for the current breakpoint. Empty string if\n * there is no current breakpoint.\n */\n currentBreakpointClass() {\n return BREAKPOINT_CLASSES[this.breakpoint_] || '';\n }\n\n /**\n * An object that describes a single piece of media.\n *\n * Properties that are not part of this type description will be retained; so,\n * this can be viewed as a generic metadata storage mechanism as well.\n *\n * @see {@link https://wicg.github.io/mediasession/#the-mediametadata-interface}\n * @typedef {Object} Player~MediaObject\n *\n * @property {string} [album]\n * Unused, except if this object is passed to the `MediaSession`\n * API.\n *\n * @property {string} [artist]\n * Unused, except if this object is passed to the `MediaSession`\n * API.\n *\n * @property {Object[]} [artwork]\n * Unused, except if this object is passed to the `MediaSession`\n * API. If not specified, will be populated via the `poster`, if\n * available.\n *\n * @property {string} [poster]\n * URL to an image that will display before playback.\n *\n * @property {Tech~SourceObject|Tech~SourceObject[]|string} [src]\n * A single source object, an array of source objects, or a string\n * referencing a URL to a media source. It is _highly recommended_\n * that an object or array of objects is used here, so that source\n * selection algorithms can take the `type` into account.\n *\n * @property {string} [title]\n * Unused, except if this object is passed to the `MediaSession`\n * API.\n *\n * @property {Object[]} [textTracks]\n * An array of objects to be used to create text tracks, following\n * the {@link https://www.w3.org/TR/html50/embedded-content-0.html#the-track-element|native track element format}.\n * For ease of removal, these will be created as \"remote\" text\n * tracks and set to automatically clean up on source changes.\n *\n * These objects may have properties like `src`, `kind`, `label`,\n * and `language`, see {@link Tech#createRemoteTextTrack}.\n */\n\n /**\n * Populate the player using a {@link Player~MediaObject|MediaObject}.\n *\n * @param {Player~MediaObject} media\n * A media object.\n *\n * @param {Function} ready\n * A callback to be called when the player is ready.\n */\n loadMedia(media, ready) {\n if (!media || typeof media !== 'object') {\n return;\n }\n const crossOrigin = this.crossOrigin();\n this.reset();\n\n // Clone the media object so it cannot be mutated from outside.\n this.cache_.media = merge$1(media);\n const _this$cache_$media = this.cache_.media,\n artist = _this$cache_$media.artist,\n artwork = _this$cache_$media.artwork,\n description = _this$cache_$media.description,\n poster = _this$cache_$media.poster,\n src = _this$cache_$media.src,\n textTracks = _this$cache_$media.textTracks,\n title = _this$cache_$media.title;\n\n // If `artwork` is not given, create it using `poster`.\n if (!artwork && poster) {\n this.cache_.media.artwork = [{\n src: poster,\n type: getMimetype(poster)\n }];\n }\n if (crossOrigin) {\n this.crossOrigin(crossOrigin);\n }\n if (src) {\n this.src(src);\n }\n if (poster) {\n this.poster(poster);\n }\n if (Array.isArray(textTracks)) {\n textTracks.forEach(tt => this.addRemoteTextTrack(tt, false));\n }\n if (this.titleBar) {\n this.titleBar.update({\n title,\n description: description || artist || ''\n });\n }\n this.ready(ready);\n }\n\n /**\n * Get a clone of the current {@link Player~MediaObject} for this player.\n *\n * If the `loadMedia` method has not been used, will attempt to return a\n * {@link Player~MediaObject} based on the current state of the player.\n *\n * @return {Player~MediaObject}\n */\n getMedia() {\n if (!this.cache_.media) {\n const poster = this.poster();\n const src = this.currentSources();\n const textTracks = Array.prototype.map.call(this.remoteTextTracks(), tt => ({\n kind: tt.kind,\n label: tt.label,\n language: tt.language,\n src: tt.src\n }));\n const media = {\n src,\n textTracks\n };\n if (poster) {\n media.poster = poster;\n media.artwork = [{\n src: media.poster,\n type: getMimetype(media.poster)\n }];\n }\n return media;\n }\n return merge$1(this.cache_.media);\n }\n\n /**\n * Gets tag settings\n *\n * @param {Element} tag\n * The player tag\n *\n * @return {Object}\n * An object containing all of the settings\n * for a player tag\n */\n static getTagSettings(tag) {\n const baseOptions = {\n sources: [],\n tracks: []\n };\n const tagOptions = getAttributes(tag);\n const dataSetup = tagOptions['data-setup'];\n if (hasClass(tag, 'vjs-fill')) {\n tagOptions.fill = true;\n }\n if (hasClass(tag, 'vjs-fluid')) {\n tagOptions.fluid = true;\n }\n\n // Check if data-setup attr exists.\n if (dataSetup !== null) {\n // Parse options JSON\n // If empty string, make it a parsable json object.\n const _safeParseTuple = safeParseTuple(dataSetup || '{}'),\n _safeParseTuple2 = _slicedToArray(_safeParseTuple, 2),\n err = _safeParseTuple2[0],\n data = _safeParseTuple2[1];\n if (err) {\n log$1.error(err);\n }\n Object.assign(tagOptions, data);\n }\n Object.assign(baseOptions, tagOptions);\n\n // Get tag children settings\n if (tag.hasChildNodes()) {\n const children = tag.childNodes;\n for (let i = 0, j = children.length; i < j; i++) {\n const child = children[i];\n // Change case needed: http://ejohn.org/blog/nodename-case-sensitivity/\n const childName = child.nodeName.toLowerCase();\n if (childName === 'source') {\n baseOptions.sources.push(getAttributes(child));\n } else if (childName === 'track') {\n baseOptions.tracks.push(getAttributes(child));\n }\n }\n }\n return baseOptions;\n }\n\n /**\n * Set debug mode to enable/disable logs at info level.\n *\n * @param {boolean} enabled\n * @fires Player#debugon\n * @fires Player#debugoff\n * @return {boolean|undefined}\n */\n debug(enabled) {\n if (enabled === undefined) {\n return this.debugEnabled_;\n }\n if (enabled) {\n this.trigger('debugon');\n this.previousLogLevel_ = this.log.level;\n this.log.level('debug');\n this.debugEnabled_ = true;\n } else {\n this.trigger('debugoff');\n this.log.level(this.previousLogLevel_);\n this.previousLogLevel_ = undefined;\n this.debugEnabled_ = false;\n }\n }\n\n /**\n * Set or get current playback rates.\n * Takes an array and updates the playback rates menu with the new items.\n * Pass in an empty array to hide the menu.\n * Values other than arrays are ignored.\n *\n * @fires Player#playbackrateschange\n * @param {number[]} newRates\n * The new rates that the playback rates menu should update to.\n * An empty array will hide the menu\n * @return {number[]} When used as a getter will return the current playback rates\n */\n playbackRates(newRates) {\n if (newRates === undefined) {\n return this.cache_.playbackRates;\n }\n\n // ignore any value that isn't an array\n if (!Array.isArray(newRates)) {\n return;\n }\n\n // ignore any arrays that don't only contain numbers\n if (!newRates.every(rate => typeof rate === 'number')) {\n return;\n }\n this.cache_.playbackRates = newRates;\n\n /**\n * fires when the playback rates in a player are changed\n *\n * @event Player#playbackrateschange\n * @type {Event}\n */\n this.trigger('playbackrateschange');\n }\n}\n\n/**\n * Get the {@link VideoTrackList}\n *\n * @link https://html.spec.whatwg.org/multipage/embedded-content.html#videotracklist\n *\n * @return {VideoTrackList}\n * the current video track list\n *\n * @method Player.prototype.videoTracks\n */\n\n/**\n * Get the {@link AudioTrackList}\n *\n * @link https://html.spec.whatwg.org/multipage/embedded-content.html#audiotracklist\n *\n * @return {AudioTrackList}\n * the current audio track list\n *\n * @method Player.prototype.audioTracks\n */\n\n/**\n * Get the {@link TextTrackList}\n *\n * @link http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#dom-media-texttracks\n *\n * @return {TextTrackList}\n * the current text track list\n *\n * @method Player.prototype.textTracks\n */\n\n/**\n * Get the remote {@link TextTrackList}\n *\n * @return {TextTrackList}\n * The current remote text track list\n *\n * @method Player.prototype.remoteTextTracks\n */\n\n/**\n * Get the remote {@link HtmlTrackElementList} tracks.\n *\n * @return {HtmlTrackElementList}\n * The current remote text track element list\n *\n * @method Player.prototype.remoteTextTrackEls\n */\n\nALL.names.forEach(function (name) {\n const props = ALL[name];\n Player.prototype[props.getterName] = function () {\n if (this.tech_) {\n return this.tech_[props.getterName]();\n }\n\n // if we have not yet loadTech_, we create {video,audio,text}Tracks_\n // these will be passed to the tech during loading\n this[props.privateName] = this[props.privateName] || new props.ListClass();\n return this[props.privateName];\n };\n});\n\n/**\n * Get or set the `Player`'s crossorigin option. For the HTML5 player, this\n * sets the `crossOrigin` property on the `` tag to control the CORS\n * behavior.\n *\n * @see [Video Element Attributes]{@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-crossorigin}\n *\n * @param {string} [value]\n * The value to set the `Player`'s crossorigin to. If an argument is\n * given, must be one of `anonymous` or `use-credentials`.\n *\n * @return {string|undefined}\n * - The current crossorigin value of the `Player` when getting.\n * - undefined when setting\n */\nPlayer.prototype.crossorigin = Player.prototype.crossOrigin;\n\n/**\n * Global enumeration of players.\n *\n * The keys are the player IDs and the values are either the {@link Player}\n * instance or `null` for disposed players.\n *\n * @type {Object}\n */\nPlayer.players = {};\nconst navigator = window$1.navigator;\n\n/*\n * Player instance options, surfaced using options\n * options = Player.prototype.options_\n * Make changes in options, not here.\n *\n * @type {Object}\n * @private\n */\nPlayer.prototype.options_ = {\n // Default order of fallback technology\n techOrder: Tech.defaultTechOrder_,\n html5: {},\n // enable sourceset by default\n enableSourceset: true,\n // default inactivity timeout\n inactivityTimeout: 2000,\n // default playback rates\n playbackRates: [],\n // Add playback rate selection by adding rates\n // 'playbackRates': [0.5, 1, 1.5, 2],\n liveui: false,\n // Included control sets\n children: ['mediaLoader', 'posterImage', 'titleBar', 'textTrackDisplay', 'loadingSpinner', 'bigPlayButton', 'liveTracker', 'controlBar', 'errorDisplay', 'textTrackSettings', 'resizeManager'],\n language: navigator && (navigator.languages && navigator.languages[0] || navigator.userLanguage || navigator.language) || 'en',\n // locales and their language translations\n languages: {},\n // Default message to show when a video cannot be played.\n notSupportedMessage: 'No compatible source was found for this media.',\n normalizeAutoplay: false,\n fullscreen: {\n options: {\n navigationUI: 'hide'\n }\n },\n breakpoints: {},\n responsive: false,\n audioOnlyMode: false,\n audioPosterMode: false,\n // Default smooth seeking to false\n enableSmoothSeeking: false\n};\nTECH_EVENTS_RETRIGGER.forEach(function (event) {\n Player.prototype[`handleTech${toTitleCase$1(event)}_`] = function () {\n return this.trigger(event);\n };\n});\n\n/**\n * Fired when the player has initial duration and dimension information\n *\n * @event Player#loadedmetadata\n * @type {Event}\n */\n\n/**\n * Fired when the player has downloaded data at the current playback position\n *\n * @event Player#loadeddata\n * @type {Event}\n */\n\n/**\n * Fired when the current playback position has changed *\n * During playback this is fired every 15-250 milliseconds, depending on the\n * playback technology in use.\n *\n * @event Player#timeupdate\n * @type {Event}\n */\n\n/**\n * Fired when the volume changes\n *\n * @event Player#volumechange\n * @type {Event}\n */\n\n/**\n * Reports whether or not a player has a plugin available.\n *\n * This does not report whether or not the plugin has ever been initialized\n * on this player. For that, [usingPlugin]{@link Player#usingPlugin}.\n *\n * @method Player#hasPlugin\n * @param {string} name\n * The name of a plugin.\n *\n * @return {boolean}\n * Whether or not this player has the requested plugin available.\n */\n\n/**\n * Reports whether or not a player is using a plugin by name.\n *\n * For basic plugins, this only reports whether the plugin has _ever_ been\n * initialized on this player.\n *\n * @method Player#usingPlugin\n * @param {string} name\n * The name of a plugin.\n *\n * @return {boolean}\n * Whether or not this player is using the requested plugin.\n */\n\nComponent$1.registerComponent('Player', Player);\n\n/**\n * @file plugin.js\n */\n\n/**\n * The base plugin name.\n *\n * @private\n * @constant\n * @type {string}\n */\nconst BASE_PLUGIN_NAME = 'plugin';\n\n/**\n * The key on which a player's active plugins cache is stored.\n *\n * @private\n * @constant\n * @type {string}\n */\nconst PLUGIN_CACHE_KEY = 'activePlugins_';\n\n/**\n * Stores registered plugins in a private space.\n *\n * @private\n * @type {Object}\n */\nconst pluginStorage = {};\n\n/**\n * Reports whether or not a plugin has been registered.\n *\n * @private\n * @param {string} name\n * The name of a plugin.\n *\n * @return {boolean}\n * Whether or not the plugin has been registered.\n */\nconst pluginExists = name => pluginStorage.hasOwnProperty(name);\n\n/**\n * Get a single registered plugin by name.\n *\n * @private\n * @param {string} name\n * The name of a plugin.\n *\n * @return {typeof Plugin|Function|undefined}\n * The plugin (or undefined).\n */\nconst getPlugin = name => pluginExists(name) ? pluginStorage[name] : undefined;\n\n/**\n * Marks a plugin as \"active\" on a player.\n *\n * Also, ensures that the player has an object for tracking active plugins.\n *\n * @private\n * @param {Player} player\n * A Video.js player instance.\n *\n * @param {string} name\n * The name of a plugin.\n */\nconst markPluginAsActive = (player, name) => {\n player[PLUGIN_CACHE_KEY] = player[PLUGIN_CACHE_KEY] || {};\n player[PLUGIN_CACHE_KEY][name] = true;\n};\n\n/**\n * Triggers a pair of plugin setup events.\n *\n * @private\n * @param {Player} player\n * A Video.js player instance.\n *\n * @param {PluginEventHash} hash\n * A plugin event hash.\n *\n * @param {boolean} [before]\n * If true, prefixes the event name with \"before\". In other words,\n * use this to trigger \"beforepluginsetup\" instead of \"pluginsetup\".\n */\nconst triggerSetupEvent = (player, hash, before) => {\n const eventName = (before ? 'before' : '') + 'pluginsetup';\n player.trigger(eventName, hash);\n player.trigger(eventName + ':' + hash.name, hash);\n};\n\n/**\n * Takes a basic plugin function and returns a wrapper function which marks\n * on the player that the plugin has been activated.\n *\n * @private\n * @param {string} name\n * The name of the plugin.\n *\n * @param {Function} plugin\n * The basic plugin.\n *\n * @return {Function}\n * A wrapper function for the given plugin.\n */\nconst createBasicPlugin = function (name, plugin) {\n const basicPluginWrapper = function () {\n // We trigger the \"beforepluginsetup\" and \"pluginsetup\" events on the player\n // regardless, but we want the hash to be consistent with the hash provided\n // for advanced plugins.\n //\n // The only potentially counter-intuitive thing here is the `instance` in\n // the \"pluginsetup\" event is the value returned by the `plugin` function.\n triggerSetupEvent(this, {\n name,\n plugin,\n instance: null\n }, true);\n const instance = plugin.apply(this, arguments);\n markPluginAsActive(this, name);\n triggerSetupEvent(this, {\n name,\n plugin,\n instance\n });\n return instance;\n };\n Object.keys(plugin).forEach(function (prop) {\n basicPluginWrapper[prop] = plugin[prop];\n });\n return basicPluginWrapper;\n};\n\n/**\n * Takes a plugin sub-class and returns a factory function for generating\n * instances of it.\n *\n * This factory function will replace itself with an instance of the requested\n * sub-class of Plugin.\n *\n * @private\n * @param {string} name\n * The name of the plugin.\n *\n * @param {Plugin} PluginSubClass\n * The advanced plugin.\n *\n * @return {Function}\n */\nconst createPluginFactory = (name, PluginSubClass) => {\n // Add a `name` property to the plugin prototype so that each plugin can\n // refer to itself by name.\n PluginSubClass.prototype.name = name;\n return function () {\n triggerSetupEvent(this, {\n name,\n plugin: PluginSubClass,\n instance: null\n }, true);\n for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {\n args[_key20] = arguments[_key20];\n }\n const instance = new PluginSubClass(...[this, ...args]);\n\n // The plugin is replaced by a function that returns the current instance.\n this[name] = () => instance;\n triggerSetupEvent(this, instance.getEventHash());\n return instance;\n };\n};\n\n/**\n * Parent class for all advanced plugins.\n *\n * @mixes module:evented~EventedMixin\n * @mixes module:stateful~StatefulMixin\n * @fires Player#beforepluginsetup\n * @fires Player#beforepluginsetup:$name\n * @fires Player#pluginsetup\n * @fires Player#pluginsetup:$name\n * @listens Player#dispose\n * @throws {Error}\n * If attempting to instantiate the base {@link Plugin} class\n * directly instead of via a sub-class.\n */\nclass Plugin {\n /**\n * Creates an instance of this class.\n *\n * Sub-classes should call `super` to ensure plugins are properly initialized.\n *\n * @param {Player} player\n * A Video.js player instance.\n */\n constructor(player) {\n if (this.constructor === Plugin) {\n throw new Error('Plugin must be sub-classed; not directly instantiated.');\n }\n this.player = player;\n if (!this.log) {\n this.log = this.player.log.createLogger(this.name);\n }\n\n // Make this object evented, but remove the added `trigger` method so we\n // use the prototype version instead.\n evented(this);\n delete this.trigger;\n stateful(this, this.constructor.defaultState);\n markPluginAsActive(player, this.name);\n\n // Auto-bind the dispose method so we can use it as a listener and unbind\n // it later easily.\n this.dispose = this.dispose.bind(this);\n\n // If the player is disposed, dispose the plugin.\n player.on('dispose', this.dispose);\n }\n\n /**\n * Get the version of the plugin that was set on .VERSION\n */\n version() {\n return this.constructor.VERSION;\n }\n\n /**\n * Each event triggered by plugins includes a hash of additional data with\n * conventional properties.\n *\n * This returns that object or mutates an existing hash.\n *\n * @param {Object} [hash={}]\n * An object to be used as event an event hash.\n *\n * @return {PluginEventHash}\n * An event hash object with provided properties mixed-in.\n */\n getEventHash() {\n let hash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n hash.name = this.name;\n hash.plugin = this.constructor;\n hash.instance = this;\n return hash;\n }\n\n /**\n * Triggers an event on the plugin object and overrides\n * {@link module:evented~EventedMixin.trigger|EventedMixin.trigger}.\n *\n * @param {string|Object} event\n * An event type or an object with a type property.\n *\n * @param {Object} [hash={}]\n * Additional data hash to merge with a\n * {@link PluginEventHash|PluginEventHash}.\n *\n * @return {boolean}\n * Whether or not default was prevented.\n */\n trigger(event) {\n let hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return trigger(this.eventBusEl_, event, this.getEventHash(hash));\n }\n\n /**\n * Handles \"statechanged\" events on the plugin. No-op by default, override by\n * subclassing.\n *\n * @abstract\n * @param {Event} e\n * An event object provided by a \"statechanged\" event.\n *\n * @param {Object} e.changes\n * An object describing changes that occurred with the \"statechanged\"\n * event.\n */\n handleStateChanged(e) {}\n\n /**\n * Disposes a plugin.\n *\n * Subclasses can override this if they want, but for the sake of safety,\n * it's probably best to subscribe the \"dispose\" event.\n *\n * @fires Plugin#dispose\n */\n dispose() {\n const name = this.name,\n player = this.player;\n\n /**\n * Signals that a advanced plugin is about to be disposed.\n *\n * @event Plugin#dispose\n * @type {Event}\n */\n this.trigger('dispose');\n this.off();\n player.off('dispose', this.dispose);\n\n // Eliminate any possible sources of leaking memory by clearing up\n // references between the player and the plugin instance and nulling out\n // the plugin's state and replacing methods with a function that throws.\n player[PLUGIN_CACHE_KEY][name] = false;\n this.player = this.state = null;\n\n // Finally, replace the plugin name on the player with a new factory\n // function, so that the plugin is ready to be set up again.\n player[name] = createPluginFactory(name, pluginStorage[name]);\n }\n\n /**\n * Determines if a plugin is a basic plugin (i.e. not a sub-class of `Plugin`).\n *\n * @param {string|Function} plugin\n * If a string, matches the name of a plugin. If a function, will be\n * tested directly.\n *\n * @return {boolean}\n * Whether or not a plugin is a basic plugin.\n */\n static isBasic(plugin) {\n const p = typeof plugin === 'string' ? getPlugin(plugin) : plugin;\n return typeof p === 'function' && !Plugin.prototype.isPrototypeOf(p.prototype);\n }\n\n /**\n * Register a Video.js plugin.\n *\n * @param {string} name\n * The name of the plugin to be registered. Must be a string and\n * must not match an existing plugin or a method on the `Player`\n * prototype.\n *\n * @param {typeof Plugin|Function} plugin\n * A sub-class of `Plugin` or a function for basic plugins.\n *\n * @return {typeof Plugin|Function}\n * For advanced plugins, a factory function for that plugin. For\n * basic plugins, a wrapper function that initializes the plugin.\n */\n static registerPlugin(name, plugin) {\n if (typeof name !== 'string') {\n throw new Error(`Illegal plugin name, \"${name}\", must be a string, was ${typeof name}.`);\n }\n if (pluginExists(name)) {\n log$1.warn(`A plugin named \"${name}\" already exists. You may want to avoid re-registering plugins!`);\n } else if (Player.prototype.hasOwnProperty(name)) {\n throw new Error(`Illegal plugin name, \"${name}\", cannot share a name with an existing player method!`);\n }\n if (typeof plugin !== 'function') {\n throw new Error(`Illegal plugin for \"${name}\", must be a function, was ${typeof plugin}.`);\n }\n pluginStorage[name] = plugin;\n\n // Add a player prototype method for all sub-classed plugins (but not for\n // the base Plugin class).\n if (name !== BASE_PLUGIN_NAME) {\n if (Plugin.isBasic(plugin)) {\n Player.prototype[name] = createBasicPlugin(name, plugin);\n } else {\n Player.prototype[name] = createPluginFactory(name, plugin);\n }\n }\n return plugin;\n }\n\n /**\n * De-register a Video.js plugin.\n *\n * @param {string} name\n * The name of the plugin to be de-registered. Must be a string that\n * matches an existing plugin.\n *\n * @throws {Error}\n * If an attempt is made to de-register the base plugin.\n */\n static deregisterPlugin(name) {\n if (name === BASE_PLUGIN_NAME) {\n throw new Error('Cannot de-register base plugin.');\n }\n if (pluginExists(name)) {\n delete pluginStorage[name];\n delete Player.prototype[name];\n }\n }\n\n /**\n * Gets an object containing multiple Video.js plugins.\n *\n * @param {Array} [names]\n * If provided, should be an array of plugin names. Defaults to _all_\n * plugin names.\n *\n * @return {Object|undefined}\n * An object containing plugin(s) associated with their name(s) or\n * `undefined` if no matching plugins exist).\n */\n static getPlugins() {\n let names = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Object.keys(pluginStorage);\n let result;\n names.forEach(name => {\n const plugin = getPlugin(name);\n if (plugin) {\n result = result || {};\n result[name] = plugin;\n }\n });\n return result;\n }\n\n /**\n * Gets a plugin's version, if available\n *\n * @param {string} name\n * The name of a plugin.\n *\n * @return {string}\n * The plugin's version or an empty string.\n */\n static getPluginVersion(name) {\n const plugin = getPlugin(name);\n return plugin && plugin.VERSION || '';\n }\n}\n\n/**\n * Gets a plugin by name if it exists.\n *\n * @static\n * @method getPlugin\n * @memberOf Plugin\n * @param {string} name\n * The name of a plugin.\n *\n * @returns {typeof Plugin|Function|undefined}\n * The plugin (or `undefined`).\n */\nPlugin.getPlugin = getPlugin;\n\n/**\n * The name of the base plugin class as it is registered.\n *\n * @type {string}\n */\nPlugin.BASE_PLUGIN_NAME = BASE_PLUGIN_NAME;\nPlugin.registerPlugin(BASE_PLUGIN_NAME, Plugin);\n\n/**\n * Documented in player.js\n *\n * @ignore\n */\nPlayer.prototype.usingPlugin = function (name) {\n return !!this[PLUGIN_CACHE_KEY] && this[PLUGIN_CACHE_KEY][name] === true;\n};\n\n/**\n * Documented in player.js\n *\n * @ignore\n */\nPlayer.prototype.hasPlugin = function (name) {\n return !!pluginExists(name);\n};\n\n/**\n * Signals that a plugin is about to be set up on a player.\n *\n * @event Player#beforepluginsetup\n * @type {PluginEventHash}\n */\n\n/**\n * Signals that a plugin is about to be set up on a player - by name. The name\n * is the name of the plugin.\n *\n * @event Player#beforepluginsetup:$name\n * @type {PluginEventHash}\n */\n\n/**\n * Signals that a plugin has just been set up on a player.\n *\n * @event Player#pluginsetup\n * @type {PluginEventHash}\n */\n\n/**\n * Signals that a plugin has just been set up on a player - by name. The name\n * is the name of the plugin.\n *\n * @event Player#pluginsetup:$name\n * @type {PluginEventHash}\n */\n\n/**\n * @typedef {Object} PluginEventHash\n *\n * @property {string} instance\n * For basic plugins, the return value of the plugin function. For\n * advanced plugins, the plugin instance on which the event is fired.\n *\n * @property {string} name\n * The name of the plugin.\n *\n * @property {string} plugin\n * For basic plugins, the plugin function. For advanced plugins, the\n * plugin class/constructor.\n */\n\n/**\n * @file deprecate.js\n * @module deprecate\n */\n\n/**\n * Decorate a function with a deprecation message the first time it is called.\n *\n * @param {string} message\n * A deprecation message to log the first time the returned function\n * is called.\n *\n * @param {Function} fn\n * The function to be deprecated.\n *\n * @return {Function}\n * A wrapper function that will log a deprecation warning the first\n * time it is called. The return value will be the return value of\n * the wrapped function.\n */\nfunction deprecate(message, fn) {\n let warned = false;\n return function () {\n if (!warned) {\n log$1.warn(message);\n }\n warned = true;\n for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {\n args[_key21] = arguments[_key21];\n }\n return fn.apply(this, args);\n };\n}\n\n/**\n * Internal function used to mark a function as deprecated in the next major\n * version with consistent messaging.\n *\n * @param {number} major The major version where it will be removed\n * @param {string} oldName The old function name\n * @param {string} newName The new function name\n * @param {Function} fn The function to deprecate\n * @return {Function} The decorated function\n */\nfunction deprecateForMajor(major, oldName, newName, fn) {\n return deprecate(`${oldName} is deprecated and will be removed in ${major}.0; please use ${newName} instead.`, fn);\n}\n\n/**\n * @file video.js\n * @module videojs\n */\n\n/**\n * Normalize an `id` value by trimming off a leading `#`\n *\n * @private\n * @param {string} id\n * A string, maybe with a leading `#`.\n *\n * @return {string}\n * The string, without any leading `#`.\n */\nconst normalizeId = id => id.indexOf('#') === 0 ? id.slice(1) : id;\n\n/**\n * A callback that is called when a component is ready. Does not have any\n * parameters and any callback value will be ignored. See: {@link Component~ReadyCallback}\n *\n * @callback ReadyCallback\n */\n\n/**\n * The `videojs()` function doubles as the main function for users to create a\n * {@link Player} instance as well as the main library namespace.\n *\n * It can also be used as a getter for a pre-existing {@link Player} instance.\n * However, we _strongly_ recommend using `videojs.getPlayer()` for this\n * purpose because it avoids any potential for unintended initialization.\n *\n * Due to [limitations](https://github.com/jsdoc3/jsdoc/issues/955#issuecomment-313829149)\n * of our JSDoc template, we cannot properly document this as both a function\n * and a namespace, so its function signature is documented here.\n *\n * #### Arguments\n * ##### id\n * string|Element, **required**\n *\n * Video element or video element ID.\n *\n * ##### options\n * Object, optional\n *\n * Options object for providing settings.\n * See: [Options Guide](https://docs.videojs.com/tutorial-options.html).\n *\n * ##### ready\n * {@link Component~ReadyCallback}, optional\n *\n * A function to be called when the {@link Player} and {@link Tech} are ready.\n *\n * #### Return Value\n *\n * The `videojs()` function returns a {@link Player} instance.\n *\n * @namespace\n *\n * @borrows AudioTrack as AudioTrack\n * @borrows Component.getComponent as getComponent\n * @borrows module:events.on as on\n * @borrows module:events.one as one\n * @borrows module:events.off as off\n * @borrows module:events.trigger as trigger\n * @borrows EventTarget as EventTarget\n * @borrows module:middleware.use as use\n * @borrows Player.players as players\n * @borrows Plugin.registerPlugin as registerPlugin\n * @borrows Plugin.deregisterPlugin as deregisterPlugin\n * @borrows Plugin.getPlugins as getPlugins\n * @borrows Plugin.getPlugin as getPlugin\n * @borrows Plugin.getPluginVersion as getPluginVersion\n * @borrows Tech.getTech as getTech\n * @borrows Tech.registerTech as registerTech\n * @borrows TextTrack as TextTrack\n * @borrows VideoTrack as VideoTrack\n *\n * @param {string|Element} id\n * Video element or video element ID.\n *\n * @param {Object} [options]\n * Options object for providing settings.\n * See: [Options Guide](https://docs.videojs.com/tutorial-options.html).\n *\n * @param {ReadyCallback} [ready]\n * A function to be called when the {@link Player} and {@link Tech} are\n * ready.\n *\n * @return {Player}\n * The `videojs()` function returns a {@link Player|Player} instance.\n */\nfunction videojs(id, options, ready) {\n let player = videojs.getPlayer(id);\n if (player) {\n if (options) {\n log$1.warn(`Player \"${id}\" is already initialised. Options will not be applied.`);\n }\n if (ready) {\n player.ready(ready);\n }\n return player;\n }\n const el = typeof id === 'string' ? $('#' + normalizeId(id)) : id;\n if (!isEl(el)) {\n throw new TypeError('The element or ID supplied is not valid. (videojs)');\n }\n\n // document.body.contains(el) will only check if el is contained within that one document.\n // This causes problems for elements in iframes.\n // Instead, use the element's ownerDocument instead of the global document.\n // This will make sure that the element is indeed in the dom of that document.\n // Additionally, check that the document in question has a default view.\n // If the document is no longer attached to the dom, the defaultView of the document will be null.\n // If element is inside Shadow DOM (e.g. is part of a Custom element), ownerDocument.body\n // always returns false. Instead, use the Shadow DOM root.\n const inShadowDom = 'getRootNode' in el ? el.getRootNode() instanceof window$1.ShadowRoot : false;\n const rootNode = inShadowDom ? el.getRootNode() : el.ownerDocument.body;\n if (!el.ownerDocument.defaultView || !rootNode.contains(el)) {\n log$1.warn('The element supplied is not included in the DOM');\n }\n options = options || {};\n\n // Store a copy of the el before modification, if it is to be restored in destroy()\n // If div ingest, store the parent div\n if (options.restoreEl === true) {\n options.restoreEl = (el.parentNode && el.parentNode.hasAttribute('data-vjs-player') ? el.parentNode : el).cloneNode(true);\n }\n hooks('beforesetup').forEach(hookFunction => {\n const opts = hookFunction(el, merge$1(options));\n if (!isObject(opts) || Array.isArray(opts)) {\n log$1.error('please return an object in beforesetup hooks');\n return;\n }\n options = merge$1(options, opts);\n });\n\n // We get the current \"Player\" component here in case an integration has\n // replaced it with a custom player.\n const PlayerComponent = Component$1.getComponent('Player');\n player = new PlayerComponent(el, options, ready);\n hooks('setup').forEach(hookFunction => hookFunction(player));\n return player;\n}\nvideojs.hooks_ = hooks_;\nvideojs.hooks = hooks;\nvideojs.hook = hook;\nvideojs.hookOnce = hookOnce;\nvideojs.removeHook = removeHook;\n\n// Add default styles\nif (window$1.VIDEOJS_NO_DYNAMIC_STYLE !== true && isReal()) {\n let style = $('.vjs-styles-defaults');\n if (!style) {\n style = createStyleElement('vjs-styles-defaults');\n const head = $('head');\n if (head) {\n head.insertBefore(style, head.firstChild);\n }\n setTextContent(style, `\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n `);\n }\n}\n\n// Run Auto-load players\n// You have to wait at least once in case this script is loaded after your\n// video in the DOM (weird behavior only with minified version)\nautoSetupTimeout(1, videojs);\n\n/**\n * Current Video.js version. Follows [semantic versioning](https://semver.org/).\n *\n * @type {string}\n */\nvideojs.VERSION = version$6;\n\n/**\n * The global options object. These are the settings that take effect\n * if no overrides are specified when the player is created.\n *\n * @type {Object}\n */\nvideojs.options = Player.prototype.options_;\n\n/**\n * Get an object with the currently created players, keyed by player ID\n *\n * @return {Object}\n * The created players\n */\nvideojs.getPlayers = () => Player.players;\n\n/**\n * Get a single player based on an ID or DOM element.\n *\n * This is useful if you want to check if an element or ID has an associated\n * Video.js player, but not create one if it doesn't.\n *\n * @param {string|Element} id\n * An HTML element - ``, ``, or `` -\n * or a string matching the `id` of such an element.\n *\n * @return {Player|undefined}\n * A player instance or `undefined` if there is no player instance\n * matching the argument.\n */\nvideojs.getPlayer = id => {\n const players = Player.players;\n let tag;\n if (typeof id === 'string') {\n const nId = normalizeId(id);\n const player = players[nId];\n if (player) {\n return player;\n }\n tag = $('#' + nId);\n } else {\n tag = id;\n }\n if (isEl(tag)) {\n const _tag = tag,\n player = _tag.player,\n playerId = _tag.playerId;\n\n // Element may have a `player` property referring to an already created\n // player instance. If so, return that.\n if (player || players[playerId]) {\n return player || players[playerId];\n }\n }\n};\n\n/**\n * Returns an array of all current players.\n *\n * @return {Array}\n * An array of all players. The array will be in the order that\n * `Object.keys` provides, which could potentially vary between\n * JavaScript engines.\n *\n */\nvideojs.getAllPlayers = () =>\n// Disposed players leave a key with a `null` value, so we need to make sure\n// we filter those out.\nObject.keys(Player.players).map(k => Player.players[k]).filter(Boolean);\nvideojs.players = Player.players;\nvideojs.getComponent = Component$1.getComponent;\n\n/**\n * Register a component so it can referred to by name. Used when adding to other\n * components, either through addChild `component.addChild('myComponent')` or through\n * default children options `{ children: ['myComponent'] }`.\n *\n * > NOTE: You could also just initialize the component before adding.\n * `component.addChild(new MyComponent());`\n *\n * @param {string} name\n * The class name of the component\n *\n * @param {typeof Component} comp\n * The component class\n *\n * @return {typeof Component}\n * The newly registered component\n */\nvideojs.registerComponent = (name, comp) => {\n if (Tech.isTech(comp)) {\n log$1.warn(`The ${name} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`);\n }\n return Component$1.registerComponent.call(Component$1, name, comp);\n};\nvideojs.getTech = Tech.getTech;\nvideojs.registerTech = Tech.registerTech;\nvideojs.use = use;\n\n/**\n * An object that can be returned by a middleware to signify\n * that the middleware is being terminated.\n *\n * @type {object}\n * @property {object} middleware.TERMINATOR\n */\nObject.defineProperty(videojs, 'middleware', {\n value: {},\n writeable: false,\n enumerable: true\n});\nObject.defineProperty(videojs.middleware, 'TERMINATOR', {\n value: TERMINATOR,\n writeable: false,\n enumerable: true\n});\n\n/**\n * A reference to the {@link module:browser|browser utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:browser|browser}\n */\nvideojs.browser = browser;\n\n/**\n * A reference to the {@link module:obj|obj utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:obj|obj}\n */\nvideojs.obj = Obj;\n\n/**\n * Deprecated reference to the {@link module:obj.merge|merge function}\n *\n * @type {Function}\n * @see {@link module:obj.merge|merge}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.obj.merge instead.\n */\nvideojs.mergeOptions = deprecateForMajor(9, 'videojs.mergeOptions', 'videojs.obj.merge', merge$1);\n\n/**\n * Deprecated reference to the {@link module:obj.defineLazyProperty|defineLazyProperty function}\n *\n * @type {Function}\n * @see {@link module:obj.defineLazyProperty|defineLazyProperty}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.obj.defineLazyProperty instead.\n */\nvideojs.defineLazyProperty = deprecateForMajor(9, 'videojs.defineLazyProperty', 'videojs.obj.defineLazyProperty', defineLazyProperty);\n\n/**\n * Deprecated reference to the {@link module:fn.bind_|fn.bind_ function}\n *\n * @type {Function}\n * @see {@link module:fn.bind_|fn.bind_}\n * @deprecated Deprecated and will be removed in 9.0. Please use native Function.prototype.bind instead.\n */\nvideojs.bind = deprecateForMajor(9, 'videojs.bind', 'native Function.prototype.bind', bind_);\nvideojs.registerPlugin = Plugin.registerPlugin;\nvideojs.deregisterPlugin = Plugin.deregisterPlugin;\n\n/**\n * Deprecated method to register a plugin with Video.js\n *\n * @deprecated Deprecated and will be removed in 9.0. Use videojs.registerPlugin() instead.\n *\n * @param {string} name\n * The plugin name\n*\n * @param {typeof Plugin|Function} plugin\n * The plugin sub-class or function\n *\n * @return {typeof Plugin|Function}\n */\nvideojs.plugin = (name, plugin) => {\n log$1.warn('videojs.plugin() is deprecated; use videojs.registerPlugin() instead');\n return Plugin.registerPlugin(name, plugin);\n};\nvideojs.getPlugins = Plugin.getPlugins;\nvideojs.getPlugin = Plugin.getPlugin;\nvideojs.getPluginVersion = Plugin.getPluginVersion;\n\n/**\n * Adding languages so that they're available to all players.\n * Example: `videojs.addLanguage('es', { 'Hello': 'Hola' });`\n *\n * @param {string} code\n * The language code or dictionary property\n *\n * @param {Object} data\n * The data values to be translated\n *\n * @return {Object}\n * The resulting language dictionary object\n */\nvideojs.addLanguage = function (code, data) {\n code = ('' + code).toLowerCase();\n videojs.options.languages = merge$1(videojs.options.languages, {\n [code]: data\n });\n return videojs.options.languages[code];\n};\n\n/**\n * A reference to the {@link module:log|log utility module} as an object.\n *\n * @type {Function}\n * @see {@link module:log|log}\n */\nvideojs.log = log$1;\nvideojs.createLogger = createLogger;\n\n/**\n * A reference to the {@link module:time|time utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:time|time}\n */\nvideojs.time = Time;\n\n/**\n * Deprecated reference to the {@link module:time.createTimeRanges|createTimeRanges function}\n *\n * @type {Function}\n * @see {@link module:time.createTimeRanges|createTimeRanges}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.time.createTimeRanges instead.\n */\nvideojs.createTimeRange = deprecateForMajor(9, 'videojs.createTimeRange', 'videojs.time.createTimeRanges', createTimeRanges$1);\n\n/**\n * Deprecated reference to the {@link module:time.createTimeRanges|createTimeRanges function}\n *\n * @type {Function}\n * @see {@link module:time.createTimeRanges|createTimeRanges}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.time.createTimeRanges instead.\n */\nvideojs.createTimeRanges = deprecateForMajor(9, 'videojs.createTimeRanges', 'videojs.time.createTimeRanges', createTimeRanges$1);\n\n/**\n * Deprecated reference to the {@link module:time.formatTime|formatTime function}\n *\n * @type {Function}\n * @see {@link module:time.formatTime|formatTime}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.time.format instead.\n */\nvideojs.formatTime = deprecateForMajor(9, 'videojs.formatTime', 'videojs.time.formatTime', formatTime);\n\n/**\n * Deprecated reference to the {@link module:time.setFormatTime|setFormatTime function}\n *\n * @type {Function}\n * @see {@link module:time.setFormatTime|setFormatTime}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.time.setFormat instead.\n */\nvideojs.setFormatTime = deprecateForMajor(9, 'videojs.setFormatTime', 'videojs.time.setFormatTime', setFormatTime);\n\n/**\n * Deprecated reference to the {@link module:time.resetFormatTime|resetFormatTime function}\n *\n * @type {Function}\n * @see {@link module:time.resetFormatTime|resetFormatTime}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.time.resetFormat instead.\n */\nvideojs.resetFormatTime = deprecateForMajor(9, 'videojs.resetFormatTime', 'videojs.time.resetFormatTime', resetFormatTime);\n\n/**\n * Deprecated reference to the {@link module:url.parseUrl|Url.parseUrl function}\n *\n * @type {Function}\n * @see {@link module:url.parseUrl|parseUrl}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.url.parseUrl instead.\n */\nvideojs.parseUrl = deprecateForMajor(9, 'videojs.parseUrl', 'videojs.url.parseUrl', parseUrl);\n\n/**\n * Deprecated reference to the {@link module:url.isCrossOrigin|Url.isCrossOrigin function}\n *\n * @type {Function}\n * @see {@link module:url.isCrossOrigin|isCrossOrigin}\n * @deprecated Deprecated and will be removed in 9.0. Please use videojs.url.isCrossOrigin instead.\n */\nvideojs.isCrossOrigin = deprecateForMajor(9, 'videojs.isCrossOrigin', 'videojs.url.isCrossOrigin', isCrossOrigin);\nvideojs.EventTarget = EventTarget$2;\nvideojs.any = any;\nvideojs.on = on;\nvideojs.one = one;\nvideojs.off = off;\nvideojs.trigger = trigger;\n\n/**\n * A cross-browser XMLHttpRequest wrapper.\n *\n * @function\n * @param {Object} options\n * Settings for the request.\n *\n * @return {XMLHttpRequest|XDomainRequest}\n * The request object.\n *\n * @see https://github.com/Raynos/xhr\n */\nvideojs.xhr = XHR;\nvideojs.TextTrack = TextTrack;\nvideojs.AudioTrack = AudioTrack;\nvideojs.VideoTrack = VideoTrack;\n['isEl', 'isTextNode', 'createEl', 'hasClass', 'addClass', 'removeClass', 'toggleClass', 'setAttributes', 'getAttributes', 'emptyEl', 'appendContent', 'insertContent'].forEach(k => {\n videojs[k] = function () {\n log$1.warn(`videojs.${k}() is deprecated; use videojs.dom.${k}() instead`);\n return Dom[k].apply(null, arguments);\n };\n});\nvideojs.computedStyle = deprecateForMajor(9, 'videojs.computedStyle', 'videojs.dom.computedStyle', computedStyle);\n\n/**\n * A reference to the {@link module:dom|DOM utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:dom|dom}\n */\nvideojs.dom = Dom;\n\n/**\n * A reference to the {@link module:fn|fn utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:fn|fn}\n */\nvideojs.fn = Fn;\n\n/**\n * A reference to the {@link module:num|num utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:num|num}\n */\nvideojs.num = Num;\n\n/**\n * A reference to the {@link module:str|str utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:str|str}\n */\nvideojs.str = Str;\n\n/**\n * A reference to the {@link module:url|URL utility module} as an object.\n *\n * @type {Object}\n * @see {@link module:url|url}\n */\nvideojs.url = Url;\n\n/*! @name videojs-contrib-quality-levels @version 4.0.0 @license Apache-2.0 */\n\n/**\n * A single QualityLevel.\n *\n * interface QualityLevel {\n * readonly attribute DOMString id;\n * attribute DOMString label;\n * readonly attribute long width;\n * readonly attribute long height;\n * readonly attribute long bitrate;\n * attribute boolean enabled;\n * };\n *\n * @class QualityLevel\n */\nclass QualityLevel {\n /**\n * Creates a QualityLevel\n *\n * @param {Representation|Object} representation The representation of the quality level\n * @param {string} representation.id Unique id of the QualityLevel\n * @param {number=} representation.width Resolution width of the QualityLevel\n * @param {number=} representation.height Resolution height of the QualityLevel\n * @param {number} representation.bandwidth Bitrate of the QualityLevel\n * @param {number=} representation.frameRate Frame-rate of the QualityLevel\n * @param {Function} representation.enabled Callback to enable/disable QualityLevel\n */\n constructor(representation) {\n let level = this; // eslint-disable-line\n\n level.id = representation.id;\n level.label = level.id;\n level.width = representation.width;\n level.height = representation.height;\n level.bitrate = representation.bandwidth;\n level.frameRate = representation.frameRate;\n level.enabled_ = representation.enabled;\n Object.defineProperty(level, 'enabled', {\n /**\n * Get whether the QualityLevel is enabled.\n *\n * @return {boolean} True if the QualityLevel is enabled.\n */\n get() {\n return level.enabled_();\n },\n /**\n * Enable or disable the QualityLevel.\n *\n * @param {boolean} enable true to enable QualityLevel, false to disable.\n */\n set(enable) {\n level.enabled_(enable);\n }\n });\n return level;\n }\n}\n\n/**\n * A list of QualityLevels.\n *\n * interface QualityLevelList : EventTarget {\n * getter QualityLevel (unsigned long index);\n * readonly attribute unsigned long length;\n * readonly attribute long selectedIndex;\n *\n * void addQualityLevel(QualityLevel qualityLevel)\n * void removeQualityLevel(QualityLevel remove)\n * QualityLevel? getQualityLevelById(DOMString id);\n *\n * attribute EventHandler onchange;\n * attribute EventHandler onaddqualitylevel;\n * attribute EventHandler onremovequalitylevel;\n * };\n *\n * @extends videojs.EventTarget\n * @class QualityLevelList\n */\n\nclass QualityLevelList extends videojs.EventTarget {\n /**\n * Creates a QualityLevelList.\n */\n constructor() {\n super();\n let list = this; // eslint-disable-line\n\n list.levels_ = [];\n list.selectedIndex_ = -1;\n /**\n * Get the index of the currently selected QualityLevel.\n *\n * @returns {number} The index of the selected QualityLevel. -1 if none selected.\n * @readonly\n */\n\n Object.defineProperty(list, 'selectedIndex', {\n get() {\n return list.selectedIndex_;\n }\n });\n /**\n * Get the length of the list of QualityLevels.\n *\n * @returns {number} The length of the list.\n * @readonly\n */\n\n Object.defineProperty(list, 'length', {\n get() {\n return list.levels_.length;\n }\n });\n list[Symbol.iterator] = () => list.levels_.values();\n return list;\n }\n /**\n * Adds a quality level to the list.\n *\n * @param {Representation|Object} representation The representation of the quality level\n * @param {string} representation.id Unique id of the QualityLevel\n * @param {number=} representation.width Resolution width of the QualityLevel\n * @param {number=} representation.height Resolution height of the QualityLevel\n * @param {number} representation.bandwidth Bitrate of the QualityLevel\n * @param {number=} representation.frameRate Frame-rate of the QualityLevel\n * @param {Function} representation.enabled Callback to enable/disable QualityLevel\n * @return {QualityLevel} the QualityLevel added to the list\n * @method addQualityLevel\n */\n\n addQualityLevel(representation) {\n let qualityLevel = this.getQualityLevelById(representation.id); // Do not add duplicate quality levels\n\n if (qualityLevel) {\n return qualityLevel;\n }\n const index = this.levels_.length;\n qualityLevel = new QualityLevel(representation);\n if (!('' + index in this)) {\n Object.defineProperty(this, index, {\n get() {\n return this.levels_[index];\n }\n });\n }\n this.levels_.push(qualityLevel);\n this.trigger({\n qualityLevel,\n type: 'addqualitylevel'\n });\n return qualityLevel;\n }\n /**\n * Removes a quality level from the list.\n *\n * @param {QualityLevel} qualityLevel The QualityLevel to remove from the list.\n * @return {QualityLevel|null} the QualityLevel removed or null if nothing removed\n * @method removeQualityLevel\n */\n\n removeQualityLevel(qualityLevel) {\n let removed = null;\n for (let i = 0, l = this.length; i < l; i++) {\n if (this[i] === qualityLevel) {\n removed = this.levels_.splice(i, 1)[0];\n if (this.selectedIndex_ === i) {\n this.selectedIndex_ = -1;\n } else if (this.selectedIndex_ > i) {\n this.selectedIndex_--;\n }\n break;\n }\n }\n if (removed) {\n this.trigger({\n qualityLevel,\n type: 'removequalitylevel'\n });\n }\n return removed;\n }\n /**\n * Searches for a QualityLevel with the given id.\n *\n * @param {string} id The id of the QualityLevel to find.\n * @return {QualityLevel|null} The QualityLevel with id, or null if not found.\n * @method getQualityLevelById\n */\n\n getQualityLevelById(id) {\n for (let i = 0, l = this.length; i < l; i++) {\n const level = this[i];\n if (level.id === id) {\n return level;\n }\n }\n return null;\n }\n /**\n * Resets the list of QualityLevels to empty\n *\n * @method dispose\n */\n\n dispose() {\n this.selectedIndex_ = -1;\n this.levels_.length = 0;\n }\n}\n/**\n * change - The selected QualityLevel has changed.\n * addqualitylevel - A QualityLevel has been added to the QualityLevelList.\n * removequalitylevel - A QualityLevel has been removed from the QualityLevelList.\n */\n\nQualityLevelList.prototype.allowedEvents_ = {\n change: 'change',\n addqualitylevel: 'addqualitylevel',\n removequalitylevel: 'removequalitylevel'\n}; // emulate attribute EventHandler support to allow for feature detection\n\nfor (const event in QualityLevelList.prototype.allowedEvents_) {\n QualityLevelList.prototype['on' + event] = null;\n}\nvar version$5 = \"4.0.0\";\n\n/**\n * Initialization function for the qualityLevels plugin. Sets up the QualityLevelList and\n * event handlers.\n *\n * @param {Player} player Player object.\n * @param {Object} options Plugin options object.\n * @return {QualityLevelList} a list of QualityLevels\n */\n\nconst initPlugin$1 = function (player, options) {\n const originalPluginFn = player.qualityLevels;\n const qualityLevelList = new QualityLevelList();\n const disposeHandler = function () {\n qualityLevelList.dispose();\n player.qualityLevels = originalPluginFn;\n player.off('dispose', disposeHandler);\n };\n player.on('dispose', disposeHandler);\n player.qualityLevels = () => qualityLevelList;\n player.qualityLevels.VERSION = version$5;\n return qualityLevelList;\n};\n/**\n * A video.js plugin.\n *\n * In the plugin function, the value of `this` is a video.js `Player`\n * instance. You cannot rely on the player being in a \"ready\" state here,\n * depending on how the plugin is invoked. This may or may not be important\n * to you; if not, remove the wait for \"ready\"!\n *\n * @param {Object} options Plugin options object\n * @return {QualityLevelList} a list of QualityLevels\n */\n\nconst qualityLevels = function (options) {\n return initPlugin$1(this, videojs.obj.merge({}, options));\n}; // Register the plugin with video.js.\n\nvideojs.registerPlugin('qualityLevels', qualityLevels); // Include the version number.\n\nqualityLevels.VERSION = version$5;\n\n/*! @name @videojs/http-streaming @version 3.10.0 @license Apache-2.0 */\n\n/**\n * @file resolve-url.js - Handling how URLs are resolved and manipulated\n */\nconst resolveUrl = _resolveUrl;\n/**\n * If the xhr request was redirected, return the responseURL, otherwise,\n * return the original url.\n *\n * @api private\n *\n * @param {string} url - an url being requested\n * @param {XMLHttpRequest} req - xhr request result\n *\n * @return {string}\n */\n\nconst resolveManifestRedirect = (url, req) => {\n // To understand how the responseURL below is set and generated:\n // - https://fetch.spec.whatwg.org/#concept-response-url\n // - https://fetch.spec.whatwg.org/#atomic-http-redirect-handling\n if (req && req.responseURL && url !== req.responseURL) {\n return req.responseURL;\n }\n return url;\n};\nconst logger = source => {\n if (videojs.log.debug) {\n return videojs.log.debug.bind(videojs, 'VHS:', `${source} >`);\n }\n return function () {};\n};\n\n/**\n * Provides a compatibility layer between Video.js 7 and 8 API changes for VHS.\n */\n/**\n * Delegates to videojs.obj.merge (Video.js 8) or\n * videojs.mergeOptions (Video.js 7).\n */\n\nfunction merge() {\n const context = videojs.obj || videojs;\n const fn = context.merge || context.mergeOptions;\n for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {\n args[_key22] = arguments[_key22];\n }\n return fn.apply(context, args);\n}\n/**\n * Delegates to videojs.time.createTimeRanges (Video.js 8) or\n * videojs.createTimeRanges (Video.js 7).\n */\n\nfunction createTimeRanges() {\n const context = videojs.time || videojs;\n const fn = context.createTimeRanges || context.createTimeRanges;\n for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {\n args[_key23] = arguments[_key23];\n }\n return fn.apply(context, args);\n}\n\n/**\n * ranges\n *\n * Utilities for working with TimeRanges.\n *\n */\n\nconst TIME_FUDGE_FACTOR = 1 / 30; // Comparisons between time values such as current time and the end of the buffered range\n// can be misleading because of precision differences or when the current media has poorly\n// aligned audio and video, which can cause values to be slightly off from what you would\n// expect. This value is what we consider to be safe to use in such comparisons to account\n// for these scenarios.\n\nconst SAFE_TIME_DELTA = TIME_FUDGE_FACTOR * 3;\nconst filterRanges = function (timeRanges, predicate) {\n const results = [];\n let i;\n if (timeRanges && timeRanges.length) {\n // Search for ranges that match the predicate\n for (i = 0; i < timeRanges.length; i++) {\n if (predicate(timeRanges.start(i), timeRanges.end(i))) {\n results.push([timeRanges.start(i), timeRanges.end(i)]);\n }\n }\n }\n return createTimeRanges(results);\n};\n/**\n * Attempts to find the buffered TimeRange that contains the specified\n * time.\n *\n * @param {TimeRanges} buffered - the TimeRanges object to query\n * @param {number} time - the time to filter on.\n * @return {TimeRanges} a new TimeRanges object\n */\n\nconst findRange = function (buffered, time) {\n return filterRanges(buffered, function (start, end) {\n return start - SAFE_TIME_DELTA <= time && end + SAFE_TIME_DELTA >= time;\n });\n};\n/**\n * Returns the TimeRanges that begin later than the specified time.\n *\n * @param {TimeRanges} timeRanges - the TimeRanges object to query\n * @param {number} time - the time to filter on.\n * @return {TimeRanges} a new TimeRanges object.\n */\n\nconst findNextRange = function (timeRanges, time) {\n return filterRanges(timeRanges, function (start) {\n return start - TIME_FUDGE_FACTOR >= time;\n });\n};\n/**\n * Returns gaps within a list of TimeRanges\n *\n * @param {TimeRanges} buffered - the TimeRanges object\n * @return {TimeRanges} a TimeRanges object of gaps\n */\n\nconst findGaps = function (buffered) {\n if (buffered.length < 2) {\n return createTimeRanges();\n }\n const ranges = [];\n for (let i = 1; i < buffered.length; i++) {\n const start = buffered.end(i - 1);\n const end = buffered.start(i);\n ranges.push([start, end]);\n }\n return createTimeRanges(ranges);\n};\n/**\n * Calculate the intersection of two TimeRanges\n *\n * @param {TimeRanges} bufferA\n * @param {TimeRanges} bufferB\n * @return {TimeRanges} The interesection of `bufferA` with `bufferB`\n */\n\nconst bufferIntersection = function (bufferA, bufferB) {\n let start = null;\n let end = null;\n let arity = 0;\n const extents = [];\n const ranges = [];\n if (!bufferA || !bufferA.length || !bufferB || !bufferB.length) {\n return createTimeRanges();\n } // Handle the case where we have both buffers and create an\n // intersection of the two\n\n let count = bufferA.length; // A) Gather up all start and end times\n\n while (count--) {\n extents.push({\n time: bufferA.start(count),\n type: 'start'\n });\n extents.push({\n time: bufferA.end(count),\n type: 'end'\n });\n }\n count = bufferB.length;\n while (count--) {\n extents.push({\n time: bufferB.start(count),\n type: 'start'\n });\n extents.push({\n time: bufferB.end(count),\n type: 'end'\n });\n } // B) Sort them by time\n\n extents.sort(function (a, b) {\n return a.time - b.time;\n }); // C) Go along one by one incrementing arity for start and decrementing\n // arity for ends\n\n for (count = 0; count < extents.length; count++) {\n if (extents[count].type === 'start') {\n arity++; // D) If arity is ever incremented to 2 we are entering an\n // overlapping range\n\n if (arity === 2) {\n start = extents[count].time;\n }\n } else if (extents[count].type === 'end') {\n arity--; // E) If arity is ever decremented to 1 we leaving an\n // overlapping range\n\n if (arity === 1) {\n end = extents[count].time;\n }\n } // F) Record overlapping ranges\n\n if (start !== null && end !== null) {\n ranges.push([start, end]);\n start = null;\n end = null;\n }\n }\n return createTimeRanges(ranges);\n};\n/**\n * Gets a human readable string for a TimeRange\n *\n * @param {TimeRange} range\n * @return {string} a human readable string\n */\n\nconst printableRange = range => {\n const strArr = [];\n if (!range || !range.length) {\n return '';\n }\n for (let i = 0; i < range.length; i++) {\n strArr.push(range.start(i) + ' => ' + range.end(i));\n }\n return strArr.join(', ');\n};\n/**\n * Calculates the amount of time left in seconds until the player hits the end of the\n * buffer and causes a rebuffer\n *\n * @param {TimeRange} buffered\n * The state of the buffer\n * @param {Numnber} currentTime\n * The current time of the player\n * @param {number} playbackRate\n * The current playback rate of the player. Defaults to 1.\n * @return {number}\n * Time until the player has to start rebuffering in seconds.\n * @function timeUntilRebuffer\n */\n\nconst timeUntilRebuffer = function (buffered, currentTime) {\n let playbackRate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n const bufferedEnd = buffered.length ? buffered.end(buffered.length - 1) : 0;\n return (bufferedEnd - currentTime) / playbackRate;\n};\n/**\n * Converts a TimeRanges object into an array representation\n *\n * @param {TimeRanges} timeRanges\n * @return {Array}\n */\n\nconst timeRangesToArray = timeRanges => {\n const timeRangesList = [];\n for (let i = 0; i < timeRanges.length; i++) {\n timeRangesList.push({\n start: timeRanges.start(i),\n end: timeRanges.end(i)\n });\n }\n return timeRangesList;\n};\n/**\n * Determines if two time range objects are different.\n *\n * @param {TimeRange} a\n * the first time range object to check\n *\n * @param {TimeRange} b\n * the second time range object to check\n *\n * @return {Boolean}\n * Whether the time range objects differ\n */\n\nconst isRangeDifferent = function (a, b) {\n // same object\n if (a === b) {\n return false;\n } // one or the other is undefined\n\n if (!a && b || !b && a) {\n return true;\n } // length is different\n\n if (a.length !== b.length) {\n return true;\n } // see if any start/end pair is different\n\n for (let i = 0; i < a.length; i++) {\n if (a.start(i) !== b.start(i) || a.end(i) !== b.end(i)) {\n return true;\n }\n } // if the length and every pair is the same\n // this is the same time range\n\n return false;\n};\nconst lastBufferedEnd = function (a) {\n if (!a || !a.length || !a.end) {\n return;\n }\n return a.end(a.length - 1);\n};\n/**\n * A utility function to add up the amount of time in a timeRange\n * after a specified startTime.\n * ie:[[0, 10], [20, 40], [50, 60]] with a startTime 0\n * would return 40 as there are 40s seconds after 0 in the timeRange\n *\n * @param {TimeRange} range\n * The range to check against\n * @param {number} startTime\n * The time in the time range that you should start counting from\n *\n * @return {number}\n * The number of seconds in the buffer passed the specified time.\n */\n\nconst timeAheadOf = function (range, startTime) {\n let time = 0;\n if (!range || !range.length) {\n return time;\n }\n for (let i = 0; i < range.length; i++) {\n const start = range.start(i);\n const end = range.end(i); // startTime is after this range entirely\n\n if (startTime > end) {\n continue;\n } // startTime is within this range\n\n if (startTime > start && startTime <= end) {\n time += end - startTime;\n continue;\n } // startTime is before this range.\n\n time += end - start;\n }\n return time;\n};\n\n/**\n * @file playlist.js\n *\n * Playlist related utilities.\n */\n/**\n * Get the duration of a segment, with special cases for\n * llhls segments that do not have a duration yet.\n *\n * @param {Object} playlist\n * the playlist that the segment belongs to.\n * @param {Object} segment\n * the segment to get a duration for.\n *\n * @return {number}\n * the segment duration\n */\n\nconst segmentDurationWithParts = (playlist, segment) => {\n // if this isn't a preload segment\n // then we will have a segment duration that is accurate.\n if (!segment.preload) {\n return segment.duration;\n } // otherwise we have to add up parts and preload hints\n // to get an up to date duration.\n\n let result = 0;\n (segment.parts || []).forEach(function (p) {\n result += p.duration;\n }); // for preload hints we have to use partTargetDuration\n // as they won't even have a duration yet.\n\n (segment.preloadHints || []).forEach(function (p) {\n if (p.type === 'PART') {\n result += playlist.partTargetDuration;\n }\n });\n return result;\n};\n/**\n * A function to get a combined list of parts and segments with durations\n * and indexes.\n *\n * @param {Playlist} playlist the playlist to get the list for.\n *\n * @return {Array} The part/segment list.\n */\n\nconst getPartsAndSegments = playlist => (playlist.segments || []).reduce((acc, segment, si) => {\n if (segment.parts) {\n segment.parts.forEach(function (part, pi) {\n acc.push({\n duration: part.duration,\n segmentIndex: si,\n partIndex: pi,\n part,\n segment\n });\n });\n } else {\n acc.push({\n duration: segment.duration,\n segmentIndex: si,\n partIndex: null,\n segment,\n part: null\n });\n }\n return acc;\n}, []);\nconst getLastParts = media => {\n const lastSegment = media.segments && media.segments.length && media.segments[media.segments.length - 1];\n return lastSegment && lastSegment.parts || [];\n};\nconst getKnownPartCount = _ref11 => {\n let preloadSegment = _ref11.preloadSegment;\n if (!preloadSegment) {\n return;\n }\n const parts = preloadSegment.parts,\n preloadHints = preloadSegment.preloadHints;\n let partCount = (preloadHints || []).reduce((count, hint) => count + (hint.type === 'PART' ? 1 : 0), 0);\n partCount += parts && parts.length ? parts.length : 0;\n return partCount;\n};\n/**\n * Get the number of seconds to delay from the end of a\n * live playlist.\n *\n * @param {Playlist} main the main playlist\n * @param {Playlist} media the media playlist\n * @return {number} the hold back in seconds.\n */\n\nconst liveEdgeDelay = (main, media) => {\n if (media.endList) {\n return 0;\n } // dash suggestedPresentationDelay trumps everything\n\n if (main && main.suggestedPresentationDelay) {\n return main.suggestedPresentationDelay;\n }\n const hasParts = getLastParts(media).length > 0; // look for \"part\" delays from ll-hls first\n\n if (hasParts && media.serverControl && media.serverControl.partHoldBack) {\n return media.serverControl.partHoldBack;\n } else if (hasParts && media.partTargetDuration) {\n return media.partTargetDuration * 3; // finally look for full segment delays\n } else if (media.serverControl && media.serverControl.holdBack) {\n return media.serverControl.holdBack;\n } else if (media.targetDuration) {\n return media.targetDuration * 3;\n }\n return 0;\n};\n/**\n * walk backward until we find a duration we can use\n * or return a failure\n *\n * @param {Playlist} playlist the playlist to walk through\n * @param {Number} endSequence the mediaSequence to stop walking on\n */\n\nconst backwardDuration = function (playlist, endSequence) {\n let result = 0;\n let i = endSequence - playlist.mediaSequence; // if a start time is available for segment immediately following\n // the interval, use it\n\n let segment = playlist.segments[i]; // Walk backward until we find the latest segment with timeline\n // information that is earlier than endSequence\n\n if (segment) {\n if (typeof segment.start !== 'undefined') {\n return {\n result: segment.start,\n precise: true\n };\n }\n if (typeof segment.end !== 'undefined') {\n return {\n result: segment.end - segment.duration,\n precise: true\n };\n }\n }\n while (i--) {\n segment = playlist.segments[i];\n if (typeof segment.end !== 'undefined') {\n return {\n result: result + segment.end,\n precise: true\n };\n }\n result += segmentDurationWithParts(playlist, segment);\n if (typeof segment.start !== 'undefined') {\n return {\n result: result + segment.start,\n precise: true\n };\n }\n }\n return {\n result,\n precise: false\n };\n};\n/**\n * walk forward until we find a duration we can use\n * or return a failure\n *\n * @param {Playlist} playlist the playlist to walk through\n * @param {number} endSequence the mediaSequence to stop walking on\n */\n\nconst forwardDuration = function (playlist, endSequence) {\n let result = 0;\n let segment;\n let i = endSequence - playlist.mediaSequence; // Walk forward until we find the earliest segment with timeline\n // information\n\n for (; i < playlist.segments.length; i++) {\n segment = playlist.segments[i];\n if (typeof segment.start !== 'undefined') {\n return {\n result: segment.start - result,\n precise: true\n };\n }\n result += segmentDurationWithParts(playlist, segment);\n if (typeof segment.end !== 'undefined') {\n return {\n result: segment.end - result,\n precise: true\n };\n }\n } // indicate we didn't find a useful duration estimate\n\n return {\n result: -1,\n precise: false\n };\n};\n/**\n * Calculate the media duration from the segments associated with a\n * playlist. The duration of a subinterval of the available segments\n * may be calculated by specifying an end index.\n *\n * @param {Object} playlist a media playlist object\n * @param {number=} endSequence an exclusive upper boundary\n * for the playlist. Defaults to playlist length.\n * @param {number} expired the amount of time that has dropped\n * off the front of the playlist in a live scenario\n * @return {number} the duration between the first available segment\n * and end index.\n */\n\nconst intervalDuration = function (playlist, endSequence, expired) {\n if (typeof endSequence === 'undefined') {\n endSequence = playlist.mediaSequence + playlist.segments.length;\n }\n if (endSequence < playlist.mediaSequence) {\n return 0;\n } // do a backward walk to estimate the duration\n\n const backward = backwardDuration(playlist, endSequence);\n if (backward.precise) {\n // if we were able to base our duration estimate on timing\n // information provided directly from the Media Source, return\n // it\n return backward.result;\n } // walk forward to see if a precise duration estimate can be made\n // that way\n\n const forward = forwardDuration(playlist, endSequence);\n if (forward.precise) {\n // we found a segment that has been buffered and so it's\n // position is known precisely\n return forward.result;\n } // return the less-precise, playlist-based duration estimate\n\n return backward.result + expired;\n};\n/**\n * Calculates the duration of a playlist. If a start and end index\n * are specified, the duration will be for the subset of the media\n * timeline between those two indices. The total duration for live\n * playlists is always Infinity.\n *\n * @param {Object} playlist a media playlist object\n * @param {number=} endSequence an exclusive upper\n * boundary for the playlist. Defaults to the playlist media\n * sequence number plus its length.\n * @param {number=} expired the amount of time that has\n * dropped off the front of the playlist in a live scenario\n * @return {number} the duration between the start index and end\n * index.\n */\n\nconst duration = function (playlist, endSequence, expired) {\n if (!playlist) {\n return 0;\n }\n if (typeof expired !== 'number') {\n expired = 0;\n } // if a slice of the total duration is not requested, use\n // playlist-level duration indicators when they're present\n\n if (typeof endSequence === 'undefined') {\n // if present, use the duration specified in the playlist\n if (playlist.totalDuration) {\n return playlist.totalDuration;\n } // duration should be Infinity for live playlists\n\n if (!playlist.endList) {\n return window$1.Infinity;\n }\n } // calculate the total duration based on the segment durations\n\n return intervalDuration(playlist, endSequence, expired);\n};\n/**\n * Calculate the time between two indexes in the current playlist\n * neight the start- nor the end-index need to be within the current\n * playlist in which case, the targetDuration of the playlist is used\n * to approximate the durations of the segments\n *\n * @param {Array} options.durationList list to iterate over for durations.\n * @param {number} options.defaultDuration duration to use for elements before or after the durationList\n * @param {number} options.startIndex partsAndSegments index to start\n * @param {number} options.endIndex partsAndSegments index to end.\n * @return {number} the number of seconds between startIndex and endIndex\n */\n\nconst sumDurations = function (_ref12) {\n let defaultDuration = _ref12.defaultDuration,\n durationList = _ref12.durationList,\n startIndex = _ref12.startIndex,\n endIndex = _ref12.endIndex;\n let durations = 0;\n if (startIndex > endIndex) {\n var _ref13 = [endIndex, startIndex];\n startIndex = _ref13[0];\n endIndex = _ref13[1];\n }\n if (startIndex < 0) {\n for (let i = startIndex; i < Math.min(0, endIndex); i++) {\n durations += defaultDuration;\n }\n startIndex = 0;\n }\n for (let i = startIndex; i < endIndex; i++) {\n durations += durationList[i].duration;\n }\n return durations;\n};\n/**\n * Calculates the playlist end time\n *\n * @param {Object} playlist a media playlist object\n * @param {number=} expired the amount of time that has\n * dropped off the front of the playlist in a live scenario\n * @param {boolean|false} useSafeLiveEnd a boolean value indicating whether or not the\n * playlist end calculation should consider the safe live end\n * (truncate the playlist end by three segments). This is normally\n * used for calculating the end of the playlist's seekable range.\n * This takes into account the value of liveEdgePadding.\n * Setting liveEdgePadding to 0 is equivalent to setting this to false.\n * @param {number} liveEdgePadding a number indicating how far from the end of the playlist we should be in seconds.\n * If this is provided, it is used in the safe live end calculation.\n * Setting useSafeLiveEnd=false or liveEdgePadding=0 are equivalent.\n * Corresponds to suggestedPresentationDelay in DASH manifests.\n * @return {number} the end time of playlist\n * @function playlistEnd\n */\n\nconst playlistEnd = function (playlist, expired, useSafeLiveEnd, liveEdgePadding) {\n if (!playlist || !playlist.segments) {\n return null;\n }\n if (playlist.endList) {\n return duration(playlist);\n }\n if (expired === null) {\n return null;\n }\n expired = expired || 0;\n let lastSegmentEndTime = intervalDuration(playlist, playlist.mediaSequence + playlist.segments.length, expired);\n if (useSafeLiveEnd) {\n liveEdgePadding = typeof liveEdgePadding === 'number' ? liveEdgePadding : liveEdgeDelay(null, playlist);\n lastSegmentEndTime -= liveEdgePadding;\n } // don't return a time less than zero\n\n return Math.max(0, lastSegmentEndTime);\n};\n/**\n * Calculates the interval of time that is currently seekable in a\n * playlist. The returned time ranges are relative to the earliest\n * moment in the specified playlist that is still available. A full\n * seekable implementation for live streams would need to offset\n * these values by the duration of content that has expired from the\n * stream.\n *\n * @param {Object} playlist a media playlist object\n * dropped off the front of the playlist in a live scenario\n * @param {number=} expired the amount of time that has\n * dropped off the front of the playlist in a live scenario\n * @param {number} liveEdgePadding how far from the end of the playlist we should be in seconds.\n * Corresponds to suggestedPresentationDelay in DASH manifests.\n * @return {TimeRanges} the periods of time that are valid targets\n * for seeking\n */\n\nconst seekable = function (playlist, expired, liveEdgePadding) {\n const useSafeLiveEnd = true;\n const seekableStart = expired || 0;\n let seekableEnd = playlistEnd(playlist, expired, useSafeLiveEnd, liveEdgePadding);\n if (seekableEnd === null) {\n return createTimeRanges();\n } // Clamp seekable end since it can not be less than the seekable start\n\n if (seekableEnd < seekableStart) {\n seekableEnd = seekableStart;\n }\n return createTimeRanges(seekableStart, seekableEnd);\n};\n/**\n * Determine the index and estimated starting time of the segment that\n * contains a specified playback position in a media playlist.\n *\n * @param {Object} options.playlist the media playlist to query\n * @param {number} options.currentTime The number of seconds since the earliest\n * possible position to determine the containing segment for\n * @param {number} options.startTime the time when the segment/part starts\n * @param {number} options.startingSegmentIndex the segment index to start looking at.\n * @param {number?} [options.startingPartIndex] the part index to look at within the segment.\n *\n * @return {Object} an object with partIndex, segmentIndex, and startTime.\n */\n\nconst getMediaInfoForTime = function (_ref14) {\n let playlist = _ref14.playlist,\n currentTime = _ref14.currentTime,\n startingSegmentIndex = _ref14.startingSegmentIndex,\n startingPartIndex = _ref14.startingPartIndex,\n startTime = _ref14.startTime,\n exactManifestTimings = _ref14.exactManifestTimings;\n let time = currentTime - startTime;\n const partsAndSegments = getPartsAndSegments(playlist);\n let startIndex = 0;\n for (let i = 0; i < partsAndSegments.length; i++) {\n const partAndSegment = partsAndSegments[i];\n if (startingSegmentIndex !== partAndSegment.segmentIndex) {\n continue;\n } // skip this if part index does not match.\n\n if (typeof startingPartIndex === 'number' && typeof partAndSegment.partIndex === 'number' && startingPartIndex !== partAndSegment.partIndex) {\n continue;\n }\n startIndex = i;\n break;\n }\n if (time < 0) {\n // Walk backward from startIndex in the playlist, adding durations\n // until we find a segment that contains `time` and return it\n if (startIndex > 0) {\n for (let i = startIndex - 1; i >= 0; i--) {\n const partAndSegment = partsAndSegments[i];\n time += partAndSegment.duration;\n if (exactManifestTimings) {\n if (time < 0) {\n continue;\n }\n } else if (time + TIME_FUDGE_FACTOR <= 0) {\n continue;\n }\n return {\n partIndex: partAndSegment.partIndex,\n segmentIndex: partAndSegment.segmentIndex,\n startTime: startTime - sumDurations({\n defaultDuration: playlist.targetDuration,\n durationList: partsAndSegments,\n startIndex,\n endIndex: i\n })\n };\n }\n } // We were unable to find a good segment within the playlist\n // so select the first segment\n\n return {\n partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null,\n segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0,\n startTime: currentTime\n };\n } // When startIndex is negative, we first walk forward to first segment\n // adding target durations. If we \"run out of time\" before getting to\n // the first segment, return the first segment\n\n if (startIndex < 0) {\n for (let i = startIndex; i < 0; i++) {\n time -= playlist.targetDuration;\n if (time < 0) {\n return {\n partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null,\n segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0,\n startTime: currentTime\n };\n }\n }\n startIndex = 0;\n } // Walk forward from startIndex in the playlist, subtracting durations\n // until we find a segment that contains `time` and return it\n\n for (let i = startIndex; i < partsAndSegments.length; i++) {\n const partAndSegment = partsAndSegments[i];\n time -= partAndSegment.duration;\n const canUseFudgeFactor = partAndSegment.duration > TIME_FUDGE_FACTOR;\n const isExactlyAtTheEnd = time === 0;\n const isExtremelyCloseToTheEnd = canUseFudgeFactor && time + TIME_FUDGE_FACTOR >= 0;\n if (isExactlyAtTheEnd || isExtremelyCloseToTheEnd) {\n // 1) We are exactly at the end of the current segment.\n // 2) We are extremely close to the end of the current segment (The difference is less than 1 / 30).\n // We may encounter this situation when\n // we don't have exact match between segment duration info in the manifest and the actual duration of the segment\n // For example:\n // We appended 3 segments 10 seconds each, meaning we should have 30 sec buffered,\n // but we the actual buffered is 29.99999\n //\n // In both cases:\n // if we passed current time -> it means that we already played current segment\n // if we passed buffered.end -> it means that this segment is already loaded and buffered\n // we should select the next segment if we have one:\n if (i !== partsAndSegments.length - 1) {\n continue;\n }\n }\n if (exactManifestTimings) {\n if (time > 0) {\n continue;\n }\n } else if (time - TIME_FUDGE_FACTOR >= 0) {\n continue;\n }\n return {\n partIndex: partAndSegment.partIndex,\n segmentIndex: partAndSegment.segmentIndex,\n startTime: startTime + sumDurations({\n defaultDuration: playlist.targetDuration,\n durationList: partsAndSegments,\n startIndex,\n endIndex: i\n })\n };\n } // We are out of possible candidates so load the last one...\n\n return {\n segmentIndex: partsAndSegments[partsAndSegments.length - 1].segmentIndex,\n partIndex: partsAndSegments[partsAndSegments.length - 1].partIndex,\n startTime: currentTime\n };\n};\n/**\n * Check whether the playlist is excluded or not.\n *\n * @param {Object} playlist the media playlist object\n * @return {boolean} whether the playlist is excluded or not\n * @function isExcluded\n */\n\nconst isExcluded = function (playlist) {\n return playlist.excludeUntil && playlist.excludeUntil > Date.now();\n};\n/**\n * Check whether the playlist is compatible with current playback configuration or has\n * been excluded permanently for being incompatible.\n *\n * @param {Object} playlist the media playlist object\n * @return {boolean} whether the playlist is incompatible or not\n * @function isIncompatible\n */\n\nconst isIncompatible = function (playlist) {\n return playlist.excludeUntil && playlist.excludeUntil === Infinity;\n};\n/**\n * Check whether the playlist is enabled or not.\n *\n * @param {Object} playlist the media playlist object\n * @return {boolean} whether the playlist is enabled or not\n * @function isEnabled\n */\n\nconst isEnabled = function (playlist) {\n const excluded = isExcluded(playlist);\n return !playlist.disabled && !excluded;\n};\n/**\n * Check whether the playlist has been manually disabled through the representations api.\n *\n * @param {Object} playlist the media playlist object\n * @return {boolean} whether the playlist is disabled manually or not\n * @function isDisabled\n */\n\nconst isDisabled = function (playlist) {\n return playlist.disabled;\n};\n/**\n * Returns whether the current playlist is an AES encrypted HLS stream\n *\n * @return {boolean} true if it's an AES encrypted HLS stream\n */\n\nconst isAes = function (media) {\n for (let i = 0; i < media.segments.length; i++) {\n if (media.segments[i].key) {\n return true;\n }\n }\n return false;\n};\n/**\n * Checks if the playlist has a value for the specified attribute\n *\n * @param {string} attr\n * Attribute to check for\n * @param {Object} playlist\n * The media playlist object\n * @return {boolean}\n * Whether the playlist contains a value for the attribute or not\n * @function hasAttribute\n */\n\nconst hasAttribute = function (attr, playlist) {\n return playlist.attributes && playlist.attributes[attr];\n};\n/**\n * Estimates the time required to complete a segment download from the specified playlist\n *\n * @param {number} segmentDuration\n * Duration of requested segment\n * @param {number} bandwidth\n * Current measured bandwidth of the player\n * @param {Object} playlist\n * The media playlist object\n * @param {number=} bytesReceived\n * Number of bytes already received for the request. Defaults to 0\n * @return {number|NaN}\n * The estimated time to request the segment. NaN if bandwidth information for\n * the given playlist is unavailable\n * @function estimateSegmentRequestTime\n */\n\nconst estimateSegmentRequestTime = function (segmentDuration, bandwidth, playlist) {\n let bytesReceived = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n if (!hasAttribute('BANDWIDTH', playlist)) {\n return NaN;\n }\n const size = segmentDuration * playlist.attributes.BANDWIDTH;\n return (size - bytesReceived * 8) / bandwidth;\n};\n/*\n * Returns whether the current playlist is the lowest rendition\n *\n * @return {Boolean} true if on lowest rendition\n */\n\nconst isLowestEnabledRendition = (main, media) => {\n if (main.playlists.length === 1) {\n return true;\n }\n const currentBandwidth = media.attributes.BANDWIDTH || Number.MAX_VALUE;\n return main.playlists.filter(playlist => {\n if (!isEnabled(playlist)) {\n return false;\n }\n return (playlist.attributes.BANDWIDTH || 0) < currentBandwidth;\n }).length === 0;\n};\nconst playlistMatch = (a, b) => {\n // both playlits are null\n // or only one playlist is non-null\n // no match\n if (!a && !b || !a && b || a && !b) {\n return false;\n } // playlist objects are the same, match\n\n if (a === b) {\n return true;\n } // first try to use id as it should be the most\n // accurate\n\n if (a.id && b.id && a.id === b.id) {\n return true;\n } // next try to use reslovedUri as it should be the\n // second most accurate.\n\n if (a.resolvedUri && b.resolvedUri && a.resolvedUri === b.resolvedUri) {\n return true;\n } // finally try to use uri as it should be accurate\n // but might miss a few cases for relative uris\n\n if (a.uri && b.uri && a.uri === b.uri) {\n return true;\n }\n return false;\n};\nconst someAudioVariant = function (main, callback) {\n const AUDIO = main && main.mediaGroups && main.mediaGroups.AUDIO || {};\n let found = false;\n for (const groupName in AUDIO) {\n for (const label in AUDIO[groupName]) {\n found = callback(AUDIO[groupName][label]);\n if (found) {\n break;\n }\n }\n if (found) {\n break;\n }\n }\n return !!found;\n};\nconst isAudioOnly = main => {\n // we are audio only if we have no main playlists but do\n // have media group playlists.\n if (!main || !main.playlists || !main.playlists.length) {\n // without audio variants or playlists this\n // is not an audio only main.\n const found = someAudioVariant(main, variant => variant.playlists && variant.playlists.length || variant.uri);\n return found;\n } // if every playlist has only an audio codec it is audio only\n\n for (let i = 0; i < main.playlists.length; i++) {\n const playlist = main.playlists[i];\n const CODECS = playlist.attributes && playlist.attributes.CODECS; // all codecs are audio, this is an audio playlist.\n\n if (CODECS && CODECS.split(',').every(c => isAudioCodec(c))) {\n continue;\n } // playlist is in an audio group it is audio only\n\n const found = someAudioVariant(main, variant => playlistMatch(playlist, variant));\n if (found) {\n continue;\n } // if we make it here this playlist isn't audio and we\n // are not audio only\n\n return false;\n } // if we make it past every playlist without returning, then\n // this is an audio only playlist.\n\n return true;\n}; // exports\n\nvar Playlist = {\n liveEdgeDelay,\n duration,\n seekable,\n getMediaInfoForTime,\n isEnabled,\n isDisabled,\n isExcluded,\n isIncompatible,\n playlistEnd,\n isAes,\n hasAttribute,\n estimateSegmentRequestTime,\n isLowestEnabledRendition,\n isAudioOnly,\n playlistMatch,\n segmentDurationWithParts\n};\nconst log = videojs.log;\nconst createPlaylistID = (index, uri) => {\n return `${index}-${uri}`;\n}; // default function for creating a group id\n\nconst groupID = (type, group, label) => {\n return `placeholder-uri-${type}-${group}-${label}`;\n};\n/**\n * Parses a given m3u8 playlist\n *\n * @param {Function} [onwarn]\n * a function to call when the parser triggers a warning event.\n * @param {Function} [oninfo]\n * a function to call when the parser triggers an info event.\n * @param {string} manifestString\n * The downloaded manifest string\n * @param {Object[]} [customTagParsers]\n * An array of custom tag parsers for the m3u8-parser instance\n * @param {Object[]} [customTagMappers]\n * An array of custom tag mappers for the m3u8-parser instance\n * @param {boolean} [llhls]\n * Whether to keep ll-hls features in the manifest after parsing.\n * @return {Object}\n * The manifest object\n */\n\nconst parseManifest = _ref15 => {\n let onwarn = _ref15.onwarn,\n oninfo = _ref15.oninfo,\n manifestString = _ref15.manifestString,\n _ref15$customTagParse = _ref15.customTagParsers,\n customTagParsers = _ref15$customTagParse === void 0 ? [] : _ref15$customTagParse,\n _ref15$customTagMappe = _ref15.customTagMappers,\n customTagMappers = _ref15$customTagMappe === void 0 ? [] : _ref15$customTagMappe,\n llhls = _ref15.llhls;\n const parser = new Parser();\n if (onwarn) {\n parser.on('warn', onwarn);\n }\n if (oninfo) {\n parser.on('info', oninfo);\n }\n customTagParsers.forEach(customParser => parser.addParser(customParser));\n customTagMappers.forEach(mapper => parser.addTagMapper(mapper));\n parser.push(manifestString);\n parser.end();\n const manifest = parser.manifest; // remove llhls features from the parsed manifest\n // if we don't want llhls support.\n\n if (!llhls) {\n ['preloadSegment', 'skip', 'serverControl', 'renditionReports', 'partInf', 'partTargetDuration'].forEach(function (k) {\n if (manifest.hasOwnProperty(k)) {\n delete manifest[k];\n }\n });\n if (manifest.segments) {\n manifest.segments.forEach(function (segment) {\n ['parts', 'preloadHints'].forEach(function (k) {\n if (segment.hasOwnProperty(k)) {\n delete segment[k];\n }\n });\n });\n }\n }\n if (!manifest.targetDuration) {\n let targetDuration = 10;\n if (manifest.segments && manifest.segments.length) {\n targetDuration = manifest.segments.reduce((acc, s) => Math.max(acc, s.duration), 0);\n }\n if (onwarn) {\n onwarn({\n message: `manifest has no targetDuration defaulting to ${targetDuration}`\n });\n }\n manifest.targetDuration = targetDuration;\n }\n const parts = getLastParts(manifest);\n if (parts.length && !manifest.partTargetDuration) {\n const partTargetDuration = parts.reduce((acc, p) => Math.max(acc, p.duration), 0);\n if (onwarn) {\n onwarn({\n message: `manifest has no partTargetDuration defaulting to ${partTargetDuration}`\n });\n log.error('LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.');\n }\n manifest.partTargetDuration = partTargetDuration;\n }\n return manifest;\n};\n/**\n * Loops through all supported media groups in main and calls the provided\n * callback for each group\n *\n * @param {Object} main\n * The parsed main manifest object\n * @param {Function} callback\n * Callback to call for each media group\n */\n\nconst forEachMediaGroup = (main, callback) => {\n if (!main.mediaGroups) {\n return;\n }\n ['AUDIO', 'SUBTITLES'].forEach(mediaType => {\n if (!main.mediaGroups[mediaType]) {\n return;\n }\n for (const groupKey in main.mediaGroups[mediaType]) {\n for (const labelKey in main.mediaGroups[mediaType][groupKey]) {\n const mediaProperties = main.mediaGroups[mediaType][groupKey][labelKey];\n callback(mediaProperties, mediaType, groupKey, labelKey);\n }\n }\n });\n};\n/**\n * Adds properties and attributes to the playlist to keep consistent functionality for\n * playlists throughout VHS.\n *\n * @param {Object} config\n * Arguments object\n * @param {Object} config.playlist\n * The media playlist\n * @param {string} [config.uri]\n * The uri to the media playlist (if media playlist is not from within a main\n * playlist)\n * @param {string} id\n * ID to use for the playlist\n */\n\nconst setupMediaPlaylist = _ref16 => {\n let playlist = _ref16.playlist,\n uri = _ref16.uri,\n id = _ref16.id;\n playlist.id = id;\n playlist.playlistErrors_ = 0;\n if (uri) {\n // For media playlists, m3u8-parser does not have access to a URI, as HLS media\n // playlists do not contain their own source URI, but one is needed for consistency in\n // VHS.\n playlist.uri = uri;\n } // For HLS main playlists, even though certain attributes MUST be defined, the\n // stream may still be played without them.\n // For HLS media playlists, m3u8-parser does not attach an attributes object to the\n // manifest.\n //\n // To avoid undefined reference errors through the project, and make the code easier\n // to write/read, add an empty attributes object for these cases.\n\n playlist.attributes = playlist.attributes || {};\n};\n/**\n * Adds ID, resolvedUri, and attributes properties to each playlist of the main, where\n * necessary. In addition, creates playlist IDs for each playlist and adds playlist ID to\n * playlist references to the playlists array.\n *\n * @param {Object} main\n * The main playlist\n */\n\nconst setupMediaPlaylists = main => {\n let i = main.playlists.length;\n while (i--) {\n const playlist = main.playlists[i];\n setupMediaPlaylist({\n playlist,\n id: createPlaylistID(i, playlist.uri)\n });\n playlist.resolvedUri = resolveUrl(main.uri, playlist.uri);\n main.playlists[playlist.id] = playlist; // URI reference added for backwards compatibility\n\n main.playlists[playlist.uri] = playlist; // Although the spec states an #EXT-X-STREAM-INF tag MUST have a BANDWIDTH attribute,\n // the stream can be played without it. Although an attributes property may have been\n // added to the playlist to prevent undefined references, issue a warning to fix the\n // manifest.\n\n if (!playlist.attributes.BANDWIDTH) {\n log.warn('Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.');\n }\n }\n};\n/**\n * Adds resolvedUri properties to each media group.\n *\n * @param {Object} main\n * The main playlist\n */\n\nconst resolveMediaGroupUris = main => {\n forEachMediaGroup(main, properties => {\n if (properties.uri) {\n properties.resolvedUri = resolveUrl(main.uri, properties.uri);\n }\n });\n};\n/**\n * Creates a main playlist wrapper to insert a sole media playlist into.\n *\n * @param {Object} media\n * Media playlist\n * @param {string} uri\n * The media URI\n *\n * @return {Object}\n * main playlist\n */\n\nconst mainForMedia = (media, uri) => {\n const id = createPlaylistID(0, uri);\n const main = {\n mediaGroups: {\n 'AUDIO': {},\n 'VIDEO': {},\n 'CLOSED-CAPTIONS': {},\n 'SUBTITLES': {}\n },\n uri: window$1.location.href,\n resolvedUri: window$1.location.href,\n playlists: [{\n uri,\n id,\n resolvedUri: uri,\n // m3u8-parser does not attach an attributes property to media playlists so make\n // sure that the property is attached to avoid undefined reference errors\n attributes: {}\n }]\n }; // set up ID reference\n\n main.playlists[id] = main.playlists[0]; // URI reference added for backwards compatibility\n\n main.playlists[uri] = main.playlists[0];\n return main;\n};\n/**\n * Does an in-place update of the main manifest to add updated playlist URI references\n * as well as other properties needed by VHS that aren't included by the parser.\n *\n * @param {Object} main\n * main manifest object\n * @param {string} uri\n * The source URI\n * @param {function} createGroupID\n * A function to determine how to create the groupID for mediaGroups\n */\n\nconst addPropertiesToMain = function (main, uri) {\n let createGroupID = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : groupID;\n main.uri = uri;\n for (let i = 0; i < main.playlists.length; i++) {\n if (!main.playlists[i].uri) {\n // Set up phony URIs for the playlists since playlists are referenced by their URIs\n // throughout VHS, but some formats (e.g., DASH) don't have external URIs\n // TODO: consider adding dummy URIs in mpd-parser\n const phonyUri = `placeholder-uri-${i}`;\n main.playlists[i].uri = phonyUri;\n }\n }\n const audioOnlyMain = isAudioOnly(main);\n forEachMediaGroup(main, (properties, mediaType, groupKey, labelKey) => {\n // add a playlist array under properties\n if (!properties.playlists || !properties.playlists.length) {\n // If the manifest is audio only and this media group does not have a uri, check\n // if the media group is located in the main list of playlists. If it is, don't add\n // placeholder properties as it shouldn't be considered an alternate audio track.\n if (audioOnlyMain && mediaType === 'AUDIO' && !properties.uri) {\n for (let i = 0; i < main.playlists.length; i++) {\n const p = main.playlists[i];\n if (p.attributes && p.attributes.AUDIO && p.attributes.AUDIO === groupKey) {\n return;\n }\n }\n }\n properties.playlists = [_extends({}, properties)];\n }\n properties.playlists.forEach(function (p, i) {\n const groupId = createGroupID(mediaType, groupKey, labelKey, p);\n const id = createPlaylistID(i, groupId);\n if (p.uri) {\n p.resolvedUri = p.resolvedUri || resolveUrl(main.uri, p.uri);\n } else {\n // DEPRECATED, this has been added to prevent a breaking change.\n // previously we only ever had a single media group playlist, so\n // we mark the first playlist uri without prepending the index as we used to\n // ideally we would do all of the playlists the same way.\n p.uri = i === 0 ? groupId : id; // don't resolve a placeholder uri to an absolute url, just use\n // the placeholder again\n\n p.resolvedUri = p.uri;\n }\n p.id = p.id || id; // add an empty attributes object, all playlists are\n // expected to have this.\n\n p.attributes = p.attributes || {}; // setup ID and URI references (URI for backwards compatibility)\n\n main.playlists[p.id] = p;\n main.playlists[p.uri] = p;\n });\n });\n setupMediaPlaylists(main);\n resolveMediaGroupUris(main);\n};\nclass DateRangesStorage {\n constructor() {\n this.offset_ = null;\n this.pendingDateRanges_ = new Map();\n this.processedDateRanges_ = new Map();\n }\n setOffset() {\n let segments = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n // already set\n if (this.offset_ !== null) {\n return;\n } // no segment to process\n\n if (!segments.length) {\n return;\n }\n const _segments = _slicedToArray(segments, 1),\n firstSegment = _segments[0]; // no program date time\n\n if (firstSegment.programDateTime === undefined) {\n return;\n } // Set offset as ProgramDateTime for the very first segment of the very first playlist load:\n\n this.offset_ = firstSegment.programDateTime / 1000;\n }\n setPendingDateRanges() {\n let dateRanges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!dateRanges.length) {\n return;\n }\n const _dateRanges = _slicedToArray(dateRanges, 1),\n dateRange = _dateRanges[0];\n const startTime = dateRange.startDate.getTime();\n this.trimProcessedDateRanges_(startTime);\n this.pendingDateRanges_ = dateRanges.reduce((map, pendingDateRange) => {\n map.set(pendingDateRange.id, pendingDateRange);\n return map;\n }, new Map());\n }\n processDateRange(dateRange) {\n this.pendingDateRanges_.delete(dateRange.id);\n this.processedDateRanges_.set(dateRange.id, dateRange);\n }\n getDateRangesToProcess() {\n if (this.offset_ === null) {\n return [];\n }\n const dateRangeClasses = {};\n const dateRangesToProcess = [];\n this.pendingDateRanges_.forEach((dateRange, id) => {\n if (this.processedDateRanges_.has(id)) {\n return;\n }\n dateRange.startTime = dateRange.startDate.getTime() / 1000 - this.offset_;\n dateRange.processDateRange = () => this.processDateRange(dateRange);\n dateRangesToProcess.push(dateRange);\n if (!dateRange.class) {\n return;\n }\n if (dateRangeClasses[dateRange.class]) {\n const length = dateRangeClasses[dateRange.class].push(dateRange);\n dateRange.classListIndex = length - 1;\n } else {\n dateRangeClasses[dateRange.class] = [dateRange];\n dateRange.classListIndex = 0;\n }\n });\n for (const dateRange of dateRangesToProcess) {\n const classList = dateRangeClasses[dateRange.class] || [];\n if (dateRange.endDate) {\n dateRange.endTime = dateRange.endDate.getTime() / 1000 - this.offset_;\n } else if (dateRange.endOnNext && classList[dateRange.classListIndex + 1]) {\n dateRange.endTime = classList[dateRange.classListIndex + 1].startTime;\n } else if (dateRange.duration) {\n dateRange.endTime = dateRange.startTime + dateRange.duration;\n } else if (dateRange.plannedDuration) {\n dateRange.endTime = dateRange.startTime + dateRange.plannedDuration;\n } else {\n dateRange.endTime = dateRange.startTime;\n }\n }\n return dateRangesToProcess;\n }\n trimProcessedDateRanges_(startTime) {\n const copy = new Map(this.processedDateRanges_);\n copy.forEach((dateRange, id) => {\n if (dateRange.startDate.getTime() < startTime) {\n this.processedDateRanges_.delete(id);\n }\n });\n }\n}\nconst EventTarget$1 = videojs.EventTarget;\nconst addLLHLSQueryDirectives = (uri, media) => {\n if (media.endList || !media.serverControl) {\n return uri;\n }\n const parameters = {};\n if (media.serverControl.canBlockReload) {\n const preloadSegment = media.preloadSegment; // next msn is a zero based value, length is not.\n\n let nextMSN = media.mediaSequence + media.segments.length; // If preload segment has parts then it is likely\n // that we are going to request a part of that preload segment.\n // the logic below is used to determine that.\n\n if (preloadSegment) {\n const parts = preloadSegment.parts || []; // _HLS_part is a zero based index\n\n const nextPart = getKnownPartCount(media) - 1; // if nextPart is > -1 and not equal to just the\n // length of parts, then we know we had part preload hints\n // and we need to add the _HLS_part= query\n\n if (nextPart > -1 && nextPart !== parts.length - 1) {\n // add existing parts to our preload hints\n // eslint-disable-next-line\n parameters._HLS_part = nextPart;\n } // this if statement makes sure that we request the msn\n // of the preload segment if:\n // 1. the preload segment had parts (and was not yet a full segment)\n // but was added to our segments array\n // 2. the preload segment had preload hints for parts that are not in\n // the manifest yet.\n // in all other cases we want the segment after the preload segment\n // which will be given by using media.segments.length because it is 1 based\n // rather than 0 based.\n\n if (nextPart > -1 || parts.length) {\n nextMSN--;\n }\n } // add _HLS_msn= in front of any _HLS_part query\n // eslint-disable-next-line\n\n parameters._HLS_msn = nextMSN;\n }\n if (media.serverControl && media.serverControl.canSkipUntil) {\n // add _HLS_skip= infront of all other queries.\n // eslint-disable-next-line\n parameters._HLS_skip = media.serverControl.canSkipDateranges ? 'v2' : 'YES';\n }\n if (Object.keys(parameters).length) {\n const parsedUri = new window$1.URL(uri);\n ['_HLS_skip', '_HLS_msn', '_HLS_part'].forEach(function (name) {\n if (!parameters.hasOwnProperty(name)) {\n return;\n }\n parsedUri.searchParams.set(name, parameters[name]);\n });\n uri = parsedUri.toString();\n }\n return uri;\n};\n/**\n * Returns a new segment object with properties and\n * the parts array merged.\n *\n * @param {Object} a the old segment\n * @param {Object} b the new segment\n *\n * @return {Object} the merged segment\n */\n\nconst updateSegment = (a, b) => {\n if (!a) {\n return b;\n }\n const result = merge(a, b); // if only the old segment has preload hints\n // and the new one does not, remove preload hints.\n\n if (a.preloadHints && !b.preloadHints) {\n delete result.preloadHints;\n } // if only the old segment has parts\n // then the parts are no longer valid\n\n if (a.parts && !b.parts) {\n delete result.parts; // if both segments have parts\n // copy part propeties from the old segment\n // to the new one.\n } else if (a.parts && b.parts) {\n for (let i = 0; i < b.parts.length; i++) {\n if (a.parts && a.parts[i]) {\n result.parts[i] = merge(a.parts[i], b.parts[i]);\n }\n }\n } // set skipped to false for segments that have\n // have had information merged from the old segment.\n\n if (!a.skipped && b.skipped) {\n result.skipped = false;\n } // set preload to false for segments that have\n // had information added in the new segment.\n\n if (a.preload && !b.preload) {\n result.preload = false;\n }\n return result;\n};\n/**\n * Returns a new array of segments that is the result of merging\n * properties from an older list of segments onto an updated\n * list. No properties on the updated playlist will be ovewritten.\n *\n * @param {Array} original the outdated list of segments\n * @param {Array} update the updated list of segments\n * @param {number=} offset the index of the first update\n * segment in the original segment list. For non-live playlists,\n * this should always be zero and does not need to be\n * specified. For live playlists, it should be the difference\n * between the media sequence numbers in the original and updated\n * playlists.\n * @return {Array} a list of merged segment objects\n */\n\nconst updateSegments = (original, update, offset) => {\n const oldSegments = original.slice();\n const newSegments = update.slice();\n offset = offset || 0;\n const result = [];\n let currentMap;\n for (let newIndex = 0; newIndex < newSegments.length; newIndex++) {\n const oldSegment = oldSegments[newIndex + offset];\n const newSegment = newSegments[newIndex];\n if (oldSegment) {\n currentMap = oldSegment.map || currentMap;\n result.push(updateSegment(oldSegment, newSegment));\n } else {\n // carry over map to new segment if it is missing\n if (currentMap && !newSegment.map) {\n newSegment.map = currentMap;\n }\n result.push(newSegment);\n }\n }\n return result;\n};\nconst resolveSegmentUris = (segment, baseUri) => {\n // preloadSegment will not have a uri at all\n // as the segment isn't actually in the manifest yet, only parts\n if (!segment.resolvedUri && segment.uri) {\n segment.resolvedUri = resolveUrl(baseUri, segment.uri);\n }\n if (segment.key && !segment.key.resolvedUri) {\n segment.key.resolvedUri = resolveUrl(baseUri, segment.key.uri);\n }\n if (segment.map && !segment.map.resolvedUri) {\n segment.map.resolvedUri = resolveUrl(baseUri, segment.map.uri);\n }\n if (segment.map && segment.map.key && !segment.map.key.resolvedUri) {\n segment.map.key.resolvedUri = resolveUrl(baseUri, segment.map.key.uri);\n }\n if (segment.parts && segment.parts.length) {\n segment.parts.forEach(p => {\n if (p.resolvedUri) {\n return;\n }\n p.resolvedUri = resolveUrl(baseUri, p.uri);\n });\n }\n if (segment.preloadHints && segment.preloadHints.length) {\n segment.preloadHints.forEach(p => {\n if (p.resolvedUri) {\n return;\n }\n p.resolvedUri = resolveUrl(baseUri, p.uri);\n });\n }\n};\nconst getAllSegments = function (media) {\n const segments = media.segments || [];\n const preloadSegment = media.preloadSegment; // a preloadSegment with only preloadHints is not currently\n // a usable segment, only include a preloadSegment that has\n // parts.\n\n if (preloadSegment && preloadSegment.parts && preloadSegment.parts.length) {\n // if preloadHints has a MAP that means that the\n // init segment is going to change. We cannot use any of the parts\n // from this preload segment.\n if (preloadSegment.preloadHints) {\n for (let i = 0; i < preloadSegment.preloadHints.length; i++) {\n if (preloadSegment.preloadHints[i].type === 'MAP') {\n return segments;\n }\n }\n } // set the duration for our preload segment to target duration.\n\n preloadSegment.duration = media.targetDuration;\n preloadSegment.preload = true;\n segments.push(preloadSegment);\n }\n return segments;\n}; // consider the playlist unchanged if the playlist object is the same or\n// the number of segments is equal, the media sequence number is unchanged,\n// and this playlist hasn't become the end of the playlist\n\nconst isPlaylistUnchanged = (a, b) => a === b || a.segments && b.segments && a.segments.length === b.segments.length && a.endList === b.endList && a.mediaSequence === b.mediaSequence && a.preloadSegment === b.preloadSegment;\n/**\n * Returns a new main playlist that is the result of merging an\n * updated media playlist into the original version. If the\n * updated media playlist does not match any of the playlist\n * entries in the original main playlist, null is returned.\n *\n * @param {Object} main a parsed main M3U8 object\n * @param {Object} media a parsed media M3U8 object\n * @return {Object} a new object that represents the original\n * main playlist with the updated media playlist merged in, or\n * null if the merge produced no change.\n */\n\nconst updateMain$1 = function (main, newMedia) {\n let unchangedCheck = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : isPlaylistUnchanged;\n const result = merge(main, {});\n const oldMedia = result.playlists[newMedia.id];\n if (!oldMedia) {\n return null;\n }\n if (unchangedCheck(oldMedia, newMedia)) {\n return null;\n }\n newMedia.segments = getAllSegments(newMedia);\n const mergedPlaylist = merge(oldMedia, newMedia); // always use the new media's preload segment\n\n if (mergedPlaylist.preloadSegment && !newMedia.preloadSegment) {\n delete mergedPlaylist.preloadSegment;\n } // if the update could overlap existing segment information, merge the two segment lists\n\n if (oldMedia.segments) {\n if (newMedia.skip) {\n newMedia.segments = newMedia.segments || []; // add back in objects for skipped segments, so that we merge\n // old properties into the new segments\n\n for (let i = 0; i < newMedia.skip.skippedSegments; i++) {\n newMedia.segments.unshift({\n skipped: true\n });\n }\n }\n mergedPlaylist.segments = updateSegments(oldMedia.segments, newMedia.segments, newMedia.mediaSequence - oldMedia.mediaSequence);\n } // resolve any segment URIs to prevent us from having to do it later\n\n mergedPlaylist.segments.forEach(segment => {\n resolveSegmentUris(segment, mergedPlaylist.resolvedUri);\n }); // TODO Right now in the playlists array there are two references to each playlist, one\n // that is referenced by index, and one by URI. The index reference may no longer be\n // necessary.\n\n for (let i = 0; i < result.playlists.length; i++) {\n if (result.playlists[i].id === newMedia.id) {\n result.playlists[i] = mergedPlaylist;\n }\n }\n result.playlists[newMedia.id] = mergedPlaylist; // URI reference added for backwards compatibility\n\n result.playlists[newMedia.uri] = mergedPlaylist; // update media group playlist references.\n\n forEachMediaGroup(main, (properties, mediaType, groupKey, labelKey) => {\n if (!properties.playlists) {\n return;\n }\n for (let i = 0; i < properties.playlists.length; i++) {\n if (newMedia.id === properties.playlists[i].id) {\n properties.playlists[i] = mergedPlaylist;\n }\n }\n });\n return result;\n};\n/**\n * Calculates the time to wait before refreshing a live playlist\n *\n * @param {Object} media\n * The current media\n * @param {boolean} update\n * True if there were any updates from the last refresh, false otherwise\n * @return {number}\n * The time in ms to wait before refreshing the live playlist\n */\n\nconst refreshDelay = (media, update) => {\n const segments = media.segments || [];\n const lastSegment = segments[segments.length - 1];\n const lastPart = lastSegment && lastSegment.parts && lastSegment.parts[lastSegment.parts.length - 1];\n const lastDuration = lastPart && lastPart.duration || lastSegment && lastSegment.duration;\n if (update && lastDuration) {\n return lastDuration * 1000;\n } // if the playlist is unchanged since the last reload or last segment duration\n // cannot be determined, try again after half the target duration\n\n return (media.partTargetDuration || media.targetDuration || 10) * 500;\n};\n/**\n * Load a playlist from a remote location\n *\n * @class PlaylistLoader\n * @extends Stream\n * @param {string|Object} src url or object of manifest\n * @param {boolean} withCredentials the withCredentials xhr option\n * @class\n */\n\nclass PlaylistLoader extends EventTarget$1 {\n constructor(src, vhs) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n super();\n if (!src) {\n throw new Error('A non-empty playlist URL or object is required');\n }\n this.logger_ = logger('PlaylistLoader');\n const _options$withCredenti = options.withCredentials,\n withCredentials = _options$withCredenti === void 0 ? false : _options$withCredenti;\n this.src = src;\n this.vhs_ = vhs;\n this.withCredentials = withCredentials;\n this.addDateRangesToTextTrack_ = options.addDateRangesToTextTrack;\n const vhsOptions = vhs.options_;\n this.customTagParsers = vhsOptions && vhsOptions.customTagParsers || [];\n this.customTagMappers = vhsOptions && vhsOptions.customTagMappers || [];\n this.llhls = vhsOptions && vhsOptions.llhls;\n this.dateRangesStorage_ = new DateRangesStorage(); // initialize the loader state\n\n this.state = 'HAVE_NOTHING'; // live playlist staleness timeout\n\n this.handleMediaupdatetimeout_ = this.handleMediaupdatetimeout_.bind(this);\n this.on('mediaupdatetimeout', this.handleMediaupdatetimeout_);\n this.on('loadedplaylist', this.handleLoadedPlaylist_.bind(this));\n }\n handleLoadedPlaylist_() {\n const mediaPlaylist = this.media();\n if (!mediaPlaylist) {\n return;\n }\n this.dateRangesStorage_.setOffset(mediaPlaylist.segments);\n this.dateRangesStorage_.setPendingDateRanges(mediaPlaylist.dateRanges);\n const availableDateRanges = this.dateRangesStorage_.getDateRangesToProcess();\n if (!availableDateRanges.length || !this.addDateRangesToTextTrack_) {\n return;\n }\n this.addDateRangesToTextTrack_(availableDateRanges);\n }\n handleMediaupdatetimeout_() {\n if (this.state !== 'HAVE_METADATA') {\n // only refresh the media playlist if no other activity is going on\n return;\n }\n const media = this.media();\n let uri = resolveUrl(this.main.uri, media.uri);\n if (this.llhls) {\n uri = addLLHLSQueryDirectives(uri, media);\n }\n this.state = 'HAVE_CURRENT_METADATA';\n this.request = this.vhs_.xhr({\n uri,\n withCredentials: this.withCredentials\n }, (error, req) => {\n // disposed\n if (!this.request) {\n return;\n }\n if (error) {\n return this.playlistRequestError(this.request, this.media(), 'HAVE_METADATA');\n }\n this.haveMetadata({\n playlistString: this.request.responseText,\n url: this.media().uri,\n id: this.media().id\n });\n });\n }\n playlistRequestError(xhr, playlist, startingState) {\n const uri = playlist.uri,\n id = playlist.id; // any in-flight request is now finished\n\n this.request = null;\n if (startingState) {\n this.state = startingState;\n }\n this.error = {\n playlist: this.main.playlists[id],\n status: xhr.status,\n message: `HLS playlist request error at URL: ${uri}.`,\n responseText: xhr.responseText,\n code: xhr.status >= 500 ? 4 : 2\n };\n this.trigger('error');\n }\n parseManifest_(_ref17) {\n let url = _ref17.url,\n manifestString = _ref17.manifestString;\n return parseManifest({\n onwarn: _ref18 => {\n let message = _ref18.message;\n return this.logger_(`m3u8-parser warn for ${url}: ${message}`);\n },\n oninfo: _ref19 => {\n let message = _ref19.message;\n return this.logger_(`m3u8-parser info for ${url}: ${message}`);\n },\n manifestString,\n customTagParsers: this.customTagParsers,\n customTagMappers: this.customTagMappers,\n llhls: this.llhls\n });\n }\n /**\n * Update the playlist loader's state in response to a new or updated playlist.\n *\n * @param {string} [playlistString]\n * Playlist string (if playlistObject is not provided)\n * @param {Object} [playlistObject]\n * Playlist object (if playlistString is not provided)\n * @param {string} url\n * URL of playlist\n * @param {string} id\n * ID to use for playlist\n */\n\n haveMetadata(_ref20) {\n let playlistString = _ref20.playlistString,\n playlistObject = _ref20.playlistObject,\n url = _ref20.url,\n id = _ref20.id;\n // any in-flight request is now finished\n this.request = null;\n this.state = 'HAVE_METADATA';\n const playlist = playlistObject || this.parseManifest_({\n url,\n manifestString: playlistString\n });\n playlist.lastRequest = Date.now();\n setupMediaPlaylist({\n playlist,\n uri: url,\n id\n }); // merge this playlist into the main manifest\n\n const update = updateMain$1(this.main, playlist);\n this.targetDuration = playlist.partTargetDuration || playlist.targetDuration;\n this.pendingMedia_ = null;\n if (update) {\n this.main = update;\n this.media_ = this.main.playlists[id];\n } else {\n this.trigger('playlistunchanged');\n }\n this.updateMediaUpdateTimeout_(refreshDelay(this.media(), !!update));\n this.trigger('loadedplaylist');\n }\n /**\n * Abort any outstanding work and clean up.\n */\n\n dispose() {\n this.trigger('dispose');\n this.stopRequest();\n window$1.clearTimeout(this.mediaUpdateTimeout);\n window$1.clearTimeout(this.finalRenditionTimeout);\n this.dateRangesStorage_ = new DateRangesStorage();\n this.off();\n }\n stopRequest() {\n if (this.request) {\n const oldRequest = this.request;\n this.request = null;\n oldRequest.onreadystatechange = null;\n oldRequest.abort();\n }\n }\n /**\n * When called without any arguments, returns the currently\n * active media playlist. When called with a single argument,\n * triggers the playlist loader to asynchronously switch to the\n * specified media playlist. Calling this method while the\n * loader is in the HAVE_NOTHING causes an error to be emitted\n * but otherwise has no effect.\n *\n * @param {Object=} playlist the parsed media playlist\n * object to switch to\n * @param {boolean=} shouldDelay whether we should delay the request by half target duration\n *\n * @return {Playlist} the current loaded media\n */\n\n media(playlist, shouldDelay) {\n // getter\n if (!playlist) {\n return this.media_;\n } // setter\n\n if (this.state === 'HAVE_NOTHING') {\n throw new Error('Cannot switch media playlist from ' + this.state);\n } // find the playlist object if the target playlist has been\n // specified by URI\n\n if (typeof playlist === 'string') {\n if (!this.main.playlists[playlist]) {\n throw new Error('Unknown playlist URI: ' + playlist);\n }\n playlist = this.main.playlists[playlist];\n }\n window$1.clearTimeout(this.finalRenditionTimeout);\n if (shouldDelay) {\n const delay = (playlist.partTargetDuration || playlist.targetDuration) / 2 * 1000 || 5 * 1000;\n this.finalRenditionTimeout = window$1.setTimeout(this.media.bind(this, playlist, false), delay);\n return;\n }\n const startingState = this.state;\n const mediaChange = !this.media_ || playlist.id !== this.media_.id;\n const mainPlaylistRef = this.main.playlists[playlist.id]; // switch to fully loaded playlists immediately\n\n if (mainPlaylistRef && mainPlaylistRef.endList ||\n // handle the case of a playlist object (e.g., if using vhs-json with a resolved\n // media playlist or, for the case of demuxed audio, a resolved audio media group)\n playlist.endList && playlist.segments.length) {\n // abort outstanding playlist requests\n if (this.request) {\n this.request.onreadystatechange = null;\n this.request.abort();\n this.request = null;\n }\n this.state = 'HAVE_METADATA';\n this.media_ = playlist; // trigger media change if the active media has been updated\n\n if (mediaChange) {\n this.trigger('mediachanging');\n if (startingState === 'HAVE_MAIN_MANIFEST') {\n // The initial playlist was a main manifest, and the first media selected was\n // also provided (in the form of a resolved playlist object) as part of the\n // source object (rather than just a URL). Therefore, since the media playlist\n // doesn't need to be requested, loadedmetadata won't trigger as part of the\n // normal flow, and needs an explicit trigger here.\n this.trigger('loadedmetadata');\n } else {\n this.trigger('mediachange');\n }\n }\n return;\n } // We update/set the timeout here so that live playlists\n // that are not a media change will \"start\" the loader as expected.\n // We expect that this function will start the media update timeout\n // cycle again. This also prevents a playlist switch failure from\n // causing us to stall during live.\n\n this.updateMediaUpdateTimeout_(refreshDelay(playlist, true)); // switching to the active playlist is a no-op\n\n if (!mediaChange) {\n return;\n }\n this.state = 'SWITCHING_MEDIA'; // there is already an outstanding playlist request\n\n if (this.request) {\n if (playlist.resolvedUri === this.request.url) {\n // requesting to switch to the same playlist multiple times\n // has no effect after the first\n return;\n }\n this.request.onreadystatechange = null;\n this.request.abort();\n this.request = null;\n } // request the new playlist\n\n if (this.media_) {\n this.trigger('mediachanging');\n }\n this.pendingMedia_ = playlist;\n this.request = this.vhs_.xhr({\n uri: playlist.resolvedUri,\n withCredentials: this.withCredentials\n }, (error, req) => {\n // disposed\n if (!this.request) {\n return;\n }\n playlist.lastRequest = Date.now();\n playlist.resolvedUri = resolveManifestRedirect(playlist.resolvedUri, req);\n if (error) {\n return this.playlistRequestError(this.request, playlist, startingState);\n }\n this.haveMetadata({\n playlistString: req.responseText,\n url: playlist.uri,\n id: playlist.id\n }); // fire loadedmetadata the first time a media playlist is loaded\n\n if (startingState === 'HAVE_MAIN_MANIFEST') {\n this.trigger('loadedmetadata');\n } else {\n this.trigger('mediachange');\n }\n });\n }\n /**\n * pause loading of the playlist\n */\n\n pause() {\n if (this.mediaUpdateTimeout) {\n window$1.clearTimeout(this.mediaUpdateTimeout);\n this.mediaUpdateTimeout = null;\n }\n this.stopRequest();\n if (this.state === 'HAVE_NOTHING') {\n // If we pause the loader before any data has been retrieved, its as if we never\n // started, so reset to an unstarted state.\n this.started = false;\n } // Need to restore state now that no activity is happening\n\n if (this.state === 'SWITCHING_MEDIA') {\n // if the loader was in the process of switching media, it should either return to\n // HAVE_MAIN_MANIFEST or HAVE_METADATA depending on if the loader has loaded a media\n // playlist yet. This is determined by the existence of loader.media_\n if (this.media_) {\n this.state = 'HAVE_METADATA';\n } else {\n this.state = 'HAVE_MAIN_MANIFEST';\n }\n } else if (this.state === 'HAVE_CURRENT_METADATA') {\n this.state = 'HAVE_METADATA';\n }\n }\n /**\n * start loading of the playlist\n */\n\n load(shouldDelay) {\n if (this.mediaUpdateTimeout) {\n window$1.clearTimeout(this.mediaUpdateTimeout);\n this.mediaUpdateTimeout = null;\n }\n const media = this.media();\n if (shouldDelay) {\n const delay = media ? (media.partTargetDuration || media.targetDuration) / 2 * 1000 : 5 * 1000;\n this.mediaUpdateTimeout = window$1.setTimeout(() => {\n this.mediaUpdateTimeout = null;\n this.load();\n }, delay);\n return;\n }\n if (!this.started) {\n this.start();\n return;\n }\n if (media && !media.endList) {\n this.trigger('mediaupdatetimeout');\n } else {\n this.trigger('loadedplaylist');\n }\n }\n updateMediaUpdateTimeout_(delay) {\n if (this.mediaUpdateTimeout) {\n window$1.clearTimeout(this.mediaUpdateTimeout);\n this.mediaUpdateTimeout = null;\n } // we only have use mediaupdatetimeout for live playlists.\n\n if (!this.media() || this.media().endList) {\n return;\n }\n this.mediaUpdateTimeout = window$1.setTimeout(() => {\n this.mediaUpdateTimeout = null;\n this.trigger('mediaupdatetimeout');\n this.updateMediaUpdateTimeout_(delay);\n }, delay);\n }\n /**\n * start loading of the playlist\n */\n\n start() {\n this.started = true;\n if (typeof this.src === 'object') {\n // in the case of an entirely constructed manifest object (meaning there's no actual\n // manifest on a server), default the uri to the page's href\n if (!this.src.uri) {\n this.src.uri = window$1.location.href;\n } // resolvedUri is added on internally after the initial request. Since there's no\n // request for pre-resolved manifests, add on resolvedUri here.\n\n this.src.resolvedUri = this.src.uri; // Since a manifest object was passed in as the source (instead of a URL), the first\n // request can be skipped (since the top level of the manifest, at a minimum, is\n // already available as a parsed manifest object). However, if the manifest object\n // represents a main playlist, some media playlists may need to be resolved before\n // the starting segment list is available. Therefore, go directly to setup of the\n // initial playlist, and let the normal flow continue from there.\n //\n // Note that the call to setup is asynchronous, as other sections of VHS may assume\n // that the first request is asynchronous.\n\n setTimeout(() => {\n this.setupInitialPlaylist(this.src);\n }, 0);\n return;\n } // request the specified URL\n\n this.request = this.vhs_.xhr({\n uri: this.src,\n withCredentials: this.withCredentials\n }, (error, req) => {\n // disposed\n if (!this.request) {\n return;\n } // clear the loader's request reference\n\n this.request = null;\n if (error) {\n this.error = {\n status: req.status,\n message: `HLS playlist request error at URL: ${this.src}.`,\n responseText: req.responseText,\n // MEDIA_ERR_NETWORK\n code: 2\n };\n if (this.state === 'HAVE_NOTHING') {\n this.started = false;\n }\n return this.trigger('error');\n }\n this.src = resolveManifestRedirect(this.src, req);\n const manifest = this.parseManifest_({\n manifestString: req.responseText,\n url: this.src\n });\n this.setupInitialPlaylist(manifest);\n });\n }\n srcUri() {\n return typeof this.src === 'string' ? this.src : this.src.uri;\n }\n /**\n * Given a manifest object that's either a main or media playlist, trigger the proper\n * events and set the state of the playlist loader.\n *\n * If the manifest object represents a main playlist, `loadedplaylist` will be\n * triggered to allow listeners to select a playlist. If none is selected, the loader\n * will default to the first one in the playlists array.\n *\n * If the manifest object represents a media playlist, `loadedplaylist` will be\n * triggered followed by `loadedmetadata`, as the only available playlist is loaded.\n *\n * In the case of a media playlist, a main playlist object wrapper with one playlist\n * will be created so that all logic can handle playlists in the same fashion (as an\n * assumed manifest object schema).\n *\n * @param {Object} manifest\n * The parsed manifest object\n */\n\n setupInitialPlaylist(manifest) {\n this.state = 'HAVE_MAIN_MANIFEST';\n if (manifest.playlists) {\n this.main = manifest;\n addPropertiesToMain(this.main, this.srcUri()); // If the initial main playlist has playlists wtih segments already resolved,\n // then resolve URIs in advance, as they are usually done after a playlist request,\n // which may not happen if the playlist is resolved.\n\n manifest.playlists.forEach(playlist => {\n playlist.segments = getAllSegments(playlist);\n playlist.segments.forEach(segment => {\n resolveSegmentUris(segment, playlist.resolvedUri);\n });\n });\n this.trigger('loadedplaylist');\n if (!this.request) {\n // no media playlist was specifically selected so start\n // from the first listed one\n this.media(this.main.playlists[0]);\n }\n return;\n } // In order to support media playlists passed in as vhs-json, the case where the uri\n // is not provided as part of the manifest should be considered, and an appropriate\n // default used.\n\n const uri = this.srcUri() || window$1.location.href;\n this.main = mainForMedia(manifest, uri);\n this.haveMetadata({\n playlistObject: manifest,\n url: uri,\n id: this.main.playlists[0].id\n });\n this.trigger('loadedmetadata');\n }\n /**\n * Updates or deletes a preexisting pathway clone.\n * Ensures that all playlists related to the old pathway clone are\n * either updated or deleted.\n *\n * @param {Object} clone On update, the pathway clone object for the newly updated pathway clone.\n * On delete, the old pathway clone object to be deleted.\n * @param {boolean} isUpdate True if the pathway is to be updated,\n * false if it is meant to be deleted.\n */\n\n updateOrDeleteClone(clone, isUpdate) {\n const main = this.main;\n const pathway = clone.ID;\n let i = main.playlists.length; // Iterate backwards through the playlist so we can remove playlists if necessary.\n\n while (i--) {\n const p = main.playlists[i];\n if (p.attributes['PATHWAY-ID'] === pathway) {\n const oldPlaylistUri = p.resolvedUri;\n const oldPlaylistId = p.id; // update the indexed playlist and add new playlists by ID and URI\n\n if (isUpdate) {\n const newPlaylistUri = this.createCloneURI_(p.resolvedUri, clone);\n const newPlaylistId = createPlaylistID(pathway, newPlaylistUri);\n const attributes = this.createCloneAttributes_(pathway, p.attributes);\n const updatedPlaylist = this.createClonePlaylist_(p, newPlaylistId, clone, attributes);\n main.playlists[i] = updatedPlaylist;\n main.playlists[newPlaylistId] = updatedPlaylist;\n main.playlists[newPlaylistUri] = updatedPlaylist;\n } else {\n // Remove the indexed playlist.\n main.playlists.splice(i, 1);\n } // Remove playlists by the old ID and URI.\n\n delete main.playlists[oldPlaylistId];\n delete main.playlists[oldPlaylistUri];\n }\n }\n this.updateOrDeleteCloneMedia(clone, isUpdate);\n }\n /**\n * Updates or deletes media data based on the pathway clone object.\n * Due to the complexity of the media groups and playlists, in all cases\n * we remove all of the old media groups and playlists.\n * On updates, we then create new media groups and playlists based on the\n * new pathway clone object.\n *\n * @param {Object} clone The pathway clone object for the newly updated pathway clone.\n * @param {boolean} isUpdate True if the pathway is to be updated,\n * false if it is meant to be deleted.\n */\n\n updateOrDeleteCloneMedia(clone, isUpdate) {\n const main = this.main;\n const id = clone.ID;\n ['AUDIO', 'SUBTITLES', 'CLOSED-CAPTIONS'].forEach(mediaType => {\n if (!main.mediaGroups[mediaType] || !main.mediaGroups[mediaType][id]) {\n return;\n }\n for (const groupKey in main.mediaGroups[mediaType]) {\n // Remove all media playlists for the media group for this pathway clone.\n if (groupKey === id) {\n for (const labelKey in main.mediaGroups[mediaType][groupKey]) {\n const oldMedia = main.mediaGroups[mediaType][groupKey][labelKey];\n oldMedia.playlists.forEach((p, i) => {\n const oldMediaPlaylist = main.playlists[p.id];\n const oldPlaylistId = oldMediaPlaylist.id;\n const oldPlaylistUri = oldMediaPlaylist.resolvedUri;\n delete main.playlists[oldPlaylistId];\n delete main.playlists[oldPlaylistUri];\n });\n } // Delete the old media group.\n\n delete main.mediaGroups[mediaType][groupKey];\n }\n }\n }); // Create the new media groups and playlists if there is an update.\n\n if (isUpdate) {\n this.createClonedMediaGroups_(clone);\n }\n }\n /**\n * Given a pathway clone object, clones all necessary playlists.\n *\n * @param {Object} clone The pathway clone object.\n * @param {Object} basePlaylist The original playlist to clone from.\n */\n\n addClonePathway(clone) {\n let basePlaylist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const main = this.main;\n const index = main.playlists.length;\n const uri = this.createCloneURI_(basePlaylist.resolvedUri, clone);\n const playlistId = createPlaylistID(clone.ID, uri);\n const attributes = this.createCloneAttributes_(clone.ID, basePlaylist.attributes);\n const playlist = this.createClonePlaylist_(basePlaylist, playlistId, clone, attributes);\n main.playlists[index] = playlist; // add playlist by ID and URI\n\n main.playlists[playlistId] = playlist;\n main.playlists[uri] = playlist;\n this.createClonedMediaGroups_(clone);\n }\n /**\n * Given a pathway clone object we create clones of all media.\n * In this function, all necessary information and updated playlists\n * are added to the `mediaGroup` object.\n * Playlists are also added to the `playlists` array so the media groups\n * will be properly linked.\n *\n * @param {Object} clone The pathway clone object.\n */\n\n createClonedMediaGroups_(clone) {\n const id = clone.ID;\n const baseID = clone['BASE-ID'];\n const main = this.main;\n ['AUDIO', 'SUBTITLES', 'CLOSED-CAPTIONS'].forEach(mediaType => {\n // If the media type doesn't exist, or there is already a clone, skip\n // to the next media type.\n if (!main.mediaGroups[mediaType] || main.mediaGroups[mediaType][id]) {\n return;\n }\n for (const groupKey in main.mediaGroups[mediaType]) {\n if (groupKey === baseID) {\n // Create the group.\n main.mediaGroups[mediaType][id] = {};\n } else {\n // There is no need to iterate over label keys in this case.\n continue;\n }\n for (const labelKey in main.mediaGroups[mediaType][groupKey]) {\n const oldMedia = main.mediaGroups[mediaType][groupKey][labelKey];\n main.mediaGroups[mediaType][id][labelKey] = _extends({}, oldMedia);\n const newMedia = main.mediaGroups[mediaType][id][labelKey]; // update URIs on the media\n\n const newUri = this.createCloneURI_(oldMedia.resolvedUri, clone);\n newMedia.resolvedUri = newUri;\n newMedia.uri = newUri; // Reset playlists in the new media group.\n\n newMedia.playlists = []; // Create new playlists in the newly cloned media group.\n\n oldMedia.playlists.forEach((p, i) => {\n const oldMediaPlaylist = main.playlists[p.id];\n const group = groupID(mediaType, id, labelKey);\n const newPlaylistID = createPlaylistID(id, group); // Check to see if it already exists\n\n if (oldMediaPlaylist && !main.playlists[newPlaylistID]) {\n const newMediaPlaylist = this.createClonePlaylist_(oldMediaPlaylist, newPlaylistID, clone);\n const newPlaylistUri = newMediaPlaylist.resolvedUri;\n main.playlists[newPlaylistID] = newMediaPlaylist;\n main.playlists[newPlaylistUri] = newMediaPlaylist;\n }\n newMedia.playlists[i] = this.createClonePlaylist_(p, newPlaylistID, clone);\n });\n }\n }\n });\n }\n /**\n * Using the original playlist to be cloned, and the pathway clone object\n * information, we create a new playlist.\n *\n * @param {Object} basePlaylist The original playlist to be cloned from.\n * @param {string} id The desired id of the newly cloned playlist.\n * @param {Object} clone The pathway clone object.\n * @param {Object} attributes An optional object to populate the `attributes` property in the playlist.\n *\n * @return {Object} The combined cloned playlist.\n */\n\n createClonePlaylist_(basePlaylist, id, clone, attributes) {\n const uri = this.createCloneURI_(basePlaylist.resolvedUri, clone);\n const newProps = {\n resolvedUri: uri,\n uri,\n id\n }; // Remove all segments from previous playlist in the clone.\n\n if (basePlaylist.segments) {\n newProps.segments = [];\n }\n if (attributes) {\n newProps.attributes = attributes;\n }\n return merge(basePlaylist, newProps);\n }\n /**\n * Generates an updated URI for a cloned pathway based on the original\n * pathway's URI and the paramaters from the pathway clone object in the\n * content steering server response.\n *\n * @param {string} baseUri URI to be updated in the cloned pathway.\n * @param {Object} clone The pathway clone object.\n *\n * @return {string} The updated URI for the cloned pathway.\n */\n\n createCloneURI_(baseURI, clone) {\n const uri = new URL(baseURI);\n uri.hostname = clone['URI-REPLACEMENT'].HOST;\n const params = clone['URI-REPLACEMENT'].PARAMS; // Add params to the cloned URL.\n\n for (const key of Object.keys(params)) {\n uri.searchParams.set(key, params[key]);\n }\n return uri.href;\n }\n /**\n * Helper function to create the attributes needed for the new clone.\n * This mainly adds the necessary media attributes.\n *\n * @param {string} id The pathway clone object ID.\n * @param {Object} oldAttributes The old attributes to compare to.\n * @return {Object} The new attributes to add to the playlist.\n */\n\n createCloneAttributes_(id, oldAttributes) {\n const attributes = {\n ['PATHWAY-ID']: id\n };\n ['AUDIO', 'SUBTITLES', 'CLOSED-CAPTIONS'].forEach(mediaType => {\n if (oldAttributes[mediaType]) {\n attributes[mediaType] = id;\n }\n });\n return attributes;\n }\n /**\n * Returns the key ID set from a playlist\n *\n * @param {playlist} playlist to fetch the key ID set from.\n * @return a Set of 32 digit hex strings that represent the unique keyIds for that playlist.\n */\n\n getKeyIdSet(playlist) {\n if (playlist.contentProtection) {\n const keyIds = new Set();\n for (const keysystem in playlist.contentProtection) {\n const keyId = playlist.contentProtection[keysystem].attributes.keyId;\n if (keyId) {\n keyIds.add(keyId.toLowerCase());\n }\n }\n return keyIds;\n }\n }\n}\n\n/**\n * @file xhr.js\n */\nconst videojsXHR = videojs.xhr;\nconst callbackWrapper = function (request, error, response, callback) {\n const reqResponse = request.responseType === 'arraybuffer' ? request.response : request.responseText;\n if (!error && reqResponse) {\n request.responseTime = Date.now();\n request.roundTripTime = request.responseTime - request.requestTime;\n request.bytesReceived = reqResponse.byteLength || reqResponse.length;\n if (!request.bandwidth) {\n request.bandwidth = Math.floor(request.bytesReceived / request.roundTripTime * 8 * 1000);\n }\n }\n if (response.headers) {\n request.responseHeaders = response.headers;\n } // videojs.xhr now uses a specific code on the error\n // object to signal that a request has timed out instead\n // of setting a boolean on the request object\n\n if (error && error.code === 'ETIMEDOUT') {\n request.timedout = true;\n } // videojs.xhr no longer considers status codes outside of 200 and 0\n // (for file uris) to be errors, but the old XHR did, so emulate that\n // behavior. Status 206 may be used in response to byterange requests.\n\n if (!error && !request.aborted && response.statusCode !== 200 && response.statusCode !== 206 && response.statusCode !== 0) {\n error = new Error('XHR Failed with a response of: ' + (request && (reqResponse || request.responseText)));\n }\n callback(error, request);\n};\n/**\n * Iterates over the request hooks Set and calls them in order\n *\n * @param {Set} hooks the hook Set to iterate over\n * @param {Object} options the request options to pass to the xhr wrapper\n * @return the callback hook function return value, the modified or new options Object.\n */\n\nconst callAllRequestHooks = (requestSet, options) => {\n if (!requestSet || !requestSet.size) {\n return;\n }\n let newOptions = options;\n requestSet.forEach(requestCallback => {\n newOptions = requestCallback(newOptions);\n });\n return newOptions;\n};\n/**\n * Iterates over the response hooks Set and calls them in order.\n *\n * @param {Set} hooks the hook Set to iterate over\n * @param {Object} request the xhr request object\n * @param {Object} error the xhr error object\n * @param {Object} response the xhr response object\n */\n\nconst callAllResponseHooks = (responseSet, request, error, response) => {\n if (!responseSet || !responseSet.size) {\n return;\n }\n responseSet.forEach(responseCallback => {\n responseCallback(request, error, response);\n });\n};\nconst xhrFactory = function () {\n const xhr = function XhrFunction(options, callback) {\n // Add a default timeout\n options = merge({\n timeout: 45e3\n }, options); // Allow an optional user-specified function to modify the option\n // object before we construct the xhr request\n // TODO: Remove beforeRequest in the next major release.\n\n const beforeRequest = XhrFunction.beforeRequest || videojs.Vhs.xhr.beforeRequest; // onRequest and onResponse hooks as a Set, at either the player or global level.\n // TODO: new Set added here for beforeRequest alias. Remove this when beforeRequest is removed.\n\n const _requestCallbackSet = XhrFunction._requestCallbackSet || videojs.Vhs.xhr._requestCallbackSet || new Set();\n const _responseCallbackSet = XhrFunction._responseCallbackSet || videojs.Vhs.xhr._responseCallbackSet;\n if (beforeRequest && typeof beforeRequest === 'function') {\n videojs.log.warn('beforeRequest is deprecated, use onRequest instead.');\n _requestCallbackSet.add(beforeRequest);\n } // Use the standard videojs.xhr() method unless `videojs.Vhs.xhr` has been overriden\n // TODO: switch back to videojs.Vhs.xhr.name === 'XhrFunction' when we drop IE11\n\n const xhrMethod = videojs.Vhs.xhr.original === true ? videojsXHR : videojs.Vhs.xhr; // call all registered onRequest hooks, assign new options.\n\n const beforeRequestOptions = callAllRequestHooks(_requestCallbackSet, options); // Remove the beforeRequest function from the hooks set so stale beforeRequest functions are not called.\n\n _requestCallbackSet.delete(beforeRequest); // xhrMethod will call XMLHttpRequest.open and XMLHttpRequest.send\n\n const request = xhrMethod(beforeRequestOptions || options, function (error, response) {\n // call all registered onResponse hooks\n callAllResponseHooks(_responseCallbackSet, request, error, response);\n return callbackWrapper(request, error, response, callback);\n });\n const originalAbort = request.abort;\n request.abort = function () {\n request.aborted = true;\n return originalAbort.apply(request, arguments);\n };\n request.uri = options.uri;\n request.requestTime = Date.now();\n return request;\n };\n xhr.original = true;\n return xhr;\n};\n/**\n * Turns segment byterange into a string suitable for use in\n * HTTP Range requests\n *\n * @param {Object} byterange - an object with two values defining the start and end\n * of a byte-range\n */\n\nconst byterangeStr = function (byterange) {\n // `byterangeEnd` is one less than `offset + length` because the HTTP range\n // header uses inclusive ranges\n let byterangeEnd;\n const byterangeStart = byterange.offset;\n if (typeof byterange.offset === 'bigint' || typeof byterange.length === 'bigint') {\n byterangeEnd = window$1.BigInt(byterange.offset) + window$1.BigInt(byterange.length) - window$1.BigInt(1);\n } else {\n byterangeEnd = byterange.offset + byterange.length - 1;\n }\n return 'bytes=' + byterangeStart + '-' + byterangeEnd;\n};\n/**\n * Defines headers for use in the xhr request for a particular segment.\n *\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n */\n\nconst segmentXhrHeaders = function (segment) {\n const headers = {};\n if (segment.byterange) {\n headers.Range = byterangeStr(segment.byterange);\n }\n return headers;\n};\n\n/**\n * @file bin-utils.js\n */\n\n/**\n * convert a TimeRange to text\n *\n * @param {TimeRange} range the timerange to use for conversion\n * @param {number} i the iterator on the range to convert\n * @return {string} the range in string format\n */\n\nconst textRange = function (range, i) {\n return range.start(i) + '-' + range.end(i);\n};\n/**\n * format a number as hex string\n *\n * @param {number} e The number\n * @param {number} i the iterator\n * @return {string} the hex formatted number as a string\n */\n\nconst formatHexString = function (e, i) {\n const value = e.toString(16);\n return '00'.substring(0, 2 - value.length) + value + (i % 2 ? ' ' : '');\n};\nconst formatAsciiString = function (e) {\n if (e >= 0x20 && e < 0x7e) {\n return String.fromCharCode(e);\n }\n return '.';\n};\n/**\n * Creates an object for sending to a web worker modifying properties that are TypedArrays\n * into a new object with seperated properties for the buffer, byteOffset, and byteLength.\n *\n * @param {Object} message\n * Object of properties and values to send to the web worker\n * @return {Object}\n * Modified message with TypedArray values expanded\n * @function createTransferableMessage\n */\n\nconst createTransferableMessage = function (message) {\n const transferable = {};\n Object.keys(message).forEach(key => {\n const value = message[key];\n if (isArrayBufferView(value)) {\n transferable[key] = {\n bytes: value.buffer,\n byteOffset: value.byteOffset,\n byteLength: value.byteLength\n };\n } else {\n transferable[key] = value;\n }\n });\n return transferable;\n};\n/**\n * Returns a unique string identifier for a media initialization\n * segment.\n *\n * @param {Object} initSegment\n * the init segment object.\n *\n * @return {string} the generated init segment id\n */\n\nconst initSegmentId = function (initSegment) {\n const byterange = initSegment.byterange || {\n length: Infinity,\n offset: 0\n };\n return [byterange.length, byterange.offset, initSegment.resolvedUri].join(',');\n};\n/**\n * Returns a unique string identifier for a media segment key.\n *\n * @param {Object} key the encryption key\n * @return {string} the unique id for the media segment key.\n */\n\nconst segmentKeyId = function (key) {\n return key.resolvedUri;\n};\n/**\n * utils to help dump binary data to the console\n *\n * @param {Array|TypedArray} data\n * data to dump to a string\n *\n * @return {string} the data as a hex string.\n */\n\nconst hexDump = data => {\n const bytes = Array.prototype.slice.call(data);\n const step = 16;\n let result = '';\n let hex;\n let ascii;\n for (let j = 0; j < bytes.length / step; j++) {\n hex = bytes.slice(j * step, j * step + step).map(formatHexString).join('');\n ascii = bytes.slice(j * step, j * step + step).map(formatAsciiString).join('');\n result += hex + ' ' + ascii + '\\n';\n }\n return result;\n};\nconst tagDump = _ref21 => {\n let bytes = _ref21.bytes;\n return hexDump(bytes);\n};\nconst textRanges = ranges => {\n let result = '';\n let i;\n for (i = 0; i < ranges.length; i++) {\n result += textRange(ranges, i) + ' ';\n }\n return result;\n};\nvar utils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n createTransferableMessage: createTransferableMessage,\n initSegmentId: initSegmentId,\n segmentKeyId: segmentKeyId,\n hexDump: hexDump,\n tagDump: tagDump,\n textRanges: textRanges\n});\n\n// TODO handle fmp4 case where the timing info is accurate and doesn't involve transmux\n// 25% was arbitrarily chosen, and may need to be refined over time.\n\nconst SEGMENT_END_FUDGE_PERCENT = 0.25;\n/**\n * Converts a player time (any time that can be gotten/set from player.currentTime(),\n * e.g., any time within player.seekable().start(0) to player.seekable().end(0)) to a\n * program time (any time referencing the real world (e.g., EXT-X-PROGRAM-DATE-TIME)).\n *\n * The containing segment is required as the EXT-X-PROGRAM-DATE-TIME serves as an \"anchor\n * point\" (a point where we have a mapping from program time to player time, with player\n * time being the post transmux start of the segment).\n *\n * For more details, see [this doc](../../docs/program-time-from-player-time.md).\n *\n * @param {number} playerTime the player time\n * @param {Object} segment the segment which contains the player time\n * @return {Date} program time\n */\n\nconst playerTimeToProgramTime = (playerTime, segment) => {\n if (!segment.dateTimeObject) {\n // Can't convert without an \"anchor point\" for the program time (i.e., a time that can\n // be used to map the start of a segment with a real world time).\n return null;\n }\n const transmuxerPrependedSeconds = segment.videoTimingInfo.transmuxerPrependedSeconds;\n const transmuxedStart = segment.videoTimingInfo.transmuxedPresentationStart; // get the start of the content from before old content is prepended\n\n const startOfSegment = transmuxedStart + transmuxerPrependedSeconds;\n const offsetFromSegmentStart = playerTime - startOfSegment;\n return new Date(segment.dateTimeObject.getTime() + offsetFromSegmentStart * 1000);\n};\nconst originalSegmentVideoDuration = videoTimingInfo => {\n return videoTimingInfo.transmuxedPresentationEnd - videoTimingInfo.transmuxedPresentationStart - videoTimingInfo.transmuxerPrependedSeconds;\n};\n/**\n * Finds a segment that contains the time requested given as an ISO-8601 string. The\n * returned segment might be an estimate or an accurate match.\n *\n * @param {string} programTime The ISO-8601 programTime to find a match for\n * @param {Object} playlist A playlist object to search within\n */\n\nconst findSegmentForProgramTime = (programTime, playlist) => {\n // Assumptions:\n // - verifyProgramDateTimeTags has already been run\n // - live streams have been started\n let dateTimeObject;\n try {\n dateTimeObject = new Date(programTime);\n } catch (e) {\n return null;\n }\n if (!playlist || !playlist.segments || playlist.segments.length === 0) {\n return null;\n }\n let segment = playlist.segments[0];\n if (dateTimeObject < new Date(segment.dateTimeObject)) {\n // Requested time is before stream start.\n return null;\n }\n for (let i = 0; i < playlist.segments.length - 1; i++) {\n segment = playlist.segments[i];\n const nextSegmentStart = new Date(playlist.segments[i + 1].dateTimeObject);\n if (dateTimeObject < nextSegmentStart) {\n break;\n }\n }\n const lastSegment = playlist.segments[playlist.segments.length - 1];\n const lastSegmentStart = lastSegment.dateTimeObject;\n const lastSegmentDuration = lastSegment.videoTimingInfo ? originalSegmentVideoDuration(lastSegment.videoTimingInfo) : lastSegment.duration + lastSegment.duration * SEGMENT_END_FUDGE_PERCENT;\n const lastSegmentEnd = new Date(lastSegmentStart.getTime() + lastSegmentDuration * 1000);\n if (dateTimeObject > lastSegmentEnd) {\n // Beyond the end of the stream, or our best guess of the end of the stream.\n return null;\n }\n if (dateTimeObject > new Date(lastSegmentStart)) {\n segment = lastSegment;\n }\n return {\n segment,\n estimatedStart: segment.videoTimingInfo ? segment.videoTimingInfo.transmuxedPresentationStart : Playlist.duration(playlist, playlist.mediaSequence + playlist.segments.indexOf(segment)),\n // Although, given that all segments have accurate date time objects, the segment\n // selected should be accurate, unless the video has been transmuxed at some point\n // (determined by the presence of the videoTimingInfo object), the segment's \"player\n // time\" (the start time in the player) can't be considered accurate.\n type: segment.videoTimingInfo ? 'accurate' : 'estimate'\n };\n};\n/**\n * Finds a segment that contains the given player time(in seconds).\n *\n * @param {number} time The player time to find a match for\n * @param {Object} playlist A playlist object to search within\n */\n\nconst findSegmentForPlayerTime = (time, playlist) => {\n // Assumptions:\n // - there will always be a segment.duration\n // - we can start from zero\n // - segments are in time order\n if (!playlist || !playlist.segments || playlist.segments.length === 0) {\n return null;\n }\n let segmentEnd = 0;\n let segment;\n for (let i = 0; i < playlist.segments.length; i++) {\n segment = playlist.segments[i]; // videoTimingInfo is set after the segment is downloaded and transmuxed, and\n // should contain the most accurate values we have for the segment's player times.\n //\n // Use the accurate transmuxedPresentationEnd value if it is available, otherwise fall\n // back to an estimate based on the manifest derived (inaccurate) segment.duration, to\n // calculate an end value.\n\n segmentEnd = segment.videoTimingInfo ? segment.videoTimingInfo.transmuxedPresentationEnd : segmentEnd + segment.duration;\n if (time <= segmentEnd) {\n break;\n }\n }\n const lastSegment = playlist.segments[playlist.segments.length - 1];\n if (lastSegment.videoTimingInfo && lastSegment.videoTimingInfo.transmuxedPresentationEnd < time) {\n // The time requested is beyond the stream end.\n return null;\n }\n if (time > segmentEnd) {\n // The time is within or beyond the last segment.\n //\n // Check to see if the time is beyond a reasonable guess of the end of the stream.\n if (time > segmentEnd + lastSegment.duration * SEGMENT_END_FUDGE_PERCENT) {\n // Technically, because the duration value is only an estimate, the time may still\n // exist in the last segment, however, there isn't enough information to make even\n // a reasonable estimate.\n return null;\n }\n segment = lastSegment;\n }\n return {\n segment,\n estimatedStart: segment.videoTimingInfo ? segment.videoTimingInfo.transmuxedPresentationStart : segmentEnd - segment.duration,\n // Because videoTimingInfo is only set after transmux, it is the only way to get\n // accurate timing values.\n type: segment.videoTimingInfo ? 'accurate' : 'estimate'\n };\n};\n/**\n * Gives the offset of the comparisonTimestamp from the programTime timestamp in seconds.\n * If the offset returned is positive, the programTime occurs after the\n * comparisonTimestamp.\n * If the offset is negative, the programTime occurs before the comparisonTimestamp.\n *\n * @param {string} comparisonTimeStamp An ISO-8601 timestamp to compare against\n * @param {string} programTime The programTime as an ISO-8601 string\n * @return {number} offset\n */\n\nconst getOffsetFromTimestamp = (comparisonTimeStamp, programTime) => {\n let segmentDateTime;\n let programDateTime;\n try {\n segmentDateTime = new Date(comparisonTimeStamp);\n programDateTime = new Date(programTime);\n } catch (e) {// TODO handle error\n }\n const segmentTimeEpoch = segmentDateTime.getTime();\n const programTimeEpoch = programDateTime.getTime();\n return (programTimeEpoch - segmentTimeEpoch) / 1000;\n};\n/**\n * Checks that all segments in this playlist have programDateTime tags.\n *\n * @param {Object} playlist A playlist object\n */\n\nconst verifyProgramDateTimeTags = playlist => {\n if (!playlist.segments || playlist.segments.length === 0) {\n return false;\n }\n for (let i = 0; i < playlist.segments.length; i++) {\n const segment = playlist.segments[i];\n if (!segment.dateTimeObject) {\n return false;\n }\n }\n return true;\n};\n/**\n * Returns the programTime of the media given a playlist and a playerTime.\n * The playlist must have programDateTime tags for a programDateTime tag to be returned.\n * If the segments containing the time requested have not been buffered yet, an estimate\n * may be returned to the callback.\n *\n * @param {Object} args\n * @param {Object} args.playlist A playlist object to search within\n * @param {number} time A playerTime in seconds\n * @param {Function} callback(err, programTime)\n * @return {string} err.message A detailed error message\n * @return {Object} programTime\n * @return {number} programTime.mediaSeconds The streamTime in seconds\n * @return {string} programTime.programDateTime The programTime as an ISO-8601 String\n */\n\nconst getProgramTime = _ref22 => {\n let playlist = _ref22.playlist,\n _ref22$time = _ref22.time,\n time = _ref22$time === void 0 ? undefined : _ref22$time,\n callback = _ref22.callback;\n if (!callback) {\n throw new Error('getProgramTime: callback must be provided');\n }\n if (!playlist || time === undefined) {\n return callback({\n message: 'getProgramTime: playlist and time must be provided'\n });\n }\n const matchedSegment = findSegmentForPlayerTime(time, playlist);\n if (!matchedSegment) {\n return callback({\n message: 'valid programTime was not found'\n });\n }\n if (matchedSegment.type === 'estimate') {\n return callback({\n message: 'Accurate programTime could not be determined.' + ' Please seek to e.seekTime and try again',\n seekTime: matchedSegment.estimatedStart\n });\n }\n const programTimeObject = {\n mediaSeconds: time\n };\n const programTime = playerTimeToProgramTime(time, matchedSegment.segment);\n if (programTime) {\n programTimeObject.programDateTime = programTime.toISOString();\n }\n return callback(null, programTimeObject);\n};\n/**\n * Seeks in the player to a time that matches the given programTime ISO-8601 string.\n *\n * @param {Object} args\n * @param {string} args.programTime A programTime to seek to as an ISO-8601 String\n * @param {Object} args.playlist A playlist to look within\n * @param {number} args.retryCount The number of times to try for an accurate seek. Default is 2.\n * @param {Function} args.seekTo A method to perform a seek\n * @param {boolean} args.pauseAfterSeek Whether to end in a paused state after seeking. Default is true.\n * @param {Object} args.tech The tech to seek on\n * @param {Function} args.callback(err, newTime) A callback to return the new time to\n * @return {string} err.message A detailed error message\n * @return {number} newTime The exact time that was seeked to in seconds\n */\n\nconst seekToProgramTime = _ref23 => {\n let programTime = _ref23.programTime,\n playlist = _ref23.playlist,\n _ref23$retryCount = _ref23.retryCount,\n retryCount = _ref23$retryCount === void 0 ? 2 : _ref23$retryCount,\n seekTo = _ref23.seekTo,\n _ref23$pauseAfterSeek = _ref23.pauseAfterSeek,\n pauseAfterSeek = _ref23$pauseAfterSeek === void 0 ? true : _ref23$pauseAfterSeek,\n tech = _ref23.tech,\n callback = _ref23.callback;\n if (!callback) {\n throw new Error('seekToProgramTime: callback must be provided');\n }\n if (typeof programTime === 'undefined' || !playlist || !seekTo) {\n return callback({\n message: 'seekToProgramTime: programTime, seekTo and playlist must be provided'\n });\n }\n if (!playlist.endList && !tech.hasStarted_) {\n return callback({\n message: 'player must be playing a live stream to start buffering'\n });\n }\n if (!verifyProgramDateTimeTags(playlist)) {\n return callback({\n message: 'programDateTime tags must be provided in the manifest ' + playlist.resolvedUri\n });\n }\n const matchedSegment = findSegmentForProgramTime(programTime, playlist); // no match\n\n if (!matchedSegment) {\n return callback({\n message: `${programTime} was not found in the stream`\n });\n }\n const segment = matchedSegment.segment;\n const mediaOffset = getOffsetFromTimestamp(segment.dateTimeObject, programTime);\n if (matchedSegment.type === 'estimate') {\n // we've run out of retries\n if (retryCount === 0) {\n return callback({\n message: `${programTime} is not buffered yet. Try again`\n });\n }\n seekTo(matchedSegment.estimatedStart + mediaOffset);\n tech.one('seeked', () => {\n seekToProgramTime({\n programTime,\n playlist,\n retryCount: retryCount - 1,\n seekTo,\n pauseAfterSeek,\n tech,\n callback\n });\n });\n return;\n } // Since the segment.start value is determined from the buffered end or ending time\n // of the prior segment, the seekToTime doesn't need to account for any transmuxer\n // modifications.\n\n const seekToTime = segment.start + mediaOffset;\n const seekedCallback = () => {\n return callback(null, tech.currentTime());\n }; // listen for seeked event\n\n tech.one('seeked', seekedCallback); // pause before seeking as video.js will restore this state\n\n if (pauseAfterSeek) {\n tech.pause();\n }\n seekTo(seekToTime);\n};\n\n// which will only happen if the request is complete.\n\nconst callbackOnCompleted = (request, cb) => {\n if (request.readyState === 4) {\n return cb();\n }\n return;\n};\nconst containerRequest = (uri, xhr, cb) => {\n let bytes = [];\n let id3Offset;\n let finished = false;\n const endRequestAndCallback = function (err, req, type, _bytes) {\n req.abort();\n finished = true;\n return cb(err, req, type, _bytes);\n };\n const progressListener = function (error, request) {\n if (finished) {\n return;\n }\n if (error) {\n return endRequestAndCallback(error, request, '', bytes);\n } // grap the new part of content that was just downloaded\n\n const newPart = request.responseText.substring(bytes && bytes.byteLength || 0, request.responseText.length); // add that onto bytes\n\n bytes = concatTypedArrays(bytes, stringToBytes(newPart, true));\n id3Offset = id3Offset || getId3Offset(bytes); // we need at least 10 bytes to determine a type\n // or we need at least two bytes after an id3Offset\n\n if (bytes.length < 10 || id3Offset && bytes.length < id3Offset + 2) {\n return callbackOnCompleted(request, () => endRequestAndCallback(error, request, '', bytes));\n }\n const type = detectContainerForBytes(bytes); // if this looks like a ts segment but we don't have enough data\n // to see the second sync byte, wait until we have enough data\n // before declaring it ts\n\n if (type === 'ts' && bytes.length < 188) {\n return callbackOnCompleted(request, () => endRequestAndCallback(error, request, '', bytes));\n } // this may be an unsynced ts segment\n // wait for 376 bytes before detecting no container\n\n if (!type && bytes.length < 376) {\n return callbackOnCompleted(request, () => endRequestAndCallback(error, request, '', bytes));\n }\n return endRequestAndCallback(null, request, type, bytes);\n };\n const options = {\n uri,\n beforeSend(request) {\n // this forces the browser to pass the bytes to us unprocessed\n request.overrideMimeType('text/plain; charset=x-user-defined');\n request.addEventListener('progress', function (_ref24) {\n let total = _ref24.total,\n loaded = _ref24.loaded;\n return callbackWrapper(request, null, {\n statusCode: request.status\n }, progressListener);\n });\n }\n };\n const request = xhr(options, function (error, response) {\n return callbackWrapper(request, error, response, progressListener);\n });\n return request;\n};\nconst EventTarget = videojs.EventTarget;\nconst dashPlaylistUnchanged = function (a, b) {\n if (!isPlaylistUnchanged(a, b)) {\n return false;\n } // for dash the above check will often return true in scenarios where\n // the playlist actually has changed because mediaSequence isn't a\n // dash thing, and we often set it to 1. So if the playlists have the same amount\n // of segments we return true.\n // So for dash we need to make sure that the underlying segments are different.\n // if sidx changed then the playlists are different.\n\n if (a.sidx && b.sidx && (a.sidx.offset !== b.sidx.offset || a.sidx.length !== b.sidx.length)) {\n return false;\n } else if (!a.sidx && b.sidx || a.sidx && !b.sidx) {\n return false;\n } // one or the other does not have segments\n // there was a change.\n\n if (a.segments && !b.segments || !a.segments && b.segments) {\n return false;\n } // neither has segments nothing changed\n\n if (!a.segments && !b.segments) {\n return true;\n } // check segments themselves\n\n for (let i = 0; i < a.segments.length; i++) {\n const aSegment = a.segments[i];\n const bSegment = b.segments[i]; // if uris are different between segments there was a change\n\n if (aSegment.uri !== bSegment.uri) {\n return false;\n } // neither segment has a byterange, there will be no byterange change.\n\n if (!aSegment.byterange && !bSegment.byterange) {\n continue;\n }\n const aByterange = aSegment.byterange;\n const bByterange = bSegment.byterange; // if byterange only exists on one of the segments, there was a change.\n\n if (aByterange && !bByterange || !aByterange && bByterange) {\n return false;\n } // if both segments have byterange with different offsets, there was a change.\n\n if (aByterange.offset !== bByterange.offset || aByterange.length !== bByterange.length) {\n return false;\n }\n } // if everything was the same with segments, this is the same playlist.\n\n return true;\n};\n/**\n * Use the representation IDs from the mpd object to create groupIDs, the NAME is set to mandatory representation\n * ID in the parser. This allows for continuous playout across periods with the same representation IDs\n * (continuous periods as defined in DASH-IF 3.2.12). This is assumed in the mpd-parser as well. If we want to support\n * periods without continuous playback this function may need modification as well as the parser.\n */\n\nconst dashGroupId = (type, group, label, playlist) => {\n // If the manifest somehow does not have an ID (non-dash compliant), use the label.\n const playlistId = playlist.attributes.NAME || label;\n return `placeholder-uri-${type}-${group}-${playlistId}`;\n};\n/**\n * Parses the main XML string and updates playlist URI references.\n *\n * @param {Object} config\n * Object of arguments\n * @param {string} config.mainXml\n * The mpd XML\n * @param {string} config.srcUrl\n * The mpd URL\n * @param {Date} config.clientOffset\n * A time difference between server and client\n * @param {Object} config.sidxMapping\n * SIDX mappings for moof/mdat URIs and byte ranges\n * @return {Object}\n * The parsed mpd manifest object\n */\n\nconst parseMainXml = _ref25 => {\n let mainXml = _ref25.mainXml,\n srcUrl = _ref25.srcUrl,\n clientOffset = _ref25.clientOffset,\n sidxMapping = _ref25.sidxMapping,\n previousManifest = _ref25.previousManifest;\n const manifest = parse(mainXml, {\n manifestUri: srcUrl,\n clientOffset,\n sidxMapping,\n previousManifest\n });\n addPropertiesToMain(manifest, srcUrl, dashGroupId);\n return manifest;\n};\n/**\n * Removes any mediaGroup labels that no longer exist in the newMain\n *\n * @param {Object} update\n * The previous mpd object being updated\n * @param {Object} newMain\n * The new mpd object\n */\n\nconst removeOldMediaGroupLabels = (update, newMain) => {\n forEachMediaGroup(update, (properties, type, group, label) => {\n if (!(label in newMain.mediaGroups[type][group])) {\n delete update.mediaGroups[type][group][label];\n }\n });\n};\n/**\n * Returns a new main manifest that is the result of merging an updated main manifest\n * into the original version.\n *\n * @param {Object} oldMain\n * The old parsed mpd object\n * @param {Object} newMain\n * The updated parsed mpd object\n * @return {Object}\n * A new object representing the original main manifest with the updated media\n * playlists merged in\n */\n\nconst updateMain = (oldMain, newMain, sidxMapping) => {\n let noChanges = true;\n let update = merge(oldMain, {\n // These are top level properties that can be updated\n duration: newMain.duration,\n minimumUpdatePeriod: newMain.minimumUpdatePeriod,\n timelineStarts: newMain.timelineStarts\n }); // First update the playlists in playlist list\n\n for (let i = 0; i < newMain.playlists.length; i++) {\n const playlist = newMain.playlists[i];\n if (playlist.sidx) {\n const sidxKey = generateSidxKey(playlist.sidx); // add sidx segments to the playlist if we have all the sidx info already\n\n if (sidxMapping && sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx) {\n addSidxSegmentsToPlaylist(playlist, sidxMapping[sidxKey].sidx, playlist.sidx.resolvedUri);\n }\n }\n const playlistUpdate = updateMain$1(update, playlist, dashPlaylistUnchanged);\n if (playlistUpdate) {\n update = playlistUpdate;\n noChanges = false;\n }\n } // Then update media group playlists\n\n forEachMediaGroup(newMain, (properties, type, group, label) => {\n if (properties.playlists && properties.playlists.length) {\n const id = properties.playlists[0].id;\n const playlistUpdate = updateMain$1(update, properties.playlists[0], dashPlaylistUnchanged);\n if (playlistUpdate) {\n update = playlistUpdate; // add new mediaGroup label if it doesn't exist and assign the new mediaGroup.\n\n if (!(label in update.mediaGroups[type][group])) {\n update.mediaGroups[type][group][label] = properties;\n } // update the playlist reference within media groups\n\n update.mediaGroups[type][group][label].playlists[0] = update.playlists[id];\n noChanges = false;\n }\n }\n }); // remove mediaGroup labels and references that no longer exist in the newMain\n\n removeOldMediaGroupLabels(update, newMain);\n if (newMain.minimumUpdatePeriod !== oldMain.minimumUpdatePeriod) {\n noChanges = false;\n }\n if (noChanges) {\n return null;\n }\n return update;\n}; // SIDX should be equivalent if the URI and byteranges of the SIDX match.\n// If the SIDXs have maps, the two maps should match,\n// both `a` and `b` missing SIDXs is considered matching.\n// If `a` or `b` but not both have a map, they aren't matching.\n\nconst equivalentSidx = (a, b) => {\n const neitherMap = Boolean(!a.map && !b.map);\n const equivalentMap = neitherMap || Boolean(a.map && b.map && a.map.byterange.offset === b.map.byterange.offset && a.map.byterange.length === b.map.byterange.length);\n return equivalentMap && a.uri === b.uri && a.byterange.offset === b.byterange.offset && a.byterange.length === b.byterange.length;\n}; // exported for testing\n\nconst compareSidxEntry = (playlists, oldSidxMapping) => {\n const newSidxMapping = {};\n for (const id in playlists) {\n const playlist = playlists[id];\n const currentSidxInfo = playlist.sidx;\n if (currentSidxInfo) {\n const key = generateSidxKey(currentSidxInfo);\n if (!oldSidxMapping[key]) {\n break;\n }\n const savedSidxInfo = oldSidxMapping[key].sidxInfo;\n if (equivalentSidx(savedSidxInfo, currentSidxInfo)) {\n newSidxMapping[key] = oldSidxMapping[key];\n }\n }\n }\n return newSidxMapping;\n};\n/**\n * A function that filters out changed items as they need to be requested separately.\n *\n * The method is exported for testing\n *\n * @param {Object} main the parsed mpd XML returned via mpd-parser\n * @param {Object} oldSidxMapping the SIDX to compare against\n */\n\nconst filterChangedSidxMappings = (main, oldSidxMapping) => {\n const videoSidx = compareSidxEntry(main.playlists, oldSidxMapping);\n let mediaGroupSidx = videoSidx;\n forEachMediaGroup(main, (properties, mediaType, groupKey, labelKey) => {\n if (properties.playlists && properties.playlists.length) {\n const playlists = properties.playlists;\n mediaGroupSidx = merge(mediaGroupSidx, compareSidxEntry(playlists, oldSidxMapping));\n }\n });\n return mediaGroupSidx;\n};\nclass DashPlaylistLoader extends EventTarget {\n // DashPlaylistLoader must accept either a src url or a playlist because subsequent\n // playlist loader setups from media groups will expect to be able to pass a playlist\n // (since there aren't external URLs to media playlists with DASH)\n constructor(srcUrlOrPlaylist, vhs) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n let mainPlaylistLoader = arguments.length > 3 ? arguments[3] : undefined;\n super();\n this.mainPlaylistLoader_ = mainPlaylistLoader || this;\n if (!mainPlaylistLoader) {\n this.isMain_ = true;\n }\n const _options$withCredenti2 = options.withCredentials,\n withCredentials = _options$withCredenti2 === void 0 ? false : _options$withCredenti2;\n this.vhs_ = vhs;\n this.withCredentials = withCredentials;\n this.addMetadataToTextTrack = options.addMetadataToTextTrack;\n if (!srcUrlOrPlaylist) {\n throw new Error('A non-empty playlist URL or object is required');\n } // event naming?\n\n this.on('minimumUpdatePeriod', () => {\n this.refreshXml_();\n }); // live playlist staleness timeout\n\n this.on('mediaupdatetimeout', () => {\n this.refreshMedia_(this.media().id);\n });\n this.state = 'HAVE_NOTHING';\n this.loadedPlaylists_ = {};\n this.logger_ = logger('DashPlaylistLoader'); // initialize the loader state\n // The mainPlaylistLoader will be created with a string\n\n if (this.isMain_) {\n this.mainPlaylistLoader_.srcUrl = srcUrlOrPlaylist; // TODO: reset sidxMapping between period changes\n // once multi-period is refactored\n\n this.mainPlaylistLoader_.sidxMapping_ = {};\n } else {\n this.childPlaylist_ = srcUrlOrPlaylist;\n }\n }\n requestErrored_(err, request, startingState) {\n // disposed\n if (!this.request) {\n return true;\n } // pending request is cleared\n\n this.request = null;\n if (err) {\n // use the provided error object or create one\n // based on the request/response\n this.error = typeof err === 'object' && !(err instanceof Error) ? err : {\n status: request.status,\n message: 'DASH request error at URL: ' + request.uri,\n response: request.response,\n // MEDIA_ERR_NETWORK\n code: 2\n };\n if (startingState) {\n this.state = startingState;\n }\n this.trigger('error');\n return true;\n }\n }\n /**\n * Verify that the container of the sidx segment can be parsed\n * and if it can, get and parse that segment.\n */\n\n addSidxSegments_(playlist, startingState, cb) {\n const sidxKey = playlist.sidx && generateSidxKey(playlist.sidx); // playlist lacks sidx or sidx segments were added to this playlist already.\n\n if (!playlist.sidx || !sidxKey || this.mainPlaylistLoader_.sidxMapping_[sidxKey]) {\n // keep this function async\n this.mediaRequest_ = window$1.setTimeout(() => cb(false), 0);\n return;\n } // resolve the segment URL relative to the playlist\n\n const uri = resolveManifestRedirect(playlist.sidx.resolvedUri);\n const fin = (err, request) => {\n if (this.requestErrored_(err, request, startingState)) {\n return;\n }\n const sidxMapping = this.mainPlaylistLoader_.sidxMapping_;\n let sidx;\n try {\n sidx = parseSidx(toUint8(request.response).subarray(8));\n } catch (e) {\n // sidx parsing failed.\n this.requestErrored_(e, request, startingState);\n return;\n }\n sidxMapping[sidxKey] = {\n sidxInfo: playlist.sidx,\n sidx\n };\n addSidxSegmentsToPlaylist(playlist, sidx, playlist.sidx.resolvedUri);\n return cb(true);\n };\n this.request = containerRequest(uri, this.vhs_.xhr, (err, request, container, bytes) => {\n if (err) {\n return fin(err, request);\n }\n if (!container || container !== 'mp4') {\n return fin({\n status: request.status,\n message: `Unsupported ${container || 'unknown'} container type for sidx segment at URL: ${uri}`,\n // response is just bytes in this case\n // but we really don't want to return that.\n response: '',\n playlist,\n internal: true,\n playlistExclusionDuration: Infinity,\n // MEDIA_ERR_NETWORK\n code: 2\n }, request);\n } // if we already downloaded the sidx bytes in the container request, use them\n\n const _playlist$sidx$bytera = playlist.sidx.byterange,\n offset = _playlist$sidx$bytera.offset,\n length = _playlist$sidx$bytera.length;\n if (bytes.length >= length + offset) {\n return fin(err, {\n response: bytes.subarray(offset, offset + length),\n status: request.status,\n uri: request.uri\n });\n } // otherwise request sidx bytes\n\n this.request = this.vhs_.xhr({\n uri,\n responseType: 'arraybuffer',\n headers: segmentXhrHeaders({\n byterange: playlist.sidx.byterange\n })\n }, fin);\n });\n }\n dispose() {\n this.trigger('dispose');\n this.stopRequest();\n this.loadedPlaylists_ = {};\n window$1.clearTimeout(this.minimumUpdatePeriodTimeout_);\n window$1.clearTimeout(this.mediaRequest_);\n window$1.clearTimeout(this.mediaUpdateTimeout);\n this.mediaUpdateTimeout = null;\n this.mediaRequest_ = null;\n this.minimumUpdatePeriodTimeout_ = null;\n if (this.mainPlaylistLoader_.createMupOnMedia_) {\n this.off('loadedmetadata', this.mainPlaylistLoader_.createMupOnMedia_);\n this.mainPlaylistLoader_.createMupOnMedia_ = null;\n }\n this.off();\n }\n hasPendingRequest() {\n return this.request || this.mediaRequest_;\n }\n stopRequest() {\n if (this.request) {\n const oldRequest = this.request;\n this.request = null;\n oldRequest.onreadystatechange = null;\n oldRequest.abort();\n }\n }\n media(playlist) {\n // getter\n if (!playlist) {\n return this.media_;\n } // setter\n\n if (this.state === 'HAVE_NOTHING') {\n throw new Error('Cannot switch media playlist from ' + this.state);\n }\n const startingState = this.state; // find the playlist object if the target playlist has been specified by URI\n\n if (typeof playlist === 'string') {\n if (!this.mainPlaylistLoader_.main.playlists[playlist]) {\n throw new Error('Unknown playlist URI: ' + playlist);\n }\n playlist = this.mainPlaylistLoader_.main.playlists[playlist];\n }\n const mediaChange = !this.media_ || playlist.id !== this.media_.id; // switch to previously loaded playlists immediately\n\n if (mediaChange && this.loadedPlaylists_[playlist.id] && this.loadedPlaylists_[playlist.id].endList) {\n this.state = 'HAVE_METADATA';\n this.media_ = playlist; // trigger media change if the active media has been updated\n\n if (mediaChange) {\n this.trigger('mediachanging');\n this.trigger('mediachange');\n }\n return;\n } // switching to the active playlist is a no-op\n\n if (!mediaChange) {\n return;\n } // switching from an already loaded playlist\n\n if (this.media_) {\n this.trigger('mediachanging');\n }\n this.addSidxSegments_(playlist, startingState, sidxChanged => {\n // everything is ready just continue to haveMetadata\n this.haveMetadata({\n startingState,\n playlist\n });\n });\n }\n haveMetadata(_ref26) {\n let startingState = _ref26.startingState,\n playlist = _ref26.playlist;\n this.state = 'HAVE_METADATA';\n this.loadedPlaylists_[playlist.id] = playlist;\n this.mediaRequest_ = null; // This will trigger loadedplaylist\n\n this.refreshMedia_(playlist.id); // fire loadedmetadata the first time a media playlist is loaded\n // to resolve setup of media groups\n\n if (startingState === 'HAVE_MAIN_MANIFEST') {\n this.trigger('loadedmetadata');\n } else {\n // trigger media change if the active media has been updated\n this.trigger('mediachange');\n }\n }\n pause() {\n if (this.mainPlaylistLoader_.createMupOnMedia_) {\n this.off('loadedmetadata', this.mainPlaylistLoader_.createMupOnMedia_);\n this.mainPlaylistLoader_.createMupOnMedia_ = null;\n }\n this.stopRequest();\n window$1.clearTimeout(this.mediaUpdateTimeout);\n this.mediaUpdateTimeout = null;\n if (this.isMain_) {\n window$1.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_);\n this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_ = null;\n }\n if (this.state === 'HAVE_NOTHING') {\n // If we pause the loader before any data has been retrieved, its as if we never\n // started, so reset to an unstarted state.\n this.started = false;\n }\n }\n load(isFinalRendition) {\n window$1.clearTimeout(this.mediaUpdateTimeout);\n this.mediaUpdateTimeout = null;\n const media = this.media();\n if (isFinalRendition) {\n const delay = media ? media.targetDuration / 2 * 1000 : 5 * 1000;\n this.mediaUpdateTimeout = window$1.setTimeout(() => this.load(), delay);\n return;\n } // because the playlists are internal to the manifest, load should either load the\n // main manifest, or do nothing but trigger an event\n\n if (!this.started) {\n this.start();\n return;\n }\n if (media && !media.endList) {\n // Check to see if this is the main loader and the MUP was cleared (this happens\n // when the loader was paused). `media` should be set at this point since one is always\n // set during `start()`.\n if (this.isMain_ && !this.minimumUpdatePeriodTimeout_) {\n // Trigger minimumUpdatePeriod to refresh the main manifest\n this.trigger('minimumUpdatePeriod'); // Since there was no prior minimumUpdatePeriodTimeout it should be recreated\n\n this.updateMinimumUpdatePeriodTimeout_();\n }\n this.trigger('mediaupdatetimeout');\n } else {\n this.trigger('loadedplaylist');\n }\n }\n start() {\n this.started = true; // We don't need to request the main manifest again\n // Call this asynchronously to match the xhr request behavior below\n\n if (!this.isMain_) {\n this.mediaRequest_ = window$1.setTimeout(() => this.haveMain_(), 0);\n return;\n }\n this.requestMain_((req, mainChanged) => {\n this.haveMain_();\n if (!this.hasPendingRequest() && !this.media_) {\n this.media(this.mainPlaylistLoader_.main.playlists[0]);\n }\n });\n }\n requestMain_(cb) {\n this.request = this.vhs_.xhr({\n uri: this.mainPlaylistLoader_.srcUrl,\n withCredentials: this.withCredentials\n }, (error, req) => {\n if (this.requestErrored_(error, req)) {\n if (this.state === 'HAVE_NOTHING') {\n this.started = false;\n }\n return;\n }\n const mainChanged = req.responseText !== this.mainPlaylistLoader_.mainXml_;\n this.mainPlaylistLoader_.mainXml_ = req.responseText;\n if (req.responseHeaders && req.responseHeaders.date) {\n this.mainLoaded_ = Date.parse(req.responseHeaders.date);\n } else {\n this.mainLoaded_ = Date.now();\n }\n this.mainPlaylistLoader_.srcUrl = resolveManifestRedirect(this.mainPlaylistLoader_.srcUrl, req);\n if (mainChanged) {\n this.handleMain_();\n this.syncClientServerClock_(() => {\n return cb(req, mainChanged);\n });\n return;\n }\n return cb(req, mainChanged);\n });\n }\n /**\n * Parses the main xml for UTCTiming node to sync the client clock to the server\n * clock. If the UTCTiming node requires a HEAD or GET request, that request is made.\n *\n * @param {Function} done\n * Function to call when clock sync has completed\n */\n\n syncClientServerClock_(done) {\n const utcTiming = parseUTCTiming(this.mainPlaylistLoader_.mainXml_); // No UTCTiming element found in the mpd. Use Date header from mpd request as the\n // server clock\n\n if (utcTiming === null) {\n this.mainPlaylistLoader_.clientOffset_ = this.mainLoaded_ - Date.now();\n return done();\n }\n if (utcTiming.method === 'DIRECT') {\n this.mainPlaylistLoader_.clientOffset_ = utcTiming.value - Date.now();\n return done();\n }\n this.request = this.vhs_.xhr({\n uri: resolveUrl(this.mainPlaylistLoader_.srcUrl, utcTiming.value),\n method: utcTiming.method,\n withCredentials: this.withCredentials\n }, (error, req) => {\n // disposed\n if (!this.request) {\n return;\n }\n if (error) {\n // sync request failed, fall back to using date header from mpd\n // TODO: log warning\n this.mainPlaylistLoader_.clientOffset_ = this.mainLoaded_ - Date.now();\n return done();\n }\n let serverTime;\n if (utcTiming.method === 'HEAD') {\n if (!req.responseHeaders || !req.responseHeaders.date) {\n // expected date header not preset, fall back to using date header from mpd\n // TODO: log warning\n serverTime = this.mainLoaded_;\n } else {\n serverTime = Date.parse(req.responseHeaders.date);\n }\n } else {\n serverTime = Date.parse(req.responseText);\n }\n this.mainPlaylistLoader_.clientOffset_ = serverTime - Date.now();\n done();\n });\n }\n haveMain_() {\n this.state = 'HAVE_MAIN_MANIFEST';\n if (this.isMain_) {\n // We have the main playlist at this point, so\n // trigger this to allow PlaylistController\n // to make an initial playlist selection\n this.trigger('loadedplaylist');\n } else if (!this.media_) {\n // no media playlist was specifically selected so select\n // the one the child playlist loader was created with\n this.media(this.childPlaylist_);\n }\n }\n handleMain_() {\n // clear media request\n this.mediaRequest_ = null;\n const oldMain = this.mainPlaylistLoader_.main;\n let newMain = parseMainXml({\n mainXml: this.mainPlaylistLoader_.mainXml_,\n srcUrl: this.mainPlaylistLoader_.srcUrl,\n clientOffset: this.mainPlaylistLoader_.clientOffset_,\n sidxMapping: this.mainPlaylistLoader_.sidxMapping_,\n previousManifest: oldMain\n }); // if we have an old main to compare the new main against\n\n if (oldMain) {\n newMain = updateMain(oldMain, newMain, this.mainPlaylistLoader_.sidxMapping_);\n } // only update main if we have a new main\n\n this.mainPlaylistLoader_.main = newMain ? newMain : oldMain;\n const location = this.mainPlaylistLoader_.main.locations && this.mainPlaylistLoader_.main.locations[0];\n if (location && location !== this.mainPlaylistLoader_.srcUrl) {\n this.mainPlaylistLoader_.srcUrl = location;\n }\n if (!oldMain || newMain && newMain.minimumUpdatePeriod !== oldMain.minimumUpdatePeriod) {\n this.updateMinimumUpdatePeriodTimeout_();\n }\n this.addEventStreamToMetadataTrack_(newMain);\n return Boolean(newMain);\n }\n updateMinimumUpdatePeriodTimeout_() {\n const mpl = this.mainPlaylistLoader_; // cancel any pending creation of mup on media\n // a new one will be added if needed.\n\n if (mpl.createMupOnMedia_) {\n mpl.off('loadedmetadata', mpl.createMupOnMedia_);\n mpl.createMupOnMedia_ = null;\n } // clear any pending timeouts\n\n if (mpl.minimumUpdatePeriodTimeout_) {\n window$1.clearTimeout(mpl.minimumUpdatePeriodTimeout_);\n mpl.minimumUpdatePeriodTimeout_ = null;\n }\n let mup = mpl.main && mpl.main.minimumUpdatePeriod; // If the minimumUpdatePeriod has a value of 0, that indicates that the current\n // MPD has no future validity, so a new one will need to be acquired when new\n // media segments are to be made available. Thus, we use the target duration\n // in this case\n\n if (mup === 0) {\n if (mpl.media()) {\n mup = mpl.media().targetDuration * 1000;\n } else {\n mpl.createMupOnMedia_ = mpl.updateMinimumUpdatePeriodTimeout_;\n mpl.one('loadedmetadata', mpl.createMupOnMedia_);\n }\n } // if minimumUpdatePeriod is invalid or <= zero, which\n // can happen when a live video becomes VOD. skip timeout\n // creation.\n\n if (typeof mup !== 'number' || mup <= 0) {\n if (mup < 0) {\n this.logger_(`found invalid minimumUpdatePeriod of ${mup}, not setting a timeout`);\n }\n return;\n }\n this.createMUPTimeout_(mup);\n }\n createMUPTimeout_(mup) {\n const mpl = this.mainPlaylistLoader_;\n mpl.minimumUpdatePeriodTimeout_ = window$1.setTimeout(() => {\n mpl.minimumUpdatePeriodTimeout_ = null;\n mpl.trigger('minimumUpdatePeriod');\n mpl.createMUPTimeout_(mup);\n }, mup);\n }\n /**\n * Sends request to refresh the main xml and updates the parsed main manifest\n */\n\n refreshXml_() {\n this.requestMain_((req, mainChanged) => {\n if (!mainChanged) {\n return;\n }\n if (this.media_) {\n this.media_ = this.mainPlaylistLoader_.main.playlists[this.media_.id];\n } // This will filter out updated sidx info from the mapping\n\n this.mainPlaylistLoader_.sidxMapping_ = filterChangedSidxMappings(this.mainPlaylistLoader_.main, this.mainPlaylistLoader_.sidxMapping_);\n this.addSidxSegments_(this.media(), this.state, sidxChanged => {\n // TODO: do we need to reload the current playlist?\n this.refreshMedia_(this.media().id);\n });\n });\n }\n /**\n * Refreshes the media playlist by re-parsing the main xml and updating playlist\n * references. If this is an alternate loader, the updated parsed manifest is retrieved\n * from the main loader.\n */\n\n refreshMedia_(mediaID) {\n if (!mediaID) {\n throw new Error('refreshMedia_ must take a media id');\n } // for main we have to reparse the main xml\n // to re-create segments based on current timing values\n // which may change media. We only skip updating the main manifest\n // if this is the first time this.media_ is being set.\n // as main was just parsed in that case.\n\n if (this.media_ && this.isMain_) {\n this.handleMain_();\n }\n const playlists = this.mainPlaylistLoader_.main.playlists;\n const mediaChanged = !this.media_ || this.media_ !== playlists[mediaID];\n if (mediaChanged) {\n this.media_ = playlists[mediaID];\n } else {\n this.trigger('playlistunchanged');\n }\n if (!this.mediaUpdateTimeout) {\n const createMediaUpdateTimeout = () => {\n if (this.media().endList) {\n return;\n }\n this.mediaUpdateTimeout = window$1.setTimeout(() => {\n this.trigger('mediaupdatetimeout');\n createMediaUpdateTimeout();\n }, refreshDelay(this.media(), Boolean(mediaChanged)));\n };\n createMediaUpdateTimeout();\n }\n this.trigger('loadedplaylist');\n }\n /**\n * Takes eventstream data from a parsed DASH manifest and adds it to the metadata text track.\n *\n * @param {manifest} newMain the newly parsed manifest\n */\n\n addEventStreamToMetadataTrack_(newMain) {\n // Only add new event stream metadata if we have a new manifest.\n if (newMain && this.mainPlaylistLoader_.main.eventStream) {\n // convert EventStream to ID3-like data.\n const metadataArray = this.mainPlaylistLoader_.main.eventStream.map(eventStreamNode => {\n return {\n cueTime: eventStreamNode.start,\n frames: [{\n data: eventStreamNode.messageData\n }]\n };\n });\n this.addMetadataToTextTrack('EventStream', metadataArray, this.mainPlaylistLoader_.main.duration);\n }\n }\n /**\n * Returns the key ID set from a playlist\n *\n * @param {playlist} playlist to fetch the key ID set from.\n * @return a Set of 32 digit hex strings that represent the unique keyIds for that playlist.\n */\n\n getKeyIdSet(playlist) {\n if (playlist.contentProtection) {\n const keyIds = new Set();\n for (const keysystem in playlist.contentProtection) {\n const defaultKID = playlist.contentProtection[keysystem].attributes['cenc:default_KID'];\n if (defaultKID) {\n // DASH keyIds are separated by dashes.\n keyIds.add(defaultKID.replace(/-/g, '').toLowerCase());\n }\n }\n return keyIds;\n }\n }\n}\nvar Config = {\n GOAL_BUFFER_LENGTH: 30,\n MAX_GOAL_BUFFER_LENGTH: 60,\n BACK_BUFFER_LENGTH: 30,\n GOAL_BUFFER_LENGTH_RATE: 1,\n // 0.5 MB/s\n INITIAL_BANDWIDTH: 4194304,\n // A fudge factor to apply to advertised playlist bitrates to account for\n // temporary flucations in client bandwidth\n BANDWIDTH_VARIANCE: 1.2,\n // How much of the buffer must be filled before we consider upswitching\n BUFFER_LOW_WATER_LINE: 0,\n MAX_BUFFER_LOW_WATER_LINE: 30,\n // TODO: Remove this when experimentalBufferBasedABR is removed\n EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE: 16,\n BUFFER_LOW_WATER_LINE_RATE: 1,\n // If the buffer is greater than the high water line, we won't switch down\n BUFFER_HIGH_WATER_LINE: 30\n};\nconst stringToArrayBuffer = string => {\n const view = new Uint8Array(new ArrayBuffer(string.length));\n for (let i = 0; i < string.length; i++) {\n view[i] = string.charCodeAt(i);\n }\n return view.buffer;\n};\n\n/* global Blob, BlobBuilder, Worker */\n// unify worker interface\nconst browserWorkerPolyFill = function (workerObj) {\n // node only supports on/off\n workerObj.on = workerObj.addEventListener;\n workerObj.off = workerObj.removeEventListener;\n return workerObj;\n};\nconst createObjectURL = function (str) {\n try {\n return URL.createObjectURL(new Blob([str], {\n type: 'application/javascript'\n }));\n } catch (e) {\n const blob = new BlobBuilder();\n blob.append(str);\n return URL.createObjectURL(blob.getBlob());\n }\n};\nconst factory = function (code) {\n return function () {\n const objectUrl = createObjectURL(code);\n const worker = browserWorkerPolyFill(new Worker(objectUrl));\n worker.objURL = objectUrl;\n const terminate = worker.terminate;\n worker.on = worker.addEventListener;\n worker.off = worker.removeEventListener;\n worker.terminate = function () {\n URL.revokeObjectURL(objectUrl);\n return terminate.call(this);\n };\n return worker;\n };\n};\nconst transform = function (code) {\n return `var browserWorkerPolyFill = ${browserWorkerPolyFill.toString()};\\n` + 'browserWorkerPolyFill(self);\\n' + code;\n};\nconst getWorkerString = function (fn) {\n return fn.toString().replace(/^function.+?{/, '').slice(0, -1);\n};\n\n/* rollup-plugin-worker-factory start for worker!/home/runner/work/http-streaming/http-streaming/src/transmuxer-worker.js */\nconst workerCode$1 = transform(getWorkerString(function () {\n var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * A lightweight readable stream implemention that handles event dispatching.\n * Objects that inherit from streams should call init in their constructors.\n */\n\n var Stream$8 = function () {\n this.init = function () {\n var listeners = {};\n /**\n * Add a listener for a specified event type.\n * @param type {string} the event name\n * @param listener {function} the callback to be invoked when an event of\n * the specified type occurs\n */\n\n this.on = function (type, listener) {\n if (!listeners[type]) {\n listeners[type] = [];\n }\n listeners[type] = listeners[type].concat(listener);\n };\n /**\n * Remove a listener for a specified event type.\n * @param type {string} the event name\n * @param listener {function} a function previously registered for this\n * type of event through `on`\n */\n\n this.off = function (type, listener) {\n var index;\n if (!listeners[type]) {\n return false;\n }\n index = listeners[type].indexOf(listener);\n listeners[type] = listeners[type].slice();\n listeners[type].splice(index, 1);\n return index > -1;\n };\n /**\n * Trigger an event of the specified type on this stream. Any additional\n * arguments to this function are passed as parameters to event listeners.\n * @param type {string} the event name\n */\n\n this.trigger = function (type) {\n var callbacks, i, length, args;\n callbacks = listeners[type];\n if (!callbacks) {\n return;\n } // Slicing the arguments on every invocation of this method\n // can add a significant amount of overhead. Avoid the\n // intermediate object creation for the common case of a\n // single callback argument\n\n if (arguments.length === 2) {\n length = callbacks.length;\n for (i = 0; i < length; ++i) {\n callbacks[i].call(this, arguments[1]);\n }\n } else {\n args = [];\n i = arguments.length;\n for (i = 1; i < arguments.length; ++i) {\n args.push(arguments[i]);\n }\n length = callbacks.length;\n for (i = 0; i < length; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n };\n /**\n * Destroys the stream and cleans up.\n */\n\n this.dispose = function () {\n listeners = {};\n };\n };\n };\n /**\n * Forwards all `data` events on this stream to the destination stream. The\n * destination stream should provide a method `push` to receive the data\n * events as they arrive.\n * @param destination {stream} the stream that will receive all `data` events\n * @param autoFlush {boolean} if false, we will not call `flush` on the destination\n * when the current stream emits a 'done' event\n * @see http://nodejs.org/api/stream.html#stream_readable_pipe_destination_options\n */\n\n Stream$8.prototype.pipe = function (destination) {\n this.on('data', function (data) {\n destination.push(data);\n });\n this.on('done', function (flushSource) {\n destination.flush(flushSource);\n });\n this.on('partialdone', function (flushSource) {\n destination.partialFlush(flushSource);\n });\n this.on('endedtimeline', function (flushSource) {\n destination.endTimeline(flushSource);\n });\n this.on('reset', function (flushSource) {\n destination.reset(flushSource);\n });\n return destination;\n }; // Default stream functions that are expected to be overridden to perform\n // actual work. These are provided by the prototype as a sort of no-op\n // implementation so that we don't have to check for their existence in the\n // `pipe` function above.\n\n Stream$8.prototype.push = function (data) {\n this.trigger('data', data);\n };\n Stream$8.prototype.flush = function (flushSource) {\n this.trigger('done', flushSource);\n };\n Stream$8.prototype.partialFlush = function (flushSource) {\n this.trigger('partialdone', flushSource);\n };\n Stream$8.prototype.endTimeline = function (flushSource) {\n this.trigger('endedtimeline', flushSource);\n };\n Stream$8.prototype.reset = function (flushSource) {\n this.trigger('reset', flushSource);\n };\n var stream = Stream$8;\n var MAX_UINT32$1 = Math.pow(2, 32);\n var getUint64$3 = function (uint8) {\n var dv = new DataView(uint8.buffer, uint8.byteOffset, uint8.byteLength);\n var value;\n if (dv.getBigUint64) {\n value = dv.getBigUint64(0);\n if (value < Number.MAX_SAFE_INTEGER) {\n return Number(value);\n }\n return value;\n }\n return dv.getUint32(0) * MAX_UINT32$1 + dv.getUint32(4);\n };\n var numbers = {\n getUint64: getUint64$3,\n MAX_UINT32: MAX_UINT32$1\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Functions that generate fragmented MP4s suitable for use with Media\n * Source Extensions.\n */\n\n var MAX_UINT32 = numbers.MAX_UINT32;\n var box, dinf, esds, ftyp, mdat, mfhd, minf, moof, moov, mvex, mvhd, trak, tkhd, mdia, mdhd, hdlr, sdtp, stbl, stsd, traf, trex, trun$1, types, MAJOR_BRAND, MINOR_VERSION, AVC1_BRAND, VIDEO_HDLR, AUDIO_HDLR, HDLR_TYPES, VMHD, SMHD, DREF, STCO, STSC, STSZ, STTS; // pre-calculate constants\n\n (function () {\n var i;\n types = {\n avc1: [],\n // codingname\n avcC: [],\n btrt: [],\n dinf: [],\n dref: [],\n esds: [],\n ftyp: [],\n hdlr: [],\n mdat: [],\n mdhd: [],\n mdia: [],\n mfhd: [],\n minf: [],\n moof: [],\n moov: [],\n mp4a: [],\n // codingname\n mvex: [],\n mvhd: [],\n pasp: [],\n sdtp: [],\n smhd: [],\n stbl: [],\n stco: [],\n stsc: [],\n stsd: [],\n stsz: [],\n stts: [],\n styp: [],\n tfdt: [],\n tfhd: [],\n traf: [],\n trak: [],\n trun: [],\n trex: [],\n tkhd: [],\n vmhd: []\n }; // In environments where Uint8Array is undefined (e.g., IE8), skip set up so that we\n // don't throw an error\n\n if (typeof Uint8Array === 'undefined') {\n return;\n }\n for (i in types) {\n if (types.hasOwnProperty(i)) {\n types[i] = [i.charCodeAt(0), i.charCodeAt(1), i.charCodeAt(2), i.charCodeAt(3)];\n }\n }\n MAJOR_BRAND = new Uint8Array(['i'.charCodeAt(0), 's'.charCodeAt(0), 'o'.charCodeAt(0), 'm'.charCodeAt(0)]);\n AVC1_BRAND = new Uint8Array(['a'.charCodeAt(0), 'v'.charCodeAt(0), 'c'.charCodeAt(0), '1'.charCodeAt(0)]);\n MINOR_VERSION = new Uint8Array([0, 0, 0, 1]);\n VIDEO_HDLR = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x00,\n // pre_defined\n 0x76, 0x69, 0x64, 0x65,\n // handler_type: 'vide'\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x56, 0x69, 0x64, 0x65, 0x6f, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x00 // name: 'VideoHandler'\n ]);\n\n AUDIO_HDLR = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x00,\n // pre_defined\n 0x73, 0x6f, 0x75, 0x6e,\n // handler_type: 'soun'\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x53, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x00 // name: 'SoundHandler'\n ]);\n\n HDLR_TYPES = {\n video: VIDEO_HDLR,\n audio: AUDIO_HDLR\n };\n DREF = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x01,\n // entry_count\n 0x00, 0x00, 0x00, 0x0c,\n // entry_size\n 0x75, 0x72, 0x6c, 0x20,\n // 'url' type\n 0x00,\n // version 0\n 0x00, 0x00, 0x01 // entry_flags\n ]);\n\n SMHD = new Uint8Array([0x00,\n // version\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00,\n // balance, 0 means centered\n 0x00, 0x00 // reserved\n ]);\n\n STCO = new Uint8Array([0x00,\n // version\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x00 // entry_count\n ]);\n\n STSC = STCO;\n STSZ = new Uint8Array([0x00,\n // version\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x00,\n // sample_size\n 0x00, 0x00, 0x00, 0x00 // sample_count\n ]);\n\n STTS = STCO;\n VMHD = new Uint8Array([0x00,\n // version\n 0x00, 0x00, 0x01,\n // flags\n 0x00, 0x00,\n // graphicsmode\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // opcolor\n ]);\n })();\n\n box = function (type) {\n var payload = [],\n size = 0,\n i,\n result,\n view;\n for (i = 1; i < arguments.length; i++) {\n payload.push(arguments[i]);\n }\n i = payload.length; // calculate the total size we need to allocate\n\n while (i--) {\n size += payload[i].byteLength;\n }\n result = new Uint8Array(size + 8);\n view = new DataView(result.buffer, result.byteOffset, result.byteLength);\n view.setUint32(0, result.byteLength);\n result.set(type, 4); // copy the payload into the result\n\n for (i = 0, size = 8; i < payload.length; i++) {\n result.set(payload[i], size);\n size += payload[i].byteLength;\n }\n return result;\n };\n dinf = function () {\n return box(types.dinf, box(types.dref, DREF));\n };\n esds = function (track) {\n return box(types.esds, new Uint8Array([0x00,\n // version\n 0x00, 0x00, 0x00,\n // flags\n // ES_Descriptor\n 0x03,\n // tag, ES_DescrTag\n 0x19,\n // length\n 0x00, 0x00,\n // ES_ID\n 0x00,\n // streamDependenceFlag, URL_flag, reserved, streamPriority\n // DecoderConfigDescriptor\n 0x04,\n // tag, DecoderConfigDescrTag\n 0x11,\n // length\n 0x40,\n // object type\n 0x15,\n // streamType\n 0x00, 0x06, 0x00,\n // bufferSizeDB\n 0x00, 0x00, 0xda, 0xc0,\n // maxBitrate\n 0x00, 0x00, 0xda, 0xc0,\n // avgBitrate\n // DecoderSpecificInfo\n 0x05,\n // tag, DecoderSpecificInfoTag\n 0x02,\n // length\n // ISO/IEC 14496-3, AudioSpecificConfig\n // for samplingFrequencyIndex see ISO/IEC 13818-7:2006, 8.1.3.2.2, Table 35\n track.audioobjecttype << 3 | track.samplingfrequencyindex >>> 1, track.samplingfrequencyindex << 7 | track.channelcount << 3, 0x06, 0x01, 0x02 // GASpecificConfig\n ]));\n };\n\n ftyp = function () {\n return box(types.ftyp, MAJOR_BRAND, MINOR_VERSION, MAJOR_BRAND, AVC1_BRAND);\n };\n hdlr = function (type) {\n return box(types.hdlr, HDLR_TYPES[type]);\n };\n mdat = function (data) {\n return box(types.mdat, data);\n };\n mdhd = function (track) {\n var result = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x02,\n // creation_time\n 0x00, 0x00, 0x00, 0x03,\n // modification_time\n 0x00, 0x01, 0x5f, 0x90,\n // timescale, 90,000 \"ticks\" per second\n track.duration >>> 24 & 0xFF, track.duration >>> 16 & 0xFF, track.duration >>> 8 & 0xFF, track.duration & 0xFF,\n // duration\n 0x55, 0xc4,\n // 'und' language (undetermined)\n 0x00, 0x00]); // Use the sample rate from the track metadata, when it is\n // defined. The sample rate can be parsed out of an ADTS header, for\n // instance.\n\n if (track.samplerate) {\n result[12] = track.samplerate >>> 24 & 0xFF;\n result[13] = track.samplerate >>> 16 & 0xFF;\n result[14] = track.samplerate >>> 8 & 0xFF;\n result[15] = track.samplerate & 0xFF;\n }\n return box(types.mdhd, result);\n };\n mdia = function (track) {\n return box(types.mdia, mdhd(track), hdlr(track.type), minf(track));\n };\n mfhd = function (sequenceNumber) {\n return box(types.mfhd, new Uint8Array([0x00, 0x00, 0x00, 0x00,\n // flags\n (sequenceNumber & 0xFF000000) >> 24, (sequenceNumber & 0xFF0000) >> 16, (sequenceNumber & 0xFF00) >> 8, sequenceNumber & 0xFF // sequence_number\n ]));\n };\n\n minf = function (track) {\n return box(types.minf, track.type === 'video' ? box(types.vmhd, VMHD) : box(types.smhd, SMHD), dinf(), stbl(track));\n };\n moof = function (sequenceNumber, tracks) {\n var trackFragments = [],\n i = tracks.length; // build traf boxes for each track fragment\n\n while (i--) {\n trackFragments[i] = traf(tracks[i]);\n }\n return box.apply(null, [types.moof, mfhd(sequenceNumber)].concat(trackFragments));\n };\n /**\n * Returns a movie box.\n * @param tracks {array} the tracks associated with this movie\n * @see ISO/IEC 14496-12:2012(E), section 8.2.1\n */\n\n moov = function (tracks) {\n var i = tracks.length,\n boxes = [];\n while (i--) {\n boxes[i] = trak(tracks[i]);\n }\n return box.apply(null, [types.moov, mvhd(0xffffffff)].concat(boxes).concat(mvex(tracks)));\n };\n mvex = function (tracks) {\n var i = tracks.length,\n boxes = [];\n while (i--) {\n boxes[i] = trex(tracks[i]);\n }\n return box.apply(null, [types.mvex].concat(boxes));\n };\n mvhd = function (duration) {\n var bytes = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x01,\n // creation_time\n 0x00, 0x00, 0x00, 0x02,\n // modification_time\n 0x00, 0x01, 0x5f, 0x90,\n // timescale, 90,000 \"ticks\" per second\n (duration & 0xFF000000) >> 24, (duration & 0xFF0000) >> 16, (duration & 0xFF00) >> 8, duration & 0xFF,\n // duration\n 0x00, 0x01, 0x00, 0x00,\n // 1.0 rate\n 0x01, 0x00,\n // 1.0 volume\n 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,\n // transformation: unity matrix\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n // pre_defined\n 0xff, 0xff, 0xff, 0xff // next_track_ID\n ]);\n\n return box(types.mvhd, bytes);\n };\n sdtp = function (track) {\n var samples = track.samples || [],\n bytes = new Uint8Array(4 + samples.length),\n flags,\n i; // leave the full box header (4 bytes) all zero\n // write the sample table\n\n for (i = 0; i < samples.length; i++) {\n flags = samples[i].flags;\n bytes[i + 4] = flags.dependsOn << 4 | flags.isDependedOn << 2 | flags.hasRedundancy;\n }\n return box(types.sdtp, bytes);\n };\n stbl = function (track) {\n return box(types.stbl, stsd(track), box(types.stts, STTS), box(types.stsc, STSC), box(types.stsz, STSZ), box(types.stco, STCO));\n };\n (function () {\n var videoSample, audioSample;\n stsd = function (track) {\n return box(types.stsd, new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n 0x00, 0x00, 0x00, 0x01]), track.type === 'video' ? videoSample(track) : audioSample(track));\n };\n videoSample = function (track) {\n var sps = track.sps || [],\n pps = track.pps || [],\n sequenceParameterSets = [],\n pictureParameterSets = [],\n i,\n avc1Box; // assemble the SPSs\n\n for (i = 0; i < sps.length; i++) {\n sequenceParameterSets.push((sps[i].byteLength & 0xFF00) >>> 8);\n sequenceParameterSets.push(sps[i].byteLength & 0xFF); // sequenceParameterSetLength\n\n sequenceParameterSets = sequenceParameterSets.concat(Array.prototype.slice.call(sps[i])); // SPS\n } // assemble the PPSs\n\n for (i = 0; i < pps.length; i++) {\n pictureParameterSets.push((pps[i].byteLength & 0xFF00) >>> 8);\n pictureParameterSets.push(pps[i].byteLength & 0xFF);\n pictureParameterSets = pictureParameterSets.concat(Array.prototype.slice.call(pps[i]));\n }\n avc1Box = [types.avc1, new Uint8Array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x01,\n // data_reference_index\n 0x00, 0x00,\n // pre_defined\n 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n // pre_defined\n (track.width & 0xff00) >> 8, track.width & 0xff,\n // width\n (track.height & 0xff00) >> 8, track.height & 0xff,\n // height\n 0x00, 0x48, 0x00, 0x00,\n // horizresolution\n 0x00, 0x48, 0x00, 0x00,\n // vertresolution\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x01,\n // frame_count\n 0x13, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x6a, 0x73, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x2d, 0x68, 0x6c, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n // compressorname\n 0x00, 0x18,\n // depth = 24\n 0x11, 0x11 // pre_defined = -1\n ]), box(types.avcC, new Uint8Array([0x01,\n // configurationVersion\n track.profileIdc,\n // AVCProfileIndication\n track.profileCompatibility,\n // profile_compatibility\n track.levelIdc,\n // AVCLevelIndication\n 0xff // lengthSizeMinusOne, hard-coded to 4 bytes\n ].concat([sps.length],\n // numOfSequenceParameterSets\n sequenceParameterSets,\n // \"SPS\"\n [pps.length],\n // numOfPictureParameterSets\n pictureParameterSets // \"PPS\"\n ))), box(types.btrt, new Uint8Array([0x00, 0x1c, 0x9c, 0x80,\n // bufferSizeDB\n 0x00, 0x2d, 0xc6, 0xc0,\n // maxBitrate\n 0x00, 0x2d, 0xc6, 0xc0 // avgBitrate\n ]))];\n\n if (track.sarRatio) {\n var hSpacing = track.sarRatio[0],\n vSpacing = track.sarRatio[1];\n avc1Box.push(box(types.pasp, new Uint8Array([(hSpacing & 0xFF000000) >> 24, (hSpacing & 0xFF0000) >> 16, (hSpacing & 0xFF00) >> 8, hSpacing & 0xFF, (vSpacing & 0xFF000000) >> 24, (vSpacing & 0xFF0000) >> 16, (vSpacing & 0xFF00) >> 8, vSpacing & 0xFF])));\n }\n return box.apply(null, avc1Box);\n };\n audioSample = function (track) {\n return box(types.mp4a, new Uint8Array([\n // SampleEntry, ISO/IEC 14496-12\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x01,\n // data_reference_index\n // AudioSampleEntry, ISO/IEC 14496-12\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n (track.channelcount & 0xff00) >> 8, track.channelcount & 0xff,\n // channelcount\n (track.samplesize & 0xff00) >> 8, track.samplesize & 0xff,\n // samplesize\n 0x00, 0x00,\n // pre_defined\n 0x00, 0x00,\n // reserved\n (track.samplerate & 0xff00) >> 8, track.samplerate & 0xff, 0x00, 0x00 // samplerate, 16.16\n // MP4AudioSampleEntry, ISO/IEC 14496-14\n ]), esds(track));\n };\n })();\n tkhd = function (track) {\n var result = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x07,\n // flags\n 0x00, 0x00, 0x00, 0x00,\n // creation_time\n 0x00, 0x00, 0x00, 0x00,\n // modification_time\n (track.id & 0xFF000000) >> 24, (track.id & 0xFF0000) >> 16, (track.id & 0xFF00) >> 8, track.id & 0xFF,\n // track_ID\n 0x00, 0x00, 0x00, 0x00,\n // reserved\n (track.duration & 0xFF000000) >> 24, (track.duration & 0xFF0000) >> 16, (track.duration & 0xFF00) >> 8, track.duration & 0xFF,\n // duration\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n // reserved\n 0x00, 0x00,\n // layer\n 0x00, 0x00,\n // alternate_group\n 0x01, 0x00,\n // non-audio track volume\n 0x00, 0x00,\n // reserved\n 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,\n // transformation: unity matrix\n (track.width & 0xFF00) >> 8, track.width & 0xFF, 0x00, 0x00,\n // width\n (track.height & 0xFF00) >> 8, track.height & 0xFF, 0x00, 0x00 // height\n ]);\n\n return box(types.tkhd, result);\n };\n /**\n * Generate a track fragment (traf) box. A traf box collects metadata\n * about tracks in a movie fragment (moof) box.\n */\n\n traf = function (track) {\n var trackFragmentHeader, trackFragmentDecodeTime, trackFragmentRun, sampleDependencyTable, dataOffset, upperWordBaseMediaDecodeTime, lowerWordBaseMediaDecodeTime;\n trackFragmentHeader = box(types.tfhd, new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x3a,\n // flags\n (track.id & 0xFF000000) >> 24, (track.id & 0xFF0000) >> 16, (track.id & 0xFF00) >> 8, track.id & 0xFF,\n // track_ID\n 0x00, 0x00, 0x00, 0x01,\n // sample_description_index\n 0x00, 0x00, 0x00, 0x00,\n // default_sample_duration\n 0x00, 0x00, 0x00, 0x00,\n // default_sample_size\n 0x00, 0x00, 0x00, 0x00 // default_sample_flags\n ]));\n\n upperWordBaseMediaDecodeTime = Math.floor(track.baseMediaDecodeTime / MAX_UINT32);\n lowerWordBaseMediaDecodeTime = Math.floor(track.baseMediaDecodeTime % MAX_UINT32);\n trackFragmentDecodeTime = box(types.tfdt, new Uint8Array([0x01,\n // version 1\n 0x00, 0x00, 0x00,\n // flags\n // baseMediaDecodeTime\n upperWordBaseMediaDecodeTime >>> 24 & 0xFF, upperWordBaseMediaDecodeTime >>> 16 & 0xFF, upperWordBaseMediaDecodeTime >>> 8 & 0xFF, upperWordBaseMediaDecodeTime & 0xFF, lowerWordBaseMediaDecodeTime >>> 24 & 0xFF, lowerWordBaseMediaDecodeTime >>> 16 & 0xFF, lowerWordBaseMediaDecodeTime >>> 8 & 0xFF, lowerWordBaseMediaDecodeTime & 0xFF])); // the data offset specifies the number of bytes from the start of\n // the containing moof to the first payload byte of the associated\n // mdat\n\n dataOffset = 32 +\n // tfhd\n 20 +\n // tfdt\n 8 +\n // traf header\n 16 +\n // mfhd\n 8 +\n // moof header\n 8; // mdat header\n // audio tracks require less metadata\n\n if (track.type === 'audio') {\n trackFragmentRun = trun$1(track, dataOffset);\n return box(types.traf, trackFragmentHeader, trackFragmentDecodeTime, trackFragmentRun);\n } // video tracks should contain an independent and disposable samples\n // box (sdtp)\n // generate one and adjust offsets to match\n\n sampleDependencyTable = sdtp(track);\n trackFragmentRun = trun$1(track, sampleDependencyTable.length + dataOffset);\n return box(types.traf, trackFragmentHeader, trackFragmentDecodeTime, trackFragmentRun, sampleDependencyTable);\n };\n /**\n * Generate a track box.\n * @param track {object} a track definition\n * @return {Uint8Array} the track box\n */\n\n trak = function (track) {\n track.duration = track.duration || 0xffffffff;\n return box(types.trak, tkhd(track), mdia(track));\n };\n trex = function (track) {\n var result = new Uint8Array([0x00,\n // version 0\n 0x00, 0x00, 0x00,\n // flags\n (track.id & 0xFF000000) >> 24, (track.id & 0xFF0000) >> 16, (track.id & 0xFF00) >> 8, track.id & 0xFF,\n // track_ID\n 0x00, 0x00, 0x00, 0x01,\n // default_sample_description_index\n 0x00, 0x00, 0x00, 0x00,\n // default_sample_duration\n 0x00, 0x00, 0x00, 0x00,\n // default_sample_size\n 0x00, 0x01, 0x00, 0x01 // default_sample_flags\n ]); // the last two bytes of default_sample_flags is the sample\n // degradation priority, a hint about the importance of this sample\n // relative to others. Lower the degradation priority for all sample\n // types other than video.\n\n if (track.type !== 'video') {\n result[result.length - 1] = 0x00;\n }\n return box(types.trex, result);\n };\n (function () {\n var audioTrun, videoTrun, trunHeader; // This method assumes all samples are uniform. That is, if a\n // duration is present for the first sample, it will be present for\n // all subsequent samples.\n // see ISO/IEC 14496-12:2012, Section 8.8.8.1\n\n trunHeader = function (samples, offset) {\n var durationPresent = 0,\n sizePresent = 0,\n flagsPresent = 0,\n compositionTimeOffset = 0; // trun flag constants\n\n if (samples.length) {\n if (samples[0].duration !== undefined) {\n durationPresent = 0x1;\n }\n if (samples[0].size !== undefined) {\n sizePresent = 0x2;\n }\n if (samples[0].flags !== undefined) {\n flagsPresent = 0x4;\n }\n if (samples[0].compositionTimeOffset !== undefined) {\n compositionTimeOffset = 0x8;\n }\n }\n return [0x00,\n // version 0\n 0x00, durationPresent | sizePresent | flagsPresent | compositionTimeOffset, 0x01,\n // flags\n (samples.length & 0xFF000000) >>> 24, (samples.length & 0xFF0000) >>> 16, (samples.length & 0xFF00) >>> 8, samples.length & 0xFF,\n // sample_count\n (offset & 0xFF000000) >>> 24, (offset & 0xFF0000) >>> 16, (offset & 0xFF00) >>> 8, offset & 0xFF // data_offset\n ];\n };\n\n videoTrun = function (track, offset) {\n var bytesOffest, bytes, header, samples, sample, i;\n samples = track.samples || [];\n offset += 8 + 12 + 16 * samples.length;\n header = trunHeader(samples, offset);\n bytes = new Uint8Array(header.length + samples.length * 16);\n bytes.set(header);\n bytesOffest = header.length;\n for (i = 0; i < samples.length; i++) {\n sample = samples[i];\n bytes[bytesOffest++] = (sample.duration & 0xFF000000) >>> 24;\n bytes[bytesOffest++] = (sample.duration & 0xFF0000) >>> 16;\n bytes[bytesOffest++] = (sample.duration & 0xFF00) >>> 8;\n bytes[bytesOffest++] = sample.duration & 0xFF; // sample_duration\n\n bytes[bytesOffest++] = (sample.size & 0xFF000000) >>> 24;\n bytes[bytesOffest++] = (sample.size & 0xFF0000) >>> 16;\n bytes[bytesOffest++] = (sample.size & 0xFF00) >>> 8;\n bytes[bytesOffest++] = sample.size & 0xFF; // sample_size\n\n bytes[bytesOffest++] = sample.flags.isLeading << 2 | sample.flags.dependsOn;\n bytes[bytesOffest++] = sample.flags.isDependedOn << 6 | sample.flags.hasRedundancy << 4 | sample.flags.paddingValue << 1 | sample.flags.isNonSyncSample;\n bytes[bytesOffest++] = sample.flags.degradationPriority & 0xF0 << 8;\n bytes[bytesOffest++] = sample.flags.degradationPriority & 0x0F; // sample_flags\n\n bytes[bytesOffest++] = (sample.compositionTimeOffset & 0xFF000000) >>> 24;\n bytes[bytesOffest++] = (sample.compositionTimeOffset & 0xFF0000) >>> 16;\n bytes[bytesOffest++] = (sample.compositionTimeOffset & 0xFF00) >>> 8;\n bytes[bytesOffest++] = sample.compositionTimeOffset & 0xFF; // sample_composition_time_offset\n }\n\n return box(types.trun, bytes);\n };\n audioTrun = function (track, offset) {\n var bytes, bytesOffest, header, samples, sample, i;\n samples = track.samples || [];\n offset += 8 + 12 + 8 * samples.length;\n header = trunHeader(samples, offset);\n bytes = new Uint8Array(header.length + samples.length * 8);\n bytes.set(header);\n bytesOffest = header.length;\n for (i = 0; i < samples.length; i++) {\n sample = samples[i];\n bytes[bytesOffest++] = (sample.duration & 0xFF000000) >>> 24;\n bytes[bytesOffest++] = (sample.duration & 0xFF0000) >>> 16;\n bytes[bytesOffest++] = (sample.duration & 0xFF00) >>> 8;\n bytes[bytesOffest++] = sample.duration & 0xFF; // sample_duration\n\n bytes[bytesOffest++] = (sample.size & 0xFF000000) >>> 24;\n bytes[bytesOffest++] = (sample.size & 0xFF0000) >>> 16;\n bytes[bytesOffest++] = (sample.size & 0xFF00) >>> 8;\n bytes[bytesOffest++] = sample.size & 0xFF; // sample_size\n }\n\n return box(types.trun, bytes);\n };\n trun$1 = function (track, offset) {\n if (track.type === 'audio') {\n return audioTrun(track, offset);\n }\n return videoTrun(track, offset);\n };\n })();\n var mp4Generator = {\n ftyp: ftyp,\n mdat: mdat,\n moof: moof,\n moov: moov,\n initSegment: function (tracks) {\n var fileType = ftyp(),\n movie = moov(tracks),\n result;\n result = new Uint8Array(fileType.byteLength + movie.byteLength);\n result.set(fileType);\n result.set(movie, fileType.byteLength);\n return result;\n }\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n // composed of the nal units that make up that frame\n // Also keep track of cummulative data about the frame from the nal units such\n // as the frame duration, starting pts, etc.\n\n var groupNalsIntoFrames = function (nalUnits) {\n var i,\n currentNal,\n currentFrame = [],\n frames = []; // TODO added for LHLS, make sure this is OK\n\n frames.byteLength = 0;\n frames.nalCount = 0;\n frames.duration = 0;\n currentFrame.byteLength = 0;\n for (i = 0; i < nalUnits.length; i++) {\n currentNal = nalUnits[i]; // Split on 'aud'-type nal units\n\n if (currentNal.nalUnitType === 'access_unit_delimiter_rbsp') {\n // Since the very first nal unit is expected to be an AUD\n // only push to the frames array when currentFrame is not empty\n if (currentFrame.length) {\n currentFrame.duration = currentNal.dts - currentFrame.dts; // TODO added for LHLS, make sure this is OK\n\n frames.byteLength += currentFrame.byteLength;\n frames.nalCount += currentFrame.length;\n frames.duration += currentFrame.duration;\n frames.push(currentFrame);\n }\n currentFrame = [currentNal];\n currentFrame.byteLength = currentNal.data.byteLength;\n currentFrame.pts = currentNal.pts;\n currentFrame.dts = currentNal.dts;\n } else {\n // Specifically flag key frames for ease of use later\n if (currentNal.nalUnitType === 'slice_layer_without_partitioning_rbsp_idr') {\n currentFrame.keyFrame = true;\n }\n currentFrame.duration = currentNal.dts - currentFrame.dts;\n currentFrame.byteLength += currentNal.data.byteLength;\n currentFrame.push(currentNal);\n }\n } // For the last frame, use the duration of the previous frame if we\n // have nothing better to go on\n\n if (frames.length && (!currentFrame.duration || currentFrame.duration <= 0)) {\n currentFrame.duration = frames[frames.length - 1].duration;\n } // Push the final frame\n // TODO added for LHLS, make sure this is OK\n\n frames.byteLength += currentFrame.byteLength;\n frames.nalCount += currentFrame.length;\n frames.duration += currentFrame.duration;\n frames.push(currentFrame);\n return frames;\n }; // Convert an array of frames into an array of Gop with each Gop being composed\n // of the frames that make up that Gop\n // Also keep track of cummulative data about the Gop from the frames such as the\n // Gop duration, starting pts, etc.\n\n var groupFramesIntoGops = function (frames) {\n var i,\n currentFrame,\n currentGop = [],\n gops = []; // We must pre-set some of the values on the Gop since we\n // keep running totals of these values\n\n currentGop.byteLength = 0;\n currentGop.nalCount = 0;\n currentGop.duration = 0;\n currentGop.pts = frames[0].pts;\n currentGop.dts = frames[0].dts; // store some metadata about all the Gops\n\n gops.byteLength = 0;\n gops.nalCount = 0;\n gops.duration = 0;\n gops.pts = frames[0].pts;\n gops.dts = frames[0].dts;\n for (i = 0; i < frames.length; i++) {\n currentFrame = frames[i];\n if (currentFrame.keyFrame) {\n // Since the very first frame is expected to be an keyframe\n // only push to the gops array when currentGop is not empty\n if (currentGop.length) {\n gops.push(currentGop);\n gops.byteLength += currentGop.byteLength;\n gops.nalCount += currentGop.nalCount;\n gops.duration += currentGop.duration;\n }\n currentGop = [currentFrame];\n currentGop.nalCount = currentFrame.length;\n currentGop.byteLength = currentFrame.byteLength;\n currentGop.pts = currentFrame.pts;\n currentGop.dts = currentFrame.dts;\n currentGop.duration = currentFrame.duration;\n } else {\n currentGop.duration += currentFrame.duration;\n currentGop.nalCount += currentFrame.length;\n currentGop.byteLength += currentFrame.byteLength;\n currentGop.push(currentFrame);\n }\n }\n if (gops.length && currentGop.duration <= 0) {\n currentGop.duration = gops[gops.length - 1].duration;\n }\n gops.byteLength += currentGop.byteLength;\n gops.nalCount += currentGop.nalCount;\n gops.duration += currentGop.duration; // push the final Gop\n\n gops.push(currentGop);\n return gops;\n };\n /*\n * Search for the first keyframe in the GOPs and throw away all frames\n * until that keyframe. Then extend the duration of the pulled keyframe\n * and pull the PTS and DTS of the keyframe so that it covers the time\n * range of the frames that were disposed.\n *\n * @param {Array} gops video GOPs\n * @returns {Array} modified video GOPs\n */\n\n var extendFirstKeyFrame = function (gops) {\n var currentGop;\n if (!gops[0][0].keyFrame && gops.length > 1) {\n // Remove the first GOP\n currentGop = gops.shift();\n gops.byteLength -= currentGop.byteLength;\n gops.nalCount -= currentGop.nalCount; // Extend the first frame of what is now the\n // first gop to cover the time period of the\n // frames we just removed\n\n gops[0][0].dts = currentGop.dts;\n gops[0][0].pts = currentGop.pts;\n gops[0][0].duration += currentGop.duration;\n }\n return gops;\n };\n /**\n * Default sample object\n * see ISO/IEC 14496-12:2012, section 8.6.4.3\n */\n\n var createDefaultSample = function () {\n return {\n size: 0,\n flags: {\n isLeading: 0,\n dependsOn: 1,\n isDependedOn: 0,\n hasRedundancy: 0,\n degradationPriority: 0,\n isNonSyncSample: 1\n }\n };\n };\n /*\n * Collates information from a video frame into an object for eventual\n * entry into an MP4 sample table.\n *\n * @param {Object} frame the video frame\n * @param {Number} dataOffset the byte offset to position the sample\n * @return {Object} object containing sample table info for a frame\n */\n\n var sampleForFrame = function (frame, dataOffset) {\n var sample = createDefaultSample();\n sample.dataOffset = dataOffset;\n sample.compositionTimeOffset = frame.pts - frame.dts;\n sample.duration = frame.duration;\n sample.size = 4 * frame.length; // Space for nal unit size\n\n sample.size += frame.byteLength;\n if (frame.keyFrame) {\n sample.flags.dependsOn = 2;\n sample.flags.isNonSyncSample = 0;\n }\n return sample;\n }; // generate the track's sample table from an array of gops\n\n var generateSampleTable$1 = function (gops, baseDataOffset) {\n var h,\n i,\n sample,\n currentGop,\n currentFrame,\n dataOffset = baseDataOffset || 0,\n samples = [];\n for (h = 0; h < gops.length; h++) {\n currentGop = gops[h];\n for (i = 0; i < currentGop.length; i++) {\n currentFrame = currentGop[i];\n sample = sampleForFrame(currentFrame, dataOffset);\n dataOffset += sample.size;\n samples.push(sample);\n }\n }\n return samples;\n }; // generate the track's raw mdat data from an array of gops\n\n var concatenateNalData = function (gops) {\n var h,\n i,\n j,\n currentGop,\n currentFrame,\n currentNal,\n dataOffset = 0,\n nalsByteLength = gops.byteLength,\n numberOfNals = gops.nalCount,\n totalByteLength = nalsByteLength + 4 * numberOfNals,\n data = new Uint8Array(totalByteLength),\n view = new DataView(data.buffer); // For each Gop..\n\n for (h = 0; h < gops.length; h++) {\n currentGop = gops[h]; // For each Frame..\n\n for (i = 0; i < currentGop.length; i++) {\n currentFrame = currentGop[i]; // For each NAL..\n\n for (j = 0; j < currentFrame.length; j++) {\n currentNal = currentFrame[j];\n view.setUint32(dataOffset, currentNal.data.byteLength);\n dataOffset += 4;\n data.set(currentNal.data, dataOffset);\n dataOffset += currentNal.data.byteLength;\n }\n }\n }\n return data;\n }; // generate the track's sample table from a frame\n\n var generateSampleTableForFrame = function (frame, baseDataOffset) {\n var sample,\n dataOffset = baseDataOffset || 0,\n samples = [];\n sample = sampleForFrame(frame, dataOffset);\n samples.push(sample);\n return samples;\n }; // generate the track's raw mdat data from a frame\n\n var concatenateNalDataForFrame = function (frame) {\n var i,\n currentNal,\n dataOffset = 0,\n nalsByteLength = frame.byteLength,\n numberOfNals = frame.length,\n totalByteLength = nalsByteLength + 4 * numberOfNals,\n data = new Uint8Array(totalByteLength),\n view = new DataView(data.buffer); // For each NAL..\n\n for (i = 0; i < frame.length; i++) {\n currentNal = frame[i];\n view.setUint32(dataOffset, currentNal.data.byteLength);\n dataOffset += 4;\n data.set(currentNal.data, dataOffset);\n dataOffset += currentNal.data.byteLength;\n }\n return data;\n };\n var frameUtils$1 = {\n groupNalsIntoFrames: groupNalsIntoFrames,\n groupFramesIntoGops: groupFramesIntoGops,\n extendFirstKeyFrame: extendFirstKeyFrame,\n generateSampleTable: generateSampleTable$1,\n concatenateNalData: concatenateNalData,\n generateSampleTableForFrame: generateSampleTableForFrame,\n concatenateNalDataForFrame: concatenateNalDataForFrame\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var highPrefix = [33, 16, 5, 32, 164, 27];\n var lowPrefix = [33, 65, 108, 84, 1, 2, 4, 8, 168, 2, 4, 8, 17, 191, 252];\n var zeroFill = function (count) {\n var a = [];\n while (count--) {\n a.push(0);\n }\n return a;\n };\n var makeTable = function (metaTable) {\n return Object.keys(metaTable).reduce(function (obj, key) {\n obj[key] = new Uint8Array(metaTable[key].reduce(function (arr, part) {\n return arr.concat(part);\n }, []));\n return obj;\n }, {});\n };\n var silence;\n var silence_1 = function () {\n if (!silence) {\n // Frames-of-silence to use for filling in missing AAC frames\n var coneOfSilence = {\n 96000: [highPrefix, [227, 64], zeroFill(154), [56]],\n 88200: [highPrefix, [231], zeroFill(170), [56]],\n 64000: [highPrefix, [248, 192], zeroFill(240), [56]],\n 48000: [highPrefix, [255, 192], zeroFill(268), [55, 148, 128], zeroFill(54), [112]],\n 44100: [highPrefix, [255, 192], zeroFill(268), [55, 163, 128], zeroFill(84), [112]],\n 32000: [highPrefix, [255, 192], zeroFill(268), [55, 234], zeroFill(226), [112]],\n 24000: [highPrefix, [255, 192], zeroFill(268), [55, 255, 128], zeroFill(268), [111, 112], zeroFill(126), [224]],\n 16000: [highPrefix, [255, 192], zeroFill(268), [55, 255, 128], zeroFill(268), [111, 255], zeroFill(269), [223, 108], zeroFill(195), [1, 192]],\n 12000: [lowPrefix, zeroFill(268), [3, 127, 248], zeroFill(268), [6, 255, 240], zeroFill(268), [13, 255, 224], zeroFill(268), [27, 253, 128], zeroFill(259), [56]],\n 11025: [lowPrefix, zeroFill(268), [3, 127, 248], zeroFill(268), [6, 255, 240], zeroFill(268), [13, 255, 224], zeroFill(268), [27, 255, 192], zeroFill(268), [55, 175, 128], zeroFill(108), [112]],\n 8000: [lowPrefix, zeroFill(268), [3, 121, 16], zeroFill(47), [7]]\n };\n silence = makeTable(coneOfSilence);\n }\n return silence;\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var ONE_SECOND_IN_TS$4 = 90000,\n // 90kHz clock\n secondsToVideoTs,\n secondsToAudioTs,\n videoTsToSeconds,\n audioTsToSeconds,\n audioTsToVideoTs,\n videoTsToAudioTs,\n metadataTsToSeconds;\n secondsToVideoTs = function (seconds) {\n return seconds * ONE_SECOND_IN_TS$4;\n };\n secondsToAudioTs = function (seconds, sampleRate) {\n return seconds * sampleRate;\n };\n videoTsToSeconds = function (timestamp) {\n return timestamp / ONE_SECOND_IN_TS$4;\n };\n audioTsToSeconds = function (timestamp, sampleRate) {\n return timestamp / sampleRate;\n };\n audioTsToVideoTs = function (timestamp, sampleRate) {\n return secondsToVideoTs(audioTsToSeconds(timestamp, sampleRate));\n };\n videoTsToAudioTs = function (timestamp, sampleRate) {\n return secondsToAudioTs(videoTsToSeconds(timestamp), sampleRate);\n };\n /**\n * Adjust ID3 tag or caption timing information by the timeline pts values\n * (if keepOriginalTimestamps is false) and convert to seconds\n */\n\n metadataTsToSeconds = function (timestamp, timelineStartPts, keepOriginalTimestamps) {\n return videoTsToSeconds(keepOriginalTimestamps ? timestamp : timestamp - timelineStartPts);\n };\n var clock$2 = {\n ONE_SECOND_IN_TS: ONE_SECOND_IN_TS$4,\n secondsToVideoTs: secondsToVideoTs,\n secondsToAudioTs: secondsToAudioTs,\n videoTsToSeconds: videoTsToSeconds,\n audioTsToSeconds: audioTsToSeconds,\n audioTsToVideoTs: audioTsToVideoTs,\n videoTsToAudioTs: videoTsToAudioTs,\n metadataTsToSeconds: metadataTsToSeconds\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var coneOfSilence = silence_1;\n var clock$1 = clock$2;\n /**\n * Sum the `byteLength` properties of the data in each AAC frame\n */\n\n var sumFrameByteLengths = function (array) {\n var i,\n currentObj,\n sum = 0; // sum the byteLength's all each nal unit in the frame\n\n for (i = 0; i < array.length; i++) {\n currentObj = array[i];\n sum += currentObj.data.byteLength;\n }\n return sum;\n }; // Possibly pad (prefix) the audio track with silence if appending this track\n // would lead to the introduction of a gap in the audio buffer\n\n var prefixWithSilence = function (track, frames, audioAppendStartTs, videoBaseMediaDecodeTime) {\n var baseMediaDecodeTimeTs,\n frameDuration = 0,\n audioGapDuration = 0,\n audioFillFrameCount = 0,\n audioFillDuration = 0,\n silentFrame,\n i,\n firstFrame;\n if (!frames.length) {\n return;\n }\n baseMediaDecodeTimeTs = clock$1.audioTsToVideoTs(track.baseMediaDecodeTime, track.samplerate); // determine frame clock duration based on sample rate, round up to avoid overfills\n\n frameDuration = Math.ceil(clock$1.ONE_SECOND_IN_TS / (track.samplerate / 1024));\n if (audioAppendStartTs && videoBaseMediaDecodeTime) {\n // insert the shortest possible amount (audio gap or audio to video gap)\n audioGapDuration = baseMediaDecodeTimeTs - Math.max(audioAppendStartTs, videoBaseMediaDecodeTime); // number of full frames in the audio gap\n\n audioFillFrameCount = Math.floor(audioGapDuration / frameDuration);\n audioFillDuration = audioFillFrameCount * frameDuration;\n } // don't attempt to fill gaps smaller than a single frame or larger\n // than a half second\n\n if (audioFillFrameCount < 1 || audioFillDuration > clock$1.ONE_SECOND_IN_TS / 2) {\n return;\n }\n silentFrame = coneOfSilence()[track.samplerate];\n if (!silentFrame) {\n // we don't have a silent frame pregenerated for the sample rate, so use a frame\n // from the content instead\n silentFrame = frames[0].data;\n }\n for (i = 0; i < audioFillFrameCount; i++) {\n firstFrame = frames[0];\n frames.splice(0, 0, {\n data: silentFrame,\n dts: firstFrame.dts - frameDuration,\n pts: firstFrame.pts - frameDuration\n });\n }\n track.baseMediaDecodeTime -= Math.floor(clock$1.videoTsToAudioTs(audioFillDuration, track.samplerate));\n return audioFillDuration;\n }; // If the audio segment extends before the earliest allowed dts\n // value, remove AAC frames until starts at or after the earliest\n // allowed DTS so that we don't end up with a negative baseMedia-\n // DecodeTime for the audio track\n\n var trimAdtsFramesByEarliestDts = function (adtsFrames, track, earliestAllowedDts) {\n if (track.minSegmentDts >= earliestAllowedDts) {\n return adtsFrames;\n } // We will need to recalculate the earliest segment Dts\n\n track.minSegmentDts = Infinity;\n return adtsFrames.filter(function (currentFrame) {\n // If this is an allowed frame, keep it and record it's Dts\n if (currentFrame.dts >= earliestAllowedDts) {\n track.minSegmentDts = Math.min(track.minSegmentDts, currentFrame.dts);\n track.minSegmentPts = track.minSegmentDts;\n return true;\n } // Otherwise, discard it\n\n return false;\n });\n }; // generate the track's raw mdat data from an array of frames\n\n var generateSampleTable = function (frames) {\n var i,\n currentFrame,\n samples = [];\n for (i = 0; i < frames.length; i++) {\n currentFrame = frames[i];\n samples.push({\n size: currentFrame.data.byteLength,\n duration: 1024 // For AAC audio, all samples contain 1024 samples\n });\n }\n\n return samples;\n }; // generate the track's sample table from an array of frames\n\n var concatenateFrameData = function (frames) {\n var i,\n currentFrame,\n dataOffset = 0,\n data = new Uint8Array(sumFrameByteLengths(frames));\n for (i = 0; i < frames.length; i++) {\n currentFrame = frames[i];\n data.set(currentFrame.data, dataOffset);\n dataOffset += currentFrame.data.byteLength;\n }\n return data;\n };\n var audioFrameUtils$1 = {\n prefixWithSilence: prefixWithSilence,\n trimAdtsFramesByEarliestDts: trimAdtsFramesByEarliestDts,\n generateSampleTable: generateSampleTable,\n concatenateFrameData: concatenateFrameData\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var ONE_SECOND_IN_TS$3 = clock$2.ONE_SECOND_IN_TS;\n /**\n * Store information about the start and end of the track and the\n * duration for each frame/sample we process in order to calculate\n * the baseMediaDecodeTime\n */\n\n var collectDtsInfo = function (track, data) {\n if (typeof data.pts === 'number') {\n if (track.timelineStartInfo.pts === undefined) {\n track.timelineStartInfo.pts = data.pts;\n }\n if (track.minSegmentPts === undefined) {\n track.minSegmentPts = data.pts;\n } else {\n track.minSegmentPts = Math.min(track.minSegmentPts, data.pts);\n }\n if (track.maxSegmentPts === undefined) {\n track.maxSegmentPts = data.pts;\n } else {\n track.maxSegmentPts = Math.max(track.maxSegmentPts, data.pts);\n }\n }\n if (typeof data.dts === 'number') {\n if (track.timelineStartInfo.dts === undefined) {\n track.timelineStartInfo.dts = data.dts;\n }\n if (track.minSegmentDts === undefined) {\n track.minSegmentDts = data.dts;\n } else {\n track.minSegmentDts = Math.min(track.minSegmentDts, data.dts);\n }\n if (track.maxSegmentDts === undefined) {\n track.maxSegmentDts = data.dts;\n } else {\n track.maxSegmentDts = Math.max(track.maxSegmentDts, data.dts);\n }\n }\n };\n /**\n * Clear values used to calculate the baseMediaDecodeTime between\n * tracks\n */\n\n var clearDtsInfo = function (track) {\n delete track.minSegmentDts;\n delete track.maxSegmentDts;\n delete track.minSegmentPts;\n delete track.maxSegmentPts;\n };\n /**\n * Calculate the track's baseMediaDecodeTime based on the earliest\n * DTS the transmuxer has ever seen and the minimum DTS for the\n * current track\n * @param track {object} track metadata configuration\n * @param keepOriginalTimestamps {boolean} If true, keep the timestamps\n * in the source; false to adjust the first segment to start at 0.\n */\n\n var calculateTrackBaseMediaDecodeTime = function (track, keepOriginalTimestamps) {\n var baseMediaDecodeTime,\n scale,\n minSegmentDts = track.minSegmentDts; // Optionally adjust the time so the first segment starts at zero.\n\n if (!keepOriginalTimestamps) {\n minSegmentDts -= track.timelineStartInfo.dts;\n } // track.timelineStartInfo.baseMediaDecodeTime is the location, in time, where\n // we want the start of the first segment to be placed\n\n baseMediaDecodeTime = track.timelineStartInfo.baseMediaDecodeTime; // Add to that the distance this segment is from the very first\n\n baseMediaDecodeTime += minSegmentDts; // baseMediaDecodeTime must not become negative\n\n baseMediaDecodeTime = Math.max(0, baseMediaDecodeTime);\n if (track.type === 'audio') {\n // Audio has a different clock equal to the sampling_rate so we need to\n // scale the PTS values into the clock rate of the track\n scale = track.samplerate / ONE_SECOND_IN_TS$3;\n baseMediaDecodeTime *= scale;\n baseMediaDecodeTime = Math.floor(baseMediaDecodeTime);\n }\n return baseMediaDecodeTime;\n };\n var trackDecodeInfo$1 = {\n clearDtsInfo: clearDtsInfo,\n calculateTrackBaseMediaDecodeTime: calculateTrackBaseMediaDecodeTime,\n collectDtsInfo: collectDtsInfo\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Reads in-band caption information from a video elementary\n * stream. Captions must follow the CEA-708 standard for injection\n * into an MPEG-2 transport streams.\n * @see https://en.wikipedia.org/wiki/CEA-708\n * @see https://www.gpo.gov/fdsys/pkg/CFR-2007-title47-vol1/pdf/CFR-2007-title47-vol1-sec15-119.pdf\n */\n // payload type field to indicate how they are to be\n // interpreted. CEAS-708 caption content is always transmitted with\n // payload type 0x04.\n\n var USER_DATA_REGISTERED_ITU_T_T35 = 4,\n RBSP_TRAILING_BITS = 128;\n /**\n * Parse a supplemental enhancement information (SEI) NAL unit.\n * Stops parsing once a message of type ITU T T35 has been found.\n *\n * @param bytes {Uint8Array} the bytes of a SEI NAL unit\n * @return {object} the parsed SEI payload\n * @see Rec. ITU-T H.264, 7.3.2.3.1\n */\n\n var parseSei = function (bytes) {\n var i = 0,\n result = {\n payloadType: -1,\n payloadSize: 0\n },\n payloadType = 0,\n payloadSize = 0; // go through the sei_rbsp parsing each each individual sei_message\n\n while (i < bytes.byteLength) {\n // stop once we have hit the end of the sei_rbsp\n if (bytes[i] === RBSP_TRAILING_BITS) {\n break;\n } // Parse payload type\n\n while (bytes[i] === 0xFF) {\n payloadType += 255;\n i++;\n }\n payloadType += bytes[i++]; // Parse payload size\n\n while (bytes[i] === 0xFF) {\n payloadSize += 255;\n i++;\n }\n payloadSize += bytes[i++]; // this sei_message is a 608/708 caption so save it and break\n // there can only ever be one caption message in a frame's sei\n\n if (!result.payload && payloadType === USER_DATA_REGISTERED_ITU_T_T35) {\n var userIdentifier = String.fromCharCode(bytes[i + 3], bytes[i + 4], bytes[i + 5], bytes[i + 6]);\n if (userIdentifier === 'GA94') {\n result.payloadType = payloadType;\n result.payloadSize = payloadSize;\n result.payload = bytes.subarray(i, i + payloadSize);\n break;\n } else {\n result.payload = void 0;\n }\n } // skip the payload and parse the next message\n\n i += payloadSize;\n payloadType = 0;\n payloadSize = 0;\n }\n return result;\n }; // see ANSI/SCTE 128-1 (2013), section 8.1\n\n var parseUserData = function (sei) {\n // itu_t_t35_contry_code must be 181 (United States) for\n // captions\n if (sei.payload[0] !== 181) {\n return null;\n } // itu_t_t35_provider_code should be 49 (ATSC) for captions\n\n if ((sei.payload[1] << 8 | sei.payload[2]) !== 49) {\n return null;\n } // the user_identifier should be \"GA94\" to indicate ATSC1 data\n\n if (String.fromCharCode(sei.payload[3], sei.payload[4], sei.payload[5], sei.payload[6]) !== 'GA94') {\n return null;\n } // finally, user_data_type_code should be 0x03 for caption data\n\n if (sei.payload[7] !== 0x03) {\n return null;\n } // return the user_data_type_structure and strip the trailing\n // marker bits\n\n return sei.payload.subarray(8, sei.payload.length - 1);\n }; // see CEA-708-D, section 4.4\n\n var parseCaptionPackets = function (pts, userData) {\n var results = [],\n i,\n count,\n offset,\n data; // if this is just filler, return immediately\n\n if (!(userData[0] & 0x40)) {\n return results;\n } // parse out the cc_data_1 and cc_data_2 fields\n\n count = userData[0] & 0x1f;\n for (i = 0; i < count; i++) {\n offset = i * 3;\n data = {\n type: userData[offset + 2] & 0x03,\n pts: pts\n }; // capture cc data when cc_valid is 1\n\n if (userData[offset + 2] & 0x04) {\n data.ccData = userData[offset + 3] << 8 | userData[offset + 4];\n results.push(data);\n }\n }\n return results;\n };\n var discardEmulationPreventionBytes$1 = function (data) {\n var length = data.byteLength,\n emulationPreventionBytesPositions = [],\n i = 1,\n newLength,\n newData; // Find all `Emulation Prevention Bytes`\n\n while (i < length - 2) {\n if (data[i] === 0 && data[i + 1] === 0 && data[i + 2] === 0x03) {\n emulationPreventionBytesPositions.push(i + 2);\n i += 2;\n } else {\n i++;\n }\n } // If no Emulation Prevention Bytes were found just return the original\n // array\n\n if (emulationPreventionBytesPositions.length === 0) {\n return data;\n } // Create a new array to hold the NAL unit data\n\n newLength = length - emulationPreventionBytesPositions.length;\n newData = new Uint8Array(newLength);\n var sourceIndex = 0;\n for (i = 0; i < newLength; sourceIndex++, i++) {\n if (sourceIndex === emulationPreventionBytesPositions[0]) {\n // Skip this byte\n sourceIndex++; // Remove this position index\n\n emulationPreventionBytesPositions.shift();\n }\n newData[i] = data[sourceIndex];\n }\n return newData;\n }; // exports\n\n var captionPacketParser = {\n parseSei: parseSei,\n parseUserData: parseUserData,\n parseCaptionPackets: parseCaptionPackets,\n discardEmulationPreventionBytes: discardEmulationPreventionBytes$1,\n USER_DATA_REGISTERED_ITU_T_T35: USER_DATA_REGISTERED_ITU_T_T35\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Reads in-band caption information from a video elementary\n * stream. Captions must follow the CEA-708 standard for injection\n * into an MPEG-2 transport streams.\n * @see https://en.wikipedia.org/wiki/CEA-708\n * @see https://www.gpo.gov/fdsys/pkg/CFR-2007-title47-vol1/pdf/CFR-2007-title47-vol1-sec15-119.pdf\n */\n // Link To Transport\n // -----------------\n\n var Stream$7 = stream;\n var cea708Parser = captionPacketParser;\n var CaptionStream$2 = function (options) {\n options = options || {};\n CaptionStream$2.prototype.init.call(this); // parse708captions flag, default to true\n\n this.parse708captions_ = typeof options.parse708captions === 'boolean' ? options.parse708captions : true;\n this.captionPackets_ = [];\n this.ccStreams_ = [new Cea608Stream(0, 0),\n // eslint-disable-line no-use-before-define\n new Cea608Stream(0, 1),\n // eslint-disable-line no-use-before-define\n new Cea608Stream(1, 0),\n // eslint-disable-line no-use-before-define\n new Cea608Stream(1, 1) // eslint-disable-line no-use-before-define\n ];\n\n if (this.parse708captions_) {\n this.cc708Stream_ = new Cea708Stream({\n captionServices: options.captionServices\n }); // eslint-disable-line no-use-before-define\n }\n\n this.reset(); // forward data and done events from CCs to this CaptionStream\n\n this.ccStreams_.forEach(function (cc) {\n cc.on('data', this.trigger.bind(this, 'data'));\n cc.on('partialdone', this.trigger.bind(this, 'partialdone'));\n cc.on('done', this.trigger.bind(this, 'done'));\n }, this);\n if (this.parse708captions_) {\n this.cc708Stream_.on('data', this.trigger.bind(this, 'data'));\n this.cc708Stream_.on('partialdone', this.trigger.bind(this, 'partialdone'));\n this.cc708Stream_.on('done', this.trigger.bind(this, 'done'));\n }\n };\n CaptionStream$2.prototype = new Stream$7();\n CaptionStream$2.prototype.push = function (event) {\n var sei, userData, newCaptionPackets; // only examine SEI NALs\n\n if (event.nalUnitType !== 'sei_rbsp') {\n return;\n } // parse the sei\n\n sei = cea708Parser.parseSei(event.escapedRBSP); // no payload data, skip\n\n if (!sei.payload) {\n return;\n } // ignore everything but user_data_registered_itu_t_t35\n\n if (sei.payloadType !== cea708Parser.USER_DATA_REGISTERED_ITU_T_T35) {\n return;\n } // parse out the user data payload\n\n userData = cea708Parser.parseUserData(sei); // ignore unrecognized userData\n\n if (!userData) {\n return;\n } // Sometimes, the same segment # will be downloaded twice. To stop the\n // caption data from being processed twice, we track the latest dts we've\n // received and ignore everything with a dts before that. However, since\n // data for a specific dts can be split across packets on either side of\n // a segment boundary, we need to make sure we *don't* ignore the packets\n // from the *next* segment that have dts === this.latestDts_. By constantly\n // tracking the number of packets received with dts === this.latestDts_, we\n // know how many should be ignored once we start receiving duplicates.\n\n if (event.dts < this.latestDts_) {\n // We've started getting older data, so set the flag.\n this.ignoreNextEqualDts_ = true;\n return;\n } else if (event.dts === this.latestDts_ && this.ignoreNextEqualDts_) {\n this.numSameDts_--;\n if (!this.numSameDts_) {\n // We've received the last duplicate packet, time to start processing again\n this.ignoreNextEqualDts_ = false;\n }\n return;\n } // parse out CC data packets and save them for later\n\n newCaptionPackets = cea708Parser.parseCaptionPackets(event.pts, userData);\n this.captionPackets_ = this.captionPackets_.concat(newCaptionPackets);\n if (this.latestDts_ !== event.dts) {\n this.numSameDts_ = 0;\n }\n this.numSameDts_++;\n this.latestDts_ = event.dts;\n };\n CaptionStream$2.prototype.flushCCStreams = function (flushType) {\n this.ccStreams_.forEach(function (cc) {\n return flushType === 'flush' ? cc.flush() : cc.partialFlush();\n }, this);\n };\n CaptionStream$2.prototype.flushStream = function (flushType) {\n // make sure we actually parsed captions before proceeding\n if (!this.captionPackets_.length) {\n this.flushCCStreams(flushType);\n return;\n } // In Chrome, the Array#sort function is not stable so add a\n // presortIndex that we can use to ensure we get a stable-sort\n\n this.captionPackets_.forEach(function (elem, idx) {\n elem.presortIndex = idx;\n }); // sort caption byte-pairs based on their PTS values\n\n this.captionPackets_.sort(function (a, b) {\n if (a.pts === b.pts) {\n return a.presortIndex - b.presortIndex;\n }\n return a.pts - b.pts;\n });\n this.captionPackets_.forEach(function (packet) {\n if (packet.type < 2) {\n // Dispatch packet to the right Cea608Stream\n this.dispatchCea608Packet(packet);\n } else {\n // Dispatch packet to the Cea708Stream\n this.dispatchCea708Packet(packet);\n }\n }, this);\n this.captionPackets_.length = 0;\n this.flushCCStreams(flushType);\n };\n CaptionStream$2.prototype.flush = function () {\n return this.flushStream('flush');\n }; // Only called if handling partial data\n\n CaptionStream$2.prototype.partialFlush = function () {\n return this.flushStream('partialFlush');\n };\n CaptionStream$2.prototype.reset = function () {\n this.latestDts_ = null;\n this.ignoreNextEqualDts_ = false;\n this.numSameDts_ = 0;\n this.activeCea608Channel_ = [null, null];\n this.ccStreams_.forEach(function (ccStream) {\n ccStream.reset();\n });\n }; // From the CEA-608 spec:\n\n /*\n * When XDS sub-packets are interleaved with other services, the end of each sub-packet shall be followed\n * by a control pair to change to a different service. When any of the control codes from 0x10 to 0x1F is\n * used to begin a control code pair, it indicates the return to captioning or Text data. The control code pair\n * and subsequent data should then be processed according to the FCC rules. It may be necessary for the\n * line 21 data encoder to automatically insert a control code pair (i.e. RCL, RU2, RU3, RU4, RDC, or RTD)\n * to switch to captioning or Text.\n */\n // With that in mind, we ignore any data between an XDS control code and a\n // subsequent closed-captioning control code.\n\n CaptionStream$2.prototype.dispatchCea608Packet = function (packet) {\n // NOTE: packet.type is the CEA608 field\n if (this.setsTextOrXDSActive(packet)) {\n this.activeCea608Channel_[packet.type] = null;\n } else if (this.setsChannel1Active(packet)) {\n this.activeCea608Channel_[packet.type] = 0;\n } else if (this.setsChannel2Active(packet)) {\n this.activeCea608Channel_[packet.type] = 1;\n }\n if (this.activeCea608Channel_[packet.type] === null) {\n // If we haven't received anything to set the active channel, or the\n // packets are Text/XDS data, discard the data; we don't want jumbled\n // captions\n return;\n }\n this.ccStreams_[(packet.type << 1) + this.activeCea608Channel_[packet.type]].push(packet);\n };\n CaptionStream$2.prototype.setsChannel1Active = function (packet) {\n return (packet.ccData & 0x7800) === 0x1000;\n };\n CaptionStream$2.prototype.setsChannel2Active = function (packet) {\n return (packet.ccData & 0x7800) === 0x1800;\n };\n CaptionStream$2.prototype.setsTextOrXDSActive = function (packet) {\n return (packet.ccData & 0x7100) === 0x0100 || (packet.ccData & 0x78fe) === 0x102a || (packet.ccData & 0x78fe) === 0x182a;\n };\n CaptionStream$2.prototype.dispatchCea708Packet = function (packet) {\n if (this.parse708captions_) {\n this.cc708Stream_.push(packet);\n }\n }; // ----------------------\n // Session to Application\n // ----------------------\n // This hash maps special and extended character codes to their\n // proper Unicode equivalent. The first one-byte key is just a\n // non-standard character code. The two-byte keys that follow are\n // the extended CEA708 character codes, along with the preceding\n // 0x10 extended character byte to distinguish these codes from\n // non-extended character codes. Every CEA708 character code that\n // is not in this object maps directly to a standard unicode\n // character code.\n // The transparent space and non-breaking transparent space are\n // technically not fully supported since there is no code to\n // make them transparent, so they have normal non-transparent\n // stand-ins.\n // The special closed caption (CC) character isn't a standard\n // unicode character, so a fairly similar unicode character was\n // chosen in it's place.\n\n var CHARACTER_TRANSLATION_708 = {\n 0x7f: 0x266a,\n // ♪\n 0x1020: 0x20,\n // Transparent Space\n 0x1021: 0xa0,\n // Nob-breaking Transparent Space\n 0x1025: 0x2026,\n // …\n 0x102a: 0x0160,\n // Š\n 0x102c: 0x0152,\n // Œ\n 0x1030: 0x2588,\n // █\n 0x1031: 0x2018,\n // ‘\n 0x1032: 0x2019,\n // ’\n 0x1033: 0x201c,\n // “\n 0x1034: 0x201d,\n // ”\n 0x1035: 0x2022,\n // •\n 0x1039: 0x2122,\n // ™\n 0x103a: 0x0161,\n // š\n 0x103c: 0x0153,\n // œ\n 0x103d: 0x2120,\n // ℠\n 0x103f: 0x0178,\n // Ÿ\n 0x1076: 0x215b,\n // ⅛\n 0x1077: 0x215c,\n // ⅜\n 0x1078: 0x215d,\n // ⅝\n 0x1079: 0x215e,\n // ⅞\n 0x107a: 0x23d0,\n // ⏐\n 0x107b: 0x23a4,\n // ⎤\n 0x107c: 0x23a3,\n // ⎣\n 0x107d: 0x23af,\n // ⎯\n 0x107e: 0x23a6,\n // ⎦\n 0x107f: 0x23a1,\n // ⎡\n 0x10a0: 0x3138 // ㄸ (CC char)\n };\n\n var get708CharFromCode = function (code) {\n var newCode = CHARACTER_TRANSLATION_708[code] || code;\n if (code & 0x1000 && code === newCode) {\n // Invalid extended code\n return '';\n }\n return String.fromCharCode(newCode);\n };\n var within708TextBlock = function (b) {\n return 0x20 <= b && b <= 0x7f || 0xa0 <= b && b <= 0xff;\n };\n var Cea708Window = function (windowNum) {\n this.windowNum = windowNum;\n this.reset();\n };\n Cea708Window.prototype.reset = function () {\n this.clearText();\n this.pendingNewLine = false;\n this.winAttr = {};\n this.penAttr = {};\n this.penLoc = {};\n this.penColor = {}; // These default values are arbitrary,\n // defineWindow will usually override them\n\n this.visible = 0;\n this.rowLock = 0;\n this.columnLock = 0;\n this.priority = 0;\n this.relativePositioning = 0;\n this.anchorVertical = 0;\n this.anchorHorizontal = 0;\n this.anchorPoint = 0;\n this.rowCount = 1;\n this.virtualRowCount = this.rowCount + 1;\n this.columnCount = 41;\n this.windowStyle = 0;\n this.penStyle = 0;\n };\n Cea708Window.prototype.getText = function () {\n return this.rows.join('\\n');\n };\n Cea708Window.prototype.clearText = function () {\n this.rows = [''];\n this.rowIdx = 0;\n };\n Cea708Window.prototype.newLine = function (pts) {\n if (this.rows.length >= this.virtualRowCount && typeof this.beforeRowOverflow === 'function') {\n this.beforeRowOverflow(pts);\n }\n if (this.rows.length > 0) {\n this.rows.push('');\n this.rowIdx++;\n } // Show all virtual rows since there's no visible scrolling\n\n while (this.rows.length > this.virtualRowCount) {\n this.rows.shift();\n this.rowIdx--;\n }\n };\n Cea708Window.prototype.isEmpty = function () {\n if (this.rows.length === 0) {\n return true;\n } else if (this.rows.length === 1) {\n return this.rows[0] === '';\n }\n return false;\n };\n Cea708Window.prototype.addText = function (text) {\n this.rows[this.rowIdx] += text;\n };\n Cea708Window.prototype.backspace = function () {\n if (!this.isEmpty()) {\n var row = this.rows[this.rowIdx];\n this.rows[this.rowIdx] = row.substr(0, row.length - 1);\n }\n };\n var Cea708Service = function (serviceNum, encoding, stream) {\n this.serviceNum = serviceNum;\n this.text = '';\n this.currentWindow = new Cea708Window(-1);\n this.windows = [];\n this.stream = stream; // Try to setup a TextDecoder if an `encoding` value was provided\n\n if (typeof encoding === 'string') {\n this.createTextDecoder(encoding);\n }\n };\n /**\n * Initialize service windows\n * Must be run before service use\n *\n * @param {Integer} pts PTS value\n * @param {Function} beforeRowOverflow Function to execute before row overflow of a window\n */\n\n Cea708Service.prototype.init = function (pts, beforeRowOverflow) {\n this.startPts = pts;\n for (var win = 0; win < 8; win++) {\n this.windows[win] = new Cea708Window(win);\n if (typeof beforeRowOverflow === 'function') {\n this.windows[win].beforeRowOverflow = beforeRowOverflow;\n }\n }\n };\n /**\n * Set current window of service to be affected by commands\n *\n * @param {Integer} windowNum Window number\n */\n\n Cea708Service.prototype.setCurrentWindow = function (windowNum) {\n this.currentWindow = this.windows[windowNum];\n };\n /**\n * Try to create a TextDecoder if it is natively supported\n */\n\n Cea708Service.prototype.createTextDecoder = function (encoding) {\n if (typeof TextDecoder === 'undefined') {\n this.stream.trigger('log', {\n level: 'warn',\n message: 'The `encoding` option is unsupported without TextDecoder support'\n });\n } else {\n try {\n this.textDecoder_ = new TextDecoder(encoding);\n } catch (error) {\n this.stream.trigger('log', {\n level: 'warn',\n message: 'TextDecoder could not be created with ' + encoding + ' encoding. ' + error\n });\n }\n }\n };\n var Cea708Stream = function (options) {\n options = options || {};\n Cea708Stream.prototype.init.call(this);\n var self = this;\n var captionServices = options.captionServices || {};\n var captionServiceEncodings = {};\n var serviceProps; // Get service encodings from captionServices option block\n\n Object.keys(captionServices).forEach(serviceName => {\n serviceProps = captionServices[serviceName];\n if (/^SERVICE/.test(serviceName)) {\n captionServiceEncodings[serviceName] = serviceProps.encoding;\n }\n });\n this.serviceEncodings = captionServiceEncodings;\n this.current708Packet = null;\n this.services = {};\n this.push = function (packet) {\n if (packet.type === 3) {\n // 708 packet start\n self.new708Packet();\n self.add708Bytes(packet);\n } else {\n if (self.current708Packet === null) {\n // This should only happen at the start of a file if there's no packet start.\n self.new708Packet();\n }\n self.add708Bytes(packet);\n }\n };\n };\n Cea708Stream.prototype = new Stream$7();\n /**\n * Push current 708 packet, create new 708 packet.\n */\n\n Cea708Stream.prototype.new708Packet = function () {\n if (this.current708Packet !== null) {\n this.push708Packet();\n }\n this.current708Packet = {\n data: [],\n ptsVals: []\n };\n };\n /**\n * Add pts and both bytes from packet into current 708 packet.\n */\n\n Cea708Stream.prototype.add708Bytes = function (packet) {\n var data = packet.ccData;\n var byte0 = data >>> 8;\n var byte1 = data & 0xff; // I would just keep a list of packets instead of bytes, but it isn't clear in the spec\n // that service blocks will always line up with byte pairs.\n\n this.current708Packet.ptsVals.push(packet.pts);\n this.current708Packet.data.push(byte0);\n this.current708Packet.data.push(byte1);\n };\n /**\n * Parse completed 708 packet into service blocks and push each service block.\n */\n\n Cea708Stream.prototype.push708Packet = function () {\n var packet708 = this.current708Packet;\n var packetData = packet708.data;\n var serviceNum = null;\n var blockSize = null;\n var i = 0;\n var b = packetData[i++];\n packet708.seq = b >> 6;\n packet708.sizeCode = b & 0x3f; // 0b00111111;\n\n for (; i < packetData.length; i++) {\n b = packetData[i++];\n serviceNum = b >> 5;\n blockSize = b & 0x1f; // 0b00011111\n\n if (serviceNum === 7 && blockSize > 0) {\n // Extended service num\n b = packetData[i++];\n serviceNum = b;\n }\n this.pushServiceBlock(serviceNum, i, blockSize);\n if (blockSize > 0) {\n i += blockSize - 1;\n }\n }\n };\n /**\n * Parse service block, execute commands, read text.\n *\n * Note: While many of these commands serve important purposes,\n * many others just parse out the parameters or attributes, but\n * nothing is done with them because this is not a full and complete\n * implementation of the entire 708 spec.\n *\n * @param {Integer} serviceNum Service number\n * @param {Integer} start Start index of the 708 packet data\n * @param {Integer} size Block size\n */\n\n Cea708Stream.prototype.pushServiceBlock = function (serviceNum, start, size) {\n var b;\n var i = start;\n var packetData = this.current708Packet.data;\n var service = this.services[serviceNum];\n if (!service) {\n service = this.initService(serviceNum, i);\n }\n for (; i < start + size && i < packetData.length; i++) {\n b = packetData[i];\n if (within708TextBlock(b)) {\n i = this.handleText(i, service);\n } else if (b === 0x18) {\n i = this.multiByteCharacter(i, service);\n } else if (b === 0x10) {\n i = this.extendedCommands(i, service);\n } else if (0x80 <= b && b <= 0x87) {\n i = this.setCurrentWindow(i, service);\n } else if (0x98 <= b && b <= 0x9f) {\n i = this.defineWindow(i, service);\n } else if (b === 0x88) {\n i = this.clearWindows(i, service);\n } else if (b === 0x8c) {\n i = this.deleteWindows(i, service);\n } else if (b === 0x89) {\n i = this.displayWindows(i, service);\n } else if (b === 0x8a) {\n i = this.hideWindows(i, service);\n } else if (b === 0x8b) {\n i = this.toggleWindows(i, service);\n } else if (b === 0x97) {\n i = this.setWindowAttributes(i, service);\n } else if (b === 0x90) {\n i = this.setPenAttributes(i, service);\n } else if (b === 0x91) {\n i = this.setPenColor(i, service);\n } else if (b === 0x92) {\n i = this.setPenLocation(i, service);\n } else if (b === 0x8f) {\n service = this.reset(i, service);\n } else if (b === 0x08) {\n // BS: Backspace\n service.currentWindow.backspace();\n } else if (b === 0x0c) {\n // FF: Form feed\n service.currentWindow.clearText();\n } else if (b === 0x0d) {\n // CR: Carriage return\n service.currentWindow.pendingNewLine = true;\n } else if (b === 0x0e) {\n // HCR: Horizontal carriage return\n service.currentWindow.clearText();\n } else if (b === 0x8d) {\n // DLY: Delay, nothing to do\n i++;\n } else ;\n }\n };\n /**\n * Execute an extended command\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.extendedCommands = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[++i];\n if (within708TextBlock(b)) {\n i = this.handleText(i, service, {\n isExtended: true\n });\n }\n return i;\n };\n /**\n * Get PTS value of a given byte index\n *\n * @param {Integer} byteIndex Index of the byte\n * @return {Integer} PTS\n */\n\n Cea708Stream.prototype.getPts = function (byteIndex) {\n // There's 1 pts value per 2 bytes\n return this.current708Packet.ptsVals[Math.floor(byteIndex / 2)];\n };\n /**\n * Initializes a service\n *\n * @param {Integer} serviceNum Service number\n * @return {Service} Initialized service object\n */\n\n Cea708Stream.prototype.initService = function (serviceNum, i) {\n var serviceName = 'SERVICE' + serviceNum;\n var self = this;\n var serviceName;\n var encoding;\n if (serviceName in this.serviceEncodings) {\n encoding = this.serviceEncodings[serviceName];\n }\n this.services[serviceNum] = new Cea708Service(serviceNum, encoding, self);\n this.services[serviceNum].init(this.getPts(i), function (pts) {\n self.flushDisplayed(pts, self.services[serviceNum]);\n });\n return this.services[serviceNum];\n };\n /**\n * Execute text writing to current window\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.handleText = function (i, service, options) {\n var isExtended = options && options.isExtended;\n var isMultiByte = options && options.isMultiByte;\n var packetData = this.current708Packet.data;\n var extended = isExtended ? 0x1000 : 0x0000;\n var currentByte = packetData[i];\n var nextByte = packetData[i + 1];\n var win = service.currentWindow;\n var char;\n var charCodeArray; // Converts an array of bytes to a unicode hex string.\n\n function toHexString(byteArray) {\n return byteArray.map(byte => {\n return ('0' + (byte & 0xFF).toString(16)).slice(-2);\n }).join('');\n }\n if (isMultiByte) {\n charCodeArray = [currentByte, nextByte];\n i++;\n } else {\n charCodeArray = [currentByte];\n } // Use the TextDecoder if one was created for this service\n\n if (service.textDecoder_ && !isExtended) {\n char = service.textDecoder_.decode(new Uint8Array(charCodeArray));\n } else {\n // We assume any multi-byte char without a decoder is unicode.\n if (isMultiByte) {\n const unicode = toHexString(charCodeArray); // Takes a unicode hex string and creates a single character.\n\n char = String.fromCharCode(parseInt(unicode, 16));\n } else {\n char = get708CharFromCode(extended | currentByte);\n }\n }\n if (win.pendingNewLine && !win.isEmpty()) {\n win.newLine(this.getPts(i));\n }\n win.pendingNewLine = false;\n win.addText(char);\n return i;\n };\n /**\n * Handle decoding of multibyte character\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.multiByteCharacter = function (i, service) {\n var packetData = this.current708Packet.data;\n var firstByte = packetData[i + 1];\n var secondByte = packetData[i + 2];\n if (within708TextBlock(firstByte) && within708TextBlock(secondByte)) {\n i = this.handleText(++i, service, {\n isMultiByte: true\n });\n }\n return i;\n };\n /**\n * Parse and execute the CW# command.\n *\n * Set the current window.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.setCurrentWindow = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[i];\n var windowNum = b & 0x07;\n service.setCurrentWindow(windowNum);\n return i;\n };\n /**\n * Parse and execute the DF# command.\n *\n * Define a window and set it as the current window.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.defineWindow = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[i];\n var windowNum = b & 0x07;\n service.setCurrentWindow(windowNum);\n var win = service.currentWindow;\n b = packetData[++i];\n win.visible = (b & 0x20) >> 5; // v\n\n win.rowLock = (b & 0x10) >> 4; // rl\n\n win.columnLock = (b & 0x08) >> 3; // cl\n\n win.priority = b & 0x07; // p\n\n b = packetData[++i];\n win.relativePositioning = (b & 0x80) >> 7; // rp\n\n win.anchorVertical = b & 0x7f; // av\n\n b = packetData[++i];\n win.anchorHorizontal = b; // ah\n\n b = packetData[++i];\n win.anchorPoint = (b & 0xf0) >> 4; // ap\n\n win.rowCount = b & 0x0f; // rc\n\n b = packetData[++i];\n win.columnCount = b & 0x3f; // cc\n\n b = packetData[++i];\n win.windowStyle = (b & 0x38) >> 3; // ws\n\n win.penStyle = b & 0x07; // ps\n // The spec says there are (rowCount+1) \"virtual rows\"\n\n win.virtualRowCount = win.rowCount + 1;\n return i;\n };\n /**\n * Parse and execute the SWA command.\n *\n * Set attributes of the current window.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.setWindowAttributes = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[i];\n var winAttr = service.currentWindow.winAttr;\n b = packetData[++i];\n winAttr.fillOpacity = (b & 0xc0) >> 6; // fo\n\n winAttr.fillRed = (b & 0x30) >> 4; // fr\n\n winAttr.fillGreen = (b & 0x0c) >> 2; // fg\n\n winAttr.fillBlue = b & 0x03; // fb\n\n b = packetData[++i];\n winAttr.borderType = (b & 0xc0) >> 6; // bt\n\n winAttr.borderRed = (b & 0x30) >> 4; // br\n\n winAttr.borderGreen = (b & 0x0c) >> 2; // bg\n\n winAttr.borderBlue = b & 0x03; // bb\n\n b = packetData[++i];\n winAttr.borderType += (b & 0x80) >> 5; // bt\n\n winAttr.wordWrap = (b & 0x40) >> 6; // ww\n\n winAttr.printDirection = (b & 0x30) >> 4; // pd\n\n winAttr.scrollDirection = (b & 0x0c) >> 2; // sd\n\n winAttr.justify = b & 0x03; // j\n\n b = packetData[++i];\n winAttr.effectSpeed = (b & 0xf0) >> 4; // es\n\n winAttr.effectDirection = (b & 0x0c) >> 2; // ed\n\n winAttr.displayEffect = b & 0x03; // de\n\n return i;\n };\n /**\n * Gather text from all displayed windows and push a caption to output.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n */\n\n Cea708Stream.prototype.flushDisplayed = function (pts, service) {\n var displayedText = []; // TODO: Positioning not supported, displaying multiple windows will not necessarily\n // display text in the correct order, but sample files so far have not shown any issue.\n\n for (var winId = 0; winId < 8; winId++) {\n if (service.windows[winId].visible && !service.windows[winId].isEmpty()) {\n displayedText.push(service.windows[winId].getText());\n }\n }\n service.endPts = pts;\n service.text = displayedText.join('\\n\\n');\n this.pushCaption(service);\n service.startPts = pts;\n };\n /**\n * Push a caption to output if the caption contains text.\n *\n * @param {Service} service The service object to be affected\n */\n\n Cea708Stream.prototype.pushCaption = function (service) {\n if (service.text !== '') {\n this.trigger('data', {\n startPts: service.startPts,\n endPts: service.endPts,\n text: service.text,\n stream: 'cc708_' + service.serviceNum\n });\n service.text = '';\n service.startPts = service.endPts;\n }\n };\n /**\n * Parse and execute the DSW command.\n *\n * Set visible property of windows based on the parsed bitmask.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.displayWindows = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[++i];\n var pts = this.getPts(i);\n this.flushDisplayed(pts, service);\n for (var winId = 0; winId < 8; winId++) {\n if (b & 0x01 << winId) {\n service.windows[winId].visible = 1;\n }\n }\n return i;\n };\n /**\n * Parse and execute the HDW command.\n *\n * Set visible property of windows based on the parsed bitmask.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.hideWindows = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[++i];\n var pts = this.getPts(i);\n this.flushDisplayed(pts, service);\n for (var winId = 0; winId < 8; winId++) {\n if (b & 0x01 << winId) {\n service.windows[winId].visible = 0;\n }\n }\n return i;\n };\n /**\n * Parse and execute the TGW command.\n *\n * Set visible property of windows based on the parsed bitmask.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.toggleWindows = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[++i];\n var pts = this.getPts(i);\n this.flushDisplayed(pts, service);\n for (var winId = 0; winId < 8; winId++) {\n if (b & 0x01 << winId) {\n service.windows[winId].visible ^= 1;\n }\n }\n return i;\n };\n /**\n * Parse and execute the CLW command.\n *\n * Clear text of windows based on the parsed bitmask.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.clearWindows = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[++i];\n var pts = this.getPts(i);\n this.flushDisplayed(pts, service);\n for (var winId = 0; winId < 8; winId++) {\n if (b & 0x01 << winId) {\n service.windows[winId].clearText();\n }\n }\n return i;\n };\n /**\n * Parse and execute the DLW command.\n *\n * Re-initialize windows based on the parsed bitmask.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.deleteWindows = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[++i];\n var pts = this.getPts(i);\n this.flushDisplayed(pts, service);\n for (var winId = 0; winId < 8; winId++) {\n if (b & 0x01 << winId) {\n service.windows[winId].reset();\n }\n }\n return i;\n };\n /**\n * Parse and execute the SPA command.\n *\n * Set pen attributes of the current window.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.setPenAttributes = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[i];\n var penAttr = service.currentWindow.penAttr;\n b = packetData[++i];\n penAttr.textTag = (b & 0xf0) >> 4; // tt\n\n penAttr.offset = (b & 0x0c) >> 2; // o\n\n penAttr.penSize = b & 0x03; // s\n\n b = packetData[++i];\n penAttr.italics = (b & 0x80) >> 7; // i\n\n penAttr.underline = (b & 0x40) >> 6; // u\n\n penAttr.edgeType = (b & 0x38) >> 3; // et\n\n penAttr.fontStyle = b & 0x07; // fs\n\n return i;\n };\n /**\n * Parse and execute the SPC command.\n *\n * Set pen color of the current window.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.setPenColor = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[i];\n var penColor = service.currentWindow.penColor;\n b = packetData[++i];\n penColor.fgOpacity = (b & 0xc0) >> 6; // fo\n\n penColor.fgRed = (b & 0x30) >> 4; // fr\n\n penColor.fgGreen = (b & 0x0c) >> 2; // fg\n\n penColor.fgBlue = b & 0x03; // fb\n\n b = packetData[++i];\n penColor.bgOpacity = (b & 0xc0) >> 6; // bo\n\n penColor.bgRed = (b & 0x30) >> 4; // br\n\n penColor.bgGreen = (b & 0x0c) >> 2; // bg\n\n penColor.bgBlue = b & 0x03; // bb\n\n b = packetData[++i];\n penColor.edgeRed = (b & 0x30) >> 4; // er\n\n penColor.edgeGreen = (b & 0x0c) >> 2; // eg\n\n penColor.edgeBlue = b & 0x03; // eb\n\n return i;\n };\n /**\n * Parse and execute the SPL command.\n *\n * Set pen location of the current window.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Integer} New index after parsing\n */\n\n Cea708Stream.prototype.setPenLocation = function (i, service) {\n var packetData = this.current708Packet.data;\n var b = packetData[i];\n var penLoc = service.currentWindow.penLoc; // Positioning isn't really supported at the moment, so this essentially just inserts a linebreak\n\n service.currentWindow.pendingNewLine = true;\n b = packetData[++i];\n penLoc.row = b & 0x0f; // r\n\n b = packetData[++i];\n penLoc.column = b & 0x3f; // c\n\n return i;\n };\n /**\n * Execute the RST command.\n *\n * Reset service to a clean slate. Re-initialize.\n *\n * @param {Integer} i Current index in the 708 packet\n * @param {Service} service The service object to be affected\n * @return {Service} Re-initialized service\n */\n\n Cea708Stream.prototype.reset = function (i, service) {\n var pts = this.getPts(i);\n this.flushDisplayed(pts, service);\n return this.initService(service.serviceNum, i);\n }; // This hash maps non-ASCII, special, and extended character codes to their\n // proper Unicode equivalent. The first keys that are only a single byte\n // are the non-standard ASCII characters, which simply map the CEA608 byte\n // to the standard ASCII/Unicode. The two-byte keys that follow are the CEA608\n // character codes, but have their MSB bitmasked with 0x03 so that a lookup\n // can be performed regardless of the field and data channel on which the\n // character code was received.\n\n var CHARACTER_TRANSLATION = {\n 0x2a: 0xe1,\n // á\n 0x5c: 0xe9,\n // é\n 0x5e: 0xed,\n // í\n 0x5f: 0xf3,\n // ó\n 0x60: 0xfa,\n // ú\n 0x7b: 0xe7,\n // ç\n 0x7c: 0xf7,\n // ÷\n 0x7d: 0xd1,\n // Ñ\n 0x7e: 0xf1,\n // ñ\n 0x7f: 0x2588,\n // █\n 0x0130: 0xae,\n // ®\n 0x0131: 0xb0,\n // °\n 0x0132: 0xbd,\n // ½\n 0x0133: 0xbf,\n // ¿\n 0x0134: 0x2122,\n // ™\n 0x0135: 0xa2,\n // ¢\n 0x0136: 0xa3,\n // £\n 0x0137: 0x266a,\n // ♪\n 0x0138: 0xe0,\n // à\n 0x0139: 0xa0,\n //\n 0x013a: 0xe8,\n // è\n 0x013b: 0xe2,\n // â\n 0x013c: 0xea,\n // ê\n 0x013d: 0xee,\n // î\n 0x013e: 0xf4,\n // ô\n 0x013f: 0xfb,\n // û\n 0x0220: 0xc1,\n // Á\n 0x0221: 0xc9,\n // É\n 0x0222: 0xd3,\n // Ó\n 0x0223: 0xda,\n // Ú\n 0x0224: 0xdc,\n // Ü\n 0x0225: 0xfc,\n // ü\n 0x0226: 0x2018,\n // ‘\n 0x0227: 0xa1,\n // ¡\n 0x0228: 0x2a,\n // *\n 0x0229: 0x27,\n // '\n 0x022a: 0x2014,\n // —\n 0x022b: 0xa9,\n // ©\n 0x022c: 0x2120,\n // ℠\n 0x022d: 0x2022,\n // •\n 0x022e: 0x201c,\n // “\n 0x022f: 0x201d,\n // ”\n 0x0230: 0xc0,\n // À\n 0x0231: 0xc2,\n // Â\n 0x0232: 0xc7,\n // Ç\n 0x0233: 0xc8,\n // È\n 0x0234: 0xca,\n // Ê\n 0x0235: 0xcb,\n // Ë\n 0x0236: 0xeb,\n // ë\n 0x0237: 0xce,\n // Î\n 0x0238: 0xcf,\n // Ï\n 0x0239: 0xef,\n // ï\n 0x023a: 0xd4,\n // Ô\n 0x023b: 0xd9,\n // Ù\n 0x023c: 0xf9,\n // ù\n 0x023d: 0xdb,\n // Û\n 0x023e: 0xab,\n // «\n 0x023f: 0xbb,\n // »\n 0x0320: 0xc3,\n // Ã\n 0x0321: 0xe3,\n // ã\n 0x0322: 0xcd,\n // Í\n 0x0323: 0xcc,\n // Ì\n 0x0324: 0xec,\n // ì\n 0x0325: 0xd2,\n // Ò\n 0x0326: 0xf2,\n // ò\n 0x0327: 0xd5,\n // Õ\n 0x0328: 0xf5,\n // õ\n 0x0329: 0x7b,\n // {\n 0x032a: 0x7d,\n // }\n 0x032b: 0x5c,\n // \\\n 0x032c: 0x5e,\n // ^\n 0x032d: 0x5f,\n // _\n 0x032e: 0x7c,\n // |\n 0x032f: 0x7e,\n // ~\n 0x0330: 0xc4,\n // Ä\n 0x0331: 0xe4,\n // ä\n 0x0332: 0xd6,\n // Ö\n 0x0333: 0xf6,\n // ö\n 0x0334: 0xdf,\n // ß\n 0x0335: 0xa5,\n // ¥\n 0x0336: 0xa4,\n // ¤\n 0x0337: 0x2502,\n // │\n 0x0338: 0xc5,\n // Å\n 0x0339: 0xe5,\n // å\n 0x033a: 0xd8,\n // Ø\n 0x033b: 0xf8,\n // ø\n 0x033c: 0x250c,\n // ┌\n 0x033d: 0x2510,\n // ┐\n 0x033e: 0x2514,\n // └\n 0x033f: 0x2518 // ┘\n };\n\n var getCharFromCode = function (code) {\n if (code === null) {\n return '';\n }\n code = CHARACTER_TRANSLATION[code] || code;\n return String.fromCharCode(code);\n }; // the index of the last row in a CEA-608 display buffer\n\n var BOTTOM_ROW = 14; // This array is used for mapping PACs -> row #, since there's no way of\n // getting it through bit logic.\n\n var ROWS = [0x1100, 0x1120, 0x1200, 0x1220, 0x1500, 0x1520, 0x1600, 0x1620, 0x1700, 0x1720, 0x1000, 0x1300, 0x1320, 0x1400, 0x1420]; // CEA-608 captions are rendered onto a 34x15 matrix of character\n // cells. The \"bottom\" row is the last element in the outer array.\n // We keep track of positioning information as we go by storing the\n // number of indentations and the tab offset in this buffer.\n\n var createDisplayBuffer = function () {\n var result = [],\n i = BOTTOM_ROW + 1;\n while (i--) {\n result.push({\n text: '',\n indent: 0,\n offset: 0\n });\n }\n return result;\n };\n var Cea608Stream = function (field, dataChannel) {\n Cea608Stream.prototype.init.call(this);\n this.field_ = field || 0;\n this.dataChannel_ = dataChannel || 0;\n this.name_ = 'CC' + ((this.field_ << 1 | this.dataChannel_) + 1);\n this.setConstants();\n this.reset();\n this.push = function (packet) {\n var data, swap, char0, char1, text; // remove the parity bits\n\n data = packet.ccData & 0x7f7f; // ignore duplicate control codes; the spec demands they're sent twice\n\n if (data === this.lastControlCode_) {\n this.lastControlCode_ = null;\n return;\n } // Store control codes\n\n if ((data & 0xf000) === 0x1000) {\n this.lastControlCode_ = data;\n } else if (data !== this.PADDING_) {\n this.lastControlCode_ = null;\n }\n char0 = data >>> 8;\n char1 = data & 0xff;\n if (data === this.PADDING_) {\n return;\n } else if (data === this.RESUME_CAPTION_LOADING_) {\n this.mode_ = 'popOn';\n } else if (data === this.END_OF_CAPTION_) {\n // If an EOC is received while in paint-on mode, the displayed caption\n // text should be swapped to non-displayed memory as if it was a pop-on\n // caption. Because of that, we should explicitly switch back to pop-on\n // mode\n this.mode_ = 'popOn';\n this.clearFormatting(packet.pts); // if a caption was being displayed, it's gone now\n\n this.flushDisplayed(packet.pts); // flip memory\n\n swap = this.displayed_;\n this.displayed_ = this.nonDisplayed_;\n this.nonDisplayed_ = swap; // start measuring the time to display the caption\n\n this.startPts_ = packet.pts;\n } else if (data === this.ROLL_UP_2_ROWS_) {\n this.rollUpRows_ = 2;\n this.setRollUp(packet.pts);\n } else if (data === this.ROLL_UP_3_ROWS_) {\n this.rollUpRows_ = 3;\n this.setRollUp(packet.pts);\n } else if (data === this.ROLL_UP_4_ROWS_) {\n this.rollUpRows_ = 4;\n this.setRollUp(packet.pts);\n } else if (data === this.CARRIAGE_RETURN_) {\n this.clearFormatting(packet.pts);\n this.flushDisplayed(packet.pts);\n this.shiftRowsUp_();\n this.startPts_ = packet.pts;\n } else if (data === this.BACKSPACE_) {\n if (this.mode_ === 'popOn') {\n this.nonDisplayed_[this.row_].text = this.nonDisplayed_[this.row_].text.slice(0, -1);\n } else {\n this.displayed_[this.row_].text = this.displayed_[this.row_].text.slice(0, -1);\n }\n } else if (data === this.ERASE_DISPLAYED_MEMORY_) {\n this.flushDisplayed(packet.pts);\n this.displayed_ = createDisplayBuffer();\n } else if (data === this.ERASE_NON_DISPLAYED_MEMORY_) {\n this.nonDisplayed_ = createDisplayBuffer();\n } else if (data === this.RESUME_DIRECT_CAPTIONING_) {\n if (this.mode_ !== 'paintOn') {\n // NOTE: This should be removed when proper caption positioning is\n // implemented\n this.flushDisplayed(packet.pts);\n this.displayed_ = createDisplayBuffer();\n }\n this.mode_ = 'paintOn';\n this.startPts_ = packet.pts; // Append special characters to caption text\n } else if (this.isSpecialCharacter(char0, char1)) {\n // Bitmask char0 so that we can apply character transformations\n // regardless of field and data channel.\n // Then byte-shift to the left and OR with char1 so we can pass the\n // entire character code to `getCharFromCode`.\n char0 = (char0 & 0x03) << 8;\n text = getCharFromCode(char0 | char1);\n this[this.mode_](packet.pts, text);\n this.column_++; // Append extended characters to caption text\n } else if (this.isExtCharacter(char0, char1)) {\n // Extended characters always follow their \"non-extended\" equivalents.\n // IE if a \"è\" is desired, you'll always receive \"eè\"; non-compliant\n // decoders are supposed to drop the \"è\", while compliant decoders\n // backspace the \"e\" and insert \"è\".\n // Delete the previous character\n if (this.mode_ === 'popOn') {\n this.nonDisplayed_[this.row_].text = this.nonDisplayed_[this.row_].text.slice(0, -1);\n } else {\n this.displayed_[this.row_].text = this.displayed_[this.row_].text.slice(0, -1);\n } // Bitmask char0 so that we can apply character transformations\n // regardless of field and data channel.\n // Then byte-shift to the left and OR with char1 so we can pass the\n // entire character code to `getCharFromCode`.\n\n char0 = (char0 & 0x03) << 8;\n text = getCharFromCode(char0 | char1);\n this[this.mode_](packet.pts, text);\n this.column_++; // Process mid-row codes\n } else if (this.isMidRowCode(char0, char1)) {\n // Attributes are not additive, so clear all formatting\n this.clearFormatting(packet.pts); // According to the standard, mid-row codes\n // should be replaced with spaces, so add one now\n\n this[this.mode_](packet.pts, ' ');\n this.column_++;\n if ((char1 & 0xe) === 0xe) {\n this.addFormatting(packet.pts, ['i']);\n }\n if ((char1 & 0x1) === 0x1) {\n this.addFormatting(packet.pts, ['u']);\n } // Detect offset control codes and adjust cursor\n } else if (this.isOffsetControlCode(char0, char1)) {\n // Cursor position is set by indent PAC (see below) in 4-column\n // increments, with an additional offset code of 1-3 to reach any\n // of the 32 columns specified by CEA-608. So all we need to do\n // here is increment the column cursor by the given offset.\n const offset = char1 & 0x03; // For an offest value 1-3, set the offset for that caption\n // in the non-displayed array.\n\n this.nonDisplayed_[this.row_].offset = offset;\n this.column_ += offset; // Detect PACs (Preamble Address Codes)\n } else if (this.isPAC(char0, char1)) {\n // There's no logic for PAC -> row mapping, so we have to just\n // find the row code in an array and use its index :(\n var row = ROWS.indexOf(data & 0x1f20); // Configure the caption window if we're in roll-up mode\n\n if (this.mode_ === 'rollUp') {\n // This implies that the base row is incorrectly set.\n // As per the recommendation in CEA-608(Base Row Implementation), defer to the number\n // of roll-up rows set.\n if (row - this.rollUpRows_ + 1 < 0) {\n row = this.rollUpRows_ - 1;\n }\n this.setRollUp(packet.pts, row);\n }\n if (row !== this.row_) {\n // formatting is only persistent for current row\n this.clearFormatting(packet.pts);\n this.row_ = row;\n } // All PACs can apply underline, so detect and apply\n // (All odd-numbered second bytes set underline)\n\n if (char1 & 0x1 && this.formatting_.indexOf('u') === -1) {\n this.addFormatting(packet.pts, ['u']);\n }\n if ((data & 0x10) === 0x10) {\n // We've got an indent level code. Each successive even number\n // increments the column cursor by 4, so we can get the desired\n // column position by bit-shifting to the right (to get n/2)\n // and multiplying by 4.\n const indentations = (data & 0xe) >> 1;\n this.column_ = indentations * 4; // add to the number of indentations for positioning\n\n this.nonDisplayed_[this.row_].indent += indentations;\n }\n if (this.isColorPAC(char1)) {\n // it's a color code, though we only support white, which\n // can be either normal or italicized. white italics can be\n // either 0x4e or 0x6e depending on the row, so we just\n // bitwise-and with 0xe to see if italics should be turned on\n if ((char1 & 0xe) === 0xe) {\n this.addFormatting(packet.pts, ['i']);\n }\n } // We have a normal character in char0, and possibly one in char1\n } else if (this.isNormalChar(char0)) {\n if (char1 === 0x00) {\n char1 = null;\n }\n text = getCharFromCode(char0);\n text += getCharFromCode(char1);\n this[this.mode_](packet.pts, text);\n this.column_ += text.length;\n } // finish data processing\n };\n };\n\n Cea608Stream.prototype = new Stream$7(); // Trigger a cue point that captures the current state of the\n // display buffer\n\n Cea608Stream.prototype.flushDisplayed = function (pts) {\n const logWarning = index => {\n this.trigger('log', {\n level: 'warn',\n message: 'Skipping a malformed 608 caption at index ' + index + '.'\n });\n };\n const content = [];\n this.displayed_.forEach((row, i) => {\n if (row && row.text && row.text.length) {\n try {\n // remove spaces from the start and end of the string\n row.text = row.text.trim();\n } catch (e) {\n // Ordinarily, this shouldn't happen. However, caption\n // parsing errors should not throw exceptions and\n // break playback.\n logWarning(i);\n } // See the below link for more details on the following fields:\n // https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/608toVTT.html#positioning-in-cea-608\n\n if (row.text.length) {\n content.push({\n // The text to be displayed in the caption from this specific row, with whitespace removed.\n text: row.text,\n // Value between 1 and 15 representing the PAC row used to calculate line height.\n line: i + 1,\n // A number representing the indent position by percentage (CEA-608 PAC indent code).\n // The value will be a number between 10 and 80. Offset is used to add an aditional\n // value to the position if necessary.\n position: 10 + Math.min(70, row.indent * 10) + row.offset * 2.5\n });\n }\n } else if (row === undefined || row === null) {\n logWarning(i);\n }\n });\n if (content.length) {\n this.trigger('data', {\n startPts: this.startPts_,\n endPts: pts,\n content,\n stream: this.name_\n });\n }\n };\n /**\n * Zero out the data, used for startup and on seek\n */\n\n Cea608Stream.prototype.reset = function () {\n this.mode_ = 'popOn'; // When in roll-up mode, the index of the last row that will\n // actually display captions. If a caption is shifted to a row\n // with a lower index than this, it is cleared from the display\n // buffer\n\n this.topRow_ = 0;\n this.startPts_ = 0;\n this.displayed_ = createDisplayBuffer();\n this.nonDisplayed_ = createDisplayBuffer();\n this.lastControlCode_ = null; // Track row and column for proper line-breaking and spacing\n\n this.column_ = 0;\n this.row_ = BOTTOM_ROW;\n this.rollUpRows_ = 2; // This variable holds currently-applied formatting\n\n this.formatting_ = [];\n };\n /**\n * Sets up control code and related constants for this instance\n */\n\n Cea608Stream.prototype.setConstants = function () {\n // The following attributes have these uses:\n // ext_ : char0 for mid-row codes, and the base for extended\n // chars (ext_+0, ext_+1, and ext_+2 are char0s for\n // extended codes)\n // control_: char0 for control codes, except byte-shifted to the\n // left so that we can do this.control_ | CONTROL_CODE\n // offset_: char0 for tab offset codes\n //\n // It's also worth noting that control codes, and _only_ control codes,\n // differ between field 1 and field2. Field 2 control codes are always\n // their field 1 value plus 1. That's why there's the \"| field\" on the\n // control value.\n if (this.dataChannel_ === 0) {\n this.BASE_ = 0x10;\n this.EXT_ = 0x11;\n this.CONTROL_ = (0x14 | this.field_) << 8;\n this.OFFSET_ = 0x17;\n } else if (this.dataChannel_ === 1) {\n this.BASE_ = 0x18;\n this.EXT_ = 0x19;\n this.CONTROL_ = (0x1c | this.field_) << 8;\n this.OFFSET_ = 0x1f;\n } // Constants for the LSByte command codes recognized by Cea608Stream. This\n // list is not exhaustive. For a more comprehensive listing and semantics see\n // http://www.gpo.gov/fdsys/pkg/CFR-2010-title47-vol1/pdf/CFR-2010-title47-vol1-sec15-119.pdf\n // Padding\n\n this.PADDING_ = 0x0000; // Pop-on Mode\n\n this.RESUME_CAPTION_LOADING_ = this.CONTROL_ | 0x20;\n this.END_OF_CAPTION_ = this.CONTROL_ | 0x2f; // Roll-up Mode\n\n this.ROLL_UP_2_ROWS_ = this.CONTROL_ | 0x25;\n this.ROLL_UP_3_ROWS_ = this.CONTROL_ | 0x26;\n this.ROLL_UP_4_ROWS_ = this.CONTROL_ | 0x27;\n this.CARRIAGE_RETURN_ = this.CONTROL_ | 0x2d; // paint-on mode\n\n this.RESUME_DIRECT_CAPTIONING_ = this.CONTROL_ | 0x29; // Erasure\n\n this.BACKSPACE_ = this.CONTROL_ | 0x21;\n this.ERASE_DISPLAYED_MEMORY_ = this.CONTROL_ | 0x2c;\n this.ERASE_NON_DISPLAYED_MEMORY_ = this.CONTROL_ | 0x2e;\n };\n /**\n * Detects if the 2-byte packet data is a special character\n *\n * Special characters have a second byte in the range 0x30 to 0x3f,\n * with the first byte being 0x11 (for data channel 1) or 0x19 (for\n * data channel 2).\n *\n * @param {Integer} char0 The first byte\n * @param {Integer} char1 The second byte\n * @return {Boolean} Whether the 2 bytes are an special character\n */\n\n Cea608Stream.prototype.isSpecialCharacter = function (char0, char1) {\n return char0 === this.EXT_ && char1 >= 0x30 && char1 <= 0x3f;\n };\n /**\n * Detects if the 2-byte packet data is an extended character\n *\n * Extended characters have a second byte in the range 0x20 to 0x3f,\n * with the first byte being 0x12 or 0x13 (for data channel 1) or\n * 0x1a or 0x1b (for data channel 2).\n *\n * @param {Integer} char0 The first byte\n * @param {Integer} char1 The second byte\n * @return {Boolean} Whether the 2 bytes are an extended character\n */\n\n Cea608Stream.prototype.isExtCharacter = function (char0, char1) {\n return (char0 === this.EXT_ + 1 || char0 === this.EXT_ + 2) && char1 >= 0x20 && char1 <= 0x3f;\n };\n /**\n * Detects if the 2-byte packet is a mid-row code\n *\n * Mid-row codes have a second byte in the range 0x20 to 0x2f, with\n * the first byte being 0x11 (for data channel 1) or 0x19 (for data\n * channel 2).\n *\n * @param {Integer} char0 The first byte\n * @param {Integer} char1 The second byte\n * @return {Boolean} Whether the 2 bytes are a mid-row code\n */\n\n Cea608Stream.prototype.isMidRowCode = function (char0, char1) {\n return char0 === this.EXT_ && char1 >= 0x20 && char1 <= 0x2f;\n };\n /**\n * Detects if the 2-byte packet is an offset control code\n *\n * Offset control codes have a second byte in the range 0x21 to 0x23,\n * with the first byte being 0x17 (for data channel 1) or 0x1f (for\n * data channel 2).\n *\n * @param {Integer} char0 The first byte\n * @param {Integer} char1 The second byte\n * @return {Boolean} Whether the 2 bytes are an offset control code\n */\n\n Cea608Stream.prototype.isOffsetControlCode = function (char0, char1) {\n return char0 === this.OFFSET_ && char1 >= 0x21 && char1 <= 0x23;\n };\n /**\n * Detects if the 2-byte packet is a Preamble Address Code\n *\n * PACs have a first byte in the range 0x10 to 0x17 (for data channel 1)\n * or 0x18 to 0x1f (for data channel 2), with the second byte in the\n * range 0x40 to 0x7f.\n *\n * @param {Integer} char0 The first byte\n * @param {Integer} char1 The second byte\n * @return {Boolean} Whether the 2 bytes are a PAC\n */\n\n Cea608Stream.prototype.isPAC = function (char0, char1) {\n return char0 >= this.BASE_ && char0 < this.BASE_ + 8 && char1 >= 0x40 && char1 <= 0x7f;\n };\n /**\n * Detects if a packet's second byte is in the range of a PAC color code\n *\n * PAC color codes have the second byte be in the range 0x40 to 0x4f, or\n * 0x60 to 0x6f.\n *\n * @param {Integer} char1 The second byte\n * @return {Boolean} Whether the byte is a color PAC\n */\n\n Cea608Stream.prototype.isColorPAC = function (char1) {\n return char1 >= 0x40 && char1 <= 0x4f || char1 >= 0x60 && char1 <= 0x7f;\n };\n /**\n * Detects if a single byte is in the range of a normal character\n *\n * Normal text bytes are in the range 0x20 to 0x7f.\n *\n * @param {Integer} char The byte\n * @return {Boolean} Whether the byte is a normal character\n */\n\n Cea608Stream.prototype.isNormalChar = function (char) {\n return char >= 0x20 && char <= 0x7f;\n };\n /**\n * Configures roll-up\n *\n * @param {Integer} pts Current PTS\n * @param {Integer} newBaseRow Used by PACs to slide the current window to\n * a new position\n */\n\n Cea608Stream.prototype.setRollUp = function (pts, newBaseRow) {\n // Reset the base row to the bottom row when switching modes\n if (this.mode_ !== 'rollUp') {\n this.row_ = BOTTOM_ROW;\n this.mode_ = 'rollUp'; // Spec says to wipe memories when switching to roll-up\n\n this.flushDisplayed(pts);\n this.nonDisplayed_ = createDisplayBuffer();\n this.displayed_ = createDisplayBuffer();\n }\n if (newBaseRow !== undefined && newBaseRow !== this.row_) {\n // move currently displayed captions (up or down) to the new base row\n for (var i = 0; i < this.rollUpRows_; i++) {\n this.displayed_[newBaseRow - i] = this.displayed_[this.row_ - i];\n this.displayed_[this.row_ - i] = {\n text: '',\n indent: 0,\n offset: 0\n };\n }\n }\n if (newBaseRow === undefined) {\n newBaseRow = this.row_;\n }\n this.topRow_ = newBaseRow - this.rollUpRows_ + 1;\n }; // Adds the opening HTML tag for the passed character to the caption text,\n // and keeps track of it for later closing\n\n Cea608Stream.prototype.addFormatting = function (pts, format) {\n this.formatting_ = this.formatting_.concat(format);\n var text = format.reduce(function (text, format) {\n return text + '<' + format + '>';\n }, '');\n this[this.mode_](pts, text);\n }; // Adds HTML closing tags for current formatting to caption text and\n // clears remembered formatting\n\n Cea608Stream.prototype.clearFormatting = function (pts) {\n if (!this.formatting_.length) {\n return;\n }\n var text = this.formatting_.reverse().reduce(function (text, format) {\n return text + '' + format + '>';\n }, '');\n this.formatting_ = [];\n this[this.mode_](pts, text);\n }; // Mode Implementations\n\n Cea608Stream.prototype.popOn = function (pts, text) {\n var baseRow = this.nonDisplayed_[this.row_].text; // buffer characters\n\n baseRow += text;\n this.nonDisplayed_[this.row_].text = baseRow;\n };\n Cea608Stream.prototype.rollUp = function (pts, text) {\n var baseRow = this.displayed_[this.row_].text;\n baseRow += text;\n this.displayed_[this.row_].text = baseRow;\n };\n Cea608Stream.prototype.shiftRowsUp_ = function () {\n var i; // clear out inactive rows\n\n for (i = 0; i < this.topRow_; i++) {\n this.displayed_[i] = {\n text: '',\n indent: 0,\n offset: 0\n };\n }\n for (i = this.row_ + 1; i < BOTTOM_ROW + 1; i++) {\n this.displayed_[i] = {\n text: '',\n indent: 0,\n offset: 0\n };\n } // shift displayed rows up\n\n for (i = this.topRow_; i < this.row_; i++) {\n this.displayed_[i] = this.displayed_[i + 1];\n } // clear out the bottom row\n\n this.displayed_[this.row_] = {\n text: '',\n indent: 0,\n offset: 0\n };\n };\n Cea608Stream.prototype.paintOn = function (pts, text) {\n var baseRow = this.displayed_[this.row_].text;\n baseRow += text;\n this.displayed_[this.row_].text = baseRow;\n }; // exports\n\n var captionStream = {\n CaptionStream: CaptionStream$2,\n Cea608Stream: Cea608Stream,\n Cea708Stream: Cea708Stream\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var streamTypes = {\n H264_STREAM_TYPE: 0x1B,\n ADTS_STREAM_TYPE: 0x0F,\n METADATA_STREAM_TYPE: 0x15\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Accepts program elementary stream (PES) data events and corrects\n * decode and presentation time stamps to account for a rollover\n * of the 33 bit value.\n */\n\n var Stream$6 = stream;\n var MAX_TS = 8589934592;\n var RO_THRESH = 4294967296;\n var TYPE_SHARED = 'shared';\n var handleRollover$1 = function (value, reference) {\n var direction = 1;\n if (value > reference) {\n // If the current timestamp value is greater than our reference timestamp and we detect a\n // timestamp rollover, this means the roll over is happening in the opposite direction.\n // Example scenario: Enter a long stream/video just after a rollover occurred. The reference\n // point will be set to a small number, e.g. 1. The user then seeks backwards over the\n // rollover point. In loading this segment, the timestamp values will be very large,\n // e.g. 2^33 - 1. Since this comes before the data we loaded previously, we want to adjust\n // the time stamp to be `value - 2^33`.\n direction = -1;\n } // Note: A seek forwards or back that is greater than the RO_THRESH (2^32, ~13 hours) will\n // cause an incorrect adjustment.\n\n while (Math.abs(reference - value) > RO_THRESH) {\n value += direction * MAX_TS;\n }\n return value;\n };\n var TimestampRolloverStream$1 = function (type) {\n var lastDTS, referenceDTS;\n TimestampRolloverStream$1.prototype.init.call(this); // The \"shared\" type is used in cases where a stream will contain muxed\n // video and audio. We could use `undefined` here, but having a string\n // makes debugging a little clearer.\n\n this.type_ = type || TYPE_SHARED;\n this.push = function (data) {\n /**\n * Rollover stream expects data from elementary stream.\n * Elementary stream can push forward 2 types of data\n * - Parsed Video/Audio/Timed-metadata PES (packetized elementary stream) packets\n * - Tracks metadata from PMT (Program Map Table)\n * Rollover stream expects pts/dts info to be available, since it stores lastDTS\n * We should ignore non-PES packets since they may override lastDTS to undefined.\n * lastDTS is important to signal the next segments\n * about rollover from the previous segments.\n */\n if (data.type === 'metadata') {\n this.trigger('data', data);\n return;\n } // Any \"shared\" rollover streams will accept _all_ data. Otherwise,\n // streams will only accept data that matches their type.\n\n if (this.type_ !== TYPE_SHARED && data.type !== this.type_) {\n return;\n }\n if (referenceDTS === undefined) {\n referenceDTS = data.dts;\n }\n data.dts = handleRollover$1(data.dts, referenceDTS);\n data.pts = handleRollover$1(data.pts, referenceDTS);\n lastDTS = data.dts;\n this.trigger('data', data);\n };\n this.flush = function () {\n referenceDTS = lastDTS;\n this.trigger('done');\n };\n this.endTimeline = function () {\n this.flush();\n this.trigger('endedtimeline');\n };\n this.discontinuity = function () {\n referenceDTS = void 0;\n lastDTS = void 0;\n };\n this.reset = function () {\n this.discontinuity();\n this.trigger('reset');\n };\n };\n TimestampRolloverStream$1.prototype = new Stream$6();\n var timestampRolloverStream = {\n TimestampRolloverStream: TimestampRolloverStream$1,\n handleRollover: handleRollover$1\n }; // Once IE11 support is dropped, this function should be removed.\n\n var typedArrayIndexOf$1 = (typedArray, element, fromIndex) => {\n if (!typedArray) {\n return -1;\n }\n var currentIndex = fromIndex;\n for (; currentIndex < typedArray.length; currentIndex++) {\n if (typedArray[currentIndex] === element) {\n return currentIndex;\n }\n }\n return -1;\n };\n var typedArray = {\n typedArrayIndexOf: typedArrayIndexOf$1\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Tools for parsing ID3 frame data\n * @see http://id3.org/id3v2.3.0\n */\n\n var typedArrayIndexOf = typedArray.typedArrayIndexOf,\n // Frames that allow different types of text encoding contain a text\n // encoding description byte [ID3v2.4.0 section 4.]\n textEncodingDescriptionByte = {\n Iso88591: 0x00,\n // ISO-8859-1, terminated with \\0.\n Utf16: 0x01,\n // UTF-16 encoded Unicode BOM, terminated with \\0\\0\n Utf16be: 0x02,\n // UTF-16BE encoded Unicode, without BOM, terminated with \\0\\0\n Utf8: 0x03 // UTF-8 encoded Unicode, terminated with \\0\n },\n // return a percent-encoded representation of the specified byte range\n // @see http://en.wikipedia.org/wiki/Percent-encoding \n percentEncode$1 = function (bytes, start, end) {\n var i,\n result = '';\n for (i = start; i < end; i++) {\n result += '%' + ('00' + bytes[i].toString(16)).slice(-2);\n }\n return result;\n },\n // return the string representation of the specified byte range,\n // interpreted as UTf-8.\n parseUtf8 = function (bytes, start, end) {\n return decodeURIComponent(percentEncode$1(bytes, start, end));\n },\n // return the string representation of the specified byte range,\n // interpreted as ISO-8859-1.\n parseIso88591$1 = function (bytes, start, end) {\n return unescape(percentEncode$1(bytes, start, end)); // jshint ignore:line\n },\n parseSyncSafeInteger$1 = function (data) {\n return data[0] << 21 | data[1] << 14 | data[2] << 7 | data[3];\n },\n frameParsers = {\n 'APIC': function (frame) {\n var i = 1,\n mimeTypeEndIndex,\n descriptionEndIndex,\n LINK_MIME_TYPE = '-->';\n if (frame.data[0] !== textEncodingDescriptionByte.Utf8) {\n // ignore frames with unrecognized character encodings\n return;\n } // parsing fields [ID3v2.4.0 section 4.14.]\n\n mimeTypeEndIndex = typedArrayIndexOf(frame.data, 0, i);\n if (mimeTypeEndIndex < 0) {\n // malformed frame\n return;\n } // parsing Mime type field (terminated with \\0)\n\n frame.mimeType = parseIso88591$1(frame.data, i, mimeTypeEndIndex);\n i = mimeTypeEndIndex + 1; // parsing 1-byte Picture Type field\n\n frame.pictureType = frame.data[i];\n i++;\n descriptionEndIndex = typedArrayIndexOf(frame.data, 0, i);\n if (descriptionEndIndex < 0) {\n // malformed frame\n return;\n } // parsing Description field (terminated with \\0)\n\n frame.description = parseUtf8(frame.data, i, descriptionEndIndex);\n i = descriptionEndIndex + 1;\n if (frame.mimeType === LINK_MIME_TYPE) {\n // parsing Picture Data field as URL (always represented as ISO-8859-1 [ID3v2.4.0 section 4.])\n frame.url = parseIso88591$1(frame.data, i, frame.data.length);\n } else {\n // parsing Picture Data field as binary data\n frame.pictureData = frame.data.subarray(i, frame.data.length);\n }\n },\n 'T*': function (frame) {\n if (frame.data[0] !== textEncodingDescriptionByte.Utf8) {\n // ignore frames with unrecognized character encodings\n return;\n } // parse text field, do not include null terminator in the frame value\n // frames that allow different types of encoding contain terminated text [ID3v2.4.0 section 4.]\n\n frame.value = parseUtf8(frame.data, 1, frame.data.length).replace(/\\0*$/, ''); // text information frames supports multiple strings, stored as a terminator separated list [ID3v2.4.0 section 4.2.]\n\n frame.values = frame.value.split('\\0');\n },\n 'TXXX': function (frame) {\n var descriptionEndIndex;\n if (frame.data[0] !== textEncodingDescriptionByte.Utf8) {\n // ignore frames with unrecognized character encodings\n return;\n }\n descriptionEndIndex = typedArrayIndexOf(frame.data, 0, 1);\n if (descriptionEndIndex === -1) {\n return;\n } // parse the text fields\n\n frame.description = parseUtf8(frame.data, 1, descriptionEndIndex); // do not include the null terminator in the tag value\n // frames that allow different types of encoding contain terminated text\n // [ID3v2.4.0 section 4.]\n\n frame.value = parseUtf8(frame.data, descriptionEndIndex + 1, frame.data.length).replace(/\\0*$/, '');\n frame.data = frame.value;\n },\n 'W*': function (frame) {\n // parse URL field; URL fields are always represented as ISO-8859-1 [ID3v2.4.0 section 4.]\n // if the value is followed by a string termination all the following information should be ignored [ID3v2.4.0 section 4.3]\n frame.url = parseIso88591$1(frame.data, 0, frame.data.length).replace(/\\0.*$/, '');\n },\n 'WXXX': function (frame) {\n var descriptionEndIndex;\n if (frame.data[0] !== textEncodingDescriptionByte.Utf8) {\n // ignore frames with unrecognized character encodings\n return;\n }\n descriptionEndIndex = typedArrayIndexOf(frame.data, 0, 1);\n if (descriptionEndIndex === -1) {\n return;\n } // parse the description and URL fields\n\n frame.description = parseUtf8(frame.data, 1, descriptionEndIndex); // URL fields are always represented as ISO-8859-1 [ID3v2.4.0 section 4.]\n // if the value is followed by a string termination all the following information\n // should be ignored [ID3v2.4.0 section 4.3]\n\n frame.url = parseIso88591$1(frame.data, descriptionEndIndex + 1, frame.data.length).replace(/\\0.*$/, '');\n },\n 'PRIV': function (frame) {\n var i;\n for (i = 0; i < frame.data.length; i++) {\n if (frame.data[i] === 0) {\n // parse the description and URL fields\n frame.owner = parseIso88591$1(frame.data, 0, i);\n break;\n }\n }\n frame.privateData = frame.data.subarray(i + 1);\n frame.data = frame.privateData;\n }\n };\n var parseId3Frames$1 = function (data) {\n var frameSize,\n frameHeader,\n frameStart = 10,\n tagSize = 0,\n frames = []; // If we don't have enough data for a header, 10 bytes, \n // or 'ID3' in the first 3 bytes this is not a valid ID3 tag.\n\n if (data.length < 10 || data[0] !== 'I'.charCodeAt(0) || data[1] !== 'D'.charCodeAt(0) || data[2] !== '3'.charCodeAt(0)) {\n return;\n } // the frame size is transmitted as a 28-bit integer in the\n // last four bytes of the ID3 header.\n // The most significant bit of each byte is dropped and the\n // results concatenated to recover the actual value.\n\n tagSize = parseSyncSafeInteger$1(data.subarray(6, 10)); // ID3 reports the tag size excluding the header but it's more\n // convenient for our comparisons to include it\n\n tagSize += 10; // check bit 6 of byte 5 for the extended header flag.\n\n var hasExtendedHeader = data[5] & 0x40;\n if (hasExtendedHeader) {\n // advance the frame start past the extended header\n frameStart += 4; // header size field\n\n frameStart += parseSyncSafeInteger$1(data.subarray(10, 14));\n tagSize -= parseSyncSafeInteger$1(data.subarray(16, 20)); // clip any padding off the end\n } // parse one or more ID3 frames\n // http://id3.org/id3v2.3.0#ID3v2_frame_overview\n\n do {\n // determine the number of bytes in this frame\n frameSize = parseSyncSafeInteger$1(data.subarray(frameStart + 4, frameStart + 8));\n if (frameSize < 1) {\n break;\n }\n frameHeader = String.fromCharCode(data[frameStart], data[frameStart + 1], data[frameStart + 2], data[frameStart + 3]);\n var frame = {\n id: frameHeader,\n data: data.subarray(frameStart + 10, frameStart + frameSize + 10)\n };\n frame.key = frame.id; // parse frame values\n\n if (frameParsers[frame.id]) {\n // use frame specific parser\n frameParsers[frame.id](frame);\n } else if (frame.id[0] === 'T') {\n // use text frame generic parser\n frameParsers['T*'](frame);\n } else if (frame.id[0] === 'W') {\n // use URL link frame generic parser\n frameParsers['W*'](frame);\n }\n frames.push(frame);\n frameStart += 10; // advance past the frame header\n\n frameStart += frameSize; // advance past the frame body\n } while (frameStart < tagSize);\n return frames;\n };\n var parseId3 = {\n parseId3Frames: parseId3Frames$1,\n parseSyncSafeInteger: parseSyncSafeInteger$1,\n frameParsers: frameParsers\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Accepts program elementary stream (PES) data events and parses out\n * ID3 metadata from them, if present.\n * @see http://id3.org/id3v2.3.0\n */\n\n var Stream$5 = stream,\n StreamTypes$3 = streamTypes,\n id3 = parseId3,\n MetadataStream;\n MetadataStream = function (options) {\n var settings = {\n // the bytes of the program-level descriptor field in MP2T\n // see ISO/IEC 13818-1:2013 (E), section 2.6 \"Program and\n // program element descriptors\"\n descriptor: options && options.descriptor\n },\n // the total size in bytes of the ID3 tag being parsed\n tagSize = 0,\n // tag data that is not complete enough to be parsed\n buffer = [],\n // the total number of bytes currently in the buffer\n bufferSize = 0,\n i;\n MetadataStream.prototype.init.call(this); // calculate the text track in-band metadata track dispatch type\n // https://html.spec.whatwg.org/multipage/embedded-content.html#steps-to-expose-a-media-resource-specific-text-track\n\n this.dispatchType = StreamTypes$3.METADATA_STREAM_TYPE.toString(16);\n if (settings.descriptor) {\n for (i = 0; i < settings.descriptor.length; i++) {\n this.dispatchType += ('00' + settings.descriptor[i].toString(16)).slice(-2);\n }\n }\n this.push = function (chunk) {\n var tag, frameStart, frameSize, frame, i, frameHeader;\n if (chunk.type !== 'timed-metadata') {\n return;\n } // if data_alignment_indicator is set in the PES header,\n // we must have the start of a new ID3 tag. Assume anything\n // remaining in the buffer was malformed and throw it out\n\n if (chunk.dataAlignmentIndicator) {\n bufferSize = 0;\n buffer.length = 0;\n } // ignore events that don't look like ID3 data\n\n if (buffer.length === 0 && (chunk.data.length < 10 || chunk.data[0] !== 'I'.charCodeAt(0) || chunk.data[1] !== 'D'.charCodeAt(0) || chunk.data[2] !== '3'.charCodeAt(0))) {\n this.trigger('log', {\n level: 'warn',\n message: 'Skipping unrecognized metadata packet'\n });\n return;\n } // add this chunk to the data we've collected so far\n\n buffer.push(chunk);\n bufferSize += chunk.data.byteLength; // grab the size of the entire frame from the ID3 header\n\n if (buffer.length === 1) {\n // the frame size is transmitted as a 28-bit integer in the\n // last four bytes of the ID3 header.\n // The most significant bit of each byte is dropped and the\n // results concatenated to recover the actual value.\n tagSize = id3.parseSyncSafeInteger(chunk.data.subarray(6, 10)); // ID3 reports the tag size excluding the header but it's more\n // convenient for our comparisons to include it\n\n tagSize += 10;\n } // if the entire frame has not arrived, wait for more data\n\n if (bufferSize < tagSize) {\n return;\n } // collect the entire frame so it can be parsed\n\n tag = {\n data: new Uint8Array(tagSize),\n frames: [],\n pts: buffer[0].pts,\n dts: buffer[0].dts\n };\n for (i = 0; i < tagSize;) {\n tag.data.set(buffer[0].data.subarray(0, tagSize - i), i);\n i += buffer[0].data.byteLength;\n bufferSize -= buffer[0].data.byteLength;\n buffer.shift();\n } // find the start of the first frame and the end of the tag\n\n frameStart = 10;\n if (tag.data[5] & 0x40) {\n // advance the frame start past the extended header\n frameStart += 4; // header size field\n\n frameStart += id3.parseSyncSafeInteger(tag.data.subarray(10, 14)); // clip any padding off the end\n\n tagSize -= id3.parseSyncSafeInteger(tag.data.subarray(16, 20));\n } // parse one or more ID3 frames\n // http://id3.org/id3v2.3.0#ID3v2_frame_overview\n\n do {\n // determine the number of bytes in this frame\n frameSize = id3.parseSyncSafeInteger(tag.data.subarray(frameStart + 4, frameStart + 8));\n if (frameSize < 1) {\n this.trigger('log', {\n level: 'warn',\n message: 'Malformed ID3 frame encountered. Skipping remaining metadata parsing.'\n }); // If the frame is malformed, don't parse any further frames but allow previous valid parsed frames\n // to be sent along.\n\n break;\n }\n frameHeader = String.fromCharCode(tag.data[frameStart], tag.data[frameStart + 1], tag.data[frameStart + 2], tag.data[frameStart + 3]);\n frame = {\n id: frameHeader,\n data: tag.data.subarray(frameStart + 10, frameStart + frameSize + 10)\n };\n frame.key = frame.id; // parse frame values\n\n if (id3.frameParsers[frame.id]) {\n // use frame specific parser\n id3.frameParsers[frame.id](frame);\n } else if (frame.id[0] === 'T') {\n // use text frame generic parser\n id3.frameParsers['T*'](frame);\n } else if (frame.id[0] === 'W') {\n // use URL link frame generic parser\n id3.frameParsers['W*'](frame);\n } // handle the special PRIV frame used to indicate the start\n // time for raw AAC data\n\n if (frame.owner === 'com.apple.streaming.transportStreamTimestamp') {\n var d = frame.data,\n size = (d[3] & 0x01) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2;\n size *= 4;\n size += d[7] & 0x03;\n frame.timeStamp = size; // in raw AAC, all subsequent data will be timestamped based\n // on the value of this frame\n // we couldn't have known the appropriate pts and dts before\n // parsing this ID3 tag so set those values now\n\n if (tag.pts === undefined && tag.dts === undefined) {\n tag.pts = frame.timeStamp;\n tag.dts = frame.timeStamp;\n }\n this.trigger('timestamp', frame);\n }\n tag.frames.push(frame);\n frameStart += 10; // advance past the frame header\n\n frameStart += frameSize; // advance past the frame body\n } while (frameStart < tagSize);\n this.trigger('data', tag);\n };\n };\n MetadataStream.prototype = new Stream$5();\n var metadataStream = MetadataStream;\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * A stream-based mp2t to mp4 converter. This utility can be used to\n * deliver mp4s to a SourceBuffer on platforms that support native\n * Media Source Extensions.\n */\n\n var Stream$4 = stream,\n CaptionStream$1 = captionStream,\n StreamTypes$2 = streamTypes,\n TimestampRolloverStream = timestampRolloverStream.TimestampRolloverStream; // object types\n\n var TransportPacketStream, TransportParseStream, ElementaryStream; // constants\n\n var MP2T_PACKET_LENGTH$1 = 188,\n // bytes\n SYNC_BYTE$1 = 0x47;\n /**\n * Splits an incoming stream of binary data into MPEG-2 Transport\n * Stream packets.\n */\n\n TransportPacketStream = function () {\n var buffer = new Uint8Array(MP2T_PACKET_LENGTH$1),\n bytesInBuffer = 0;\n TransportPacketStream.prototype.init.call(this); // Deliver new bytes to the stream.\n\n /**\n * Split a stream of data into M2TS packets\n **/\n\n this.push = function (bytes) {\n var startIndex = 0,\n endIndex = MP2T_PACKET_LENGTH$1,\n everything; // If there are bytes remaining from the last segment, prepend them to the\n // bytes that were pushed in\n\n if (bytesInBuffer) {\n everything = new Uint8Array(bytes.byteLength + bytesInBuffer);\n everything.set(buffer.subarray(0, bytesInBuffer));\n everything.set(bytes, bytesInBuffer);\n bytesInBuffer = 0;\n } else {\n everything = bytes;\n } // While we have enough data for a packet\n\n while (endIndex < everything.byteLength) {\n // Look for a pair of start and end sync bytes in the data..\n if (everything[startIndex] === SYNC_BYTE$1 && everything[endIndex] === SYNC_BYTE$1) {\n // We found a packet so emit it and jump one whole packet forward in\n // the stream\n this.trigger('data', everything.subarray(startIndex, endIndex));\n startIndex += MP2T_PACKET_LENGTH$1;\n endIndex += MP2T_PACKET_LENGTH$1;\n continue;\n } // If we get here, we have somehow become de-synchronized and we need to step\n // forward one byte at a time until we find a pair of sync bytes that denote\n // a packet\n\n startIndex++;\n endIndex++;\n } // If there was some data left over at the end of the segment that couldn't\n // possibly be a whole packet, keep it because it might be the start of a packet\n // that continues in the next segment\n\n if (startIndex < everything.byteLength) {\n buffer.set(everything.subarray(startIndex), 0);\n bytesInBuffer = everything.byteLength - startIndex;\n }\n };\n /**\n * Passes identified M2TS packets to the TransportParseStream to be parsed\n **/\n\n this.flush = function () {\n // If the buffer contains a whole packet when we are being flushed, emit it\n // and empty the buffer. Otherwise hold onto the data because it may be\n // important for decoding the next segment\n if (bytesInBuffer === MP2T_PACKET_LENGTH$1 && buffer[0] === SYNC_BYTE$1) {\n this.trigger('data', buffer);\n bytesInBuffer = 0;\n }\n this.trigger('done');\n };\n this.endTimeline = function () {\n this.flush();\n this.trigger('endedtimeline');\n };\n this.reset = function () {\n bytesInBuffer = 0;\n this.trigger('reset');\n };\n };\n TransportPacketStream.prototype = new Stream$4();\n /**\n * Accepts an MP2T TransportPacketStream and emits data events with parsed\n * forms of the individual transport stream packets.\n */\n\n TransportParseStream = function () {\n var parsePsi, parsePat, parsePmt, self;\n TransportParseStream.prototype.init.call(this);\n self = this;\n this.packetsWaitingForPmt = [];\n this.programMapTable = undefined;\n parsePsi = function (payload, psi) {\n var offset = 0; // PSI packets may be split into multiple sections and those\n // sections may be split into multiple packets. If a PSI\n // section starts in this packet, the payload_unit_start_indicator\n // will be true and the first byte of the payload will indicate\n // the offset from the current position to the start of the\n // section.\n\n if (psi.payloadUnitStartIndicator) {\n offset += payload[offset] + 1;\n }\n if (psi.type === 'pat') {\n parsePat(payload.subarray(offset), psi);\n } else {\n parsePmt(payload.subarray(offset), psi);\n }\n };\n parsePat = function (payload, pat) {\n pat.section_number = payload[7]; // eslint-disable-line camelcase\n\n pat.last_section_number = payload[8]; // eslint-disable-line camelcase\n // skip the PSI header and parse the first PMT entry\n\n self.pmtPid = (payload[10] & 0x1F) << 8 | payload[11];\n pat.pmtPid = self.pmtPid;\n };\n /**\n * Parse out the relevant fields of a Program Map Table (PMT).\n * @param payload {Uint8Array} the PMT-specific portion of an MP2T\n * packet. The first byte in this array should be the table_id\n * field.\n * @param pmt {object} the object that should be decorated with\n * fields parsed from the PMT.\n */\n\n parsePmt = function (payload, pmt) {\n var sectionLength, tableEnd, programInfoLength, offset; // PMTs can be sent ahead of the time when they should actually\n // take effect. We don't believe this should ever be the case\n // for HLS but we'll ignore \"forward\" PMT declarations if we see\n // them. Future PMT declarations have the current_next_indicator\n // set to zero.\n\n if (!(payload[5] & 0x01)) {\n return;\n } // overwrite any existing program map table\n\n self.programMapTable = {\n video: null,\n audio: null,\n 'timed-metadata': {}\n }; // the mapping table ends at the end of the current section\n\n sectionLength = (payload[1] & 0x0f) << 8 | payload[2];\n tableEnd = 3 + sectionLength - 4; // to determine where the table is, we have to figure out how\n // long the program info descriptors are\n\n programInfoLength = (payload[10] & 0x0f) << 8 | payload[11]; // advance the offset to the first entry in the mapping table\n\n offset = 12 + programInfoLength;\n while (offset < tableEnd) {\n var streamType = payload[offset];\n var pid = (payload[offset + 1] & 0x1F) << 8 | payload[offset + 2]; // only map a single elementary_pid for audio and video stream types\n // TODO: should this be done for metadata too? for now maintain behavior of\n // multiple metadata streams\n\n if (streamType === StreamTypes$2.H264_STREAM_TYPE && self.programMapTable.video === null) {\n self.programMapTable.video = pid;\n } else if (streamType === StreamTypes$2.ADTS_STREAM_TYPE && self.programMapTable.audio === null) {\n self.programMapTable.audio = pid;\n } else if (streamType === StreamTypes$2.METADATA_STREAM_TYPE) {\n // map pid to stream type for metadata streams\n self.programMapTable['timed-metadata'][pid] = streamType;\n } // move to the next table entry\n // skip past the elementary stream descriptors, if present\n\n offset += ((payload[offset + 3] & 0x0F) << 8 | payload[offset + 4]) + 5;\n } // record the map on the packet as well\n\n pmt.programMapTable = self.programMapTable;\n };\n /**\n * Deliver a new MP2T packet to the next stream in the pipeline.\n */\n\n this.push = function (packet) {\n var result = {},\n offset = 4;\n result.payloadUnitStartIndicator = !!(packet[1] & 0x40); // pid is a 13-bit field starting at the last bit of packet[1]\n\n result.pid = packet[1] & 0x1f;\n result.pid <<= 8;\n result.pid |= packet[2]; // if an adaption field is present, its length is specified by the\n // fifth byte of the TS packet header. The adaptation field is\n // used to add stuffing to PES packets that don't fill a complete\n // TS packet, and to specify some forms of timing and control data\n // that we do not currently use.\n\n if ((packet[3] & 0x30) >>> 4 > 0x01) {\n offset += packet[offset] + 1;\n } // parse the rest of the packet based on the type\n\n if (result.pid === 0) {\n result.type = 'pat';\n parsePsi(packet.subarray(offset), result);\n this.trigger('data', result);\n } else if (result.pid === this.pmtPid) {\n result.type = 'pmt';\n parsePsi(packet.subarray(offset), result);\n this.trigger('data', result); // if there are any packets waiting for a PMT to be found, process them now\n\n while (this.packetsWaitingForPmt.length) {\n this.processPes_.apply(this, this.packetsWaitingForPmt.shift());\n }\n } else if (this.programMapTable === undefined) {\n // When we have not seen a PMT yet, defer further processing of\n // PES packets until one has been parsed\n this.packetsWaitingForPmt.push([packet, offset, result]);\n } else {\n this.processPes_(packet, offset, result);\n }\n };\n this.processPes_ = function (packet, offset, result) {\n // set the appropriate stream type\n if (result.pid === this.programMapTable.video) {\n result.streamType = StreamTypes$2.H264_STREAM_TYPE;\n } else if (result.pid === this.programMapTable.audio) {\n result.streamType = StreamTypes$2.ADTS_STREAM_TYPE;\n } else {\n // if not video or audio, it is timed-metadata or unknown\n // if unknown, streamType will be undefined\n result.streamType = this.programMapTable['timed-metadata'][result.pid];\n }\n result.type = 'pes';\n result.data = packet.subarray(offset);\n this.trigger('data', result);\n };\n };\n TransportParseStream.prototype = new Stream$4();\n TransportParseStream.STREAM_TYPES = {\n h264: 0x1b,\n adts: 0x0f\n };\n /**\n * Reconsistutes program elementary stream (PES) packets from parsed\n * transport stream packets. That is, if you pipe an\n * mp2t.TransportParseStream into a mp2t.ElementaryStream, the output\n * events will be events which capture the bytes for individual PES\n * packets plus relevant metadata that has been extracted from the\n * container.\n */\n\n ElementaryStream = function () {\n var self = this,\n segmentHadPmt = false,\n // PES packet fragments\n video = {\n data: [],\n size: 0\n },\n audio = {\n data: [],\n size: 0\n },\n timedMetadata = {\n data: [],\n size: 0\n },\n programMapTable,\n parsePes = function (payload, pes) {\n var ptsDtsFlags;\n const startPrefix = payload[0] << 16 | payload[1] << 8 | payload[2]; // default to an empty array\n\n pes.data = new Uint8Array(); // In certain live streams, the start of a TS fragment has ts packets\n // that are frame data that is continuing from the previous fragment. This\n // is to check that the pes data is the start of a new pes payload\n\n if (startPrefix !== 1) {\n return;\n } // get the packet length, this will be 0 for video\n\n pes.packetLength = 6 + (payload[4] << 8 | payload[5]); // find out if this packets starts a new keyframe\n\n pes.dataAlignmentIndicator = (payload[6] & 0x04) !== 0; // PES packets may be annotated with a PTS value, or a PTS value\n // and a DTS value. Determine what combination of values is\n // available to work with.\n\n ptsDtsFlags = payload[7]; // PTS and DTS are normally stored as a 33-bit number. Javascript\n // performs all bitwise operations on 32-bit integers but javascript\n // supports a much greater range (52-bits) of integer using standard\n // mathematical operations.\n // We construct a 31-bit value using bitwise operators over the 31\n // most significant bits and then multiply by 4 (equal to a left-shift\n // of 2) before we add the final 2 least significant bits of the\n // timestamp (equal to an OR.)\n\n if (ptsDtsFlags & 0xC0) {\n // the PTS and DTS are not written out directly. For information\n // on how they are encoded, see\n // http://dvd.sourceforge.net/dvdinfo/pes-hdr.html\n pes.pts = (payload[9] & 0x0E) << 27 | (payload[10] & 0xFF) << 20 | (payload[11] & 0xFE) << 12 | (payload[12] & 0xFF) << 5 | (payload[13] & 0xFE) >>> 3;\n pes.pts *= 4; // Left shift by 2\n\n pes.pts += (payload[13] & 0x06) >>> 1; // OR by the two LSBs\n\n pes.dts = pes.pts;\n if (ptsDtsFlags & 0x40) {\n pes.dts = (payload[14] & 0x0E) << 27 | (payload[15] & 0xFF) << 20 | (payload[16] & 0xFE) << 12 | (payload[17] & 0xFF) << 5 | (payload[18] & 0xFE) >>> 3;\n pes.dts *= 4; // Left shift by 2\n\n pes.dts += (payload[18] & 0x06) >>> 1; // OR by the two LSBs\n }\n } // the data section starts immediately after the PES header.\n // pes_header_data_length specifies the number of header bytes\n // that follow the last byte of the field.\n\n pes.data = payload.subarray(9 + payload[8]);\n },\n /**\n * Pass completely parsed PES packets to the next stream in the pipeline\n **/\n flushStream = function (stream, type, forceFlush) {\n var packetData = new Uint8Array(stream.size),\n event = {\n type: type\n },\n i = 0,\n offset = 0,\n packetFlushable = false,\n fragment; // do nothing if there is not enough buffered data for a complete\n // PES header\n\n if (!stream.data.length || stream.size < 9) {\n return;\n }\n event.trackId = stream.data[0].pid; // reassemble the packet\n\n for (i = 0; i < stream.data.length; i++) {\n fragment = stream.data[i];\n packetData.set(fragment.data, offset);\n offset += fragment.data.byteLength;\n } // parse assembled packet's PES header\n\n parsePes(packetData, event); // non-video PES packets MUST have a non-zero PES_packet_length\n // check that there is enough stream data to fill the packet\n\n packetFlushable = type === 'video' || event.packetLength <= stream.size; // flush pending packets if the conditions are right\n\n if (forceFlush || packetFlushable) {\n stream.size = 0;\n stream.data.length = 0;\n } // only emit packets that are complete. this is to avoid assembling\n // incomplete PES packets due to poor segmentation\n\n if (packetFlushable) {\n self.trigger('data', event);\n }\n };\n ElementaryStream.prototype.init.call(this);\n /**\n * Identifies M2TS packet types and parses PES packets using metadata\n * parsed from the PMT\n **/\n\n this.push = function (data) {\n ({\n pat: function () {// we have to wait for the PMT to arrive as well before we\n // have any meaningful metadata\n },\n pes: function () {\n var stream, streamType;\n switch (data.streamType) {\n case StreamTypes$2.H264_STREAM_TYPE:\n stream = video;\n streamType = 'video';\n break;\n case StreamTypes$2.ADTS_STREAM_TYPE:\n stream = audio;\n streamType = 'audio';\n break;\n case StreamTypes$2.METADATA_STREAM_TYPE:\n stream = timedMetadata;\n streamType = 'timed-metadata';\n break;\n default:\n // ignore unknown stream types\n return;\n } // if a new packet is starting, we can flush the completed\n // packet\n\n if (data.payloadUnitStartIndicator) {\n flushStream(stream, streamType, true);\n } // buffer this fragment until we are sure we've received the\n // complete payload\n\n stream.data.push(data);\n stream.size += data.data.byteLength;\n },\n pmt: function () {\n var event = {\n type: 'metadata',\n tracks: []\n };\n programMapTable = data.programMapTable; // translate audio and video streams to tracks\n\n if (programMapTable.video !== null) {\n event.tracks.push({\n timelineStartInfo: {\n baseMediaDecodeTime: 0\n },\n id: +programMapTable.video,\n codec: 'avc',\n type: 'video'\n });\n }\n if (programMapTable.audio !== null) {\n event.tracks.push({\n timelineStartInfo: {\n baseMediaDecodeTime: 0\n },\n id: +programMapTable.audio,\n codec: 'adts',\n type: 'audio'\n });\n }\n segmentHadPmt = true;\n self.trigger('data', event);\n }\n })[data.type]();\n };\n this.reset = function () {\n video.size = 0;\n video.data.length = 0;\n audio.size = 0;\n audio.data.length = 0;\n this.trigger('reset');\n };\n /**\n * Flush any remaining input. Video PES packets may be of variable\n * length. Normally, the start of a new video packet can trigger the\n * finalization of the previous packet. That is not possible if no\n * more video is forthcoming, however. In that case, some other\n * mechanism (like the end of the file) has to be employed. When it is\n * clear that no additional data is forthcoming, calling this method\n * will flush the buffered packets.\n */\n\n this.flushStreams_ = function () {\n // !!THIS ORDER IS IMPORTANT!!\n // video first then audio\n flushStream(video, 'video');\n flushStream(audio, 'audio');\n flushStream(timedMetadata, 'timed-metadata');\n };\n this.flush = function () {\n // if on flush we haven't had a pmt emitted\n // and we have a pmt to emit. emit the pmt\n // so that we trigger a trackinfo downstream.\n if (!segmentHadPmt && programMapTable) {\n var pmt = {\n type: 'metadata',\n tracks: []\n }; // translate audio and video streams to tracks\n\n if (programMapTable.video !== null) {\n pmt.tracks.push({\n timelineStartInfo: {\n baseMediaDecodeTime: 0\n },\n id: +programMapTable.video,\n codec: 'avc',\n type: 'video'\n });\n }\n if (programMapTable.audio !== null) {\n pmt.tracks.push({\n timelineStartInfo: {\n baseMediaDecodeTime: 0\n },\n id: +programMapTable.audio,\n codec: 'adts',\n type: 'audio'\n });\n }\n self.trigger('data', pmt);\n }\n segmentHadPmt = false;\n this.flushStreams_();\n this.trigger('done');\n };\n };\n ElementaryStream.prototype = new Stream$4();\n var m2ts$1 = {\n PAT_PID: 0x0000,\n MP2T_PACKET_LENGTH: MP2T_PACKET_LENGTH$1,\n TransportPacketStream: TransportPacketStream,\n TransportParseStream: TransportParseStream,\n ElementaryStream: ElementaryStream,\n TimestampRolloverStream: TimestampRolloverStream,\n CaptionStream: CaptionStream$1.CaptionStream,\n Cea608Stream: CaptionStream$1.Cea608Stream,\n Cea708Stream: CaptionStream$1.Cea708Stream,\n MetadataStream: metadataStream\n };\n for (var type in StreamTypes$2) {\n if (StreamTypes$2.hasOwnProperty(type)) {\n m2ts$1[type] = StreamTypes$2[type];\n }\n }\n var m2ts_1 = m2ts$1;\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var Stream$3 = stream;\n var ONE_SECOND_IN_TS$2 = clock$2.ONE_SECOND_IN_TS;\n var AdtsStream$1;\n var ADTS_SAMPLING_FREQUENCIES$1 = [96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350];\n /*\n * Accepts a ElementaryStream and emits data events with parsed\n * AAC Audio Frames of the individual packets. Input audio in ADTS\n * format is unpacked and re-emitted as AAC frames.\n *\n * @see http://wiki.multimedia.cx/index.php?title=ADTS\n * @see http://wiki.multimedia.cx/?title=Understanding_AAC\n */\n\n AdtsStream$1 = function (handlePartialSegments) {\n var buffer,\n frameNum = 0;\n AdtsStream$1.prototype.init.call(this);\n this.skipWarn_ = function (start, end) {\n this.trigger('log', {\n level: 'warn',\n message: `adts skiping bytes ${start} to ${end} in frame ${frameNum} outside syncword`\n });\n };\n this.push = function (packet) {\n var i = 0,\n frameLength,\n protectionSkipBytes,\n oldBuffer,\n sampleCount,\n adtsFrameDuration;\n if (!handlePartialSegments) {\n frameNum = 0;\n }\n if (packet.type !== 'audio') {\n // ignore non-audio data\n return;\n } // Prepend any data in the buffer to the input data so that we can parse\n // aac frames the cross a PES packet boundary\n\n if (buffer && buffer.length) {\n oldBuffer = buffer;\n buffer = new Uint8Array(oldBuffer.byteLength + packet.data.byteLength);\n buffer.set(oldBuffer);\n buffer.set(packet.data, oldBuffer.byteLength);\n } else {\n buffer = packet.data;\n } // unpack any ADTS frames which have been fully received\n // for details on the ADTS header, see http://wiki.multimedia.cx/index.php?title=ADTS\n\n var skip; // We use i + 7 here because we want to be able to parse the entire header.\n // If we don't have enough bytes to do that, then we definitely won't have a full frame.\n\n while (i + 7 < buffer.length) {\n // Look for the start of an ADTS header..\n if (buffer[i] !== 0xFF || (buffer[i + 1] & 0xF6) !== 0xF0) {\n if (typeof skip !== 'number') {\n skip = i;\n } // If a valid header was not found, jump one forward and attempt to\n // find a valid ADTS header starting at the next byte\n\n i++;\n continue;\n }\n if (typeof skip === 'number') {\n this.skipWarn_(skip, i);\n skip = null;\n } // The protection skip bit tells us if we have 2 bytes of CRC data at the\n // end of the ADTS header\n\n protectionSkipBytes = (~buffer[i + 1] & 0x01) * 2; // Frame length is a 13 bit integer starting 16 bits from the\n // end of the sync sequence\n // NOTE: frame length includes the size of the header\n\n frameLength = (buffer[i + 3] & 0x03) << 11 | buffer[i + 4] << 3 | (buffer[i + 5] & 0xe0) >> 5;\n sampleCount = ((buffer[i + 6] & 0x03) + 1) * 1024;\n adtsFrameDuration = sampleCount * ONE_SECOND_IN_TS$2 / ADTS_SAMPLING_FREQUENCIES$1[(buffer[i + 2] & 0x3c) >>> 2]; // If we don't have enough data to actually finish this ADTS frame,\n // then we have to wait for more data\n\n if (buffer.byteLength - i < frameLength) {\n break;\n } // Otherwise, deliver the complete AAC frame\n\n this.trigger('data', {\n pts: packet.pts + frameNum * adtsFrameDuration,\n dts: packet.dts + frameNum * adtsFrameDuration,\n sampleCount: sampleCount,\n audioobjecttype: (buffer[i + 2] >>> 6 & 0x03) + 1,\n channelcount: (buffer[i + 2] & 1) << 2 | (buffer[i + 3] & 0xc0) >>> 6,\n samplerate: ADTS_SAMPLING_FREQUENCIES$1[(buffer[i + 2] & 0x3c) >>> 2],\n samplingfrequencyindex: (buffer[i + 2] & 0x3c) >>> 2,\n // assume ISO/IEC 14496-12 AudioSampleEntry default of 16\n samplesize: 16,\n // data is the frame without it's header\n data: buffer.subarray(i + 7 + protectionSkipBytes, i + frameLength)\n });\n frameNum++;\n i += frameLength;\n }\n if (typeof skip === 'number') {\n this.skipWarn_(skip, i);\n skip = null;\n } // remove processed bytes from the buffer.\n\n buffer = buffer.subarray(i);\n };\n this.flush = function () {\n frameNum = 0;\n this.trigger('done');\n };\n this.reset = function () {\n buffer = void 0;\n this.trigger('reset');\n };\n this.endTimeline = function () {\n buffer = void 0;\n this.trigger('endedtimeline');\n };\n };\n AdtsStream$1.prototype = new Stream$3();\n var adts = AdtsStream$1;\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var ExpGolomb$1;\n /**\n * Parser for exponential Golomb codes, a variable-bitwidth number encoding\n * scheme used by h264.\n */\n\n ExpGolomb$1 = function (workingData) {\n var\n // the number of bytes left to examine in workingData\n workingBytesAvailable = workingData.byteLength,\n // the current word being examined\n workingWord = 0,\n // :uint\n // the number of bits left to examine in the current word\n workingBitsAvailable = 0; // :uint;\n // ():uint\n\n this.length = function () {\n return 8 * workingBytesAvailable;\n }; // ():uint\n\n this.bitsAvailable = function () {\n return 8 * workingBytesAvailable + workingBitsAvailable;\n }; // ():void\n\n this.loadWord = function () {\n var position = workingData.byteLength - workingBytesAvailable,\n workingBytes = new Uint8Array(4),\n availableBytes = Math.min(4, workingBytesAvailable);\n if (availableBytes === 0) {\n throw new Error('no bytes available');\n }\n workingBytes.set(workingData.subarray(position, position + availableBytes));\n workingWord = new DataView(workingBytes.buffer).getUint32(0); // track the amount of workingData that has been processed\n\n workingBitsAvailable = availableBytes * 8;\n workingBytesAvailable -= availableBytes;\n }; // (count:int):void\n\n this.skipBits = function (count) {\n var skipBytes; // :int\n\n if (workingBitsAvailable > count) {\n workingWord <<= count;\n workingBitsAvailable -= count;\n } else {\n count -= workingBitsAvailable;\n skipBytes = Math.floor(count / 8);\n count -= skipBytes * 8;\n workingBytesAvailable -= skipBytes;\n this.loadWord();\n workingWord <<= count;\n workingBitsAvailable -= count;\n }\n }; // (size:int):uint\n\n this.readBits = function (size) {\n var bits = Math.min(workingBitsAvailable, size),\n // :uint\n valu = workingWord >>> 32 - bits; // :uint\n // if size > 31, handle error\n\n workingBitsAvailable -= bits;\n if (workingBitsAvailable > 0) {\n workingWord <<= bits;\n } else if (workingBytesAvailable > 0) {\n this.loadWord();\n }\n bits = size - bits;\n if (bits > 0) {\n return valu << bits | this.readBits(bits);\n }\n return valu;\n }; // ():uint\n\n this.skipLeadingZeros = function () {\n var leadingZeroCount; // :uint\n\n for (leadingZeroCount = 0; leadingZeroCount < workingBitsAvailable; ++leadingZeroCount) {\n if ((workingWord & 0x80000000 >>> leadingZeroCount) !== 0) {\n // the first bit of working word is 1\n workingWord <<= leadingZeroCount;\n workingBitsAvailable -= leadingZeroCount;\n return leadingZeroCount;\n }\n } // we exhausted workingWord and still have not found a 1\n\n this.loadWord();\n return leadingZeroCount + this.skipLeadingZeros();\n }; // ():void\n\n this.skipUnsignedExpGolomb = function () {\n this.skipBits(1 + this.skipLeadingZeros());\n }; // ():void\n\n this.skipExpGolomb = function () {\n this.skipBits(1 + this.skipLeadingZeros());\n }; // ():uint\n\n this.readUnsignedExpGolomb = function () {\n var clz = this.skipLeadingZeros(); // :uint\n\n return this.readBits(clz + 1) - 1;\n }; // ():int\n\n this.readExpGolomb = function () {\n var valu = this.readUnsignedExpGolomb(); // :int\n\n if (0x01 & valu) {\n // the number is odd if the low order bit is set\n return 1 + valu >>> 1; // add 1 to make it even, and divide by 2\n }\n\n return -1 * (valu >>> 1); // divide by two then make it negative\n }; // Some convenience functions\n // :Boolean\n\n this.readBoolean = function () {\n return this.readBits(1) === 1;\n }; // ():int\n\n this.readUnsignedByte = function () {\n return this.readBits(8);\n };\n this.loadWord();\n };\n var expGolomb = ExpGolomb$1;\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var Stream$2 = stream;\n var ExpGolomb = expGolomb;\n var H264Stream$1, NalByteStream;\n var PROFILES_WITH_OPTIONAL_SPS_DATA;\n /**\n * Accepts a NAL unit byte stream and unpacks the embedded NAL units.\n */\n\n NalByteStream = function () {\n var syncPoint = 0,\n i,\n buffer;\n NalByteStream.prototype.init.call(this);\n /*\n * Scans a byte stream and triggers a data event with the NAL units found.\n * @param {Object} data Event received from H264Stream\n * @param {Uint8Array} data.data The h264 byte stream to be scanned\n *\n * @see H264Stream.push\n */\n\n this.push = function (data) {\n var swapBuffer;\n if (!buffer) {\n buffer = data.data;\n } else {\n swapBuffer = new Uint8Array(buffer.byteLength + data.data.byteLength);\n swapBuffer.set(buffer);\n swapBuffer.set(data.data, buffer.byteLength);\n buffer = swapBuffer;\n }\n var len = buffer.byteLength; // Rec. ITU-T H.264, Annex B\n // scan for NAL unit boundaries\n // a match looks like this:\n // 0 0 1 .. NAL .. 0 0 1\n // ^ sync point ^ i\n // or this:\n // 0 0 1 .. NAL .. 0 0 0\n // ^ sync point ^ i\n // advance the sync point to a NAL start, if necessary\n\n for (; syncPoint < len - 3; syncPoint++) {\n if (buffer[syncPoint + 2] === 1) {\n // the sync point is properly aligned\n i = syncPoint + 5;\n break;\n }\n }\n while (i < len) {\n // look at the current byte to determine if we've hit the end of\n // a NAL unit boundary\n switch (buffer[i]) {\n case 0:\n // skip past non-sync sequences\n if (buffer[i - 1] !== 0) {\n i += 2;\n break;\n } else if (buffer[i - 2] !== 0) {\n i++;\n break;\n } // deliver the NAL unit if it isn't empty\n\n if (syncPoint + 3 !== i - 2) {\n this.trigger('data', buffer.subarray(syncPoint + 3, i - 2));\n } // drop trailing zeroes\n\n do {\n i++;\n } while (buffer[i] !== 1 && i < len);\n syncPoint = i - 2;\n i += 3;\n break;\n case 1:\n // skip past non-sync sequences\n if (buffer[i - 1] !== 0 || buffer[i - 2] !== 0) {\n i += 3;\n break;\n } // deliver the NAL unit\n\n this.trigger('data', buffer.subarray(syncPoint + 3, i - 2));\n syncPoint = i - 2;\n i += 3;\n break;\n default:\n // the current byte isn't a one or zero, so it cannot be part\n // of a sync sequence\n i += 3;\n break;\n }\n } // filter out the NAL units that were delivered\n\n buffer = buffer.subarray(syncPoint);\n i -= syncPoint;\n syncPoint = 0;\n };\n this.reset = function () {\n buffer = null;\n syncPoint = 0;\n this.trigger('reset');\n };\n this.flush = function () {\n // deliver the last buffered NAL unit\n if (buffer && buffer.byteLength > 3) {\n this.trigger('data', buffer.subarray(syncPoint + 3));\n } // reset the stream state\n\n buffer = null;\n syncPoint = 0;\n this.trigger('done');\n };\n this.endTimeline = function () {\n this.flush();\n this.trigger('endedtimeline');\n };\n };\n NalByteStream.prototype = new Stream$2(); // values of profile_idc that indicate additional fields are included in the SPS\n // see Recommendation ITU-T H.264 (4/2013),\n // 7.3.2.1.1 Sequence parameter set data syntax\n\n PROFILES_WITH_OPTIONAL_SPS_DATA = {\n 100: true,\n 110: true,\n 122: true,\n 244: true,\n 44: true,\n 83: true,\n 86: true,\n 118: true,\n 128: true,\n // TODO: the three profiles below don't\n // appear to have sps data in the specificiation anymore?\n 138: true,\n 139: true,\n 134: true\n };\n /**\n * Accepts input from a ElementaryStream and produces H.264 NAL unit data\n * events.\n */\n\n H264Stream$1 = function () {\n var nalByteStream = new NalByteStream(),\n self,\n trackId,\n currentPts,\n currentDts,\n discardEmulationPreventionBytes,\n readSequenceParameterSet,\n skipScalingList;\n H264Stream$1.prototype.init.call(this);\n self = this;\n /*\n * Pushes a packet from a stream onto the NalByteStream\n *\n * @param {Object} packet - A packet received from a stream\n * @param {Uint8Array} packet.data - The raw bytes of the packet\n * @param {Number} packet.dts - Decode timestamp of the packet\n * @param {Number} packet.pts - Presentation timestamp of the packet\n * @param {Number} packet.trackId - The id of the h264 track this packet came from\n * @param {('video'|'audio')} packet.type - The type of packet\n *\n */\n\n this.push = function (packet) {\n if (packet.type !== 'video') {\n return;\n }\n trackId = packet.trackId;\n currentPts = packet.pts;\n currentDts = packet.dts;\n nalByteStream.push(packet);\n };\n /*\n * Identify NAL unit types and pass on the NALU, trackId, presentation and decode timestamps\n * for the NALUs to the next stream component.\n * Also, preprocess caption and sequence parameter NALUs.\n *\n * @param {Uint8Array} data - A NAL unit identified by `NalByteStream.push`\n * @see NalByteStream.push\n */\n\n nalByteStream.on('data', function (data) {\n var event = {\n trackId: trackId,\n pts: currentPts,\n dts: currentDts,\n data: data,\n nalUnitTypeCode: data[0] & 0x1f\n };\n switch (event.nalUnitTypeCode) {\n case 0x05:\n event.nalUnitType = 'slice_layer_without_partitioning_rbsp_idr';\n break;\n case 0x06:\n event.nalUnitType = 'sei_rbsp';\n event.escapedRBSP = discardEmulationPreventionBytes(data.subarray(1));\n break;\n case 0x07:\n event.nalUnitType = 'seq_parameter_set_rbsp';\n event.escapedRBSP = discardEmulationPreventionBytes(data.subarray(1));\n event.config = readSequenceParameterSet(event.escapedRBSP);\n break;\n case 0x08:\n event.nalUnitType = 'pic_parameter_set_rbsp';\n break;\n case 0x09:\n event.nalUnitType = 'access_unit_delimiter_rbsp';\n break;\n } // This triggers data on the H264Stream\n\n self.trigger('data', event);\n });\n nalByteStream.on('done', function () {\n self.trigger('done');\n });\n nalByteStream.on('partialdone', function () {\n self.trigger('partialdone');\n });\n nalByteStream.on('reset', function () {\n self.trigger('reset');\n });\n nalByteStream.on('endedtimeline', function () {\n self.trigger('endedtimeline');\n });\n this.flush = function () {\n nalByteStream.flush();\n };\n this.partialFlush = function () {\n nalByteStream.partialFlush();\n };\n this.reset = function () {\n nalByteStream.reset();\n };\n this.endTimeline = function () {\n nalByteStream.endTimeline();\n };\n /**\n * Advance the ExpGolomb decoder past a scaling list. The scaling\n * list is optionally transmitted as part of a sequence parameter\n * set and is not relevant to transmuxing.\n * @param count {number} the number of entries in this scaling list\n * @param expGolombDecoder {object} an ExpGolomb pointed to the\n * start of a scaling list\n * @see Recommendation ITU-T H.264, Section 7.3.2.1.1.1\n */\n\n skipScalingList = function (count, expGolombDecoder) {\n var lastScale = 8,\n nextScale = 8,\n j,\n deltaScale;\n for (j = 0; j < count; j++) {\n if (nextScale !== 0) {\n deltaScale = expGolombDecoder.readExpGolomb();\n nextScale = (lastScale + deltaScale + 256) % 256;\n }\n lastScale = nextScale === 0 ? lastScale : nextScale;\n }\n };\n /**\n * Expunge any \"Emulation Prevention\" bytes from a \"Raw Byte\n * Sequence Payload\"\n * @param data {Uint8Array} the bytes of a RBSP from a NAL\n * unit\n * @return {Uint8Array} the RBSP without any Emulation\n * Prevention Bytes\n */\n\n discardEmulationPreventionBytes = function (data) {\n var length = data.byteLength,\n emulationPreventionBytesPositions = [],\n i = 1,\n newLength,\n newData; // Find all `Emulation Prevention Bytes`\n\n while (i < length - 2) {\n if (data[i] === 0 && data[i + 1] === 0 && data[i + 2] === 0x03) {\n emulationPreventionBytesPositions.push(i + 2);\n i += 2;\n } else {\n i++;\n }\n } // If no Emulation Prevention Bytes were found just return the original\n // array\n\n if (emulationPreventionBytesPositions.length === 0) {\n return data;\n } // Create a new array to hold the NAL unit data\n\n newLength = length - emulationPreventionBytesPositions.length;\n newData = new Uint8Array(newLength);\n var sourceIndex = 0;\n for (i = 0; i < newLength; sourceIndex++, i++) {\n if (sourceIndex === emulationPreventionBytesPositions[0]) {\n // Skip this byte\n sourceIndex++; // Remove this position index\n\n emulationPreventionBytesPositions.shift();\n }\n newData[i] = data[sourceIndex];\n }\n return newData;\n };\n /**\n * Read a sequence parameter set and return some interesting video\n * properties. A sequence parameter set is the H264 metadata that\n * describes the properties of upcoming video frames.\n * @param data {Uint8Array} the bytes of a sequence parameter set\n * @return {object} an object with configuration parsed from the\n * sequence parameter set, including the dimensions of the\n * associated video frames.\n */\n\n readSequenceParameterSet = function (data) {\n var frameCropLeftOffset = 0,\n frameCropRightOffset = 0,\n frameCropTopOffset = 0,\n frameCropBottomOffset = 0,\n expGolombDecoder,\n profileIdc,\n levelIdc,\n profileCompatibility,\n chromaFormatIdc,\n picOrderCntType,\n numRefFramesInPicOrderCntCycle,\n picWidthInMbsMinus1,\n picHeightInMapUnitsMinus1,\n frameMbsOnlyFlag,\n scalingListCount,\n sarRatio = [1, 1],\n aspectRatioIdc,\n i;\n expGolombDecoder = new ExpGolomb(data);\n profileIdc = expGolombDecoder.readUnsignedByte(); // profile_idc\n\n profileCompatibility = expGolombDecoder.readUnsignedByte(); // constraint_set[0-5]_flag\n\n levelIdc = expGolombDecoder.readUnsignedByte(); // level_idc u(8)\n\n expGolombDecoder.skipUnsignedExpGolomb(); // seq_parameter_set_id\n // some profiles have more optional data we don't need\n\n if (PROFILES_WITH_OPTIONAL_SPS_DATA[profileIdc]) {\n chromaFormatIdc = expGolombDecoder.readUnsignedExpGolomb();\n if (chromaFormatIdc === 3) {\n expGolombDecoder.skipBits(1); // separate_colour_plane_flag\n }\n\n expGolombDecoder.skipUnsignedExpGolomb(); // bit_depth_luma_minus8\n\n expGolombDecoder.skipUnsignedExpGolomb(); // bit_depth_chroma_minus8\n\n expGolombDecoder.skipBits(1); // qpprime_y_zero_transform_bypass_flag\n\n if (expGolombDecoder.readBoolean()) {\n // seq_scaling_matrix_present_flag\n scalingListCount = chromaFormatIdc !== 3 ? 8 : 12;\n for (i = 0; i < scalingListCount; i++) {\n if (expGolombDecoder.readBoolean()) {\n // seq_scaling_list_present_flag[ i ]\n if (i < 6) {\n skipScalingList(16, expGolombDecoder);\n } else {\n skipScalingList(64, expGolombDecoder);\n }\n }\n }\n }\n }\n expGolombDecoder.skipUnsignedExpGolomb(); // log2_max_frame_num_minus4\n\n picOrderCntType = expGolombDecoder.readUnsignedExpGolomb();\n if (picOrderCntType === 0) {\n expGolombDecoder.readUnsignedExpGolomb(); // log2_max_pic_order_cnt_lsb_minus4\n } else if (picOrderCntType === 1) {\n expGolombDecoder.skipBits(1); // delta_pic_order_always_zero_flag\n\n expGolombDecoder.skipExpGolomb(); // offset_for_non_ref_pic\n\n expGolombDecoder.skipExpGolomb(); // offset_for_top_to_bottom_field\n\n numRefFramesInPicOrderCntCycle = expGolombDecoder.readUnsignedExpGolomb();\n for (i = 0; i < numRefFramesInPicOrderCntCycle; i++) {\n expGolombDecoder.skipExpGolomb(); // offset_for_ref_frame[ i ]\n }\n }\n\n expGolombDecoder.skipUnsignedExpGolomb(); // max_num_ref_frames\n\n expGolombDecoder.skipBits(1); // gaps_in_frame_num_value_allowed_flag\n\n picWidthInMbsMinus1 = expGolombDecoder.readUnsignedExpGolomb();\n picHeightInMapUnitsMinus1 = expGolombDecoder.readUnsignedExpGolomb();\n frameMbsOnlyFlag = expGolombDecoder.readBits(1);\n if (frameMbsOnlyFlag === 0) {\n expGolombDecoder.skipBits(1); // mb_adaptive_frame_field_flag\n }\n\n expGolombDecoder.skipBits(1); // direct_8x8_inference_flag\n\n if (expGolombDecoder.readBoolean()) {\n // frame_cropping_flag\n frameCropLeftOffset = expGolombDecoder.readUnsignedExpGolomb();\n frameCropRightOffset = expGolombDecoder.readUnsignedExpGolomb();\n frameCropTopOffset = expGolombDecoder.readUnsignedExpGolomb();\n frameCropBottomOffset = expGolombDecoder.readUnsignedExpGolomb();\n }\n if (expGolombDecoder.readBoolean()) {\n // vui_parameters_present_flag\n if (expGolombDecoder.readBoolean()) {\n // aspect_ratio_info_present_flag\n aspectRatioIdc = expGolombDecoder.readUnsignedByte();\n switch (aspectRatioIdc) {\n case 1:\n sarRatio = [1, 1];\n break;\n case 2:\n sarRatio = [12, 11];\n break;\n case 3:\n sarRatio = [10, 11];\n break;\n case 4:\n sarRatio = [16, 11];\n break;\n case 5:\n sarRatio = [40, 33];\n break;\n case 6:\n sarRatio = [24, 11];\n break;\n case 7:\n sarRatio = [20, 11];\n break;\n case 8:\n sarRatio = [32, 11];\n break;\n case 9:\n sarRatio = [80, 33];\n break;\n case 10:\n sarRatio = [18, 11];\n break;\n case 11:\n sarRatio = [15, 11];\n break;\n case 12:\n sarRatio = [64, 33];\n break;\n case 13:\n sarRatio = [160, 99];\n break;\n case 14:\n sarRatio = [4, 3];\n break;\n case 15:\n sarRatio = [3, 2];\n break;\n case 16:\n sarRatio = [2, 1];\n break;\n case 255:\n {\n sarRatio = [expGolombDecoder.readUnsignedByte() << 8 | expGolombDecoder.readUnsignedByte(), expGolombDecoder.readUnsignedByte() << 8 | expGolombDecoder.readUnsignedByte()];\n break;\n }\n }\n if (sarRatio) {\n sarRatio[0] / sarRatio[1];\n }\n }\n }\n return {\n profileIdc: profileIdc,\n levelIdc: levelIdc,\n profileCompatibility: profileCompatibility,\n width: (picWidthInMbsMinus1 + 1) * 16 - frameCropLeftOffset * 2 - frameCropRightOffset * 2,\n height: (2 - frameMbsOnlyFlag) * (picHeightInMapUnitsMinus1 + 1) * 16 - frameCropTopOffset * 2 - frameCropBottomOffset * 2,\n // sar is sample aspect ratio\n sarRatio: sarRatio\n };\n };\n };\n H264Stream$1.prototype = new Stream$2();\n var h264 = {\n H264Stream: H264Stream$1,\n NalByteStream: NalByteStream\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Utilities to detect basic properties and metadata about Aac data.\n */\n\n var ADTS_SAMPLING_FREQUENCIES = [96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350];\n var parseId3TagSize = function (header, byteIndex) {\n var returnSize = header[byteIndex + 6] << 21 | header[byteIndex + 7] << 14 | header[byteIndex + 8] << 7 | header[byteIndex + 9],\n flags = header[byteIndex + 5],\n footerPresent = (flags & 16) >> 4; // if we get a negative returnSize clamp it to 0\n\n returnSize = returnSize >= 0 ? returnSize : 0;\n if (footerPresent) {\n return returnSize + 20;\n }\n return returnSize + 10;\n };\n var getId3Offset = function (data, offset) {\n if (data.length - offset < 10 || data[offset] !== 'I'.charCodeAt(0) || data[offset + 1] !== 'D'.charCodeAt(0) || data[offset + 2] !== '3'.charCodeAt(0)) {\n return offset;\n }\n offset += parseId3TagSize(data, offset);\n return getId3Offset(data, offset);\n }; // TODO: use vhs-utils\n\n var isLikelyAacData$1 = function (data) {\n var offset = getId3Offset(data, 0);\n return data.length >= offset + 2 && (data[offset] & 0xFF) === 0xFF && (data[offset + 1] & 0xF0) === 0xF0 &&\n // verify that the 2 layer bits are 0, aka this\n // is not mp3 data but aac data.\n (data[offset + 1] & 0x16) === 0x10;\n };\n var parseSyncSafeInteger = function (data) {\n return data[0] << 21 | data[1] << 14 | data[2] << 7 | data[3];\n }; // return a percent-encoded representation of the specified byte range\n // @see http://en.wikipedia.org/wiki/Percent-encoding\n\n var percentEncode = function (bytes, start, end) {\n var i,\n result = '';\n for (i = start; i < end; i++) {\n result += '%' + ('00' + bytes[i].toString(16)).slice(-2);\n }\n return result;\n }; // return the string representation of the specified byte range,\n // interpreted as ISO-8859-1.\n\n var parseIso88591 = function (bytes, start, end) {\n return unescape(percentEncode(bytes, start, end)); // jshint ignore:line\n };\n\n var parseAdtsSize = function (header, byteIndex) {\n var lowThree = (header[byteIndex + 5] & 0xE0) >> 5,\n middle = header[byteIndex + 4] << 3,\n highTwo = header[byteIndex + 3] & 0x3 << 11;\n return highTwo | middle | lowThree;\n };\n var parseType$4 = function (header, byteIndex) {\n if (header[byteIndex] === 'I'.charCodeAt(0) && header[byteIndex + 1] === 'D'.charCodeAt(0) && header[byteIndex + 2] === '3'.charCodeAt(0)) {\n return 'timed-metadata';\n } else if (header[byteIndex] & 0xff === 0xff && (header[byteIndex + 1] & 0xf0) === 0xf0) {\n return 'audio';\n }\n return null;\n };\n var parseSampleRate = function (packet) {\n var i = 0;\n while (i + 5 < packet.length) {\n if (packet[i] !== 0xFF || (packet[i + 1] & 0xF6) !== 0xF0) {\n // If a valid header was not found, jump one forward and attempt to\n // find a valid ADTS header starting at the next byte\n i++;\n continue;\n }\n return ADTS_SAMPLING_FREQUENCIES[(packet[i + 2] & 0x3c) >>> 2];\n }\n return null;\n };\n var parseAacTimestamp = function (packet) {\n var frameStart, frameSize, frame, frameHeader; // find the start of the first frame and the end of the tag\n\n frameStart = 10;\n if (packet[5] & 0x40) {\n // advance the frame start past the extended header\n frameStart += 4; // header size field\n\n frameStart += parseSyncSafeInteger(packet.subarray(10, 14));\n } // parse one or more ID3 frames\n // http://id3.org/id3v2.3.0#ID3v2_frame_overview\n\n do {\n // determine the number of bytes in this frame\n frameSize = parseSyncSafeInteger(packet.subarray(frameStart + 4, frameStart + 8));\n if (frameSize < 1) {\n return null;\n }\n frameHeader = String.fromCharCode(packet[frameStart], packet[frameStart + 1], packet[frameStart + 2], packet[frameStart + 3]);\n if (frameHeader === 'PRIV') {\n frame = packet.subarray(frameStart + 10, frameStart + frameSize + 10);\n for (var i = 0; i < frame.byteLength; i++) {\n if (frame[i] === 0) {\n var owner = parseIso88591(frame, 0, i);\n if (owner === 'com.apple.streaming.transportStreamTimestamp') {\n var d = frame.subarray(i + 1);\n var size = (d[3] & 0x01) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2;\n size *= 4;\n size += d[7] & 0x03;\n return size;\n }\n break;\n }\n }\n }\n frameStart += 10; // advance past the frame header\n\n frameStart += frameSize; // advance past the frame body\n } while (frameStart < packet.byteLength);\n return null;\n };\n var utils = {\n isLikelyAacData: isLikelyAacData$1,\n parseId3TagSize: parseId3TagSize,\n parseAdtsSize: parseAdtsSize,\n parseType: parseType$4,\n parseSampleRate: parseSampleRate,\n parseAacTimestamp: parseAacTimestamp\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * A stream-based aac to mp4 converter. This utility can be used to\n * deliver mp4s to a SourceBuffer on platforms that support native\n * Media Source Extensions.\n */\n\n var Stream$1 = stream;\n var aacUtils = utils; // Constants\n\n var AacStream$1;\n /**\n * Splits an incoming stream of binary data into ADTS and ID3 Frames.\n */\n\n AacStream$1 = function () {\n var everything = new Uint8Array(),\n timeStamp = 0;\n AacStream$1.prototype.init.call(this);\n this.setTimestamp = function (timestamp) {\n timeStamp = timestamp;\n };\n this.push = function (bytes) {\n var frameSize = 0,\n byteIndex = 0,\n bytesLeft,\n chunk,\n packet,\n tempLength; // If there are bytes remaining from the last segment, prepend them to the\n // bytes that were pushed in\n\n if (everything.length) {\n tempLength = everything.length;\n everything = new Uint8Array(bytes.byteLength + tempLength);\n everything.set(everything.subarray(0, tempLength));\n everything.set(bytes, tempLength);\n } else {\n everything = bytes;\n }\n while (everything.length - byteIndex >= 3) {\n if (everything[byteIndex] === 'I'.charCodeAt(0) && everything[byteIndex + 1] === 'D'.charCodeAt(0) && everything[byteIndex + 2] === '3'.charCodeAt(0)) {\n // Exit early because we don't have enough to parse\n // the ID3 tag header\n if (everything.length - byteIndex < 10) {\n break;\n } // check framesize\n\n frameSize = aacUtils.parseId3TagSize(everything, byteIndex); // Exit early if we don't have enough in the buffer\n // to emit a full packet\n // Add to byteIndex to support multiple ID3 tags in sequence\n\n if (byteIndex + frameSize > everything.length) {\n break;\n }\n chunk = {\n type: 'timed-metadata',\n data: everything.subarray(byteIndex, byteIndex + frameSize)\n };\n this.trigger('data', chunk);\n byteIndex += frameSize;\n continue;\n } else if ((everything[byteIndex] & 0xff) === 0xff && (everything[byteIndex + 1] & 0xf0) === 0xf0) {\n // Exit early because we don't have enough to parse\n // the ADTS frame header\n if (everything.length - byteIndex < 7) {\n break;\n }\n frameSize = aacUtils.parseAdtsSize(everything, byteIndex); // Exit early if we don't have enough in the buffer\n // to emit a full packet\n\n if (byteIndex + frameSize > everything.length) {\n break;\n }\n packet = {\n type: 'audio',\n data: everything.subarray(byteIndex, byteIndex + frameSize),\n pts: timeStamp,\n dts: timeStamp\n };\n this.trigger('data', packet);\n byteIndex += frameSize;\n continue;\n }\n byteIndex++;\n }\n bytesLeft = everything.length - byteIndex;\n if (bytesLeft > 0) {\n everything = everything.subarray(byteIndex);\n } else {\n everything = new Uint8Array();\n }\n };\n this.reset = function () {\n everything = new Uint8Array();\n this.trigger('reset');\n };\n this.endTimeline = function () {\n everything = new Uint8Array();\n this.trigger('endedtimeline');\n };\n };\n AacStream$1.prototype = new Stream$1();\n var aac = AacStream$1;\n var AUDIO_PROPERTIES$1 = ['audioobjecttype', 'channelcount', 'samplerate', 'samplingfrequencyindex', 'samplesize'];\n var audioProperties = AUDIO_PROPERTIES$1;\n var VIDEO_PROPERTIES$1 = ['width', 'height', 'profileIdc', 'levelIdc', 'profileCompatibility', 'sarRatio'];\n var videoProperties = VIDEO_PROPERTIES$1;\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * A stream-based mp2t to mp4 converter. This utility can be used to\n * deliver mp4s to a SourceBuffer on platforms that support native\n * Media Source Extensions.\n */\n\n var Stream = stream;\n var mp4 = mp4Generator;\n var frameUtils = frameUtils$1;\n var audioFrameUtils = audioFrameUtils$1;\n var trackDecodeInfo = trackDecodeInfo$1;\n var m2ts = m2ts_1;\n var clock = clock$2;\n var AdtsStream = adts;\n var H264Stream = h264.H264Stream;\n var AacStream = aac;\n var isLikelyAacData = utils.isLikelyAacData;\n var ONE_SECOND_IN_TS$1 = clock$2.ONE_SECOND_IN_TS;\n var AUDIO_PROPERTIES = audioProperties;\n var VIDEO_PROPERTIES = videoProperties; // object types\n\n var VideoSegmentStream, AudioSegmentStream, Transmuxer, CoalesceStream;\n var retriggerForStream = function (key, event) {\n event.stream = key;\n this.trigger('log', event);\n };\n var addPipelineLogRetriggers = function (transmuxer, pipeline) {\n var keys = Object.keys(pipeline);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]; // skip non-stream keys and headOfPipeline\n // which is just a duplicate\n\n if (key === 'headOfPipeline' || !pipeline[key].on) {\n continue;\n }\n pipeline[key].on('log', retriggerForStream.bind(transmuxer, key));\n }\n };\n /**\n * Compare two arrays (even typed) for same-ness\n */\n\n var arrayEquals = function (a, b) {\n var i;\n if (a.length !== b.length) {\n return false;\n } // compare the value of each element in the array\n\n for (i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n };\n var generateSegmentTimingInfo = function (baseMediaDecodeTime, startDts, startPts, endDts, endPts, prependedContentDuration) {\n var ptsOffsetFromDts = startPts - startDts,\n decodeDuration = endDts - startDts,\n presentationDuration = endPts - startPts; // The PTS and DTS values are based on the actual stream times from the segment,\n // however, the player time values will reflect a start from the baseMediaDecodeTime.\n // In order to provide relevant values for the player times, base timing info on the\n // baseMediaDecodeTime and the DTS and PTS durations of the segment.\n\n return {\n start: {\n dts: baseMediaDecodeTime,\n pts: baseMediaDecodeTime + ptsOffsetFromDts\n },\n end: {\n dts: baseMediaDecodeTime + decodeDuration,\n pts: baseMediaDecodeTime + presentationDuration\n },\n prependedContentDuration: prependedContentDuration,\n baseMediaDecodeTime: baseMediaDecodeTime\n };\n };\n /**\n * Constructs a single-track, ISO BMFF media segment from AAC data\n * events. The output of this stream can be fed to a SourceBuffer\n * configured with a suitable initialization segment.\n * @param track {object} track metadata configuration\n * @param options {object} transmuxer options object\n * @param options.keepOriginalTimestamps {boolean} If true, keep the timestamps\n * in the source; false to adjust the first segment to start at 0.\n */\n\n AudioSegmentStream = function (track, options) {\n var adtsFrames = [],\n sequenceNumber,\n earliestAllowedDts = 0,\n audioAppendStartTs = 0,\n videoBaseMediaDecodeTime = Infinity;\n options = options || {};\n sequenceNumber = options.firstSequenceNumber || 0;\n AudioSegmentStream.prototype.init.call(this);\n this.push = function (data) {\n trackDecodeInfo.collectDtsInfo(track, data);\n if (track) {\n AUDIO_PROPERTIES.forEach(function (prop) {\n track[prop] = data[prop];\n });\n } // buffer audio data until end() is called\n\n adtsFrames.push(data);\n };\n this.setEarliestDts = function (earliestDts) {\n earliestAllowedDts = earliestDts;\n };\n this.setVideoBaseMediaDecodeTime = function (baseMediaDecodeTime) {\n videoBaseMediaDecodeTime = baseMediaDecodeTime;\n };\n this.setAudioAppendStart = function (timestamp) {\n audioAppendStartTs = timestamp;\n };\n this.flush = function () {\n var frames, moof, mdat, boxes, frameDuration, segmentDuration, videoClockCyclesOfSilencePrefixed; // return early if no audio data has been observed\n\n if (adtsFrames.length === 0) {\n this.trigger('done', 'AudioSegmentStream');\n return;\n }\n frames = audioFrameUtils.trimAdtsFramesByEarliestDts(adtsFrames, track, earliestAllowedDts);\n track.baseMediaDecodeTime = trackDecodeInfo.calculateTrackBaseMediaDecodeTime(track, options.keepOriginalTimestamps); // amount of audio filled but the value is in video clock rather than audio clock\n\n videoClockCyclesOfSilencePrefixed = audioFrameUtils.prefixWithSilence(track, frames, audioAppendStartTs, videoBaseMediaDecodeTime); // we have to build the index from byte locations to\n // samples (that is, adts frames) in the audio data\n\n track.samples = audioFrameUtils.generateSampleTable(frames); // concatenate the audio data to constuct the mdat\n\n mdat = mp4.mdat(audioFrameUtils.concatenateFrameData(frames));\n adtsFrames = [];\n moof = mp4.moof(sequenceNumber, [track]);\n boxes = new Uint8Array(moof.byteLength + mdat.byteLength); // bump the sequence number for next time\n\n sequenceNumber++;\n boxes.set(moof);\n boxes.set(mdat, moof.byteLength);\n trackDecodeInfo.clearDtsInfo(track);\n frameDuration = Math.ceil(ONE_SECOND_IN_TS$1 * 1024 / track.samplerate); // TODO this check was added to maintain backwards compatibility (particularly with\n // tests) on adding the timingInfo event. However, it seems unlikely that there's a\n // valid use-case where an init segment/data should be triggered without associated\n // frames. Leaving for now, but should be looked into.\n\n if (frames.length) {\n segmentDuration = frames.length * frameDuration;\n this.trigger('segmentTimingInfo', generateSegmentTimingInfo(\n // The audio track's baseMediaDecodeTime is in audio clock cycles, but the\n // frame info is in video clock cycles. Convert to match expectation of\n // listeners (that all timestamps will be based on video clock cycles).\n clock.audioTsToVideoTs(track.baseMediaDecodeTime, track.samplerate),\n // frame times are already in video clock, as is segment duration\n frames[0].dts, frames[0].pts, frames[0].dts + segmentDuration, frames[0].pts + segmentDuration, videoClockCyclesOfSilencePrefixed || 0));\n this.trigger('timingInfo', {\n start: frames[0].pts,\n end: frames[0].pts + segmentDuration\n });\n }\n this.trigger('data', {\n track: track,\n boxes: boxes\n });\n this.trigger('done', 'AudioSegmentStream');\n };\n this.reset = function () {\n trackDecodeInfo.clearDtsInfo(track);\n adtsFrames = [];\n this.trigger('reset');\n };\n };\n AudioSegmentStream.prototype = new Stream();\n /**\n * Constructs a single-track, ISO BMFF media segment from H264 data\n * events. The output of this stream can be fed to a SourceBuffer\n * configured with a suitable initialization segment.\n * @param track {object} track metadata configuration\n * @param options {object} transmuxer options object\n * @param options.alignGopsAtEnd {boolean} If true, start from the end of the\n * gopsToAlignWith list when attempting to align gop pts\n * @param options.keepOriginalTimestamps {boolean} If true, keep the timestamps\n * in the source; false to adjust the first segment to start at 0.\n */\n\n VideoSegmentStream = function (track, options) {\n var sequenceNumber,\n nalUnits = [],\n gopsToAlignWith = [],\n config,\n pps;\n options = options || {};\n sequenceNumber = options.firstSequenceNumber || 0;\n VideoSegmentStream.prototype.init.call(this);\n delete track.minPTS;\n this.gopCache_ = [];\n /**\n * Constructs a ISO BMFF segment given H264 nalUnits\n * @param {Object} nalUnit A data event representing a nalUnit\n * @param {String} nalUnit.nalUnitType\n * @param {Object} nalUnit.config Properties for a mp4 track\n * @param {Uint8Array} nalUnit.data The nalUnit bytes\n * @see lib/codecs/h264.js\n **/\n\n this.push = function (nalUnit) {\n trackDecodeInfo.collectDtsInfo(track, nalUnit); // record the track config\n\n if (nalUnit.nalUnitType === 'seq_parameter_set_rbsp' && !config) {\n config = nalUnit.config;\n track.sps = [nalUnit.data];\n VIDEO_PROPERTIES.forEach(function (prop) {\n track[prop] = config[prop];\n }, this);\n }\n if (nalUnit.nalUnitType === 'pic_parameter_set_rbsp' && !pps) {\n pps = nalUnit.data;\n track.pps = [nalUnit.data];\n } // buffer video until flush() is called\n\n nalUnits.push(nalUnit);\n };\n /**\n * Pass constructed ISO BMFF track and boxes on to the\n * next stream in the pipeline\n **/\n\n this.flush = function () {\n var frames,\n gopForFusion,\n gops,\n moof,\n mdat,\n boxes,\n prependedContentDuration = 0,\n firstGop,\n lastGop; // Throw away nalUnits at the start of the byte stream until\n // we find the first AUD\n\n while (nalUnits.length) {\n if (nalUnits[0].nalUnitType === 'access_unit_delimiter_rbsp') {\n break;\n }\n nalUnits.shift();\n } // Return early if no video data has been observed\n\n if (nalUnits.length === 0) {\n this.resetStream_();\n this.trigger('done', 'VideoSegmentStream');\n return;\n } // Organize the raw nal-units into arrays that represent\n // higher-level constructs such as frames and gops\n // (group-of-pictures)\n\n frames = frameUtils.groupNalsIntoFrames(nalUnits);\n gops = frameUtils.groupFramesIntoGops(frames); // If the first frame of this fragment is not a keyframe we have\n // a problem since MSE (on Chrome) requires a leading keyframe.\n //\n // We have two approaches to repairing this situation:\n // 1) GOP-FUSION:\n // This is where we keep track of the GOPS (group-of-pictures)\n // from previous fragments and attempt to find one that we can\n // prepend to the current fragment in order to create a valid\n // fragment.\n // 2) KEYFRAME-PULLING:\n // Here we search for the first keyframe in the fragment and\n // throw away all the frames between the start of the fragment\n // and that keyframe. We then extend the duration and pull the\n // PTS of the keyframe forward so that it covers the time range\n // of the frames that were disposed of.\n //\n // #1 is far prefereable over #2 which can cause \"stuttering\" but\n // requires more things to be just right.\n\n if (!gops[0][0].keyFrame) {\n // Search for a gop for fusion from our gopCache\n gopForFusion = this.getGopForFusion_(nalUnits[0], track);\n if (gopForFusion) {\n // in order to provide more accurate timing information about the segment, save\n // the number of seconds prepended to the original segment due to GOP fusion\n prependedContentDuration = gopForFusion.duration;\n gops.unshift(gopForFusion); // Adjust Gops' metadata to account for the inclusion of the\n // new gop at the beginning\n\n gops.byteLength += gopForFusion.byteLength;\n gops.nalCount += gopForFusion.nalCount;\n gops.pts = gopForFusion.pts;\n gops.dts = gopForFusion.dts;\n gops.duration += gopForFusion.duration;\n } else {\n // If we didn't find a candidate gop fall back to keyframe-pulling\n gops = frameUtils.extendFirstKeyFrame(gops);\n }\n } // Trim gops to align with gopsToAlignWith\n\n if (gopsToAlignWith.length) {\n var alignedGops;\n if (options.alignGopsAtEnd) {\n alignedGops = this.alignGopsAtEnd_(gops);\n } else {\n alignedGops = this.alignGopsAtStart_(gops);\n }\n if (!alignedGops) {\n // save all the nals in the last GOP into the gop cache\n this.gopCache_.unshift({\n gop: gops.pop(),\n pps: track.pps,\n sps: track.sps\n }); // Keep a maximum of 6 GOPs in the cache\n\n this.gopCache_.length = Math.min(6, this.gopCache_.length); // Clear nalUnits\n\n nalUnits = []; // return early no gops can be aligned with desired gopsToAlignWith\n\n this.resetStream_();\n this.trigger('done', 'VideoSegmentStream');\n return;\n } // Some gops were trimmed. clear dts info so minSegmentDts and pts are correct\n // when recalculated before sending off to CoalesceStream\n\n trackDecodeInfo.clearDtsInfo(track);\n gops = alignedGops;\n }\n trackDecodeInfo.collectDtsInfo(track, gops); // First, we have to build the index from byte locations to\n // samples (that is, frames) in the video data\n\n track.samples = frameUtils.generateSampleTable(gops); // Concatenate the video data and construct the mdat\n\n mdat = mp4.mdat(frameUtils.concatenateNalData(gops));\n track.baseMediaDecodeTime = trackDecodeInfo.calculateTrackBaseMediaDecodeTime(track, options.keepOriginalTimestamps);\n this.trigger('processedGopsInfo', gops.map(function (gop) {\n return {\n pts: gop.pts,\n dts: gop.dts,\n byteLength: gop.byteLength\n };\n }));\n firstGop = gops[0];\n lastGop = gops[gops.length - 1];\n this.trigger('segmentTimingInfo', generateSegmentTimingInfo(track.baseMediaDecodeTime, firstGop.dts, firstGop.pts, lastGop.dts + lastGop.duration, lastGop.pts + lastGop.duration, prependedContentDuration));\n this.trigger('timingInfo', {\n start: gops[0].pts,\n end: gops[gops.length - 1].pts + gops[gops.length - 1].duration\n }); // save all the nals in the last GOP into the gop cache\n\n this.gopCache_.unshift({\n gop: gops.pop(),\n pps: track.pps,\n sps: track.sps\n }); // Keep a maximum of 6 GOPs in the cache\n\n this.gopCache_.length = Math.min(6, this.gopCache_.length); // Clear nalUnits\n\n nalUnits = [];\n this.trigger('baseMediaDecodeTime', track.baseMediaDecodeTime);\n this.trigger('timelineStartInfo', track.timelineStartInfo);\n moof = mp4.moof(sequenceNumber, [track]); // it would be great to allocate this array up front instead of\n // throwing away hundreds of media segment fragments\n\n boxes = new Uint8Array(moof.byteLength + mdat.byteLength); // Bump the sequence number for next time\n\n sequenceNumber++;\n boxes.set(moof);\n boxes.set(mdat, moof.byteLength);\n this.trigger('data', {\n track: track,\n boxes: boxes\n });\n this.resetStream_(); // Continue with the flush process now\n\n this.trigger('done', 'VideoSegmentStream');\n };\n this.reset = function () {\n this.resetStream_();\n nalUnits = [];\n this.gopCache_.length = 0;\n gopsToAlignWith.length = 0;\n this.trigger('reset');\n };\n this.resetStream_ = function () {\n trackDecodeInfo.clearDtsInfo(track); // reset config and pps because they may differ across segments\n // for instance, when we are rendition switching\n\n config = undefined;\n pps = undefined;\n }; // Search for a candidate Gop for gop-fusion from the gop cache and\n // return it or return null if no good candidate was found\n\n this.getGopForFusion_ = function (nalUnit) {\n var halfSecond = 45000,\n // Half-a-second in a 90khz clock\n allowableOverlap = 10000,\n // About 3 frames @ 30fps\n nearestDistance = Infinity,\n dtsDistance,\n nearestGopObj,\n currentGop,\n currentGopObj,\n i; // Search for the GOP nearest to the beginning of this nal unit\n\n for (i = 0; i < this.gopCache_.length; i++) {\n currentGopObj = this.gopCache_[i];\n currentGop = currentGopObj.gop; // Reject Gops with different SPS or PPS\n\n if (!(track.pps && arrayEquals(track.pps[0], currentGopObj.pps[0])) || !(track.sps && arrayEquals(track.sps[0], currentGopObj.sps[0]))) {\n continue;\n } // Reject Gops that would require a negative baseMediaDecodeTime\n\n if (currentGop.dts < track.timelineStartInfo.dts) {\n continue;\n } // The distance between the end of the gop and the start of the nalUnit\n\n dtsDistance = nalUnit.dts - currentGop.dts - currentGop.duration; // Only consider GOPS that start before the nal unit and end within\n // a half-second of the nal unit\n\n if (dtsDistance >= -allowableOverlap && dtsDistance <= halfSecond) {\n // Always use the closest GOP we found if there is more than\n // one candidate\n if (!nearestGopObj || nearestDistance > dtsDistance) {\n nearestGopObj = currentGopObj;\n nearestDistance = dtsDistance;\n }\n }\n }\n if (nearestGopObj) {\n return nearestGopObj.gop;\n }\n return null;\n }; // trim gop list to the first gop found that has a matching pts with a gop in the list\n // of gopsToAlignWith starting from the START of the list\n\n this.alignGopsAtStart_ = function (gops) {\n var alignIndex, gopIndex, align, gop, byteLength, nalCount, duration, alignedGops;\n byteLength = gops.byteLength;\n nalCount = gops.nalCount;\n duration = gops.duration;\n alignIndex = gopIndex = 0;\n while (alignIndex < gopsToAlignWith.length && gopIndex < gops.length) {\n align = gopsToAlignWith[alignIndex];\n gop = gops[gopIndex];\n if (align.pts === gop.pts) {\n break;\n }\n if (gop.pts > align.pts) {\n // this current gop starts after the current gop we want to align on, so increment\n // align index\n alignIndex++;\n continue;\n } // current gop starts before the current gop we want to align on. so increment gop\n // index\n\n gopIndex++;\n byteLength -= gop.byteLength;\n nalCount -= gop.nalCount;\n duration -= gop.duration;\n }\n if (gopIndex === 0) {\n // no gops to trim\n return gops;\n }\n if (gopIndex === gops.length) {\n // all gops trimmed, skip appending all gops\n return null;\n }\n alignedGops = gops.slice(gopIndex);\n alignedGops.byteLength = byteLength;\n alignedGops.duration = duration;\n alignedGops.nalCount = nalCount;\n alignedGops.pts = alignedGops[0].pts;\n alignedGops.dts = alignedGops[0].dts;\n return alignedGops;\n }; // trim gop list to the first gop found that has a matching pts with a gop in the list\n // of gopsToAlignWith starting from the END of the list\n\n this.alignGopsAtEnd_ = function (gops) {\n var alignIndex, gopIndex, align, gop, alignEndIndex, matchFound;\n alignIndex = gopsToAlignWith.length - 1;\n gopIndex = gops.length - 1;\n alignEndIndex = null;\n matchFound = false;\n while (alignIndex >= 0 && gopIndex >= 0) {\n align = gopsToAlignWith[alignIndex];\n gop = gops[gopIndex];\n if (align.pts === gop.pts) {\n matchFound = true;\n break;\n }\n if (align.pts > gop.pts) {\n alignIndex--;\n continue;\n }\n if (alignIndex === gopsToAlignWith.length - 1) {\n // gop.pts is greater than the last alignment candidate. If no match is found\n // by the end of this loop, we still want to append gops that come after this\n // point\n alignEndIndex = gopIndex;\n }\n gopIndex--;\n }\n if (!matchFound && alignEndIndex === null) {\n return null;\n }\n var trimIndex;\n if (matchFound) {\n trimIndex = gopIndex;\n } else {\n trimIndex = alignEndIndex;\n }\n if (trimIndex === 0) {\n return gops;\n }\n var alignedGops = gops.slice(trimIndex);\n var metadata = alignedGops.reduce(function (total, gop) {\n total.byteLength += gop.byteLength;\n total.duration += gop.duration;\n total.nalCount += gop.nalCount;\n return total;\n }, {\n byteLength: 0,\n duration: 0,\n nalCount: 0\n });\n alignedGops.byteLength = metadata.byteLength;\n alignedGops.duration = metadata.duration;\n alignedGops.nalCount = metadata.nalCount;\n alignedGops.pts = alignedGops[0].pts;\n alignedGops.dts = alignedGops[0].dts;\n return alignedGops;\n };\n this.alignGopsWith = function (newGopsToAlignWith) {\n gopsToAlignWith = newGopsToAlignWith;\n };\n };\n VideoSegmentStream.prototype = new Stream();\n /**\n * A Stream that can combine multiple streams (ie. audio & video)\n * into a single output segment for MSE. Also supports audio-only\n * and video-only streams.\n * @param options {object} transmuxer options object\n * @param options.keepOriginalTimestamps {boolean} If true, keep the timestamps\n * in the source; false to adjust the first segment to start at media timeline start.\n */\n\n CoalesceStream = function (options, metadataStream) {\n // Number of Tracks per output segment\n // If greater than 1, we combine multiple\n // tracks into a single segment\n this.numberOfTracks = 0;\n this.metadataStream = metadataStream;\n options = options || {};\n if (typeof options.remux !== 'undefined') {\n this.remuxTracks = !!options.remux;\n } else {\n this.remuxTracks = true;\n }\n if (typeof options.keepOriginalTimestamps === 'boolean') {\n this.keepOriginalTimestamps = options.keepOriginalTimestamps;\n } else {\n this.keepOriginalTimestamps = false;\n }\n this.pendingTracks = [];\n this.videoTrack = null;\n this.pendingBoxes = [];\n this.pendingCaptions = [];\n this.pendingMetadata = [];\n this.pendingBytes = 0;\n this.emittedTracks = 0;\n CoalesceStream.prototype.init.call(this); // Take output from multiple\n\n this.push = function (output) {\n // buffer incoming captions until the associated video segment\n // finishes\n if (output.content || output.text) {\n return this.pendingCaptions.push(output);\n } // buffer incoming id3 tags until the final flush\n\n if (output.frames) {\n return this.pendingMetadata.push(output);\n } // Add this track to the list of pending tracks and store\n // important information required for the construction of\n // the final segment\n\n this.pendingTracks.push(output.track);\n this.pendingBytes += output.boxes.byteLength; // TODO: is there an issue for this against chrome?\n // We unshift audio and push video because\n // as of Chrome 75 when switching from\n // one init segment to another if the video\n // mdat does not appear after the audio mdat\n // only audio will play for the duration of our transmux.\n\n if (output.track.type === 'video') {\n this.videoTrack = output.track;\n this.pendingBoxes.push(output.boxes);\n }\n if (output.track.type === 'audio') {\n this.audioTrack = output.track;\n this.pendingBoxes.unshift(output.boxes);\n }\n };\n };\n CoalesceStream.prototype = new Stream();\n CoalesceStream.prototype.flush = function (flushSource) {\n var offset = 0,\n event = {\n captions: [],\n captionStreams: {},\n metadata: [],\n info: {}\n },\n caption,\n id3,\n initSegment,\n timelineStartPts = 0,\n i;\n if (this.pendingTracks.length < this.numberOfTracks) {\n if (flushSource !== 'VideoSegmentStream' && flushSource !== 'AudioSegmentStream') {\n // Return because we haven't received a flush from a data-generating\n // portion of the segment (meaning that we have only recieved meta-data\n // or captions.)\n return;\n } else if (this.remuxTracks) {\n // Return until we have enough tracks from the pipeline to remux (if we\n // are remuxing audio and video into a single MP4)\n return;\n } else if (this.pendingTracks.length === 0) {\n // In the case where we receive a flush without any data having been\n // received we consider it an emitted track for the purposes of coalescing\n // `done` events.\n // We do this for the case where there is an audio and video track in the\n // segment but no audio data. (seen in several playlists with alternate\n // audio tracks and no audio present in the main TS segments.)\n this.emittedTracks++;\n if (this.emittedTracks >= this.numberOfTracks) {\n this.trigger('done');\n this.emittedTracks = 0;\n }\n return;\n }\n }\n if (this.videoTrack) {\n timelineStartPts = this.videoTrack.timelineStartInfo.pts;\n VIDEO_PROPERTIES.forEach(function (prop) {\n event.info[prop] = this.videoTrack[prop];\n }, this);\n } else if (this.audioTrack) {\n timelineStartPts = this.audioTrack.timelineStartInfo.pts;\n AUDIO_PROPERTIES.forEach(function (prop) {\n event.info[prop] = this.audioTrack[prop];\n }, this);\n }\n if (this.videoTrack || this.audioTrack) {\n if (this.pendingTracks.length === 1) {\n event.type = this.pendingTracks[0].type;\n } else {\n event.type = 'combined';\n }\n this.emittedTracks += this.pendingTracks.length;\n initSegment = mp4.initSegment(this.pendingTracks); // Create a new typed array to hold the init segment\n\n event.initSegment = new Uint8Array(initSegment.byteLength); // Create an init segment containing a moov\n // and track definitions\n\n event.initSegment.set(initSegment); // Create a new typed array to hold the moof+mdats\n\n event.data = new Uint8Array(this.pendingBytes); // Append each moof+mdat (one per track) together\n\n for (i = 0; i < this.pendingBoxes.length; i++) {\n event.data.set(this.pendingBoxes[i], offset);\n offset += this.pendingBoxes[i].byteLength;\n } // Translate caption PTS times into second offsets to match the\n // video timeline for the segment, and add track info\n\n for (i = 0; i < this.pendingCaptions.length; i++) {\n caption = this.pendingCaptions[i];\n caption.startTime = clock.metadataTsToSeconds(caption.startPts, timelineStartPts, this.keepOriginalTimestamps);\n caption.endTime = clock.metadataTsToSeconds(caption.endPts, timelineStartPts, this.keepOriginalTimestamps);\n event.captionStreams[caption.stream] = true;\n event.captions.push(caption);\n } // Translate ID3 frame PTS times into second offsets to match the\n // video timeline for the segment\n\n for (i = 0; i < this.pendingMetadata.length; i++) {\n id3 = this.pendingMetadata[i];\n id3.cueTime = clock.metadataTsToSeconds(id3.pts, timelineStartPts, this.keepOriginalTimestamps);\n event.metadata.push(id3);\n } // We add this to every single emitted segment even though we only need\n // it for the first\n\n event.metadata.dispatchType = this.metadataStream.dispatchType; // Reset stream state\n\n this.pendingTracks.length = 0;\n this.videoTrack = null;\n this.pendingBoxes.length = 0;\n this.pendingCaptions.length = 0;\n this.pendingBytes = 0;\n this.pendingMetadata.length = 0; // Emit the built segment\n // We include captions and ID3 tags for backwards compatibility,\n // ideally we should send only video and audio in the data event\n\n this.trigger('data', event); // Emit each caption to the outside world\n // Ideally, this would happen immediately on parsing captions,\n // but we need to ensure that video data is sent back first\n // so that caption timing can be adjusted to match video timing\n\n for (i = 0; i < event.captions.length; i++) {\n caption = event.captions[i];\n this.trigger('caption', caption);\n } // Emit each id3 tag to the outside world\n // Ideally, this would happen immediately on parsing the tag,\n // but we need to ensure that video data is sent back first\n // so that ID3 frame timing can be adjusted to match video timing\n\n for (i = 0; i < event.metadata.length; i++) {\n id3 = event.metadata[i];\n this.trigger('id3Frame', id3);\n }\n } // Only emit `done` if all tracks have been flushed and emitted\n\n if (this.emittedTracks >= this.numberOfTracks) {\n this.trigger('done');\n this.emittedTracks = 0;\n }\n };\n CoalesceStream.prototype.setRemux = function (val) {\n this.remuxTracks = val;\n };\n /**\n * A Stream that expects MP2T binary data as input and produces\n * corresponding media segments, suitable for use with Media Source\n * Extension (MSE) implementations that support the ISO BMFF byte\n * stream format, like Chrome.\n */\n\n Transmuxer = function (options) {\n var self = this,\n hasFlushed = true,\n videoTrack,\n audioTrack;\n Transmuxer.prototype.init.call(this);\n options = options || {};\n this.baseMediaDecodeTime = options.baseMediaDecodeTime || 0;\n this.transmuxPipeline_ = {};\n this.setupAacPipeline = function () {\n var pipeline = {};\n this.transmuxPipeline_ = pipeline;\n pipeline.type = 'aac';\n pipeline.metadataStream = new m2ts.MetadataStream(); // set up the parsing pipeline\n\n pipeline.aacStream = new AacStream();\n pipeline.audioTimestampRolloverStream = new m2ts.TimestampRolloverStream('audio');\n pipeline.timedMetadataTimestampRolloverStream = new m2ts.TimestampRolloverStream('timed-metadata');\n pipeline.adtsStream = new AdtsStream();\n pipeline.coalesceStream = new CoalesceStream(options, pipeline.metadataStream);\n pipeline.headOfPipeline = pipeline.aacStream;\n pipeline.aacStream.pipe(pipeline.audioTimestampRolloverStream).pipe(pipeline.adtsStream);\n pipeline.aacStream.pipe(pipeline.timedMetadataTimestampRolloverStream).pipe(pipeline.metadataStream).pipe(pipeline.coalesceStream);\n pipeline.metadataStream.on('timestamp', function (frame) {\n pipeline.aacStream.setTimestamp(frame.timeStamp);\n });\n pipeline.aacStream.on('data', function (data) {\n if (data.type !== 'timed-metadata' && data.type !== 'audio' || pipeline.audioSegmentStream) {\n return;\n }\n audioTrack = audioTrack || {\n timelineStartInfo: {\n baseMediaDecodeTime: self.baseMediaDecodeTime\n },\n codec: 'adts',\n type: 'audio'\n }; // hook up the audio segment stream to the first track with aac data\n\n pipeline.coalesceStream.numberOfTracks++;\n pipeline.audioSegmentStream = new AudioSegmentStream(audioTrack, options);\n pipeline.audioSegmentStream.on('log', self.getLogTrigger_('audioSegmentStream'));\n pipeline.audioSegmentStream.on('timingInfo', self.trigger.bind(self, 'audioTimingInfo')); // Set up the final part of the audio pipeline\n\n pipeline.adtsStream.pipe(pipeline.audioSegmentStream).pipe(pipeline.coalesceStream); // emit pmt info\n\n self.trigger('trackinfo', {\n hasAudio: !!audioTrack,\n hasVideo: !!videoTrack\n });\n }); // Re-emit any data coming from the coalesce stream to the outside world\n\n pipeline.coalesceStream.on('data', this.trigger.bind(this, 'data')); // Let the consumer know we have finished flushing the entire pipeline\n\n pipeline.coalesceStream.on('done', this.trigger.bind(this, 'done'));\n addPipelineLogRetriggers(this, pipeline);\n };\n this.setupTsPipeline = function () {\n var pipeline = {};\n this.transmuxPipeline_ = pipeline;\n pipeline.type = 'ts';\n pipeline.metadataStream = new m2ts.MetadataStream(); // set up the parsing pipeline\n\n pipeline.packetStream = new m2ts.TransportPacketStream();\n pipeline.parseStream = new m2ts.TransportParseStream();\n pipeline.elementaryStream = new m2ts.ElementaryStream();\n pipeline.timestampRolloverStream = new m2ts.TimestampRolloverStream();\n pipeline.adtsStream = new AdtsStream();\n pipeline.h264Stream = new H264Stream();\n pipeline.captionStream = new m2ts.CaptionStream(options);\n pipeline.coalesceStream = new CoalesceStream(options, pipeline.metadataStream);\n pipeline.headOfPipeline = pipeline.packetStream; // disassemble MPEG2-TS packets into elementary streams\n\n pipeline.packetStream.pipe(pipeline.parseStream).pipe(pipeline.elementaryStream).pipe(pipeline.timestampRolloverStream); // !!THIS ORDER IS IMPORTANT!!\n // demux the streams\n\n pipeline.timestampRolloverStream.pipe(pipeline.h264Stream);\n pipeline.timestampRolloverStream.pipe(pipeline.adtsStream);\n pipeline.timestampRolloverStream.pipe(pipeline.metadataStream).pipe(pipeline.coalesceStream); // Hook up CEA-608/708 caption stream\n\n pipeline.h264Stream.pipe(pipeline.captionStream).pipe(pipeline.coalesceStream);\n pipeline.elementaryStream.on('data', function (data) {\n var i;\n if (data.type === 'metadata') {\n i = data.tracks.length; // scan the tracks listed in the metadata\n\n while (i--) {\n if (!videoTrack && data.tracks[i].type === 'video') {\n videoTrack = data.tracks[i];\n videoTrack.timelineStartInfo.baseMediaDecodeTime = self.baseMediaDecodeTime;\n } else if (!audioTrack && data.tracks[i].type === 'audio') {\n audioTrack = data.tracks[i];\n audioTrack.timelineStartInfo.baseMediaDecodeTime = self.baseMediaDecodeTime;\n }\n } // hook up the video segment stream to the first track with h264 data\n\n if (videoTrack && !pipeline.videoSegmentStream) {\n pipeline.coalesceStream.numberOfTracks++;\n pipeline.videoSegmentStream = new VideoSegmentStream(videoTrack, options);\n pipeline.videoSegmentStream.on('log', self.getLogTrigger_('videoSegmentStream'));\n pipeline.videoSegmentStream.on('timelineStartInfo', function (timelineStartInfo) {\n // When video emits timelineStartInfo data after a flush, we forward that\n // info to the AudioSegmentStream, if it exists, because video timeline\n // data takes precedence. Do not do this if keepOriginalTimestamps is set,\n // because this is a particularly subtle form of timestamp alteration.\n if (audioTrack && !options.keepOriginalTimestamps) {\n audioTrack.timelineStartInfo = timelineStartInfo; // On the first segment we trim AAC frames that exist before the\n // very earliest DTS we have seen in video because Chrome will\n // interpret any video track with a baseMediaDecodeTime that is\n // non-zero as a gap.\n\n pipeline.audioSegmentStream.setEarliestDts(timelineStartInfo.dts - self.baseMediaDecodeTime);\n }\n });\n pipeline.videoSegmentStream.on('processedGopsInfo', self.trigger.bind(self, 'gopInfo'));\n pipeline.videoSegmentStream.on('segmentTimingInfo', self.trigger.bind(self, 'videoSegmentTimingInfo'));\n pipeline.videoSegmentStream.on('baseMediaDecodeTime', function (baseMediaDecodeTime) {\n if (audioTrack) {\n pipeline.audioSegmentStream.setVideoBaseMediaDecodeTime(baseMediaDecodeTime);\n }\n });\n pipeline.videoSegmentStream.on('timingInfo', self.trigger.bind(self, 'videoTimingInfo')); // Set up the final part of the video pipeline\n\n pipeline.h264Stream.pipe(pipeline.videoSegmentStream).pipe(pipeline.coalesceStream);\n }\n if (audioTrack && !pipeline.audioSegmentStream) {\n // hook up the audio segment stream to the first track with aac data\n pipeline.coalesceStream.numberOfTracks++;\n pipeline.audioSegmentStream = new AudioSegmentStream(audioTrack, options);\n pipeline.audioSegmentStream.on('log', self.getLogTrigger_('audioSegmentStream'));\n pipeline.audioSegmentStream.on('timingInfo', self.trigger.bind(self, 'audioTimingInfo'));\n pipeline.audioSegmentStream.on('segmentTimingInfo', self.trigger.bind(self, 'audioSegmentTimingInfo')); // Set up the final part of the audio pipeline\n\n pipeline.adtsStream.pipe(pipeline.audioSegmentStream).pipe(pipeline.coalesceStream);\n } // emit pmt info\n\n self.trigger('trackinfo', {\n hasAudio: !!audioTrack,\n hasVideo: !!videoTrack\n });\n }\n }); // Re-emit any data coming from the coalesce stream to the outside world\n\n pipeline.coalesceStream.on('data', this.trigger.bind(this, 'data'));\n pipeline.coalesceStream.on('id3Frame', function (id3Frame) {\n id3Frame.dispatchType = pipeline.metadataStream.dispatchType;\n self.trigger('id3Frame', id3Frame);\n });\n pipeline.coalesceStream.on('caption', this.trigger.bind(this, 'caption')); // Let the consumer know we have finished flushing the entire pipeline\n\n pipeline.coalesceStream.on('done', this.trigger.bind(this, 'done'));\n addPipelineLogRetriggers(this, pipeline);\n }; // hook up the segment streams once track metadata is delivered\n\n this.setBaseMediaDecodeTime = function (baseMediaDecodeTime) {\n var pipeline = this.transmuxPipeline_;\n if (!options.keepOriginalTimestamps) {\n this.baseMediaDecodeTime = baseMediaDecodeTime;\n }\n if (audioTrack) {\n audioTrack.timelineStartInfo.dts = undefined;\n audioTrack.timelineStartInfo.pts = undefined;\n trackDecodeInfo.clearDtsInfo(audioTrack);\n if (pipeline.audioTimestampRolloverStream) {\n pipeline.audioTimestampRolloverStream.discontinuity();\n }\n }\n if (videoTrack) {\n if (pipeline.videoSegmentStream) {\n pipeline.videoSegmentStream.gopCache_ = [];\n }\n videoTrack.timelineStartInfo.dts = undefined;\n videoTrack.timelineStartInfo.pts = undefined;\n trackDecodeInfo.clearDtsInfo(videoTrack);\n pipeline.captionStream.reset();\n }\n if (pipeline.timestampRolloverStream) {\n pipeline.timestampRolloverStream.discontinuity();\n }\n };\n this.setAudioAppendStart = function (timestamp) {\n if (audioTrack) {\n this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(timestamp);\n }\n };\n this.setRemux = function (val) {\n var pipeline = this.transmuxPipeline_;\n options.remux = val;\n if (pipeline && pipeline.coalesceStream) {\n pipeline.coalesceStream.setRemux(val);\n }\n };\n this.alignGopsWith = function (gopsToAlignWith) {\n if (videoTrack && this.transmuxPipeline_.videoSegmentStream) {\n this.transmuxPipeline_.videoSegmentStream.alignGopsWith(gopsToAlignWith);\n }\n };\n this.getLogTrigger_ = function (key) {\n var self = this;\n return function (event) {\n event.stream = key;\n self.trigger('log', event);\n };\n }; // feed incoming data to the front of the parsing pipeline\n\n this.push = function (data) {\n if (hasFlushed) {\n var isAac = isLikelyAacData(data);\n if (isAac && this.transmuxPipeline_.type !== 'aac') {\n this.setupAacPipeline();\n } else if (!isAac && this.transmuxPipeline_.type !== 'ts') {\n this.setupTsPipeline();\n }\n hasFlushed = false;\n }\n this.transmuxPipeline_.headOfPipeline.push(data);\n }; // flush any buffered data\n\n this.flush = function () {\n hasFlushed = true; // Start at the top of the pipeline and flush all pending work\n\n this.transmuxPipeline_.headOfPipeline.flush();\n };\n this.endTimeline = function () {\n this.transmuxPipeline_.headOfPipeline.endTimeline();\n };\n this.reset = function () {\n if (this.transmuxPipeline_.headOfPipeline) {\n this.transmuxPipeline_.headOfPipeline.reset();\n }\n }; // Caption data has to be reset when seeking outside buffered range\n\n this.resetCaptions = function () {\n if (this.transmuxPipeline_.captionStream) {\n this.transmuxPipeline_.captionStream.reset();\n }\n };\n };\n Transmuxer.prototype = new Stream();\n var transmuxer = {\n Transmuxer: Transmuxer,\n VideoSegmentStream: VideoSegmentStream,\n AudioSegmentStream: AudioSegmentStream,\n AUDIO_PROPERTIES: AUDIO_PROPERTIES,\n VIDEO_PROPERTIES: VIDEO_PROPERTIES,\n // exported for testing\n generateSegmentTimingInfo: generateSegmentTimingInfo\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\n\n var toUnsigned$3 = function (value) {\n return value >>> 0;\n };\n var toHexString$1 = function (value) {\n return ('00' + value.toString(16)).slice(-2);\n };\n var bin = {\n toUnsigned: toUnsigned$3,\n toHexString: toHexString$1\n };\n var parseType$3 = function (buffer) {\n var result = '';\n result += String.fromCharCode(buffer[0]);\n result += String.fromCharCode(buffer[1]);\n result += String.fromCharCode(buffer[2]);\n result += String.fromCharCode(buffer[3]);\n return result;\n };\n var parseType_1 = parseType$3;\n var toUnsigned$2 = bin.toUnsigned;\n var parseType$2 = parseType_1;\n var findBox$2 = function (data, path) {\n var results = [],\n i,\n size,\n type,\n end,\n subresults;\n if (!path.length) {\n // short-circuit the search for empty paths\n return null;\n }\n for (i = 0; i < data.byteLength;) {\n size = toUnsigned$2(data[i] << 24 | data[i + 1] << 16 | data[i + 2] << 8 | data[i + 3]);\n type = parseType$2(data.subarray(i + 4, i + 8));\n end = size > 1 ? i + size : data.byteLength;\n if (type === path[0]) {\n if (path.length === 1) {\n // this is the end of the path and we've found the box we were\n // looking for\n results.push(data.subarray(i + 8, end));\n } else {\n // recursively search for the next box along the path\n subresults = findBox$2(data.subarray(i + 8, end), path.slice(1));\n if (subresults.length) {\n results = results.concat(subresults);\n }\n }\n }\n i = end;\n } // we've finished searching all of data\n\n return results;\n };\n var findBox_1 = findBox$2;\n var toUnsigned$1 = bin.toUnsigned;\n var getUint64$2 = numbers.getUint64;\n var tfdt = function (data) {\n var result = {\n version: data[0],\n flags: new Uint8Array(data.subarray(1, 4))\n };\n if (result.version === 1) {\n result.baseMediaDecodeTime = getUint64$2(data.subarray(4));\n } else {\n result.baseMediaDecodeTime = toUnsigned$1(data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7]);\n }\n return result;\n };\n var parseTfdt$2 = tfdt;\n var parseSampleFlags$1 = function (flags) {\n return {\n isLeading: (flags[0] & 0x0c) >>> 2,\n dependsOn: flags[0] & 0x03,\n isDependedOn: (flags[1] & 0xc0) >>> 6,\n hasRedundancy: (flags[1] & 0x30) >>> 4,\n paddingValue: (flags[1] & 0x0e) >>> 1,\n isNonSyncSample: flags[1] & 0x01,\n degradationPriority: flags[2] << 8 | flags[3]\n };\n };\n var parseSampleFlags_1 = parseSampleFlags$1;\n var parseSampleFlags = parseSampleFlags_1;\n var trun = function (data) {\n var result = {\n version: data[0],\n flags: new Uint8Array(data.subarray(1, 4)),\n samples: []\n },\n view = new DataView(data.buffer, data.byteOffset, data.byteLength),\n // Flag interpretation\n dataOffsetPresent = result.flags[2] & 0x01,\n // compare with 2nd byte of 0x1\n firstSampleFlagsPresent = result.flags[2] & 0x04,\n // compare with 2nd byte of 0x4\n sampleDurationPresent = result.flags[1] & 0x01,\n // compare with 2nd byte of 0x100\n sampleSizePresent = result.flags[1] & 0x02,\n // compare with 2nd byte of 0x200\n sampleFlagsPresent = result.flags[1] & 0x04,\n // compare with 2nd byte of 0x400\n sampleCompositionTimeOffsetPresent = result.flags[1] & 0x08,\n // compare with 2nd byte of 0x800\n sampleCount = view.getUint32(4),\n offset = 8,\n sample;\n if (dataOffsetPresent) {\n // 32 bit signed integer\n result.dataOffset = view.getInt32(offset);\n offset += 4;\n } // Overrides the flags for the first sample only. The order of\n // optional values will be: duration, size, compositionTimeOffset\n\n if (firstSampleFlagsPresent && sampleCount) {\n sample = {\n flags: parseSampleFlags(data.subarray(offset, offset + 4))\n };\n offset += 4;\n if (sampleDurationPresent) {\n sample.duration = view.getUint32(offset);\n offset += 4;\n }\n if (sampleSizePresent) {\n sample.size = view.getUint32(offset);\n offset += 4;\n }\n if (sampleCompositionTimeOffsetPresent) {\n if (result.version === 1) {\n sample.compositionTimeOffset = view.getInt32(offset);\n } else {\n sample.compositionTimeOffset = view.getUint32(offset);\n }\n offset += 4;\n }\n result.samples.push(sample);\n sampleCount--;\n }\n while (sampleCount--) {\n sample = {};\n if (sampleDurationPresent) {\n sample.duration = view.getUint32(offset);\n offset += 4;\n }\n if (sampleSizePresent) {\n sample.size = view.getUint32(offset);\n offset += 4;\n }\n if (sampleFlagsPresent) {\n sample.flags = parseSampleFlags(data.subarray(offset, offset + 4));\n offset += 4;\n }\n if (sampleCompositionTimeOffsetPresent) {\n if (result.version === 1) {\n sample.compositionTimeOffset = view.getInt32(offset);\n } else {\n sample.compositionTimeOffset = view.getUint32(offset);\n }\n offset += 4;\n }\n result.samples.push(sample);\n }\n return result;\n };\n var parseTrun$2 = trun;\n var tfhd = function (data) {\n var view = new DataView(data.buffer, data.byteOffset, data.byteLength),\n result = {\n version: data[0],\n flags: new Uint8Array(data.subarray(1, 4)),\n trackId: view.getUint32(4)\n },\n baseDataOffsetPresent = result.flags[2] & 0x01,\n sampleDescriptionIndexPresent = result.flags[2] & 0x02,\n defaultSampleDurationPresent = result.flags[2] & 0x08,\n defaultSampleSizePresent = result.flags[2] & 0x10,\n defaultSampleFlagsPresent = result.flags[2] & 0x20,\n durationIsEmpty = result.flags[0] & 0x010000,\n defaultBaseIsMoof = result.flags[0] & 0x020000,\n i;\n i = 8;\n if (baseDataOffsetPresent) {\n i += 4; // truncate top 4 bytes\n // FIXME: should we read the full 64 bits?\n\n result.baseDataOffset = view.getUint32(12);\n i += 4;\n }\n if (sampleDescriptionIndexPresent) {\n result.sampleDescriptionIndex = view.getUint32(i);\n i += 4;\n }\n if (defaultSampleDurationPresent) {\n result.defaultSampleDuration = view.getUint32(i);\n i += 4;\n }\n if (defaultSampleSizePresent) {\n result.defaultSampleSize = view.getUint32(i);\n i += 4;\n }\n if (defaultSampleFlagsPresent) {\n result.defaultSampleFlags = view.getUint32(i);\n }\n if (durationIsEmpty) {\n result.durationIsEmpty = true;\n }\n if (!baseDataOffsetPresent && defaultBaseIsMoof) {\n result.baseDataOffsetIsMoof = true;\n }\n return result;\n };\n var parseTfhd$2 = tfhd;\n var win;\n if (typeof window !== \"undefined\") {\n win = window;\n } else if (typeof commonjsGlobal !== \"undefined\") {\n win = commonjsGlobal;\n } else if (typeof self !== \"undefined\") {\n win = self;\n } else {\n win = {};\n }\n var window_1 = win;\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Reads in-band CEA-708 captions out of FMP4 segments.\n * @see https://en.wikipedia.org/wiki/CEA-708\n */\n\n var discardEmulationPreventionBytes = captionPacketParser.discardEmulationPreventionBytes;\n var CaptionStream = captionStream.CaptionStream;\n var findBox$1 = findBox_1;\n var parseTfdt$1 = parseTfdt$2;\n var parseTrun$1 = parseTrun$2;\n var parseTfhd$1 = parseTfhd$2;\n var window$2 = window_1;\n /**\n * Maps an offset in the mdat to a sample based on the the size of the samples.\n * Assumes that `parseSamples` has been called first.\n *\n * @param {Number} offset - The offset into the mdat\n * @param {Object[]} samples - An array of samples, parsed using `parseSamples`\n * @return {?Object} The matching sample, or null if no match was found.\n *\n * @see ISO-BMFF-12/2015, Section 8.8.8\n **/\n\n var mapToSample = function (offset, samples) {\n var approximateOffset = offset;\n for (var i = 0; i < samples.length; i++) {\n var sample = samples[i];\n if (approximateOffset < sample.size) {\n return sample;\n }\n approximateOffset -= sample.size;\n }\n return null;\n };\n /**\n * Finds SEI nal units contained in a Media Data Box.\n * Assumes that `parseSamples` has been called first.\n *\n * @param {Uint8Array} avcStream - The bytes of the mdat\n * @param {Object[]} samples - The samples parsed out by `parseSamples`\n * @param {Number} trackId - The trackId of this video track\n * @return {Object[]} seiNals - the parsed SEI NALUs found.\n * The contents of the seiNal should match what is expected by\n * CaptionStream.push (nalUnitType, size, data, escapedRBSP, pts, dts)\n *\n * @see ISO-BMFF-12/2015, Section 8.1.1\n * @see Rec. ITU-T H.264, 7.3.2.3.1\n **/\n\n var findSeiNals = function (avcStream, samples, trackId) {\n var avcView = new DataView(avcStream.buffer, avcStream.byteOffset, avcStream.byteLength),\n result = {\n logs: [],\n seiNals: []\n },\n seiNal,\n i,\n length,\n lastMatchedSample;\n for (i = 0; i + 4 < avcStream.length; i += length) {\n length = avcView.getUint32(i);\n i += 4; // Bail if this doesn't appear to be an H264 stream\n\n if (length <= 0) {\n continue;\n }\n switch (avcStream[i] & 0x1F) {\n case 0x06:\n var data = avcStream.subarray(i + 1, i + 1 + length);\n var matchingSample = mapToSample(i, samples);\n seiNal = {\n nalUnitType: 'sei_rbsp',\n size: length,\n data: data,\n escapedRBSP: discardEmulationPreventionBytes(data),\n trackId: trackId\n };\n if (matchingSample) {\n seiNal.pts = matchingSample.pts;\n seiNal.dts = matchingSample.dts;\n lastMatchedSample = matchingSample;\n } else if (lastMatchedSample) {\n // If a matching sample cannot be found, use the last\n // sample's values as they should be as close as possible\n seiNal.pts = lastMatchedSample.pts;\n seiNal.dts = lastMatchedSample.dts;\n } else {\n result.logs.push({\n level: 'warn',\n message: 'We\\'ve encountered a nal unit without data at ' + i + ' for trackId ' + trackId + '. See mux.js#223.'\n });\n break;\n }\n result.seiNals.push(seiNal);\n break;\n }\n }\n return result;\n };\n /**\n * Parses sample information out of Track Run Boxes and calculates\n * the absolute presentation and decode timestamps of each sample.\n *\n * @param {Array} truns - The Trun Run boxes to be parsed\n * @param {Number|BigInt} baseMediaDecodeTime - base media decode time from tfdt\n @see ISO-BMFF-12/2015, Section 8.8.12\n * @param {Object} tfhd - The parsed Track Fragment Header\n * @see inspect.parseTfhd\n * @return {Object[]} the parsed samples\n *\n * @see ISO-BMFF-12/2015, Section 8.8.8\n **/\n\n var parseSamples = function (truns, baseMediaDecodeTime, tfhd) {\n var currentDts = baseMediaDecodeTime;\n var defaultSampleDuration = tfhd.defaultSampleDuration || 0;\n var defaultSampleSize = tfhd.defaultSampleSize || 0;\n var trackId = tfhd.trackId;\n var allSamples = [];\n truns.forEach(function (trun) {\n // Note: We currently do not parse the sample table as well\n // as the trun. It's possible some sources will require this.\n // moov > trak > mdia > minf > stbl\n var trackRun = parseTrun$1(trun);\n var samples = trackRun.samples;\n samples.forEach(function (sample) {\n if (sample.duration === undefined) {\n sample.duration = defaultSampleDuration;\n }\n if (sample.size === undefined) {\n sample.size = defaultSampleSize;\n }\n sample.trackId = trackId;\n sample.dts = currentDts;\n if (sample.compositionTimeOffset === undefined) {\n sample.compositionTimeOffset = 0;\n }\n if (typeof currentDts === 'bigint') {\n sample.pts = currentDts + window$2.BigInt(sample.compositionTimeOffset);\n currentDts += window$2.BigInt(sample.duration);\n } else {\n sample.pts = currentDts + sample.compositionTimeOffset;\n currentDts += sample.duration;\n }\n });\n allSamples = allSamples.concat(samples);\n });\n return allSamples;\n };\n /**\n * Parses out caption nals from an FMP4 segment's video tracks.\n *\n * @param {Uint8Array} segment - The bytes of a single segment\n * @param {Number} videoTrackId - The trackId of a video track in the segment\n * @return {Object.} A mapping of video trackId to\n * a list of seiNals found in that track\n **/\n\n var parseCaptionNals = function (segment, videoTrackId) {\n // To get the samples\n var trafs = findBox$1(segment, ['moof', 'traf']); // To get SEI NAL units\n\n var mdats = findBox$1(segment, ['mdat']);\n var captionNals = {};\n var mdatTrafPairs = []; // Pair up each traf with a mdat as moofs and mdats are in pairs\n\n mdats.forEach(function (mdat, index) {\n var matchingTraf = trafs[index];\n mdatTrafPairs.push({\n mdat: mdat,\n traf: matchingTraf\n });\n });\n mdatTrafPairs.forEach(function (pair) {\n var mdat = pair.mdat;\n var traf = pair.traf;\n var tfhd = findBox$1(traf, ['tfhd']); // Exactly 1 tfhd per traf\n\n var headerInfo = parseTfhd$1(tfhd[0]);\n var trackId = headerInfo.trackId;\n var tfdt = findBox$1(traf, ['tfdt']); // Either 0 or 1 tfdt per traf\n\n var baseMediaDecodeTime = tfdt.length > 0 ? parseTfdt$1(tfdt[0]).baseMediaDecodeTime : 0;\n var truns = findBox$1(traf, ['trun']);\n var samples;\n var result; // Only parse video data for the chosen video track\n\n if (videoTrackId === trackId && truns.length > 0) {\n samples = parseSamples(truns, baseMediaDecodeTime, headerInfo);\n result = findSeiNals(mdat, samples, trackId);\n if (!captionNals[trackId]) {\n captionNals[trackId] = {\n seiNals: [],\n logs: []\n };\n }\n captionNals[trackId].seiNals = captionNals[trackId].seiNals.concat(result.seiNals);\n captionNals[trackId].logs = captionNals[trackId].logs.concat(result.logs);\n }\n });\n return captionNals;\n };\n /**\n * Parses out inband captions from an MP4 container and returns\n * caption objects that can be used by WebVTT and the TextTrack API.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/VTTCue\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TextTrack\n * Assumes that `probe.getVideoTrackIds` and `probe.timescale` have been called first\n *\n * @param {Uint8Array} segment - The fmp4 segment containing embedded captions\n * @param {Number} trackId - The id of the video track to parse\n * @param {Number} timescale - The timescale for the video track from the init segment\n *\n * @return {?Object[]} parsedCaptions - A list of captions or null if no video tracks\n * @return {Number} parsedCaptions[].startTime - The time to show the caption in seconds\n * @return {Number} parsedCaptions[].endTime - The time to stop showing the caption in seconds\n * @return {Object[]} parsedCaptions[].content - A list of individual caption segments\n * @return {String} parsedCaptions[].content.text - The visible content of the caption segment\n * @return {Number} parsedCaptions[].content.line - The line height from 1-15 for positioning of the caption segment\n * @return {Number} parsedCaptions[].content.position - The column indent percentage for cue positioning from 10-80\n **/\n\n var parseEmbeddedCaptions = function (segment, trackId, timescale) {\n var captionNals; // the ISO-BMFF spec says that trackId can't be zero, but there's some broken content out there\n\n if (trackId === null) {\n return null;\n }\n captionNals = parseCaptionNals(segment, trackId);\n var trackNals = captionNals[trackId] || {};\n return {\n seiNals: trackNals.seiNals,\n logs: trackNals.logs,\n timescale: timescale\n };\n };\n /**\n * Converts SEI NALUs into captions that can be used by video.js\n **/\n\n var CaptionParser = function () {\n var isInitialized = false;\n var captionStream; // Stores segments seen before trackId and timescale are set\n\n var segmentCache; // Stores video track ID of the track being parsed\n\n var trackId; // Stores the timescale of the track being parsed\n\n var timescale; // Stores captions parsed so far\n\n var parsedCaptions; // Stores whether we are receiving partial data or not\n\n var parsingPartial;\n /**\n * A method to indicate whether a CaptionParser has been initalized\n * @returns {Boolean}\n **/\n\n this.isInitialized = function () {\n return isInitialized;\n };\n /**\n * Initializes the underlying CaptionStream, SEI NAL parsing\n * and management, and caption collection\n **/\n\n this.init = function (options) {\n captionStream = new CaptionStream();\n isInitialized = true;\n parsingPartial = options ? options.isPartial : false; // Collect dispatched captions\n\n captionStream.on('data', function (event) {\n // Convert to seconds in the source's timescale\n event.startTime = event.startPts / timescale;\n event.endTime = event.endPts / timescale;\n parsedCaptions.captions.push(event);\n parsedCaptions.captionStreams[event.stream] = true;\n });\n captionStream.on('log', function (log) {\n parsedCaptions.logs.push(log);\n });\n };\n /**\n * Determines if a new video track will be selected\n * or if the timescale changed\n * @return {Boolean}\n **/\n\n this.isNewInit = function (videoTrackIds, timescales) {\n if (videoTrackIds && videoTrackIds.length === 0 || timescales && typeof timescales === 'object' && Object.keys(timescales).length === 0) {\n return false;\n }\n return trackId !== videoTrackIds[0] || timescale !== timescales[trackId];\n };\n /**\n * Parses out SEI captions and interacts with underlying\n * CaptionStream to return dispatched captions\n *\n * @param {Uint8Array} segment - The fmp4 segment containing embedded captions\n * @param {Number[]} videoTrackIds - A list of video tracks found in the init segment\n * @param {Object.} timescales - The timescales found in the init segment\n * @see parseEmbeddedCaptions\n * @see m2ts/caption-stream.js\n **/\n\n this.parse = function (segment, videoTrackIds, timescales) {\n var parsedData;\n if (!this.isInitialized()) {\n return null; // This is not likely to be a video segment\n } else if (!videoTrackIds || !timescales) {\n return null;\n } else if (this.isNewInit(videoTrackIds, timescales)) {\n // Use the first video track only as there is no\n // mechanism to switch to other video tracks\n trackId = videoTrackIds[0];\n timescale = timescales[trackId]; // If an init segment has not been seen yet, hold onto segment\n // data until we have one.\n // the ISO-BMFF spec says that trackId can't be zero, but there's some broken content out there\n } else if (trackId === null || !timescale) {\n segmentCache.push(segment);\n return null;\n } // Now that a timescale and trackId is set, parse cached segments\n\n while (segmentCache.length > 0) {\n var cachedSegment = segmentCache.shift();\n this.parse(cachedSegment, videoTrackIds, timescales);\n }\n parsedData = parseEmbeddedCaptions(segment, trackId, timescale);\n if (parsedData && parsedData.logs) {\n parsedCaptions.logs = parsedCaptions.logs.concat(parsedData.logs);\n }\n if (parsedData === null || !parsedData.seiNals) {\n if (parsedCaptions.logs.length) {\n return {\n logs: parsedCaptions.logs,\n captions: [],\n captionStreams: []\n };\n }\n return null;\n }\n this.pushNals(parsedData.seiNals); // Force the parsed captions to be dispatched\n\n this.flushStream();\n return parsedCaptions;\n };\n /**\n * Pushes SEI NALUs onto CaptionStream\n * @param {Object[]} nals - A list of SEI nals parsed using `parseCaptionNals`\n * Assumes that `parseCaptionNals` has been called first\n * @see m2ts/caption-stream.js\n **/\n\n this.pushNals = function (nals) {\n if (!this.isInitialized() || !nals || nals.length === 0) {\n return null;\n }\n nals.forEach(function (nal) {\n captionStream.push(nal);\n });\n };\n /**\n * Flushes underlying CaptionStream to dispatch processed, displayable captions\n * @see m2ts/caption-stream.js\n **/\n\n this.flushStream = function () {\n if (!this.isInitialized()) {\n return null;\n }\n if (!parsingPartial) {\n captionStream.flush();\n } else {\n captionStream.partialFlush();\n }\n };\n /**\n * Reset caption buckets for new data\n **/\n\n this.clearParsedCaptions = function () {\n parsedCaptions.captions = [];\n parsedCaptions.captionStreams = {};\n parsedCaptions.logs = [];\n };\n /**\n * Resets underlying CaptionStream\n * @see m2ts/caption-stream.js\n **/\n\n this.resetCaptionStream = function () {\n if (!this.isInitialized()) {\n return null;\n }\n captionStream.reset();\n };\n /**\n * Convenience method to clear all captions flushed from the\n * CaptionStream and still being parsed\n * @see m2ts/caption-stream.js\n **/\n\n this.clearAllCaptions = function () {\n this.clearParsedCaptions();\n this.resetCaptionStream();\n };\n /**\n * Reset caption parser\n **/\n\n this.reset = function () {\n segmentCache = [];\n trackId = null;\n timescale = null;\n if (!parsedCaptions) {\n parsedCaptions = {\n captions: [],\n // CC1, CC2, CC3, CC4\n captionStreams: {},\n logs: []\n };\n } else {\n this.clearParsedCaptions();\n }\n this.resetCaptionStream();\n };\n this.reset();\n };\n var captionParser = CaptionParser;\n /**\n * Returns the first string in the data array ending with a null char '\\0'\n * @param {UInt8} data \n * @returns the string with the null char\n */\n\n var uint8ToCString$1 = function (data) {\n var index = 0;\n var curChar = String.fromCharCode(data[index]);\n var retString = '';\n while (curChar !== '\\0') {\n retString += curChar;\n index++;\n curChar = String.fromCharCode(data[index]);\n } // Add nullChar\n\n retString += curChar;\n return retString;\n };\n var string = {\n uint8ToCString: uint8ToCString$1\n };\n var uint8ToCString = string.uint8ToCString;\n var getUint64$1 = numbers.getUint64;\n /**\n * Based on: ISO/IEC 23009 Section: 5.10.3.3\n * References:\n * https://dashif-documents.azurewebsites.net/Events/master/event.html#emsg-format\n * https://aomediacodec.github.io/id3-emsg/\n * \n * Takes emsg box data as a uint8 array and returns a emsg box object\n * @param {UInt8Array} boxData data from emsg box\n * @returns A parsed emsg box object\n */\n\n var parseEmsgBox = function (boxData) {\n // version + flags\n var offset = 4;\n var version = boxData[0];\n var scheme_id_uri, value, timescale, presentation_time, presentation_time_delta, event_duration, id, message_data;\n if (version === 0) {\n scheme_id_uri = uint8ToCString(boxData.subarray(offset));\n offset += scheme_id_uri.length;\n value = uint8ToCString(boxData.subarray(offset));\n offset += value.length;\n var dv = new DataView(boxData.buffer);\n timescale = dv.getUint32(offset);\n offset += 4;\n presentation_time_delta = dv.getUint32(offset);\n offset += 4;\n event_duration = dv.getUint32(offset);\n offset += 4;\n id = dv.getUint32(offset);\n offset += 4;\n } else if (version === 1) {\n var dv = new DataView(boxData.buffer);\n timescale = dv.getUint32(offset);\n offset += 4;\n presentation_time = getUint64$1(boxData.subarray(offset));\n offset += 8;\n event_duration = dv.getUint32(offset);\n offset += 4;\n id = dv.getUint32(offset);\n offset += 4;\n scheme_id_uri = uint8ToCString(boxData.subarray(offset));\n offset += scheme_id_uri.length;\n value = uint8ToCString(boxData.subarray(offset));\n offset += value.length;\n }\n message_data = new Uint8Array(boxData.subarray(offset, boxData.byteLength));\n var emsgBox = {\n scheme_id_uri,\n value,\n // if timescale is undefined or 0 set to 1 \n timescale: timescale ? timescale : 1,\n presentation_time,\n presentation_time_delta,\n event_duration,\n id,\n message_data\n };\n return isValidEmsgBox(version, emsgBox) ? emsgBox : undefined;\n };\n /**\n * Scales a presentation time or time delta with an offset with a provided timescale\n * @param {number} presentationTime \n * @param {number} timescale \n * @param {number} timeDelta \n * @param {number} offset \n * @returns the scaled time as a number\n */\n\n var scaleTime = function (presentationTime, timescale, timeDelta, offset) {\n return presentationTime || presentationTime === 0 ? presentationTime / timescale : offset + timeDelta / timescale;\n };\n /**\n * Checks the emsg box data for validity based on the version\n * @param {number} version of the emsg box to validate\n * @param {Object} emsg the emsg data to validate\n * @returns if the box is valid as a boolean\n */\n\n var isValidEmsgBox = function (version, emsg) {\n var hasScheme = emsg.scheme_id_uri !== '\\0';\n var isValidV0Box = version === 0 && isDefined(emsg.presentation_time_delta) && hasScheme;\n var isValidV1Box = version === 1 && isDefined(emsg.presentation_time) && hasScheme; // Only valid versions of emsg are 0 and 1\n\n return !(version > 1) && isValidV0Box || isValidV1Box;\n }; // Utility function to check if an object is defined\n\n var isDefined = function (data) {\n return data !== undefined || data !== null;\n };\n var emsg$1 = {\n parseEmsgBox: parseEmsgBox,\n scaleTime: scaleTime\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Utilities to detect basic properties and metadata about MP4s.\n */\n\n var toUnsigned = bin.toUnsigned;\n var toHexString = bin.toHexString;\n var findBox = findBox_1;\n var parseType$1 = parseType_1;\n var emsg = emsg$1;\n var parseTfhd = parseTfhd$2;\n var parseTrun = parseTrun$2;\n var parseTfdt = parseTfdt$2;\n var getUint64 = numbers.getUint64;\n var timescale, startTime, compositionStartTime, getVideoTrackIds, getTracks, getTimescaleFromMediaHeader, getEmsgID3;\n var window$1 = window_1;\n var parseId3Frames = parseId3.parseId3Frames;\n /**\n * Parses an MP4 initialization segment and extracts the timescale\n * values for any declared tracks. Timescale values indicate the\n * number of clock ticks per second to assume for time-based values\n * elsewhere in the MP4.\n *\n * To determine the start time of an MP4, you need two pieces of\n * information: the timescale unit and the earliest base media decode\n * time. Multiple timescales can be specified within an MP4 but the\n * base media decode time is always expressed in the timescale from\n * the media header box for the track:\n * ```\n * moov > trak > mdia > mdhd.timescale\n * ```\n * @param init {Uint8Array} the bytes of the init segment\n * @return {object} a hash of track ids to timescale values or null if\n * the init segment is malformed.\n */\n\n timescale = function (init) {\n var result = {},\n traks = findBox(init, ['moov', 'trak']); // mdhd timescale\n\n return traks.reduce(function (result, trak) {\n var tkhd, version, index, id, mdhd;\n tkhd = findBox(trak, ['tkhd'])[0];\n if (!tkhd) {\n return null;\n }\n version = tkhd[0];\n index = version === 0 ? 12 : 20;\n id = toUnsigned(tkhd[index] << 24 | tkhd[index + 1] << 16 | tkhd[index + 2] << 8 | tkhd[index + 3]);\n mdhd = findBox(trak, ['mdia', 'mdhd'])[0];\n if (!mdhd) {\n return null;\n }\n version = mdhd[0];\n index = version === 0 ? 12 : 20;\n result[id] = toUnsigned(mdhd[index] << 24 | mdhd[index + 1] << 16 | mdhd[index + 2] << 8 | mdhd[index + 3]);\n return result;\n }, result);\n };\n /**\n * Determine the base media decode start time, in seconds, for an MP4\n * fragment. If multiple fragments are specified, the earliest time is\n * returned.\n *\n * The base media decode time can be parsed from track fragment\n * metadata:\n * ```\n * moof > traf > tfdt.baseMediaDecodeTime\n * ```\n * It requires the timescale value from the mdhd to interpret.\n *\n * @param timescale {object} a hash of track ids to timescale values.\n * @return {number} the earliest base media decode start time for the\n * fragment, in seconds\n */\n\n startTime = function (timescale, fragment) {\n var trafs; // we need info from two childrend of each track fragment box\n\n trafs = findBox(fragment, ['moof', 'traf']); // determine the start times for each track\n\n var lowestTime = trafs.reduce(function (acc, traf) {\n var tfhd = findBox(traf, ['tfhd'])[0]; // get the track id from the tfhd\n\n var id = toUnsigned(tfhd[4] << 24 | tfhd[5] << 16 | tfhd[6] << 8 | tfhd[7]); // assume a 90kHz clock if no timescale was specified\n\n var scale = timescale[id] || 90e3; // get the base media decode time from the tfdt\n\n var tfdt = findBox(traf, ['tfdt'])[0];\n var dv = new DataView(tfdt.buffer, tfdt.byteOffset, tfdt.byteLength);\n var baseTime; // version 1 is 64 bit\n\n if (tfdt[0] === 1) {\n baseTime = getUint64(tfdt.subarray(4, 12));\n } else {\n baseTime = dv.getUint32(4);\n } // convert base time to seconds if it is a valid number.\n\n let seconds;\n if (typeof baseTime === 'bigint') {\n seconds = baseTime / window$1.BigInt(scale);\n } else if (typeof baseTime === 'number' && !isNaN(baseTime)) {\n seconds = baseTime / scale;\n }\n if (seconds < Number.MAX_SAFE_INTEGER) {\n seconds = Number(seconds);\n }\n if (seconds < acc) {\n acc = seconds;\n }\n return acc;\n }, Infinity);\n return typeof lowestTime === 'bigint' || isFinite(lowestTime) ? lowestTime : 0;\n };\n /**\n * Determine the composition start, in seconds, for an MP4\n * fragment.\n *\n * The composition start time of a fragment can be calculated using the base\n * media decode time, composition time offset, and timescale, as follows:\n *\n * compositionStartTime = (baseMediaDecodeTime + compositionTimeOffset) / timescale\n *\n * All of the aforementioned information is contained within a media fragment's\n * `traf` box, except for timescale info, which comes from the initialization\n * segment, so a track id (also contained within a `traf`) is also necessary to\n * associate it with a timescale\n *\n *\n * @param timescales {object} - a hash of track ids to timescale values.\n * @param fragment {Unit8Array} - the bytes of a media segment\n * @return {number} the composition start time for the fragment, in seconds\n **/\n\n compositionStartTime = function (timescales, fragment) {\n var trafBoxes = findBox(fragment, ['moof', 'traf']);\n var baseMediaDecodeTime = 0;\n var compositionTimeOffset = 0;\n var trackId;\n if (trafBoxes && trafBoxes.length) {\n // The spec states that track run samples contained within a `traf` box are contiguous, but\n // it does not explicitly state whether the `traf` boxes themselves are contiguous.\n // We will assume that they are, so we only need the first to calculate start time.\n var tfhd = findBox(trafBoxes[0], ['tfhd'])[0];\n var trun = findBox(trafBoxes[0], ['trun'])[0];\n var tfdt = findBox(trafBoxes[0], ['tfdt'])[0];\n if (tfhd) {\n var parsedTfhd = parseTfhd(tfhd);\n trackId = parsedTfhd.trackId;\n }\n if (tfdt) {\n var parsedTfdt = parseTfdt(tfdt);\n baseMediaDecodeTime = parsedTfdt.baseMediaDecodeTime;\n }\n if (trun) {\n var parsedTrun = parseTrun(trun);\n if (parsedTrun.samples && parsedTrun.samples.length) {\n compositionTimeOffset = parsedTrun.samples[0].compositionTimeOffset || 0;\n }\n }\n } // Get timescale for this specific track. Assume a 90kHz clock if no timescale was\n // specified.\n\n var timescale = timescales[trackId] || 90e3; // return the composition start time, in seconds\n\n if (typeof baseMediaDecodeTime === 'bigint') {\n compositionTimeOffset = window$1.BigInt(compositionTimeOffset);\n timescale = window$1.BigInt(timescale);\n }\n var result = (baseMediaDecodeTime + compositionTimeOffset) / timescale;\n if (typeof result === 'bigint' && result < Number.MAX_SAFE_INTEGER) {\n result = Number(result);\n }\n return result;\n };\n /**\n * Find the trackIds of the video tracks in this source.\n * Found by parsing the Handler Reference and Track Header Boxes:\n * moov > trak > mdia > hdlr\n * moov > trak > tkhd\n *\n * @param {Uint8Array} init - The bytes of the init segment for this source\n * @return {Number[]} A list of trackIds\n *\n * @see ISO-BMFF-12/2015, Section 8.4.3\n **/\n\n getVideoTrackIds = function (init) {\n var traks = findBox(init, ['moov', 'trak']);\n var videoTrackIds = [];\n traks.forEach(function (trak) {\n var hdlrs = findBox(trak, ['mdia', 'hdlr']);\n var tkhds = findBox(trak, ['tkhd']);\n hdlrs.forEach(function (hdlr, index) {\n var handlerType = parseType$1(hdlr.subarray(8, 12));\n var tkhd = tkhds[index];\n var view;\n var version;\n var trackId;\n if (handlerType === 'vide') {\n view = new DataView(tkhd.buffer, tkhd.byteOffset, tkhd.byteLength);\n version = view.getUint8(0);\n trackId = version === 0 ? view.getUint32(12) : view.getUint32(20);\n videoTrackIds.push(trackId);\n }\n });\n });\n return videoTrackIds;\n };\n getTimescaleFromMediaHeader = function (mdhd) {\n // mdhd is a FullBox, meaning it will have its own version as the first byte\n var version = mdhd[0];\n var index = version === 0 ? 12 : 20;\n return toUnsigned(mdhd[index] << 24 | mdhd[index + 1] << 16 | mdhd[index + 2] << 8 | mdhd[index + 3]);\n };\n /**\n * Get all the video, audio, and hint tracks from a non fragmented\n * mp4 segment\n */\n\n getTracks = function (init) {\n var traks = findBox(init, ['moov', 'trak']);\n var tracks = [];\n traks.forEach(function (trak) {\n var track = {};\n var tkhd = findBox(trak, ['tkhd'])[0];\n var view, tkhdVersion; // id\n\n if (tkhd) {\n view = new DataView(tkhd.buffer, tkhd.byteOffset, tkhd.byteLength);\n tkhdVersion = view.getUint8(0);\n track.id = tkhdVersion === 0 ? view.getUint32(12) : view.getUint32(20);\n }\n var hdlr = findBox(trak, ['mdia', 'hdlr'])[0]; // type\n\n if (hdlr) {\n var type = parseType$1(hdlr.subarray(8, 12));\n if (type === 'vide') {\n track.type = 'video';\n } else if (type === 'soun') {\n track.type = 'audio';\n } else {\n track.type = type;\n }\n } // codec\n\n var stsd = findBox(trak, ['mdia', 'minf', 'stbl', 'stsd'])[0];\n if (stsd) {\n var sampleDescriptions = stsd.subarray(8); // gives the codec type string\n\n track.codec = parseType$1(sampleDescriptions.subarray(4, 8));\n var codecBox = findBox(sampleDescriptions, [track.codec])[0];\n var codecConfig, codecConfigType;\n if (codecBox) {\n // https://tools.ietf.org/html/rfc6381#section-3.3\n if (/^[asm]vc[1-9]$/i.test(track.codec)) {\n // we don't need anything but the \"config\" parameter of the\n // avc1 codecBox\n codecConfig = codecBox.subarray(78);\n codecConfigType = parseType$1(codecConfig.subarray(4, 8));\n if (codecConfigType === 'avcC' && codecConfig.length > 11) {\n track.codec += '.'; // left padded with zeroes for single digit hex\n // profile idc\n\n track.codec += toHexString(codecConfig[9]); // the byte containing the constraint_set flags\n\n track.codec += toHexString(codecConfig[10]); // level idc\n\n track.codec += toHexString(codecConfig[11]);\n } else {\n // TODO: show a warning that we couldn't parse the codec\n // and are using the default\n track.codec = 'avc1.4d400d';\n }\n } else if (/^mp4[a,v]$/i.test(track.codec)) {\n // we do not need anything but the streamDescriptor of the mp4a codecBox\n codecConfig = codecBox.subarray(28);\n codecConfigType = parseType$1(codecConfig.subarray(4, 8));\n if (codecConfigType === 'esds' && codecConfig.length > 20 && codecConfig[19] !== 0) {\n track.codec += '.' + toHexString(codecConfig[19]); // this value is only a single digit\n\n track.codec += '.' + toHexString(codecConfig[20] >>> 2 & 0x3f).replace(/^0/, '');\n } else {\n // TODO: show a warning that we couldn't parse the codec\n // and are using the default\n track.codec = 'mp4a.40.2';\n }\n } else {\n // flac, opus, etc\n track.codec = track.codec.toLowerCase();\n }\n }\n }\n var mdhd = findBox(trak, ['mdia', 'mdhd'])[0];\n if (mdhd) {\n track.timescale = getTimescaleFromMediaHeader(mdhd);\n }\n tracks.push(track);\n });\n return tracks;\n };\n /**\n * Returns an array of emsg ID3 data from the provided segmentData.\n * An offset can also be provided as the Latest Arrival Time to calculate \n * the Event Start Time of v0 EMSG boxes. \n * See: https://dashif-documents.azurewebsites.net/Events/master/event.html#Inband-event-timing\n * \n * @param {Uint8Array} segmentData the segment byte array.\n * @param {number} offset the segment start time or Latest Arrival Time, \n * @return {Object[]} an array of ID3 parsed from EMSG boxes\n */\n\n getEmsgID3 = function (segmentData) {\n let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var emsgBoxes = findBox(segmentData, ['emsg']);\n return emsgBoxes.map(data => {\n var parsedBox = emsg.parseEmsgBox(new Uint8Array(data));\n var parsedId3Frames = parseId3Frames(parsedBox.message_data);\n return {\n cueTime: emsg.scaleTime(parsedBox.presentation_time, parsedBox.timescale, parsedBox.presentation_time_delta, offset),\n duration: emsg.scaleTime(parsedBox.event_duration, parsedBox.timescale),\n frames: parsedId3Frames\n };\n });\n };\n var probe$2 = {\n // export mp4 inspector's findBox and parseType for backwards compatibility\n findBox: findBox,\n parseType: parseType$1,\n timescale: timescale,\n startTime: startTime,\n compositionStartTime: compositionStartTime,\n videoTrackIds: getVideoTrackIds,\n tracks: getTracks,\n getTimescaleFromMediaHeader: getTimescaleFromMediaHeader,\n getEmsgID3: getEmsgID3\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Utilities to detect basic properties and metadata about TS Segments.\n */\n\n var StreamTypes$1 = streamTypes;\n var parsePid = function (packet) {\n var pid = packet[1] & 0x1f;\n pid <<= 8;\n pid |= packet[2];\n return pid;\n };\n var parsePayloadUnitStartIndicator = function (packet) {\n return !!(packet[1] & 0x40);\n };\n var parseAdaptionField = function (packet) {\n var offset = 0; // if an adaption field is present, its length is specified by the\n // fifth byte of the TS packet header. The adaptation field is\n // used to add stuffing to PES packets that don't fill a complete\n // TS packet, and to specify some forms of timing and control data\n // that we do not currently use.\n\n if ((packet[3] & 0x30) >>> 4 > 0x01) {\n offset += packet[4] + 1;\n }\n return offset;\n };\n var parseType = function (packet, pmtPid) {\n var pid = parsePid(packet);\n if (pid === 0) {\n return 'pat';\n } else if (pid === pmtPid) {\n return 'pmt';\n } else if (pmtPid) {\n return 'pes';\n }\n return null;\n };\n var parsePat = function (packet) {\n var pusi = parsePayloadUnitStartIndicator(packet);\n var offset = 4 + parseAdaptionField(packet);\n if (pusi) {\n offset += packet[offset] + 1;\n }\n return (packet[offset + 10] & 0x1f) << 8 | packet[offset + 11];\n };\n var parsePmt = function (packet) {\n var programMapTable = {};\n var pusi = parsePayloadUnitStartIndicator(packet);\n var payloadOffset = 4 + parseAdaptionField(packet);\n if (pusi) {\n payloadOffset += packet[payloadOffset] + 1;\n } // PMTs can be sent ahead of the time when they should actually\n // take effect. We don't believe this should ever be the case\n // for HLS but we'll ignore \"forward\" PMT declarations if we see\n // them. Future PMT declarations have the current_next_indicator\n // set to zero.\n\n if (!(packet[payloadOffset + 5] & 0x01)) {\n return;\n }\n var sectionLength, tableEnd, programInfoLength; // the mapping table ends at the end of the current section\n\n sectionLength = (packet[payloadOffset + 1] & 0x0f) << 8 | packet[payloadOffset + 2];\n tableEnd = 3 + sectionLength - 4; // to determine where the table is, we have to figure out how\n // long the program info descriptors are\n\n programInfoLength = (packet[payloadOffset + 10] & 0x0f) << 8 | packet[payloadOffset + 11]; // advance the offset to the first entry in the mapping table\n\n var offset = 12 + programInfoLength;\n while (offset < tableEnd) {\n var i = payloadOffset + offset; // add an entry that maps the elementary_pid to the stream_type\n\n programMapTable[(packet[i + 1] & 0x1F) << 8 | packet[i + 2]] = packet[i]; // move to the next table entry\n // skip past the elementary stream descriptors, if present\n\n offset += ((packet[i + 3] & 0x0F) << 8 | packet[i + 4]) + 5;\n }\n return programMapTable;\n };\n var parsePesType = function (packet, programMapTable) {\n var pid = parsePid(packet);\n var type = programMapTable[pid];\n switch (type) {\n case StreamTypes$1.H264_STREAM_TYPE:\n return 'video';\n case StreamTypes$1.ADTS_STREAM_TYPE:\n return 'audio';\n case StreamTypes$1.METADATA_STREAM_TYPE:\n return 'timed-metadata';\n default:\n return null;\n }\n };\n var parsePesTime = function (packet) {\n var pusi = parsePayloadUnitStartIndicator(packet);\n if (!pusi) {\n return null;\n }\n var offset = 4 + parseAdaptionField(packet);\n if (offset >= packet.byteLength) {\n // From the H 222.0 MPEG-TS spec\n // \"For transport stream packets carrying PES packets, stuffing is needed when there\n // is insufficient PES packet data to completely fill the transport stream packet\n // payload bytes. Stuffing is accomplished by defining an adaptation field longer than\n // the sum of the lengths of the data elements in it, so that the payload bytes\n // remaining after the adaptation field exactly accommodates the available PES packet\n // data.\"\n //\n // If the offset is >= the length of the packet, then the packet contains no data\n // and instead is just adaption field stuffing bytes\n return null;\n }\n var pes = null;\n var ptsDtsFlags; // PES packets may be annotated with a PTS value, or a PTS value\n // and a DTS value. Determine what combination of values is\n // available to work with.\n\n ptsDtsFlags = packet[offset + 7]; // PTS and DTS are normally stored as a 33-bit number. Javascript\n // performs all bitwise operations on 32-bit integers but javascript\n // supports a much greater range (52-bits) of integer using standard\n // mathematical operations.\n // We construct a 31-bit value using bitwise operators over the 31\n // most significant bits and then multiply by 4 (equal to a left-shift\n // of 2) before we add the final 2 least significant bits of the\n // timestamp (equal to an OR.)\n\n if (ptsDtsFlags & 0xC0) {\n pes = {}; // the PTS and DTS are not written out directly. For information\n // on how they are encoded, see\n // http://dvd.sourceforge.net/dvdinfo/pes-hdr.html\n\n pes.pts = (packet[offset + 9] & 0x0E) << 27 | (packet[offset + 10] & 0xFF) << 20 | (packet[offset + 11] & 0xFE) << 12 | (packet[offset + 12] & 0xFF) << 5 | (packet[offset + 13] & 0xFE) >>> 3;\n pes.pts *= 4; // Left shift by 2\n\n pes.pts += (packet[offset + 13] & 0x06) >>> 1; // OR by the two LSBs\n\n pes.dts = pes.pts;\n if (ptsDtsFlags & 0x40) {\n pes.dts = (packet[offset + 14] & 0x0E) << 27 | (packet[offset + 15] & 0xFF) << 20 | (packet[offset + 16] & 0xFE) << 12 | (packet[offset + 17] & 0xFF) << 5 | (packet[offset + 18] & 0xFE) >>> 3;\n pes.dts *= 4; // Left shift by 2\n\n pes.dts += (packet[offset + 18] & 0x06) >>> 1; // OR by the two LSBs\n }\n }\n\n return pes;\n };\n var parseNalUnitType = function (type) {\n switch (type) {\n case 0x05:\n return 'slice_layer_without_partitioning_rbsp_idr';\n case 0x06:\n return 'sei_rbsp';\n case 0x07:\n return 'seq_parameter_set_rbsp';\n case 0x08:\n return 'pic_parameter_set_rbsp';\n case 0x09:\n return 'access_unit_delimiter_rbsp';\n default:\n return null;\n }\n };\n var videoPacketContainsKeyFrame = function (packet) {\n var offset = 4 + parseAdaptionField(packet);\n var frameBuffer = packet.subarray(offset);\n var frameI = 0;\n var frameSyncPoint = 0;\n var foundKeyFrame = false;\n var nalType; // advance the sync point to a NAL start, if necessary\n\n for (; frameSyncPoint < frameBuffer.byteLength - 3; frameSyncPoint++) {\n if (frameBuffer[frameSyncPoint + 2] === 1) {\n // the sync point is properly aligned\n frameI = frameSyncPoint + 5;\n break;\n }\n }\n while (frameI < frameBuffer.byteLength) {\n // look at the current byte to determine if we've hit the end of\n // a NAL unit boundary\n switch (frameBuffer[frameI]) {\n case 0:\n // skip past non-sync sequences\n if (frameBuffer[frameI - 1] !== 0) {\n frameI += 2;\n break;\n } else if (frameBuffer[frameI - 2] !== 0) {\n frameI++;\n break;\n }\n if (frameSyncPoint + 3 !== frameI - 2) {\n nalType = parseNalUnitType(frameBuffer[frameSyncPoint + 3] & 0x1f);\n if (nalType === 'slice_layer_without_partitioning_rbsp_idr') {\n foundKeyFrame = true;\n }\n } // drop trailing zeroes\n\n do {\n frameI++;\n } while (frameBuffer[frameI] !== 1 && frameI < frameBuffer.length);\n frameSyncPoint = frameI - 2;\n frameI += 3;\n break;\n case 1:\n // skip past non-sync sequences\n if (frameBuffer[frameI - 1] !== 0 || frameBuffer[frameI - 2] !== 0) {\n frameI += 3;\n break;\n }\n nalType = parseNalUnitType(frameBuffer[frameSyncPoint + 3] & 0x1f);\n if (nalType === 'slice_layer_without_partitioning_rbsp_idr') {\n foundKeyFrame = true;\n }\n frameSyncPoint = frameI - 2;\n frameI += 3;\n break;\n default:\n // the current byte isn't a one or zero, so it cannot be part\n // of a sync sequence\n frameI += 3;\n break;\n }\n }\n frameBuffer = frameBuffer.subarray(frameSyncPoint);\n frameI -= frameSyncPoint;\n frameSyncPoint = 0; // parse the final nal\n\n if (frameBuffer && frameBuffer.byteLength > 3) {\n nalType = parseNalUnitType(frameBuffer[frameSyncPoint + 3] & 0x1f);\n if (nalType === 'slice_layer_without_partitioning_rbsp_idr') {\n foundKeyFrame = true;\n }\n }\n return foundKeyFrame;\n };\n var probe$1 = {\n parseType: parseType,\n parsePat: parsePat,\n parsePmt: parsePmt,\n parsePayloadUnitStartIndicator: parsePayloadUnitStartIndicator,\n parsePesType: parsePesType,\n parsePesTime: parsePesTime,\n videoPacketContainsKeyFrame: videoPacketContainsKeyFrame\n };\n /**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n *\n * Parse mpeg2 transport stream packets to extract basic timing information\n */\n\n var StreamTypes = streamTypes;\n var handleRollover = timestampRolloverStream.handleRollover;\n var probe = {};\n probe.ts = probe$1;\n probe.aac = utils;\n var ONE_SECOND_IN_TS = clock$2.ONE_SECOND_IN_TS;\n var MP2T_PACKET_LENGTH = 188,\n // bytes\n SYNC_BYTE = 0x47;\n /**\n * walks through segment data looking for pat and pmt packets to parse out\n * program map table information\n */\n\n var parsePsi_ = function (bytes, pmt) {\n var startIndex = 0,\n endIndex = MP2T_PACKET_LENGTH,\n packet,\n type;\n while (endIndex < bytes.byteLength) {\n // Look for a pair of start and end sync bytes in the data..\n if (bytes[startIndex] === SYNC_BYTE && bytes[endIndex] === SYNC_BYTE) {\n // We found a packet\n packet = bytes.subarray(startIndex, endIndex);\n type = probe.ts.parseType(packet, pmt.pid);\n switch (type) {\n case 'pat':\n pmt.pid = probe.ts.parsePat(packet);\n break;\n case 'pmt':\n var table = probe.ts.parsePmt(packet);\n pmt.table = pmt.table || {};\n Object.keys(table).forEach(function (key) {\n pmt.table[key] = table[key];\n });\n break;\n }\n startIndex += MP2T_PACKET_LENGTH;\n endIndex += MP2T_PACKET_LENGTH;\n continue;\n } // If we get here, we have somehow become de-synchronized and we need to step\n // forward one byte at a time until we find a pair of sync bytes that denote\n // a packet\n\n startIndex++;\n endIndex++;\n }\n };\n /**\n * walks through the segment data from the start and end to get timing information\n * for the first and last audio pes packets\n */\n\n var parseAudioPes_ = function (bytes, pmt, result) {\n var startIndex = 0,\n endIndex = MP2T_PACKET_LENGTH,\n packet,\n type,\n pesType,\n pusi,\n parsed;\n var endLoop = false; // Start walking from start of segment to get first audio packet\n\n while (endIndex <= bytes.byteLength) {\n // Look for a pair of start and end sync bytes in the data..\n if (bytes[startIndex] === SYNC_BYTE && (bytes[endIndex] === SYNC_BYTE || endIndex === bytes.byteLength)) {\n // We found a packet\n packet = bytes.subarray(startIndex, endIndex);\n type = probe.ts.parseType(packet, pmt.pid);\n switch (type) {\n case 'pes':\n pesType = probe.ts.parsePesType(packet, pmt.table);\n pusi = probe.ts.parsePayloadUnitStartIndicator(packet);\n if (pesType === 'audio' && pusi) {\n parsed = probe.ts.parsePesTime(packet);\n if (parsed) {\n parsed.type = 'audio';\n result.audio.push(parsed);\n endLoop = true;\n }\n }\n break;\n }\n if (endLoop) {\n break;\n }\n startIndex += MP2T_PACKET_LENGTH;\n endIndex += MP2T_PACKET_LENGTH;\n continue;\n } // If we get here, we have somehow become de-synchronized and we need to step\n // forward one byte at a time until we find a pair of sync bytes that denote\n // a packet\n\n startIndex++;\n endIndex++;\n } // Start walking from end of segment to get last audio packet\n\n endIndex = bytes.byteLength;\n startIndex = endIndex - MP2T_PACKET_LENGTH;\n endLoop = false;\n while (startIndex >= 0) {\n // Look for a pair of start and end sync bytes in the data..\n if (bytes[startIndex] === SYNC_BYTE && (bytes[endIndex] === SYNC_BYTE || endIndex === bytes.byteLength)) {\n // We found a packet\n packet = bytes.subarray(startIndex, endIndex);\n type = probe.ts.parseType(packet, pmt.pid);\n switch (type) {\n case 'pes':\n pesType = probe.ts.parsePesType(packet, pmt.table);\n pusi = probe.ts.parsePayloadUnitStartIndicator(packet);\n if (pesType === 'audio' && pusi) {\n parsed = probe.ts.parsePesTime(packet);\n if (parsed) {\n parsed.type = 'audio';\n result.audio.push(parsed);\n endLoop = true;\n }\n }\n break;\n }\n if (endLoop) {\n break;\n }\n startIndex -= MP2T_PACKET_LENGTH;\n endIndex -= MP2T_PACKET_LENGTH;\n continue;\n } // If we get here, we have somehow become de-synchronized and we need to step\n // forward one byte at a time until we find a pair of sync bytes that denote\n // a packet\n\n startIndex--;\n endIndex--;\n }\n };\n /**\n * walks through the segment data from the start and end to get timing information\n * for the first and last video pes packets as well as timing information for the first\n * key frame.\n */\n\n var parseVideoPes_ = function (bytes, pmt, result) {\n var startIndex = 0,\n endIndex = MP2T_PACKET_LENGTH,\n packet,\n type,\n pesType,\n pusi,\n parsed,\n frame,\n i,\n pes;\n var endLoop = false;\n var currentFrame = {\n data: [],\n size: 0\n }; // Start walking from start of segment to get first video packet\n\n while (endIndex < bytes.byteLength) {\n // Look for a pair of start and end sync bytes in the data..\n if (bytes[startIndex] === SYNC_BYTE && bytes[endIndex] === SYNC_BYTE) {\n // We found a packet\n packet = bytes.subarray(startIndex, endIndex);\n type = probe.ts.parseType(packet, pmt.pid);\n switch (type) {\n case 'pes':\n pesType = probe.ts.parsePesType(packet, pmt.table);\n pusi = probe.ts.parsePayloadUnitStartIndicator(packet);\n if (pesType === 'video') {\n if (pusi && !endLoop) {\n parsed = probe.ts.parsePesTime(packet);\n if (parsed) {\n parsed.type = 'video';\n result.video.push(parsed);\n endLoop = true;\n }\n }\n if (!result.firstKeyFrame) {\n if (pusi) {\n if (currentFrame.size !== 0) {\n frame = new Uint8Array(currentFrame.size);\n i = 0;\n while (currentFrame.data.length) {\n pes = currentFrame.data.shift();\n frame.set(pes, i);\n i += pes.byteLength;\n }\n if (probe.ts.videoPacketContainsKeyFrame(frame)) {\n var firstKeyFrame = probe.ts.parsePesTime(frame); // PTS/DTS may not be available. Simply *not* setting\n // the keyframe seems to work fine with HLS playback\n // and definitely preferable to a crash with TypeError...\n\n if (firstKeyFrame) {\n result.firstKeyFrame = firstKeyFrame;\n result.firstKeyFrame.type = 'video';\n } else {\n // eslint-disable-next-line\n console.warn('Failed to extract PTS/DTS from PES at first keyframe. ' + 'This could be an unusual TS segment, or else mux.js did not ' + 'parse your TS segment correctly. If you know your TS ' + 'segments do contain PTS/DTS on keyframes please file a bug ' + 'report! You can try ffprobe to double check for yourself.');\n }\n }\n currentFrame.size = 0;\n }\n }\n currentFrame.data.push(packet);\n currentFrame.size += packet.byteLength;\n }\n }\n break;\n }\n if (endLoop && result.firstKeyFrame) {\n break;\n }\n startIndex += MP2T_PACKET_LENGTH;\n endIndex += MP2T_PACKET_LENGTH;\n continue;\n } // If we get here, we have somehow become de-synchronized and we need to step\n // forward one byte at a time until we find a pair of sync bytes that denote\n // a packet\n\n startIndex++;\n endIndex++;\n } // Start walking from end of segment to get last video packet\n\n endIndex = bytes.byteLength;\n startIndex = endIndex - MP2T_PACKET_LENGTH;\n endLoop = false;\n while (startIndex >= 0) {\n // Look for a pair of start and end sync bytes in the data..\n if (bytes[startIndex] === SYNC_BYTE && bytes[endIndex] === SYNC_BYTE) {\n // We found a packet\n packet = bytes.subarray(startIndex, endIndex);\n type = probe.ts.parseType(packet, pmt.pid);\n switch (type) {\n case 'pes':\n pesType = probe.ts.parsePesType(packet, pmt.table);\n pusi = probe.ts.parsePayloadUnitStartIndicator(packet);\n if (pesType === 'video' && pusi) {\n parsed = probe.ts.parsePesTime(packet);\n if (parsed) {\n parsed.type = 'video';\n result.video.push(parsed);\n endLoop = true;\n }\n }\n break;\n }\n if (endLoop) {\n break;\n }\n startIndex -= MP2T_PACKET_LENGTH;\n endIndex -= MP2T_PACKET_LENGTH;\n continue;\n } // If we get here, we have somehow become de-synchronized and we need to step\n // forward one byte at a time until we find a pair of sync bytes that denote\n // a packet\n\n startIndex--;\n endIndex--;\n }\n };\n /**\n * Adjusts the timestamp information for the segment to account for\n * rollover and convert to seconds based on pes packet timescale (90khz clock)\n */\n\n var adjustTimestamp_ = function (segmentInfo, baseTimestamp) {\n if (segmentInfo.audio && segmentInfo.audio.length) {\n var audioBaseTimestamp = baseTimestamp;\n if (typeof audioBaseTimestamp === 'undefined' || isNaN(audioBaseTimestamp)) {\n audioBaseTimestamp = segmentInfo.audio[0].dts;\n }\n segmentInfo.audio.forEach(function (info) {\n info.dts = handleRollover(info.dts, audioBaseTimestamp);\n info.pts = handleRollover(info.pts, audioBaseTimestamp); // time in seconds\n\n info.dtsTime = info.dts / ONE_SECOND_IN_TS;\n info.ptsTime = info.pts / ONE_SECOND_IN_TS;\n });\n }\n if (segmentInfo.video && segmentInfo.video.length) {\n var videoBaseTimestamp = baseTimestamp;\n if (typeof videoBaseTimestamp === 'undefined' || isNaN(videoBaseTimestamp)) {\n videoBaseTimestamp = segmentInfo.video[0].dts;\n }\n segmentInfo.video.forEach(function (info) {\n info.dts = handleRollover(info.dts, videoBaseTimestamp);\n info.pts = handleRollover(info.pts, videoBaseTimestamp); // time in seconds\n\n info.dtsTime = info.dts / ONE_SECOND_IN_TS;\n info.ptsTime = info.pts / ONE_SECOND_IN_TS;\n });\n if (segmentInfo.firstKeyFrame) {\n var frame = segmentInfo.firstKeyFrame;\n frame.dts = handleRollover(frame.dts, videoBaseTimestamp);\n frame.pts = handleRollover(frame.pts, videoBaseTimestamp); // time in seconds\n\n frame.dtsTime = frame.dts / ONE_SECOND_IN_TS;\n frame.ptsTime = frame.pts / ONE_SECOND_IN_TS;\n }\n }\n };\n /**\n * inspects the aac data stream for start and end time information\n */\n\n var inspectAac_ = function (bytes) {\n var endLoop = false,\n audioCount = 0,\n sampleRate = null,\n timestamp = null,\n frameSize = 0,\n byteIndex = 0,\n packet;\n while (bytes.length - byteIndex >= 3) {\n var type = probe.aac.parseType(bytes, byteIndex);\n switch (type) {\n case 'timed-metadata':\n // Exit early because we don't have enough to parse\n // the ID3 tag header\n if (bytes.length - byteIndex < 10) {\n endLoop = true;\n break;\n }\n frameSize = probe.aac.parseId3TagSize(bytes, byteIndex); // Exit early if we don't have enough in the buffer\n // to emit a full packet\n\n if (frameSize > bytes.length) {\n endLoop = true;\n break;\n }\n if (timestamp === null) {\n packet = bytes.subarray(byteIndex, byteIndex + frameSize);\n timestamp = probe.aac.parseAacTimestamp(packet);\n }\n byteIndex += frameSize;\n break;\n case 'audio':\n // Exit early because we don't have enough to parse\n // the ADTS frame header\n if (bytes.length - byteIndex < 7) {\n endLoop = true;\n break;\n }\n frameSize = probe.aac.parseAdtsSize(bytes, byteIndex); // Exit early if we don't have enough in the buffer\n // to emit a full packet\n\n if (frameSize > bytes.length) {\n endLoop = true;\n break;\n }\n if (sampleRate === null) {\n packet = bytes.subarray(byteIndex, byteIndex + frameSize);\n sampleRate = probe.aac.parseSampleRate(packet);\n }\n audioCount++;\n byteIndex += frameSize;\n break;\n default:\n byteIndex++;\n break;\n }\n if (endLoop) {\n return null;\n }\n }\n if (sampleRate === null || timestamp === null) {\n return null;\n }\n var audioTimescale = ONE_SECOND_IN_TS / sampleRate;\n var result = {\n audio: [{\n type: 'audio',\n dts: timestamp,\n pts: timestamp\n }, {\n type: 'audio',\n dts: timestamp + audioCount * 1024 * audioTimescale,\n pts: timestamp + audioCount * 1024 * audioTimescale\n }]\n };\n return result;\n };\n /**\n * inspects the transport stream segment data for start and end time information\n * of the audio and video tracks (when present) as well as the first key frame's\n * start time.\n */\n\n var inspectTs_ = function (bytes) {\n var pmt = {\n pid: null,\n table: null\n };\n var result = {};\n parsePsi_(bytes, pmt);\n for (var pid in pmt.table) {\n if (pmt.table.hasOwnProperty(pid)) {\n var type = pmt.table[pid];\n switch (type) {\n case StreamTypes.H264_STREAM_TYPE:\n result.video = [];\n parseVideoPes_(bytes, pmt, result);\n if (result.video.length === 0) {\n delete result.video;\n }\n break;\n case StreamTypes.ADTS_STREAM_TYPE:\n result.audio = [];\n parseAudioPes_(bytes, pmt, result);\n if (result.audio.length === 0) {\n delete result.audio;\n }\n break;\n }\n }\n }\n return result;\n };\n /**\n * Inspects segment byte data and returns an object with start and end timing information\n *\n * @param {Uint8Array} bytes The segment byte data\n * @param {Number} baseTimestamp Relative reference timestamp used when adjusting frame\n * timestamps for rollover. This value must be in 90khz clock.\n * @return {Object} Object containing start and end frame timing info of segment.\n */\n\n var inspect = function (bytes, baseTimestamp) {\n var isAacData = probe.aac.isLikelyAacData(bytes);\n var result;\n if (isAacData) {\n result = inspectAac_(bytes);\n } else {\n result = inspectTs_(bytes);\n }\n if (!result || !result.audio && !result.video) {\n return null;\n }\n adjustTimestamp_(result, baseTimestamp);\n return result;\n };\n var tsInspector = {\n inspect: inspect,\n parseAudioPes_: parseAudioPes_\n };\n /* global self */\n\n /**\n * Re-emits transmuxer events by converting them into messages to the\n * world outside the worker.\n *\n * @param {Object} transmuxer the transmuxer to wire events on\n * @private\n */\n\n const wireTransmuxerEvents = function (self, transmuxer) {\n transmuxer.on('data', function (segment) {\n // transfer ownership of the underlying ArrayBuffer\n // instead of doing a copy to save memory\n // ArrayBuffers are transferable but generic TypedArrays are not\n // @link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers#Passing_data_by_transferring_ownership_(transferable_objects)\n const initArray = segment.initSegment;\n segment.initSegment = {\n data: initArray.buffer,\n byteOffset: initArray.byteOffset,\n byteLength: initArray.byteLength\n };\n const typedArray = segment.data;\n segment.data = typedArray.buffer;\n self.postMessage({\n action: 'data',\n segment,\n byteOffset: typedArray.byteOffset,\n byteLength: typedArray.byteLength\n }, [segment.data]);\n });\n transmuxer.on('done', function (data) {\n self.postMessage({\n action: 'done'\n });\n });\n transmuxer.on('gopInfo', function (gopInfo) {\n self.postMessage({\n action: 'gopInfo',\n gopInfo\n });\n });\n transmuxer.on('videoSegmentTimingInfo', function (timingInfo) {\n const videoSegmentTimingInfo = {\n start: {\n decode: clock$2.videoTsToSeconds(timingInfo.start.dts),\n presentation: clock$2.videoTsToSeconds(timingInfo.start.pts)\n },\n end: {\n decode: clock$2.videoTsToSeconds(timingInfo.end.dts),\n presentation: clock$2.videoTsToSeconds(timingInfo.end.pts)\n },\n baseMediaDecodeTime: clock$2.videoTsToSeconds(timingInfo.baseMediaDecodeTime)\n };\n if (timingInfo.prependedContentDuration) {\n videoSegmentTimingInfo.prependedContentDuration = clock$2.videoTsToSeconds(timingInfo.prependedContentDuration);\n }\n self.postMessage({\n action: 'videoSegmentTimingInfo',\n videoSegmentTimingInfo\n });\n });\n transmuxer.on('audioSegmentTimingInfo', function (timingInfo) {\n // Note that all times for [audio/video]SegmentTimingInfo events are in video clock\n const audioSegmentTimingInfo = {\n start: {\n decode: clock$2.videoTsToSeconds(timingInfo.start.dts),\n presentation: clock$2.videoTsToSeconds(timingInfo.start.pts)\n },\n end: {\n decode: clock$2.videoTsToSeconds(timingInfo.end.dts),\n presentation: clock$2.videoTsToSeconds(timingInfo.end.pts)\n },\n baseMediaDecodeTime: clock$2.videoTsToSeconds(timingInfo.baseMediaDecodeTime)\n };\n if (timingInfo.prependedContentDuration) {\n audioSegmentTimingInfo.prependedContentDuration = clock$2.videoTsToSeconds(timingInfo.prependedContentDuration);\n }\n self.postMessage({\n action: 'audioSegmentTimingInfo',\n audioSegmentTimingInfo\n });\n });\n transmuxer.on('id3Frame', function (id3Frame) {\n self.postMessage({\n action: 'id3Frame',\n id3Frame\n });\n });\n transmuxer.on('caption', function (caption) {\n self.postMessage({\n action: 'caption',\n caption\n });\n });\n transmuxer.on('trackinfo', function (trackInfo) {\n self.postMessage({\n action: 'trackinfo',\n trackInfo\n });\n });\n transmuxer.on('audioTimingInfo', function (audioTimingInfo) {\n // convert to video TS since we prioritize video time over audio\n self.postMessage({\n action: 'audioTimingInfo',\n audioTimingInfo: {\n start: clock$2.videoTsToSeconds(audioTimingInfo.start),\n end: clock$2.videoTsToSeconds(audioTimingInfo.end)\n }\n });\n });\n transmuxer.on('videoTimingInfo', function (videoTimingInfo) {\n self.postMessage({\n action: 'videoTimingInfo',\n videoTimingInfo: {\n start: clock$2.videoTsToSeconds(videoTimingInfo.start),\n end: clock$2.videoTsToSeconds(videoTimingInfo.end)\n }\n });\n });\n transmuxer.on('log', function (log) {\n self.postMessage({\n action: 'log',\n log\n });\n });\n };\n /**\n * All incoming messages route through this hash. If no function exists\n * to handle an incoming message, then we ignore the message.\n *\n * @class MessageHandlers\n * @param {Object} options the options to initialize with\n */\n\n class MessageHandlers {\n constructor(self, options) {\n this.options = options || {};\n this.self = self;\n this.init();\n }\n /**\n * initialize our web worker and wire all the events.\n */\n\n init() {\n if (this.transmuxer) {\n this.transmuxer.dispose();\n }\n this.transmuxer = new transmuxer.Transmuxer(this.options);\n wireTransmuxerEvents(this.self, this.transmuxer);\n }\n pushMp4Captions(data) {\n if (!this.captionParser) {\n this.captionParser = new captionParser();\n this.captionParser.init();\n }\n const segment = new Uint8Array(data.data, data.byteOffset, data.byteLength);\n const parsed = this.captionParser.parse(segment, data.trackIds, data.timescales);\n this.self.postMessage({\n action: 'mp4Captions',\n captions: parsed && parsed.captions || [],\n logs: parsed && parsed.logs || [],\n data: segment.buffer\n }, [segment.buffer]);\n }\n probeMp4StartTime(_ref27) {\n let timescales = _ref27.timescales,\n data = _ref27.data;\n const startTime = probe$2.startTime(timescales, data);\n this.self.postMessage({\n action: 'probeMp4StartTime',\n startTime,\n data\n }, [data.buffer]);\n }\n probeMp4Tracks(_ref28) {\n let data = _ref28.data;\n const tracks = probe$2.tracks(data);\n this.self.postMessage({\n action: 'probeMp4Tracks',\n tracks,\n data\n }, [data.buffer]);\n }\n /**\n * Probes an mp4 segment for EMSG boxes containing ID3 data.\n * https://aomediacodec.github.io/id3-emsg/\n *\n * @param {Uint8Array} data segment data\n * @param {number} offset segment start time\n * @return {Object[]} an array of ID3 frames\n */\n\n probeEmsgID3(_ref29) {\n let data = _ref29.data,\n offset = _ref29.offset;\n const id3Frames = probe$2.getEmsgID3(data, offset);\n this.self.postMessage({\n action: 'probeEmsgID3',\n id3Frames,\n emsgData: data\n }, [data.buffer]);\n }\n /**\n * Probe an mpeg2-ts segment to determine the start time of the segment in it's\n * internal \"media time,\" as well as whether it contains video and/or audio.\n *\n * @private\n * @param {Uint8Array} bytes - segment bytes\n * @param {number} baseStartTime\n * Relative reference timestamp used when adjusting frame timestamps for rollover.\n * This value should be in seconds, as it's converted to a 90khz clock within the\n * function body.\n * @return {Object} The start time of the current segment in \"media time\" as well as\n * whether it contains video and/or audio\n */\n\n probeTs(_ref30) {\n let data = _ref30.data,\n baseStartTime = _ref30.baseStartTime;\n const tsStartTime = typeof baseStartTime === 'number' && !isNaN(baseStartTime) ? baseStartTime * clock$2.ONE_SECOND_IN_TS : void 0;\n const timeInfo = tsInspector.inspect(data, tsStartTime);\n let result = null;\n if (timeInfo) {\n result = {\n // each type's time info comes back as an array of 2 times, start and end\n hasVideo: timeInfo.video && timeInfo.video.length === 2 || false,\n hasAudio: timeInfo.audio && timeInfo.audio.length === 2 || false\n };\n if (result.hasVideo) {\n result.videoStart = timeInfo.video[0].ptsTime;\n }\n if (result.hasAudio) {\n result.audioStart = timeInfo.audio[0].ptsTime;\n }\n }\n this.self.postMessage({\n action: 'probeTs',\n result,\n data\n }, [data.buffer]);\n }\n clearAllMp4Captions() {\n if (this.captionParser) {\n this.captionParser.clearAllCaptions();\n }\n }\n clearParsedMp4Captions() {\n if (this.captionParser) {\n this.captionParser.clearParsedCaptions();\n }\n }\n /**\n * Adds data (a ts segment) to the start of the transmuxer pipeline for\n * processing.\n *\n * @param {ArrayBuffer} data data to push into the muxer\n */\n\n push(data) {\n // Cast array buffer to correct type for transmuxer\n const segment = new Uint8Array(data.data, data.byteOffset, data.byteLength);\n this.transmuxer.push(segment);\n }\n /**\n * Recreate the transmuxer so that the next segment added via `push`\n * start with a fresh transmuxer.\n */\n\n reset() {\n this.transmuxer.reset();\n }\n /**\n * Set the value that will be used as the `baseMediaDecodeTime` time for the\n * next segment pushed in. Subsequent segments will have their `baseMediaDecodeTime`\n * set relative to the first based on the PTS values.\n *\n * @param {Object} data used to set the timestamp offset in the muxer\n */\n\n setTimestampOffset(data) {\n const timestampOffset = data.timestampOffset || 0;\n this.transmuxer.setBaseMediaDecodeTime(Math.round(clock$2.secondsToVideoTs(timestampOffset)));\n }\n setAudioAppendStart(data) {\n this.transmuxer.setAudioAppendStart(Math.ceil(clock$2.secondsToVideoTs(data.appendStart)));\n }\n setRemux(data) {\n this.transmuxer.setRemux(data.remux);\n }\n /**\n * Forces the pipeline to finish processing the last segment and emit it's\n * results.\n *\n * @param {Object} data event data, not really used\n */\n\n flush(data) {\n this.transmuxer.flush(); // transmuxed done action is fired after both audio/video pipelines are flushed\n\n self.postMessage({\n action: 'done',\n type: 'transmuxed'\n });\n }\n endTimeline() {\n this.transmuxer.endTimeline(); // transmuxed endedtimeline action is fired after both audio/video pipelines end their\n // timelines\n\n self.postMessage({\n action: 'endedtimeline',\n type: 'transmuxed'\n });\n }\n alignGopsWith(data) {\n this.transmuxer.alignGopsWith(data.gopsToAlignWith.slice());\n }\n }\n /**\n * Our web worker interface so that things can talk to mux.js\n * that will be running in a web worker. the scope is passed to this by\n * webworkify.\n *\n * @param {Object} self the scope for the web worker\n */\n\n self.onmessage = function (event) {\n if (event.data.action === 'init' && event.data.options) {\n this.messageHandlers = new MessageHandlers(self, event.data.options);\n return;\n }\n if (!this.messageHandlers) {\n this.messageHandlers = new MessageHandlers(self);\n }\n if (event.data && event.data.action && event.data.action !== 'init') {\n if (this.messageHandlers[event.data.action]) {\n this.messageHandlers[event.data.action](event.data);\n }\n }\n };\n}));\nvar TransmuxWorker = factory(workerCode$1);\n/* rollup-plugin-worker-factory end for worker!/home/runner/work/http-streaming/http-streaming/src/transmuxer-worker.js */\n\nconst handleData_ = (event, transmuxedData, callback) => {\n const _event$data$segment = event.data.segment,\n type = _event$data$segment.type,\n initSegment = _event$data$segment.initSegment,\n captions = _event$data$segment.captions,\n captionStreams = _event$data$segment.captionStreams,\n metadata = _event$data$segment.metadata,\n videoFrameDtsTime = _event$data$segment.videoFrameDtsTime,\n videoFramePtsTime = _event$data$segment.videoFramePtsTime;\n transmuxedData.buffer.push({\n captions,\n captionStreams,\n metadata\n });\n const boxes = event.data.segment.boxes || {\n data: event.data.segment.data\n };\n const result = {\n type,\n // cast ArrayBuffer to TypedArray\n data: new Uint8Array(boxes.data, boxes.data.byteOffset, boxes.data.byteLength),\n initSegment: new Uint8Array(initSegment.data, initSegment.byteOffset, initSegment.byteLength)\n };\n if (typeof videoFrameDtsTime !== 'undefined') {\n result.videoFrameDtsTime = videoFrameDtsTime;\n }\n if (typeof videoFramePtsTime !== 'undefined') {\n result.videoFramePtsTime = videoFramePtsTime;\n }\n callback(result);\n};\nconst handleDone_ = _ref31 => {\n let transmuxedData = _ref31.transmuxedData,\n callback = _ref31.callback;\n // Previously we only returned data on data events,\n // not on done events. Clear out the buffer to keep that consistent.\n transmuxedData.buffer = []; // all buffers should have been flushed from the muxer, so start processing anything we\n // have received\n\n callback(transmuxedData);\n};\nconst handleGopInfo_ = (event, transmuxedData) => {\n transmuxedData.gopInfo = event.data.gopInfo;\n};\nconst processTransmux = options => {\n const transmuxer = options.transmuxer,\n bytes = options.bytes,\n audioAppendStart = options.audioAppendStart,\n gopsToAlignWith = options.gopsToAlignWith,\n remux = options.remux,\n onData = options.onData,\n onTrackInfo = options.onTrackInfo,\n onAudioTimingInfo = options.onAudioTimingInfo,\n onVideoTimingInfo = options.onVideoTimingInfo,\n onVideoSegmentTimingInfo = options.onVideoSegmentTimingInfo,\n onAudioSegmentTimingInfo = options.onAudioSegmentTimingInfo,\n onId3 = options.onId3,\n onCaptions = options.onCaptions,\n onDone = options.onDone,\n onEndedTimeline = options.onEndedTimeline,\n onTransmuxerLog = options.onTransmuxerLog,\n isEndOfTimeline = options.isEndOfTimeline;\n const transmuxedData = {\n buffer: []\n };\n let waitForEndedTimelineEvent = isEndOfTimeline;\n const handleMessage = event => {\n if (transmuxer.currentTransmux !== options) {\n // disposed\n return;\n }\n if (event.data.action === 'data') {\n handleData_(event, transmuxedData, onData);\n }\n if (event.data.action === 'trackinfo') {\n onTrackInfo(event.data.trackInfo);\n }\n if (event.data.action === 'gopInfo') {\n handleGopInfo_(event, transmuxedData);\n }\n if (event.data.action === 'audioTimingInfo') {\n onAudioTimingInfo(event.data.audioTimingInfo);\n }\n if (event.data.action === 'videoTimingInfo') {\n onVideoTimingInfo(event.data.videoTimingInfo);\n }\n if (event.data.action === 'videoSegmentTimingInfo') {\n onVideoSegmentTimingInfo(event.data.videoSegmentTimingInfo);\n }\n if (event.data.action === 'audioSegmentTimingInfo') {\n onAudioSegmentTimingInfo(event.data.audioSegmentTimingInfo);\n }\n if (event.data.action === 'id3Frame') {\n onId3([event.data.id3Frame], event.data.id3Frame.dispatchType);\n }\n if (event.data.action === 'caption') {\n onCaptions(event.data.caption);\n }\n if (event.data.action === 'endedtimeline') {\n waitForEndedTimelineEvent = false;\n onEndedTimeline();\n }\n if (event.data.action === 'log') {\n onTransmuxerLog(event.data.log);\n } // wait for the transmuxed event since we may have audio and video\n\n if (event.data.type !== 'transmuxed') {\n return;\n } // If the \"endedtimeline\" event has not yet fired, and this segment represents the end\n // of a timeline, that means there may still be data events before the segment\n // processing can be considerred complete. In that case, the final event should be\n // an \"endedtimeline\" event with the type \"transmuxed.\"\n\n if (waitForEndedTimelineEvent) {\n return;\n }\n transmuxer.onmessage = null;\n handleDone_({\n transmuxedData,\n callback: onDone\n });\n /* eslint-disable no-use-before-define */\n\n dequeue(transmuxer);\n /* eslint-enable */\n };\n\n transmuxer.onmessage = handleMessage;\n if (audioAppendStart) {\n transmuxer.postMessage({\n action: 'setAudioAppendStart',\n appendStart: audioAppendStart\n });\n } // allow empty arrays to be passed to clear out GOPs\n\n if (Array.isArray(gopsToAlignWith)) {\n transmuxer.postMessage({\n action: 'alignGopsWith',\n gopsToAlignWith\n });\n }\n if (typeof remux !== 'undefined') {\n transmuxer.postMessage({\n action: 'setRemux',\n remux\n });\n }\n if (bytes.byteLength) {\n const buffer = bytes instanceof ArrayBuffer ? bytes : bytes.buffer;\n const byteOffset = bytes instanceof ArrayBuffer ? 0 : bytes.byteOffset;\n transmuxer.postMessage({\n action: 'push',\n // Send the typed-array of data as an ArrayBuffer so that\n // it can be sent as a \"Transferable\" and avoid the costly\n // memory copy\n data: buffer,\n // To recreate the original typed-array, we need information\n // about what portion of the ArrayBuffer it was a view into\n byteOffset,\n byteLength: bytes.byteLength\n }, [buffer]);\n }\n if (isEndOfTimeline) {\n transmuxer.postMessage({\n action: 'endTimeline'\n });\n } // even if we didn't push any bytes, we have to make sure we flush in case we reached\n // the end of the segment\n\n transmuxer.postMessage({\n action: 'flush'\n });\n};\nconst dequeue = transmuxer => {\n transmuxer.currentTransmux = null;\n if (transmuxer.transmuxQueue.length) {\n transmuxer.currentTransmux = transmuxer.transmuxQueue.shift();\n if (typeof transmuxer.currentTransmux === 'function') {\n transmuxer.currentTransmux();\n } else {\n processTransmux(transmuxer.currentTransmux);\n }\n }\n};\nconst processAction = (transmuxer, action) => {\n transmuxer.postMessage({\n action\n });\n dequeue(transmuxer);\n};\nconst enqueueAction = (action, transmuxer) => {\n if (!transmuxer.currentTransmux) {\n transmuxer.currentTransmux = action;\n processAction(transmuxer, action);\n return;\n }\n transmuxer.transmuxQueue.push(processAction.bind(null, transmuxer, action));\n};\nconst reset = transmuxer => {\n enqueueAction('reset', transmuxer);\n};\nconst endTimeline = transmuxer => {\n enqueueAction('endTimeline', transmuxer);\n};\nconst transmux = options => {\n if (!options.transmuxer.currentTransmux) {\n options.transmuxer.currentTransmux = options;\n processTransmux(options);\n return;\n }\n options.transmuxer.transmuxQueue.push(options);\n};\nconst createTransmuxer = options => {\n const transmuxer = new TransmuxWorker();\n transmuxer.currentTransmux = null;\n transmuxer.transmuxQueue = [];\n const term = transmuxer.terminate;\n transmuxer.terminate = () => {\n transmuxer.currentTransmux = null;\n transmuxer.transmuxQueue.length = 0;\n return term.call(transmuxer);\n };\n transmuxer.postMessage({\n action: 'init',\n options\n });\n return transmuxer;\n};\nvar segmentTransmuxer = {\n reset,\n endTimeline,\n transmux,\n createTransmuxer\n};\nconst workerCallback = function (options) {\n const transmuxer = options.transmuxer;\n const endAction = options.endAction || options.action;\n const callback = options.callback;\n const message = _extends({}, options, {\n endAction: null,\n transmuxer: null,\n callback: null\n });\n const listenForEndEvent = event => {\n if (event.data.action !== endAction) {\n return;\n }\n transmuxer.removeEventListener('message', listenForEndEvent); // transfer ownership of bytes back to us.\n\n if (event.data.data) {\n event.data.data = new Uint8Array(event.data.data, options.byteOffset || 0, options.byteLength || event.data.data.byteLength);\n if (options.data) {\n options.data = event.data.data;\n }\n }\n callback(event.data);\n };\n transmuxer.addEventListener('message', listenForEndEvent);\n if (options.data) {\n const isArrayBuffer = options.data instanceof ArrayBuffer;\n message.byteOffset = isArrayBuffer ? 0 : options.data.byteOffset;\n message.byteLength = options.data.byteLength;\n const transfers = [isArrayBuffer ? options.data : options.data.buffer];\n transmuxer.postMessage(message, transfers);\n } else {\n transmuxer.postMessage(message);\n }\n};\nconst REQUEST_ERRORS = {\n FAILURE: 2,\n TIMEOUT: -101,\n ABORTED: -102\n};\n/**\n * Abort all requests\n *\n * @param {Object} activeXhrs - an object that tracks all XHR requests\n */\n\nconst abortAll = activeXhrs => {\n activeXhrs.forEach(xhr => {\n xhr.abort();\n });\n};\n/**\n * Gather important bandwidth stats once a request has completed\n *\n * @param {Object} request - the XHR request from which to gather stats\n */\n\nconst getRequestStats = request => {\n return {\n bandwidth: request.bandwidth,\n bytesReceived: request.bytesReceived || 0,\n roundTripTime: request.roundTripTime || 0\n };\n};\n/**\n * If possible gather bandwidth stats as a request is in\n * progress\n *\n * @param {Event} progressEvent - an event object from an XHR's progress event\n */\n\nconst getProgressStats = progressEvent => {\n const request = progressEvent.target;\n const roundTripTime = Date.now() - request.requestTime;\n const stats = {\n bandwidth: Infinity,\n bytesReceived: 0,\n roundTripTime: roundTripTime || 0\n };\n stats.bytesReceived = progressEvent.loaded; // This can result in Infinity if stats.roundTripTime is 0 but that is ok\n // because we should only use bandwidth stats on progress to determine when\n // abort a request early due to insufficient bandwidth\n\n stats.bandwidth = Math.floor(stats.bytesReceived / stats.roundTripTime * 8 * 1000);\n return stats;\n};\n/**\n * Handle all error conditions in one place and return an object\n * with all the information\n *\n * @param {Error|null} error - if non-null signals an error occured with the XHR\n * @param {Object} request - the XHR request that possibly generated the error\n */\n\nconst handleErrors = (error, request) => {\n if (request.timedout) {\n return {\n status: request.status,\n message: 'HLS request timed-out at URL: ' + request.uri,\n code: REQUEST_ERRORS.TIMEOUT,\n xhr: request\n };\n }\n if (request.aborted) {\n return {\n status: request.status,\n message: 'HLS request aborted at URL: ' + request.uri,\n code: REQUEST_ERRORS.ABORTED,\n xhr: request\n };\n }\n if (error) {\n return {\n status: request.status,\n message: 'HLS request errored at URL: ' + request.uri,\n code: REQUEST_ERRORS.FAILURE,\n xhr: request\n };\n }\n if (request.responseType === 'arraybuffer' && request.response.byteLength === 0) {\n return {\n status: request.status,\n message: 'Empty HLS response at URL: ' + request.uri,\n code: REQUEST_ERRORS.FAILURE,\n xhr: request\n };\n }\n return null;\n};\n/**\n * Handle responses for key data and convert the key data to the correct format\n * for the decryption step later\n *\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n * @param {Array} objects - objects to add the key bytes to.\n * @param {Function} finishProcessingFn - a callback to execute to continue processing\n * this request\n */\n\nconst handleKeyResponse = (segment, objects, finishProcessingFn) => (error, request) => {\n const response = request.response;\n const errorObj = handleErrors(error, request);\n if (errorObj) {\n return finishProcessingFn(errorObj, segment);\n }\n if (response.byteLength !== 16) {\n return finishProcessingFn({\n status: request.status,\n message: 'Invalid HLS key at URL: ' + request.uri,\n code: REQUEST_ERRORS.FAILURE,\n xhr: request\n }, segment);\n }\n const view = new DataView(response);\n const bytes = new Uint32Array([view.getUint32(0), view.getUint32(4), view.getUint32(8), view.getUint32(12)]);\n for (let i = 0; i < objects.length; i++) {\n objects[i].bytes = bytes;\n }\n return finishProcessingFn(null, segment);\n};\nconst parseInitSegment = (segment, callback) => {\n const type = detectContainerForBytes(segment.map.bytes); // TODO: We should also handle ts init segments here, but we\n // only know how to parse mp4 init segments at the moment\n\n if (type !== 'mp4') {\n const uri = segment.map.resolvedUri || segment.map.uri;\n return callback({\n internal: true,\n message: `Found unsupported ${type || 'unknown'} container for initialization segment at URL: ${uri}`,\n code: REQUEST_ERRORS.FAILURE\n });\n }\n workerCallback({\n action: 'probeMp4Tracks',\n data: segment.map.bytes,\n transmuxer: segment.transmuxer,\n callback: _ref32 => {\n let tracks = _ref32.tracks,\n data = _ref32.data;\n // transfer bytes back to us\n segment.map.bytes = data;\n tracks.forEach(function (track) {\n segment.map.tracks = segment.map.tracks || {}; // only support one track of each type for now\n\n if (segment.map.tracks[track.type]) {\n return;\n }\n segment.map.tracks[track.type] = track;\n if (typeof track.id === 'number' && track.timescale) {\n segment.map.timescales = segment.map.timescales || {};\n segment.map.timescales[track.id] = track.timescale;\n }\n });\n return callback(null);\n }\n });\n};\n/**\n * Handle init-segment responses\n *\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n * @param {Function} finishProcessingFn - a callback to execute to continue processing\n * this request\n */\n\nconst handleInitSegmentResponse = _ref33 => {\n let segment = _ref33.segment,\n finishProcessingFn = _ref33.finishProcessingFn;\n return (error, request) => {\n const errorObj = handleErrors(error, request);\n if (errorObj) {\n return finishProcessingFn(errorObj, segment);\n }\n const bytes = new Uint8Array(request.response); // init segment is encypted, we will have to wait\n // until the key request is done to decrypt.\n\n if (segment.map.key) {\n segment.map.encryptedBytes = bytes;\n return finishProcessingFn(null, segment);\n }\n segment.map.bytes = bytes;\n parseInitSegment(segment, function (parseError) {\n if (parseError) {\n parseError.xhr = request;\n parseError.status = request.status;\n return finishProcessingFn(parseError, segment);\n }\n finishProcessingFn(null, segment);\n });\n };\n};\n/**\n * Response handler for segment-requests being sure to set the correct\n * property depending on whether the segment is encryped or not\n * Also records and keeps track of stats that are used for ABR purposes\n *\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n * @param {Function} finishProcessingFn - a callback to execute to continue processing\n * this request\n */\n\nconst handleSegmentResponse = _ref34 => {\n let segment = _ref34.segment,\n finishProcessingFn = _ref34.finishProcessingFn,\n responseType = _ref34.responseType;\n return (error, request) => {\n const errorObj = handleErrors(error, request);\n if (errorObj) {\n return finishProcessingFn(errorObj, segment);\n }\n const newBytes =\n // although responseText \"should\" exist, this guard serves to prevent an error being\n // thrown for two primary cases:\n // 1. the mime type override stops working, or is not implemented for a specific\n // browser\n // 2. when using mock XHR libraries like sinon that do not allow the override behavior\n responseType === 'arraybuffer' || !request.responseText ? request.response : stringToArrayBuffer(request.responseText.substring(segment.lastReachedChar || 0));\n segment.stats = getRequestStats(request);\n if (segment.key) {\n segment.encryptedBytes = new Uint8Array(newBytes);\n } else {\n segment.bytes = new Uint8Array(newBytes);\n }\n return finishProcessingFn(null, segment);\n };\n};\nconst transmuxAndNotify = _ref35 => {\n let segment = _ref35.segment,\n bytes = _ref35.bytes,\n trackInfoFn = _ref35.trackInfoFn,\n timingInfoFn = _ref35.timingInfoFn,\n videoSegmentTimingInfoFn = _ref35.videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn = _ref35.audioSegmentTimingInfoFn,\n id3Fn = _ref35.id3Fn,\n captionsFn = _ref35.captionsFn,\n isEndOfTimeline = _ref35.isEndOfTimeline,\n endedTimelineFn = _ref35.endedTimelineFn,\n dataFn = _ref35.dataFn,\n doneFn = _ref35.doneFn,\n onTransmuxerLog = _ref35.onTransmuxerLog;\n const fmp4Tracks = segment.map && segment.map.tracks || {};\n const isMuxed = Boolean(fmp4Tracks.audio && fmp4Tracks.video); // Keep references to each function so we can null them out after we're done with them.\n // One reason for this is that in the case of full segments, we want to trust start\n // times from the probe, rather than the transmuxer.\n\n let audioStartFn = timingInfoFn.bind(null, segment, 'audio', 'start');\n const audioEndFn = timingInfoFn.bind(null, segment, 'audio', 'end');\n let videoStartFn = timingInfoFn.bind(null, segment, 'video', 'start');\n const videoEndFn = timingInfoFn.bind(null, segment, 'video', 'end');\n const finish = () => transmux({\n bytes,\n transmuxer: segment.transmuxer,\n audioAppendStart: segment.audioAppendStart,\n gopsToAlignWith: segment.gopsToAlignWith,\n remux: isMuxed,\n onData: result => {\n result.type = result.type === 'combined' ? 'video' : result.type;\n dataFn(segment, result);\n },\n onTrackInfo: trackInfo => {\n if (trackInfoFn) {\n if (isMuxed) {\n trackInfo.isMuxed = true;\n }\n trackInfoFn(segment, trackInfo);\n }\n },\n onAudioTimingInfo: audioTimingInfo => {\n // we only want the first start value we encounter\n if (audioStartFn && typeof audioTimingInfo.start !== 'undefined') {\n audioStartFn(audioTimingInfo.start);\n audioStartFn = null;\n } // we want to continually update the end time\n\n if (audioEndFn && typeof audioTimingInfo.end !== 'undefined') {\n audioEndFn(audioTimingInfo.end);\n }\n },\n onVideoTimingInfo: videoTimingInfo => {\n // we only want the first start value we encounter\n if (videoStartFn && typeof videoTimingInfo.start !== 'undefined') {\n videoStartFn(videoTimingInfo.start);\n videoStartFn = null;\n } // we want to continually update the end time\n\n if (videoEndFn && typeof videoTimingInfo.end !== 'undefined') {\n videoEndFn(videoTimingInfo.end);\n }\n },\n onVideoSegmentTimingInfo: videoSegmentTimingInfo => {\n videoSegmentTimingInfoFn(videoSegmentTimingInfo);\n },\n onAudioSegmentTimingInfo: audioSegmentTimingInfo => {\n audioSegmentTimingInfoFn(audioSegmentTimingInfo);\n },\n onId3: (id3Frames, dispatchType) => {\n id3Fn(segment, id3Frames, dispatchType);\n },\n onCaptions: captions => {\n captionsFn(segment, [captions]);\n },\n isEndOfTimeline,\n onEndedTimeline: () => {\n endedTimelineFn();\n },\n onTransmuxerLog,\n onDone: result => {\n if (!doneFn) {\n return;\n }\n result.type = result.type === 'combined' ? 'video' : result.type;\n doneFn(null, segment, result);\n }\n }); // In the transmuxer, we don't yet have the ability to extract a \"proper\" start time.\n // Meaning cached frame data may corrupt our notion of where this segment\n // really starts. To get around this, probe for the info needed.\n\n workerCallback({\n action: 'probeTs',\n transmuxer: segment.transmuxer,\n data: bytes,\n baseStartTime: segment.baseStartTime,\n callback: data => {\n segment.bytes = bytes = data.data;\n const probeResult = data.result;\n if (probeResult) {\n trackInfoFn(segment, {\n hasAudio: probeResult.hasAudio,\n hasVideo: probeResult.hasVideo,\n isMuxed\n });\n trackInfoFn = null;\n }\n finish();\n }\n });\n};\nconst handleSegmentBytes = _ref36 => {\n let segment = _ref36.segment,\n bytes = _ref36.bytes,\n trackInfoFn = _ref36.trackInfoFn,\n timingInfoFn = _ref36.timingInfoFn,\n videoSegmentTimingInfoFn = _ref36.videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn = _ref36.audioSegmentTimingInfoFn,\n id3Fn = _ref36.id3Fn,\n captionsFn = _ref36.captionsFn,\n isEndOfTimeline = _ref36.isEndOfTimeline,\n endedTimelineFn = _ref36.endedTimelineFn,\n dataFn = _ref36.dataFn,\n doneFn = _ref36.doneFn,\n onTransmuxerLog = _ref36.onTransmuxerLog;\n let bytesAsUint8Array = new Uint8Array(bytes); // TODO:\n // We should have a handler that fetches the number of bytes required\n // to check if something is fmp4. This will allow us to save bandwidth\n // because we can only exclude a playlist and abort requests\n // by codec after trackinfo triggers.\n\n if (isLikelyFmp4MediaSegment(bytesAsUint8Array)) {\n segment.isFmp4 = true;\n const tracks = segment.map.tracks;\n const trackInfo = {\n isFmp4: true,\n hasVideo: !!tracks.video,\n hasAudio: !!tracks.audio\n }; // if we have a audio track, with a codec that is not set to\n // encrypted audio\n\n if (tracks.audio && tracks.audio.codec && tracks.audio.codec !== 'enca') {\n trackInfo.audioCodec = tracks.audio.codec;\n } // if we have a video track, with a codec that is not set to\n // encrypted video\n\n if (tracks.video && tracks.video.codec && tracks.video.codec !== 'encv') {\n trackInfo.videoCodec = tracks.video.codec;\n }\n if (tracks.video && tracks.audio) {\n trackInfo.isMuxed = true;\n } // since we don't support appending fmp4 data on progress, we know we have the full\n // segment here\n\n trackInfoFn(segment, trackInfo); // The probe doesn't provide the segment end time, so only callback with the start\n // time. The end time can be roughly calculated by the receiver using the duration.\n //\n // Note that the start time returned by the probe reflects the baseMediaDecodeTime, as\n // that is the true start of the segment (where the playback engine should begin\n // decoding).\n\n const finishLoading = (captions, id3Frames) => {\n // if the track still has audio at this point it is only possible\n // for it to be audio only. See `tracks.video && tracks.audio` if statement\n // above.\n // we make sure to use segment.bytes here as that\n dataFn(segment, {\n data: bytesAsUint8Array,\n type: trackInfo.hasAudio && !trackInfo.isMuxed ? 'audio' : 'video'\n });\n if (id3Frames && id3Frames.length) {\n id3Fn(segment, id3Frames);\n }\n if (captions && captions.length) {\n captionsFn(segment, captions);\n }\n doneFn(null, segment, {});\n };\n workerCallback({\n action: 'probeMp4StartTime',\n timescales: segment.map.timescales,\n data: bytesAsUint8Array,\n transmuxer: segment.transmuxer,\n callback: _ref37 => {\n let data = _ref37.data,\n startTime = _ref37.startTime;\n // transfer bytes back to us\n bytes = data.buffer;\n segment.bytes = bytesAsUint8Array = data;\n if (trackInfo.hasAudio && !trackInfo.isMuxed) {\n timingInfoFn(segment, 'audio', 'start', startTime);\n }\n if (trackInfo.hasVideo) {\n timingInfoFn(segment, 'video', 'start', startTime);\n }\n workerCallback({\n action: 'probeEmsgID3',\n data: bytesAsUint8Array,\n transmuxer: segment.transmuxer,\n offset: startTime,\n callback: _ref38 => {\n let emsgData = _ref38.emsgData,\n id3Frames = _ref38.id3Frames;\n // transfer bytes back to us\n bytes = emsgData.buffer;\n segment.bytes = bytesAsUint8Array = emsgData; // Run through the CaptionParser in case there are captions.\n // Initialize CaptionParser if it hasn't been yet\n\n if (!tracks.video || !emsgData.byteLength || !segment.transmuxer) {\n finishLoading(undefined, id3Frames);\n return;\n }\n workerCallback({\n action: 'pushMp4Captions',\n endAction: 'mp4Captions',\n transmuxer: segment.transmuxer,\n data: bytesAsUint8Array,\n timescales: segment.map.timescales,\n trackIds: [tracks.video.id],\n callback: message => {\n // transfer bytes back to us\n bytes = message.data.buffer;\n segment.bytes = bytesAsUint8Array = message.data;\n message.logs.forEach(function (log) {\n onTransmuxerLog(merge(log, {\n stream: 'mp4CaptionParser'\n }));\n });\n finishLoading(message.captions, id3Frames);\n }\n });\n }\n });\n }\n });\n return;\n } // VTT or other segments that don't need processing\n\n if (!segment.transmuxer) {\n doneFn(null, segment, {});\n return;\n }\n if (typeof segment.container === 'undefined') {\n segment.container = detectContainerForBytes(bytesAsUint8Array);\n }\n if (segment.container !== 'ts' && segment.container !== 'aac') {\n trackInfoFn(segment, {\n hasAudio: false,\n hasVideo: false\n });\n doneFn(null, segment, {});\n return;\n } // ts or aac\n\n transmuxAndNotify({\n segment,\n bytes,\n trackInfoFn,\n timingInfoFn,\n videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn,\n id3Fn,\n captionsFn,\n isEndOfTimeline,\n endedTimelineFn,\n dataFn,\n doneFn,\n onTransmuxerLog\n });\n};\nconst decrypt = function (_ref39, callback) {\n let id = _ref39.id,\n key = _ref39.key,\n encryptedBytes = _ref39.encryptedBytes,\n decryptionWorker = _ref39.decryptionWorker;\n const decryptionHandler = event => {\n if (event.data.source === id) {\n decryptionWorker.removeEventListener('message', decryptionHandler);\n const decrypted = event.data.decrypted;\n callback(new Uint8Array(decrypted.bytes, decrypted.byteOffset, decrypted.byteLength));\n }\n };\n decryptionWorker.addEventListener('message', decryptionHandler);\n let keyBytes;\n if (key.bytes.slice) {\n keyBytes = key.bytes.slice();\n } else {\n keyBytes = new Uint32Array(Array.prototype.slice.call(key.bytes));\n } // incrementally decrypt the bytes\n\n decryptionWorker.postMessage(createTransferableMessage({\n source: id,\n encrypted: encryptedBytes,\n key: keyBytes,\n iv: key.iv\n }), [encryptedBytes.buffer, keyBytes.buffer]);\n};\n/**\n * Decrypt the segment via the decryption web worker\n *\n * @param {WebWorker} decryptionWorker - a WebWorker interface to AES-128 decryption\n * routines\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n * @param {Function} trackInfoFn - a callback that receives track info\n * @param {Function} timingInfoFn - a callback that receives timing info\n * @param {Function} videoSegmentTimingInfoFn\n * a callback that receives video timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {Function} audioSegmentTimingInfoFn\n * a callback that receives audio timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {boolean} isEndOfTimeline\n * true if this segment represents the last segment in a timeline\n * @param {Function} endedTimelineFn\n * a callback made when a timeline is ended, will only be called if\n * isEndOfTimeline is true\n * @param {Function} dataFn - a callback that is executed when segment bytes are available\n * and ready to use\n * @param {Function} doneFn - a callback that is executed after decryption has completed\n */\n\nconst decryptSegment = _ref40 => {\n let decryptionWorker = _ref40.decryptionWorker,\n segment = _ref40.segment,\n trackInfoFn = _ref40.trackInfoFn,\n timingInfoFn = _ref40.timingInfoFn,\n videoSegmentTimingInfoFn = _ref40.videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn = _ref40.audioSegmentTimingInfoFn,\n id3Fn = _ref40.id3Fn,\n captionsFn = _ref40.captionsFn,\n isEndOfTimeline = _ref40.isEndOfTimeline,\n endedTimelineFn = _ref40.endedTimelineFn,\n dataFn = _ref40.dataFn,\n doneFn = _ref40.doneFn,\n onTransmuxerLog = _ref40.onTransmuxerLog;\n decrypt({\n id: segment.requestId,\n key: segment.key,\n encryptedBytes: segment.encryptedBytes,\n decryptionWorker\n }, decryptedBytes => {\n segment.bytes = decryptedBytes;\n handleSegmentBytes({\n segment,\n bytes: segment.bytes,\n trackInfoFn,\n timingInfoFn,\n videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn,\n id3Fn,\n captionsFn,\n isEndOfTimeline,\n endedTimelineFn,\n dataFn,\n doneFn,\n onTransmuxerLog\n });\n });\n};\n/**\n * This function waits for all XHRs to finish (with either success or failure)\n * before continueing processing via it's callback. The function gathers errors\n * from each request into a single errors array so that the error status for\n * each request can be examined later.\n *\n * @param {Object} activeXhrs - an object that tracks all XHR requests\n * @param {WebWorker} decryptionWorker - a WebWorker interface to AES-128 decryption\n * routines\n * @param {Function} trackInfoFn - a callback that receives track info\n * @param {Function} timingInfoFn - a callback that receives timing info\n * @param {Function} videoSegmentTimingInfoFn\n * a callback that receives video timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {Function} audioSegmentTimingInfoFn\n * a callback that receives audio timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {Function} id3Fn - a callback that receives ID3 metadata\n * @param {Function} captionsFn - a callback that receives captions\n * @param {boolean} isEndOfTimeline\n * true if this segment represents the last segment in a timeline\n * @param {Function} endedTimelineFn\n * a callback made when a timeline is ended, will only be called if\n * isEndOfTimeline is true\n * @param {Function} dataFn - a callback that is executed when segment bytes are available\n * and ready to use\n * @param {Function} doneFn - a callback that is executed after all resources have been\n * downloaded and any decryption completed\n */\n\nconst waitForCompletion = _ref41 => {\n let activeXhrs = _ref41.activeXhrs,\n decryptionWorker = _ref41.decryptionWorker,\n trackInfoFn = _ref41.trackInfoFn,\n timingInfoFn = _ref41.timingInfoFn,\n videoSegmentTimingInfoFn = _ref41.videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn = _ref41.audioSegmentTimingInfoFn,\n id3Fn = _ref41.id3Fn,\n captionsFn = _ref41.captionsFn,\n isEndOfTimeline = _ref41.isEndOfTimeline,\n endedTimelineFn = _ref41.endedTimelineFn,\n dataFn = _ref41.dataFn,\n doneFn = _ref41.doneFn,\n onTransmuxerLog = _ref41.onTransmuxerLog;\n let count = 0;\n let didError = false;\n return (error, segment) => {\n if (didError) {\n return;\n }\n if (error) {\n didError = true; // If there are errors, we have to abort any outstanding requests\n\n abortAll(activeXhrs); // Even though the requests above are aborted, and in theory we could wait until we\n // handle the aborted events from those requests, there are some cases where we may\n // never get an aborted event. For instance, if the network connection is lost and\n // there were two requests, the first may have triggered an error immediately, while\n // the second request remains unsent. In that case, the aborted algorithm will not\n // trigger an abort: see https://xhr.spec.whatwg.org/#the-abort()-method\n //\n // We also can't rely on the ready state of the XHR, since the request that\n // triggered the connection error may also show as a ready state of 0 (unsent).\n // Therefore, we have to finish this group of requests immediately after the first\n // seen error.\n\n return doneFn(error, segment);\n }\n count += 1;\n if (count === activeXhrs.length) {\n const segmentFinish = function () {\n if (segment.encryptedBytes) {\n return decryptSegment({\n decryptionWorker,\n segment,\n trackInfoFn,\n timingInfoFn,\n videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn,\n id3Fn,\n captionsFn,\n isEndOfTimeline,\n endedTimelineFn,\n dataFn,\n doneFn,\n onTransmuxerLog\n });\n } // Otherwise, everything is ready just continue\n\n handleSegmentBytes({\n segment,\n bytes: segment.bytes,\n trackInfoFn,\n timingInfoFn,\n videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn,\n id3Fn,\n captionsFn,\n isEndOfTimeline,\n endedTimelineFn,\n dataFn,\n doneFn,\n onTransmuxerLog\n });\n }; // Keep track of when *all* of the requests have completed\n\n segment.endOfAllRequests = Date.now();\n if (segment.map && segment.map.encryptedBytes && !segment.map.bytes) {\n return decrypt({\n decryptionWorker,\n // add -init to the \"id\" to differentiate between segment\n // and init segment decryption, just in case they happen\n // at the same time at some point in the future.\n id: segment.requestId + '-init',\n encryptedBytes: segment.map.encryptedBytes,\n key: segment.map.key\n }, decryptedBytes => {\n segment.map.bytes = decryptedBytes;\n parseInitSegment(segment, parseError => {\n if (parseError) {\n abortAll(activeXhrs);\n return doneFn(parseError, segment);\n }\n segmentFinish();\n });\n });\n }\n segmentFinish();\n }\n };\n};\n/**\n * Calls the abort callback if any request within the batch was aborted. Will only call\n * the callback once per batch of requests, even if multiple were aborted.\n *\n * @param {Object} loadendState - state to check to see if the abort function was called\n * @param {Function} abortFn - callback to call for abort\n */\n\nconst handleLoadEnd = _ref42 => {\n let loadendState = _ref42.loadendState,\n abortFn = _ref42.abortFn;\n return event => {\n const request = event.target;\n if (request.aborted && abortFn && !loadendState.calledAbortFn) {\n abortFn();\n loadendState.calledAbortFn = true;\n }\n };\n};\n/**\n * Simple progress event callback handler that gathers some stats before\n * executing a provided callback with the `segment` object\n *\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n * @param {Function} progressFn - a callback that is executed each time a progress event\n * is received\n * @param {Function} trackInfoFn - a callback that receives track info\n * @param {Function} timingInfoFn - a callback that receives timing info\n * @param {Function} videoSegmentTimingInfoFn\n * a callback that receives video timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {Function} audioSegmentTimingInfoFn\n * a callback that receives audio timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {boolean} isEndOfTimeline\n * true if this segment represents the last segment in a timeline\n * @param {Function} endedTimelineFn\n * a callback made when a timeline is ended, will only be called if\n * isEndOfTimeline is true\n * @param {Function} dataFn - a callback that is executed when segment bytes are available\n * and ready to use\n * @param {Event} event - the progress event object from XMLHttpRequest\n */\n\nconst handleProgress = _ref43 => {\n let segment = _ref43.segment,\n progressFn = _ref43.progressFn,\n trackInfoFn = _ref43.trackInfoFn,\n timingInfoFn = _ref43.timingInfoFn,\n videoSegmentTimingInfoFn = _ref43.videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn = _ref43.audioSegmentTimingInfoFn,\n id3Fn = _ref43.id3Fn,\n captionsFn = _ref43.captionsFn,\n isEndOfTimeline = _ref43.isEndOfTimeline,\n endedTimelineFn = _ref43.endedTimelineFn,\n dataFn = _ref43.dataFn;\n return event => {\n const request = event.target;\n if (request.aborted) {\n return;\n }\n segment.stats = merge(segment.stats, getProgressStats(event)); // record the time that we receive the first byte of data\n\n if (!segment.stats.firstBytesReceivedAt && segment.stats.bytesReceived) {\n segment.stats.firstBytesReceivedAt = Date.now();\n }\n return progressFn(event, segment);\n };\n};\n/**\n * Load all resources and does any processing necessary for a media-segment\n *\n * Features:\n * decrypts the media-segment if it has a key uri and an iv\n * aborts *all* requests if *any* one request fails\n *\n * The segment object, at minimum, has the following format:\n * {\n * resolvedUri: String,\n * [transmuxer]: Object,\n * [byterange]: {\n * offset: Number,\n * length: Number\n * },\n * [key]: {\n * resolvedUri: String\n * [byterange]: {\n * offset: Number,\n * length: Number\n * },\n * iv: {\n * bytes: Uint32Array\n * }\n * },\n * [map]: {\n * resolvedUri: String,\n * [byterange]: {\n * offset: Number,\n * length: Number\n * },\n * [bytes]: Uint8Array\n * }\n * }\n * ...where [name] denotes optional properties\n *\n * @param {Function} xhr - an instance of the xhr wrapper in xhr.js\n * @param {Object} xhrOptions - the base options to provide to all xhr requests\n * @param {WebWorker} decryptionWorker - a WebWorker interface to AES-128\n * decryption routines\n * @param {Object} segment - a simplified copy of the segmentInfo object\n * from SegmentLoader\n * @param {Function} abortFn - a callback called (only once) if any piece of a request was\n * aborted\n * @param {Function} progressFn - a callback that receives progress events from the main\n * segment's xhr request\n * @param {Function} trackInfoFn - a callback that receives track info\n * @param {Function} timingInfoFn - a callback that receives timing info\n * @param {Function} videoSegmentTimingInfoFn\n * a callback that receives video timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {Function} audioSegmentTimingInfoFn\n * a callback that receives audio timing info based on media times and\n * any adjustments made by the transmuxer\n * @param {Function} id3Fn - a callback that receives ID3 metadata\n * @param {Function} captionsFn - a callback that receives captions\n * @param {boolean} isEndOfTimeline\n * true if this segment represents the last segment in a timeline\n * @param {Function} endedTimelineFn\n * a callback made when a timeline is ended, will only be called if\n * isEndOfTimeline is true\n * @param {Function} dataFn - a callback that receives data from the main segment's xhr\n * request, transmuxed if needed\n * @param {Function} doneFn - a callback that is executed only once all requests have\n * succeeded or failed\n * @return {Function} a function that, when invoked, immediately aborts all\n * outstanding requests\n */\n\nconst mediaSegmentRequest = _ref44 => {\n let xhr = _ref44.xhr,\n xhrOptions = _ref44.xhrOptions,\n decryptionWorker = _ref44.decryptionWorker,\n segment = _ref44.segment,\n abortFn = _ref44.abortFn,\n progressFn = _ref44.progressFn,\n trackInfoFn = _ref44.trackInfoFn,\n timingInfoFn = _ref44.timingInfoFn,\n videoSegmentTimingInfoFn = _ref44.videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn = _ref44.audioSegmentTimingInfoFn,\n id3Fn = _ref44.id3Fn,\n captionsFn = _ref44.captionsFn,\n isEndOfTimeline = _ref44.isEndOfTimeline,\n endedTimelineFn = _ref44.endedTimelineFn,\n dataFn = _ref44.dataFn,\n doneFn = _ref44.doneFn,\n onTransmuxerLog = _ref44.onTransmuxerLog;\n const activeXhrs = [];\n const finishProcessingFn = waitForCompletion({\n activeXhrs,\n decryptionWorker,\n trackInfoFn,\n timingInfoFn,\n videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn,\n id3Fn,\n captionsFn,\n isEndOfTimeline,\n endedTimelineFn,\n dataFn,\n doneFn,\n onTransmuxerLog\n }); // optionally, request the decryption key\n\n if (segment.key && !segment.key.bytes) {\n const objects = [segment.key];\n if (segment.map && !segment.map.bytes && segment.map.key && segment.map.key.resolvedUri === segment.key.resolvedUri) {\n objects.push(segment.map.key);\n }\n const keyRequestOptions = merge(xhrOptions, {\n uri: segment.key.resolvedUri,\n responseType: 'arraybuffer'\n });\n const keyRequestCallback = handleKeyResponse(segment, objects, finishProcessingFn);\n const keyXhr = xhr(keyRequestOptions, keyRequestCallback);\n activeXhrs.push(keyXhr);\n } // optionally, request the associated media init segment\n\n if (segment.map && !segment.map.bytes) {\n const differentMapKey = segment.map.key && (!segment.key || segment.key.resolvedUri !== segment.map.key.resolvedUri);\n if (differentMapKey) {\n const mapKeyRequestOptions = merge(xhrOptions, {\n uri: segment.map.key.resolvedUri,\n responseType: 'arraybuffer'\n });\n const mapKeyRequestCallback = handleKeyResponse(segment, [segment.map.key], finishProcessingFn);\n const mapKeyXhr = xhr(mapKeyRequestOptions, mapKeyRequestCallback);\n activeXhrs.push(mapKeyXhr);\n }\n const initSegmentOptions = merge(xhrOptions, {\n uri: segment.map.resolvedUri,\n responseType: 'arraybuffer',\n headers: segmentXhrHeaders(segment.map)\n });\n const initSegmentRequestCallback = handleInitSegmentResponse({\n segment,\n finishProcessingFn\n });\n const initSegmentXhr = xhr(initSegmentOptions, initSegmentRequestCallback);\n activeXhrs.push(initSegmentXhr);\n }\n const segmentRequestOptions = merge(xhrOptions, {\n uri: segment.part && segment.part.resolvedUri || segment.resolvedUri,\n responseType: 'arraybuffer',\n headers: segmentXhrHeaders(segment)\n });\n const segmentRequestCallback = handleSegmentResponse({\n segment,\n finishProcessingFn,\n responseType: segmentRequestOptions.responseType\n });\n const segmentXhr = xhr(segmentRequestOptions, segmentRequestCallback);\n segmentXhr.addEventListener('progress', handleProgress({\n segment,\n progressFn,\n trackInfoFn,\n timingInfoFn,\n videoSegmentTimingInfoFn,\n audioSegmentTimingInfoFn,\n id3Fn,\n captionsFn,\n isEndOfTimeline,\n endedTimelineFn,\n dataFn\n }));\n activeXhrs.push(segmentXhr); // since all parts of the request must be considered, but should not make callbacks\n // multiple times, provide a shared state object\n\n const loadendState = {};\n activeXhrs.forEach(activeXhr => {\n activeXhr.addEventListener('loadend', handleLoadEnd({\n loadendState,\n abortFn\n }));\n });\n return () => abortAll(activeXhrs);\n};\n\n/**\n * @file - codecs.js - Handles tasks regarding codec strings such as translating them to\n * codec strings, or translating codec strings into objects that can be examined.\n */\nconst logFn$1 = logger('CodecUtils');\n/**\n * Returns a set of codec strings parsed from the playlist or the default\n * codec strings if no codecs were specified in the playlist\n *\n * @param {Playlist} media the current media playlist\n * @return {Object} an object with the video and audio codecs\n */\n\nconst getCodecs = function (media) {\n // if the codecs were explicitly specified, use them instead of the\n // defaults\n const mediaAttributes = media.attributes || {};\n if (mediaAttributes.CODECS) {\n return parseCodecs(mediaAttributes.CODECS);\n }\n};\nconst isMaat = (main, media) => {\n const mediaAttributes = media.attributes || {};\n return main && main.mediaGroups && main.mediaGroups.AUDIO && mediaAttributes.AUDIO && main.mediaGroups.AUDIO[mediaAttributes.AUDIO];\n};\nconst isMuxed = (main, media) => {\n if (!isMaat(main, media)) {\n return true;\n }\n const mediaAttributes = media.attributes || {};\n const audioGroup = main.mediaGroups.AUDIO[mediaAttributes.AUDIO];\n for (const groupId in audioGroup) {\n // If an audio group has a URI (the case for HLS, as HLS will use external playlists),\n // or there are listed playlists (the case for DASH, as the manifest will have already\n // provided all of the details necessary to generate the audio playlist, as opposed to\n // HLS' externally requested playlists), then the content is demuxed.\n if (!audioGroup[groupId].uri && !audioGroup[groupId].playlists) {\n return true;\n }\n }\n return false;\n};\nconst unwrapCodecList = function (codecList) {\n const codecs = {};\n codecList.forEach(_ref45 => {\n let mediaType = _ref45.mediaType,\n type = _ref45.type,\n details = _ref45.details;\n codecs[mediaType] = codecs[mediaType] || [];\n codecs[mediaType].push(translateLegacyCodec(`${type}${details}`));\n });\n Object.keys(codecs).forEach(function (mediaType) {\n if (codecs[mediaType].length > 1) {\n logFn$1(`multiple ${mediaType} codecs found as attributes: ${codecs[mediaType].join(', ')}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`);\n codecs[mediaType] = null;\n return;\n }\n codecs[mediaType] = codecs[mediaType][0];\n });\n return codecs;\n};\nconst codecCount = function (codecObj) {\n let count = 0;\n if (codecObj.audio) {\n count++;\n }\n if (codecObj.video) {\n count++;\n }\n return count;\n};\n/**\n * Calculates the codec strings for a working configuration of\n * SourceBuffers to play variant streams in a main playlist. If\n * there is no possible working configuration, an empty object will be\n * returned.\n *\n * @param main {Object} the m3u8 object for the main playlist\n * @param media {Object} the m3u8 object for the variant playlist\n * @return {Object} the codec strings.\n *\n * @private\n */\n\nconst codecsForPlaylist = function (main, media) {\n const mediaAttributes = media.attributes || {};\n const codecInfo = unwrapCodecList(getCodecs(media) || []); // HLS with multiple-audio tracks must always get an audio codec.\n // Put another way, there is no way to have a video-only multiple-audio HLS!\n\n if (isMaat(main, media) && !codecInfo.audio) {\n if (!isMuxed(main, media)) {\n // It is possible for codecs to be specified on the audio media group playlist but\n // not on the rendition playlist. This is mostly the case for DASH, where audio and\n // video are always separate (and separately specified).\n const defaultCodecs = unwrapCodecList(codecsFromDefault(main, mediaAttributes.AUDIO) || []);\n if (defaultCodecs.audio) {\n codecInfo.audio = defaultCodecs.audio;\n }\n }\n }\n return codecInfo;\n};\nconst logFn = logger('PlaylistSelector');\nconst representationToString = function (representation) {\n if (!representation || !representation.playlist) {\n return;\n }\n const playlist = representation.playlist;\n return JSON.stringify({\n id: playlist.id,\n bandwidth: representation.bandwidth,\n width: representation.width,\n height: representation.height,\n codecs: playlist.attributes && playlist.attributes.CODECS || ''\n });\n}; // Utilities\n\n/**\n * Returns the CSS value for the specified property on an element\n * using `getComputedStyle`. Firefox has a long-standing issue where\n * getComputedStyle() may return null when running in an iframe with\n * `display: none`.\n *\n * @see https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n * @param {HTMLElement} el the htmlelement to work on\n * @param {string} the proprety to get the style for\n */\n\nconst safeGetComputedStyle = function (el, property) {\n if (!el) {\n return '';\n }\n const result = window$1.getComputedStyle(el);\n if (!result) {\n return '';\n }\n return result[property];\n};\n/**\n * Resuable stable sort function\n *\n * @param {Playlists} array\n * @param {Function} sortFn Different comparators\n * @function stableSort\n */\n\nconst stableSort = function (array, sortFn) {\n const newArray = array.slice();\n array.sort(function (left, right) {\n const cmp = sortFn(left, right);\n if (cmp === 0) {\n return newArray.indexOf(left) - newArray.indexOf(right);\n }\n return cmp;\n });\n};\n/**\n * A comparator function to sort two playlist object by bandwidth.\n *\n * @param {Object} left a media playlist object\n * @param {Object} right a media playlist object\n * @return {number} Greater than zero if the bandwidth attribute of\n * left is greater than the corresponding attribute of right. Less\n * than zero if the bandwidth of right is greater than left and\n * exactly zero if the two are equal.\n */\n\nconst comparePlaylistBandwidth = function (left, right) {\n let leftBandwidth;\n let rightBandwidth;\n if (left.attributes.BANDWIDTH) {\n leftBandwidth = left.attributes.BANDWIDTH;\n }\n leftBandwidth = leftBandwidth || window$1.Number.MAX_VALUE;\n if (right.attributes.BANDWIDTH) {\n rightBandwidth = right.attributes.BANDWIDTH;\n }\n rightBandwidth = rightBandwidth || window$1.Number.MAX_VALUE;\n return leftBandwidth - rightBandwidth;\n};\n/**\n * A comparator function to sort two playlist object by resolution (width).\n *\n * @param {Object} left a media playlist object\n * @param {Object} right a media playlist object\n * @return {number} Greater than zero if the resolution.width attribute of\n * left is greater than the corresponding attribute of right. Less\n * than zero if the resolution.width of right is greater than left and\n * exactly zero if the two are equal.\n */\n\nconst comparePlaylistResolution = function (left, right) {\n let leftWidth;\n let rightWidth;\n if (left.attributes.RESOLUTION && left.attributes.RESOLUTION.width) {\n leftWidth = left.attributes.RESOLUTION.width;\n }\n leftWidth = leftWidth || window$1.Number.MAX_VALUE;\n if (right.attributes.RESOLUTION && right.attributes.RESOLUTION.width) {\n rightWidth = right.attributes.RESOLUTION.width;\n }\n rightWidth = rightWidth || window$1.Number.MAX_VALUE; // NOTE - Fallback to bandwidth sort as appropriate in cases where multiple renditions\n // have the same media dimensions/ resolution\n\n if (leftWidth === rightWidth && left.attributes.BANDWIDTH && right.attributes.BANDWIDTH) {\n return left.attributes.BANDWIDTH - right.attributes.BANDWIDTH;\n }\n return leftWidth - rightWidth;\n};\n/**\n * Chooses the appropriate media playlist based on bandwidth and player size\n *\n * @param {Object} main\n * Object representation of the main manifest\n * @param {number} playerBandwidth\n * Current calculated bandwidth of the player\n * @param {number} playerWidth\n * Current width of the player element (should account for the device pixel ratio)\n * @param {number} playerHeight\n * Current height of the player element (should account for the device pixel ratio)\n * @param {boolean} limitRenditionByPlayerDimensions\n * True if the player width and height should be used during the selection, false otherwise\n * @param {Object} playlistController\n * the current playlistController object\n * @return {Playlist} the highest bitrate playlist less than the\n * currently detected bandwidth, accounting for some amount of\n * bandwidth variance\n */\n\nlet simpleSelector = function (main, playerBandwidth, playerWidth, playerHeight, limitRenditionByPlayerDimensions, playlistController) {\n // If we end up getting called before `main` is available, exit early\n if (!main) {\n return;\n }\n const options = {\n bandwidth: playerBandwidth,\n width: playerWidth,\n height: playerHeight,\n limitRenditionByPlayerDimensions\n };\n let playlists = main.playlists; // if playlist is audio only, select between currently active audio group playlists.\n\n if (Playlist.isAudioOnly(main)) {\n playlists = playlistController.getAudioTrackPlaylists_(); // add audioOnly to options so that we log audioOnly: true\n // at the buttom of this function for debugging.\n\n options.audioOnly = true;\n } // convert the playlists to an intermediary representation to make comparisons easier\n\n let sortedPlaylistReps = playlists.map(playlist => {\n let bandwidth;\n const width = playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.width;\n const height = playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.height;\n bandwidth = playlist.attributes && playlist.attributes.BANDWIDTH;\n bandwidth = bandwidth || window$1.Number.MAX_VALUE;\n return {\n bandwidth,\n width,\n height,\n playlist\n };\n });\n stableSort(sortedPlaylistReps, (left, right) => left.bandwidth - right.bandwidth); // filter out any playlists that have been excluded due to\n // incompatible configurations\n\n sortedPlaylistReps = sortedPlaylistReps.filter(rep => !Playlist.isIncompatible(rep.playlist)); // filter out any playlists that have been disabled manually through the representations\n // api or excluded temporarily due to playback errors.\n\n let enabledPlaylistReps = sortedPlaylistReps.filter(rep => Playlist.isEnabled(rep.playlist));\n if (!enabledPlaylistReps.length) {\n // if there are no enabled playlists, then they have all been excluded or disabled\n // by the user through the representations api. In this case, ignore exclusion and\n // fallback to what the user wants by using playlists the user has not disabled.\n enabledPlaylistReps = sortedPlaylistReps.filter(rep => !Playlist.isDisabled(rep.playlist));\n } // filter out any variant that has greater effective bitrate\n // than the current estimated bandwidth\n\n const bandwidthPlaylistReps = enabledPlaylistReps.filter(rep => rep.bandwidth * Config.BANDWIDTH_VARIANCE < playerBandwidth);\n let highestRemainingBandwidthRep = bandwidthPlaylistReps[bandwidthPlaylistReps.length - 1]; // get all of the renditions with the same (highest) bandwidth\n // and then taking the very first element\n\n const bandwidthBestRep = bandwidthPlaylistReps.filter(rep => rep.bandwidth === highestRemainingBandwidthRep.bandwidth)[0]; // if we're not going to limit renditions by player size, make an early decision.\n\n if (limitRenditionByPlayerDimensions === false) {\n const chosenRep = bandwidthBestRep || enabledPlaylistReps[0] || sortedPlaylistReps[0];\n if (chosenRep && chosenRep.playlist) {\n let type = 'sortedPlaylistReps';\n if (bandwidthBestRep) {\n type = 'bandwidthBestRep';\n }\n if (enabledPlaylistReps[0]) {\n type = 'enabledPlaylistReps';\n }\n logFn(`choosing ${representationToString(chosenRep)} using ${type} with options`, options);\n return chosenRep.playlist;\n }\n logFn('could not choose a playlist with options', options);\n return null;\n } // filter out playlists without resolution information\n\n const haveResolution = bandwidthPlaylistReps.filter(rep => rep.width && rep.height); // sort variants by resolution\n\n stableSort(haveResolution, (left, right) => left.width - right.width); // if we have the exact resolution as the player use it\n\n const resolutionBestRepList = haveResolution.filter(rep => rep.width === playerWidth && rep.height === playerHeight);\n highestRemainingBandwidthRep = resolutionBestRepList[resolutionBestRepList.length - 1]; // ensure that we pick the highest bandwidth variant that have exact resolution\n\n const resolutionBestRep = resolutionBestRepList.filter(rep => rep.bandwidth === highestRemainingBandwidthRep.bandwidth)[0];\n let resolutionPlusOneList;\n let resolutionPlusOneSmallest;\n let resolutionPlusOneRep; // find the smallest variant that is larger than the player\n // if there is no match of exact resolution\n\n if (!resolutionBestRep) {\n resolutionPlusOneList = haveResolution.filter(rep => rep.width > playerWidth || rep.height > playerHeight); // find all the variants have the same smallest resolution\n\n resolutionPlusOneSmallest = resolutionPlusOneList.filter(rep => rep.width === resolutionPlusOneList[0].width && rep.height === resolutionPlusOneList[0].height); // ensure that we also pick the highest bandwidth variant that\n // is just-larger-than the video player\n\n highestRemainingBandwidthRep = resolutionPlusOneSmallest[resolutionPlusOneSmallest.length - 1];\n resolutionPlusOneRep = resolutionPlusOneSmallest.filter(rep => rep.bandwidth === highestRemainingBandwidthRep.bandwidth)[0];\n }\n let leastPixelDiffRep; // If this selector proves to be better than others,\n // resolutionPlusOneRep and resolutionBestRep and all\n // the code involving them should be removed.\n\n if (playlistController.leastPixelDiffSelector) {\n // find the variant that is closest to the player's pixel size\n const leastPixelDiffList = haveResolution.map(rep => {\n rep.pixelDiff = Math.abs(rep.width - playerWidth) + Math.abs(rep.height - playerHeight);\n return rep;\n }); // get the highest bandwidth, closest resolution playlist\n\n stableSort(leastPixelDiffList, (left, right) => {\n // sort by highest bandwidth if pixelDiff is the same\n if (left.pixelDiff === right.pixelDiff) {\n return right.bandwidth - left.bandwidth;\n }\n return left.pixelDiff - right.pixelDiff;\n });\n leastPixelDiffRep = leastPixelDiffList[0];\n } // fallback chain of variants\n\n const chosenRep = leastPixelDiffRep || resolutionPlusOneRep || resolutionBestRep || bandwidthBestRep || enabledPlaylistReps[0] || sortedPlaylistReps[0];\n if (chosenRep && chosenRep.playlist) {\n let type = 'sortedPlaylistReps';\n if (leastPixelDiffRep) {\n type = 'leastPixelDiffRep';\n } else if (resolutionPlusOneRep) {\n type = 'resolutionPlusOneRep';\n } else if (resolutionBestRep) {\n type = 'resolutionBestRep';\n } else if (bandwidthBestRep) {\n type = 'bandwidthBestRep';\n } else if (enabledPlaylistReps[0]) {\n type = 'enabledPlaylistReps';\n }\n logFn(`choosing ${representationToString(chosenRep)} using ${type} with options`, options);\n return chosenRep.playlist;\n }\n logFn('could not choose a playlist with options', options);\n return null;\n};\n\n/**\n * Chooses the appropriate media playlist based on the most recent\n * bandwidth estimate and the player size.\n *\n * Expects to be called within the context of an instance of VhsHandler\n *\n * @return {Playlist} the highest bitrate playlist less than the\n * currently detected bandwidth, accounting for some amount of\n * bandwidth variance\n */\n\nconst lastBandwidthSelector = function () {\n const pixelRatio = this.useDevicePixelRatio ? window$1.devicePixelRatio || 1 : 1;\n return simpleSelector(this.playlists.main, this.systemBandwidth, parseInt(safeGetComputedStyle(this.tech_.el(), 'width'), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), 'height'), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.playlistController_);\n};\n/**\n * Chooses the appropriate media playlist based on an\n * exponential-weighted moving average of the bandwidth after\n * filtering for player size.\n *\n * Expects to be called within the context of an instance of VhsHandler\n *\n * @param {number} decay - a number between 0 and 1. Higher values of\n * this parameter will cause previous bandwidth estimates to lose\n * significance more quickly.\n * @return {Function} a function which can be invoked to create a new\n * playlist selector function.\n * @see https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average\n */\n\nconst movingAverageBandwidthSelector = function (decay) {\n let average = -1;\n let lastSystemBandwidth = -1;\n if (decay < 0 || decay > 1) {\n throw new Error('Moving average bandwidth decay must be between 0 and 1.');\n }\n return function () {\n const pixelRatio = this.useDevicePixelRatio ? window$1.devicePixelRatio || 1 : 1;\n if (average < 0) {\n average = this.systemBandwidth;\n lastSystemBandwidth = this.systemBandwidth;\n } // stop the average value from decaying for every 250ms\n // when the systemBandwidth is constant\n // and\n // stop average from setting to a very low value when the\n // systemBandwidth becomes 0 in case of chunk cancellation\n\n if (this.systemBandwidth > 0 && this.systemBandwidth !== lastSystemBandwidth) {\n average = decay * this.systemBandwidth + (1 - decay) * average;\n lastSystemBandwidth = this.systemBandwidth;\n }\n return simpleSelector(this.playlists.main, average, parseInt(safeGetComputedStyle(this.tech_.el(), 'width'), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), 'height'), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.playlistController_);\n };\n};\n/**\n * Chooses the appropriate media playlist based on the potential to rebuffer\n *\n * @param {Object} settings\n * Object of information required to use this selector\n * @param {Object} settings.main\n * Object representation of the main manifest\n * @param {number} settings.currentTime\n * The current time of the player\n * @param {number} settings.bandwidth\n * Current measured bandwidth\n * @param {number} settings.duration\n * Duration of the media\n * @param {number} settings.segmentDuration\n * Segment duration to be used in round trip time calculations\n * @param {number} settings.timeUntilRebuffer\n * Time left in seconds until the player has to rebuffer\n * @param {number} settings.currentTimeline\n * The current timeline segments are being loaded from\n * @param {SyncController} settings.syncController\n * SyncController for determining if we have a sync point for a given playlist\n * @return {Object|null}\n * {Object} return.playlist\n * The highest bandwidth playlist with the least amount of rebuffering\n * {Number} return.rebufferingImpact\n * The amount of time in seconds switching to this playlist will rebuffer. A\n * negative value means that switching will cause zero rebuffering.\n */\n\nconst minRebufferMaxBandwidthSelector = function (settings) {\n const main = settings.main,\n currentTime = settings.currentTime,\n bandwidth = settings.bandwidth,\n duration = settings.duration,\n segmentDuration = settings.segmentDuration,\n timeUntilRebuffer = settings.timeUntilRebuffer,\n currentTimeline = settings.currentTimeline,\n syncController = settings.syncController; // filter out any playlists that have been excluded due to\n // incompatible configurations\n\n const compatiblePlaylists = main.playlists.filter(playlist => !Playlist.isIncompatible(playlist)); // filter out any playlists that have been disabled manually through the representations\n // api or excluded temporarily due to playback errors.\n\n let enabledPlaylists = compatiblePlaylists.filter(Playlist.isEnabled);\n if (!enabledPlaylists.length) {\n // if there are no enabled playlists, then they have all been excluded or disabled\n // by the user through the representations api. In this case, ignore exclusion and\n // fallback to what the user wants by using playlists the user has not disabled.\n enabledPlaylists = compatiblePlaylists.filter(playlist => !Playlist.isDisabled(playlist));\n }\n const bandwidthPlaylists = enabledPlaylists.filter(Playlist.hasAttribute.bind(null, 'BANDWIDTH'));\n const rebufferingEstimates = bandwidthPlaylists.map(playlist => {\n const syncPoint = syncController.getSyncPoint(playlist, duration, currentTimeline, currentTime); // If there is no sync point for this playlist, switching to it will require a\n // sync request first. This will double the request time\n\n const numRequests = syncPoint ? 1 : 2;\n const requestTimeEstimate = Playlist.estimateSegmentRequestTime(segmentDuration, bandwidth, playlist);\n const rebufferingImpact = requestTimeEstimate * numRequests - timeUntilRebuffer;\n return {\n playlist,\n rebufferingImpact\n };\n });\n const noRebufferingPlaylists = rebufferingEstimates.filter(estimate => estimate.rebufferingImpact <= 0); // Sort by bandwidth DESC\n\n stableSort(noRebufferingPlaylists, (a, b) => comparePlaylistBandwidth(b.playlist, a.playlist));\n if (noRebufferingPlaylists.length) {\n return noRebufferingPlaylists[0];\n }\n stableSort(rebufferingEstimates, (a, b) => a.rebufferingImpact - b.rebufferingImpact);\n return rebufferingEstimates[0] || null;\n};\n/**\n * Chooses the appropriate media playlist, which in this case is the lowest bitrate\n * one with video. If no renditions with video exist, return the lowest audio rendition.\n *\n * Expects to be called within the context of an instance of VhsHandler\n *\n * @return {Object|null}\n * {Object} return.playlist\n * The lowest bitrate playlist that contains a video codec. If no such rendition\n * exists pick the lowest audio rendition.\n */\n\nconst lowestBitrateCompatibleVariantSelector = function () {\n // filter out any playlists that have been excluded due to\n // incompatible configurations or playback errors\n const playlists = this.playlists.main.playlists.filter(Playlist.isEnabled); // Sort ascending by bitrate\n\n stableSort(playlists, (a, b) => comparePlaylistBandwidth(a, b)); // Parse and assume that playlists with no video codec have no video\n // (this is not necessarily true, although it is generally true).\n //\n // If an entire manifest has no valid videos everything will get filtered\n // out.\n\n const playlistsWithVideo = playlists.filter(playlist => !!codecsForPlaylist(this.playlists.main, playlist).video);\n return playlistsWithVideo[0] || null;\n};\n\n/**\n * Combine all segments into a single Uint8Array\n *\n * @param {Object} segmentObj\n * @return {Uint8Array} concatenated bytes\n * @private\n */\nconst concatSegments = segmentObj => {\n let offset = 0;\n let tempBuffer;\n if (segmentObj.bytes) {\n tempBuffer = new Uint8Array(segmentObj.bytes); // combine the individual segments into one large typed-array\n\n segmentObj.segments.forEach(segment => {\n tempBuffer.set(segment, offset);\n offset += segment.byteLength;\n });\n }\n return tempBuffer;\n};\n\n/**\n * @file text-tracks.js\n */\n/**\n * Create captions text tracks on video.js if they do not exist\n *\n * @param {Object} inbandTextTracks a reference to current inbandTextTracks\n * @param {Object} tech the video.js tech\n * @param {Object} captionStream the caption stream to create\n * @private\n */\n\nconst createCaptionsTrackIfNotExists = function (inbandTextTracks, tech, captionStream) {\n if (!inbandTextTracks[captionStream]) {\n tech.trigger({\n type: 'usage',\n name: 'vhs-608'\n });\n let instreamId = captionStream; // we need to translate SERVICEn for 708 to how mux.js currently labels them\n\n if (/^cc708_/.test(captionStream)) {\n instreamId = 'SERVICE' + captionStream.split('_')[1];\n }\n const track = tech.textTracks().getTrackById(instreamId);\n if (track) {\n // Resuse an existing track with a CC# id because this was\n // very likely created by videojs-contrib-hls from information\n // in the m3u8 for us to use\n inbandTextTracks[captionStream] = track;\n } else {\n // This section gets called when we have caption services that aren't specified in the manifest.\n // Manifest level caption services are handled in media-groups.js under CLOSED-CAPTIONS.\n const captionServices = tech.options_.vhs && tech.options_.vhs.captionServices || {};\n let label = captionStream;\n let language = captionStream;\n let def = false;\n const captionService = captionServices[instreamId];\n if (captionService) {\n label = captionService.label;\n language = captionService.language;\n def = captionService.default;\n } // Otherwise, create a track with the default `CC#` label and\n // without a language\n\n inbandTextTracks[captionStream] = tech.addRemoteTextTrack({\n kind: 'captions',\n id: instreamId,\n // TODO: investigate why this doesn't seem to turn the caption on by default\n default: def,\n label,\n language\n }, false).track;\n }\n }\n};\n/**\n * Add caption text track data to a source handler given an array of captions\n *\n * @param {Object}\n * @param {Object} inbandTextTracks the inband text tracks\n * @param {number} timestampOffset the timestamp offset of the source buffer\n * @param {Array} captionArray an array of caption data\n * @private\n */\n\nconst addCaptionData = function (_ref46) {\n let inbandTextTracks = _ref46.inbandTextTracks,\n captionArray = _ref46.captionArray,\n timestampOffset = _ref46.timestampOffset;\n if (!captionArray) {\n return;\n }\n const Cue = window$1.WebKitDataCue || window$1.VTTCue;\n captionArray.forEach(caption => {\n const track = caption.stream; // in CEA 608 captions, video.js/mux.js sends a content array\n // with positioning data\n\n if (caption.content) {\n caption.content.forEach(value => {\n const cue = new Cue(caption.startTime + timestampOffset, caption.endTime + timestampOffset, value.text);\n cue.line = value.line;\n cue.align = 'left';\n cue.position = value.position;\n cue.positionAlign = 'line-left';\n inbandTextTracks[track].addCue(cue);\n });\n } else {\n // otherwise, a text value with combined captions is sent\n inbandTextTracks[track].addCue(new Cue(caption.startTime + timestampOffset, caption.endTime + timestampOffset, caption.text));\n }\n });\n};\n/**\n * Define properties on a cue for backwards compatability,\n * but warn the user that the way that they are using it\n * is depricated and will be removed at a later date.\n *\n * @param {Cue} cue the cue to add the properties on\n * @private\n */\n\nconst deprecateOldCue = function (cue) {\n Object.defineProperties(cue.frame, {\n id: {\n get() {\n videojs.log.warn('cue.frame.id is deprecated. Use cue.value.key instead.');\n return cue.value.key;\n }\n },\n value: {\n get() {\n videojs.log.warn('cue.frame.value is deprecated. Use cue.value.data instead.');\n return cue.value.data;\n }\n },\n privateData: {\n get() {\n videojs.log.warn('cue.frame.privateData is deprecated. Use cue.value.data instead.');\n return cue.value.data;\n }\n }\n });\n};\n/**\n * Add metadata text track data to a source handler given an array of metadata\n *\n * @param {Object}\n * @param {Object} inbandTextTracks the inband text tracks\n * @param {Array} metadataArray an array of meta data\n * @param {number} timestampOffset the timestamp offset of the source buffer\n * @param {number} videoDuration the duration of the video\n * @private\n */\n\nconst addMetadata = _ref47 => {\n let inbandTextTracks = _ref47.inbandTextTracks,\n metadataArray = _ref47.metadataArray,\n timestampOffset = _ref47.timestampOffset,\n videoDuration = _ref47.videoDuration;\n if (!metadataArray) {\n return;\n }\n const Cue = window$1.WebKitDataCue || window$1.VTTCue;\n const metadataTrack = inbandTextTracks.metadataTrack_;\n if (!metadataTrack) {\n return;\n }\n metadataArray.forEach(metadata => {\n const time = metadata.cueTime + timestampOffset; // if time isn't a finite number between 0 and Infinity, like NaN,\n // ignore this bit of metadata.\n // This likely occurs when you have an non-timed ID3 tag like TIT2,\n // which is the \"Title/Songname/Content description\" frame\n\n if (typeof time !== 'number' || window$1.isNaN(time) || time < 0 || !(time < Infinity)) {\n return;\n } // If we have no frames, we can't create a cue.\n\n if (!metadata.frames || !metadata.frames.length) {\n return;\n }\n metadata.frames.forEach(frame => {\n const cue = new Cue(time, time, frame.value || frame.url || frame.data || '');\n cue.frame = frame;\n cue.value = frame;\n deprecateOldCue(cue);\n metadataTrack.addCue(cue);\n });\n });\n if (!metadataTrack.cues || !metadataTrack.cues.length) {\n return;\n } // Updating the metadeta cues so that\n // the endTime of each cue is the startTime of the next cue\n // the endTime of last cue is the duration of the video\n\n const cues = metadataTrack.cues;\n const cuesArray = []; // Create a copy of the TextTrackCueList...\n // ...disregarding cues with a falsey value\n\n for (let i = 0; i < cues.length; i++) {\n if (cues[i]) {\n cuesArray.push(cues[i]);\n }\n } // Group cues by their startTime value\n\n const cuesGroupedByStartTime = cuesArray.reduce((obj, cue) => {\n const timeSlot = obj[cue.startTime] || [];\n timeSlot.push(cue);\n obj[cue.startTime] = timeSlot;\n return obj;\n }, {}); // Sort startTimes by ascending order\n\n const sortedStartTimes = Object.keys(cuesGroupedByStartTime).sort((a, b) => Number(a) - Number(b)); // Map each cue group's endTime to the next group's startTime\n\n sortedStartTimes.forEach((startTime, idx) => {\n const cueGroup = cuesGroupedByStartTime[startTime];\n const finiteDuration = isFinite(videoDuration) ? videoDuration : startTime;\n const nextTime = Number(sortedStartTimes[idx + 1]) || finiteDuration; // Map each cue's endTime the next group's startTime\n\n cueGroup.forEach(cue => {\n cue.endTime = nextTime;\n });\n });\n}; // object for mapping daterange attributes\n\nconst dateRangeAttr = {\n id: 'ID',\n class: 'CLASS',\n startDate: 'START-DATE',\n duration: 'DURATION',\n endDate: 'END-DATE',\n endOnNext: 'END-ON-NEXT',\n plannedDuration: 'PLANNED-DURATION',\n scte35Out: 'SCTE35-OUT',\n scte35In: 'SCTE35-IN'\n};\nconst dateRangeKeysToOmit = new Set(['id', 'class', 'startDate', 'duration', 'endDate', 'endOnNext', 'startTime', 'endTime', 'processDateRange']);\n/**\n * Add DateRange metadata text track to a source handler given an array of metadata\n *\n * @param {Object}\n * @param {Object} inbandTextTracks the inband text tracks\n * @param {Array} dateRanges parsed media playlist\n * @private\n */\n\nconst addDateRangeMetadata = _ref48 => {\n let inbandTextTracks = _ref48.inbandTextTracks,\n dateRanges = _ref48.dateRanges;\n const metadataTrack = inbandTextTracks.metadataTrack_;\n if (!metadataTrack) {\n return;\n }\n const Cue = window$1.WebKitDataCue || window$1.VTTCue;\n dateRanges.forEach(dateRange => {\n // we generate multiple cues for each date range with different attributes\n for (const key of Object.keys(dateRange)) {\n if (dateRangeKeysToOmit.has(key)) {\n continue;\n }\n const cue = new Cue(dateRange.startTime, dateRange.endTime, '');\n cue.id = dateRange.id;\n cue.type = 'com.apple.quicktime.HLS';\n cue.value = {\n key: dateRangeAttr[key],\n data: dateRange[key]\n };\n if (key === 'scte35Out' || key === 'scte35In') {\n cue.value.data = new Uint8Array(cue.value.data.match(/[\\da-f]{2}/gi)).buffer;\n }\n metadataTrack.addCue(cue);\n }\n dateRange.processDateRange();\n });\n};\n/**\n * Create metadata text track on video.js if it does not exist\n *\n * @param {Object} inbandTextTracks a reference to current inbandTextTracks\n * @param {string} dispatchType the inband metadata track dispatch type\n * @param {Object} tech the video.js tech\n * @private\n */\n\nconst createMetadataTrackIfNotExists = (inbandTextTracks, dispatchType, tech) => {\n if (inbandTextTracks.metadataTrack_) {\n return;\n }\n inbandTextTracks.metadataTrack_ = tech.addRemoteTextTrack({\n kind: 'metadata',\n label: 'Timed Metadata'\n }, false).track;\n if (!videojs.browser.IS_ANY_SAFARI) {\n inbandTextTracks.metadataTrack_.inBandMetadataTrackDispatchType = dispatchType;\n }\n};\n/**\n * Remove cues from a track on video.js.\n *\n * @param {Double} start start of where we should remove the cue\n * @param {Double} end end of where the we should remove the cue\n * @param {Object} track the text track to remove the cues from\n * @private\n */\n\nconst removeCuesFromTrack = function (start, end, track) {\n let i;\n let cue;\n if (!track) {\n return;\n }\n if (!track.cues) {\n return;\n }\n i = track.cues.length;\n while (i--) {\n cue = track.cues[i]; // Remove any cue within the provided start and end time\n\n if (cue.startTime >= start && cue.endTime <= end) {\n track.removeCue(cue);\n }\n }\n};\n/**\n * Remove duplicate cues from a track on video.js (a cue is considered a\n * duplicate if it has the same time interval and text as another)\n *\n * @param {Object} track the text track to remove the duplicate cues from\n * @private\n */\n\nconst removeDuplicateCuesFromTrack = function (track) {\n const cues = track.cues;\n if (!cues) {\n return;\n }\n const uniqueCues = {};\n for (let i = cues.length - 1; i >= 0; i--) {\n const cue = cues[i];\n const cueKey = `${cue.startTime}-${cue.endTime}-${cue.text}`;\n if (uniqueCues[cueKey]) {\n track.removeCue(cue);\n } else {\n uniqueCues[cueKey] = cue;\n }\n }\n};\n\n/**\n * Returns a list of gops in the buffer that have a pts value of 3 seconds or more in\n * front of current time.\n *\n * @param {Array} buffer\n * The current buffer of gop information\n * @param {number} currentTime\n * The current time\n * @param {Double} mapping\n * Offset to map display time to stream presentation time\n * @return {Array}\n * List of gops considered safe to append over\n */\n\nconst gopsSafeToAlignWith = (buffer, currentTime, mapping) => {\n if (typeof currentTime === 'undefined' || currentTime === null || !buffer.length) {\n return [];\n } // pts value for current time + 3 seconds to give a bit more wiggle room\n\n const currentTimePts = Math.ceil((currentTime - mapping + 3) * ONE_SECOND_IN_TS);\n let i;\n for (i = 0; i < buffer.length; i++) {\n if (buffer[i].pts > currentTimePts) {\n break;\n }\n }\n return buffer.slice(i);\n};\n/**\n * Appends gop information (timing and byteLength) received by the transmuxer for the\n * gops appended in the last call to appendBuffer\n *\n * @param {Array} buffer\n * The current buffer of gop information\n * @param {Array} gops\n * List of new gop information\n * @param {boolean} replace\n * If true, replace the buffer with the new gop information. If false, append the\n * new gop information to the buffer in the right location of time.\n * @return {Array}\n * Updated list of gop information\n */\n\nconst updateGopBuffer = (buffer, gops, replace) => {\n if (!gops.length) {\n return buffer;\n }\n if (replace) {\n // If we are in safe append mode, then completely overwrite the gop buffer\n // with the most recent appeneded data. This will make sure that when appending\n // future segments, we only try to align with gops that are both ahead of current\n // time and in the last segment appended.\n return gops.slice();\n }\n const start = gops[0].pts;\n let i = 0;\n for (i; i < buffer.length; i++) {\n if (buffer[i].pts >= start) {\n break;\n }\n }\n return buffer.slice(0, i).concat(gops);\n};\n/**\n * Removes gop information in buffer that overlaps with provided start and end\n *\n * @param {Array} buffer\n * The current buffer of gop information\n * @param {Double} start\n * position to start the remove at\n * @param {Double} end\n * position to end the remove at\n * @param {Double} mapping\n * Offset to map display time to stream presentation time\n */\n\nconst removeGopBuffer = (buffer, start, end, mapping) => {\n const startPts = Math.ceil((start - mapping) * ONE_SECOND_IN_TS);\n const endPts = Math.ceil((end - mapping) * ONE_SECOND_IN_TS);\n const updatedBuffer = buffer.slice();\n let i = buffer.length;\n while (i--) {\n if (buffer[i].pts <= endPts) {\n break;\n }\n }\n if (i === -1) {\n // no removal because end of remove range is before start of buffer\n return updatedBuffer;\n }\n let j = i + 1;\n while (j--) {\n if (buffer[j].pts <= startPts) {\n break;\n }\n } // clamp remove range start to 0 index\n\n j = Math.max(j, 0);\n updatedBuffer.splice(j, i - j + 1);\n return updatedBuffer;\n};\nconst shallowEqual = function (a, b) {\n // if both are undefined\n // or one or the other is undefined\n // they are not equal\n if (!a && !b || !a && b || a && !b) {\n return false;\n } // they are the same object and thus, equal\n\n if (a === b) {\n return true;\n } // sort keys so we can make sure they have\n // all the same keys later.\n\n const akeys = Object.keys(a).sort();\n const bkeys = Object.keys(b).sort(); // different number of keys, not equal\n\n if (akeys.length !== bkeys.length) {\n return false;\n }\n for (let i = 0; i < akeys.length; i++) {\n const key = akeys[i]; // different sorted keys, not equal\n\n if (key !== bkeys[i]) {\n return false;\n } // different values, not equal\n\n if (a[key] !== b[key]) {\n return false;\n }\n }\n return true;\n};\n\n// https://www.w3.org/TR/WebIDL-1/#quotaexceedederror\nconst QUOTA_EXCEEDED_ERR = 22;\n\n/**\n * The segment loader has no recourse except to fetch a segment in the\n * current playlist and use the internal timestamps in that segment to\n * generate a syncPoint. This function returns a good candidate index\n * for that process.\n *\n * @param {Array} segments - the segments array from a playlist.\n * @return {number} An index of a segment from the playlist to load\n */\n\nconst getSyncSegmentCandidate = function (currentTimeline, segments, targetTime) {\n segments = segments || [];\n const timelineSegments = [];\n let time = 0;\n for (let i = 0; i < segments.length; i++) {\n const segment = segments[i];\n if (currentTimeline === segment.timeline) {\n timelineSegments.push(i);\n time += segment.duration;\n if (time > targetTime) {\n return i;\n }\n }\n }\n if (timelineSegments.length === 0) {\n return 0;\n } // default to the last timeline segment\n\n return timelineSegments[timelineSegments.length - 1];\n}; // In the event of a quota exceeded error, keep at least one second of back buffer. This\n// number was arbitrarily chosen and may be updated in the future, but seemed reasonable\n// as a start to prevent any potential issues with removing content too close to the\n// playhead.\n\nconst MIN_BACK_BUFFER = 1; // in ms\n\nconst CHECK_BUFFER_DELAY = 500;\nconst finite = num => typeof num === 'number' && isFinite(num); // With most content hovering around 30fps, if a segment has a duration less than a half\n// frame at 30fps or one frame at 60fps, the bandwidth and throughput calculations will\n// not accurately reflect the rest of the content.\n\nconst MIN_SEGMENT_DURATION_TO_SAVE_STATS = 1 / 60;\nconst illegalMediaSwitch = (loaderType, startingMedia, trackInfo) => {\n // Although these checks should most likely cover non 'main' types, for now it narrows\n // the scope of our checks.\n if (loaderType !== 'main' || !startingMedia || !trackInfo) {\n return null;\n }\n if (!trackInfo.hasAudio && !trackInfo.hasVideo) {\n return 'Neither audio nor video found in segment.';\n }\n if (startingMedia.hasVideo && !trackInfo.hasVideo) {\n return 'Only audio found in segment when we expected video.' + ' We can\\'t switch to audio only from a stream that had video.' + ' To get rid of this message, please add codec information to the manifest.';\n }\n if (!startingMedia.hasVideo && trackInfo.hasVideo) {\n return 'Video found in segment when we expected only audio.' + ' We can\\'t switch to a stream with video from an audio only stream.' + ' To get rid of this message, please add codec information to the manifest.';\n }\n return null;\n};\n/**\n * Calculates a time value that is safe to remove from the back buffer without interrupting\n * playback.\n *\n * @param {TimeRange} seekable\n * The current seekable range\n * @param {number} currentTime\n * The current time of the player\n * @param {number} targetDuration\n * The target duration of the current playlist\n * @return {number}\n * Time that is safe to remove from the back buffer without interrupting playback\n */\n\nconst safeBackBufferTrimTime = (seekable, currentTime, targetDuration) => {\n // 30 seconds before the playhead provides a safe default for trimming.\n //\n // Choosing a reasonable default is particularly important for high bitrate content and\n // VOD videos/live streams with large windows, as the buffer may end up overfilled and\n // throw an APPEND_BUFFER_ERR.\n let trimTime = currentTime - Config.BACK_BUFFER_LENGTH;\n if (seekable.length) {\n // Some live playlists may have a shorter window of content than the full allowed back\n // buffer. For these playlists, don't save content that's no longer within the window.\n trimTime = Math.max(trimTime, seekable.start(0));\n } // Don't remove within target duration of the current time to avoid the possibility of\n // removing the GOP currently being played, as removing it can cause playback stalls.\n\n const maxTrimTime = currentTime - targetDuration;\n return Math.min(maxTrimTime, trimTime);\n};\nconst segmentInfoString = segmentInfo => {\n const startOfSegment = segmentInfo.startOfSegment,\n duration = segmentInfo.duration,\n segment = segmentInfo.segment,\n part = segmentInfo.part,\n _segmentInfo$playlist = segmentInfo.playlist,\n seq = _segmentInfo$playlist.mediaSequence,\n id = _segmentInfo$playlist.id,\n _segmentInfo$playlist2 = _segmentInfo$playlist.segments,\n segments = _segmentInfo$playlist2 === void 0 ? [] : _segmentInfo$playlist2,\n index = segmentInfo.mediaIndex,\n partIndex = segmentInfo.partIndex,\n timeline = segmentInfo.timeline;\n const segmentLen = segments.length - 1;\n let selection = 'mediaIndex/partIndex increment';\n if (segmentInfo.getMediaInfoForTime) {\n selection = `getMediaInfoForTime (${segmentInfo.getMediaInfoForTime})`;\n } else if (segmentInfo.isSyncRequest) {\n selection = 'getSyncSegmentCandidate (isSyncRequest)';\n }\n if (segmentInfo.independent) {\n selection += ` with independent ${segmentInfo.independent}`;\n }\n const hasPartIndex = typeof partIndex === 'number';\n const name = segmentInfo.segment.uri ? 'segment' : 'pre-segment';\n const zeroBasedPartCount = hasPartIndex ? getKnownPartCount({\n preloadSegment: segment\n }) - 1 : 0;\n return `${name} [${seq + index}/${seq + segmentLen}]` + (hasPartIndex ? ` part [${partIndex}/${zeroBasedPartCount}]` : '') + ` segment start/end [${segment.start} => ${segment.end}]` + (hasPartIndex ? ` part start/end [${part.start} => ${part.end}]` : '') + ` startOfSegment [${startOfSegment}]` + ` duration [${duration}]` + ` timeline [${timeline}]` + ` selected by [${selection}]` + ` playlist [${id}]`;\n};\nconst timingInfoPropertyForMedia = mediaType => `${mediaType}TimingInfo`;\n/**\n * Returns the timestamp offset to use for the segment.\n *\n * @param {number} segmentTimeline\n * The timeline of the segment\n * @param {number} currentTimeline\n * The timeline currently being followed by the loader\n * @param {number} startOfSegment\n * The estimated segment start\n * @param {TimeRange[]} buffered\n * The loader's buffer\n * @param {boolean} overrideCheck\n * If true, no checks are made to see if the timestamp offset value should be set,\n * but sets it directly to a value.\n *\n * @return {number|null}\n * Either a number representing a new timestamp offset, or null if the segment is\n * part of the same timeline\n */\n\nconst timestampOffsetForSegment = _ref49 => {\n let segmentTimeline = _ref49.segmentTimeline,\n currentTimeline = _ref49.currentTimeline,\n startOfSegment = _ref49.startOfSegment,\n buffered = _ref49.buffered,\n overrideCheck = _ref49.overrideCheck;\n // Check to see if we are crossing a discontinuity to see if we need to set the\n // timestamp offset on the transmuxer and source buffer.\n //\n // Previously, we changed the timestampOffset if the start of this segment was less than\n // the currently set timestampOffset, but this isn't desirable as it can produce bad\n // behavior, especially around long running live streams.\n if (!overrideCheck && segmentTimeline === currentTimeline) {\n return null;\n } // When changing renditions, it's possible to request a segment on an older timeline. For\n // instance, given two renditions with the following:\n //\n // #EXTINF:10\n // segment1\n // #EXT-X-DISCONTINUITY\n // #EXTINF:10\n // segment2\n // #EXTINF:10\n // segment3\n //\n // And the current player state:\n //\n // current time: 8\n // buffer: 0 => 20\n //\n // The next segment on the current rendition would be segment3, filling the buffer from\n // 20s onwards. However, if a rendition switch happens after segment2 was requested,\n // then the next segment to be requested will be segment1 from the new rendition in\n // order to fill time 8 and onwards. Using the buffered end would result in repeated\n // content (since it would position segment1 of the new rendition starting at 20s). This\n // case can be identified when the new segment's timeline is a prior value. Instead of\n // using the buffered end, the startOfSegment can be used, which, hopefully, will be\n // more accurate to the actual start time of the segment.\n\n if (segmentTimeline < currentTimeline) {\n return startOfSegment;\n } // segmentInfo.startOfSegment used to be used as the timestamp offset, however, that\n // value uses the end of the last segment if it is available. While this value\n // should often be correct, it's better to rely on the buffered end, as the new\n // content post discontinuity should line up with the buffered end as if it were\n // time 0 for the new content.\n\n return buffered.length ? buffered.end(buffered.length - 1) : startOfSegment;\n};\n/**\n * Returns whether or not the loader should wait for a timeline change from the timeline\n * change controller before processing the segment.\n *\n * Primary timing in VHS goes by video. This is different from most media players, as\n * audio is more often used as the primary timing source. For the foreseeable future, VHS\n * will continue to use video as the primary timing source, due to the current logic and\n * expectations built around it.\n\n * Since the timing follows video, in order to maintain sync, the video loader is\n * responsible for setting both audio and video source buffer timestamp offsets.\n *\n * Setting different values for audio and video source buffers could lead to\n * desyncing. The following examples demonstrate some of the situations where this\n * distinction is important. Note that all of these cases involve demuxed content. When\n * content is muxed, the audio and video are packaged together, therefore syncing\n * separate media playlists is not an issue.\n *\n * CASE 1: Audio prepares to load a new timeline before video:\n *\n * Timeline: 0 1\n * Audio Segments: 0 1 2 3 4 5 DISCO 6 7 8 9\n * Audio Loader: ^\n * Video Segments: 0 1 2 3 4 5 DISCO 6 7 8 9\n * Video Loader ^\n *\n * In the above example, the audio loader is preparing to load the 6th segment, the first\n * after a discontinuity, while the video loader is still loading the 5th segment, before\n * the discontinuity.\n *\n * If the audio loader goes ahead and loads and appends the 6th segment before the video\n * loader crosses the discontinuity, then when appended, the 6th audio segment will use\n * the timestamp offset from timeline 0. This will likely lead to desyncing. In addition,\n * the audio loader must provide the audioAppendStart value to trim the content in the\n * transmuxer, and that value relies on the audio timestamp offset. Since the audio\n * timestamp offset is set by the video (main) loader, the audio loader shouldn't load the\n * segment until that value is provided.\n *\n * CASE 2: Video prepares to load a new timeline before audio:\n *\n * Timeline: 0 1\n * Audio Segments: 0 1 2 3 4 5 DISCO 6 7 8 9\n * Audio Loader: ^\n * Video Segments: 0 1 2 3 4 5 DISCO 6 7 8 9\n * Video Loader ^\n *\n * In the above example, the video loader is preparing to load the 6th segment, the first\n * after a discontinuity, while the audio loader is still loading the 5th segment, before\n * the discontinuity.\n *\n * If the video loader goes ahead and loads and appends the 6th segment, then once the\n * segment is loaded and processed, both the video and audio timestamp offsets will be\n * set, since video is used as the primary timing source. This is to ensure content lines\n * up appropriately, as any modifications to the video timing are reflected by audio when\n * the video loader sets the audio and video timestamp offsets to the same value. However,\n * setting the timestamp offset for audio before audio has had a chance to change\n * timelines will likely lead to desyncing, as the audio loader will append segment 5 with\n * a timestamp intended to apply to segments from timeline 1 rather than timeline 0.\n *\n * CASE 3: When seeking, audio prepares to load a new timeline before video\n *\n * Timeline: 0 1\n * Audio Segments: 0 1 2 3 4 5 DISCO 6 7 8 9\n * Audio Loader: ^\n * Video Segments: 0 1 2 3 4 5 DISCO 6 7 8 9\n * Video Loader ^\n *\n * In the above example, both audio and video loaders are loading segments from timeline\n * 0, but imagine that the seek originated from timeline 1.\n *\n * When seeking to a new timeline, the timestamp offset will be set based on the expected\n * segment start of the loaded video segment. In order to maintain sync, the audio loader\n * must wait for the video loader to load its segment and update both the audio and video\n * timestamp offsets before it may load and append its own segment. This is the case\n * whether the seek results in a mismatched segment request (e.g., the audio loader\n * chooses to load segment 3 and the video loader chooses to load segment 4) or the\n * loaders choose to load the same segment index from each playlist, as the segments may\n * not be aligned perfectly, even for matching segment indexes.\n *\n * @param {Object} timelinechangeController\n * @param {number} currentTimeline\n * The timeline currently being followed by the loader\n * @param {number} segmentTimeline\n * The timeline of the segment being loaded\n * @param {('main'|'audio')} loaderType\n * The loader type\n * @param {boolean} audioDisabled\n * Whether the audio is disabled for the loader. This should only be true when the\n * loader may have muxed audio in its segment, but should not append it, e.g., for\n * the main loader when an alternate audio playlist is active.\n *\n * @return {boolean}\n * Whether the loader should wait for a timeline change from the timeline change\n * controller before processing the segment\n */\n\nconst shouldWaitForTimelineChange = _ref50 => {\n let timelineChangeController = _ref50.timelineChangeController,\n currentTimeline = _ref50.currentTimeline,\n segmentTimeline = _ref50.segmentTimeline,\n loaderType = _ref50.loaderType,\n audioDisabled = _ref50.audioDisabled;\n if (currentTimeline === segmentTimeline) {\n return false;\n }\n if (loaderType === 'audio') {\n const lastMainTimelineChange = timelineChangeController.lastTimelineChange({\n type: 'main'\n }); // Audio loader should wait if:\n //\n // * main hasn't had a timeline change yet (thus has not loaded its first segment)\n // * main hasn't yet changed to the timeline audio is looking to load\n\n return !lastMainTimelineChange || lastMainTimelineChange.to !== segmentTimeline;\n } // The main loader only needs to wait for timeline changes if there's demuxed audio.\n // Otherwise, there's nothing to wait for, since audio would be muxed into the main\n // loader's segments (or the content is audio/video only and handled by the main\n // loader).\n\n if (loaderType === 'main' && audioDisabled) {\n const pendingAudioTimelineChange = timelineChangeController.pendingTimelineChange({\n type: 'audio'\n }); // Main loader should wait for the audio loader if audio is not pending a timeline\n // change to the current timeline.\n //\n // Since the main loader is responsible for setting the timestamp offset for both\n // audio and video, the main loader must wait for audio to be about to change to its\n // timeline before setting the offset, otherwise, if audio is behind in loading,\n // segments from the previous timeline would be adjusted by the new timestamp offset.\n //\n // This requirement means that video will not cross a timeline until the audio is\n // about to cross to it, so that way audio and video will always cross the timeline\n // together.\n //\n // In addition to normal timeline changes, these rules also apply to the start of a\n // stream (going from a non-existent timeline, -1, to timeline 0). It's important\n // that these rules apply to the first timeline change because if they did not, it's\n // possible that the main loader will cross two timelines before the audio loader has\n // crossed one. Logic may be implemented to handle the startup as a special case, but\n // it's easier to simply treat all timeline changes the same.\n\n if (pendingAudioTimelineChange && pendingAudioTimelineChange.to === segmentTimeline) {\n return false;\n }\n return true;\n }\n return false;\n};\nconst mediaDuration = timingInfos => {\n let maxDuration = 0;\n ['video', 'audio'].forEach(function (type) {\n const typeTimingInfo = timingInfos[`${type}TimingInfo`];\n if (!typeTimingInfo) {\n return;\n }\n const start = typeTimingInfo.start,\n end = typeTimingInfo.end;\n let duration;\n if (typeof start === 'bigint' || typeof end === 'bigint') {\n duration = window$1.BigInt(end) - window$1.BigInt(start);\n } else if (typeof start === 'number' && typeof end === 'number') {\n duration = end - start;\n }\n if (typeof duration !== 'undefined' && duration > maxDuration) {\n maxDuration = duration;\n }\n }); // convert back to a number if it is lower than MAX_SAFE_INTEGER\n // as we only need BigInt when we are above that.\n\n if (typeof maxDuration === 'bigint' && maxDuration < Number.MAX_SAFE_INTEGER) {\n maxDuration = Number(maxDuration);\n }\n return maxDuration;\n};\nconst segmentTooLong = _ref51 => {\n let segmentDuration = _ref51.segmentDuration,\n maxDuration = _ref51.maxDuration;\n // 0 duration segments are most likely due to metadata only segments or a lack of\n // information.\n if (!segmentDuration) {\n return false;\n } // For HLS:\n //\n // https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1\n // The EXTINF duration of each Media Segment in the Playlist\n // file, when rounded to the nearest integer, MUST be less than or equal\n // to the target duration; longer segments can trigger playback stalls\n // or other errors.\n //\n // For DASH, the mpd-parser uses the largest reported segment duration as the target\n // duration. Although that reported duration is occasionally approximate (i.e., not\n // exact), a strict check may report that a segment is too long more often in DASH.\n\n return Math.round(segmentDuration) > maxDuration + TIME_FUDGE_FACTOR;\n};\nconst getTroublesomeSegmentDurationMessage = (segmentInfo, sourceType) => {\n // Right now we aren't following DASH's timing model exactly, so only perform\n // this check for HLS content.\n if (sourceType !== 'hls') {\n return null;\n }\n const segmentDuration = mediaDuration({\n audioTimingInfo: segmentInfo.audioTimingInfo,\n videoTimingInfo: segmentInfo.videoTimingInfo\n }); // Don't report if we lack information.\n //\n // If the segment has a duration of 0 it is either a lack of information or a\n // metadata only segment and shouldn't be reported here.\n\n if (!segmentDuration) {\n return null;\n }\n const targetDuration = segmentInfo.playlist.targetDuration;\n const isSegmentWayTooLong = segmentTooLong({\n segmentDuration,\n maxDuration: targetDuration * 2\n });\n const isSegmentSlightlyTooLong = segmentTooLong({\n segmentDuration,\n maxDuration: targetDuration\n });\n const segmentTooLongMessage = `Segment with index ${segmentInfo.mediaIndex} ` + `from playlist ${segmentInfo.playlist.id} ` + `has a duration of ${segmentDuration} ` + `when the reported duration is ${segmentInfo.duration} ` + `and the target duration is ${targetDuration}. ` + 'For HLS content, a duration in excess of the target duration may result in ' + 'playback issues. See the HLS specification section on EXT-X-TARGETDURATION for ' + 'more details: ' + 'https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1';\n if (isSegmentWayTooLong || isSegmentSlightlyTooLong) {\n return {\n severity: isSegmentWayTooLong ? 'warn' : 'info',\n message: segmentTooLongMessage\n };\n }\n return null;\n};\n/**\n * An object that manages segment loading and appending.\n *\n * @class SegmentLoader\n * @param {Object} options required and optional options\n * @extends videojs.EventTarget\n */\n\nclass SegmentLoader extends videojs.EventTarget {\n constructor(settings) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n super(); // check pre-conditions\n\n if (!settings) {\n throw new TypeError('Initialization settings are required');\n }\n if (typeof settings.currentTime !== 'function') {\n throw new TypeError('No currentTime getter specified');\n }\n if (!settings.mediaSource) {\n throw new TypeError('No MediaSource specified');\n } // public properties\n\n this.bandwidth = settings.bandwidth;\n this.throughput = {\n rate: 0,\n count: 0\n };\n this.roundTrip = NaN;\n this.resetStats_();\n this.mediaIndex = null;\n this.partIndex = null; // private settings\n\n this.hasPlayed_ = settings.hasPlayed;\n this.currentTime_ = settings.currentTime;\n this.seekable_ = settings.seekable;\n this.seeking_ = settings.seeking;\n this.duration_ = settings.duration;\n this.mediaSource_ = settings.mediaSource;\n this.vhs_ = settings.vhs;\n this.loaderType_ = settings.loaderType;\n this.currentMediaInfo_ = void 0;\n this.startingMediaInfo_ = void 0;\n this.segmentMetadataTrack_ = settings.segmentMetadataTrack;\n this.goalBufferLength_ = settings.goalBufferLength;\n this.sourceType_ = settings.sourceType;\n this.sourceUpdater_ = settings.sourceUpdater;\n this.inbandTextTracks_ = settings.inbandTextTracks;\n this.state_ = 'INIT';\n this.timelineChangeController_ = settings.timelineChangeController;\n this.shouldSaveSegmentTimingInfo_ = true;\n this.parse708captions_ = settings.parse708captions;\n this.useDtsForTimestampOffset_ = settings.useDtsForTimestampOffset;\n this.captionServices_ = settings.captionServices;\n this.exactManifestTimings = settings.exactManifestTimings;\n this.addMetadataToTextTrack = settings.addMetadataToTextTrack; // private instance variables\n\n this.checkBufferTimeout_ = null;\n this.error_ = void 0;\n this.currentTimeline_ = -1;\n this.shouldForceTimestampOffsetAfterResync_ = false;\n this.pendingSegment_ = null;\n this.xhrOptions_ = null;\n this.pendingSegments_ = [];\n this.audioDisabled_ = false;\n this.isPendingTimestampOffset_ = false; // TODO possibly move gopBuffer and timeMapping info to a separate controller\n\n this.gopBuffer_ = [];\n this.timeMapping_ = 0;\n this.safeAppend_ = false;\n this.appendInitSegment_ = {\n audio: true,\n video: true\n };\n this.playlistOfLastInitSegment_ = {\n audio: null,\n video: null\n };\n this.callQueue_ = []; // If the segment loader prepares to load a segment, but does not have enough\n // information yet to start the loading process (e.g., if the audio loader wants to\n // load a segment from the next timeline but the main loader hasn't yet crossed that\n // timeline), then the load call will be added to the queue until it is ready to be\n // processed.\n\n this.loadQueue_ = [];\n this.metadataQueue_ = {\n id3: [],\n caption: []\n };\n this.waitingOnRemove_ = false;\n this.quotaExceededErrorRetryTimeout_ = null; // Fragmented mp4 playback\n\n this.activeInitSegmentId_ = null;\n this.initSegments_ = {}; // HLSe playback\n\n this.cacheEncryptionKeys_ = settings.cacheEncryptionKeys;\n this.keyCache_ = {};\n this.decrypter_ = settings.decrypter; // Manages the tracking and generation of sync-points, mappings\n // between a time in the display time and a segment index within\n // a playlist\n\n this.syncController_ = settings.syncController;\n this.syncPoint_ = {\n segmentIndex: 0,\n time: 0\n };\n this.transmuxer_ = this.createTransmuxer_();\n this.triggerSyncInfoUpdate_ = () => this.trigger('syncinfoupdate');\n this.syncController_.on('syncinfoupdate', this.triggerSyncInfoUpdate_);\n this.mediaSource_.addEventListener('sourceopen', () => {\n if (!this.isEndOfStream_()) {\n this.ended_ = false;\n }\n }); // ...for determining the fetch location\n\n this.fetchAtBuffer_ = false;\n this.logger_ = logger(`SegmentLoader[${this.loaderType_}]`);\n Object.defineProperty(this, 'state', {\n get() {\n return this.state_;\n },\n set(newState) {\n if (newState !== this.state_) {\n this.logger_(`${this.state_} -> ${newState}`);\n this.state_ = newState;\n this.trigger('statechange');\n }\n }\n });\n this.sourceUpdater_.on('ready', () => {\n if (this.hasEnoughInfoToAppend_()) {\n this.processCallQueue_();\n }\n }); // Only the main loader needs to listen for pending timeline changes, as the main\n // loader should wait for audio to be ready to change its timeline so that both main\n // and audio timelines change together. For more details, see the\n // shouldWaitForTimelineChange function.\n\n if (this.loaderType_ === 'main') {\n this.timelineChangeController_.on('pendingtimelinechange', () => {\n if (this.hasEnoughInfoToAppend_()) {\n this.processCallQueue_();\n }\n });\n } // The main loader only listens on pending timeline changes, but the audio loader,\n // since its loads follow main, needs to listen on timeline changes. For more details,\n // see the shouldWaitForTimelineChange function.\n\n if (this.loaderType_ === 'audio') {\n this.timelineChangeController_.on('timelinechange', () => {\n if (this.hasEnoughInfoToLoad_()) {\n this.processLoadQueue_();\n }\n if (this.hasEnoughInfoToAppend_()) {\n this.processCallQueue_();\n }\n });\n }\n }\n createTransmuxer_() {\n return segmentTransmuxer.createTransmuxer({\n remux: false,\n alignGopsAtEnd: this.safeAppend_,\n keepOriginalTimestamps: true,\n parse708captions: this.parse708captions_,\n captionServices: this.captionServices_\n });\n }\n /**\n * reset all of our media stats\n *\n * @private\n */\n\n resetStats_() {\n this.mediaBytesTransferred = 0;\n this.mediaRequests = 0;\n this.mediaRequestsAborted = 0;\n this.mediaRequestsTimedout = 0;\n this.mediaRequestsErrored = 0;\n this.mediaTransferDuration = 0;\n this.mediaSecondsLoaded = 0;\n this.mediaAppends = 0;\n }\n /**\n * dispose of the SegmentLoader and reset to the default state\n */\n\n dispose() {\n this.trigger('dispose');\n this.state = 'DISPOSED';\n this.pause();\n this.abort_();\n if (this.transmuxer_) {\n this.transmuxer_.terminate();\n }\n this.resetStats_();\n if (this.checkBufferTimeout_) {\n window$1.clearTimeout(this.checkBufferTimeout_);\n }\n if (this.syncController_ && this.triggerSyncInfoUpdate_) {\n this.syncController_.off('syncinfoupdate', this.triggerSyncInfoUpdate_);\n }\n this.off();\n }\n setAudio(enable) {\n this.audioDisabled_ = !enable;\n if (enable) {\n this.appendInitSegment_.audio = true;\n } else {\n // remove current track audio if it gets disabled\n this.sourceUpdater_.removeAudio(0, this.duration_());\n }\n }\n /**\n * abort anything that is currently doing on with the SegmentLoader\n * and reset to a default state\n */\n\n abort() {\n if (this.state !== 'WAITING') {\n if (this.pendingSegment_) {\n this.pendingSegment_ = null;\n }\n return;\n }\n this.abort_(); // We aborted the requests we were waiting on, so reset the loader's state to READY\n // since we are no longer \"waiting\" on any requests. XHR callback is not always run\n // when the request is aborted. This will prevent the loader from being stuck in the\n // WAITING state indefinitely.\n\n this.state = 'READY'; // don't wait for buffer check timeouts to begin fetching the\n // next segment\n\n if (!this.paused()) {\n this.monitorBuffer_();\n }\n }\n /**\n * abort all pending xhr requests and null any pending segements\n *\n * @private\n */\n\n abort_() {\n if (this.pendingSegment_ && this.pendingSegment_.abortRequests) {\n this.pendingSegment_.abortRequests();\n } // clear out the segment being processed\n\n this.pendingSegment_ = null;\n this.callQueue_ = [];\n this.loadQueue_ = [];\n this.metadataQueue_.id3 = [];\n this.metadataQueue_.caption = [];\n this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);\n this.waitingOnRemove_ = false;\n window$1.clearTimeout(this.quotaExceededErrorRetryTimeout_);\n this.quotaExceededErrorRetryTimeout_ = null;\n }\n checkForAbort_(requestId) {\n // If the state is APPENDING, then aborts will not modify the state, meaning the first\n // callback that happens should reset the state to READY so that loading can continue.\n if (this.state === 'APPENDING' && !this.pendingSegment_) {\n this.state = 'READY';\n return true;\n }\n if (!this.pendingSegment_ || this.pendingSegment_.requestId !== requestId) {\n return true;\n }\n return false;\n }\n /**\n * set an error on the segment loader and null out any pending segements\n *\n * @param {Error} error the error to set on the SegmentLoader\n * @return {Error} the error that was set or that is currently set\n */\n\n error(error) {\n if (typeof error !== 'undefined') {\n this.logger_('error occurred:', error);\n this.error_ = error;\n }\n this.pendingSegment_ = null;\n return this.error_;\n }\n endOfStream() {\n this.ended_ = true;\n if (this.transmuxer_) {\n // need to clear out any cached data to prepare for the new segment\n segmentTransmuxer.reset(this.transmuxer_);\n }\n this.gopBuffer_.length = 0;\n this.pause();\n this.trigger('ended');\n }\n /**\n * Indicates which time ranges are buffered\n *\n * @return {TimeRange}\n * TimeRange object representing the current buffered ranges\n */\n\n buffered_() {\n const trackInfo = this.getMediaInfo_();\n if (!this.sourceUpdater_ || !trackInfo) {\n return createTimeRanges();\n }\n if (this.loaderType_ === 'main') {\n const hasAudio = trackInfo.hasAudio,\n hasVideo = trackInfo.hasVideo,\n isMuxed = trackInfo.isMuxed;\n if (hasVideo && hasAudio && !this.audioDisabled_ && !isMuxed) {\n return this.sourceUpdater_.buffered();\n }\n if (hasVideo) {\n return this.sourceUpdater_.videoBuffered();\n }\n } // One case that can be ignored for now is audio only with alt audio,\n // as we don't yet have proper support for that.\n\n return this.sourceUpdater_.audioBuffered();\n }\n /**\n * Gets and sets init segment for the provided map\n *\n * @param {Object} map\n * The map object representing the init segment to get or set\n * @param {boolean=} set\n * If true, the init segment for the provided map should be saved\n * @return {Object}\n * map object for desired init segment\n */\n\n initSegmentForMap(map) {\n let set = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (!map) {\n return null;\n }\n const id = initSegmentId(map);\n let storedMap = this.initSegments_[id];\n if (set && !storedMap && map.bytes) {\n this.initSegments_[id] = storedMap = {\n resolvedUri: map.resolvedUri,\n byterange: map.byterange,\n bytes: map.bytes,\n tracks: map.tracks,\n timescales: map.timescales\n };\n }\n return storedMap || map;\n }\n /**\n * Gets and sets key for the provided key\n *\n * @param {Object} key\n * The key object representing the key to get or set\n * @param {boolean=} set\n * If true, the key for the provided key should be saved\n * @return {Object}\n * Key object for desired key\n */\n\n segmentKey(key) {\n let set = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (!key) {\n return null;\n }\n const id = segmentKeyId(key);\n let storedKey = this.keyCache_[id]; // TODO: We should use the HTTP Expires header to invalidate our cache per\n // https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-6.2.3\n\n if (this.cacheEncryptionKeys_ && set && !storedKey && key.bytes) {\n this.keyCache_[id] = storedKey = {\n resolvedUri: key.resolvedUri,\n bytes: key.bytes\n };\n }\n const result = {\n resolvedUri: (storedKey || key).resolvedUri\n };\n if (storedKey) {\n result.bytes = storedKey.bytes;\n }\n return result;\n }\n /**\n * Returns true if all configuration required for loading is present, otherwise false.\n *\n * @return {boolean} True if the all configuration is ready for loading\n * @private\n */\n\n couldBeginLoading_() {\n return this.playlist_ && !this.paused();\n }\n /**\n * load a playlist and start to fill the buffer\n */\n\n load() {\n // un-pause\n this.monitorBuffer_(); // if we don't have a playlist yet, keep waiting for one to be\n // specified\n\n if (!this.playlist_) {\n return;\n } // if all the configuration is ready, initialize and begin loading\n\n if (this.state === 'INIT' && this.couldBeginLoading_()) {\n return this.init_();\n } // if we're in the middle of processing a segment already, don't\n // kick off an additional segment request\n\n if (!this.couldBeginLoading_() || this.state !== 'READY' && this.state !== 'INIT') {\n return;\n }\n this.state = 'READY';\n }\n /**\n * Once all the starting parameters have been specified, begin\n * operation. This method should only be invoked from the INIT\n * state.\n *\n * @private\n */\n\n init_() {\n this.state = 'READY'; // if this is the audio segment loader, and it hasn't been inited before, then any old\n // audio data from the muxed content should be removed\n\n this.resetEverything();\n return this.monitorBuffer_();\n }\n /**\n * set a playlist on the segment loader\n *\n * @param {PlaylistLoader} media the playlist to set on the segment loader\n */\n\n playlist(newPlaylist) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!newPlaylist) {\n return;\n }\n const oldPlaylist = this.playlist_;\n const segmentInfo = this.pendingSegment_;\n this.playlist_ = newPlaylist;\n this.xhrOptions_ = options; // when we haven't started playing yet, the start of a live playlist\n // is always our zero-time so force a sync update each time the playlist\n // is refreshed from the server\n //\n // Use the INIT state to determine if playback has started, as the playlist sync info\n // should be fixed once requests begin (as sync points are generated based on sync\n // info), but not before then.\n\n if (this.state === 'INIT') {\n newPlaylist.syncInfo = {\n mediaSequence: newPlaylist.mediaSequence,\n time: 0\n }; // Setting the date time mapping means mapping the program date time (if available)\n // to time 0 on the player's timeline. The playlist's syncInfo serves a similar\n // purpose, mapping the initial mediaSequence to time zero. Since the syncInfo can\n // be updated as the playlist is refreshed before the loader starts loading, the\n // program date time mapping needs to be updated as well.\n //\n // This mapping is only done for the main loader because a program date time should\n // map equivalently between playlists.\n\n if (this.loaderType_ === 'main') {\n this.syncController_.setDateTimeMappingForStart(newPlaylist);\n }\n }\n let oldId = null;\n if (oldPlaylist) {\n if (oldPlaylist.id) {\n oldId = oldPlaylist.id;\n } else if (oldPlaylist.uri) {\n oldId = oldPlaylist.uri;\n }\n }\n this.logger_(`playlist update [${oldId} => ${newPlaylist.id || newPlaylist.uri}]`);\n this.syncController_.updateMediaSequenceMap(newPlaylist, this.currentTime_(), this.loaderType_); // in VOD, this is always a rendition switch (or we updated our syncInfo above)\n // in LIVE, we always want to update with new playlists (including refreshes)\n\n this.trigger('syncinfoupdate'); // if we were unpaused but waiting for a playlist, start\n // buffering now\n\n if (this.state === 'INIT' && this.couldBeginLoading_()) {\n return this.init_();\n }\n if (!oldPlaylist || oldPlaylist.uri !== newPlaylist.uri) {\n if (this.mediaIndex !== null) {\n // we must reset/resync the segment loader when we switch renditions and\n // the segment loader is already synced to the previous rendition\n // We only want to reset the loader here for LLHLS playback, as resetLoader sets fetchAtBuffer_\n // to false, resulting in fetching segments at currentTime and causing repeated\n // same-segment requests on playlist change. This erroneously drives up the playback watcher\n // stalled segment count, as re-requesting segments at the currentTime or browser cached segments\n // will not change the buffer.\n // Reference for LLHLS fixes: https://github.com/videojs/http-streaming/pull/1201\n const isLLHLS = !newPlaylist.endList && typeof newPlaylist.partTargetDuration === 'number';\n if (isLLHLS) {\n this.resetLoader();\n } else {\n this.resyncLoader();\n }\n }\n this.currentMediaInfo_ = void 0;\n this.trigger('playlistupdate'); // the rest of this function depends on `oldPlaylist` being defined\n\n return;\n } // we reloaded the same playlist so we are in a live scenario\n // and we will likely need to adjust the mediaIndex\n\n const mediaSequenceDiff = newPlaylist.mediaSequence - oldPlaylist.mediaSequence;\n this.logger_(`live window shift [${mediaSequenceDiff}]`); // update the mediaIndex on the SegmentLoader\n // this is important because we can abort a request and this value must be\n // equal to the last appended mediaIndex\n\n if (this.mediaIndex !== null) {\n this.mediaIndex -= mediaSequenceDiff; // this can happen if we are going to load the first segment, but get a playlist\n // update during that. mediaIndex would go from 0 to -1 if mediaSequence in the\n // new playlist was incremented by 1.\n\n if (this.mediaIndex < 0) {\n this.mediaIndex = null;\n this.partIndex = null;\n } else {\n const segment = this.playlist_.segments[this.mediaIndex]; // partIndex should remain the same for the same segment\n // unless parts fell off of the playlist for this segment.\n // In that case we need to reset partIndex and resync\n\n if (this.partIndex && (!segment.parts || !segment.parts.length || !segment.parts[this.partIndex])) {\n const mediaIndex = this.mediaIndex;\n this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`);\n this.resetLoader(); // We want to throw away the partIndex and the data associated with it,\n // as the part was dropped from our current playlists segment.\n // The mediaIndex will still be valid so keep that around.\n\n this.mediaIndex = mediaIndex;\n }\n }\n } // update the mediaIndex on the SegmentInfo object\n // this is important because we will update this.mediaIndex with this value\n // in `handleAppendsDone_` after the segment has been successfully appended\n\n if (segmentInfo) {\n segmentInfo.mediaIndex -= mediaSequenceDiff;\n if (segmentInfo.mediaIndex < 0) {\n segmentInfo.mediaIndex = null;\n segmentInfo.partIndex = null;\n } else {\n // we need to update the referenced segment so that timing information is\n // saved for the new playlist's segment, however, if the segment fell off the\n // playlist, we can leave the old reference and just lose the timing info\n if (segmentInfo.mediaIndex >= 0) {\n segmentInfo.segment = newPlaylist.segments[segmentInfo.mediaIndex];\n }\n if (segmentInfo.partIndex >= 0 && segmentInfo.segment.parts) {\n segmentInfo.part = segmentInfo.segment.parts[segmentInfo.partIndex];\n }\n }\n }\n this.syncController_.saveExpiredSegmentInfo(oldPlaylist, newPlaylist);\n }\n /**\n * Prevent the loader from fetching additional segments. If there\n * is a segment request outstanding, it will finish processing\n * before the loader halts. A segment loader can be unpaused by\n * calling load().\n */\n\n pause() {\n if (this.checkBufferTimeout_) {\n window$1.clearTimeout(this.checkBufferTimeout_);\n this.checkBufferTimeout_ = null;\n }\n }\n /**\n * Returns whether the segment loader is fetching additional\n * segments when given the opportunity. This property can be\n * modified through calls to pause() and load().\n */\n\n paused() {\n return this.checkBufferTimeout_ === null;\n }\n /**\n * Delete all the buffered data and reset the SegmentLoader\n *\n * @param {Function} [done] an optional callback to be executed when the remove\n * operation is complete\n */\n\n resetEverything(done) {\n this.ended_ = false;\n this.activeInitSegmentId_ = null;\n this.appendInitSegment_ = {\n audio: true,\n video: true\n };\n this.resetLoader(); // remove from 0, the earliest point, to Infinity, to signify removal of everything.\n // VTT Segment Loader doesn't need to do anything but in the regular SegmentLoader,\n // we then clamp the value to duration if necessary.\n\n this.remove(0, Infinity, done); // clears fmp4 captions\n\n if (this.transmuxer_) {\n this.transmuxer_.postMessage({\n action: 'clearAllMp4Captions'\n }); // reset the cache in the transmuxer\n\n this.transmuxer_.postMessage({\n action: 'reset'\n });\n }\n }\n /**\n * Force the SegmentLoader to resync and start loading around the currentTime instead\n * of starting at the end of the buffer\n *\n * Useful for fast quality changes\n */\n\n resetLoader() {\n this.fetchAtBuffer_ = false;\n this.resyncLoader();\n }\n /**\n * Force the SegmentLoader to restart synchronization and make a conservative guess\n * before returning to the simple walk-forward method\n */\n\n resyncLoader() {\n if (this.transmuxer_) {\n // need to clear out any cached data to prepare for the new segment\n segmentTransmuxer.reset(this.transmuxer_);\n }\n this.mediaIndex = null;\n this.partIndex = null;\n this.syncPoint_ = null;\n this.isPendingTimestampOffset_ = false;\n this.shouldForceTimestampOffsetAfterResync_ = true;\n this.callQueue_ = [];\n this.loadQueue_ = [];\n this.metadataQueue_.id3 = [];\n this.metadataQueue_.caption = [];\n this.abort();\n if (this.transmuxer_) {\n this.transmuxer_.postMessage({\n action: 'clearParsedMp4Captions'\n });\n }\n }\n /**\n * Remove any data in the source buffer between start and end times\n *\n * @param {number} start - the start time of the region to remove from the buffer\n * @param {number} end - the end time of the region to remove from the buffer\n * @param {Function} [done] - an optional callback to be executed when the remove\n * @param {boolean} force - force all remove operations to happen\n * operation is complete\n */\n\n remove(start, end) {\n let done = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : () => {};\n let force = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n // clamp end to duration if we need to remove everything.\n // This is due to a browser bug that causes issues if we remove to Infinity.\n // videojs/videojs-contrib-hls#1225\n if (end === Infinity) {\n end = this.duration_();\n } // skip removes that would throw an error\n // commonly happens during a rendition switch at the start of a video\n // from start 0 to end 0\n\n if (end <= start) {\n this.logger_('skipping remove because end ${end} is <= start ${start}');\n return;\n }\n if (!this.sourceUpdater_ || !this.getMediaInfo_()) {\n this.logger_('skipping remove because no source updater or starting media info'); // nothing to remove if we haven't processed any media\n\n return;\n } // set it to one to complete this function's removes\n\n let removesRemaining = 1;\n const removeFinished = () => {\n removesRemaining--;\n if (removesRemaining === 0) {\n done();\n }\n };\n if (force || !this.audioDisabled_) {\n removesRemaining++;\n this.sourceUpdater_.removeAudio(start, end, removeFinished);\n } // While it would be better to only remove video if the main loader has video, this\n // should be safe with audio only as removeVideo will call back even if there's no\n // video buffer.\n //\n // In theory we can check to see if there's video before calling the remove, but in\n // the event that we're switching between renditions and from video to audio only\n // (when we add support for that), we may need to clear the video contents despite\n // what the new media will contain.\n\n if (force || this.loaderType_ === 'main') {\n this.gopBuffer_ = removeGopBuffer(this.gopBuffer_, start, end, this.timeMapping_);\n removesRemaining++;\n this.sourceUpdater_.removeVideo(start, end, removeFinished);\n } // remove any captions and ID3 tags\n\n for (const track in this.inbandTextTracks_) {\n removeCuesFromTrack(start, end, this.inbandTextTracks_[track]);\n }\n removeCuesFromTrack(start, end, this.segmentMetadataTrack_); // finished this function's removes\n\n removeFinished();\n }\n /**\n * (re-)schedule monitorBufferTick_ to run as soon as possible\n *\n * @private\n */\n\n monitorBuffer_() {\n if (this.checkBufferTimeout_) {\n window$1.clearTimeout(this.checkBufferTimeout_);\n }\n this.checkBufferTimeout_ = window$1.setTimeout(this.monitorBufferTick_.bind(this), 1);\n }\n /**\n * As long as the SegmentLoader is in the READY state, periodically\n * invoke fillBuffer_().\n *\n * @private\n */\n\n monitorBufferTick_() {\n if (this.state === 'READY') {\n this.fillBuffer_();\n }\n if (this.checkBufferTimeout_) {\n window$1.clearTimeout(this.checkBufferTimeout_);\n }\n this.checkBufferTimeout_ = window$1.setTimeout(this.monitorBufferTick_.bind(this), CHECK_BUFFER_DELAY);\n }\n /**\n * fill the buffer with segements unless the sourceBuffers are\n * currently updating\n *\n * Note: this function should only ever be called by monitorBuffer_\n * and never directly\n *\n * @private\n */\n\n fillBuffer_() {\n // TODO since the source buffer maintains a queue, and we shouldn't call this function\n // except when we're ready for the next segment, this check can most likely be removed\n if (this.sourceUpdater_.updating()) {\n return;\n } // see if we need to begin loading immediately\n\n const segmentInfo = this.chooseNextRequest_();\n if (!segmentInfo) {\n return;\n }\n if (typeof segmentInfo.timestampOffset === 'number') {\n this.isPendingTimestampOffset_ = false;\n this.timelineChangeController_.pendingTimelineChange({\n type: this.loaderType_,\n from: this.currentTimeline_,\n to: segmentInfo.timeline\n });\n }\n this.loadSegment_(segmentInfo);\n }\n /**\n * Determines if we should call endOfStream on the media source based\n * on the state of the buffer or if appened segment was the final\n * segment in the playlist.\n *\n * @param {number} [mediaIndex] the media index of segment we last appended\n * @param {Object} [playlist] a media playlist object\n * @return {boolean} do we need to call endOfStream on the MediaSource\n */\n\n isEndOfStream_() {\n let mediaIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.mediaIndex;\n let playlist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.playlist_;\n let partIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.partIndex;\n if (!playlist || !this.mediaSource_) {\n return false;\n }\n const segment = typeof mediaIndex === 'number' && playlist.segments[mediaIndex]; // mediaIndex is zero based but length is 1 based\n\n const appendedLastSegment = mediaIndex + 1 === playlist.segments.length; // true if there are no parts, or this is the last part.\n\n const appendedLastPart = !segment || !segment.parts || partIndex + 1 === segment.parts.length; // if we've buffered to the end of the video, we need to call endOfStream\n // so that MediaSources can trigger the `ended` event when it runs out of\n // buffered data instead of waiting for me\n\n return playlist.endList && this.mediaSource_.readyState === 'open' && appendedLastSegment && appendedLastPart;\n }\n /**\n * Determines what request should be made given current segment loader state.\n *\n * @return {Object} a request object that describes the segment/part to load\n */\n\n chooseNextRequest_() {\n const buffered = this.buffered_();\n const bufferedEnd = lastBufferedEnd(buffered) || 0;\n const bufferedTime = timeAheadOf(buffered, this.currentTime_());\n const preloaded = !this.hasPlayed_() && bufferedTime >= 1;\n const haveEnoughBuffer = bufferedTime >= this.goalBufferLength_();\n const segments = this.playlist_.segments; // return no segment if:\n // 1. we don't have segments\n // 2. The video has not yet played and we already downloaded a segment\n // 3. we already have enough buffered time\n\n if (!segments.length || preloaded || haveEnoughBuffer) {\n return null;\n }\n this.syncPoint_ = this.syncPoint_ || this.syncController_.getSyncPoint(this.playlist_, this.duration_(), this.currentTimeline_, this.currentTime_(), this.loaderType_);\n const next = {\n partIndex: null,\n mediaIndex: null,\n startOfSegment: null,\n playlist: this.playlist_,\n isSyncRequest: Boolean(!this.syncPoint_)\n };\n if (next.isSyncRequest) {\n next.mediaIndex = getSyncSegmentCandidate(this.currentTimeline_, segments, bufferedEnd);\n this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${next.mediaIndex}`);\n } else if (this.mediaIndex !== null) {\n const segment = segments[this.mediaIndex];\n const partIndex = typeof this.partIndex === 'number' ? this.partIndex : -1;\n next.startOfSegment = segment.end ? segment.end : bufferedEnd;\n if (segment.parts && segment.parts[partIndex + 1]) {\n next.mediaIndex = this.mediaIndex;\n next.partIndex = partIndex + 1;\n } else {\n next.mediaIndex = this.mediaIndex + 1;\n }\n } else {\n // Find the segment containing the end of the buffer or current time.\n const _Playlist$getMediaInf = Playlist.getMediaInfoForTime({\n exactManifestTimings: this.exactManifestTimings,\n playlist: this.playlist_,\n currentTime: this.fetchAtBuffer_ ? bufferedEnd : this.currentTime_(),\n startingPartIndex: this.syncPoint_.partIndex,\n startingSegmentIndex: this.syncPoint_.segmentIndex,\n startTime: this.syncPoint_.time\n }),\n segmentIndex = _Playlist$getMediaInf.segmentIndex,\n startTime = _Playlist$getMediaInf.startTime,\n partIndex = _Playlist$getMediaInf.partIndex;\n next.getMediaInfoForTime = this.fetchAtBuffer_ ? `bufferedEnd ${bufferedEnd}` : `currentTime ${this.currentTime_()}`;\n next.mediaIndex = segmentIndex;\n next.startOfSegment = startTime;\n next.partIndex = partIndex;\n this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${next.mediaIndex} `);\n }\n const nextSegment = segments[next.mediaIndex];\n let nextPart = nextSegment && typeof next.partIndex === 'number' && nextSegment.parts && nextSegment.parts[next.partIndex]; // if the next segment index is invalid or\n // the next partIndex is invalid do not choose a next segment.\n\n if (!nextSegment || typeof next.partIndex === 'number' && !nextPart) {\n return null;\n } // if the next segment has parts, and we don't have a partIndex.\n // Set partIndex to 0\n\n if (typeof next.partIndex !== 'number' && nextSegment.parts) {\n next.partIndex = 0;\n nextPart = nextSegment.parts[0];\n } // independentSegments applies to every segment in a playlist. If independentSegments appears in a main playlist,\n // it applies to each segment in each media playlist.\n // https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-23#section-4.3.5.1\n\n const hasIndependentSegments = this.vhs_.playlists && this.vhs_.playlists.main && this.vhs_.playlists.main.independentSegments || this.playlist_.independentSegments; // if we have no buffered data then we need to make sure\n // that the next part we append is \"independent\" if possible.\n // So we check if the previous part is independent, and request\n // it if it is.\n\n if (!bufferedTime && nextPart && !hasIndependentSegments && !nextPart.independent) {\n if (next.partIndex === 0) {\n const lastSegment = segments[next.mediaIndex - 1];\n const lastSegmentLastPart = lastSegment.parts && lastSegment.parts.length && lastSegment.parts[lastSegment.parts.length - 1];\n if (lastSegmentLastPart && lastSegmentLastPart.independent) {\n next.mediaIndex -= 1;\n next.partIndex = lastSegment.parts.length - 1;\n next.independent = 'previous segment';\n }\n } else if (nextSegment.parts[next.partIndex - 1].independent) {\n next.partIndex -= 1;\n next.independent = 'previous part';\n }\n }\n const ended = this.mediaSource_ && this.mediaSource_.readyState === 'ended'; // do not choose a next segment if all of the following:\n // 1. this is the last segment in the playlist\n // 2. end of stream has been called on the media source already\n // 3. the player is not seeking\n\n if (next.mediaIndex >= segments.length - 1 && ended && !this.seeking_()) {\n return null;\n }\n if (this.shouldForceTimestampOffsetAfterResync_) {\n this.shouldForceTimestampOffsetAfterResync_ = false;\n next.forceTimestampOffset = true;\n this.logger_('choose next request. Force timestamp offset after loader resync');\n }\n return this.generateSegmentInfo_(next);\n }\n generateSegmentInfo_(options) {\n const independent = options.independent,\n playlist = options.playlist,\n mediaIndex = options.mediaIndex,\n startOfSegment = options.startOfSegment,\n isSyncRequest = options.isSyncRequest,\n partIndex = options.partIndex,\n forceTimestampOffset = options.forceTimestampOffset,\n getMediaInfoForTime = options.getMediaInfoForTime;\n const segment = playlist.segments[mediaIndex];\n const part = typeof partIndex === 'number' && segment.parts[partIndex];\n const segmentInfo = {\n requestId: 'segment-loader-' + Math.random(),\n // resolve the segment URL relative to the playlist\n uri: part && part.resolvedUri || segment.resolvedUri,\n // the segment's mediaIndex at the time it was requested\n mediaIndex,\n partIndex: part ? partIndex : null,\n // whether or not to update the SegmentLoader's state with this\n // segment's mediaIndex\n isSyncRequest,\n startOfSegment,\n // the segment's playlist\n playlist,\n // unencrypted bytes of the segment\n bytes: null,\n // when a key is defined for this segment, the encrypted bytes\n encryptedBytes: null,\n // The target timestampOffset for this segment when we append it\n // to the source buffer\n timestampOffset: null,\n // The timeline that the segment is in\n timeline: segment.timeline,\n // The expected duration of the segment in seconds\n duration: part && part.duration || segment.duration,\n // retain the segment in case the playlist updates while doing an async process\n segment,\n part,\n byteLength: 0,\n transmuxer: this.transmuxer_,\n // type of getMediaInfoForTime that was used to get this segment\n getMediaInfoForTime,\n independent\n };\n const overrideCheck = typeof forceTimestampOffset !== 'undefined' ? forceTimestampOffset : this.isPendingTimestampOffset_;\n segmentInfo.timestampOffset = this.timestampOffsetForSegment_({\n segmentTimeline: segment.timeline,\n currentTimeline: this.currentTimeline_,\n startOfSegment,\n buffered: this.buffered_(),\n overrideCheck\n });\n const audioBufferedEnd = lastBufferedEnd(this.sourceUpdater_.audioBuffered());\n if (typeof audioBufferedEnd === 'number') {\n // since the transmuxer is using the actual timing values, but the buffer is\n // adjusted by the timestamp offset, we must adjust the value here\n segmentInfo.audioAppendStart = audioBufferedEnd - this.sourceUpdater_.audioTimestampOffset();\n }\n if (this.sourceUpdater_.videoBuffered().length) {\n segmentInfo.gopsToAlignWith = gopsSafeToAlignWith(this.gopBuffer_,\n // since the transmuxer is using the actual timing values, but the time is\n // adjusted by the timestmap offset, we must adjust the value here\n this.currentTime_() - this.sourceUpdater_.videoTimestampOffset(), this.timeMapping_);\n }\n return segmentInfo;\n } // get the timestampoffset for a segment,\n // added so that vtt segment loader can override and prevent\n // adding timestamp offsets.\n\n timestampOffsetForSegment_(options) {\n return timestampOffsetForSegment(options);\n }\n /**\n * Determines if the network has enough bandwidth to complete the current segment\n * request in a timely manner. If not, the request will be aborted early and bandwidth\n * updated to trigger a playlist switch.\n *\n * @param {Object} stats\n * Object containing stats about the request timing and size\n * @private\n */\n\n earlyAbortWhenNeeded_(stats) {\n if (this.vhs_.tech_.paused() ||\n // Don't abort if the current playlist is on the lowestEnabledRendition\n // TODO: Replace using timeout with a boolean indicating whether this playlist is\n // the lowestEnabledRendition.\n !this.xhrOptions_.timeout ||\n // Don't abort if we have no bandwidth information to estimate segment sizes\n !this.playlist_.attributes.BANDWIDTH) {\n return;\n } // Wait at least 1 second since the first byte of data has been received before\n // using the calculated bandwidth from the progress event to allow the bitrate\n // to stabilize\n\n if (Date.now() - (stats.firstBytesReceivedAt || Date.now()) < 1000) {\n return;\n }\n const currentTime = this.currentTime_();\n const measuredBandwidth = stats.bandwidth;\n const segmentDuration = this.pendingSegment_.duration;\n const requestTimeRemaining = Playlist.estimateSegmentRequestTime(segmentDuration, measuredBandwidth, this.playlist_, stats.bytesReceived); // Subtract 1 from the timeUntilRebuffer so we still consider an early abort\n // if we are only left with less than 1 second when the request completes.\n // A negative timeUntilRebuffering indicates we are already rebuffering\n\n const timeUntilRebuffer$1 = timeUntilRebuffer(this.buffered_(), currentTime, this.vhs_.tech_.playbackRate()) - 1; // Only consider aborting early if the estimated time to finish the download\n // is larger than the estimated time until the player runs out of forward buffer\n\n if (requestTimeRemaining <= timeUntilRebuffer$1) {\n return;\n }\n const switchCandidate = minRebufferMaxBandwidthSelector({\n main: this.vhs_.playlists.main,\n currentTime,\n bandwidth: measuredBandwidth,\n duration: this.duration_(),\n segmentDuration,\n timeUntilRebuffer: timeUntilRebuffer$1,\n currentTimeline: this.currentTimeline_,\n syncController: this.syncController_\n });\n if (!switchCandidate) {\n return;\n }\n const rebufferingImpact = requestTimeRemaining - timeUntilRebuffer$1;\n const timeSavedBySwitching = rebufferingImpact - switchCandidate.rebufferingImpact;\n let minimumTimeSaving = 0.5; // If we are already rebuffering, increase the amount of variance we add to the\n // potential round trip time of the new request so that we are not too aggressive\n // with switching to a playlist that might save us a fraction of a second.\n\n if (timeUntilRebuffer$1 <= TIME_FUDGE_FACTOR) {\n minimumTimeSaving = 1;\n }\n if (!switchCandidate.playlist || switchCandidate.playlist.uri === this.playlist_.uri || timeSavedBySwitching < minimumTimeSaving) {\n return;\n } // set the bandwidth to that of the desired playlist being sure to scale by\n // BANDWIDTH_VARIANCE and add one so the playlist selector does not exclude it\n // don't trigger a bandwidthupdate as the bandwidth is artifial\n\n this.bandwidth = switchCandidate.playlist.attributes.BANDWIDTH * Config.BANDWIDTH_VARIANCE + 1;\n this.trigger('earlyabort');\n }\n handleAbort_(segmentInfo) {\n this.logger_(`Aborting ${segmentInfoString(segmentInfo)}`);\n this.mediaRequestsAborted += 1;\n }\n /**\n * XHR `progress` event handler\n *\n * @param {Event}\n * The XHR `progress` event\n * @param {Object} simpleSegment\n * A simplified segment object copy\n * @private\n */\n\n handleProgress_(event, simpleSegment) {\n this.earlyAbortWhenNeeded_(simpleSegment.stats);\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n }\n this.trigger('progress');\n }\n handleTrackInfo_(simpleSegment, trackInfo) {\n this.earlyAbortWhenNeeded_(simpleSegment.stats);\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n }\n if (this.checkForIllegalMediaSwitch(trackInfo)) {\n return;\n }\n trackInfo = trackInfo || {}; // When we have track info, determine what media types this loader is dealing with.\n // Guard against cases where we're not getting track info at all until we are\n // certain that all streams will provide it.\n\n if (!shallowEqual(this.currentMediaInfo_, trackInfo)) {\n this.appendInitSegment_ = {\n audio: true,\n video: true\n };\n this.startingMediaInfo_ = trackInfo;\n this.currentMediaInfo_ = trackInfo;\n this.logger_('trackinfo update', trackInfo);\n this.trigger('trackinfo');\n } // trackinfo may cause an abort if the trackinfo\n // causes a codec change to an unsupported codec.\n\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n } // set trackinfo on the pending segment so that\n // it can append.\n\n this.pendingSegment_.trackInfo = trackInfo; // check if any calls were waiting on the track info\n\n if (this.hasEnoughInfoToAppend_()) {\n this.processCallQueue_();\n }\n }\n handleTimingInfo_(simpleSegment, mediaType, timeType, time) {\n this.earlyAbortWhenNeeded_(simpleSegment.stats);\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n }\n const segmentInfo = this.pendingSegment_;\n const timingInfoProperty = timingInfoPropertyForMedia(mediaType);\n segmentInfo[timingInfoProperty] = segmentInfo[timingInfoProperty] || {};\n segmentInfo[timingInfoProperty][timeType] = time;\n this.logger_(`timinginfo: ${mediaType} - ${timeType} - ${time}`); // check if any calls were waiting on the timing info\n\n if (this.hasEnoughInfoToAppend_()) {\n this.processCallQueue_();\n }\n }\n handleCaptions_(simpleSegment, captionData) {\n this.earlyAbortWhenNeeded_(simpleSegment.stats);\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n } // This could only happen with fmp4 segments, but\n // should still not happen in general\n\n if (captionData.length === 0) {\n this.logger_('SegmentLoader received no captions from a caption event');\n return;\n }\n const segmentInfo = this.pendingSegment_; // Wait until we have some video data so that caption timing\n // can be adjusted by the timestamp offset\n\n if (!segmentInfo.hasAppendedData_) {\n this.metadataQueue_.caption.push(this.handleCaptions_.bind(this, simpleSegment, captionData));\n return;\n }\n const timestampOffset = this.sourceUpdater_.videoTimestampOffset() === null ? this.sourceUpdater_.audioTimestampOffset() : this.sourceUpdater_.videoTimestampOffset();\n const captionTracks = {}; // get total start/end and captions for each track/stream\n\n captionData.forEach(caption => {\n // caption.stream is actually a track name...\n // set to the existing values in tracks or default values\n captionTracks[caption.stream] = captionTracks[caption.stream] || {\n // Infinity, as any other value will be less than this\n startTime: Infinity,\n captions: [],\n // 0 as an other value will be more than this\n endTime: 0\n };\n const captionTrack = captionTracks[caption.stream];\n captionTrack.startTime = Math.min(captionTrack.startTime, caption.startTime + timestampOffset);\n captionTrack.endTime = Math.max(captionTrack.endTime, caption.endTime + timestampOffset);\n captionTrack.captions.push(caption);\n });\n Object.keys(captionTracks).forEach(trackName => {\n const _captionTracks$trackN = captionTracks[trackName],\n startTime = _captionTracks$trackN.startTime,\n endTime = _captionTracks$trackN.endTime,\n captions = _captionTracks$trackN.captions;\n const inbandTextTracks = this.inbandTextTracks_;\n this.logger_(`adding cues from ${startTime} -> ${endTime} for ${trackName}`);\n createCaptionsTrackIfNotExists(inbandTextTracks, this.vhs_.tech_, trackName); // clear out any cues that start and end at the same time period for the same track.\n // We do this because a rendition change that also changes the timescale for captions\n // will result in captions being re-parsed for certain segments. If we add them again\n // without clearing we will have two of the same captions visible.\n\n removeCuesFromTrack(startTime, endTime, inbandTextTracks[trackName]);\n addCaptionData({\n captionArray: captions,\n inbandTextTracks,\n timestampOffset\n });\n }); // Reset stored captions since we added parsed\n // captions to a text track at this point\n\n if (this.transmuxer_) {\n this.transmuxer_.postMessage({\n action: 'clearParsedMp4Captions'\n });\n }\n }\n handleId3_(simpleSegment, id3Frames, dispatchType) {\n this.earlyAbortWhenNeeded_(simpleSegment.stats);\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n }\n const segmentInfo = this.pendingSegment_; // we need to have appended data in order for the timestamp offset to be set\n\n if (!segmentInfo.hasAppendedData_) {\n this.metadataQueue_.id3.push(this.handleId3_.bind(this, simpleSegment, id3Frames, dispatchType));\n return;\n }\n this.addMetadataToTextTrack(dispatchType, id3Frames, this.duration_());\n }\n processMetadataQueue_() {\n this.metadataQueue_.id3.forEach(fn => fn());\n this.metadataQueue_.caption.forEach(fn => fn());\n this.metadataQueue_.id3 = [];\n this.metadataQueue_.caption = [];\n }\n processCallQueue_() {\n const callQueue = this.callQueue_; // Clear out the queue before the queued functions are run, since some of the\n // functions may check the length of the load queue and default to pushing themselves\n // back onto the queue.\n\n this.callQueue_ = [];\n callQueue.forEach(fun => fun());\n }\n processLoadQueue_() {\n const loadQueue = this.loadQueue_; // Clear out the queue before the queued functions are run, since some of the\n // functions may check the length of the load queue and default to pushing themselves\n // back onto the queue.\n\n this.loadQueue_ = [];\n loadQueue.forEach(fun => fun());\n }\n /**\n * Determines whether the loader has enough info to load the next segment.\n *\n * @return {boolean}\n * Whether or not the loader has enough info to load the next segment\n */\n\n hasEnoughInfoToLoad_() {\n // Since primary timing goes by video, only the audio loader potentially needs to wait\n // to load.\n if (this.loaderType_ !== 'audio') {\n return true;\n }\n const segmentInfo = this.pendingSegment_; // A fill buffer must have already run to establish a pending segment before there's\n // enough info to load.\n\n if (!segmentInfo) {\n return false;\n } // The first segment can and should be loaded immediately so that source buffers are\n // created together (before appending). Source buffer creation uses the presence of\n // audio and video data to determine whether to create audio/video source buffers, and\n // uses processed (transmuxed or parsed) media to determine the types required.\n\n if (!this.getCurrentMediaInfo_()) {\n return true;\n }\n if (\n // Technically, instead of waiting to load a segment on timeline changes, a segment\n // can be requested and downloaded and only wait before it is transmuxed or parsed.\n // But in practice, there are a few reasons why it is better to wait until a loader\n // is ready to append that segment before requesting and downloading:\n //\n // 1. Because audio and main loaders cross discontinuities together, if this loader\n // is waiting for the other to catch up, then instead of requesting another\n // segment and using up more bandwidth, by not yet loading, more bandwidth is\n // allotted to the loader currently behind.\n // 2. media-segment-request doesn't have to have logic to consider whether a segment\n // is ready to be processed or not, isolating the queueing behavior to the loader.\n // 3. The audio loader bases some of its segment properties on timing information\n // provided by the main loader, meaning that, if the logic for waiting on\n // processing was in media-segment-request, then it would also need to know how\n // to re-generate the segment information after the main loader caught up.\n shouldWaitForTimelineChange({\n timelineChangeController: this.timelineChangeController_,\n currentTimeline: this.currentTimeline_,\n segmentTimeline: segmentInfo.timeline,\n loaderType: this.loaderType_,\n audioDisabled: this.audioDisabled_\n })) {\n return false;\n }\n return true;\n }\n getCurrentMediaInfo_() {\n let segmentInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pendingSegment_;\n return segmentInfo && segmentInfo.trackInfo || this.currentMediaInfo_;\n }\n getMediaInfo_() {\n let segmentInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pendingSegment_;\n return this.getCurrentMediaInfo_(segmentInfo) || this.startingMediaInfo_;\n }\n getPendingSegmentPlaylist() {\n return this.pendingSegment_ ? this.pendingSegment_.playlist : null;\n }\n hasEnoughInfoToAppend_() {\n if (!this.sourceUpdater_.ready()) {\n return false;\n } // If content needs to be removed or the loader is waiting on an append reattempt,\n // then no additional content should be appended until the prior append is resolved.\n\n if (this.waitingOnRemove_ || this.quotaExceededErrorRetryTimeout_) {\n return false;\n }\n const segmentInfo = this.pendingSegment_;\n const trackInfo = this.getCurrentMediaInfo_(); // no segment to append any data for or\n // we do not have information on this specific\n // segment yet\n\n if (!segmentInfo || !trackInfo) {\n return false;\n }\n const hasAudio = trackInfo.hasAudio,\n hasVideo = trackInfo.hasVideo,\n isMuxed = trackInfo.isMuxed;\n if (hasVideo && !segmentInfo.videoTimingInfo) {\n return false;\n } // muxed content only relies on video timing information for now.\n\n if (hasAudio && !this.audioDisabled_ && !isMuxed && !segmentInfo.audioTimingInfo) {\n return false;\n }\n if (shouldWaitForTimelineChange({\n timelineChangeController: this.timelineChangeController_,\n currentTimeline: this.currentTimeline_,\n segmentTimeline: segmentInfo.timeline,\n loaderType: this.loaderType_,\n audioDisabled: this.audioDisabled_\n })) {\n return false;\n }\n return true;\n }\n handleData_(simpleSegment, result) {\n this.earlyAbortWhenNeeded_(simpleSegment.stats);\n if (this.checkForAbort_(simpleSegment.requestId)) {\n return;\n } // If there's anything in the call queue, then this data came later and should be\n // executed after the calls currently queued.\n\n if (this.callQueue_.length || !this.hasEnoughInfoToAppend_()) {\n this.callQueue_.push(this.handleData_.bind(this, simpleSegment, result));\n return;\n }\n const segmentInfo = this.pendingSegment_; // update the time mapping so we can translate from display time to media time\n\n this.setTimeMapping_(segmentInfo.timeline); // for tracking overall stats\n\n this.updateMediaSecondsLoaded_(segmentInfo.part || segmentInfo.segment); // Note that the state isn't changed from loading to appending. This is because abort\n // logic may change behavior depending on the state, and changing state too early may\n // inflate our estimates of bandwidth. In the future this should be re-examined to\n // note more granular states.\n // don't process and append data if the mediaSource is closed\n\n if (this.mediaSource_.readyState === 'closed') {\n return;\n } // if this request included an initialization segment, save that data\n // to the initSegment cache\n\n if (simpleSegment.map) {\n simpleSegment.map = this.initSegmentForMap(simpleSegment.map, true); // move over init segment properties to media request\n\n segmentInfo.segment.map = simpleSegment.map;\n } // if this request included a segment key, save that data in the cache\n\n if (simpleSegment.key) {\n this.segmentKey(simpleSegment.key, true);\n }\n segmentInfo.isFmp4 = simpleSegment.isFmp4;\n segmentInfo.timingInfo = segmentInfo.timingInfo || {};\n if (segmentInfo.isFmp4) {\n this.trigger('fmp4');\n segmentInfo.timingInfo.start = segmentInfo[timingInfoPropertyForMedia(result.type)].start;\n } else {\n const trackInfo = this.getCurrentMediaInfo_();\n const useVideoTimingInfo = this.loaderType_ === 'main' && trackInfo && trackInfo.hasVideo;\n let firstVideoFrameTimeForData;\n if (useVideoTimingInfo) {\n firstVideoFrameTimeForData = segmentInfo.videoTimingInfo.start;\n } // Segment loader knows more about segment timing than the transmuxer (in certain\n // aspects), so make any changes required for a more accurate start time.\n // Don't set the end time yet, as the segment may not be finished processing.\n\n segmentInfo.timingInfo.start = this.trueSegmentStart_({\n currentStart: segmentInfo.timingInfo.start,\n playlist: segmentInfo.playlist,\n mediaIndex: segmentInfo.mediaIndex,\n currentVideoTimestampOffset: this.sourceUpdater_.videoTimestampOffset(),\n useVideoTimingInfo,\n firstVideoFrameTimeForData,\n videoTimingInfo: segmentInfo.videoTimingInfo,\n audioTimingInfo: segmentInfo.audioTimingInfo\n });\n } // Init segments for audio and video only need to be appended in certain cases. Now\n // that data is about to be appended, we can check the final cases to determine\n // whether we should append an init segment.\n\n this.updateAppendInitSegmentStatus(segmentInfo, result.type); // Timestamp offset should be updated once we get new data and have its timing info,\n // as we use the start of the segment to offset the best guess (playlist provided)\n // timestamp offset.\n\n this.updateSourceBufferTimestampOffset_(segmentInfo); // if this is a sync request we need to determine whether it should\n // be appended or not.\n\n if (segmentInfo.isSyncRequest) {\n // first save/update our timing info for this segment.\n // this is what allows us to choose an accurate segment\n // and the main reason we make a sync request.\n this.updateTimingInfoEnd_(segmentInfo);\n this.syncController_.saveSegmentTimingInfo({\n segmentInfo,\n shouldSaveTimelineMapping: this.loaderType_ === 'main'\n });\n const next = this.chooseNextRequest_(); // If the sync request isn't the segment that would be requested next\n // after taking into account its timing info, do not append it.\n\n if (next.mediaIndex !== segmentInfo.mediaIndex || next.partIndex !== segmentInfo.partIndex) {\n this.logger_('sync segment was incorrect, not appending');\n return;\n } // otherwise append it like any other segment as our guess was correct.\n\n this.logger_('sync segment was correct, appending');\n } // Save some state so that in the future anything waiting on first append (and/or\n // timestamp offset(s)) can process immediately. While the extra state isn't optimal,\n // we need some notion of whether the timestamp offset or other relevant information\n // has had a chance to be set.\n\n segmentInfo.hasAppendedData_ = true; // Now that the timestamp offset should be set, we can append any waiting ID3 tags.\n\n this.processMetadataQueue_();\n this.appendData_(segmentInfo, result);\n }\n updateAppendInitSegmentStatus(segmentInfo, type) {\n // alt audio doesn't manage timestamp offset\n if (this.loaderType_ === 'main' && typeof segmentInfo.timestampOffset === 'number' &&\n // in the case that we're handling partial data, we don't want to append an init\n // segment for each chunk\n !segmentInfo.changedTimestampOffset) {\n // if the timestamp offset changed, the timeline may have changed, so we have to re-\n // append init segments\n this.appendInitSegment_ = {\n audio: true,\n video: true\n };\n }\n if (this.playlistOfLastInitSegment_[type] !== segmentInfo.playlist) {\n // make sure we append init segment on playlist changes, in case the media config\n // changed\n this.appendInitSegment_[type] = true;\n }\n }\n getInitSegmentAndUpdateState_(_ref52) {\n let type = _ref52.type,\n initSegment = _ref52.initSegment,\n map = _ref52.map,\n playlist = _ref52.playlist;\n // \"The EXT-X-MAP tag specifies how to obtain the Media Initialization Section\n // (Section 3) required to parse the applicable Media Segments. It applies to every\n // Media Segment that appears after it in the Playlist until the next EXT-X-MAP tag\n // or until the end of the playlist.\"\n // https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.5\n if (map) {\n const id = initSegmentId(map);\n if (this.activeInitSegmentId_ === id) {\n // don't need to re-append the init segment if the ID matches\n return null;\n } // a map-specified init segment takes priority over any transmuxed (or otherwise\n // obtained) init segment\n //\n // this also caches the init segment for later use\n\n initSegment = this.initSegmentForMap(map, true).bytes;\n this.activeInitSegmentId_ = id;\n } // We used to always prepend init segments for video, however, that shouldn't be\n // necessary. Instead, we should only append on changes, similar to what we've always\n // done for audio. This is more important (though may not be that important) for\n // frame-by-frame appending for LHLS, simply because of the increased quantity of\n // appends.\n\n if (initSegment && this.appendInitSegment_[type]) {\n // Make sure we track the playlist that we last used for the init segment, so that\n // we can re-append the init segment in the event that we get data from a new\n // playlist. Discontinuities and track changes are handled in other sections.\n this.playlistOfLastInitSegment_[type] = playlist; // Disable future init segment appends for this type. Until a change is necessary.\n\n this.appendInitSegment_[type] = false; // we need to clear out the fmp4 active init segment id, since\n // we are appending the muxer init segment\n\n this.activeInitSegmentId_ = null;\n return initSegment;\n }\n return null;\n }\n handleQuotaExceededError_(_ref53, error) {\n let segmentInfo = _ref53.segmentInfo,\n type = _ref53.type,\n bytes = _ref53.bytes;\n const audioBuffered = this.sourceUpdater_.audioBuffered();\n const videoBuffered = this.sourceUpdater_.videoBuffered(); // For now we're ignoring any notion of gaps in the buffer, but they, in theory,\n // should be cleared out during the buffer removals. However, log in case it helps\n // debug.\n\n if (audioBuffered.length > 1) {\n this.logger_('On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: ' + timeRangesToArray(audioBuffered).join(', '));\n }\n if (videoBuffered.length > 1) {\n this.logger_('On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: ' + timeRangesToArray(videoBuffered).join(', '));\n }\n const audioBufferStart = audioBuffered.length ? audioBuffered.start(0) : 0;\n const audioBufferEnd = audioBuffered.length ? audioBuffered.end(audioBuffered.length - 1) : 0;\n const videoBufferStart = videoBuffered.length ? videoBuffered.start(0) : 0;\n const videoBufferEnd = videoBuffered.length ? videoBuffered.end(videoBuffered.length - 1) : 0;\n if (audioBufferEnd - audioBufferStart <= MIN_BACK_BUFFER && videoBufferEnd - videoBufferStart <= MIN_BACK_BUFFER) {\n // Can't remove enough buffer to make room for new segment (or the browser doesn't\n // allow for appends of segments this size). In the future, it may be possible to\n // split up the segment and append in pieces, but for now, error out this playlist\n // in an attempt to switch to a more manageable rendition.\n this.logger_('On QUOTA_EXCEEDED_ERR, single segment too large to append to ' + 'buffer, triggering an error. ' + `Appended byte length: ${bytes.byteLength}, ` + `audio buffer: ${timeRangesToArray(audioBuffered).join(', ')}, ` + `video buffer: ${timeRangesToArray(videoBuffered).join(', ')}, `);\n this.error({\n message: 'Quota exceeded error with append of a single segment of content',\n excludeUntil: Infinity\n });\n this.trigger('error');\n return;\n } // To try to resolve the quota exceeded error, clear back buffer and retry. This means\n // that the segment-loader should block on future events until this one is handled, so\n // that it doesn't keep moving onto further segments. Adding the call to the call\n // queue will prevent further appends until waitingOnRemove_ and\n // quotaExceededErrorRetryTimeout_ are cleared.\n //\n // Note that this will only block the current loader. In the case of demuxed content,\n // the other load may keep filling as fast as possible. In practice, this should be\n // OK, as it is a rare case when either audio has a high enough bitrate to fill up a\n // source buffer, or video fills without enough room for audio to append (and without\n // the availability of clearing out seconds of back buffer to make room for audio).\n // But it might still be good to handle this case in the future as a TODO.\n\n this.waitingOnRemove_ = true;\n this.callQueue_.push(this.appendToSourceBuffer_.bind(this, {\n segmentInfo,\n type,\n bytes\n }));\n const currentTime = this.currentTime_(); // Try to remove as much audio and video as possible to make room for new content\n // before retrying.\n\n const timeToRemoveUntil = currentTime - MIN_BACK_BUFFER;\n this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${timeToRemoveUntil}`);\n this.remove(0, timeToRemoveUntil, () => {\n this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${MIN_BACK_BUFFER}s`);\n this.waitingOnRemove_ = false; // wait the length of time alotted in the back buffer to prevent wasted\n // attempts (since we can't clear less than the minimum)\n\n this.quotaExceededErrorRetryTimeout_ = window$1.setTimeout(() => {\n this.logger_('On QUOTA_EXCEEDED_ERR, re-processing call queue');\n this.quotaExceededErrorRetryTimeout_ = null;\n this.processCallQueue_();\n }, MIN_BACK_BUFFER * 1000);\n }, true);\n }\n handleAppendError_(_ref54, error) {\n let segmentInfo = _ref54.segmentInfo,\n type = _ref54.type,\n bytes = _ref54.bytes;\n // if there's no error, nothing to do\n if (!error) {\n return;\n }\n if (error.code === QUOTA_EXCEEDED_ERR) {\n this.handleQuotaExceededError_({\n segmentInfo,\n type,\n bytes\n }); // A quota exceeded error should be recoverable with a future re-append, so no need\n // to trigger an append error.\n\n return;\n }\n this.logger_('Received non QUOTA_EXCEEDED_ERR on append', error);\n this.error(`${type} append of ${bytes.length}b failed for segment ` + `#${segmentInfo.mediaIndex} in playlist ${segmentInfo.playlist.id}`); // If an append errors, we often can't recover.\n // (see https://w3c.github.io/media-source/#sourcebuffer-append-error).\n //\n // Trigger a special error so that it can be handled separately from normal,\n // recoverable errors.\n\n this.trigger('appenderror');\n }\n appendToSourceBuffer_(_ref55) {\n let segmentInfo = _ref55.segmentInfo,\n type = _ref55.type,\n initSegment = _ref55.initSegment,\n data = _ref55.data,\n bytes = _ref55.bytes;\n // If this is a re-append, bytes were already created and don't need to be recreated\n if (!bytes) {\n const segments = [data];\n let byteLength = data.byteLength;\n if (initSegment) {\n // if the media initialization segment is changing, append it before the content\n // segment\n segments.unshift(initSegment);\n byteLength += initSegment.byteLength;\n } // Technically we should be OK appending the init segment separately, however, we\n // haven't yet tested that, and prepending is how we have always done things.\n\n bytes = concatSegments({\n bytes: byteLength,\n segments\n });\n }\n this.sourceUpdater_.appendBuffer({\n segmentInfo,\n type,\n bytes\n }, this.handleAppendError_.bind(this, {\n segmentInfo,\n type,\n bytes\n }));\n }\n handleSegmentTimingInfo_(type, requestId, segmentTimingInfo) {\n if (!this.pendingSegment_ || requestId !== this.pendingSegment_.requestId) {\n return;\n }\n const segment = this.pendingSegment_.segment;\n const timingInfoProperty = `${type}TimingInfo`;\n if (!segment[timingInfoProperty]) {\n segment[timingInfoProperty] = {};\n }\n segment[timingInfoProperty].transmuxerPrependedSeconds = segmentTimingInfo.prependedContentDuration || 0;\n segment[timingInfoProperty].transmuxedPresentationStart = segmentTimingInfo.start.presentation;\n segment[timingInfoProperty].transmuxedDecodeStart = segmentTimingInfo.start.decode;\n segment[timingInfoProperty].transmuxedPresentationEnd = segmentTimingInfo.end.presentation;\n segment[timingInfoProperty].transmuxedDecodeEnd = segmentTimingInfo.end.decode; // mainly used as a reference for debugging\n\n segment[timingInfoProperty].baseMediaDecodeTime = segmentTimingInfo.baseMediaDecodeTime;\n }\n appendData_(segmentInfo, result) {\n const type = result.type,\n data = result.data;\n if (!data || !data.byteLength) {\n return;\n }\n if (type === 'audio' && this.audioDisabled_) {\n return;\n }\n const initSegment = this.getInitSegmentAndUpdateState_({\n type,\n initSegment: result.initSegment,\n playlist: segmentInfo.playlist,\n map: segmentInfo.isFmp4 ? segmentInfo.segment.map : null\n });\n this.appendToSourceBuffer_({\n segmentInfo,\n type,\n initSegment,\n data\n });\n }\n /**\n * load a specific segment from a request into the buffer\n *\n * @private\n */\n\n loadSegment_(segmentInfo) {\n this.state = 'WAITING';\n this.pendingSegment_ = segmentInfo;\n this.trimBackBuffer_(segmentInfo);\n if (typeof segmentInfo.timestampOffset === 'number') {\n if (this.transmuxer_) {\n this.transmuxer_.postMessage({\n action: 'clearAllMp4Captions'\n });\n }\n }\n if (!this.hasEnoughInfoToLoad_()) {\n this.loadQueue_.push(() => {\n // regenerate the audioAppendStart, timestampOffset, etc as they\n // may have changed since this function was added to the queue.\n const options = _extends({}, segmentInfo, {\n forceTimestampOffset: true\n });\n _extends(segmentInfo, this.generateSegmentInfo_(options));\n this.isPendingTimestampOffset_ = false;\n this.updateTransmuxerAndRequestSegment_(segmentInfo);\n });\n return;\n }\n this.updateTransmuxerAndRequestSegment_(segmentInfo);\n }\n updateTransmuxerAndRequestSegment_(segmentInfo) {\n // We'll update the source buffer's timestamp offset once we have transmuxed data, but\n // the transmuxer still needs to be updated before then.\n //\n // Even though keepOriginalTimestamps is set to true for the transmuxer, timestamp\n // offset must be passed to the transmuxer for stream correcting adjustments.\n if (this.shouldUpdateTransmuxerTimestampOffset_(segmentInfo.timestampOffset)) {\n this.gopBuffer_.length = 0; // gopsToAlignWith was set before the GOP buffer was cleared\n\n segmentInfo.gopsToAlignWith = [];\n this.timeMapping_ = 0; // reset values in the transmuxer since a discontinuity should start fresh\n\n this.transmuxer_.postMessage({\n action: 'reset'\n });\n this.transmuxer_.postMessage({\n action: 'setTimestampOffset',\n timestampOffset: segmentInfo.timestampOffset\n });\n }\n const simpleSegment = this.createSimplifiedSegmentObj_(segmentInfo);\n const isEndOfStream = this.isEndOfStream_(segmentInfo.mediaIndex, segmentInfo.playlist, segmentInfo.partIndex);\n const isWalkingForward = this.mediaIndex !== null;\n const isDiscontinuity = segmentInfo.timeline !== this.currentTimeline_ &&\n // currentTimeline starts at -1, so we shouldn't end the timeline switching to 0,\n // the first timeline\n segmentInfo.timeline > 0;\n const isEndOfTimeline = isEndOfStream || isWalkingForward && isDiscontinuity;\n this.logger_(`Requesting ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated with this segment, but it is not cached (identified by a lack of bytes),\n // then this init segment has never been seen before and should be appended.\n //\n // At this point the content type (audio/video or both) is not yet known, but it should be safe to set\n // both to true and leave the decision of whether to append the init segment to append time.\n\n if (simpleSegment.map && !simpleSegment.map.bytes) {\n this.logger_('going to request init segment.');\n this.appendInitSegment_ = {\n video: true,\n audio: true\n };\n }\n segmentInfo.abortRequests = mediaSegmentRequest({\n xhr: this.vhs_.xhr,\n xhrOptions: this.xhrOptions_,\n decryptionWorker: this.decrypter_,\n segment: simpleSegment,\n abortFn: this.handleAbort_.bind(this, segmentInfo),\n progressFn: this.handleProgress_.bind(this),\n trackInfoFn: this.handleTrackInfo_.bind(this),\n timingInfoFn: this.handleTimingInfo_.bind(this),\n videoSegmentTimingInfoFn: this.handleSegmentTimingInfo_.bind(this, 'video', segmentInfo.requestId),\n audioSegmentTimingInfoFn: this.handleSegmentTimingInfo_.bind(this, 'audio', segmentInfo.requestId),\n captionsFn: this.handleCaptions_.bind(this),\n isEndOfTimeline,\n endedTimelineFn: () => {\n this.logger_('received endedtimeline callback');\n },\n id3Fn: this.handleId3_.bind(this),\n dataFn: this.handleData_.bind(this),\n doneFn: this.segmentRequestFinished_.bind(this),\n onTransmuxerLog: _ref56 => {\n let message = _ref56.message,\n level = _ref56.level,\n stream = _ref56.stream;\n this.logger_(`${segmentInfoString(segmentInfo)} logged from transmuxer stream ${stream} as a ${level}: ${message}`);\n }\n });\n }\n /**\n * trim the back buffer so that we don't have too much data\n * in the source buffer\n *\n * @private\n *\n * @param {Object} segmentInfo - the current segment\n */\n\n trimBackBuffer_(segmentInfo) {\n const removeToTime = safeBackBufferTrimTime(this.seekable_(), this.currentTime_(), this.playlist_.targetDuration || 10); // Chrome has a hard limit of 150MB of\n // buffer and a very conservative \"garbage collector\"\n // We manually clear out the old buffer to ensure\n // we don't trigger the QuotaExceeded error\n // on the source buffer during subsequent appends\n\n if (removeToTime > 0) {\n this.remove(0, removeToTime);\n }\n }\n /**\n * created a simplified copy of the segment object with just the\n * information necessary to perform the XHR and decryption\n *\n * @private\n *\n * @param {Object} segmentInfo - the current segment\n * @return {Object} a simplified segment object copy\n */\n\n createSimplifiedSegmentObj_(segmentInfo) {\n const segment = segmentInfo.segment;\n const part = segmentInfo.part;\n const simpleSegment = {\n resolvedUri: part ? part.resolvedUri : segment.resolvedUri,\n byterange: part ? part.byterange : segment.byterange,\n requestId: segmentInfo.requestId,\n transmuxer: segmentInfo.transmuxer,\n audioAppendStart: segmentInfo.audioAppendStart,\n gopsToAlignWith: segmentInfo.gopsToAlignWith,\n part: segmentInfo.part\n };\n const previousSegment = segmentInfo.playlist.segments[segmentInfo.mediaIndex - 1];\n if (previousSegment && previousSegment.timeline === segment.timeline) {\n // The baseStartTime of a segment is used to handle rollover when probing the TS\n // segment to retrieve timing information. Since the probe only looks at the media's\n // times (e.g., PTS and DTS values of the segment), and doesn't consider the\n // player's time (e.g., player.currentTime()), baseStartTime should reflect the\n // media time as well. transmuxedDecodeEnd represents the end time of a segment, in\n // seconds of media time, so should be used here. The previous segment is used since\n // the end of the previous segment should represent the beginning of the current\n // segment, so long as they are on the same timeline.\n if (previousSegment.videoTimingInfo) {\n simpleSegment.baseStartTime = previousSegment.videoTimingInfo.transmuxedDecodeEnd;\n } else if (previousSegment.audioTimingInfo) {\n simpleSegment.baseStartTime = previousSegment.audioTimingInfo.transmuxedDecodeEnd;\n }\n }\n if (segment.key) {\n // if the media sequence is greater than 2^32, the IV will be incorrect\n // assuming 10s segments, that would be about 1300 years\n const iv = segment.key.iv || new Uint32Array([0, 0, 0, segmentInfo.mediaIndex + segmentInfo.playlist.mediaSequence]);\n simpleSegment.key = this.segmentKey(segment.key);\n simpleSegment.key.iv = iv;\n }\n if (segment.map) {\n simpleSegment.map = this.initSegmentForMap(segment.map);\n }\n return simpleSegment;\n }\n saveTransferStats_(stats) {\n // every request counts as a media request even if it has been aborted\n // or canceled due to a timeout\n this.mediaRequests += 1;\n if (stats) {\n this.mediaBytesTransferred += stats.bytesReceived;\n this.mediaTransferDuration += stats.roundTripTime;\n }\n }\n saveBandwidthRelatedStats_(duration, stats) {\n // byteLength will be used for throughput, and should be based on bytes receieved,\n // which we only know at the end of the request and should reflect total bytes\n // downloaded rather than just bytes processed from components of the segment\n this.pendingSegment_.byteLength = stats.bytesReceived;\n if (duration < MIN_SEGMENT_DURATION_TO_SAVE_STATS) {\n this.logger_(`Ignoring segment's bandwidth because its duration of ${duration}` + ` is less than the min to record ${MIN_SEGMENT_DURATION_TO_SAVE_STATS}`);\n return;\n }\n this.bandwidth = stats.bandwidth;\n this.roundTrip = stats.roundTripTime;\n }\n handleTimeout_() {\n // although the VTT segment loader bandwidth isn't really used, it's good to\n // maintain functinality between segment loaders\n this.mediaRequestsTimedout += 1;\n this.bandwidth = 1;\n this.roundTrip = NaN;\n this.trigger('bandwidthupdate');\n this.trigger('timeout');\n }\n /**\n * Handle the callback from the segmentRequest function and set the\n * associated SegmentLoader state and errors if necessary\n *\n * @private\n */\n\n segmentRequestFinished_(error, simpleSegment, result) {\n // TODO handle special cases, e.g., muxed audio/video but only audio in the segment\n // check the call queue directly since this function doesn't need to deal with any\n // data, and can continue even if the source buffers are not set up and we didn't get\n // any data from the segment\n if (this.callQueue_.length) {\n this.callQueue_.push(this.segmentRequestFinished_.bind(this, error, simpleSegment, result));\n return;\n }\n this.saveTransferStats_(simpleSegment.stats); // The request was aborted and the SegmentLoader has already been reset\n\n if (!this.pendingSegment_) {\n return;\n } // the request was aborted and the SegmentLoader has already started\n // another request. this can happen when the timeout for an aborted\n // request triggers due to a limitation in the XHR library\n // do not count this as any sort of request or we risk double-counting\n\n if (simpleSegment.requestId !== this.pendingSegment_.requestId) {\n return;\n } // an error occurred from the active pendingSegment_ so reset everything\n\n if (error) {\n this.pendingSegment_ = null;\n this.state = 'READY'; // aborts are not a true error condition and nothing corrective needs to be done\n\n if (error.code === REQUEST_ERRORS.ABORTED) {\n return;\n }\n this.pause(); // the error is really just that at least one of the requests timed-out\n // set the bandwidth to a very low value and trigger an ABR switch to\n // take emergency action\n\n if (error.code === REQUEST_ERRORS.TIMEOUT) {\n this.handleTimeout_();\n return;\n } // if control-flow has arrived here, then the error is real\n // emit an error event to exclude the current playlist\n\n this.mediaRequestsErrored += 1;\n this.error(error);\n this.trigger('error');\n return;\n }\n const segmentInfo = this.pendingSegment_; // the response was a success so set any bandwidth stats the request\n // generated for ABR purposes\n\n this.saveBandwidthRelatedStats_(segmentInfo.duration, simpleSegment.stats);\n segmentInfo.endOfAllRequests = simpleSegment.endOfAllRequests;\n if (result.gopInfo) {\n this.gopBuffer_ = updateGopBuffer(this.gopBuffer_, result.gopInfo, this.safeAppend_);\n } // Although we may have already started appending on progress, we shouldn't switch the\n // state away from loading until we are officially done loading the segment data.\n\n this.state = 'APPENDING'; // used for testing\n\n this.trigger('appending');\n this.waitForAppendsToComplete_(segmentInfo);\n }\n setTimeMapping_(timeline) {\n const timelineMapping = this.syncController_.mappingForTimeline(timeline);\n if (timelineMapping !== null) {\n this.timeMapping_ = timelineMapping;\n }\n }\n updateMediaSecondsLoaded_(segment) {\n if (typeof segment.start === 'number' && typeof segment.end === 'number') {\n this.mediaSecondsLoaded += segment.end - segment.start;\n } else {\n this.mediaSecondsLoaded += segment.duration;\n }\n }\n shouldUpdateTransmuxerTimestampOffset_(timestampOffset) {\n if (timestampOffset === null) {\n return false;\n } // note that we're potentially using the same timestamp offset for both video and\n // audio\n\n if (this.loaderType_ === 'main' && timestampOffset !== this.sourceUpdater_.videoTimestampOffset()) {\n return true;\n }\n if (!this.audioDisabled_ && timestampOffset !== this.sourceUpdater_.audioTimestampOffset()) {\n return true;\n }\n return false;\n }\n trueSegmentStart_(_ref57) {\n let currentStart = _ref57.currentStart,\n playlist = _ref57.playlist,\n mediaIndex = _ref57.mediaIndex,\n firstVideoFrameTimeForData = _ref57.firstVideoFrameTimeForData,\n currentVideoTimestampOffset = _ref57.currentVideoTimestampOffset,\n useVideoTimingInfo = _ref57.useVideoTimingInfo,\n videoTimingInfo = _ref57.videoTimingInfo,\n audioTimingInfo = _ref57.audioTimingInfo;\n if (typeof currentStart !== 'undefined') {\n // if start was set once, keep using it\n return currentStart;\n }\n if (!useVideoTimingInfo) {\n return audioTimingInfo.start;\n }\n const previousSegment = playlist.segments[mediaIndex - 1]; // The start of a segment should be the start of the first full frame contained\n // within that segment. Since the transmuxer maintains a cache of incomplete data\n // from and/or the last frame seen, the start time may reflect a frame that starts\n // in the previous segment. Check for that case and ensure the start time is\n // accurate for the segment.\n\n if (mediaIndex === 0 || !previousSegment || typeof previousSegment.start === 'undefined' || previousSegment.end !== firstVideoFrameTimeForData + currentVideoTimestampOffset) {\n return firstVideoFrameTimeForData;\n }\n return videoTimingInfo.start;\n }\n waitForAppendsToComplete_(segmentInfo) {\n const trackInfo = this.getCurrentMediaInfo_(segmentInfo);\n if (!trackInfo) {\n this.error({\n message: 'No starting media returned, likely due to an unsupported media format.',\n playlistExclusionDuration: Infinity\n });\n this.trigger('error');\n return;\n } // Although transmuxing is done, appends may not yet be finished. Throw a marker\n // on each queue this loader is responsible for to ensure that the appends are\n // complete.\n\n const hasAudio = trackInfo.hasAudio,\n hasVideo = trackInfo.hasVideo,\n isMuxed = trackInfo.isMuxed;\n const waitForVideo = this.loaderType_ === 'main' && hasVideo;\n const waitForAudio = !this.audioDisabled_ && hasAudio && !isMuxed;\n segmentInfo.waitingOnAppends = 0; // segments with no data\n\n if (!segmentInfo.hasAppendedData_) {\n if (!segmentInfo.timingInfo && typeof segmentInfo.timestampOffset === 'number') {\n // When there's no audio or video data in the segment, there's no audio or video\n // timing information.\n //\n // If there's no audio or video timing information, then the timestamp offset\n // can't be adjusted to the appropriate value for the transmuxer and source\n // buffers.\n //\n // Therefore, the next segment should be used to set the timestamp offset.\n this.isPendingTimestampOffset_ = true;\n } // override settings for metadata only segments\n\n segmentInfo.timingInfo = {\n start: 0\n };\n segmentInfo.waitingOnAppends++;\n if (!this.isPendingTimestampOffset_) {\n // update the timestampoffset\n this.updateSourceBufferTimestampOffset_(segmentInfo); // make sure the metadata queue is processed even though we have\n // no video/audio data.\n\n this.processMetadataQueue_();\n } // append is \"done\" instantly with no data.\n\n this.checkAppendsDone_(segmentInfo);\n return;\n } // Since source updater could call back synchronously, do the increments first.\n\n if (waitForVideo) {\n segmentInfo.waitingOnAppends++;\n }\n if (waitForAudio) {\n segmentInfo.waitingOnAppends++;\n }\n if (waitForVideo) {\n this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this, segmentInfo));\n }\n if (waitForAudio) {\n this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this, segmentInfo));\n }\n }\n checkAppendsDone_(segmentInfo) {\n if (this.checkForAbort_(segmentInfo.requestId)) {\n return;\n }\n segmentInfo.waitingOnAppends--;\n if (segmentInfo.waitingOnAppends === 0) {\n this.handleAppendsDone_();\n }\n }\n checkForIllegalMediaSwitch(trackInfo) {\n const illegalMediaSwitchError = illegalMediaSwitch(this.loaderType_, this.getCurrentMediaInfo_(), trackInfo);\n if (illegalMediaSwitchError) {\n this.error({\n message: illegalMediaSwitchError,\n playlistExclusionDuration: Infinity\n });\n this.trigger('error');\n return true;\n }\n return false;\n }\n updateSourceBufferTimestampOffset_(segmentInfo) {\n if (segmentInfo.timestampOffset === null ||\n // we don't yet have the start for whatever media type (video or audio) has\n // priority, timing-wise, so we must wait\n typeof segmentInfo.timingInfo.start !== 'number' ||\n // already updated the timestamp offset for this segment\n segmentInfo.changedTimestampOffset ||\n // the alt audio loader should not be responsible for setting the timestamp offset\n this.loaderType_ !== 'main') {\n return;\n }\n let didChange = false; // Primary timing goes by video, and audio is trimmed in the transmuxer, meaning that\n // the timing info here comes from video. In the event that the audio is longer than\n // the video, this will trim the start of the audio.\n // This also trims any offset from 0 at the beginning of the media\n\n segmentInfo.timestampOffset -= this.getSegmentStartTimeForTimestampOffsetCalculation_({\n videoTimingInfo: segmentInfo.segment.videoTimingInfo,\n audioTimingInfo: segmentInfo.segment.audioTimingInfo,\n timingInfo: segmentInfo.timingInfo\n }); // In the event that there are part segment downloads, each will try to update the\n // timestamp offset. Retaining this bit of state prevents us from updating in the\n // future (within the same segment), however, there may be a better way to handle it.\n\n segmentInfo.changedTimestampOffset = true;\n if (segmentInfo.timestampOffset !== this.sourceUpdater_.videoTimestampOffset()) {\n this.sourceUpdater_.videoTimestampOffset(segmentInfo.timestampOffset);\n didChange = true;\n }\n if (segmentInfo.timestampOffset !== this.sourceUpdater_.audioTimestampOffset()) {\n this.sourceUpdater_.audioTimestampOffset(segmentInfo.timestampOffset);\n didChange = true;\n }\n if (didChange) {\n this.trigger('timestampoffset');\n }\n }\n getSegmentStartTimeForTimestampOffsetCalculation_(_ref58) {\n let videoTimingInfo = _ref58.videoTimingInfo,\n audioTimingInfo = _ref58.audioTimingInfo,\n timingInfo = _ref58.timingInfo;\n if (!this.useDtsForTimestampOffset_) {\n return timingInfo.start;\n }\n if (videoTimingInfo && typeof videoTimingInfo.transmuxedDecodeStart === 'number') {\n return videoTimingInfo.transmuxedDecodeStart;\n } // handle audio only\n\n if (audioTimingInfo && typeof audioTimingInfo.transmuxedDecodeStart === 'number') {\n return audioTimingInfo.transmuxedDecodeStart;\n } // handle content not transmuxed (e.g., MP4)\n\n return timingInfo.start;\n }\n updateTimingInfoEnd_(segmentInfo) {\n segmentInfo.timingInfo = segmentInfo.timingInfo || {};\n const trackInfo = this.getMediaInfo_();\n const useVideoTimingInfo = this.loaderType_ === 'main' && trackInfo && trackInfo.hasVideo;\n const prioritizedTimingInfo = useVideoTimingInfo && segmentInfo.videoTimingInfo ? segmentInfo.videoTimingInfo : segmentInfo.audioTimingInfo;\n if (!prioritizedTimingInfo) {\n return;\n }\n segmentInfo.timingInfo.end = typeof prioritizedTimingInfo.end === 'number' ?\n // End time may not exist in a case where we aren't parsing the full segment (one\n // current example is the case of fmp4), so use the rough duration to calculate an\n // end time.\n prioritizedTimingInfo.end : prioritizedTimingInfo.start + segmentInfo.duration;\n }\n /**\n * callback to run when appendBuffer is finished. detects if we are\n * in a good state to do things with the data we got, or if we need\n * to wait for more\n *\n * @private\n */\n\n handleAppendsDone_() {\n // appendsdone can cause an abort\n if (this.pendingSegment_) {\n this.trigger('appendsdone');\n }\n if (!this.pendingSegment_) {\n this.state = 'READY'; // TODO should this move into this.checkForAbort to speed up requests post abort in\n // all appending cases?\n\n if (!this.paused()) {\n this.monitorBuffer_();\n }\n return;\n }\n const segmentInfo = this.pendingSegment_; // Now that the end of the segment has been reached, we can set the end time. It's\n // best to wait until all appends are done so we're sure that the primary media is\n // finished (and we have its end time).\n\n this.updateTimingInfoEnd_(segmentInfo);\n if (this.shouldSaveSegmentTimingInfo_) {\n // Timeline mappings should only be saved for the main loader. This is for multiple\n // reasons:\n //\n // 1) Only one mapping is saved per timeline, meaning that if both the audio loader\n // and the main loader try to save the timeline mapping, whichever comes later\n // will overwrite the first. In theory this is OK, as the mappings should be the\n // same, however, it breaks for (2)\n // 2) In the event of a live stream, the initial live point will make for a somewhat\n // arbitrary mapping. If audio and video streams are not perfectly in-sync, then\n // the mapping will be off for one of the streams, dependent on which one was\n // first saved (see (1)).\n // 3) Primary timing goes by video in VHS, so the mapping should be video.\n //\n // Since the audio loader will wait for the main loader to load the first segment,\n // the main loader will save the first timeline mapping, and ensure that there won't\n // be a case where audio loads two segments without saving a mapping (thus leading\n // to missing segment timing info).\n this.syncController_.saveSegmentTimingInfo({\n segmentInfo,\n shouldSaveTimelineMapping: this.loaderType_ === 'main'\n });\n }\n const segmentDurationMessage = getTroublesomeSegmentDurationMessage(segmentInfo, this.sourceType_);\n if (segmentDurationMessage) {\n if (segmentDurationMessage.severity === 'warn') {\n videojs.log.warn(segmentDurationMessage.message);\n } else {\n this.logger_(segmentDurationMessage.message);\n }\n }\n this.recordThroughput_(segmentInfo);\n this.pendingSegment_ = null;\n this.state = 'READY';\n if (segmentInfo.isSyncRequest) {\n this.trigger('syncinfoupdate'); // if the sync request was not appended\n // then it was not the correct segment.\n // throw it away and use the data it gave us\n // to get the correct one.\n\n if (!segmentInfo.hasAppendedData_) {\n this.logger_(`Throwing away un-appended sync request ${segmentInfoString(segmentInfo)}`);\n return;\n }\n }\n this.logger_(`Appended ${segmentInfoString(segmentInfo)}`);\n this.addSegmentMetadataCue_(segmentInfo);\n this.fetchAtBuffer_ = true;\n if (this.currentTimeline_ !== segmentInfo.timeline) {\n this.timelineChangeController_.lastTimelineChange({\n type: this.loaderType_,\n from: this.currentTimeline_,\n to: segmentInfo.timeline\n }); // If audio is not disabled, the main segment loader is responsible for updating\n // the audio timeline as well. If the content is video only, this won't have any\n // impact.\n\n if (this.loaderType_ === 'main' && !this.audioDisabled_) {\n this.timelineChangeController_.lastTimelineChange({\n type: 'audio',\n from: this.currentTimeline_,\n to: segmentInfo.timeline\n });\n }\n }\n this.currentTimeline_ = segmentInfo.timeline; // We must update the syncinfo to recalculate the seekable range before\n // the following conditional otherwise it may consider this a bad \"guess\"\n // and attempt to resync when the post-update seekable window and live\n // point would mean that this was the perfect segment to fetch\n\n this.trigger('syncinfoupdate');\n const segment = segmentInfo.segment;\n const part = segmentInfo.part;\n const badSegmentGuess = segment.end && this.currentTime_() - segment.end > segmentInfo.playlist.targetDuration * 3;\n const badPartGuess = part && part.end && this.currentTime_() - part.end > segmentInfo.playlist.partTargetDuration * 3; // If we previously appended a segment/part that ends more than 3 part/targetDurations before\n // the currentTime_ that means that our conservative guess was too conservative.\n // In that case, reset the loader state so that we try to use any information gained\n // from the previous request to create a new, more accurate, sync-point.\n\n if (badSegmentGuess || badPartGuess) {\n this.logger_(`bad ${badSegmentGuess ? 'segment' : 'part'} ${segmentInfoString(segmentInfo)}`);\n this.resetEverything();\n return;\n }\n const isWalkingForward = this.mediaIndex !== null; // Don't do a rendition switch unless we have enough time to get a sync segment\n // and conservatively guess\n\n if (isWalkingForward) {\n this.trigger('bandwidthupdate');\n }\n this.trigger('progress');\n this.mediaIndex = segmentInfo.mediaIndex;\n this.partIndex = segmentInfo.partIndex; // any time an update finishes and the last segment is in the\n // buffer, end the stream. this ensures the \"ended\" event will\n // fire if playback reaches that point.\n\n if (this.isEndOfStream_(segmentInfo.mediaIndex, segmentInfo.playlist, segmentInfo.partIndex)) {\n this.endOfStream();\n } // used for testing\n\n this.trigger('appended');\n if (segmentInfo.hasAppendedData_) {\n this.mediaAppends++;\n }\n if (!this.paused()) {\n this.monitorBuffer_();\n }\n }\n /**\n * Records the current throughput of the decrypt, transmux, and append\n * portion of the semgment pipeline. `throughput.rate` is a the cumulative\n * moving average of the throughput. `throughput.count` is the number of\n * data points in the average.\n *\n * @private\n * @param {Object} segmentInfo the object returned by loadSegment\n */\n\n recordThroughput_(segmentInfo) {\n if (segmentInfo.duration < MIN_SEGMENT_DURATION_TO_SAVE_STATS) {\n this.logger_(`Ignoring segment's throughput because its duration of ${segmentInfo.duration}` + ` is less than the min to record ${MIN_SEGMENT_DURATION_TO_SAVE_STATS}`);\n return;\n }\n const rate = this.throughput.rate; // Add one to the time to ensure that we don't accidentally attempt to divide\n // by zero in the case where the throughput is ridiculously high\n\n const segmentProcessingTime = Date.now() - segmentInfo.endOfAllRequests + 1; // Multiply by 8000 to convert from bytes/millisecond to bits/second\n\n const segmentProcessingThroughput = Math.floor(segmentInfo.byteLength / segmentProcessingTime * 8 * 1000); // This is just a cumulative moving average calculation:\n // newAvg = oldAvg + (sample - oldAvg) / (sampleCount + 1)\n\n this.throughput.rate += (segmentProcessingThroughput - rate) / ++this.throughput.count;\n }\n /**\n * Adds a cue to the segment-metadata track with some metadata information about the\n * segment\n *\n * @private\n * @param {Object} segmentInfo\n * the object returned by loadSegment\n * @method addSegmentMetadataCue_\n */\n\n addSegmentMetadataCue_(segmentInfo) {\n if (!this.segmentMetadataTrack_) {\n return;\n }\n const segment = segmentInfo.segment;\n const start = segment.start;\n const end = segment.end; // Do not try adding the cue if the start and end times are invalid.\n\n if (!finite(start) || !finite(end)) {\n return;\n }\n removeCuesFromTrack(start, end, this.segmentMetadataTrack_);\n const Cue = window$1.WebKitDataCue || window$1.VTTCue;\n const value = {\n custom: segment.custom,\n dateTimeObject: segment.dateTimeObject,\n dateTimeString: segment.dateTimeString,\n programDateTime: segment.programDateTime,\n bandwidth: segmentInfo.playlist.attributes.BANDWIDTH,\n resolution: segmentInfo.playlist.attributes.RESOLUTION,\n codecs: segmentInfo.playlist.attributes.CODECS,\n byteLength: segmentInfo.byteLength,\n uri: segmentInfo.uri,\n timeline: segmentInfo.timeline,\n playlist: segmentInfo.playlist.id,\n start,\n end\n };\n const data = JSON.stringify(value);\n const cue = new Cue(start, end, data); // Attach the metadata to the value property of the cue to keep consistency between\n // the differences of WebKitDataCue in safari and VTTCue in other browsers\n\n cue.value = value;\n this.segmentMetadataTrack_.addCue(cue);\n }\n}\nfunction noop() {}\nconst toTitleCase = function (string) {\n if (typeof string !== 'string') {\n return string;\n }\n return string.replace(/./, w => w.toUpperCase());\n};\n\n/**\n * @file source-updater.js\n */\nconst bufferTypes = ['video', 'audio'];\nconst updating = (type, sourceUpdater) => {\n const sourceBuffer = sourceUpdater[`${type}Buffer`];\n return sourceBuffer && sourceBuffer.updating || sourceUpdater.queuePending[type];\n};\nconst nextQueueIndexOfType = (type, queue) => {\n for (let i = 0; i < queue.length; i++) {\n const queueEntry = queue[i];\n if (queueEntry.type === 'mediaSource') {\n // If the next entry is a media source entry (uses multiple source buffers), block\n // processing to allow it to go through first.\n return null;\n }\n if (queueEntry.type === type) {\n return i;\n }\n }\n return null;\n};\nconst shiftQueue = (type, sourceUpdater) => {\n if (sourceUpdater.queue.length === 0) {\n return;\n }\n let queueIndex = 0;\n let queueEntry = sourceUpdater.queue[queueIndex];\n if (queueEntry.type === 'mediaSource') {\n if (!sourceUpdater.updating() && sourceUpdater.mediaSource.readyState !== 'closed') {\n sourceUpdater.queue.shift();\n queueEntry.action(sourceUpdater);\n if (queueEntry.doneFn) {\n queueEntry.doneFn();\n } // Only specific source buffer actions must wait for async updateend events. Media\n // Source actions process synchronously. Therefore, both audio and video source\n // buffers are now clear to process the next queue entries.\n\n shiftQueue('audio', sourceUpdater);\n shiftQueue('video', sourceUpdater);\n } // Media Source actions require both source buffers, so if the media source action\n // couldn't process yet (because one or both source buffers are busy), block other\n // queue actions until both are available and the media source action can process.\n\n return;\n }\n if (type === 'mediaSource') {\n // If the queue was shifted by a media source action (this happens when pushing a\n // media source action onto the queue), then it wasn't from an updateend event from an\n // audio or video source buffer, so there's no change from previous state, and no\n // processing should be done.\n return;\n } // Media source queue entries don't need to consider whether the source updater is\n // started (i.e., source buffers are created) as they don't need the source buffers, but\n // source buffer queue entries do.\n\n if (!sourceUpdater.ready() || sourceUpdater.mediaSource.readyState === 'closed' || updating(type, sourceUpdater)) {\n return;\n }\n if (queueEntry.type !== type) {\n queueIndex = nextQueueIndexOfType(type, sourceUpdater.queue);\n if (queueIndex === null) {\n // Either there's no queue entry that uses this source buffer type in the queue, or\n // there's a media source queue entry before the next entry of this type, in which\n // case wait for that action to process first.\n return;\n }\n queueEntry = sourceUpdater.queue[queueIndex];\n }\n sourceUpdater.queue.splice(queueIndex, 1); // Keep a record that this source buffer type is in use.\n //\n // The queue pending operation must be set before the action is performed in the event\n // that the action results in a synchronous event that is acted upon. For instance, if\n // an exception is thrown that can be handled, it's possible that new actions will be\n // appended to an empty queue and immediately executed, but would not have the correct\n // pending information if this property was set after the action was performed.\n\n sourceUpdater.queuePending[type] = queueEntry;\n queueEntry.action(type, sourceUpdater);\n if (!queueEntry.doneFn) {\n // synchronous operation, process next entry\n sourceUpdater.queuePending[type] = null;\n shiftQueue(type, sourceUpdater);\n return;\n }\n};\nconst cleanupBuffer = (type, sourceUpdater) => {\n const buffer = sourceUpdater[`${type}Buffer`];\n const titleType = toTitleCase(type);\n if (!buffer) {\n return;\n }\n buffer.removeEventListener('updateend', sourceUpdater[`on${titleType}UpdateEnd_`]);\n buffer.removeEventListener('error', sourceUpdater[`on${titleType}Error_`]);\n sourceUpdater.codecs[type] = null;\n sourceUpdater[`${type}Buffer`] = null;\n};\nconst inSourceBuffers = (mediaSource, sourceBuffer) => mediaSource && sourceBuffer && Array.prototype.indexOf.call(mediaSource.sourceBuffers, sourceBuffer) !== -1;\nconst actions = {\n appendBuffer: (bytes, segmentInfo, onError) => (type, sourceUpdater) => {\n const sourceBuffer = sourceUpdater[`${type}Buffer`]; // can't do anything if the media source / source buffer is null\n // or the media source does not contain this source buffer.\n\n if (!inSourceBuffers(sourceUpdater.mediaSource, sourceBuffer)) {\n return;\n }\n sourceUpdater.logger_(`Appending segment ${segmentInfo.mediaIndex}'s ${bytes.length} bytes to ${type}Buffer`);\n try {\n sourceBuffer.appendBuffer(bytes);\n } catch (e) {\n sourceUpdater.logger_(`Error with code ${e.code} ` + (e.code === QUOTA_EXCEEDED_ERR ? '(QUOTA_EXCEEDED_ERR) ' : '') + `when appending segment ${segmentInfo.mediaIndex} to ${type}Buffer`);\n sourceUpdater.queuePending[type] = null;\n onError(e);\n }\n },\n remove: (start, end) => (type, sourceUpdater) => {\n const sourceBuffer = sourceUpdater[`${type}Buffer`]; // can't do anything if the media source / source buffer is null\n // or the media source does not contain this source buffer.\n\n if (!inSourceBuffers(sourceUpdater.mediaSource, sourceBuffer)) {\n return;\n }\n sourceUpdater.logger_(`Removing ${start} to ${end} from ${type}Buffer`);\n try {\n sourceBuffer.remove(start, end);\n } catch (e) {\n sourceUpdater.logger_(`Remove ${start} to ${end} from ${type}Buffer failed`);\n }\n },\n timestampOffset: offset => (type, sourceUpdater) => {\n const sourceBuffer = sourceUpdater[`${type}Buffer`]; // can't do anything if the media source / source buffer is null\n // or the media source does not contain this source buffer.\n\n if (!inSourceBuffers(sourceUpdater.mediaSource, sourceBuffer)) {\n return;\n }\n sourceUpdater.logger_(`Setting ${type}timestampOffset to ${offset}`);\n sourceBuffer.timestampOffset = offset;\n },\n callback: callback => (type, sourceUpdater) => {\n callback();\n },\n endOfStream: error => sourceUpdater => {\n if (sourceUpdater.mediaSource.readyState !== 'open') {\n return;\n }\n sourceUpdater.logger_(`Calling mediaSource endOfStream(${error || ''})`);\n try {\n sourceUpdater.mediaSource.endOfStream(error);\n } catch (e) {\n videojs.log.warn('Failed to call media source endOfStream', e);\n }\n },\n duration: duration => sourceUpdater => {\n sourceUpdater.logger_(`Setting mediaSource duration to ${duration}`);\n try {\n sourceUpdater.mediaSource.duration = duration;\n } catch (e) {\n videojs.log.warn('Failed to set media source duration', e);\n }\n },\n abort: () => (type, sourceUpdater) => {\n if (sourceUpdater.mediaSource.readyState !== 'open') {\n return;\n }\n const sourceBuffer = sourceUpdater[`${type}Buffer`]; // can't do anything if the media source / source buffer is null\n // or the media source does not contain this source buffer.\n\n if (!inSourceBuffers(sourceUpdater.mediaSource, sourceBuffer)) {\n return;\n }\n sourceUpdater.logger_(`calling abort on ${type}Buffer`);\n try {\n sourceBuffer.abort();\n } catch (e) {\n videojs.log.warn(`Failed to abort on ${type}Buffer`, e);\n }\n },\n addSourceBuffer: (type, codec) => sourceUpdater => {\n const titleType = toTitleCase(type);\n const mime = getMimeForCodec(codec);\n sourceUpdater.logger_(`Adding ${type}Buffer with codec ${codec} to mediaSource`);\n const sourceBuffer = sourceUpdater.mediaSource.addSourceBuffer(mime);\n sourceBuffer.addEventListener('updateend', sourceUpdater[`on${titleType}UpdateEnd_`]);\n sourceBuffer.addEventListener('error', sourceUpdater[`on${titleType}Error_`]);\n sourceUpdater.codecs[type] = codec;\n sourceUpdater[`${type}Buffer`] = sourceBuffer;\n },\n removeSourceBuffer: type => sourceUpdater => {\n const sourceBuffer = sourceUpdater[`${type}Buffer`];\n cleanupBuffer(type, sourceUpdater); // can't do anything if the media source / source buffer is null\n // or the media source does not contain this source buffer.\n\n if (!inSourceBuffers(sourceUpdater.mediaSource, sourceBuffer)) {\n return;\n }\n sourceUpdater.logger_(`Removing ${type}Buffer with codec ${sourceUpdater.codecs[type]} from mediaSource`);\n try {\n sourceUpdater.mediaSource.removeSourceBuffer(sourceBuffer);\n } catch (e) {\n videojs.log.warn(`Failed to removeSourceBuffer ${type}Buffer`, e);\n }\n },\n changeType: codec => (type, sourceUpdater) => {\n const sourceBuffer = sourceUpdater[`${type}Buffer`];\n const mime = getMimeForCodec(codec); // can't do anything if the media source / source buffer is null\n // or the media source does not contain this source buffer.\n\n if (!inSourceBuffers(sourceUpdater.mediaSource, sourceBuffer)) {\n return;\n } // do not update codec if we don't need to.\n\n if (sourceUpdater.codecs[type] === codec) {\n return;\n }\n sourceUpdater.logger_(`changing ${type}Buffer codec from ${sourceUpdater.codecs[type]} to ${codec}`); // check if change to the provided type is supported\n\n try {\n sourceBuffer.changeType(mime);\n sourceUpdater.codecs[type] = codec;\n } catch (e) {\n videojs.log.warn(`Failed to changeType on ${type}Buffer`, e);\n }\n }\n};\nconst pushQueue = _ref59 => {\n let type = _ref59.type,\n sourceUpdater = _ref59.sourceUpdater,\n action = _ref59.action,\n doneFn = _ref59.doneFn,\n name = _ref59.name;\n sourceUpdater.queue.push({\n type,\n action,\n doneFn,\n name\n });\n shiftQueue(type, sourceUpdater);\n};\nconst onUpdateend = (type, sourceUpdater) => e => {\n // Although there should, in theory, be a pending action for any updateend receieved,\n // there are some actions that may trigger updateend events without set definitions in\n // the w3c spec. For instance, setting the duration on the media source may trigger\n // updateend events on source buffers. This does not appear to be in the spec. As such,\n // if we encounter an updateend without a corresponding pending action from our queue\n // for that source buffer type, process the next action.\n if (sourceUpdater.queuePending[type]) {\n const doneFn = sourceUpdater.queuePending[type].doneFn;\n sourceUpdater.queuePending[type] = null;\n if (doneFn) {\n // if there's an error, report it\n doneFn(sourceUpdater[`${type}Error_`]);\n }\n }\n shiftQueue(type, sourceUpdater);\n};\n/**\n * A queue of callbacks to be serialized and applied when a\n * MediaSource and its associated SourceBuffers are not in the\n * updating state. It is used by the segment loader to update the\n * underlying SourceBuffers when new data is loaded, for instance.\n *\n * @class SourceUpdater\n * @param {MediaSource} mediaSource the MediaSource to create the SourceBuffer from\n * @param {string} mimeType the desired MIME type of the underlying SourceBuffer\n */\n\nclass SourceUpdater extends videojs.EventTarget {\n constructor(mediaSource) {\n super();\n this.mediaSource = mediaSource;\n this.sourceopenListener_ = () => shiftQueue('mediaSource', this);\n this.mediaSource.addEventListener('sourceopen', this.sourceopenListener_);\n this.logger_ = logger('SourceUpdater'); // initial timestamp offset is 0\n\n this.audioTimestampOffset_ = 0;\n this.videoTimestampOffset_ = 0;\n this.queue = [];\n this.queuePending = {\n audio: null,\n video: null\n };\n this.delayedAudioAppendQueue_ = [];\n this.videoAppendQueued_ = false;\n this.codecs = {};\n this.onVideoUpdateEnd_ = onUpdateend('video', this);\n this.onAudioUpdateEnd_ = onUpdateend('audio', this);\n this.onVideoError_ = e => {\n // used for debugging\n this.videoError_ = e;\n };\n this.onAudioError_ = e => {\n // used for debugging\n this.audioError_ = e;\n };\n this.createdSourceBuffers_ = false;\n this.initializedEme_ = false;\n this.triggeredReady_ = false;\n }\n initializedEme() {\n this.initializedEme_ = true;\n this.triggerReady();\n }\n hasCreatedSourceBuffers() {\n // if false, likely waiting on one of the segment loaders to get enough data to create\n // source buffers\n return this.createdSourceBuffers_;\n }\n hasInitializedAnyEme() {\n return this.initializedEme_;\n }\n ready() {\n return this.hasCreatedSourceBuffers() && this.hasInitializedAnyEme();\n }\n createSourceBuffers(codecs) {\n if (this.hasCreatedSourceBuffers()) {\n // already created them before\n return;\n } // the intial addOrChangeSourceBuffers will always be\n // two add buffers.\n\n this.addOrChangeSourceBuffers(codecs);\n this.createdSourceBuffers_ = true;\n this.trigger('createdsourcebuffers');\n this.triggerReady();\n }\n triggerReady() {\n // only allow ready to be triggered once, this prevents the case\n // where:\n // 1. we trigger createdsourcebuffers\n // 2. ie 11 synchronously initializates eme\n // 3. the synchronous initialization causes us to trigger ready\n // 4. We go back to the ready check in createSourceBuffers and ready is triggered again.\n if (this.ready() && !this.triggeredReady_) {\n this.triggeredReady_ = true;\n this.trigger('ready');\n }\n }\n /**\n * Add a type of source buffer to the media source.\n *\n * @param {string} type\n * The type of source buffer to add.\n *\n * @param {string} codec\n * The codec to add the source buffer with.\n */\n\n addSourceBuffer(type, codec) {\n pushQueue({\n type: 'mediaSource',\n sourceUpdater: this,\n action: actions.addSourceBuffer(type, codec),\n name: 'addSourceBuffer'\n });\n }\n /**\n * call abort on a source buffer.\n *\n * @param {string} type\n * The type of source buffer to call abort on.\n */\n\n abort(type) {\n pushQueue({\n type,\n sourceUpdater: this,\n action: actions.abort(type),\n name: 'abort'\n });\n }\n /**\n * Call removeSourceBuffer and remove a specific type\n * of source buffer on the mediaSource.\n *\n * @param {string} type\n * The type of source buffer to remove.\n */\n\n removeSourceBuffer(type) {\n if (!this.canRemoveSourceBuffer()) {\n videojs.log.error('removeSourceBuffer is not supported!');\n return;\n }\n pushQueue({\n type: 'mediaSource',\n sourceUpdater: this,\n action: actions.removeSourceBuffer(type),\n name: 'removeSourceBuffer'\n });\n }\n /**\n * Whether or not the removeSourceBuffer function is supported\n * on the mediaSource.\n *\n * @return {boolean}\n * if removeSourceBuffer can be called.\n */\n\n canRemoveSourceBuffer() {\n // As of Firefox 83 removeSourceBuffer\n // throws errors, so we report that it does not support this.\n return !videojs.browser.IS_FIREFOX && window$1.MediaSource && window$1.MediaSource.prototype && typeof window$1.MediaSource.prototype.removeSourceBuffer === 'function';\n }\n /**\n * Whether or not the changeType function is supported\n * on our SourceBuffers.\n *\n * @return {boolean}\n * if changeType can be called.\n */\n\n static canChangeType() {\n return window$1.SourceBuffer && window$1.SourceBuffer.prototype && typeof window$1.SourceBuffer.prototype.changeType === 'function';\n }\n /**\n * Whether or not the changeType function is supported\n * on our SourceBuffers.\n *\n * @return {boolean}\n * if changeType can be called.\n */\n\n canChangeType() {\n return this.constructor.canChangeType();\n }\n /**\n * Call the changeType function on a source buffer, given the code and type.\n *\n * @param {string} type\n * The type of source buffer to call changeType on.\n *\n * @param {string} codec\n * The codec string to change type with on the source buffer.\n */\n\n changeType(type, codec) {\n if (!this.canChangeType()) {\n videojs.log.error('changeType is not supported!');\n return;\n }\n pushQueue({\n type,\n sourceUpdater: this,\n action: actions.changeType(codec),\n name: 'changeType'\n });\n }\n /**\n * Add source buffers with a codec or, if they are already created,\n * call changeType on source buffers using changeType.\n *\n * @param {Object} codecs\n * Codecs to switch to\n */\n\n addOrChangeSourceBuffers(codecs) {\n if (!codecs || typeof codecs !== 'object' || Object.keys(codecs).length === 0) {\n throw new Error('Cannot addOrChangeSourceBuffers to undefined codecs');\n }\n Object.keys(codecs).forEach(type => {\n const codec = codecs[type];\n if (!this.hasCreatedSourceBuffers()) {\n return this.addSourceBuffer(type, codec);\n }\n if (this.canChangeType()) {\n this.changeType(type, codec);\n }\n });\n }\n /**\n * Queue an update to append an ArrayBuffer.\n *\n * @param {MediaObject} object containing audioBytes and/or videoBytes\n * @param {Function} done the function to call when done\n * @see http://www.w3.org/TR/media-source/#widl-SourceBuffer-appendBuffer-void-ArrayBuffer-data\n */\n\n appendBuffer(options, doneFn) {\n const segmentInfo = options.segmentInfo,\n type = options.type,\n bytes = options.bytes;\n this.processedAppend_ = true;\n if (type === 'audio' && this.videoBuffer && !this.videoAppendQueued_) {\n this.delayedAudioAppendQueue_.push([options, doneFn]);\n this.logger_(`delayed audio append of ${bytes.length} until video append`);\n return;\n } // In the case of certain errors, for instance, QUOTA_EXCEEDED_ERR, updateend will\n // not be fired. This means that the queue will be blocked until the next action\n // taken by the segment-loader. Provide a mechanism for segment-loader to handle\n // these errors by calling the doneFn with the specific error.\n\n const onError = doneFn;\n pushQueue({\n type,\n sourceUpdater: this,\n action: actions.appendBuffer(bytes, segmentInfo || {\n mediaIndex: -1\n }, onError),\n doneFn,\n name: 'appendBuffer'\n });\n if (type === 'video') {\n this.videoAppendQueued_ = true;\n if (!this.delayedAudioAppendQueue_.length) {\n return;\n }\n const queue = this.delayedAudioAppendQueue_.slice();\n this.logger_(`queuing delayed audio ${queue.length} appendBuffers`);\n this.delayedAudioAppendQueue_.length = 0;\n queue.forEach(que => {\n this.appendBuffer.apply(this, que);\n });\n }\n }\n /**\n * Get the audio buffer's buffered timerange.\n *\n * @return {TimeRange}\n * The audio buffer's buffered time range\n */\n\n audioBuffered() {\n // no media source/source buffer or it isn't in the media sources\n // source buffer list\n if (!inSourceBuffers(this.mediaSource, this.audioBuffer)) {\n return createTimeRanges();\n }\n return this.audioBuffer.buffered ? this.audioBuffer.buffered : createTimeRanges();\n }\n /**\n * Get the video buffer's buffered timerange.\n *\n * @return {TimeRange}\n * The video buffer's buffered time range\n */\n\n videoBuffered() {\n // no media source/source buffer or it isn't in the media sources\n // source buffer list\n if (!inSourceBuffers(this.mediaSource, this.videoBuffer)) {\n return createTimeRanges();\n }\n return this.videoBuffer.buffered ? this.videoBuffer.buffered : createTimeRanges();\n }\n /**\n * Get a combined video/audio buffer's buffered timerange.\n *\n * @return {TimeRange}\n * the combined time range\n */\n\n buffered() {\n const video = inSourceBuffers(this.mediaSource, this.videoBuffer) ? this.videoBuffer : null;\n const audio = inSourceBuffers(this.mediaSource, this.audioBuffer) ? this.audioBuffer : null;\n if (audio && !video) {\n return this.audioBuffered();\n }\n if (video && !audio) {\n return this.videoBuffered();\n }\n return bufferIntersection(this.audioBuffered(), this.videoBuffered());\n }\n /**\n * Add a callback to the queue that will set duration on the mediaSource.\n *\n * @param {number} duration\n * The duration to set\n *\n * @param {Function} [doneFn]\n * function to run after duration has been set.\n */\n\n setDuration(duration) {\n let doneFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n // In order to set the duration on the media source, it's necessary to wait for all\n // source buffers to no longer be updating. \"If the updating attribute equals true on\n // any SourceBuffer in sourceBuffers, then throw an InvalidStateError exception and\n // abort these steps.\" (source: https://www.w3.org/TR/media-source/#attributes).\n pushQueue({\n type: 'mediaSource',\n sourceUpdater: this,\n action: actions.duration(duration),\n name: 'duration',\n doneFn\n });\n }\n /**\n * Add a mediaSource endOfStream call to the queue\n *\n * @param {Error} [error]\n * Call endOfStream with an error\n *\n * @param {Function} [doneFn]\n * A function that should be called when the\n * endOfStream call has finished.\n */\n\n endOfStream() {\n let error = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n let doneFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n if (typeof error !== 'string') {\n error = undefined;\n } // In order to set the duration on the media source, it's necessary to wait for all\n // source buffers to no longer be updating. \"If the updating attribute equals true on\n // any SourceBuffer in sourceBuffers, then throw an InvalidStateError exception and\n // abort these steps.\" (source: https://www.w3.org/TR/media-source/#attributes).\n\n pushQueue({\n type: 'mediaSource',\n sourceUpdater: this,\n action: actions.endOfStream(error),\n name: 'endOfStream',\n doneFn\n });\n }\n /**\n * Queue an update to remove a time range from the buffer.\n *\n * @param {number} start where to start the removal\n * @param {number} end where to end the removal\n * @param {Function} [done=noop] optional callback to be executed when the remove\n * operation is complete\n * @see http://www.w3.org/TR/media-source/#widl-SourceBuffer-remove-void-double-start-unrestricted-double-end\n */\n\n removeAudio(start, end) {\n let done = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;\n if (!this.audioBuffered().length || this.audioBuffered().end(0) === 0) {\n done();\n return;\n }\n pushQueue({\n type: 'audio',\n sourceUpdater: this,\n action: actions.remove(start, end),\n doneFn: done,\n name: 'remove'\n });\n }\n /**\n * Queue an update to remove a time range from the buffer.\n *\n * @param {number} start where to start the removal\n * @param {number} end where to end the removal\n * @param {Function} [done=noop] optional callback to be executed when the remove\n * operation is complete\n * @see http://www.w3.org/TR/media-source/#widl-SourceBuffer-remove-void-double-start-unrestricted-double-end\n */\n\n removeVideo(start, end) {\n let done = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;\n if (!this.videoBuffered().length || this.videoBuffered().end(0) === 0) {\n done();\n return;\n }\n pushQueue({\n type: 'video',\n sourceUpdater: this,\n action: actions.remove(start, end),\n doneFn: done,\n name: 'remove'\n });\n }\n /**\n * Whether the underlying sourceBuffer is updating or not\n *\n * @return {boolean} the updating status of the SourceBuffer\n */\n\n updating() {\n // the audio/video source buffer is updating\n if (updating('audio', this) || updating('video', this)) {\n return true;\n }\n return false;\n }\n /**\n * Set/get the timestampoffset on the audio SourceBuffer\n *\n * @return {number} the timestamp offset\n */\n\n audioTimestampOffset(offset) {\n if (typeof offset !== 'undefined' && this.audioBuffer &&\n // no point in updating if it's the same\n this.audioTimestampOffset_ !== offset) {\n pushQueue({\n type: 'audio',\n sourceUpdater: this,\n action: actions.timestampOffset(offset),\n name: 'timestampOffset'\n });\n this.audioTimestampOffset_ = offset;\n }\n return this.audioTimestampOffset_;\n }\n /**\n * Set/get the timestampoffset on the video SourceBuffer\n *\n * @return {number} the timestamp offset\n */\n\n videoTimestampOffset(offset) {\n if (typeof offset !== 'undefined' && this.videoBuffer &&\n // no point in updating if it's the same\n this.videoTimestampOffset !== offset) {\n pushQueue({\n type: 'video',\n sourceUpdater: this,\n action: actions.timestampOffset(offset),\n name: 'timestampOffset'\n });\n this.videoTimestampOffset_ = offset;\n }\n return this.videoTimestampOffset_;\n }\n /**\n * Add a function to the queue that will be called\n * when it is its turn to run in the audio queue.\n *\n * @param {Function} callback\n * The callback to queue.\n */\n\n audioQueueCallback(callback) {\n if (!this.audioBuffer) {\n return;\n }\n pushQueue({\n type: 'audio',\n sourceUpdater: this,\n action: actions.callback(callback),\n name: 'callback'\n });\n }\n /**\n * Add a function to the queue that will be called\n * when it is its turn to run in the video queue.\n *\n * @param {Function} callback\n * The callback to queue.\n */\n\n videoQueueCallback(callback) {\n if (!this.videoBuffer) {\n return;\n }\n pushQueue({\n type: 'video',\n sourceUpdater: this,\n action: actions.callback(callback),\n name: 'callback'\n });\n }\n /**\n * dispose of the source updater and the underlying sourceBuffer\n */\n\n dispose() {\n this.trigger('dispose');\n bufferTypes.forEach(type => {\n this.abort(type);\n if (this.canRemoveSourceBuffer()) {\n this.removeSourceBuffer(type);\n } else {\n this[`${type}QueueCallback`](() => cleanupBuffer(type, this));\n }\n });\n this.videoAppendQueued_ = false;\n this.delayedAudioAppendQueue_.length = 0;\n if (this.sourceopenListener_) {\n this.mediaSource.removeEventListener('sourceopen', this.sourceopenListener_);\n }\n this.off();\n }\n}\nconst uint8ToUtf8 = uintArray => decodeURIComponent(escape(String.fromCharCode.apply(null, uintArray)));\nconst bufferToHexString = buffer => {\n const uInt8Buffer = new Uint8Array(buffer);\n return Array.from(uInt8Buffer).map(byte => byte.toString(16).padStart(2, '0')).join('');\n};\n\n/**\n * @file vtt-segment-loader.js\n */\nconst VTT_LINE_TERMINATORS = new Uint8Array('\\n\\n'.split('').map(char => char.charCodeAt(0)));\nclass NoVttJsError extends Error {\n constructor() {\n super('Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.');\n }\n}\n/**\n * An object that manages segment loading and appending.\n *\n * @class VTTSegmentLoader\n * @param {Object} options required and optional options\n * @extends videojs.EventTarget\n */\n\nclass VTTSegmentLoader extends SegmentLoader {\n constructor(settings) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n super(settings, options); // SegmentLoader requires a MediaSource be specified or it will throw an error;\n // however, VTTSegmentLoader has no need of a media source, so delete the reference\n\n this.mediaSource_ = null;\n this.subtitlesTrack_ = null;\n this.loaderType_ = 'subtitle';\n this.featuresNativeTextTracks_ = settings.featuresNativeTextTracks;\n this.loadVttJs = settings.loadVttJs; // The VTT segment will have its own time mappings. Saving VTT segment timing info in\n // the sync controller leads to improper behavior.\n\n this.shouldSaveSegmentTimingInfo_ = false;\n }\n createTransmuxer_() {\n // don't need to transmux any subtitles\n return null;\n }\n /**\n * Indicates which time ranges are buffered\n *\n * @return {TimeRange}\n * TimeRange object representing the current buffered ranges\n */\n\n buffered_() {\n if (!this.subtitlesTrack_ || !this.subtitlesTrack_.cues || !this.subtitlesTrack_.cues.length) {\n return createTimeRanges();\n }\n const cues = this.subtitlesTrack_.cues;\n const start = cues[0].startTime;\n const end = cues[cues.length - 1].startTime;\n return createTimeRanges([[start, end]]);\n }\n /**\n * Gets and sets init segment for the provided map\n *\n * @param {Object} map\n * The map object representing the init segment to get or set\n * @param {boolean=} set\n * If true, the init segment for the provided map should be saved\n * @return {Object}\n * map object for desired init segment\n */\n\n initSegmentForMap(map) {\n let set = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (!map) {\n return null;\n }\n const id = initSegmentId(map);\n let storedMap = this.initSegments_[id];\n if (set && !storedMap && map.bytes) {\n // append WebVTT line terminators to the media initialization segment if it exists\n // to follow the WebVTT spec (https://w3c.github.io/webvtt/#file-structure) that\n // requires two or more WebVTT line terminators between the WebVTT header and the\n // rest of the file\n const combinedByteLength = VTT_LINE_TERMINATORS.byteLength + map.bytes.byteLength;\n const combinedSegment = new Uint8Array(combinedByteLength);\n combinedSegment.set(map.bytes);\n combinedSegment.set(VTT_LINE_TERMINATORS, map.bytes.byteLength);\n this.initSegments_[id] = storedMap = {\n resolvedUri: map.resolvedUri,\n byterange: map.byterange,\n bytes: combinedSegment\n };\n }\n return storedMap || map;\n }\n /**\n * Returns true if all configuration required for loading is present, otherwise false.\n *\n * @return {boolean} True if the all configuration is ready for loading\n * @private\n */\n\n couldBeginLoading_() {\n return this.playlist_ && this.subtitlesTrack_ && !this.paused();\n }\n /**\n * Once all the starting parameters have been specified, begin\n * operation. This method should only be invoked from the INIT\n * state.\n *\n * @private\n */\n\n init_() {\n this.state = 'READY';\n this.resetEverything();\n return this.monitorBuffer_();\n }\n /**\n * Set a subtitle track on the segment loader to add subtitles to\n *\n * @param {TextTrack=} track\n * The text track to add loaded subtitles to\n * @return {TextTrack}\n * Returns the subtitles track\n */\n\n track(track) {\n if (typeof track === 'undefined') {\n return this.subtitlesTrack_;\n }\n this.subtitlesTrack_ = track; // if we were unpaused but waiting for a sourceUpdater, start\n // buffering now\n\n if (this.state === 'INIT' && this.couldBeginLoading_()) {\n this.init_();\n }\n return this.subtitlesTrack_;\n }\n /**\n * Remove any data in the source buffer between start and end times\n *\n * @param {number} start - the start time of the region to remove from the buffer\n * @param {number} end - the end time of the region to remove from the buffer\n */\n\n remove(start, end) {\n removeCuesFromTrack(start, end, this.subtitlesTrack_);\n }\n /**\n * fill the buffer with segements unless the sourceBuffers are\n * currently updating\n *\n * Note: this function should only ever be called by monitorBuffer_\n * and never directly\n *\n * @private\n */\n\n fillBuffer_() {\n // see if we need to begin loading immediately\n const segmentInfo = this.chooseNextRequest_();\n if (!segmentInfo) {\n return;\n }\n if (this.syncController_.timestampOffsetForTimeline(segmentInfo.timeline) === null) {\n // We don't have the timestamp offset that we need to sync subtitles.\n // Rerun on a timestamp offset or user interaction.\n const checkTimestampOffset = () => {\n this.state = 'READY';\n if (!this.paused()) {\n // if not paused, queue a buffer check as soon as possible\n this.monitorBuffer_();\n }\n };\n this.syncController_.one('timestampoffset', checkTimestampOffset);\n this.state = 'WAITING_ON_TIMELINE';\n return;\n }\n this.loadSegment_(segmentInfo);\n } // never set a timestamp offset for vtt segments.\n\n timestampOffsetForSegment_() {\n return null;\n }\n chooseNextRequest_() {\n return this.skipEmptySegments_(super.chooseNextRequest_());\n }\n /**\n * Prevents the segment loader from requesting segments we know contain no subtitles\n * by walking forward until we find the next segment that we don't know whether it is\n * empty or not.\n *\n * @param {Object} segmentInfo\n * a segment info object that describes the current segment\n * @return {Object}\n * a segment info object that describes the current segment\n */\n\n skipEmptySegments_(segmentInfo) {\n while (segmentInfo && segmentInfo.segment.empty) {\n // stop at the last possible segmentInfo\n if (segmentInfo.mediaIndex + 1 >= segmentInfo.playlist.segments.length) {\n segmentInfo = null;\n break;\n }\n segmentInfo = this.generateSegmentInfo_({\n playlist: segmentInfo.playlist,\n mediaIndex: segmentInfo.mediaIndex + 1,\n startOfSegment: segmentInfo.startOfSegment + segmentInfo.duration,\n isSyncRequest: segmentInfo.isSyncRequest\n });\n }\n return segmentInfo;\n }\n stopForError(error) {\n this.error(error);\n this.state = 'READY';\n this.pause();\n this.trigger('error');\n }\n /**\n * append a decrypted segement to the SourceBuffer through a SourceUpdater\n *\n * @private\n */\n\n segmentRequestFinished_(error, simpleSegment, result) {\n if (!this.subtitlesTrack_) {\n this.state = 'READY';\n return;\n }\n this.saveTransferStats_(simpleSegment.stats); // the request was aborted\n\n if (!this.pendingSegment_) {\n this.state = 'READY';\n this.mediaRequestsAborted += 1;\n return;\n }\n if (error) {\n if (error.code === REQUEST_ERRORS.TIMEOUT) {\n this.handleTimeout_();\n }\n if (error.code === REQUEST_ERRORS.ABORTED) {\n this.mediaRequestsAborted += 1;\n } else {\n this.mediaRequestsErrored += 1;\n }\n this.stopForError(error);\n return;\n }\n const segmentInfo = this.pendingSegment_; // although the VTT segment loader bandwidth isn't really used, it's good to\n // maintain functionality between segment loaders\n\n this.saveBandwidthRelatedStats_(segmentInfo.duration, simpleSegment.stats); // if this request included a segment key, save that data in the cache\n\n if (simpleSegment.key) {\n this.segmentKey(simpleSegment.key, true);\n }\n this.state = 'APPENDING'; // used for tests\n\n this.trigger('appending');\n const segment = segmentInfo.segment;\n if (segment.map) {\n segment.map.bytes = simpleSegment.map.bytes;\n }\n segmentInfo.bytes = simpleSegment.bytes; // Make sure that vttjs has loaded, otherwise, load it and wait till it finished loading\n\n if (typeof window$1.WebVTT !== 'function' && typeof this.loadVttJs === 'function') {\n this.state = 'WAITING_ON_VTTJS'; // should be fine to call multiple times\n // script will be loaded once but multiple listeners will be added to the queue, which is expected.\n\n this.loadVttJs().then(() => this.segmentRequestFinished_(error, simpleSegment, result), () => this.stopForError({\n message: 'Error loading vtt.js'\n }));\n return;\n }\n segment.requested = true;\n try {\n this.parseVTTCues_(segmentInfo);\n } catch (e) {\n this.stopForError({\n message: e.message\n });\n return;\n }\n this.updateTimeMapping_(segmentInfo, this.syncController_.timelines[segmentInfo.timeline], this.playlist_);\n if (segmentInfo.cues.length) {\n segmentInfo.timingInfo = {\n start: segmentInfo.cues[0].startTime,\n end: segmentInfo.cues[segmentInfo.cues.length - 1].endTime\n };\n } else {\n segmentInfo.timingInfo = {\n start: segmentInfo.startOfSegment,\n end: segmentInfo.startOfSegment + segmentInfo.duration\n };\n }\n if (segmentInfo.isSyncRequest) {\n this.trigger('syncinfoupdate');\n this.pendingSegment_ = null;\n this.state = 'READY';\n return;\n }\n segmentInfo.byteLength = segmentInfo.bytes.byteLength;\n this.mediaSecondsLoaded += segment.duration; // Create VTTCue instances for each cue in the new segment and add them to\n // the subtitle track\n\n segmentInfo.cues.forEach(cue => {\n this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_ ? new window$1.VTTCue(cue.startTime, cue.endTime, cue.text) : cue);\n }); // Remove any duplicate cues from the subtitle track. The WebVTT spec allows\n // cues to have identical time-intervals, but if the text is also identical\n // we can safely assume it is a duplicate that can be removed (ex. when a cue\n // \"overlaps\" VTT segments)\n\n removeDuplicateCuesFromTrack(this.subtitlesTrack_);\n this.handleAppendsDone_();\n }\n handleData_() {// noop as we shouldn't be getting video/audio data captions\n // that we do not support here.\n }\n updateTimingInfoEnd_() {// noop\n }\n /**\n * Uses the WebVTT parser to parse the segment response\n *\n * @throws NoVttJsError\n *\n * @param {Object} segmentInfo\n * a segment info object that describes the current segment\n * @private\n */\n\n parseVTTCues_(segmentInfo) {\n let decoder;\n let decodeBytesToString = false;\n if (typeof window$1.WebVTT !== 'function') {\n // caller is responsible for exception handling.\n throw new NoVttJsError();\n }\n if (typeof window$1.TextDecoder === 'function') {\n decoder = new window$1.TextDecoder('utf8');\n } else {\n decoder = window$1.WebVTT.StringDecoder();\n decodeBytesToString = true;\n }\n const parser = new window$1.WebVTT.Parser(window$1, window$1.vttjs, decoder);\n segmentInfo.cues = [];\n segmentInfo.timestampmap = {\n MPEGTS: 0,\n LOCAL: 0\n };\n parser.oncue = segmentInfo.cues.push.bind(segmentInfo.cues);\n parser.ontimestampmap = map => {\n segmentInfo.timestampmap = map;\n };\n parser.onparsingerror = error => {\n videojs.log.warn('Error encountered when parsing cues: ' + error.message);\n };\n if (segmentInfo.segment.map) {\n let mapData = segmentInfo.segment.map.bytes;\n if (decodeBytesToString) {\n mapData = uint8ToUtf8(mapData);\n }\n parser.parse(mapData);\n }\n let segmentData = segmentInfo.bytes;\n if (decodeBytesToString) {\n segmentData = uint8ToUtf8(segmentData);\n }\n parser.parse(segmentData);\n parser.flush();\n }\n /**\n * Updates the start and end times of any cues parsed by the WebVTT parser using\n * the information parsed from the X-TIMESTAMP-MAP header and a TS to media time mapping\n * from the SyncController\n *\n * @param {Object} segmentInfo\n * a segment info object that describes the current segment\n * @param {Object} mappingObj\n * object containing a mapping from TS to media time\n * @param {Object} playlist\n * the playlist object containing the segment\n * @private\n */\n\n updateTimeMapping_(segmentInfo, mappingObj, playlist) {\n const segment = segmentInfo.segment;\n if (!mappingObj) {\n // If the sync controller does not have a mapping of TS to Media Time for the\n // timeline, then we don't have enough information to update the cue\n // start/end times\n return;\n }\n if (!segmentInfo.cues.length) {\n // If there are no cues, we also do not have enough information to figure out\n // segment timing. Mark that the segment contains no cues so we don't re-request\n // an empty segment.\n segment.empty = true;\n return;\n }\n const _segmentInfo$timestam = segmentInfo.timestampmap,\n MPEGTS = _segmentInfo$timestam.MPEGTS,\n LOCAL = _segmentInfo$timestam.LOCAL;\n /**\n * From the spec:\n * The MPEGTS media timestamp MUST use a 90KHz timescale,\n * even when non-WebVTT Media Segments use a different timescale.\n */\n\n const mpegTsInSeconds = MPEGTS / ONE_SECOND_IN_TS;\n const diff = mpegTsInSeconds - LOCAL + mappingObj.mapping;\n segmentInfo.cues.forEach(cue => {\n const duration = cue.endTime - cue.startTime;\n const startTime = MPEGTS === 0 ? cue.startTime + diff : this.handleRollover_(cue.startTime + diff, mappingObj.time);\n cue.startTime = Math.max(startTime, 0);\n cue.endTime = Math.max(startTime + duration, 0);\n });\n if (!playlist.syncInfo) {\n const firstStart = segmentInfo.cues[0].startTime;\n const lastStart = segmentInfo.cues[segmentInfo.cues.length - 1].startTime;\n playlist.syncInfo = {\n mediaSequence: playlist.mediaSequence + segmentInfo.mediaIndex,\n time: Math.min(firstStart, lastStart - segment.duration)\n };\n }\n }\n /**\n * MPEG-TS PES timestamps are limited to 2^33.\n * Once they reach 2^33, they roll over to 0.\n * mux.js handles PES timestamp rollover for the following scenarios:\n * [forward rollover(right)] ->\n * PES timestamps monotonically increase, and once they reach 2^33, they roll over to 0\n * [backward rollover(left)] -->\n * we seek back to position before rollover.\n *\n * According to the HLS SPEC:\n * When synchronizing WebVTT with PES timestamps, clients SHOULD account\n * for cases where the 33-bit PES timestamps have wrapped and the WebVTT\n * cue times have not. When the PES timestamp wraps, the WebVTT Segment\n * SHOULD have a X-TIMESTAMP-MAP header that maps the current WebVTT\n * time to the new (low valued) PES timestamp.\n *\n * So we want to handle rollover here and align VTT Cue start/end time to the player's time.\n */\n\n handleRollover_(value, reference) {\n if (reference === null) {\n return value;\n }\n let valueIn90khz = value * ONE_SECOND_IN_TS;\n const referenceIn90khz = reference * ONE_SECOND_IN_TS;\n let offset;\n if (referenceIn90khz < valueIn90khz) {\n // - 2^33\n offset = -8589934592;\n } else {\n // + 2^33\n offset = 8589934592;\n } // distance(value - reference) > 2^32\n\n while (Math.abs(valueIn90khz - referenceIn90khz) > 4294967296) {\n valueIn90khz += offset;\n }\n return valueIn90khz / ONE_SECOND_IN_TS;\n }\n}\n\n/**\n * @file ad-cue-tags.js\n */\n/**\n * Searches for an ad cue that overlaps with the given mediaTime\n *\n * @param {Object} track\n * the track to find the cue for\n *\n * @param {number} mediaTime\n * the time to find the cue at\n *\n * @return {Object|null}\n * the found cue or null\n */\n\nconst findAdCue = function (track, mediaTime) {\n const cues = track.cues;\n for (let i = 0; i < cues.length; i++) {\n const cue = cues[i];\n if (mediaTime >= cue.adStartTime && mediaTime <= cue.adEndTime) {\n return cue;\n }\n }\n return null;\n};\nconst updateAdCues = function (media, track) {\n let offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n if (!media.segments) {\n return;\n }\n let mediaTime = offset;\n let cue;\n for (let i = 0; i < media.segments.length; i++) {\n const segment = media.segments[i];\n if (!cue) {\n // Since the cues will span for at least the segment duration, adding a fudge\n // factor of half segment duration will prevent duplicate cues from being\n // created when timing info is not exact (e.g. cue start time initialized\n // at 10.006677, but next call mediaTime is 10.003332 )\n cue = findAdCue(track, mediaTime + segment.duration / 2);\n }\n if (cue) {\n if ('cueIn' in segment) {\n // Found a CUE-IN so end the cue\n cue.endTime = mediaTime;\n cue.adEndTime = mediaTime;\n mediaTime += segment.duration;\n cue = null;\n continue;\n }\n if (mediaTime < cue.endTime) {\n // Already processed this mediaTime for this cue\n mediaTime += segment.duration;\n continue;\n } // otherwise extend cue until a CUE-IN is found\n\n cue.endTime += segment.duration;\n } else {\n if ('cueOut' in segment) {\n cue = new window$1.VTTCue(mediaTime, mediaTime + segment.duration, segment.cueOut);\n cue.adStartTime = mediaTime; // Assumes tag format to be\n // #EXT-X-CUE-OUT:30\n\n cue.adEndTime = mediaTime + parseFloat(segment.cueOut);\n track.addCue(cue);\n }\n if ('cueOutCont' in segment) {\n // Entered into the middle of an ad cue\n // Assumes tag formate to be\n // #EXT-X-CUE-OUT-CONT:10/30\n const _segment$cueOutCont$s = segment.cueOutCont.split('/').map(parseFloat),\n _segment$cueOutCont$s2 = _slicedToArray(_segment$cueOutCont$s, 2),\n adOffset = _segment$cueOutCont$s2[0],\n adTotal = _segment$cueOutCont$s2[1];\n cue = new window$1.VTTCue(mediaTime, mediaTime + segment.duration, '');\n cue.adStartTime = mediaTime - adOffset;\n cue.adEndTime = cue.adStartTime + adTotal;\n track.addCue(cue);\n }\n }\n mediaTime += segment.duration;\n }\n};\n\n/**\n * @file sync-controller.js\n */\n// synchronize expired playlist segments.\n// the max media sequence diff is 48 hours of live stream\n// content with two second segments. Anything larger than that\n// will likely be invalid.\n\nconst MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC = 86400;\nconst syncPointStrategies = [\n// Stategy \"VOD\": Handle the VOD-case where the sync-point is *always*\n// the equivalence display-time 0 === segment-index 0\n{\n name: 'VOD',\n run: (syncController, playlist, duration, currentTimeline, currentTime) => {\n if (duration !== Infinity) {\n const syncPoint = {\n time: 0,\n segmentIndex: 0,\n partIndex: null\n };\n return syncPoint;\n }\n return null;\n }\n}, {\n name: 'MediaSequence',\n /**\n * run media sequence strategy\n *\n * @param {SyncController} syncController\n * @param {Object} playlist\n * @param {number} duration\n * @param {number} currentTimeline\n * @param {number} currentTime\n * @param {string} type\n */\n run: (syncController, playlist, duration, currentTimeline, currentTime, type) => {\n if (!type) {\n return null;\n }\n const mediaSequenceMap = syncController.getMediaSequenceMap(type);\n if (!mediaSequenceMap || mediaSequenceMap.size === 0) {\n return null;\n }\n if (playlist.mediaSequence === undefined || !Array.isArray(playlist.segments) || !playlist.segments.length) {\n return null;\n }\n let currentMediaSequence = playlist.mediaSequence;\n let segmentIndex = 0;\n for (const segment of playlist.segments) {\n const range = mediaSequenceMap.get(currentMediaSequence);\n if (!range) {\n // unexpected case\n // we expect this playlist to be the same playlist in the map\n // just break from the loop and move forward to the next strategy\n break;\n }\n if (currentTime >= range.start && currentTime < range.end) {\n // we found segment\n if (Array.isArray(segment.parts) && segment.parts.length) {\n let currentPartStart = range.start;\n let partIndex = 0;\n for (const part of segment.parts) {\n const start = currentPartStart;\n const end = start + part.duration;\n if (currentTime >= start && currentTime < end) {\n return {\n time: range.start,\n segmentIndex,\n partIndex\n };\n }\n partIndex++;\n currentPartStart = end;\n }\n } // no parts found, return sync point for segment\n\n return {\n time: range.start,\n segmentIndex,\n partIndex: null\n };\n }\n segmentIndex++;\n currentMediaSequence++;\n } // we didn't find any segments for provided current time\n\n return null;\n }\n},\n// Stategy \"ProgramDateTime\": We have a program-date-time tag in this playlist\n{\n name: 'ProgramDateTime',\n run: (syncController, playlist, duration, currentTimeline, currentTime) => {\n if (!Object.keys(syncController.timelineToDatetimeMappings).length) {\n return null;\n }\n let syncPoint = null;\n let lastDistance = null;\n const partsAndSegments = getPartsAndSegments(playlist);\n currentTime = currentTime || 0;\n for (let i = 0; i < partsAndSegments.length; i++) {\n // start from the end and loop backwards for live\n // or start from the front and loop forwards for non-live\n const index = playlist.endList || currentTime === 0 ? i : partsAndSegments.length - (i + 1);\n const partAndSegment = partsAndSegments[index];\n const segment = partAndSegment.segment;\n const datetimeMapping = syncController.timelineToDatetimeMappings[segment.timeline];\n if (!datetimeMapping || !segment.dateTimeObject) {\n continue;\n }\n const segmentTime = segment.dateTimeObject.getTime() / 1000;\n let start = segmentTime + datetimeMapping; // take part duration into account.\n\n if (segment.parts && typeof partAndSegment.partIndex === 'number') {\n for (let z = 0; z < partAndSegment.partIndex; z++) {\n start += segment.parts[z].duration;\n }\n }\n const distance = Math.abs(currentTime - start); // Once the distance begins to increase, or if distance is 0, we have passed\n // currentTime and can stop looking for better candidates\n\n if (lastDistance !== null && (distance === 0 || lastDistance < distance)) {\n break;\n }\n lastDistance = distance;\n syncPoint = {\n time: start,\n segmentIndex: partAndSegment.segmentIndex,\n partIndex: partAndSegment.partIndex\n };\n }\n return syncPoint;\n }\n},\n// Stategy \"Segment\": We have a known time mapping for a timeline and a\n// segment in the current timeline with timing data\n{\n name: 'Segment',\n run: (syncController, playlist, duration, currentTimeline, currentTime) => {\n let syncPoint = null;\n let lastDistance = null;\n currentTime = currentTime || 0;\n const partsAndSegments = getPartsAndSegments(playlist);\n for (let i = 0; i < partsAndSegments.length; i++) {\n // start from the end and loop backwards for live\n // or start from the front and loop forwards for non-live\n const index = playlist.endList || currentTime === 0 ? i : partsAndSegments.length - (i + 1);\n const partAndSegment = partsAndSegments[index];\n const segment = partAndSegment.segment;\n const start = partAndSegment.part && partAndSegment.part.start || segment && segment.start;\n if (segment.timeline === currentTimeline && typeof start !== 'undefined') {\n const distance = Math.abs(currentTime - start); // Once the distance begins to increase, we have passed\n // currentTime and can stop looking for better candidates\n\n if (lastDistance !== null && lastDistance < distance) {\n break;\n }\n if (!syncPoint || lastDistance === null || lastDistance >= distance) {\n lastDistance = distance;\n syncPoint = {\n time: start,\n segmentIndex: partAndSegment.segmentIndex,\n partIndex: partAndSegment.partIndex\n };\n }\n }\n }\n return syncPoint;\n }\n},\n// Stategy \"Discontinuity\": We have a discontinuity with a known\n// display-time\n{\n name: 'Discontinuity',\n run: (syncController, playlist, duration, currentTimeline, currentTime) => {\n let syncPoint = null;\n currentTime = currentTime || 0;\n if (playlist.discontinuityStarts && playlist.discontinuityStarts.length) {\n let lastDistance = null;\n for (let i = 0; i < playlist.discontinuityStarts.length; i++) {\n const segmentIndex = playlist.discontinuityStarts[i];\n const discontinuity = playlist.discontinuitySequence + i + 1;\n const discontinuitySync = syncController.discontinuities[discontinuity];\n if (discontinuitySync) {\n const distance = Math.abs(currentTime - discontinuitySync.time); // Once the distance begins to increase, we have passed\n // currentTime and can stop looking for better candidates\n\n if (lastDistance !== null && lastDistance < distance) {\n break;\n }\n if (!syncPoint || lastDistance === null || lastDistance >= distance) {\n lastDistance = distance;\n syncPoint = {\n time: discontinuitySync.time,\n segmentIndex,\n partIndex: null\n };\n }\n }\n }\n }\n return syncPoint;\n }\n},\n// Stategy \"Playlist\": We have a playlist with a known mapping of\n// segment index to display time\n{\n name: 'Playlist',\n run: (syncController, playlist, duration, currentTimeline, currentTime) => {\n if (playlist.syncInfo) {\n const syncPoint = {\n time: playlist.syncInfo.time,\n segmentIndex: playlist.syncInfo.mediaSequence - playlist.mediaSequence,\n partIndex: null\n };\n return syncPoint;\n }\n return null;\n }\n}];\nclass SyncController extends videojs.EventTarget {\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n super(); // ...for synching across variants\n\n this.timelines = [];\n this.discontinuities = [];\n this.timelineToDatetimeMappings = {};\n /**\n * @type {Map>}\n * @private\n */\n\n this.mediaSequenceStorage_ = new Map();\n this.logger_ = logger('SyncController');\n }\n /**\n * Get media sequence map by type\n *\n * @param {string} type - segment loader type\n * @return {Map | undefined}\n */\n\n getMediaSequenceMap(type) {\n return this.mediaSequenceStorage_.get(type);\n }\n /**\n * Update Media Sequence Map -> \n *\n * @param {Object} playlist - parsed playlist\n * @param {number} currentTime - current player's time\n * @param {string} type - segment loader type\n * @return {void}\n */\n\n updateMediaSequenceMap(playlist, currentTime, type) {\n // we should not process this playlist if it does not have mediaSequence or segments\n if (playlist.mediaSequence === undefined || !Array.isArray(playlist.segments) || !playlist.segments.length) {\n return;\n }\n const currentMap = this.getMediaSequenceMap(type);\n const result = new Map();\n let currentMediaSequence = playlist.mediaSequence;\n let currentBaseTime;\n if (!currentMap) {\n // first playlist setup:\n currentBaseTime = 0;\n } else if (currentMap.has(playlist.mediaSequence)) {\n // further playlists setup:\n currentBaseTime = currentMap.get(playlist.mediaSequence).start;\n } else {\n // it seems like we have a gap between playlists, use current time as a fallback:\n this.logger_(`MediaSequence sync for ${type} segment loader - received a gap between playlists.\nFallback base time to: ${currentTime}.\nReceived media sequence: ${currentMediaSequence}.\nCurrent map: `, currentMap);\n currentBaseTime = currentTime;\n }\n this.logger_(`MediaSequence sync for ${type} segment loader.\nReceived media sequence: ${currentMediaSequence}.\nbase time is ${currentBaseTime}\nCurrent map: `, currentMap);\n playlist.segments.forEach(segment => {\n const start = currentBaseTime;\n const end = start + segment.duration;\n const range = {\n start,\n end\n };\n result.set(currentMediaSequence, range);\n currentMediaSequence++;\n currentBaseTime = end;\n });\n this.mediaSequenceStorage_.set(type, result);\n }\n /**\n * Find a sync-point for the playlist specified\n *\n * A sync-point is defined as a known mapping from display-time to\n * a segment-index in the current playlist.\n *\n * @param {Playlist} playlist\n * The playlist that needs a sync-point\n * @param {number} duration\n * Duration of the MediaSource (Infinite if playing a live source)\n * @param {number} currentTimeline\n * The last timeline from which a segment was loaded\n * @param {number} currentTime\n * Current player's time\n * @param {string} type\n * Segment loader type\n * @return {Object}\n * A sync-point object\n */\n\n getSyncPoint(playlist, duration, currentTimeline, currentTime, type) {\n // Always use VOD sync point for VOD\n if (duration !== Infinity) {\n const vodSyncPointStrategy = syncPointStrategies.find(_ref60 => {\n let name = _ref60.name;\n return name === 'VOD';\n });\n return vodSyncPointStrategy.run(this, playlist, duration);\n }\n const syncPoints = this.runStrategies_(playlist, duration, currentTimeline, currentTime, type);\n if (!syncPoints.length) {\n // Signal that we need to attempt to get a sync-point manually\n // by fetching a segment in the playlist and constructing\n // a sync-point from that information\n return null;\n } // If we have exact match just return it instead of finding the nearest distance\n\n for (const syncPointInfo of syncPoints) {\n const syncPoint = syncPointInfo.syncPoint,\n strategy = syncPointInfo.strategy;\n const segmentIndex = syncPoint.segmentIndex,\n time = syncPoint.time;\n if (segmentIndex < 0) {\n continue;\n }\n const selectedSegment = playlist.segments[segmentIndex];\n const start = time;\n const end = start + selectedSegment.duration;\n this.logger_(`Strategy: ${strategy}. Current time: ${currentTime}. selected segment: ${segmentIndex}. Time: [${start} -> ${end}]}`);\n if (currentTime >= start && currentTime < end) {\n this.logger_('Found sync point with exact match: ', syncPoint);\n return syncPoint;\n }\n } // Now find the sync-point that is closest to the currentTime because\n // that should result in the most accurate guess about which segment\n // to fetch\n\n return this.selectSyncPoint_(syncPoints, {\n key: 'time',\n value: currentTime\n });\n }\n /**\n * Calculate the amount of time that has expired off the playlist during playback\n *\n * @param {Playlist} playlist\n * Playlist object to calculate expired from\n * @param {number} duration\n * Duration of the MediaSource (Infinity if playling a live source)\n * @return {number|null}\n * The amount of time that has expired off the playlist during playback. Null\n * if no sync-points for the playlist can be found.\n */\n\n getExpiredTime(playlist, duration) {\n if (!playlist || !playlist.segments) {\n return null;\n }\n const syncPoints = this.runStrategies_(playlist, duration, playlist.discontinuitySequence, 0, 'main'); // Without sync-points, there is not enough information to determine the expired time\n\n if (!syncPoints.length) {\n return null;\n }\n const syncPoint = this.selectSyncPoint_(syncPoints, {\n key: 'segmentIndex',\n value: 0\n }); // If the sync-point is beyond the start of the playlist, we want to subtract the\n // duration from index 0 to syncPoint.segmentIndex instead of adding.\n\n if (syncPoint.segmentIndex > 0) {\n syncPoint.time *= -1;\n }\n return Math.abs(syncPoint.time + sumDurations({\n defaultDuration: playlist.targetDuration,\n durationList: playlist.segments,\n startIndex: syncPoint.segmentIndex,\n endIndex: 0\n }));\n }\n /**\n * Runs each sync-point strategy and returns a list of sync-points returned by the\n * strategies\n *\n * @private\n * @param {Playlist} playlist\n * The playlist that needs a sync-point\n * @param {number} duration\n * Duration of the MediaSource (Infinity if playing a live source)\n * @param {number} currentTimeline\n * The last timeline from which a segment was loaded\n * @param {number} currentTime\n * Current player's time\n * @param {string} type\n * Segment loader type\n * @return {Array}\n * A list of sync-point objects\n */\n\n runStrategies_(playlist, duration, currentTimeline, currentTime, type) {\n const syncPoints = []; // Try to find a sync-point in by utilizing various strategies...\n\n for (let i = 0; i < syncPointStrategies.length; i++) {\n const strategy = syncPointStrategies[i];\n const syncPoint = strategy.run(this, playlist, duration, currentTimeline, currentTime, type);\n if (syncPoint) {\n syncPoint.strategy = strategy.name;\n syncPoints.push({\n strategy: strategy.name,\n syncPoint\n });\n }\n }\n return syncPoints;\n }\n /**\n * Selects the sync-point nearest the specified target\n *\n * @private\n * @param {Array} syncPoints\n * List of sync-points to select from\n * @param {Object} target\n * Object specifying the property and value we are targeting\n * @param {string} target.key\n * Specifies the property to target. Must be either 'time' or 'segmentIndex'\n * @param {number} target.value\n * The value to target for the specified key.\n * @return {Object}\n * The sync-point nearest the target\n */\n\n selectSyncPoint_(syncPoints, target) {\n let bestSyncPoint = syncPoints[0].syncPoint;\n let bestDistance = Math.abs(syncPoints[0].syncPoint[target.key] - target.value);\n let bestStrategy = syncPoints[0].strategy;\n for (let i = 1; i < syncPoints.length; i++) {\n const newDistance = Math.abs(syncPoints[i].syncPoint[target.key] - target.value);\n if (newDistance < bestDistance) {\n bestDistance = newDistance;\n bestSyncPoint = syncPoints[i].syncPoint;\n bestStrategy = syncPoints[i].strategy;\n }\n }\n this.logger_(`syncPoint for [${target.key}: ${target.value}] chosen with strategy` + ` [${bestStrategy}]: [time:${bestSyncPoint.time},` + ` segmentIndex:${bestSyncPoint.segmentIndex}` + (typeof bestSyncPoint.partIndex === 'number' ? `,partIndex:${bestSyncPoint.partIndex}` : '') + ']');\n return bestSyncPoint;\n }\n /**\n * Save any meta-data present on the segments when segments leave\n * the live window to the playlist to allow for synchronization at the\n * playlist level later.\n *\n * @param {Playlist} oldPlaylist - The previous active playlist\n * @param {Playlist} newPlaylist - The updated and most current playlist\n */\n\n saveExpiredSegmentInfo(oldPlaylist, newPlaylist) {\n const mediaSequenceDiff = newPlaylist.mediaSequence - oldPlaylist.mediaSequence; // Ignore large media sequence gaps\n\n if (mediaSequenceDiff > MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC) {\n videojs.log.warn(`Not saving expired segment info. Media sequence gap ${mediaSequenceDiff} is too large.`);\n return;\n } // When a segment expires from the playlist and it has a start time\n // save that information as a possible sync-point reference in future\n\n for (let i = mediaSequenceDiff - 1; i >= 0; i--) {\n const lastRemovedSegment = oldPlaylist.segments[i];\n if (lastRemovedSegment && typeof lastRemovedSegment.start !== 'undefined') {\n newPlaylist.syncInfo = {\n mediaSequence: oldPlaylist.mediaSequence + i,\n time: lastRemovedSegment.start\n };\n this.logger_(`playlist refresh sync: [time:${newPlaylist.syncInfo.time},` + ` mediaSequence: ${newPlaylist.syncInfo.mediaSequence}]`);\n this.trigger('syncinfoupdate');\n break;\n }\n }\n }\n /**\n * Save the mapping from playlist's ProgramDateTime to display. This should only happen\n * before segments start to load.\n *\n * @param {Playlist} playlist - The currently active playlist\n */\n\n setDateTimeMappingForStart(playlist) {\n // It's possible for the playlist to be updated before playback starts, meaning time\n // zero is not yet set. If, during these playlist refreshes, a discontinuity is\n // crossed, then the old time zero mapping (for the prior timeline) would be retained\n // unless the mappings are cleared.\n this.timelineToDatetimeMappings = {};\n if (playlist.segments && playlist.segments.length && playlist.segments[0].dateTimeObject) {\n const firstSegment = playlist.segments[0];\n const playlistTimestamp = firstSegment.dateTimeObject.getTime() / 1000;\n this.timelineToDatetimeMappings[firstSegment.timeline] = -playlistTimestamp;\n }\n }\n /**\n * Calculates and saves timeline mappings, playlist sync info, and segment timing values\n * based on the latest timing information.\n *\n * @param {Object} options\n * Options object\n * @param {SegmentInfo} options.segmentInfo\n * The current active request information\n * @param {boolean} options.shouldSaveTimelineMapping\n * If there's a timeline change, determines if the timeline mapping should be\n * saved for timeline mapping and program date time mappings.\n */\n\n saveSegmentTimingInfo(_ref61) {\n let segmentInfo = _ref61.segmentInfo,\n shouldSaveTimelineMapping = _ref61.shouldSaveTimelineMapping;\n const didCalculateSegmentTimeMapping = this.calculateSegmentTimeMapping_(segmentInfo, segmentInfo.timingInfo, shouldSaveTimelineMapping);\n const segment = segmentInfo.segment;\n if (didCalculateSegmentTimeMapping) {\n this.saveDiscontinuitySyncInfo_(segmentInfo); // If the playlist does not have sync information yet, record that information\n // now with segment timing information\n\n if (!segmentInfo.playlist.syncInfo) {\n segmentInfo.playlist.syncInfo = {\n mediaSequence: segmentInfo.playlist.mediaSequence + segmentInfo.mediaIndex,\n time: segment.start\n };\n }\n }\n const dateTime = segment.dateTimeObject;\n if (segment.discontinuity && shouldSaveTimelineMapping && dateTime) {\n this.timelineToDatetimeMappings[segment.timeline] = -(dateTime.getTime() / 1000);\n }\n }\n timestampOffsetForTimeline(timeline) {\n if (typeof this.timelines[timeline] === 'undefined') {\n return null;\n }\n return this.timelines[timeline].time;\n }\n mappingForTimeline(timeline) {\n if (typeof this.timelines[timeline] === 'undefined') {\n return null;\n }\n return this.timelines[timeline].mapping;\n }\n /**\n * Use the \"media time\" for a segment to generate a mapping to \"display time\" and\n * save that display time to the segment.\n *\n * @private\n * @param {SegmentInfo} segmentInfo\n * The current active request information\n * @param {Object} timingInfo\n * The start and end time of the current segment in \"media time\"\n * @param {boolean} shouldSaveTimelineMapping\n * If there's a timeline change, determines if the timeline mapping should be\n * saved in timelines.\n * @return {boolean}\n * Returns false if segment time mapping could not be calculated\n */\n\n calculateSegmentTimeMapping_(segmentInfo, timingInfo, shouldSaveTimelineMapping) {\n // TODO: remove side effects\n const segment = segmentInfo.segment;\n const part = segmentInfo.part;\n let mappingObj = this.timelines[segmentInfo.timeline];\n let start;\n let end;\n if (typeof segmentInfo.timestampOffset === 'number') {\n mappingObj = {\n time: segmentInfo.startOfSegment,\n mapping: segmentInfo.startOfSegment - timingInfo.start\n };\n if (shouldSaveTimelineMapping) {\n this.timelines[segmentInfo.timeline] = mappingObj;\n this.trigger('timestampoffset');\n this.logger_(`time mapping for timeline ${segmentInfo.timeline}: ` + `[time: ${mappingObj.time}] [mapping: ${mappingObj.mapping}]`);\n }\n start = segmentInfo.startOfSegment;\n end = timingInfo.end + mappingObj.mapping;\n } else if (mappingObj) {\n start = timingInfo.start + mappingObj.mapping;\n end = timingInfo.end + mappingObj.mapping;\n } else {\n return false;\n }\n if (part) {\n part.start = start;\n part.end = end;\n } // If we don't have a segment start yet or the start value we got\n // is less than our current segment.start value, save a new start value.\n // We have to do this because parts will have segment timing info saved\n // multiple times and we want segment start to be the earliest part start\n // value for that segment.\n\n if (!segment.start || start < segment.start) {\n segment.start = start;\n }\n segment.end = end;\n return true;\n }\n /**\n * Each time we have discontinuity in the playlist, attempt to calculate the location\n * in display of the start of the discontinuity and save that. We also save an accuracy\n * value so that we save values with the most accuracy (closest to 0.)\n *\n * @private\n * @param {SegmentInfo} segmentInfo - The current active request information\n */\n\n saveDiscontinuitySyncInfo_(segmentInfo) {\n const playlist = segmentInfo.playlist;\n const segment = segmentInfo.segment; // If the current segment is a discontinuity then we know exactly where\n // the start of the range and it's accuracy is 0 (greater accuracy values\n // mean more approximation)\n\n if (segment.discontinuity) {\n this.discontinuities[segment.timeline] = {\n time: segment.start,\n accuracy: 0\n };\n } else if (playlist.discontinuityStarts && playlist.discontinuityStarts.length) {\n // Search for future discontinuities that we can provide better timing\n // information for and save that information for sync purposes\n for (let i = 0; i < playlist.discontinuityStarts.length; i++) {\n const segmentIndex = playlist.discontinuityStarts[i];\n const discontinuity = playlist.discontinuitySequence + i + 1;\n const mediaIndexDiff = segmentIndex - segmentInfo.mediaIndex;\n const accuracy = Math.abs(mediaIndexDiff);\n if (!this.discontinuities[discontinuity] || this.discontinuities[discontinuity].accuracy > accuracy) {\n let time;\n if (mediaIndexDiff < 0) {\n time = segment.start - sumDurations({\n defaultDuration: playlist.targetDuration,\n durationList: playlist.segments,\n startIndex: segmentInfo.mediaIndex,\n endIndex: segmentIndex\n });\n } else {\n time = segment.end + sumDurations({\n defaultDuration: playlist.targetDuration,\n durationList: playlist.segments,\n startIndex: segmentInfo.mediaIndex + 1,\n endIndex: segmentIndex\n });\n }\n this.discontinuities[discontinuity] = {\n time,\n accuracy\n };\n }\n }\n }\n }\n dispose() {\n this.trigger('dispose');\n this.off();\n }\n}\n\n/**\n * The TimelineChangeController acts as a source for segment loaders to listen for and\n * keep track of latest and pending timeline changes. This is useful to ensure proper\n * sync, as each loader may need to make a consideration for what timeline the other\n * loader is on before making changes which could impact the other loader's media.\n *\n * @class TimelineChangeController\n * @extends videojs.EventTarget\n */\n\nclass TimelineChangeController extends videojs.EventTarget {\n constructor() {\n super();\n this.pendingTimelineChanges_ = {};\n this.lastTimelineChanges_ = {};\n }\n clearPendingTimelineChange(type) {\n this.pendingTimelineChanges_[type] = null;\n this.trigger('pendingtimelinechange');\n }\n pendingTimelineChange(_ref62) {\n let type = _ref62.type,\n from = _ref62.from,\n to = _ref62.to;\n if (typeof from === 'number' && typeof to === 'number') {\n this.pendingTimelineChanges_[type] = {\n type,\n from,\n to\n };\n this.trigger('pendingtimelinechange');\n }\n return this.pendingTimelineChanges_[type];\n }\n lastTimelineChange(_ref63) {\n let type = _ref63.type,\n from = _ref63.from,\n to = _ref63.to;\n if (typeof from === 'number' && typeof to === 'number') {\n this.lastTimelineChanges_[type] = {\n type,\n from,\n to\n };\n delete this.pendingTimelineChanges_[type];\n this.trigger('timelinechange');\n }\n return this.lastTimelineChanges_[type];\n }\n dispose() {\n this.trigger('dispose');\n this.pendingTimelineChanges_ = {};\n this.lastTimelineChanges_ = {};\n this.off();\n }\n}\n\n/* rollup-plugin-worker-factory start for worker!/home/runner/work/http-streaming/http-streaming/src/decrypter-worker.js */\nconst workerCode = transform(getWorkerString(function () {\n /**\n * @file stream.js\n */\n\n /**\n * A lightweight readable stream implemention that handles event dispatching.\n *\n * @class Stream\n */\n\n var Stream = /*#__PURE__*/function () {\n function Stream() {\n this.listeners = {};\n }\n /**\n * Add a listener for a specified event type.\n *\n * @param {string} type the event name\n * @param {Function} listener the callback to be invoked when an event of\n * the specified type occurs\n */\n\n var _proto = Stream.prototype;\n _proto.on = function on(type, listener) {\n if (!this.listeners[type]) {\n this.listeners[type] = [];\n }\n this.listeners[type].push(listener);\n }\n /**\n * Remove a listener for a specified event type.\n *\n * @param {string} type the event name\n * @param {Function} listener a function previously registered for this\n * type of event through `on`\n * @return {boolean} if we could turn it off or not\n */;\n\n _proto.off = function off(type, listener) {\n if (!this.listeners[type]) {\n return false;\n }\n var index = this.listeners[type].indexOf(listener); // TODO: which is better?\n // In Video.js we slice listener functions\n // on trigger so that it does not mess up the order\n // while we loop through.\n //\n // Here we slice on off so that the loop in trigger\n // can continue using it's old reference to loop without\n // messing up the order.\n\n this.listeners[type] = this.listeners[type].slice(0);\n this.listeners[type].splice(index, 1);\n return index > -1;\n }\n /**\n * Trigger an event of the specified type on this stream. Any additional\n * arguments to this function are passed as parameters to event listeners.\n *\n * @param {string} type the event name\n */;\n\n _proto.trigger = function trigger(type) {\n var callbacks = this.listeners[type];\n if (!callbacks) {\n return;\n } // Slicing the arguments on every invocation of this method\n // can add a significant amount of overhead. Avoid the\n // intermediate object creation for the common case of a\n // single callback argument\n\n if (arguments.length === 2) {\n var length = callbacks.length;\n for (var i = 0; i < length; ++i) {\n callbacks[i].call(this, arguments[1]);\n }\n } else {\n var args = Array.prototype.slice.call(arguments, 1);\n var _length = callbacks.length;\n for (var _i = 0; _i < _length; ++_i) {\n callbacks[_i].apply(this, args);\n }\n }\n }\n /**\n * Destroys the stream and cleans up.\n */;\n\n _proto.dispose = function dispose() {\n this.listeners = {};\n }\n /**\n * Forwards all `data` events on this stream to the destination stream. The\n * destination stream should provide a method `push` to receive the data\n * events as they arrive.\n *\n * @param {Stream} destination the stream that will receive all `data` events\n * @see http://nodejs.org/api/stream.html#stream_readable_pipe_destination_options\n */;\n\n _proto.pipe = function pipe(destination) {\n this.on('data', function (data) {\n destination.push(data);\n });\n };\n return Stream;\n }();\n /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */\n\n /**\n * Returns the subarray of a Uint8Array without PKCS#7 padding.\n *\n * @param padded {Uint8Array} unencrypted bytes that have been padded\n * @return {Uint8Array} the unpadded bytes\n * @see http://tools.ietf.org/html/rfc5652\n */\n\n function unpad(padded) {\n return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);\n }\n /*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */\n\n /**\n * @file aes.js\n *\n * This file contains an adaptation of the AES decryption algorithm\n * from the Standford Javascript Cryptography Library. That work is\n * covered by the following copyright and permissions notice:\n *\n * Copyright 2009-2010 Emily Stark, Mike Hamburg, Dan Boneh.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation\n * are those of the authors and should not be interpreted as representing\n * official policies, either expressed or implied, of the authors.\n */\n\n /**\n * Expand the S-box tables.\n *\n * @private\n */\n\n const precompute = function () {\n const tables = [[[], [], [], [], []], [[], [], [], [], []]];\n const encTable = tables[0];\n const decTable = tables[1];\n const sbox = encTable[4];\n const sboxInv = decTable[4];\n let i;\n let x;\n let xInv;\n const d = [];\n const th = [];\n let x2;\n let x4;\n let x8;\n let s;\n let tEnc;\n let tDec; // Compute double and third tables\n\n for (i = 0; i < 256; i++) {\n th[(d[i] = i << 1 ^ (i >> 7) * 283) ^ i] = i;\n }\n for (x = xInv = 0; !sbox[x]; x ^= x2 || 1, xInv = th[xInv] || 1) {\n // Compute sbox\n s = xInv ^ xInv << 1 ^ xInv << 2 ^ xInv << 3 ^ xInv << 4;\n s = s >> 8 ^ s & 255 ^ 99;\n sbox[x] = s;\n sboxInv[s] = x; // Compute MixColumns\n\n x8 = d[x4 = d[x2 = d[x]]];\n tDec = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;\n tEnc = d[s] * 0x101 ^ s * 0x1010100;\n for (i = 0; i < 4; i++) {\n encTable[i][x] = tEnc = tEnc << 24 ^ tEnc >>> 8;\n decTable[i][s] = tDec = tDec << 24 ^ tDec >>> 8;\n }\n } // Compactify. Considerable speedup on Firefox.\n\n for (i = 0; i < 5; i++) {\n encTable[i] = encTable[i].slice(0);\n decTable[i] = decTable[i].slice(0);\n }\n return tables;\n };\n let aesTables = null;\n /**\n * Schedule out an AES key for both encryption and decryption. This\n * is a low-level class. Use a cipher mode to do bulk encryption.\n *\n * @class AES\n * @param key {Array} The key as an array of 4, 6 or 8 words.\n */\n\n class AES {\n constructor(key) {\n /**\n * The expanded S-box and inverse S-box tables. These will be computed\n * on the client so that we don't have to send them down the wire.\n *\n * There are two tables, _tables[0] is for encryption and\n * _tables[1] is for decryption.\n *\n * The first 4 sub-tables are the expanded S-box with MixColumns. The\n * last (_tables[01][4]) is the S-box itself.\n *\n * @private\n */\n // if we have yet to precompute the S-box tables\n // do so now\n if (!aesTables) {\n aesTables = precompute();\n } // then make a copy of that object for use\n\n this._tables = [[aesTables[0][0].slice(), aesTables[0][1].slice(), aesTables[0][2].slice(), aesTables[0][3].slice(), aesTables[0][4].slice()], [aesTables[1][0].slice(), aesTables[1][1].slice(), aesTables[1][2].slice(), aesTables[1][3].slice(), aesTables[1][4].slice()]];\n let i;\n let j;\n let tmp;\n const sbox = this._tables[0][4];\n const decTable = this._tables[1];\n const keyLen = key.length;\n let rcon = 1;\n if (keyLen !== 4 && keyLen !== 6 && keyLen !== 8) {\n throw new Error('Invalid aes key size');\n }\n const encKey = key.slice(0);\n const decKey = [];\n this._key = [encKey, decKey]; // schedule encryption keys\n\n for (i = keyLen; i < 4 * keyLen + 28; i++) {\n tmp = encKey[i - 1]; // apply sbox\n\n if (i % keyLen === 0 || keyLen === 8 && i % keyLen === 4) {\n tmp = sbox[tmp >>> 24] << 24 ^ sbox[tmp >> 16 & 255] << 16 ^ sbox[tmp >> 8 & 255] << 8 ^ sbox[tmp & 255]; // shift rows and add rcon\n\n if (i % keyLen === 0) {\n tmp = tmp << 8 ^ tmp >>> 24 ^ rcon << 24;\n rcon = rcon << 1 ^ (rcon >> 7) * 283;\n }\n }\n encKey[i] = encKey[i - keyLen] ^ tmp;\n } // schedule decryption keys\n\n for (j = 0; i; j++, i--) {\n tmp = encKey[j & 3 ? i : i - 4];\n if (i <= 4 || j < 4) {\n decKey[j] = tmp;\n } else {\n decKey[j] = decTable[0][sbox[tmp >>> 24]] ^ decTable[1][sbox[tmp >> 16 & 255]] ^ decTable[2][sbox[tmp >> 8 & 255]] ^ decTable[3][sbox[tmp & 255]];\n }\n }\n }\n /**\n * Decrypt 16 bytes, specified as four 32-bit words.\n *\n * @param {number} encrypted0 the first word to decrypt\n * @param {number} encrypted1 the second word to decrypt\n * @param {number} encrypted2 the third word to decrypt\n * @param {number} encrypted3 the fourth word to decrypt\n * @param {Int32Array} out the array to write the decrypted words\n * into\n * @param {number} offset the offset into the output array to start\n * writing results\n * @return {Array} The plaintext.\n */\n\n decrypt(encrypted0, encrypted1, encrypted2, encrypted3, out, offset) {\n const key = this._key[1]; // state variables a,b,c,d are loaded with pre-whitened data\n\n let a = encrypted0 ^ key[0];\n let b = encrypted3 ^ key[1];\n let c = encrypted2 ^ key[2];\n let d = encrypted1 ^ key[3];\n let a2;\n let b2;\n let c2; // key.length === 2 ?\n\n const nInnerRounds = key.length / 4 - 2;\n let i;\n let kIndex = 4;\n const table = this._tables[1]; // load up the tables\n\n const table0 = table[0];\n const table1 = table[1];\n const table2 = table[2];\n const table3 = table[3];\n const sbox = table[4]; // Inner rounds. Cribbed from OpenSSL.\n\n for (i = 0; i < nInnerRounds; i++) {\n a2 = table0[a >>> 24] ^ table1[b >> 16 & 255] ^ table2[c >> 8 & 255] ^ table3[d & 255] ^ key[kIndex];\n b2 = table0[b >>> 24] ^ table1[c >> 16 & 255] ^ table2[d >> 8 & 255] ^ table3[a & 255] ^ key[kIndex + 1];\n c2 = table0[c >>> 24] ^ table1[d >> 16 & 255] ^ table2[a >> 8 & 255] ^ table3[b & 255] ^ key[kIndex + 2];\n d = table0[d >>> 24] ^ table1[a >> 16 & 255] ^ table2[b >> 8 & 255] ^ table3[c & 255] ^ key[kIndex + 3];\n kIndex += 4;\n a = a2;\n b = b2;\n c = c2;\n } // Last round.\n\n for (i = 0; i < 4; i++) {\n out[(3 & -i) + offset] = sbox[a >>> 24] << 24 ^ sbox[b >> 16 & 255] << 16 ^ sbox[c >> 8 & 255] << 8 ^ sbox[d & 255] ^ key[kIndex++];\n a2 = a;\n a = b;\n b = c;\n c = d;\n d = a2;\n }\n }\n }\n /**\n * @file async-stream.js\n */\n\n /**\n * A wrapper around the Stream class to use setTimeout\n * and run stream \"jobs\" Asynchronously\n *\n * @class AsyncStream\n * @extends Stream\n */\n\n class AsyncStream extends Stream {\n constructor() {\n super(Stream);\n this.jobs = [];\n this.delay = 1;\n this.timeout_ = null;\n }\n /**\n * process an async job\n *\n * @private\n */\n\n processJob_() {\n this.jobs.shift()();\n if (this.jobs.length) {\n this.timeout_ = setTimeout(this.processJob_.bind(this), this.delay);\n } else {\n this.timeout_ = null;\n }\n }\n /**\n * push a job into the stream\n *\n * @param {Function} job the job to push into the stream\n */\n\n push(job) {\n this.jobs.push(job);\n if (!this.timeout_) {\n this.timeout_ = setTimeout(this.processJob_.bind(this), this.delay);\n }\n }\n }\n /**\n * @file decrypter.js\n *\n * An asynchronous implementation of AES-128 CBC decryption with\n * PKCS#7 padding.\n */\n\n /**\n * Convert network-order (big-endian) bytes into their little-endian\n * representation.\n */\n\n const ntoh = function (word) {\n return word << 24 | (word & 0xff00) << 8 | (word & 0xff0000) >> 8 | word >>> 24;\n };\n /**\n * Decrypt bytes using AES-128 with CBC and PKCS#7 padding.\n *\n * @param {Uint8Array} encrypted the encrypted bytes\n * @param {Uint32Array} key the bytes of the decryption key\n * @param {Uint32Array} initVector the initialization vector (IV) to\n * use for the first round of CBC.\n * @return {Uint8Array} the decrypted bytes\n *\n * @see http://en.wikipedia.org/wiki/Advanced_Encryption_Standard\n * @see http://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher_Block_Chaining_.28CBC.29\n * @see https://tools.ietf.org/html/rfc2315\n */\n\n const decrypt = function (encrypted, key, initVector) {\n // word-level access to the encrypted bytes\n const encrypted32 = new Int32Array(encrypted.buffer, encrypted.byteOffset, encrypted.byteLength >> 2);\n const decipher = new AES(Array.prototype.slice.call(key)); // byte and word-level access for the decrypted output\n\n const decrypted = new Uint8Array(encrypted.byteLength);\n const decrypted32 = new Int32Array(decrypted.buffer); // temporary variables for working with the IV, encrypted, and\n // decrypted data\n\n let init0;\n let init1;\n let init2;\n let init3;\n let encrypted0;\n let encrypted1;\n let encrypted2;\n let encrypted3; // iteration variable\n\n let wordIx; // pull out the words of the IV to ensure we don't modify the\n // passed-in reference and easier access\n\n init0 = initVector[0];\n init1 = initVector[1];\n init2 = initVector[2];\n init3 = initVector[3]; // decrypt four word sequences, applying cipher-block chaining (CBC)\n // to each decrypted block\n\n for (wordIx = 0; wordIx < encrypted32.length; wordIx += 4) {\n // convert big-endian (network order) words into little-endian\n // (javascript order)\n encrypted0 = ntoh(encrypted32[wordIx]);\n encrypted1 = ntoh(encrypted32[wordIx + 1]);\n encrypted2 = ntoh(encrypted32[wordIx + 2]);\n encrypted3 = ntoh(encrypted32[wordIx + 3]); // decrypt the block\n\n decipher.decrypt(encrypted0, encrypted1, encrypted2, encrypted3, decrypted32, wordIx); // XOR with the IV, and restore network byte-order to obtain the\n // plaintext\n\n decrypted32[wordIx] = ntoh(decrypted32[wordIx] ^ init0);\n decrypted32[wordIx + 1] = ntoh(decrypted32[wordIx + 1] ^ init1);\n decrypted32[wordIx + 2] = ntoh(decrypted32[wordIx + 2] ^ init2);\n decrypted32[wordIx + 3] = ntoh(decrypted32[wordIx + 3] ^ init3); // setup the IV for the next round\n\n init0 = encrypted0;\n init1 = encrypted1;\n init2 = encrypted2;\n init3 = encrypted3;\n }\n return decrypted;\n };\n /**\n * The `Decrypter` class that manages decryption of AES\n * data through `AsyncStream` objects and the `decrypt`\n * function\n *\n * @param {Uint8Array} encrypted the encrypted bytes\n * @param {Uint32Array} key the bytes of the decryption key\n * @param {Uint32Array} initVector the initialization vector (IV) to\n * @param {Function} done the function to run when done\n * @class Decrypter\n */\n\n class Decrypter {\n constructor(encrypted, key, initVector, done) {\n const step = Decrypter.STEP;\n const encrypted32 = new Int32Array(encrypted.buffer);\n const decrypted = new Uint8Array(encrypted.byteLength);\n let i = 0;\n this.asyncStream_ = new AsyncStream(); // split up the encryption job and do the individual chunks asynchronously\n\n this.asyncStream_.push(this.decryptChunk_(encrypted32.subarray(i, i + step), key, initVector, decrypted));\n for (i = step; i < encrypted32.length; i += step) {\n initVector = new Uint32Array([ntoh(encrypted32[i - 4]), ntoh(encrypted32[i - 3]), ntoh(encrypted32[i - 2]), ntoh(encrypted32[i - 1])]);\n this.asyncStream_.push(this.decryptChunk_(encrypted32.subarray(i, i + step), key, initVector, decrypted));\n } // invoke the done() callback when everything is finished\n\n this.asyncStream_.push(function () {\n // remove pkcs#7 padding from the decrypted bytes\n done(null, unpad(decrypted));\n });\n }\n /**\n * a getter for step the maximum number of bytes to process at one time\n *\n * @return {number} the value of step 32000\n */\n\n static get STEP() {\n // 4 * 8000;\n return 32000;\n }\n /**\n * @private\n */\n\n decryptChunk_(encrypted, key, initVector, decrypted) {\n return function () {\n const bytes = decrypt(encrypted, key, initVector);\n decrypted.set(bytes, encrypted.byteOffset);\n };\n }\n }\n var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n var win;\n if (typeof window !== \"undefined\") {\n win = window;\n } else if (typeof commonjsGlobal !== \"undefined\") {\n win = commonjsGlobal;\n } else if (typeof self !== \"undefined\") {\n win = self;\n } else {\n win = {};\n }\n var window_1 = win;\n var isArrayBufferView = function isArrayBufferView(obj) {\n if (ArrayBuffer.isView === 'function') {\n return ArrayBuffer.isView(obj);\n }\n return obj && obj.buffer instanceof ArrayBuffer;\n };\n var BigInt = window_1.BigInt || Number;\n [BigInt('0x1'), BigInt('0x100'), BigInt('0x10000'), BigInt('0x1000000'), BigInt('0x100000000'), BigInt('0x10000000000'), BigInt('0x1000000000000'), BigInt('0x100000000000000'), BigInt('0x10000000000000000')];\n (function () {\n var a = new Uint16Array([0xFFCC]);\n var b = new Uint8Array(a.buffer, a.byteOffset, a.byteLength);\n if (b[0] === 0xFF) {\n return 'big';\n }\n if (b[0] === 0xCC) {\n return 'little';\n }\n return 'unknown';\n })();\n /**\n * Creates an object for sending to a web worker modifying properties that are TypedArrays\n * into a new object with seperated properties for the buffer, byteOffset, and byteLength.\n *\n * @param {Object} message\n * Object of properties and values to send to the web worker\n * @return {Object}\n * Modified message with TypedArray values expanded\n * @function createTransferableMessage\n */\n\n const createTransferableMessage = function (message) {\n const transferable = {};\n Object.keys(message).forEach(key => {\n const value = message[key];\n if (isArrayBufferView(value)) {\n transferable[key] = {\n bytes: value.buffer,\n byteOffset: value.byteOffset,\n byteLength: value.byteLength\n };\n } else {\n transferable[key] = value;\n }\n });\n return transferable;\n };\n /* global self */\n\n /**\n * Our web worker interface so that things can talk to aes-decrypter\n * that will be running in a web worker. the scope is passed to this by\n * webworkify.\n */\n\n self.onmessage = function (event) {\n const data = event.data;\n const encrypted = new Uint8Array(data.encrypted.bytes, data.encrypted.byteOffset, data.encrypted.byteLength);\n const key = new Uint32Array(data.key.bytes, data.key.byteOffset, data.key.byteLength / 4);\n const iv = new Uint32Array(data.iv.bytes, data.iv.byteOffset, data.iv.byteLength / 4);\n /* eslint-disable no-new, handle-callback-err */\n\n new Decrypter(encrypted, key, iv, function (err, bytes) {\n self.postMessage(createTransferableMessage({\n source: data.source,\n decrypted: bytes\n }), [bytes.buffer]);\n });\n /* eslint-enable */\n };\n}));\n\nvar Decrypter = factory(workerCode);\n/* rollup-plugin-worker-factory end for worker!/home/runner/work/http-streaming/http-streaming/src/decrypter-worker.js */\n\n/**\n * Convert the properties of an HLS track into an audioTrackKind.\n *\n * @private\n */\n\nconst audioTrackKind_ = properties => {\n let kind = properties.default ? 'main' : 'alternative';\n if (properties.characteristics && properties.characteristics.indexOf('public.accessibility.describes-video') >= 0) {\n kind = 'main-desc';\n }\n return kind;\n};\n/**\n * Pause provided segment loader and playlist loader if active\n *\n * @param {SegmentLoader} segmentLoader\n * SegmentLoader to pause\n * @param {Object} mediaType\n * Active media type\n * @function stopLoaders\n */\n\nconst stopLoaders = (segmentLoader, mediaType) => {\n segmentLoader.abort();\n segmentLoader.pause();\n if (mediaType && mediaType.activePlaylistLoader) {\n mediaType.activePlaylistLoader.pause();\n mediaType.activePlaylistLoader = null;\n }\n};\n/**\n * Start loading provided segment loader and playlist loader\n *\n * @param {PlaylistLoader} playlistLoader\n * PlaylistLoader to start loading\n * @param {Object} mediaType\n * Active media type\n * @function startLoaders\n */\n\nconst startLoaders = (playlistLoader, mediaType) => {\n // Segment loader will be started after `loadedmetadata` or `loadedplaylist` from the\n // playlist loader\n mediaType.activePlaylistLoader = playlistLoader;\n playlistLoader.load();\n};\n/**\n * Returns a function to be called when the media group changes. It performs a\n * non-destructive (preserve the buffer) resync of the SegmentLoader. This is because a\n * change of group is merely a rendition switch of the same content at another encoding,\n * rather than a change of content, such as switching audio from English to Spanish.\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Handler for a non-destructive resync of SegmentLoader when the active media\n * group changes.\n * @function onGroupChanged\n */\n\nconst onGroupChanged = (type, settings) => () => {\n const _settings$segmentLoad = settings.segmentLoaders,\n segmentLoader = _settings$segmentLoad[type],\n mainSegmentLoader = _settings$segmentLoad.main,\n mediaType = settings.mediaTypes[type];\n const activeTrack = mediaType.activeTrack();\n const activeGroup = mediaType.getActiveGroup();\n const previousActiveLoader = mediaType.activePlaylistLoader;\n const lastGroup = mediaType.lastGroup_; // the group did not change do nothing\n\n if (activeGroup && lastGroup && activeGroup.id === lastGroup.id) {\n return;\n }\n mediaType.lastGroup_ = activeGroup;\n mediaType.lastTrack_ = activeTrack;\n stopLoaders(segmentLoader, mediaType);\n if (!activeGroup || activeGroup.isMainPlaylist) {\n // there is no group active or active group is a main playlist and won't change\n return;\n }\n if (!activeGroup.playlistLoader) {\n if (previousActiveLoader) {\n // The previous group had a playlist loader but the new active group does not\n // this means we are switching from demuxed to muxed audio. In this case we want to\n // do a destructive reset of the main segment loader and not restart the audio\n // loaders.\n mainSegmentLoader.resetEverything();\n }\n return;\n } // Non-destructive resync\n\n segmentLoader.resyncLoader();\n startLoaders(activeGroup.playlistLoader, mediaType);\n};\nconst onGroupChanging = (type, settings) => () => {\n const segmentLoader = settings.segmentLoaders[type],\n mediaType = settings.mediaTypes[type];\n mediaType.lastGroup_ = null;\n segmentLoader.abort();\n segmentLoader.pause();\n};\n/**\n * Returns a function to be called when the media track changes. It performs a\n * destructive reset of the SegmentLoader to ensure we start loading as close to\n * currentTime as possible.\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Handler for a destructive reset of SegmentLoader when the active media\n * track changes.\n * @function onTrackChanged\n */\n\nconst onTrackChanged = (type, settings) => () => {\n const mainPlaylistLoader = settings.mainPlaylistLoader,\n _settings$segmentLoad2 = settings.segmentLoaders,\n segmentLoader = _settings$segmentLoad2[type],\n mainSegmentLoader = _settings$segmentLoad2.main,\n mediaType = settings.mediaTypes[type];\n const activeTrack = mediaType.activeTrack();\n const activeGroup = mediaType.getActiveGroup();\n const previousActiveLoader = mediaType.activePlaylistLoader;\n const lastTrack = mediaType.lastTrack_; // track did not change, do nothing\n\n if (lastTrack && activeTrack && lastTrack.id === activeTrack.id) {\n return;\n }\n mediaType.lastGroup_ = activeGroup;\n mediaType.lastTrack_ = activeTrack;\n stopLoaders(segmentLoader, mediaType);\n if (!activeGroup) {\n // there is no group active so we do not want to restart loaders\n return;\n }\n if (activeGroup.isMainPlaylist) {\n // track did not change, do nothing\n if (!activeTrack || !lastTrack || activeTrack.id === lastTrack.id) {\n return;\n }\n const pc = settings.vhs.playlistController_;\n const newPlaylist = pc.selectPlaylist(); // media will not change do nothing\n\n if (pc.media() === newPlaylist) {\n return;\n }\n mediaType.logger_(`track change. Switching main audio from ${lastTrack.id} to ${activeTrack.id}`);\n mainPlaylistLoader.pause();\n mainSegmentLoader.resetEverything();\n pc.fastQualityChange_(newPlaylist);\n return;\n }\n if (type === 'AUDIO') {\n if (!activeGroup.playlistLoader) {\n // when switching from demuxed audio/video to muxed audio/video (noted by no\n // playlist loader for the audio group), we want to do a destructive reset of the\n // main segment loader and not restart the audio loaders\n mainSegmentLoader.setAudio(true); // don't have to worry about disabling the audio of the audio segment loader since\n // it should be stopped\n\n mainSegmentLoader.resetEverything();\n return;\n } // although the segment loader is an audio segment loader, call the setAudio\n // function to ensure it is prepared to re-append the init segment (or handle other\n // config changes)\n\n segmentLoader.setAudio(true);\n mainSegmentLoader.setAudio(false);\n }\n if (previousActiveLoader === activeGroup.playlistLoader) {\n // Nothing has actually changed. This can happen because track change events can fire\n // multiple times for a \"single\" change. One for enabling the new active track, and\n // one for disabling the track that was active\n startLoaders(activeGroup.playlistLoader, mediaType);\n return;\n }\n if (segmentLoader.track) {\n // For WebVTT, set the new text track in the segmentloader\n segmentLoader.track(activeTrack);\n } // destructive reset\n\n segmentLoader.resetEverything();\n startLoaders(activeGroup.playlistLoader, mediaType);\n};\nconst onError = {\n /**\n * Returns a function to be called when a SegmentLoader or PlaylistLoader encounters\n * an error.\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Error handler. Logs warning (or error if the playlist is excluded) to\n * console and switches back to default audio track.\n * @function onError.AUDIO\n */\n AUDIO: (type, settings) => () => {\n const mediaType = settings.mediaTypes[type],\n excludePlaylist = settings.excludePlaylist; // switch back to default audio track\n\n const activeTrack = mediaType.activeTrack();\n const activeGroup = mediaType.activeGroup();\n const id = (activeGroup.filter(group => group.default)[0] || activeGroup[0]).id;\n const defaultTrack = mediaType.tracks[id];\n if (activeTrack === defaultTrack) {\n // Default track encountered an error. All we can do now is exclude the current\n // rendition and hope another will switch audio groups\n excludePlaylist({\n error: {\n message: 'Problem encountered loading the default audio track.'\n }\n });\n return;\n }\n videojs.log.warn('Problem encountered loading the alternate audio track.' + 'Switching back to default.');\n for (const trackId in mediaType.tracks) {\n mediaType.tracks[trackId].enabled = mediaType.tracks[trackId] === defaultTrack;\n }\n mediaType.onTrackChanged();\n },\n /**\n * Returns a function to be called when a SegmentLoader or PlaylistLoader encounters\n * an error.\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Error handler. Logs warning to console and disables the active subtitle track\n * @function onError.SUBTITLES\n */\n SUBTITLES: (type, settings) => () => {\n const mediaType = settings.mediaTypes[type];\n videojs.log.warn('Problem encountered loading the subtitle track.' + 'Disabling subtitle track.');\n const track = mediaType.activeTrack();\n if (track) {\n track.mode = 'disabled';\n }\n mediaType.onTrackChanged();\n }\n};\nconst setupListeners = {\n /**\n * Setup event listeners for audio playlist loader\n *\n * @param {string} type\n * MediaGroup type\n * @param {PlaylistLoader|null} playlistLoader\n * PlaylistLoader to register listeners on\n * @param {Object} settings\n * Object containing required information for media groups\n * @function setupListeners.AUDIO\n */\n AUDIO: (type, playlistLoader, settings) => {\n if (!playlistLoader) {\n // no playlist loader means audio will be muxed with the video\n return;\n }\n const tech = settings.tech,\n requestOptions = settings.requestOptions,\n segmentLoader = settings.segmentLoaders[type];\n playlistLoader.on('loadedmetadata', () => {\n const media = playlistLoader.media();\n segmentLoader.playlist(media, requestOptions); // if the video is already playing, or if this isn't a live video and preload\n // permits, start downloading segments\n\n if (!tech.paused() || media.endList && tech.preload() !== 'none') {\n segmentLoader.load();\n }\n });\n playlistLoader.on('loadedplaylist', () => {\n segmentLoader.playlist(playlistLoader.media(), requestOptions); // If the player isn't paused, ensure that the segment loader is running\n\n if (!tech.paused()) {\n segmentLoader.load();\n }\n });\n playlistLoader.on('error', onError[type](type, settings));\n },\n /**\n * Setup event listeners for subtitle playlist loader\n *\n * @param {string} type\n * MediaGroup type\n * @param {PlaylistLoader|null} playlistLoader\n * PlaylistLoader to register listeners on\n * @param {Object} settings\n * Object containing required information for media groups\n * @function setupListeners.SUBTITLES\n */\n SUBTITLES: (type, playlistLoader, settings) => {\n const tech = settings.tech,\n requestOptions = settings.requestOptions,\n segmentLoader = settings.segmentLoaders[type],\n mediaType = settings.mediaTypes[type];\n playlistLoader.on('loadedmetadata', () => {\n const media = playlistLoader.media();\n segmentLoader.playlist(media, requestOptions);\n segmentLoader.track(mediaType.activeTrack()); // if the video is already playing, or if this isn't a live video and preload\n // permits, start downloading segments\n\n if (!tech.paused() || media.endList && tech.preload() !== 'none') {\n segmentLoader.load();\n }\n });\n playlistLoader.on('loadedplaylist', () => {\n segmentLoader.playlist(playlistLoader.media(), requestOptions); // If the player isn't paused, ensure that the segment loader is running\n\n if (!tech.paused()) {\n segmentLoader.load();\n }\n });\n playlistLoader.on('error', onError[type](type, settings));\n }\n};\nconst initialize = {\n /**\n * Setup PlaylistLoaders and AudioTracks for the audio groups\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @function initialize.AUDIO\n */\n 'AUDIO': (type, settings) => {\n const vhs = settings.vhs,\n sourceType = settings.sourceType,\n segmentLoader = settings.segmentLoaders[type],\n requestOptions = settings.requestOptions,\n mediaGroups = settings.main.mediaGroups,\n _settings$mediaTypes$ = settings.mediaTypes[type],\n groups = _settings$mediaTypes$.groups,\n tracks = _settings$mediaTypes$.tracks,\n logger_ = _settings$mediaTypes$.logger_,\n mainPlaylistLoader = settings.mainPlaylistLoader;\n const audioOnlyMain = isAudioOnly(mainPlaylistLoader.main); // force a default if we have none\n\n if (!mediaGroups[type] || Object.keys(mediaGroups[type]).length === 0) {\n mediaGroups[type] = {\n main: {\n default: {\n default: true\n }\n }\n };\n if (audioOnlyMain) {\n mediaGroups[type].main.default.playlists = mainPlaylistLoader.main.playlists;\n }\n }\n for (const groupId in mediaGroups[type]) {\n if (!groups[groupId]) {\n groups[groupId] = [];\n }\n for (const variantLabel in mediaGroups[type][groupId]) {\n let properties = mediaGroups[type][groupId][variantLabel];\n let playlistLoader;\n if (audioOnlyMain) {\n logger_(`AUDIO group '${groupId}' label '${variantLabel}' is a main playlist`);\n properties.isMainPlaylist = true;\n playlistLoader = null; // if vhs-json was provided as the source, and the media playlist was resolved,\n // use the resolved media playlist object\n } else if (sourceType === 'vhs-json' && properties.playlists) {\n playlistLoader = new PlaylistLoader(properties.playlists[0], vhs, requestOptions);\n } else if (properties.resolvedUri) {\n playlistLoader = new PlaylistLoader(properties.resolvedUri, vhs, requestOptions); // TODO: dash isn't the only type with properties.playlists\n // should we even have properties.playlists in this check.\n } else if (properties.playlists && sourceType === 'dash') {\n playlistLoader = new DashPlaylistLoader(properties.playlists[0], vhs, requestOptions, mainPlaylistLoader);\n } else {\n // no resolvedUri means the audio is muxed with the video when using this\n // audio track\n playlistLoader = null;\n }\n properties = merge({\n id: variantLabel,\n playlistLoader\n }, properties);\n setupListeners[type](type, properties.playlistLoader, settings);\n groups[groupId].push(properties);\n if (typeof tracks[variantLabel] === 'undefined') {\n const track = new videojs.AudioTrack({\n id: variantLabel,\n kind: audioTrackKind_(properties),\n enabled: false,\n language: properties.language,\n default: properties.default,\n label: variantLabel\n });\n tracks[variantLabel] = track;\n }\n }\n } // setup single error event handler for the segment loader\n\n segmentLoader.on('error', onError[type](type, settings));\n },\n /**\n * Setup PlaylistLoaders and TextTracks for the subtitle groups\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @function initialize.SUBTITLES\n */\n 'SUBTITLES': (type, settings) => {\n const tech = settings.tech,\n vhs = settings.vhs,\n sourceType = settings.sourceType,\n segmentLoader = settings.segmentLoaders[type],\n requestOptions = settings.requestOptions,\n mediaGroups = settings.main.mediaGroups,\n _settings$mediaTypes$2 = settings.mediaTypes[type],\n groups = _settings$mediaTypes$2.groups,\n tracks = _settings$mediaTypes$2.tracks,\n mainPlaylistLoader = settings.mainPlaylistLoader;\n for (const groupId in mediaGroups[type]) {\n if (!groups[groupId]) {\n groups[groupId] = [];\n }\n for (const variantLabel in mediaGroups[type][groupId]) {\n if (!vhs.options_.useForcedSubtitles && mediaGroups[type][groupId][variantLabel].forced) {\n // Subtitle playlists with the forced attribute are not selectable in Safari.\n // According to Apple's HLS Authoring Specification:\n // If content has forced subtitles and regular subtitles in a given language,\n // the regular subtitles track in that language MUST contain both the forced\n // subtitles and the regular subtitles for that language.\n // Because of this requirement and that Safari does not add forced subtitles,\n // forced subtitles are skipped here to maintain consistent experience across\n // all platforms\n continue;\n }\n let properties = mediaGroups[type][groupId][variantLabel];\n let playlistLoader;\n if (sourceType === 'hls') {\n playlistLoader = new PlaylistLoader(properties.resolvedUri, vhs, requestOptions);\n } else if (sourceType === 'dash') {\n const playlists = properties.playlists.filter(p => p.excludeUntil !== Infinity);\n if (!playlists.length) {\n return;\n }\n playlistLoader = new DashPlaylistLoader(properties.playlists[0], vhs, requestOptions, mainPlaylistLoader);\n } else if (sourceType === 'vhs-json') {\n playlistLoader = new PlaylistLoader(\n // if the vhs-json object included the media playlist, use the media playlist\n // as provided, otherwise use the resolved URI to load the playlist\n properties.playlists ? properties.playlists[0] : properties.resolvedUri, vhs, requestOptions);\n }\n properties = merge({\n id: variantLabel,\n playlistLoader\n }, properties);\n setupListeners[type](type, properties.playlistLoader, settings);\n groups[groupId].push(properties);\n if (typeof tracks[variantLabel] === 'undefined') {\n const track = tech.addRemoteTextTrack({\n id: variantLabel,\n kind: 'subtitles',\n default: properties.default && properties.autoselect,\n language: properties.language,\n label: variantLabel\n }, false).track;\n tracks[variantLabel] = track;\n }\n }\n } // setup single error event handler for the segment loader\n\n segmentLoader.on('error', onError[type](type, settings));\n },\n /**\n * Setup TextTracks for the closed-caption groups\n *\n * @param {String} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @function initialize['CLOSED-CAPTIONS']\n */\n 'CLOSED-CAPTIONS': (type, settings) => {\n const tech = settings.tech,\n mediaGroups = settings.main.mediaGroups,\n _settings$mediaTypes$3 = settings.mediaTypes[type],\n groups = _settings$mediaTypes$3.groups,\n tracks = _settings$mediaTypes$3.tracks;\n for (const groupId in mediaGroups[type]) {\n if (!groups[groupId]) {\n groups[groupId] = [];\n }\n for (const variantLabel in mediaGroups[type][groupId]) {\n const properties = mediaGroups[type][groupId][variantLabel]; // Look for either 608 (CCn) or 708 (SERVICEn) caption services\n\n if (!/^(?:CC|SERVICE)/.test(properties.instreamId)) {\n continue;\n }\n const captionServices = tech.options_.vhs && tech.options_.vhs.captionServices || {};\n let newProps = {\n label: variantLabel,\n language: properties.language,\n instreamId: properties.instreamId,\n default: properties.default && properties.autoselect\n };\n if (captionServices[newProps.instreamId]) {\n newProps = merge(newProps, captionServices[newProps.instreamId]);\n }\n if (newProps.default === undefined) {\n delete newProps.default;\n } // No PlaylistLoader is required for Closed-Captions because the captions are\n // embedded within the video stream\n\n groups[groupId].push(merge({\n id: variantLabel\n }, properties));\n if (typeof tracks[variantLabel] === 'undefined') {\n const track = tech.addRemoteTextTrack({\n id: newProps.instreamId,\n kind: 'captions',\n default: newProps.default,\n language: newProps.language,\n label: newProps.label\n }, false).track;\n tracks[variantLabel] = track;\n }\n }\n }\n }\n};\nconst groupMatch = (list, media) => {\n for (let i = 0; i < list.length; i++) {\n if (playlistMatch(media, list[i])) {\n return true;\n }\n if (list[i].playlists && groupMatch(list[i].playlists, media)) {\n return true;\n }\n }\n return false;\n};\n/**\n * Returns a function used to get the active group of the provided type\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Function that returns the active media group for the provided type. Takes an\n * optional parameter {TextTrack} track. If no track is provided, a list of all\n * variants in the group, otherwise the variant corresponding to the provided\n * track is returned.\n * @function activeGroup\n */\n\nconst activeGroup = (type, settings) => track => {\n const mainPlaylistLoader = settings.mainPlaylistLoader,\n groups = settings.mediaTypes[type].groups;\n const media = mainPlaylistLoader.media();\n if (!media) {\n return null;\n }\n let variants = null; // set to variants to main media active group\n\n if (media.attributes[type]) {\n variants = groups[media.attributes[type]];\n }\n const groupKeys = Object.keys(groups);\n if (!variants) {\n // find the mainPlaylistLoader media\n // that is in a media group if we are dealing\n // with audio only\n if (type === 'AUDIO' && groupKeys.length > 1 && isAudioOnly(settings.main)) {\n for (let i = 0; i < groupKeys.length; i++) {\n const groupPropertyList = groups[groupKeys[i]];\n if (groupMatch(groupPropertyList, media)) {\n variants = groupPropertyList;\n break;\n }\n } // use the main group if it exists\n } else if (groups.main) {\n variants = groups.main; // only one group, use that one\n } else if (groupKeys.length === 1) {\n variants = groups[groupKeys[0]];\n }\n }\n if (typeof track === 'undefined') {\n return variants;\n }\n if (track === null || !variants) {\n // An active track was specified so a corresponding group is expected. track === null\n // means no track is currently active so there is no corresponding group\n return null;\n }\n return variants.filter(props => props.id === track.id)[0] || null;\n};\nconst activeTrack = {\n /**\n * Returns a function used to get the active track of type provided\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Function that returns the active media track for the provided type. Returns\n * null if no track is active\n * @function activeTrack.AUDIO\n */\n AUDIO: (type, settings) => () => {\n const tracks = settings.mediaTypes[type].tracks;\n for (const id in tracks) {\n if (tracks[id].enabled) {\n return tracks[id];\n }\n }\n return null;\n },\n /**\n * Returns a function used to get the active track of type provided\n *\n * @param {string} type\n * MediaGroup type\n * @param {Object} settings\n * Object containing required information for media groups\n * @return {Function}\n * Function that returns the active media track for the provided type. Returns\n * null if no track is active\n * @function activeTrack.SUBTITLES\n */\n SUBTITLES: (type, settings) => () => {\n const tracks = settings.mediaTypes[type].tracks;\n for (const id in tracks) {\n if (tracks[id].mode === 'showing' || tracks[id].mode === 'hidden') {\n return tracks[id];\n }\n }\n return null;\n }\n};\nconst getActiveGroup = (type, _ref64) => {\n let mediaTypes = _ref64.mediaTypes;\n return () => {\n const activeTrack_ = mediaTypes[type].activeTrack();\n if (!activeTrack_) {\n return null;\n }\n return mediaTypes[type].activeGroup(activeTrack_);\n };\n};\n/**\n * Setup PlaylistLoaders and Tracks for media groups (Audio, Subtitles,\n * Closed-Captions) specified in the main manifest.\n *\n * @param {Object} settings\n * Object containing required information for setting up the media groups\n * @param {Tech} settings.tech\n * The tech of the player\n * @param {Object} settings.requestOptions\n * XHR request options used by the segment loaders\n * @param {PlaylistLoader} settings.mainPlaylistLoader\n * PlaylistLoader for the main source\n * @param {VhsHandler} settings.vhs\n * VHS SourceHandler\n * @param {Object} settings.main\n * The parsed main manifest\n * @param {Object} settings.mediaTypes\n * Object to store the loaders, tracks, and utility methods for each media type\n * @param {Function} settings.excludePlaylist\n * Excludes the current rendition and forces a rendition switch.\n * @function setupMediaGroups\n */\n\nconst setupMediaGroups = settings => {\n ['AUDIO', 'SUBTITLES', 'CLOSED-CAPTIONS'].forEach(type => {\n initialize[type](type, settings);\n });\n const mediaTypes = settings.mediaTypes,\n mainPlaylistLoader = settings.mainPlaylistLoader,\n tech = settings.tech,\n vhs = settings.vhs,\n _settings$segmentLoad3 = settings.segmentLoaders,\n audioSegmentLoader = _settings$segmentLoad3['AUDIO'],\n mainSegmentLoader = _settings$segmentLoad3.main; // setup active group and track getters and change event handlers\n\n ['AUDIO', 'SUBTITLES'].forEach(type => {\n mediaTypes[type].activeGroup = activeGroup(type, settings);\n mediaTypes[type].activeTrack = activeTrack[type](type, settings);\n mediaTypes[type].onGroupChanged = onGroupChanged(type, settings);\n mediaTypes[type].onGroupChanging = onGroupChanging(type, settings);\n mediaTypes[type].onTrackChanged = onTrackChanged(type, settings);\n mediaTypes[type].getActiveGroup = getActiveGroup(type, settings);\n }); // DO NOT enable the default subtitle or caption track.\n // DO enable the default audio track\n\n const audioGroup = mediaTypes.AUDIO.activeGroup();\n if (audioGroup) {\n const groupId = (audioGroup.filter(group => group.default)[0] || audioGroup[0]).id;\n mediaTypes.AUDIO.tracks[groupId].enabled = true;\n mediaTypes.AUDIO.onGroupChanged();\n mediaTypes.AUDIO.onTrackChanged();\n const activeAudioGroup = mediaTypes.AUDIO.getActiveGroup(); // a similar check for handling setAudio on each loader is run again each time the\n // track is changed, but needs to be handled here since the track may not be considered\n // changed on the first call to onTrackChanged\n\n if (!activeAudioGroup.playlistLoader) {\n // either audio is muxed with video or the stream is audio only\n mainSegmentLoader.setAudio(true);\n } else {\n // audio is demuxed\n mainSegmentLoader.setAudio(false);\n audioSegmentLoader.setAudio(true);\n }\n }\n mainPlaylistLoader.on('mediachange', () => {\n ['AUDIO', 'SUBTITLES'].forEach(type => mediaTypes[type].onGroupChanged());\n });\n mainPlaylistLoader.on('mediachanging', () => {\n ['AUDIO', 'SUBTITLES'].forEach(type => mediaTypes[type].onGroupChanging());\n }); // custom audio track change event handler for usage event\n\n const onAudioTrackChanged = () => {\n mediaTypes.AUDIO.onTrackChanged();\n tech.trigger({\n type: 'usage',\n name: 'vhs-audio-change'\n });\n };\n tech.audioTracks().addEventListener('change', onAudioTrackChanged);\n tech.remoteTextTracks().addEventListener('change', mediaTypes.SUBTITLES.onTrackChanged);\n vhs.on('dispose', () => {\n tech.audioTracks().removeEventListener('change', onAudioTrackChanged);\n tech.remoteTextTracks().removeEventListener('change', mediaTypes.SUBTITLES.onTrackChanged);\n }); // clear existing audio tracks and add the ones we just created\n\n tech.clearTracks('audio');\n for (const id in mediaTypes.AUDIO.tracks) {\n tech.audioTracks().addTrack(mediaTypes.AUDIO.tracks[id]);\n }\n};\n/**\n * Creates skeleton object used to store the loaders, tracks, and utility methods for each\n * media type\n *\n * @return {Object}\n * Object to store the loaders, tracks, and utility methods for each media type\n * @function createMediaTypes\n */\n\nconst createMediaTypes = () => {\n const mediaTypes = {};\n ['AUDIO', 'SUBTITLES', 'CLOSED-CAPTIONS'].forEach(type => {\n mediaTypes[type] = {\n groups: {},\n tracks: {},\n activePlaylistLoader: null,\n activeGroup: noop,\n activeTrack: noop,\n getActiveGroup: noop,\n onGroupChanged: noop,\n onTrackChanged: noop,\n lastTrack_: null,\n logger_: logger(`MediaGroups[${type}]`)\n };\n });\n return mediaTypes;\n};\n\n/**\n * A utility class for setting properties and maintaining the state of the content steering manifest.\n *\n * Content Steering manifest format:\n * VERSION: number (required) currently only version 1 is supported.\n * TTL: number in seconds (optional) until the next content steering manifest reload.\n * RELOAD-URI: string (optional) uri to fetch the next content steering manifest.\n * SERVICE-LOCATION-PRIORITY or PATHWAY-PRIORITY a non empty array of unique string values.\n * PATHWAY-CLONES: array (optional) (HLS only) pathway clone objects to copy from other playlists.\n */\n\nclass SteeringManifest {\n constructor() {\n this.priority_ = [];\n this.pathwayClones_ = new Map();\n }\n set version(number) {\n // Only version 1 is currently supported for both DASH and HLS.\n if (number === 1) {\n this.version_ = number;\n }\n }\n set ttl(seconds) {\n // TTL = time-to-live, default = 300 seconds.\n this.ttl_ = seconds || 300;\n }\n set reloadUri(uri) {\n if (uri) {\n // reload URI can be relative to the previous reloadUri.\n this.reloadUri_ = resolveUrl(this.reloadUri_, uri);\n }\n }\n set priority(array) {\n // priority must be non-empty and unique values.\n if (array && array.length) {\n this.priority_ = array;\n }\n }\n set pathwayClones(array) {\n // pathwayClones must be non-empty.\n if (array && array.length) {\n this.pathwayClones_ = new Map(array.map(clone => [clone.ID, clone]));\n }\n }\n get version() {\n return this.version_;\n }\n get ttl() {\n return this.ttl_;\n }\n get reloadUri() {\n return this.reloadUri_;\n }\n get priority() {\n return this.priority_;\n }\n get pathwayClones() {\n return this.pathwayClones_;\n }\n}\n/**\n * This class represents a content steering manifest and associated state. See both HLS and DASH specifications.\n * HLS: https://developer.apple.com/streaming/HLSContentSteeringSpecification.pdf and\n * https://datatracker.ietf.org/doc/draft-pantos-hls-rfc8216bis/ section 4.4.6.6.\n * DASH: https://dashif.org/docs/DASH-IF-CTS-00XX-Content-Steering-Community-Review.pdf\n *\n * @param {function} xhr for making a network request from the browser.\n * @param {function} bandwidth for fetching the current bandwidth from the main segment loader.\n */\n\nclass ContentSteeringController extends videojs.EventTarget {\n constructor(xhr, bandwidth) {\n super();\n this.currentPathway = null;\n this.defaultPathway = null;\n this.queryBeforeStart = false;\n this.availablePathways_ = new Set();\n this.steeringManifest = new SteeringManifest();\n this.proxyServerUrl_ = null;\n this.manifestType_ = null;\n this.ttlTimeout_ = null;\n this.request_ = null;\n this.currentPathwayClones = new Map();\n this.nextPathwayClones = new Map();\n this.excludedSteeringManifestURLs = new Set();\n this.logger_ = logger('Content Steering');\n this.xhr_ = xhr;\n this.getBandwidth_ = bandwidth;\n }\n /**\n * Assigns the content steering tag properties to the steering controller\n *\n * @param {string} baseUrl the baseURL from the main manifest for resolving the steering manifest url\n * @param {Object} steeringTag the content steering tag from the main manifest\n */\n\n assignTagProperties(baseUrl, steeringTag) {\n this.manifestType_ = steeringTag.serverUri ? 'HLS' : 'DASH'; // serverUri is HLS serverURL is DASH\n\n const steeringUri = steeringTag.serverUri || steeringTag.serverURL;\n if (!steeringUri) {\n this.logger_(`steering manifest URL is ${steeringUri}, cannot request steering manifest.`);\n this.trigger('error');\n return;\n } // Content steering manifests can be encoded as a data URI. We can decode, parse and return early if that's the case.\n\n if (steeringUri.startsWith('data:')) {\n this.decodeDataUriManifest_(steeringUri.substring(steeringUri.indexOf(',') + 1));\n return;\n } // reloadUri is the resolution of the main manifest URL and steering URL.\n\n this.steeringManifest.reloadUri = resolveUrl(baseUrl, steeringUri); // pathwayId is HLS defaultServiceLocation is DASH\n\n this.defaultPathway = steeringTag.pathwayId || steeringTag.defaultServiceLocation; // currently only DASH supports the following properties on tags.\n\n this.queryBeforeStart = steeringTag.queryBeforeStart;\n this.proxyServerUrl_ = steeringTag.proxyServerURL; // trigger a steering event if we have a pathway from the content steering tag.\n // this tells VHS which segment pathway to start with.\n // If queryBeforeStart is true we need to wait for the steering manifest response.\n\n if (this.defaultPathway && !this.queryBeforeStart) {\n this.trigger('content-steering');\n }\n }\n /**\n * Requests the content steering manifest and parse the response. This should only be called after\n * assignTagProperties was called with a content steering tag.\n *\n * @param {string} initialUri The optional uri to make the request with.\n * If set, the request should be made with exactly what is passed in this variable.\n * This scenario should only happen once on initalization.\n */\n\n requestSteeringManifest(initial) {\n const reloadUri = this.steeringManifest.reloadUri;\n if (!reloadUri) {\n return;\n } // We currently don't support passing MPD query parameters directly to the content steering URL as this requires\n // ExtUrlQueryInfo tag support. See the DASH content steering spec section 8.1.\n // This request URI accounts for manifest URIs that have been excluded.\n\n const uri = initial ? reloadUri : this.getRequestURI(reloadUri); // If there are no valid manifest URIs, we should stop content steering.\n\n if (!uri) {\n this.logger_('No valid content steering manifest URIs. Stopping content steering.');\n this.trigger('error');\n this.dispose();\n return;\n }\n this.request_ = this.xhr_({\n uri\n }, (error, errorInfo) => {\n if (error) {\n // If the client receives HTTP 410 Gone in response to a manifest request,\n // it MUST NOT issue another request for that URI for the remainder of the\n // playback session. It MAY continue to use the most-recently obtained set\n // of Pathways.\n if (errorInfo.status === 410) {\n this.logger_(`manifest request 410 ${error}.`);\n this.logger_(`There will be no more content steering requests to ${uri} this session.`);\n this.excludedSteeringManifestURLs.add(uri);\n return;\n } // If the client receives HTTP 429 Too Many Requests with a Retry-After\n // header in response to a manifest request, it SHOULD wait until the time\n // specified by the Retry-After header to reissue the request.\n\n if (errorInfo.status === 429) {\n const retrySeconds = errorInfo.responseHeaders['retry-after'];\n this.logger_(`manifest request 429 ${error}.`);\n this.logger_(`content steering will retry in ${retrySeconds} seconds.`);\n this.startTTLTimeout_(parseInt(retrySeconds, 10));\n return;\n } // If the Steering Manifest cannot be loaded and parsed correctly, the\n // client SHOULD continue to use the previous values and attempt to reload\n // it after waiting for the previously-specified TTL (or 5 minutes if\n // none).\n\n this.logger_(`manifest failed to load ${error}.`);\n this.startTTLTimeout_();\n return;\n }\n const steeringManifestJson = JSON.parse(this.request_.responseText);\n this.assignSteeringProperties_(steeringManifestJson);\n this.startTTLTimeout_();\n });\n }\n /**\n * Set the proxy server URL and add the steering manifest url as a URI encoded parameter.\n *\n * @param {string} steeringUrl the steering manifest url\n * @return the steering manifest url to a proxy server with all parameters set\n */\n\n setProxyServerUrl_(steeringUrl) {\n const steeringUrlObject = new window$1.URL(steeringUrl);\n const proxyServerUrlObject = new window$1.URL(this.proxyServerUrl_);\n proxyServerUrlObject.searchParams.set('url', encodeURI(steeringUrlObject.toString()));\n return this.setSteeringParams_(proxyServerUrlObject.toString());\n }\n /**\n * Decodes and parses the data uri encoded steering manifest\n *\n * @param {string} dataUri the data uri to be decoded and parsed.\n */\n\n decodeDataUriManifest_(dataUri) {\n const steeringManifestJson = JSON.parse(window$1.atob(dataUri));\n this.assignSteeringProperties_(steeringManifestJson);\n }\n /**\n * Set the HLS or DASH content steering manifest request query parameters. For example:\n * _HLS_pathway=\"\" and _HLS_throughput=\n * _DASH_pathway and _DASH_throughput\n *\n * @param {string} uri to add content steering server parameters to.\n * @return a new uri as a string with the added steering query parameters.\n */\n\n setSteeringParams_(url) {\n const urlObject = new window$1.URL(url);\n const path = this.getPathway();\n const networkThroughput = this.getBandwidth_();\n if (path) {\n const pathwayKey = `_${this.manifestType_}_pathway`;\n urlObject.searchParams.set(pathwayKey, path);\n }\n if (networkThroughput) {\n const throughputKey = `_${this.manifestType_}_throughput`;\n urlObject.searchParams.set(throughputKey, networkThroughput);\n }\n return urlObject.toString();\n }\n /**\n * Assigns the current steering manifest properties and to the SteeringManifest object\n *\n * @param {Object} steeringJson the raw JSON steering manifest\n */\n\n assignSteeringProperties_(steeringJson) {\n this.steeringManifest.version = steeringJson.VERSION;\n if (!this.steeringManifest.version) {\n this.logger_(`manifest version is ${steeringJson.VERSION}, which is not supported.`);\n this.trigger('error');\n return;\n }\n this.steeringManifest.ttl = steeringJson.TTL;\n this.steeringManifest.reloadUri = steeringJson['RELOAD-URI']; // HLS = PATHWAY-PRIORITY required. DASH = SERVICE-LOCATION-PRIORITY optional\n\n this.steeringManifest.priority = steeringJson['PATHWAY-PRIORITY'] || steeringJson['SERVICE-LOCATION-PRIORITY']; // Pathway clones to be created/updated in HLS.\n // See section 7.2 https://datatracker.ietf.org/doc/draft-pantos-hls-rfc8216bis/\n\n this.steeringManifest.pathwayClones = steeringJson['PATHWAY-CLONES'];\n this.nextPathwayClones = this.steeringManifest.pathwayClones; // 1. apply first pathway from the array.\n // 2. if first pathway doesn't exist in manifest, try next pathway.\n // a. if all pathways are exhausted, ignore the steering manifest priority.\n // 3. if segments fail from an established pathway, try all variants/renditions, then exclude the failed pathway.\n // a. exclude a pathway for a minimum of the last TTL duration. Meaning, from the next steering response,\n // the excluded pathway will be ignored.\n // See excludePathway usage in excludePlaylist().\n // If there are no available pathways, we need to stop content steering.\n\n if (!this.availablePathways_.size) {\n this.logger_('There are no available pathways for content steering. Ending content steering.');\n this.trigger('error');\n this.dispose();\n }\n const chooseNextPathway = pathwaysByPriority => {\n for (const path of pathwaysByPriority) {\n if (this.availablePathways_.has(path)) {\n return path;\n }\n } // If no pathway matches, ignore the manifest and choose the first available.\n\n return [...this.availablePathways_][0];\n };\n const nextPathway = chooseNextPathway(this.steeringManifest.priority);\n if (this.currentPathway !== nextPathway) {\n this.currentPathway = nextPathway;\n this.trigger('content-steering');\n }\n }\n /**\n * Returns the pathway to use for steering decisions\n *\n * @return {string} returns the current pathway or the default\n */\n\n getPathway() {\n return this.currentPathway || this.defaultPathway;\n }\n /**\n * Chooses the manifest request URI based on proxy URIs and server URLs.\n * Also accounts for exclusion on certain manifest URIs.\n *\n * @param {string} reloadUri the base uri before parameters\n *\n * @return {string} the final URI for the request to the manifest server.\n */\n\n getRequestURI(reloadUri) {\n if (!reloadUri) {\n return null;\n }\n const isExcluded = uri => this.excludedSteeringManifestURLs.has(uri);\n if (this.proxyServerUrl_) {\n const proxyURI = this.setProxyServerUrl_(reloadUri);\n if (!isExcluded(proxyURI)) {\n return proxyURI;\n }\n }\n const steeringURI = this.setSteeringParams_(reloadUri);\n if (!isExcluded(steeringURI)) {\n return steeringURI;\n } // Return nothing if all valid manifest URIs are excluded.\n\n return null;\n }\n /**\n * Start the timeout for re-requesting the steering manifest at the TTL interval.\n *\n * @param {number} ttl time in seconds of the timeout. Defaults to the\n * ttl interval in the steering manifest\n */\n\n startTTLTimeout_() {\n let ttl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.steeringManifest.ttl;\n // 300 (5 minutes) is the default value.\n const ttlMS = ttl * 1000;\n this.ttlTimeout_ = window$1.setTimeout(() => {\n this.requestSteeringManifest();\n }, ttlMS);\n }\n /**\n * Clear the TTL timeout if necessary.\n */\n\n clearTTLTimeout_() {\n window$1.clearTimeout(this.ttlTimeout_);\n this.ttlTimeout_ = null;\n }\n /**\n * aborts any current steering xhr and sets the current request object to null\n */\n\n abort() {\n if (this.request_) {\n this.request_.abort();\n }\n this.request_ = null;\n }\n /**\n * aborts steering requests clears the ttl timeout and resets all properties.\n */\n\n dispose() {\n this.off('content-steering');\n this.off('error');\n this.abort();\n this.clearTTLTimeout_();\n this.currentPathway = null;\n this.defaultPathway = null;\n this.queryBeforeStart = null;\n this.proxyServerUrl_ = null;\n this.manifestType_ = null;\n this.ttlTimeout_ = null;\n this.request_ = null;\n this.excludedSteeringManifestURLs = new Set();\n this.availablePathways_ = new Set();\n this.steeringManifest = new SteeringManifest();\n }\n /**\n * adds a pathway to the available pathways set\n *\n * @param {string} pathway the pathway string to add\n */\n\n addAvailablePathway(pathway) {\n if (pathway) {\n this.availablePathways_.add(pathway);\n }\n }\n /**\n * Clears all pathways from the available pathways set\n */\n\n clearAvailablePathways() {\n this.availablePathways_.clear();\n }\n /**\n * Removes a pathway from the available pathways set.\n */\n\n excludePathway(pathway) {\n return this.availablePathways_.delete(pathway);\n }\n /**\n * Checks the refreshed DASH manifest content steering tag for changes.\n *\n * @param {string} baseURL new steering tag on DASH manifest refresh\n * @param {Object} newTag the new tag to check for changes\n * @return a true or false whether the new tag has different values\n */\n\n didDASHTagChange(baseURL, newTag) {\n return !newTag && this.steeringManifest.reloadUri || newTag && (resolveUrl(baseURL, newTag.serverURL) !== this.steeringManifest.reloadUri || newTag.defaultServiceLocation !== this.defaultPathway || newTag.queryBeforeStart !== this.queryBeforeStart || newTag.proxyServerURL !== this.proxyServerUrl_);\n }\n getAvailablePathways() {\n return this.availablePathways_;\n }\n}\n\n/**\n * @file playlist-controller.js\n */\nconst ABORT_EARLY_EXCLUSION_SECONDS = 10;\nlet Vhs$1; // SegmentLoader stats that need to have each loader's\n// values summed to calculate the final value\n\nconst loaderStats = ['mediaRequests', 'mediaRequestsAborted', 'mediaRequestsTimedout', 'mediaRequestsErrored', 'mediaTransferDuration', 'mediaBytesTransferred', 'mediaAppends'];\nconst sumLoaderStat = function (stat) {\n return this.audioSegmentLoader_[stat] + this.mainSegmentLoader_[stat];\n};\nconst shouldSwitchToMedia = function (_ref65) {\n let currentPlaylist = _ref65.currentPlaylist,\n buffered = _ref65.buffered,\n currentTime = _ref65.currentTime,\n nextPlaylist = _ref65.nextPlaylist,\n bufferLowWaterLine = _ref65.bufferLowWaterLine,\n bufferHighWaterLine = _ref65.bufferHighWaterLine,\n duration = _ref65.duration,\n bufferBasedABR = _ref65.bufferBasedABR,\n log = _ref65.log;\n // we have no other playlist to switch to\n if (!nextPlaylist) {\n videojs.log.warn('We received no playlist to switch to. Please check your stream.');\n return false;\n }\n const sharedLogLine = `allowing switch ${currentPlaylist && currentPlaylist.id || 'null'} -> ${nextPlaylist.id}`;\n if (!currentPlaylist) {\n log(`${sharedLogLine} as current playlist is not set`);\n return true;\n } // no need to switch if playlist is the same\n\n if (nextPlaylist.id === currentPlaylist.id) {\n return false;\n } // determine if current time is in a buffered range.\n\n const isBuffered = Boolean(findRange(buffered, currentTime).length); // If the playlist is live, then we want to not take low water line into account.\n // This is because in LIVE, the player plays 3 segments from the end of the\n // playlist, and if `BUFFER_LOW_WATER_LINE` is greater than the duration availble\n // in those segments, a viewer will never experience a rendition upswitch.\n\n if (!currentPlaylist.endList) {\n // For LLHLS live streams, don't switch renditions before playback has started, as it almost\n // doubles the time to first playback.\n if (!isBuffered && typeof currentPlaylist.partTargetDuration === 'number') {\n log(`not ${sharedLogLine} as current playlist is live llhls, but currentTime isn't in buffered.`);\n return false;\n }\n log(`${sharedLogLine} as current playlist is live`);\n return true;\n }\n const forwardBuffer = timeAheadOf(buffered, currentTime);\n const maxBufferLowWaterLine = bufferBasedABR ? Config.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE : Config.MAX_BUFFER_LOW_WATER_LINE; // For the same reason as LIVE, we ignore the low water line when the VOD\n // duration is below the max potential low water line\n\n if (duration < maxBufferLowWaterLine) {\n log(`${sharedLogLine} as duration < max low water line (${duration} < ${maxBufferLowWaterLine})`);\n return true;\n }\n const nextBandwidth = nextPlaylist.attributes.BANDWIDTH;\n const currBandwidth = currentPlaylist.attributes.BANDWIDTH; // when switching down, if our buffer is lower than the high water line,\n // we can switch down\n\n if (nextBandwidth < currBandwidth && (!bufferBasedABR || forwardBuffer < bufferHighWaterLine)) {\n let logLine = `${sharedLogLine} as next bandwidth < current bandwidth (${nextBandwidth} < ${currBandwidth})`;\n if (bufferBasedABR) {\n logLine += ` and forwardBuffer < bufferHighWaterLine (${forwardBuffer} < ${bufferHighWaterLine})`;\n }\n log(logLine);\n return true;\n } // and if our buffer is higher than the low water line,\n // we can switch up\n\n if ((!bufferBasedABR || nextBandwidth > currBandwidth) && forwardBuffer >= bufferLowWaterLine) {\n let logLine = `${sharedLogLine} as forwardBuffer >= bufferLowWaterLine (${forwardBuffer} >= ${bufferLowWaterLine})`;\n if (bufferBasedABR) {\n logLine += ` and next bandwidth > current bandwidth (${nextBandwidth} > ${currBandwidth})`;\n }\n log(logLine);\n return true;\n }\n log(`not ${sharedLogLine} as no switching criteria met`);\n return false;\n};\n/**\n * the main playlist controller controller all interactons\n * between playlists and segmentloaders. At this time this mainly\n * involves a main playlist and a series of audio playlists\n * if they are available\n *\n * @class PlaylistController\n * @extends videojs.EventTarget\n */\n\nclass PlaylistController extends videojs.EventTarget {\n constructor(options) {\n super();\n const src = options.src,\n withCredentials = options.withCredentials,\n tech = options.tech,\n bandwidth = options.bandwidth,\n externVhs = options.externVhs,\n useCueTags = options.useCueTags,\n playlistExclusionDuration = options.playlistExclusionDuration,\n enableLowInitialPlaylist = options.enableLowInitialPlaylist,\n sourceType = options.sourceType,\n cacheEncryptionKeys = options.cacheEncryptionKeys,\n bufferBasedABR = options.bufferBasedABR,\n leastPixelDiffSelector = options.leastPixelDiffSelector,\n captionServices = options.captionServices;\n if (!src) {\n throw new Error('A non-empty playlist URL or JSON manifest string is required');\n }\n let maxPlaylistRetries = options.maxPlaylistRetries;\n if (maxPlaylistRetries === null || typeof maxPlaylistRetries === 'undefined') {\n maxPlaylistRetries = Infinity;\n }\n Vhs$1 = externVhs;\n this.bufferBasedABR = Boolean(bufferBasedABR);\n this.leastPixelDiffSelector = Boolean(leastPixelDiffSelector);\n this.withCredentials = withCredentials;\n this.tech_ = tech;\n this.vhs_ = tech.vhs;\n this.sourceType_ = sourceType;\n this.useCueTags_ = useCueTags;\n this.playlistExclusionDuration = playlistExclusionDuration;\n this.maxPlaylistRetries = maxPlaylistRetries;\n this.enableLowInitialPlaylist = enableLowInitialPlaylist;\n if (this.useCueTags_) {\n this.cueTagsTrack_ = this.tech_.addTextTrack('metadata', 'ad-cues');\n this.cueTagsTrack_.inBandMetadataTrackDispatchType = '';\n }\n this.requestOptions_ = {\n withCredentials,\n maxPlaylistRetries,\n timeout: null\n };\n this.on('error', this.pauseLoading);\n this.mediaTypes_ = createMediaTypes();\n this.mediaSource = new window$1.MediaSource();\n this.handleDurationChange_ = this.handleDurationChange_.bind(this);\n this.handleSourceOpen_ = this.handleSourceOpen_.bind(this);\n this.handleSourceEnded_ = this.handleSourceEnded_.bind(this);\n this.mediaSource.addEventListener('durationchange', this.handleDurationChange_); // load the media source into the player\n\n this.mediaSource.addEventListener('sourceopen', this.handleSourceOpen_);\n this.mediaSource.addEventListener('sourceended', this.handleSourceEnded_); // we don't have to handle sourceclose since dispose will handle termination of\n // everything, and the MediaSource should not be detached without a proper disposal\n\n this.seekable_ = createTimeRanges();\n this.hasPlayed_ = false;\n this.syncController_ = new SyncController(options);\n this.segmentMetadataTrack_ = tech.addRemoteTextTrack({\n kind: 'metadata',\n label: 'segment-metadata'\n }, false).track;\n this.decrypter_ = new Decrypter();\n this.sourceUpdater_ = new SourceUpdater(this.mediaSource);\n this.inbandTextTracks_ = {};\n this.timelineChangeController_ = new TimelineChangeController();\n this.keyStatusMap_ = new Map();\n const segmentLoaderSettings = {\n vhs: this.vhs_,\n parse708captions: options.parse708captions,\n useDtsForTimestampOffset: options.useDtsForTimestampOffset,\n captionServices,\n mediaSource: this.mediaSource,\n currentTime: this.tech_.currentTime.bind(this.tech_),\n seekable: () => this.seekable(),\n seeking: () => this.tech_.seeking(),\n duration: () => this.duration(),\n hasPlayed: () => this.hasPlayed_,\n goalBufferLength: () => this.goalBufferLength(),\n bandwidth,\n syncController: this.syncController_,\n decrypter: this.decrypter_,\n sourceType: this.sourceType_,\n inbandTextTracks: this.inbandTextTracks_,\n cacheEncryptionKeys,\n sourceUpdater: this.sourceUpdater_,\n timelineChangeController: this.timelineChangeController_,\n exactManifestTimings: options.exactManifestTimings,\n addMetadataToTextTrack: this.addMetadataToTextTrack.bind(this)\n }; // The source type check not only determines whether a special DASH playlist loader\n // should be used, but also covers the case where the provided src is a vhs-json\n // manifest object (instead of a URL). In the case of vhs-json, the default\n // PlaylistLoader should be used.\n\n this.mainPlaylistLoader_ = this.sourceType_ === 'dash' ? new DashPlaylistLoader(src, this.vhs_, merge(this.requestOptions_, {\n addMetadataToTextTrack: this.addMetadataToTextTrack.bind(this)\n })) : new PlaylistLoader(src, this.vhs_, merge(this.requestOptions_, {\n addDateRangesToTextTrack: this.addDateRangesToTextTrack_.bind(this)\n }));\n this.setupMainPlaylistLoaderListeners_(); // setup segment loaders\n // combined audio/video or just video when alternate audio track is selected\n\n this.mainSegmentLoader_ = new SegmentLoader(merge(segmentLoaderSettings, {\n segmentMetadataTrack: this.segmentMetadataTrack_,\n loaderType: 'main'\n }), options); // alternate audio track\n\n this.audioSegmentLoader_ = new SegmentLoader(merge(segmentLoaderSettings, {\n loaderType: 'audio'\n }), options);\n this.subtitleSegmentLoader_ = new VTTSegmentLoader(merge(segmentLoaderSettings, {\n loaderType: 'vtt',\n featuresNativeTextTracks: this.tech_.featuresNativeTextTracks,\n loadVttJs: () => new Promise((resolve, reject) => {\n function onLoad() {\n tech.off('vttjserror', onError);\n resolve();\n }\n function onError() {\n tech.off('vttjsloaded', onLoad);\n reject();\n }\n tech.one('vttjsloaded', onLoad);\n tech.one('vttjserror', onError); // safe to call multiple times, script will be loaded only once:\n\n tech.addWebVttScript_();\n })\n }), options);\n const getBandwidth = () => {\n return this.mainSegmentLoader_.bandwidth;\n };\n this.contentSteeringController_ = new ContentSteeringController(this.vhs_.xhr, getBandwidth);\n this.setupSegmentLoaderListeners_();\n if (this.bufferBasedABR) {\n this.mainPlaylistLoader_.one('loadedplaylist', () => this.startABRTimer_());\n this.tech_.on('pause', () => this.stopABRTimer_());\n this.tech_.on('play', () => this.startABRTimer_());\n } // Create SegmentLoader stat-getters\n // mediaRequests_\n // mediaRequestsAborted_\n // mediaRequestsTimedout_\n // mediaRequestsErrored_\n // mediaTransferDuration_\n // mediaBytesTransferred_\n // mediaAppends_\n\n loaderStats.forEach(stat => {\n this[stat + '_'] = sumLoaderStat.bind(this, stat);\n });\n this.logger_ = logger('pc');\n this.triggeredFmp4Usage = false;\n if (this.tech_.preload() === 'none') {\n this.loadOnPlay_ = () => {\n this.loadOnPlay_ = null;\n this.mainPlaylistLoader_.load();\n };\n this.tech_.one('play', this.loadOnPlay_);\n } else {\n this.mainPlaylistLoader_.load();\n }\n this.timeToLoadedData__ = -1;\n this.mainAppendsToLoadedData__ = -1;\n this.audioAppendsToLoadedData__ = -1;\n const event = this.tech_.preload() === 'none' ? 'play' : 'loadstart'; // start the first frame timer on loadstart or play (for preload none)\n\n this.tech_.one(event, () => {\n const timeToLoadedDataStart = Date.now();\n this.tech_.one('loadeddata', () => {\n this.timeToLoadedData__ = Date.now() - timeToLoadedDataStart;\n this.mainAppendsToLoadedData__ = this.mainSegmentLoader_.mediaAppends;\n this.audioAppendsToLoadedData__ = this.audioSegmentLoader_.mediaAppends;\n });\n });\n }\n mainAppendsToLoadedData_() {\n return this.mainAppendsToLoadedData__;\n }\n audioAppendsToLoadedData_() {\n return this.audioAppendsToLoadedData__;\n }\n appendsToLoadedData_() {\n const main = this.mainAppendsToLoadedData_();\n const audio = this.audioAppendsToLoadedData_();\n if (main === -1 || audio === -1) {\n return -1;\n }\n return main + audio;\n }\n timeToLoadedData_() {\n return this.timeToLoadedData__;\n }\n /**\n * Run selectPlaylist and switch to the new playlist if we should\n *\n * @param {string} [reason=abr] a reason for why the ABR check is made\n * @private\n */\n\n checkABR_() {\n let reason = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'abr';\n const nextPlaylist = this.selectPlaylist();\n if (nextPlaylist && this.shouldSwitchToMedia_(nextPlaylist)) {\n this.switchMedia_(nextPlaylist, reason);\n }\n }\n switchMedia_(playlist, cause, delay) {\n const oldMedia = this.media();\n const oldId = oldMedia && (oldMedia.id || oldMedia.uri);\n const newId = playlist && (playlist.id || playlist.uri);\n if (oldId && oldId !== newId) {\n this.logger_(`switch media ${oldId} -> ${newId} from ${cause}`);\n this.tech_.trigger({\n type: 'usage',\n name: `vhs-rendition-change-${cause}`\n });\n }\n this.mainPlaylistLoader_.media(playlist, delay);\n }\n /**\n * A function that ensures we switch our playlists inside of `mediaTypes`\n * to match the current `serviceLocation` provided by the contentSteering controller.\n * We want to check media types of `AUDIO`, `SUBTITLES`, and `CLOSED-CAPTIONS`.\n *\n * This should only be called on a DASH playback scenario while using content steering.\n * This is necessary due to differences in how media in HLS manifests are generally tied to\n * a video playlist, where in DASH that is not always the case.\n */\n\n switchMediaForDASHContentSteering_() {\n ['AUDIO', 'SUBTITLES', 'CLOSED-CAPTIONS'].forEach(type => {\n const mediaType = this.mediaTypes_[type];\n const activeGroup = mediaType ? mediaType.activeGroup() : null;\n const pathway = this.contentSteeringController_.getPathway();\n if (activeGroup && pathway) {\n // activeGroup can be an array or a single group\n const mediaPlaylists = activeGroup.length ? activeGroup[0].playlists : activeGroup.playlists;\n const dashMediaPlaylists = mediaPlaylists.filter(p => p.attributes.serviceLocation === pathway); // Switch the current active playlist to the correct CDN\n\n if (dashMediaPlaylists.length) {\n this.mediaTypes_[type].activePlaylistLoader.media(dashMediaPlaylists[0]);\n }\n }\n });\n }\n /**\n * Start a timer that periodically calls checkABR_\n *\n * @private\n */\n\n startABRTimer_() {\n this.stopABRTimer_();\n this.abrTimer_ = window$1.setInterval(() => this.checkABR_(), 250);\n }\n /**\n * Stop the timer that periodically calls checkABR_\n *\n * @private\n */\n\n stopABRTimer_() {\n // if we're scrubbing, we don't need to pause.\n // This getter will be added to Video.js in version 7.11.\n if (this.tech_.scrubbing && this.tech_.scrubbing()) {\n return;\n }\n window$1.clearInterval(this.abrTimer_);\n this.abrTimer_ = null;\n }\n /**\n * Get a list of playlists for the currently selected audio playlist\n *\n * @return {Array} the array of audio playlists\n */\n\n getAudioTrackPlaylists_() {\n const main = this.main();\n const defaultPlaylists = main && main.playlists || []; // if we don't have any audio groups then we can only\n // assume that the audio tracks are contained in main\n // playlist array, use that or an empty array.\n\n if (!main || !main.mediaGroups || !main.mediaGroups.AUDIO) {\n return defaultPlaylists;\n }\n const AUDIO = main.mediaGroups.AUDIO;\n const groupKeys = Object.keys(AUDIO);\n let track; // get the current active track\n\n if (Object.keys(this.mediaTypes_.AUDIO.groups).length) {\n track = this.mediaTypes_.AUDIO.activeTrack(); // or get the default track from main if mediaTypes_ isn't setup yet\n } else {\n // default group is `main` or just the first group.\n const defaultGroup = AUDIO.main || groupKeys.length && AUDIO[groupKeys[0]];\n for (const label in defaultGroup) {\n if (defaultGroup[label].default) {\n track = {\n label\n };\n break;\n }\n }\n } // no active track no playlists.\n\n if (!track) {\n return defaultPlaylists;\n }\n const playlists = []; // get all of the playlists that are possible for the\n // active track.\n\n for (const group in AUDIO) {\n if (AUDIO[group][track.label]) {\n const properties = AUDIO[group][track.label];\n if (properties.playlists && properties.playlists.length) {\n playlists.push.apply(playlists, properties.playlists);\n } else if (properties.uri) {\n playlists.push(properties);\n } else if (main.playlists.length) {\n // if an audio group does not have a uri\n // see if we have main playlists that use it as a group.\n // if we do then add those to the playlists list.\n for (let i = 0; i < main.playlists.length; i++) {\n const playlist = main.playlists[i];\n if (playlist.attributes && playlist.attributes.AUDIO && playlist.attributes.AUDIO === group) {\n playlists.push(playlist);\n }\n }\n }\n }\n }\n if (!playlists.length) {\n return defaultPlaylists;\n }\n return playlists;\n }\n /**\n * Register event handlers on the main playlist loader. A helper\n * function for construction time.\n *\n * @private\n */\n\n setupMainPlaylistLoaderListeners_() {\n this.mainPlaylistLoader_.on('loadedmetadata', () => {\n const media = this.mainPlaylistLoader_.media();\n const requestTimeout = media.targetDuration * 1.5 * 1000; // If we don't have any more available playlists, we don't want to\n // timeout the request.\n\n if (isLowestEnabledRendition(this.mainPlaylistLoader_.main, this.mainPlaylistLoader_.media())) {\n this.requestOptions_.timeout = 0;\n } else {\n this.requestOptions_.timeout = requestTimeout;\n } // if this isn't a live video and preload permits, start\n // downloading segments\n\n if (media.endList && this.tech_.preload() !== 'none') {\n this.mainSegmentLoader_.playlist(media, this.requestOptions_);\n this.mainSegmentLoader_.load();\n }\n setupMediaGroups({\n sourceType: this.sourceType_,\n segmentLoaders: {\n AUDIO: this.audioSegmentLoader_,\n SUBTITLES: this.subtitleSegmentLoader_,\n main: this.mainSegmentLoader_\n },\n tech: this.tech_,\n requestOptions: this.requestOptions_,\n mainPlaylistLoader: this.mainPlaylistLoader_,\n vhs: this.vhs_,\n main: this.main(),\n mediaTypes: this.mediaTypes_,\n excludePlaylist: this.excludePlaylist.bind(this)\n });\n this.triggerPresenceUsage_(this.main(), media);\n this.setupFirstPlay();\n if (!this.mediaTypes_.AUDIO.activePlaylistLoader || this.mediaTypes_.AUDIO.activePlaylistLoader.media()) {\n this.trigger('selectedinitialmedia');\n } else {\n // We must wait for the active audio playlist loader to\n // finish setting up before triggering this event so the\n // representations API and EME setup is correct\n this.mediaTypes_.AUDIO.activePlaylistLoader.one('loadedmetadata', () => {\n this.trigger('selectedinitialmedia');\n });\n }\n });\n this.mainPlaylistLoader_.on('loadedplaylist', () => {\n if (this.loadOnPlay_) {\n this.tech_.off('play', this.loadOnPlay_);\n }\n let updatedPlaylist = this.mainPlaylistLoader_.media();\n if (!updatedPlaylist) {\n // Add content steering listeners on first load and init.\n this.attachContentSteeringListeners_();\n this.initContentSteeringController_(); // exclude any variants that are not supported by the browser before selecting\n // an initial media as the playlist selectors do not consider browser support\n\n this.excludeUnsupportedVariants_();\n let selectedMedia;\n if (this.enableLowInitialPlaylist) {\n selectedMedia = this.selectInitialPlaylist();\n }\n if (!selectedMedia) {\n selectedMedia = this.selectPlaylist();\n }\n if (!selectedMedia || !this.shouldSwitchToMedia_(selectedMedia)) {\n return;\n }\n this.initialMedia_ = selectedMedia;\n this.switchMedia_(this.initialMedia_, 'initial'); // Under the standard case where a source URL is provided, loadedplaylist will\n // fire again since the playlist will be requested. In the case of vhs-json\n // (where the manifest object is provided as the source), when the media\n // playlist's `segments` list is already available, a media playlist won't be\n // requested, and loadedplaylist won't fire again, so the playlist handler must be\n // called on its own here.\n\n const haveJsonSource = this.sourceType_ === 'vhs-json' && this.initialMedia_.segments;\n if (!haveJsonSource) {\n return;\n }\n updatedPlaylist = this.initialMedia_;\n }\n this.handleUpdatedMediaPlaylist(updatedPlaylist);\n });\n this.mainPlaylistLoader_.on('error', () => {\n const error = this.mainPlaylistLoader_.error;\n this.excludePlaylist({\n playlistToExclude: error.playlist,\n error\n });\n });\n this.mainPlaylistLoader_.on('mediachanging', () => {\n this.mainSegmentLoader_.abort();\n this.mainSegmentLoader_.pause();\n });\n this.mainPlaylistLoader_.on('mediachange', () => {\n const media = this.mainPlaylistLoader_.media();\n const requestTimeout = media.targetDuration * 1.5 * 1000; // If we don't have any more available playlists, we don't want to\n // timeout the request.\n\n if (isLowestEnabledRendition(this.mainPlaylistLoader_.main, this.mainPlaylistLoader_.media())) {\n this.requestOptions_.timeout = 0;\n } else {\n this.requestOptions_.timeout = requestTimeout;\n }\n if (this.sourceType_ === 'dash') {\n // we don't want to re-request the same hls playlist right after it was changed\n this.mainPlaylistLoader_.load();\n } // TODO: Create a new event on the PlaylistLoader that signals\n // that the segments have changed in some way and use that to\n // update the SegmentLoader instead of doing it twice here and\n // on `loadedplaylist`\n\n this.mainSegmentLoader_.pause();\n this.mainSegmentLoader_.playlist(media, this.requestOptions_);\n if (this.waitingForFastQualityPlaylistReceived_) {\n this.runFastQualitySwitch_();\n } else {\n this.mainSegmentLoader_.load();\n }\n this.tech_.trigger({\n type: 'mediachange',\n bubbles: true\n });\n });\n this.mainPlaylistLoader_.on('playlistunchanged', () => {\n const updatedPlaylist = this.mainPlaylistLoader_.media(); // ignore unchanged playlists that have already been\n // excluded for not-changing. We likely just have a really slowly updating\n // playlist.\n\n if (updatedPlaylist.lastExcludeReason_ === 'playlist-unchanged') {\n return;\n }\n const playlistOutdated = this.stuckAtPlaylistEnd_(updatedPlaylist);\n if (playlistOutdated) {\n // Playlist has stopped updating and we're stuck at its end. Try to\n // exclude it and switch to another playlist in the hope that that\n // one is updating (and give the player a chance to re-adjust to the\n // safe live point).\n this.excludePlaylist({\n error: {\n message: 'Playlist no longer updating.',\n reason: 'playlist-unchanged'\n }\n }); // useful for monitoring QoS\n\n this.tech_.trigger('playliststuck');\n }\n });\n this.mainPlaylistLoader_.on('renditiondisabled', () => {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-rendition-disabled'\n });\n });\n this.mainPlaylistLoader_.on('renditionenabled', () => {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-rendition-enabled'\n });\n });\n }\n /**\n * Given an updated media playlist (whether it was loaded for the first time, or\n * refreshed for live playlists), update any relevant properties and state to reflect\n * changes in the media that should be accounted for (e.g., cues and duration).\n *\n * @param {Object} updatedPlaylist the updated media playlist object\n *\n * @private\n */\n\n handleUpdatedMediaPlaylist(updatedPlaylist) {\n if (this.useCueTags_) {\n this.updateAdCues_(updatedPlaylist);\n } // TODO: Create a new event on the PlaylistLoader that signals\n // that the segments have changed in some way and use that to\n // update the SegmentLoader instead of doing it twice here and\n // on `mediachange`\n\n this.mainSegmentLoader_.pause();\n this.mainSegmentLoader_.playlist(updatedPlaylist, this.requestOptions_);\n if (this.waitingForFastQualityPlaylistReceived_) {\n this.runFastQualitySwitch_();\n }\n this.updateDuration(!updatedPlaylist.endList); // If the player isn't paused, ensure that the segment loader is running,\n // as it is possible that it was temporarily stopped while waiting for\n // a playlist (e.g., in case the playlist errored and we re-requested it).\n\n if (!this.tech_.paused()) {\n this.mainSegmentLoader_.load();\n if (this.audioSegmentLoader_) {\n this.audioSegmentLoader_.load();\n }\n }\n }\n /**\n * A helper function for triggerring presence usage events once per source\n *\n * @private\n */\n\n triggerPresenceUsage_(main, media) {\n const mediaGroups = main.mediaGroups || {};\n let defaultDemuxed = true;\n const audioGroupKeys = Object.keys(mediaGroups.AUDIO);\n for (const mediaGroup in mediaGroups.AUDIO) {\n for (const label in mediaGroups.AUDIO[mediaGroup]) {\n const properties = mediaGroups.AUDIO[mediaGroup][label];\n if (!properties.uri) {\n defaultDemuxed = false;\n }\n }\n }\n if (defaultDemuxed) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-demuxed'\n });\n }\n if (Object.keys(mediaGroups.SUBTITLES).length) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-webvtt'\n });\n }\n if (Vhs$1.Playlist.isAes(media)) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-aes'\n });\n }\n if (audioGroupKeys.length && Object.keys(mediaGroups.AUDIO[audioGroupKeys[0]]).length > 1) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-alternate-audio'\n });\n }\n if (this.useCueTags_) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-playlist-cue-tags'\n });\n }\n }\n shouldSwitchToMedia_(nextPlaylist) {\n const currentPlaylist = this.mainPlaylistLoader_.media() || this.mainPlaylistLoader_.pendingMedia_;\n const currentTime = this.tech_.currentTime();\n const bufferLowWaterLine = this.bufferLowWaterLine();\n const bufferHighWaterLine = this.bufferHighWaterLine();\n const buffered = this.tech_.buffered();\n return shouldSwitchToMedia({\n buffered,\n currentTime,\n currentPlaylist,\n nextPlaylist,\n bufferLowWaterLine,\n bufferHighWaterLine,\n duration: this.duration(),\n bufferBasedABR: this.bufferBasedABR,\n log: this.logger_\n });\n }\n /**\n * Register event handlers on the segment loaders. A helper function\n * for construction time.\n *\n * @private\n */\n\n setupSegmentLoaderListeners_() {\n this.mainSegmentLoader_.on('bandwidthupdate', () => {\n // Whether or not buffer based ABR or another ABR is used, on a bandwidth change it's\n // useful to check to see if a rendition switch should be made.\n this.checkABR_('bandwidthupdate');\n this.tech_.trigger('bandwidthupdate');\n });\n this.mainSegmentLoader_.on('timeout', () => {\n if (this.bufferBasedABR) {\n // If a rendition change is needed, then it would've be done on `bandwidthupdate`.\n // Here the only consideration is that for buffer based ABR there's no guarantee\n // of an immediate switch (since the bandwidth is averaged with a timeout\n // bandwidth value of 1), so force a load on the segment loader to keep it going.\n this.mainSegmentLoader_.load();\n }\n }); // `progress` events are not reliable enough of a bandwidth measure to trigger buffer\n // based ABR.\n\n if (!this.bufferBasedABR) {\n this.mainSegmentLoader_.on('progress', () => {\n this.trigger('progress');\n });\n }\n this.mainSegmentLoader_.on('error', () => {\n const error = this.mainSegmentLoader_.error();\n this.excludePlaylist({\n playlistToExclude: error.playlist,\n error\n });\n });\n this.mainSegmentLoader_.on('appenderror', () => {\n this.error = this.mainSegmentLoader_.error_;\n this.trigger('error');\n });\n this.mainSegmentLoader_.on('syncinfoupdate', () => {\n this.onSyncInfoUpdate_();\n });\n this.mainSegmentLoader_.on('timestampoffset', () => {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-timestamp-offset'\n });\n });\n this.audioSegmentLoader_.on('syncinfoupdate', () => {\n this.onSyncInfoUpdate_();\n });\n this.audioSegmentLoader_.on('appenderror', () => {\n this.error = this.audioSegmentLoader_.error_;\n this.trigger('error');\n });\n this.mainSegmentLoader_.on('ended', () => {\n this.logger_('main segment loader ended');\n this.onEndOfStream();\n });\n this.mainSegmentLoader_.on('earlyabort', event => {\n // never try to early abort with the new ABR algorithm\n if (this.bufferBasedABR) {\n return;\n }\n this.delegateLoaders_('all', ['abort']);\n this.excludePlaylist({\n error: {\n message: 'Aborted early because there isn\\'t enough bandwidth to complete ' + 'the request without rebuffering.'\n },\n playlistExclusionDuration: ABORT_EARLY_EXCLUSION_SECONDS\n });\n });\n const updateCodecs = () => {\n if (!this.sourceUpdater_.hasCreatedSourceBuffers()) {\n return this.tryToCreateSourceBuffers_();\n }\n const codecs = this.getCodecsOrExclude_(); // no codecs means that the playlist was excluded\n\n if (!codecs) {\n return;\n }\n this.sourceUpdater_.addOrChangeSourceBuffers(codecs);\n };\n this.mainSegmentLoader_.on('trackinfo', updateCodecs);\n this.audioSegmentLoader_.on('trackinfo', updateCodecs);\n this.mainSegmentLoader_.on('fmp4', () => {\n if (!this.triggeredFmp4Usage) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-fmp4'\n });\n this.triggeredFmp4Usage = true;\n }\n });\n this.audioSegmentLoader_.on('fmp4', () => {\n if (!this.triggeredFmp4Usage) {\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-fmp4'\n });\n this.triggeredFmp4Usage = true;\n }\n });\n this.audioSegmentLoader_.on('ended', () => {\n this.logger_('audioSegmentLoader ended');\n this.onEndOfStream();\n });\n }\n mediaSecondsLoaded_() {\n return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded + this.mainSegmentLoader_.mediaSecondsLoaded);\n }\n /**\n * Call load on our SegmentLoaders\n */\n\n load() {\n this.mainSegmentLoader_.load();\n if (this.mediaTypes_.AUDIO.activePlaylistLoader) {\n this.audioSegmentLoader_.load();\n }\n if (this.mediaTypes_.SUBTITLES.activePlaylistLoader) {\n this.subtitleSegmentLoader_.load();\n }\n }\n /**\n * Re-tune playback quality level for the current player\n * conditions. This method will perform destructive actions like removing\n * already buffered content in order to readjust the currently active\n * playlist quickly. This is good for manual quality changes\n *\n * @private\n */\n\n fastQualityChange_() {\n let media = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.selectPlaylist();\n if (media && media === this.mainPlaylistLoader_.media()) {\n this.logger_('skipping fastQualityChange because new media is same as old');\n return;\n }\n this.switchMedia_(media, 'fast-quality'); // we would like to avoid race condition when we call fastQuality,\n // reset everything and start loading segments from prev segments instead of new because new playlist is not received yet\n\n this.waitingForFastQualityPlaylistReceived_ = true;\n }\n runFastQualitySwitch_() {\n this.waitingForFastQualityPlaylistReceived_ = false; // Delete all buffered data to allow an immediate quality switch, then seek to give\n // the browser a kick to remove any cached frames from the previous rendtion (.04 seconds\n // ahead was roughly the minimum that will accomplish this across a variety of content\n // in IE and Edge, but seeking in place is sufficient on all other browsers)\n // Edge/IE bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14600375/\n // Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=651904\n\n this.mainSegmentLoader_.pause();\n this.mainSegmentLoader_.resetEverything(() => {\n this.tech_.setCurrentTime(this.tech_.currentTime());\n }); // don't need to reset audio as it is reset when media changes\n }\n /**\n * Begin playback.\n */\n\n play() {\n if (this.setupFirstPlay()) {\n return;\n }\n if (this.tech_.ended()) {\n this.tech_.setCurrentTime(0);\n }\n if (this.hasPlayed_) {\n this.load();\n }\n const seekable = this.tech_.seekable(); // if the viewer has paused and we fell out of the live window,\n // seek forward to the live point\n\n if (this.tech_.duration() === Infinity) {\n if (this.tech_.currentTime() < seekable.start(0)) {\n return this.tech_.setCurrentTime(seekable.end(seekable.length - 1));\n }\n }\n }\n /**\n * Seek to the latest media position if this is a live video and the\n * player and video are loaded and initialized.\n */\n\n setupFirstPlay() {\n const media = this.mainPlaylistLoader_.media(); // Check that everything is ready to begin buffering for the first call to play\n // If 1) there is no active media\n // 2) the player is paused\n // 3) the first play has already been setup\n // then exit early\n\n if (!media || this.tech_.paused() || this.hasPlayed_) {\n return false;\n } // when the video is a live stream and/or has a start time\n\n if (!media.endList || media.start) {\n const seekable = this.seekable();\n if (!seekable.length) {\n // without a seekable range, the player cannot seek to begin buffering at the\n // live or start point\n return false;\n }\n const seekableEnd = seekable.end(0);\n let startPoint = seekableEnd;\n if (media.start) {\n const offset = media.start.timeOffset;\n if (offset < 0) {\n startPoint = Math.max(seekableEnd + offset, seekable.start(0));\n } else {\n startPoint = Math.min(seekableEnd, offset);\n }\n } // trigger firstplay to inform the source handler to ignore the next seek event\n\n this.trigger('firstplay'); // seek to the live point\n\n this.tech_.setCurrentTime(startPoint);\n }\n this.hasPlayed_ = true; // we can begin loading now that everything is ready\n\n this.load();\n return true;\n }\n /**\n * handle the sourceopen event on the MediaSource\n *\n * @private\n */\n\n handleSourceOpen_() {\n // Only attempt to create the source buffer if none already exist.\n // handleSourceOpen is also called when we are \"re-opening\" a source buffer\n // after `endOfStream` has been called (in response to a seek for instance)\n this.tryToCreateSourceBuffers_(); // if autoplay is enabled, begin playback. This is duplicative of\n // code in video.js but is required because play() must be invoked\n // *after* the media source has opened.\n\n if (this.tech_.autoplay()) {\n const playPromise = this.tech_.play(); // Catch/silence error when a pause interrupts a play request\n // on browsers which return a promise\n\n if (typeof playPromise !== 'undefined' && typeof playPromise.then === 'function') {\n playPromise.then(null, e => {});\n }\n }\n this.trigger('sourceopen');\n }\n /**\n * handle the sourceended event on the MediaSource\n *\n * @private\n */\n\n handleSourceEnded_() {\n if (!this.inbandTextTracks_.metadataTrack_) {\n return;\n }\n const cues = this.inbandTextTracks_.metadataTrack_.cues;\n if (!cues || !cues.length) {\n return;\n }\n const duration = this.duration();\n cues[cues.length - 1].endTime = isNaN(duration) || Math.abs(duration) === Infinity ? Number.MAX_VALUE : duration;\n }\n /**\n * handle the durationchange event on the MediaSource\n *\n * @private\n */\n\n handleDurationChange_() {\n this.tech_.trigger('durationchange');\n }\n /**\n * Calls endOfStream on the media source when all active stream types have called\n * endOfStream\n *\n * @param {string} streamType\n * Stream type of the segment loader that called endOfStream\n * @private\n */\n\n onEndOfStream() {\n let isEndOfStream = this.mainSegmentLoader_.ended_;\n if (this.mediaTypes_.AUDIO.activePlaylistLoader) {\n const mainMediaInfo = this.mainSegmentLoader_.getCurrentMediaInfo_(); // if the audio playlist loader exists, then alternate audio is active\n\n if (!mainMediaInfo || mainMediaInfo.hasVideo) {\n // if we do not know if the main segment loader contains video yet or if we\n // definitively know the main segment loader contains video, then we need to wait\n // for both main and audio segment loaders to call endOfStream\n isEndOfStream = isEndOfStream && this.audioSegmentLoader_.ended_;\n } else {\n // otherwise just rely on the audio loader\n isEndOfStream = this.audioSegmentLoader_.ended_;\n }\n }\n if (!isEndOfStream) {\n return;\n }\n this.stopABRTimer_();\n this.sourceUpdater_.endOfStream();\n }\n /**\n * Check if a playlist has stopped being updated\n *\n * @param {Object} playlist the media playlist object\n * @return {boolean} whether the playlist has stopped being updated or not\n */\n\n stuckAtPlaylistEnd_(playlist) {\n const seekable = this.seekable();\n if (!seekable.length) {\n // playlist doesn't have enough information to determine whether we are stuck\n return false;\n }\n const expired = this.syncController_.getExpiredTime(playlist, this.duration());\n if (expired === null) {\n return false;\n } // does not use the safe live end to calculate playlist end, since we\n // don't want to say we are stuck while there is still content\n\n const absolutePlaylistEnd = Vhs$1.Playlist.playlistEnd(playlist, expired);\n const currentTime = this.tech_.currentTime();\n const buffered = this.tech_.buffered();\n if (!buffered.length) {\n // return true if the playhead reached the absolute end of the playlist\n return absolutePlaylistEnd - currentTime <= SAFE_TIME_DELTA;\n }\n const bufferedEnd = buffered.end(buffered.length - 1); // return true if there is too little buffer left and buffer has reached absolute\n // end of playlist\n\n return bufferedEnd - currentTime <= SAFE_TIME_DELTA && absolutePlaylistEnd - bufferedEnd <= SAFE_TIME_DELTA;\n }\n /**\n * Exclude a playlist for a set amount of time, making it unavailable for selection by\n * the rendition selection algorithm, then force a new playlist (rendition) selection.\n *\n * @param {Object=} playlistToExclude\n * the playlist to exclude, defaults to the currently selected playlist\n * @param {Object=} error\n * an optional error\n * @param {number=} playlistExclusionDuration\n * an optional number of seconds to exclude the playlist\n */\n\n excludePlaylist(_ref66) {\n let _ref66$playlistToExcl = _ref66.playlistToExclude,\n playlistToExclude = _ref66$playlistToExcl === void 0 ? this.mainPlaylistLoader_.media() : _ref66$playlistToExcl,\n _ref66$error = _ref66.error,\n error = _ref66$error === void 0 ? {} : _ref66$error,\n playlistExclusionDuration = _ref66.playlistExclusionDuration;\n // If the `error` was generated by the playlist loader, it will contain\n // the playlist we were trying to load (but failed) and that should be\n // excluded instead of the currently selected playlist which is likely\n // out-of-date in this scenario\n playlistToExclude = playlistToExclude || this.mainPlaylistLoader_.media();\n playlistExclusionDuration = playlistExclusionDuration || error.playlistExclusionDuration || this.playlistExclusionDuration; // If there is no current playlist, then an error occurred while we were\n // trying to load the main OR while we were disposing of the tech\n\n if (!playlistToExclude) {\n this.error = error;\n if (this.mediaSource.readyState !== 'open') {\n this.trigger('error');\n } else {\n this.sourceUpdater_.endOfStream('network');\n }\n return;\n }\n playlistToExclude.playlistErrors_++;\n const playlists = this.mainPlaylistLoader_.main.playlists;\n const enabledPlaylists = playlists.filter(isEnabled);\n const isFinalRendition = enabledPlaylists.length === 1 && enabledPlaylists[0] === playlistToExclude; // Don't exclude the only playlist unless it was excluded\n // forever\n\n if (playlists.length === 1 && playlistExclusionDuration !== Infinity) {\n videojs.log.warn(`Problem encountered with playlist ${playlistToExclude.id}. ` + 'Trying again since it is the only playlist.');\n this.tech_.trigger('retryplaylist'); // if this is a final rendition, we should delay\n\n return this.mainPlaylistLoader_.load(isFinalRendition);\n }\n if (isFinalRendition) {\n // If we're content steering, try other pathways.\n if (this.main().contentSteering) {\n const pathway = this.pathwayAttribute_(playlistToExclude); // Ignore at least 1 steering manifest refresh.\n\n const reIncludeDelay = this.contentSteeringController_.steeringManifest.ttl * 1000;\n this.contentSteeringController_.excludePathway(pathway);\n this.excludeThenChangePathway_();\n setTimeout(() => {\n this.contentSteeringController_.addAvailablePathway(pathway);\n }, reIncludeDelay);\n return;\n } // Since we're on the final non-excluded playlist, and we're about to exclude\n // it, instead of erring the player or retrying this playlist, clear out the current\n // exclusion list. This allows other playlists to be attempted in case any have been\n // fixed.\n\n let reincluded = false;\n playlists.forEach(playlist => {\n // skip current playlist which is about to be excluded\n if (playlist === playlistToExclude) {\n return;\n }\n const excludeUntil = playlist.excludeUntil; // a playlist cannot be reincluded if it wasn't excluded to begin with.\n\n if (typeof excludeUntil !== 'undefined' && excludeUntil !== Infinity) {\n reincluded = true;\n delete playlist.excludeUntil;\n }\n });\n if (reincluded) {\n videojs.log.warn('Removing other playlists from the exclusion list because the last ' + 'rendition is about to be excluded.'); // Technically we are retrying a playlist, in that we are simply retrying a previous\n // playlist. This is needed for users relying on the retryplaylist event to catch a\n // case where the player might be stuck and looping through \"dead\" playlists.\n\n this.tech_.trigger('retryplaylist');\n }\n } // Exclude this playlist\n\n let excludeUntil;\n if (playlistToExclude.playlistErrors_ > this.maxPlaylistRetries) {\n excludeUntil = Infinity;\n } else {\n excludeUntil = Date.now() + playlistExclusionDuration * 1000;\n }\n playlistToExclude.excludeUntil = excludeUntil;\n if (error.reason) {\n playlistToExclude.lastExcludeReason_ = error.reason;\n }\n this.tech_.trigger('excludeplaylist');\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-rendition-excluded'\n }); // TODO: only load a new playlist if we're excluding the current playlist\n // If this function was called with a playlist that's not the current active playlist\n // (e.g., media().id !== playlistToExclude.id),\n // then a new playlist should not be selected and loaded, as there's nothing wrong with the current playlist.\n\n const nextPlaylist = this.selectPlaylist();\n if (!nextPlaylist) {\n this.error = 'Playback cannot continue. No available working or supported playlists.';\n this.trigger('error');\n return;\n }\n const logFn = error.internal ? this.logger_ : videojs.log.warn;\n const errorMessage = error.message ? ' ' + error.message : '';\n logFn(`${error.internal ? 'Internal problem' : 'Problem'} encountered with playlist ${playlistToExclude.id}.` + `${errorMessage} Switching to playlist ${nextPlaylist.id}.`); // if audio group changed reset audio loaders\n\n if (nextPlaylist.attributes.AUDIO !== playlistToExclude.attributes.AUDIO) {\n this.delegateLoaders_('audio', ['abort', 'pause']);\n } // if subtitle group changed reset subtitle loaders\n\n if (nextPlaylist.attributes.SUBTITLES !== playlistToExclude.attributes.SUBTITLES) {\n this.delegateLoaders_('subtitle', ['abort', 'pause']);\n }\n this.delegateLoaders_('main', ['abort', 'pause']);\n const delayDuration = nextPlaylist.targetDuration / 2 * 1000 || 5 * 1000;\n const shouldDelay = typeof nextPlaylist.lastRequest === 'number' && Date.now() - nextPlaylist.lastRequest <= delayDuration; // delay if it's a final rendition or if the last refresh is sooner than half targetDuration\n\n return this.switchMedia_(nextPlaylist, 'exclude', isFinalRendition || shouldDelay);\n }\n /**\n * Pause all segment/playlist loaders\n */\n\n pauseLoading() {\n this.delegateLoaders_('all', ['abort', 'pause']);\n this.stopABRTimer_();\n }\n /**\n * Call a set of functions in order on playlist loaders, segment loaders,\n * or both types of loaders.\n *\n * @param {string} filter\n * Filter loaders that should call fnNames using a string. Can be:\n * * all - run on all loaders\n * * audio - run on all audio loaders\n * * subtitle - run on all subtitle loaders\n * * main - run on the main loaders\n *\n * @param {Array|string} fnNames\n * A string or array of function names to call.\n */\n\n delegateLoaders_(filter, fnNames) {\n const loaders = [];\n const dontFilterPlaylist = filter === 'all';\n if (dontFilterPlaylist || filter === 'main') {\n loaders.push(this.mainPlaylistLoader_);\n }\n const mediaTypes = [];\n if (dontFilterPlaylist || filter === 'audio') {\n mediaTypes.push('AUDIO');\n }\n if (dontFilterPlaylist || filter === 'subtitle') {\n mediaTypes.push('CLOSED-CAPTIONS');\n mediaTypes.push('SUBTITLES');\n }\n mediaTypes.forEach(mediaType => {\n const loader = this.mediaTypes_[mediaType] && this.mediaTypes_[mediaType].activePlaylistLoader;\n if (loader) {\n loaders.push(loader);\n }\n });\n ['main', 'audio', 'subtitle'].forEach(name => {\n const loader = this[`${name}SegmentLoader_`];\n if (loader && (filter === name || filter === 'all')) {\n loaders.push(loader);\n }\n });\n loaders.forEach(loader => fnNames.forEach(fnName => {\n if (typeof loader[fnName] === 'function') {\n loader[fnName]();\n }\n }));\n }\n /**\n * set the current time on all segment loaders\n *\n * @param {TimeRange} currentTime the current time to set\n * @return {TimeRange} the current time\n */\n\n setCurrentTime(currentTime) {\n const buffered = findRange(this.tech_.buffered(), currentTime);\n if (!(this.mainPlaylistLoader_ && this.mainPlaylistLoader_.media())) {\n // return immediately if the metadata is not ready yet\n return 0;\n } // it's clearly an edge-case but don't thrown an error if asked to\n // seek within an empty playlist\n\n if (!this.mainPlaylistLoader_.media().segments) {\n return 0;\n } // if the seek location is already buffered, continue buffering as usual\n\n if (buffered && buffered.length) {\n return currentTime;\n } // cancel outstanding requests so we begin buffering at the new\n // location\n\n this.mainSegmentLoader_.pause();\n this.mainSegmentLoader_.resetEverything();\n if (this.mediaTypes_.AUDIO.activePlaylistLoader) {\n this.audioSegmentLoader_.pause();\n this.audioSegmentLoader_.resetEverything();\n }\n if (this.mediaTypes_.SUBTITLES.activePlaylistLoader) {\n this.subtitleSegmentLoader_.pause();\n this.subtitleSegmentLoader_.resetEverything();\n } // start segment loader loading in case they are paused\n\n this.load();\n }\n /**\n * get the current duration\n *\n * @return {TimeRange} the duration\n */\n\n duration() {\n if (!this.mainPlaylistLoader_) {\n return 0;\n }\n const media = this.mainPlaylistLoader_.media();\n if (!media) {\n // no playlists loaded yet, so can't determine a duration\n return 0;\n } // Don't rely on the media source for duration in the case of a live playlist since\n // setting the native MediaSource's duration to infinity ends up with consequences to\n // seekable behavior. See https://github.com/w3c/media-source/issues/5 for details.\n //\n // This is resolved in the spec by https://github.com/w3c/media-source/pull/92,\n // however, few browsers have support for setLiveSeekableRange()\n // https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange\n //\n // Until a time when the duration of the media source can be set to infinity, and a\n // seekable range specified across browsers, just return Infinity.\n\n if (!media.endList) {\n return Infinity;\n } // Since this is a VOD video, it is safe to rely on the media source's duration (if\n // available). If it's not available, fall back to a playlist-calculated estimate.\n\n if (this.mediaSource) {\n return this.mediaSource.duration;\n }\n return Vhs$1.Playlist.duration(media);\n }\n /**\n * check the seekable range\n *\n * @return {TimeRange} the seekable range\n */\n\n seekable() {\n return this.seekable_;\n }\n onSyncInfoUpdate_() {\n let audioSeekable; // TODO check for creation of both source buffers before updating seekable\n //\n // A fix was made to this function where a check for\n // this.sourceUpdater_.hasCreatedSourceBuffers\n // was added to ensure that both source buffers were created before seekable was\n // updated. However, it originally had a bug where it was checking for a true and\n // returning early instead of checking for false. Setting it to check for false to\n // return early though created other issues. A call to play() would check for seekable\n // end without verifying that a seekable range was present. In addition, even checking\n // for that didn't solve some issues, as handleFirstPlay is sometimes worked around\n // due to a media update calling load on the segment loaders, skipping a seek to live,\n // thereby starting live streams at the beginning of the stream rather than at the end.\n //\n // This conditional should be fixed to wait for the creation of two source buffers at\n // the same time as the other sections of code are fixed to properly seek to live and\n // not throw an error due to checking for a seekable end when no seekable range exists.\n //\n // For now, fall back to the older behavior, with the understanding that the seekable\n // range may not be completely correct, leading to a suboptimal initial live point.\n\n if (!this.mainPlaylistLoader_) {\n return;\n }\n let media = this.mainPlaylistLoader_.media();\n if (!media) {\n return;\n }\n let expired = this.syncController_.getExpiredTime(media, this.duration());\n if (expired === null) {\n // not enough information to update seekable\n return;\n }\n const main = this.mainPlaylistLoader_.main;\n const mainSeekable = Vhs$1.Playlist.seekable(media, expired, Vhs$1.Playlist.liveEdgeDelay(main, media));\n if (mainSeekable.length === 0) {\n return;\n }\n if (this.mediaTypes_.AUDIO.activePlaylistLoader) {\n media = this.mediaTypes_.AUDIO.activePlaylistLoader.media();\n expired = this.syncController_.getExpiredTime(media, this.duration());\n if (expired === null) {\n return;\n }\n audioSeekable = Vhs$1.Playlist.seekable(media, expired, Vhs$1.Playlist.liveEdgeDelay(main, media));\n if (audioSeekable.length === 0) {\n return;\n }\n }\n let oldEnd;\n let oldStart;\n if (this.seekable_ && this.seekable_.length) {\n oldEnd = this.seekable_.end(0);\n oldStart = this.seekable_.start(0);\n }\n if (!audioSeekable) {\n // seekable has been calculated based on buffering video data so it\n // can be returned directly\n this.seekable_ = mainSeekable;\n } else if (audioSeekable.start(0) > mainSeekable.end(0) || mainSeekable.start(0) > audioSeekable.end(0)) {\n // seekables are pretty far off, rely on main\n this.seekable_ = mainSeekable;\n } else {\n this.seekable_ = createTimeRanges([[audioSeekable.start(0) > mainSeekable.start(0) ? audioSeekable.start(0) : mainSeekable.start(0), audioSeekable.end(0) < mainSeekable.end(0) ? audioSeekable.end(0) : mainSeekable.end(0)]]);\n } // seekable is the same as last time\n\n if (this.seekable_ && this.seekable_.length) {\n if (this.seekable_.end(0) === oldEnd && this.seekable_.start(0) === oldStart) {\n return;\n }\n }\n this.logger_(`seekable updated [${printableRange(this.seekable_)}]`);\n this.tech_.trigger('seekablechanged');\n }\n /**\n * Update the player duration\n */\n\n updateDuration(isLive) {\n if (this.updateDuration_) {\n this.mediaSource.removeEventListener('sourceopen', this.updateDuration_);\n this.updateDuration_ = null;\n }\n if (this.mediaSource.readyState !== 'open') {\n this.updateDuration_ = this.updateDuration.bind(this, isLive);\n this.mediaSource.addEventListener('sourceopen', this.updateDuration_);\n return;\n }\n if (isLive) {\n const seekable = this.seekable();\n if (!seekable.length) {\n return;\n } // Even in the case of a live playlist, the native MediaSource's duration should not\n // be set to Infinity (even though this would be expected for a live playlist), since\n // setting the native MediaSource's duration to infinity ends up with consequences to\n // seekable behavior. See https://github.com/w3c/media-source/issues/5 for details.\n //\n // This is resolved in the spec by https://github.com/w3c/media-source/pull/92,\n // however, few browsers have support for setLiveSeekableRange()\n // https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange\n //\n // Until a time when the duration of the media source can be set to infinity, and a\n // seekable range specified across browsers, the duration should be greater than or\n // equal to the last possible seekable value.\n // MediaSource duration starts as NaN\n // It is possible (and probable) that this case will never be reached for many\n // sources, since the MediaSource reports duration as the highest value without\n // accounting for timestamp offset. For example, if the timestamp offset is -100 and\n // we buffered times 0 to 100 with real times of 100 to 200, even though current\n // time will be between 0 and 100, the native media source may report the duration\n // as 200. However, since we report duration separate from the media source (as\n // Infinity), and as long as the native media source duration value is greater than\n // our reported seekable range, seeks will work as expected. The large number as\n // duration for live is actually a strategy used by some players to work around the\n // issue of live seekable ranges cited above.\n\n if (isNaN(this.mediaSource.duration) || this.mediaSource.duration < seekable.end(seekable.length - 1)) {\n this.sourceUpdater_.setDuration(seekable.end(seekable.length - 1));\n }\n return;\n }\n const buffered = this.tech_.buffered();\n let duration = Vhs$1.Playlist.duration(this.mainPlaylistLoader_.media());\n if (buffered.length > 0) {\n duration = Math.max(duration, buffered.end(buffered.length - 1));\n }\n if (this.mediaSource.duration !== duration) {\n this.sourceUpdater_.setDuration(duration);\n }\n }\n /**\n * dispose of the PlaylistController and everything\n * that it controls\n */\n\n dispose() {\n this.trigger('dispose');\n this.decrypter_.terminate();\n this.mainPlaylistLoader_.dispose();\n this.mainSegmentLoader_.dispose();\n this.contentSteeringController_.dispose();\n this.keyStatusMap_.clear();\n if (this.loadOnPlay_) {\n this.tech_.off('play', this.loadOnPlay_);\n }\n ['AUDIO', 'SUBTITLES'].forEach(type => {\n const groups = this.mediaTypes_[type].groups;\n for (const id in groups) {\n groups[id].forEach(group => {\n if (group.playlistLoader) {\n group.playlistLoader.dispose();\n }\n });\n }\n });\n this.audioSegmentLoader_.dispose();\n this.subtitleSegmentLoader_.dispose();\n this.sourceUpdater_.dispose();\n this.timelineChangeController_.dispose();\n this.stopABRTimer_();\n if (this.updateDuration_) {\n this.mediaSource.removeEventListener('sourceopen', this.updateDuration_);\n }\n this.mediaSource.removeEventListener('durationchange', this.handleDurationChange_); // load the media source into the player\n\n this.mediaSource.removeEventListener('sourceopen', this.handleSourceOpen_);\n this.mediaSource.removeEventListener('sourceended', this.handleSourceEnded_);\n this.off();\n }\n /**\n * return the main playlist object if we have one\n *\n * @return {Object} the main playlist object that we parsed\n */\n\n main() {\n return this.mainPlaylistLoader_.main;\n }\n /**\n * return the currently selected playlist\n *\n * @return {Object} the currently selected playlist object that we parsed\n */\n\n media() {\n // playlist loader will not return media if it has not been fully loaded\n return this.mainPlaylistLoader_.media() || this.initialMedia_;\n }\n areMediaTypesKnown_() {\n const usingAudioLoader = !!this.mediaTypes_.AUDIO.activePlaylistLoader;\n const hasMainMediaInfo = !!this.mainSegmentLoader_.getCurrentMediaInfo_(); // if we are not using an audio loader, then we have audio media info\n // otherwise check on the segment loader.\n\n const hasAudioMediaInfo = !usingAudioLoader ? true : !!this.audioSegmentLoader_.getCurrentMediaInfo_(); // one or both loaders has not loaded sufficently to get codecs\n\n if (!hasMainMediaInfo || !hasAudioMediaInfo) {\n return false;\n }\n return true;\n }\n getCodecsOrExclude_() {\n const media = {\n main: this.mainSegmentLoader_.getCurrentMediaInfo_() || {},\n audio: this.audioSegmentLoader_.getCurrentMediaInfo_() || {}\n };\n const playlist = this.mainSegmentLoader_.getPendingSegmentPlaylist() || this.media(); // set \"main\" media equal to video\n\n media.video = media.main;\n const playlistCodecs = codecsForPlaylist(this.main(), playlist);\n const codecs = {};\n const usingAudioLoader = !!this.mediaTypes_.AUDIO.activePlaylistLoader;\n if (media.main.hasVideo) {\n codecs.video = playlistCodecs.video || media.main.videoCodec || DEFAULT_VIDEO_CODEC;\n }\n if (media.main.isMuxed) {\n codecs.video += `,${playlistCodecs.audio || media.main.audioCodec || DEFAULT_AUDIO_CODEC}`;\n }\n if (media.main.hasAudio && !media.main.isMuxed || media.audio.hasAudio || usingAudioLoader) {\n codecs.audio = playlistCodecs.audio || media.main.audioCodec || media.audio.audioCodec || DEFAULT_AUDIO_CODEC; // set audio isFmp4 so we use the correct \"supports\" function below\n\n media.audio.isFmp4 = media.main.hasAudio && !media.main.isMuxed ? media.main.isFmp4 : media.audio.isFmp4;\n } // no codecs, no playback.\n\n if (!codecs.audio && !codecs.video) {\n this.excludePlaylist({\n playlistToExclude: playlist,\n error: {\n message: 'Could not determine codecs for playlist.'\n },\n playlistExclusionDuration: Infinity\n });\n return;\n } // fmp4 relies on browser support, while ts relies on muxer support\n\n const supportFunction = (isFmp4, codec) => isFmp4 ? browserSupportsCodec(codec) : muxerSupportsCodec(codec);\n const unsupportedCodecs = {};\n let unsupportedAudio;\n ['video', 'audio'].forEach(function (type) {\n if (codecs.hasOwnProperty(type) && !supportFunction(media[type].isFmp4, codecs[type])) {\n const supporter = media[type].isFmp4 ? 'browser' : 'muxer';\n unsupportedCodecs[supporter] = unsupportedCodecs[supporter] || [];\n unsupportedCodecs[supporter].push(codecs[type]);\n if (type === 'audio') {\n unsupportedAudio = supporter;\n }\n }\n });\n if (usingAudioLoader && unsupportedAudio && playlist.attributes.AUDIO) {\n const audioGroup = playlist.attributes.AUDIO;\n this.main().playlists.forEach(variant => {\n const variantAudioGroup = variant.attributes && variant.attributes.AUDIO;\n if (variantAudioGroup === audioGroup && variant !== playlist) {\n variant.excludeUntil = Infinity;\n }\n });\n this.logger_(`excluding audio group ${audioGroup} as ${unsupportedAudio} does not support codec(s): \"${codecs.audio}\"`);\n } // if we have any unsupported codecs exclude this playlist.\n\n if (Object.keys(unsupportedCodecs).length) {\n const message = Object.keys(unsupportedCodecs).reduce((acc, supporter) => {\n if (acc) {\n acc += ', ';\n }\n acc += `${supporter} does not support codec(s): \"${unsupportedCodecs[supporter].join(',')}\"`;\n return acc;\n }, '') + '.';\n this.excludePlaylist({\n playlistToExclude: playlist,\n error: {\n internal: true,\n message\n },\n playlistExclusionDuration: Infinity\n });\n return;\n } // check if codec switching is happening\n\n if (this.sourceUpdater_.hasCreatedSourceBuffers() && !this.sourceUpdater_.canChangeType()) {\n const switchMessages = [];\n ['video', 'audio'].forEach(type => {\n const newCodec = (parseCodecs(this.sourceUpdater_.codecs[type] || '')[0] || {}).type;\n const oldCodec = (parseCodecs(codecs[type] || '')[0] || {}).type;\n if (newCodec && oldCodec && newCodec.toLowerCase() !== oldCodec.toLowerCase()) {\n switchMessages.push(`\"${this.sourceUpdater_.codecs[type]}\" -> \"${codecs[type]}\"`);\n }\n });\n if (switchMessages.length) {\n this.excludePlaylist({\n playlistToExclude: playlist,\n error: {\n message: `Codec switching not supported: ${switchMessages.join(', ')}.`,\n internal: true\n },\n playlistExclusionDuration: Infinity\n });\n return;\n }\n } // TODO: when using the muxer shouldn't we just return\n // the codecs that the muxer outputs?\n\n return codecs;\n }\n /**\n * Create source buffers and exlude any incompatible renditions.\n *\n * @private\n */\n\n tryToCreateSourceBuffers_() {\n // media source is not ready yet or sourceBuffers are already\n // created.\n if (this.mediaSource.readyState !== 'open' || this.sourceUpdater_.hasCreatedSourceBuffers()) {\n return;\n }\n if (!this.areMediaTypesKnown_()) {\n return;\n }\n const codecs = this.getCodecsOrExclude_(); // no codecs means that the playlist was excluded\n\n if (!codecs) {\n return;\n }\n this.sourceUpdater_.createSourceBuffers(codecs);\n const codecString = [codecs.video, codecs.audio].filter(Boolean).join(',');\n this.excludeIncompatibleVariants_(codecString);\n }\n /**\n * Excludes playlists with codecs that are unsupported by the muxer and browser.\n */\n\n excludeUnsupportedVariants_() {\n const playlists = this.main().playlists;\n const ids = []; // TODO: why don't we have a property to loop through all\n // playlist? Why did we ever mix indexes and keys?\n\n Object.keys(playlists).forEach(key => {\n const variant = playlists[key]; // check if we already processed this playlist.\n\n if (ids.indexOf(variant.id) !== -1) {\n return;\n }\n ids.push(variant.id);\n const codecs = codecsForPlaylist(this.main, variant);\n const unsupported = [];\n if (codecs.audio && !muxerSupportsCodec(codecs.audio) && !browserSupportsCodec(codecs.audio)) {\n unsupported.push(`audio codec ${codecs.audio}`);\n }\n if (codecs.video && !muxerSupportsCodec(codecs.video) && !browserSupportsCodec(codecs.video)) {\n unsupported.push(`video codec ${codecs.video}`);\n }\n if (codecs.text && codecs.text === 'stpp.ttml.im1t') {\n unsupported.push(`text codec ${codecs.text}`);\n }\n if (unsupported.length) {\n variant.excludeUntil = Infinity;\n this.logger_(`excluding ${variant.id} for unsupported: ${unsupported.join(', ')}`);\n }\n });\n }\n /**\n * Exclude playlists that are known to be codec or\n * stream-incompatible with the SourceBuffer configuration. For\n * instance, Media Source Extensions would cause the video element to\n * stall waiting for video data if you switched from a variant with\n * video and audio to an audio-only one.\n *\n * @param {Object} media a media playlist compatible with the current\n * set of SourceBuffers. Variants in the current main playlist that\n * do not appear to have compatible codec or stream configurations\n * will be excluded from the default playlist selection algorithm\n * indefinitely.\n * @private\n */\n\n excludeIncompatibleVariants_(codecString) {\n const ids = [];\n const playlists = this.main().playlists;\n const codecs = unwrapCodecList(parseCodecs(codecString));\n const codecCount_ = codecCount(codecs);\n const videoDetails = codecs.video && parseCodecs(codecs.video)[0] || null;\n const audioDetails = codecs.audio && parseCodecs(codecs.audio)[0] || null;\n Object.keys(playlists).forEach(key => {\n const variant = playlists[key]; // check if we already processed this playlist.\n // or it if it is already excluded forever.\n\n if (ids.indexOf(variant.id) !== -1 || variant.excludeUntil === Infinity) {\n return;\n }\n ids.push(variant.id);\n const exclusionReasons = []; // get codecs from the playlist for this variant\n\n const variantCodecs = codecsForPlaylist(this.mainPlaylistLoader_.main, variant);\n const variantCodecCount = codecCount(variantCodecs); // if no codecs are listed, we cannot determine that this\n // variant is incompatible. Wait for mux.js to probe\n\n if (!variantCodecs.audio && !variantCodecs.video) {\n return;\n } // TODO: we can support this by removing the\n // old media source and creating a new one, but it will take some work.\n // The number of streams cannot change\n\n if (variantCodecCount !== codecCount_) {\n exclusionReasons.push(`codec count \"${variantCodecCount}\" !== \"${codecCount_}\"`);\n } // only exclude playlists by codec change, if codecs cannot switch\n // during playback.\n\n if (!this.sourceUpdater_.canChangeType()) {\n const variantVideoDetails = variantCodecs.video && parseCodecs(variantCodecs.video)[0] || null;\n const variantAudioDetails = variantCodecs.audio && parseCodecs(variantCodecs.audio)[0] || null; // the video codec cannot change\n\n if (variantVideoDetails && videoDetails && variantVideoDetails.type.toLowerCase() !== videoDetails.type.toLowerCase()) {\n exclusionReasons.push(`video codec \"${variantVideoDetails.type}\" !== \"${videoDetails.type}\"`);\n } // the audio codec cannot change\n\n if (variantAudioDetails && audioDetails && variantAudioDetails.type.toLowerCase() !== audioDetails.type.toLowerCase()) {\n exclusionReasons.push(`audio codec \"${variantAudioDetails.type}\" !== \"${audioDetails.type}\"`);\n }\n }\n if (exclusionReasons.length) {\n variant.excludeUntil = Infinity;\n this.logger_(`excluding ${variant.id}: ${exclusionReasons.join(' && ')}`);\n }\n });\n }\n updateAdCues_(media) {\n let offset = 0;\n const seekable = this.seekable();\n if (seekable.length) {\n offset = seekable.start(0);\n }\n updateAdCues(media, this.cueTagsTrack_, offset);\n }\n /**\n * Calculates the desired forward buffer length based on current time\n *\n * @return {number} Desired forward buffer length in seconds\n */\n\n goalBufferLength() {\n const currentTime = this.tech_.currentTime();\n const initial = Config.GOAL_BUFFER_LENGTH;\n const rate = Config.GOAL_BUFFER_LENGTH_RATE;\n const max = Math.max(initial, Config.MAX_GOAL_BUFFER_LENGTH);\n return Math.min(initial + currentTime * rate, max);\n }\n /**\n * Calculates the desired buffer low water line based on current time\n *\n * @return {number} Desired buffer low water line in seconds\n */\n\n bufferLowWaterLine() {\n const currentTime = this.tech_.currentTime();\n const initial = Config.BUFFER_LOW_WATER_LINE;\n const rate = Config.BUFFER_LOW_WATER_LINE_RATE;\n const max = Math.max(initial, Config.MAX_BUFFER_LOW_WATER_LINE);\n const newMax = Math.max(initial, Config.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);\n return Math.min(initial + currentTime * rate, this.bufferBasedABR ? newMax : max);\n }\n bufferHighWaterLine() {\n return Config.BUFFER_HIGH_WATER_LINE;\n }\n addDateRangesToTextTrack_(dateRanges) {\n createMetadataTrackIfNotExists(this.inbandTextTracks_, 'com.apple.streaming', this.tech_);\n addDateRangeMetadata({\n inbandTextTracks: this.inbandTextTracks_,\n dateRanges\n });\n }\n addMetadataToTextTrack(dispatchType, metadataArray, videoDuration) {\n const timestampOffset = this.sourceUpdater_.videoBuffer ? this.sourceUpdater_.videoTimestampOffset() : this.sourceUpdater_.audioTimestampOffset(); // There's potentially an issue where we could double add metadata if there's a muxed\n // audio/video source with a metadata track, and an alt audio with a metadata track.\n // However, this probably won't happen, and if it does it can be handled then.\n\n createMetadataTrackIfNotExists(this.inbandTextTracks_, dispatchType, this.tech_);\n addMetadata({\n inbandTextTracks: this.inbandTextTracks_,\n metadataArray,\n timestampOffset,\n videoDuration\n });\n }\n /**\n * Utility for getting the pathway or service location from an HLS or DASH playlist.\n *\n * @param {Object} playlist for getting pathway from.\n * @return the pathway attribute of a playlist\n */\n\n pathwayAttribute_(playlist) {\n return playlist.attributes['PATHWAY-ID'] || playlist.attributes.serviceLocation;\n }\n /**\n * Initialize available pathways and apply the tag properties.\n */\n\n initContentSteeringController_() {\n const main = this.main();\n if (!main.contentSteering) {\n return;\n }\n for (const playlist of main.playlists) {\n this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(playlist));\n }\n this.contentSteeringController_.assignTagProperties(main.uri, main.contentSteering); // request the steering manifest immediately if queryBeforeStart is set.\n\n if (this.contentSteeringController_.queryBeforeStart) {\n // When queryBeforeStart is true, initial request should omit steering parameters.\n this.contentSteeringController_.requestSteeringManifest(true);\n return;\n } // otherwise start content steering after playback starts\n\n this.tech_.one('canplay', () => {\n this.contentSteeringController_.requestSteeringManifest();\n });\n }\n /**\n * Reset the content steering controller and re-init.\n */\n\n resetContentSteeringController_() {\n this.contentSteeringController_.clearAvailablePathways();\n this.contentSteeringController_.dispose();\n this.initContentSteeringController_();\n }\n /**\n * Attaches the listeners for content steering.\n */\n\n attachContentSteeringListeners_() {\n this.contentSteeringController_.on('content-steering', this.excludeThenChangePathway_.bind(this));\n if (this.sourceType_ === 'dash') {\n this.mainPlaylistLoader_.on('loadedplaylist', () => {\n const main = this.main(); // check if steering tag or pathways changed.\n\n const didDashTagChange = this.contentSteeringController_.didDASHTagChange(main.uri, main.contentSteering);\n const didPathwaysChange = () => {\n const availablePathways = this.contentSteeringController_.getAvailablePathways();\n const newPathways = [];\n for (const playlist of main.playlists) {\n const serviceLocation = playlist.attributes.serviceLocation;\n if (serviceLocation) {\n newPathways.push(serviceLocation);\n if (!availablePathways.has(serviceLocation)) {\n return true;\n }\n }\n } // If we have no new serviceLocations and previously had availablePathways\n\n if (!newPathways.length && availablePathways.size) {\n return true;\n }\n return false;\n };\n if (didDashTagChange || didPathwaysChange()) {\n this.resetContentSteeringController_();\n }\n });\n }\n }\n /**\n * Simple exclude and change playlist logic for content steering.\n */\n\n excludeThenChangePathway_() {\n const currentPathway = this.contentSteeringController_.getPathway();\n if (!currentPathway) {\n return;\n }\n this.handlePathwayClones_();\n const main = this.main();\n const playlists = main.playlists;\n const ids = new Set();\n let didEnablePlaylists = false;\n Object.keys(playlists).forEach(key => {\n const variant = playlists[key];\n const pathwayId = this.pathwayAttribute_(variant);\n const differentPathwayId = pathwayId && currentPathway !== pathwayId;\n const steeringExclusion = variant.excludeUntil === Infinity && variant.lastExcludeReason_ === 'content-steering';\n if (steeringExclusion && !differentPathwayId) {\n delete variant.excludeUntil;\n delete variant.lastExcludeReason_;\n didEnablePlaylists = true;\n }\n const noExcludeUntil = !variant.excludeUntil && variant.excludeUntil !== Infinity;\n const shouldExclude = !ids.has(variant.id) && differentPathwayId && noExcludeUntil;\n if (!shouldExclude) {\n return;\n }\n ids.add(variant.id);\n variant.excludeUntil = Infinity;\n variant.lastExcludeReason_ = 'content-steering'; // TODO: kind of spammy, maybe move this.\n\n this.logger_(`excluding ${variant.id} for ${variant.lastExcludeReason_}`);\n });\n if (this.contentSteeringController_.manifestType_ === 'DASH') {\n Object.keys(this.mediaTypes_).forEach(key => {\n const type = this.mediaTypes_[key];\n if (type.activePlaylistLoader) {\n const currentPlaylist = type.activePlaylistLoader.media_; // Check if the current media playlist matches the current CDN\n\n if (currentPlaylist && currentPlaylist.attributes.serviceLocation !== currentPathway) {\n didEnablePlaylists = true;\n }\n }\n });\n }\n if (didEnablePlaylists) {\n this.changeSegmentPathway_();\n }\n }\n /**\n * Add, update, or delete playlists and media groups for\n * the pathway clones for HLS Content Steering.\n *\n * See https://datatracker.ietf.org/doc/draft-pantos-hls-rfc8216bis/\n *\n * NOTE: Pathway cloning does not currently support the `PER_VARIANT_URIS` and\n * `PER_RENDITION_URIS` as we do not handle `STABLE-VARIANT-ID` or\n * `STABLE-RENDITION-ID` values.\n */\n\n handlePathwayClones_() {\n const main = this.main();\n const playlists = main.playlists;\n const currentPathwayClones = this.contentSteeringController_.currentPathwayClones;\n const nextPathwayClones = this.contentSteeringController_.nextPathwayClones;\n const hasClones = currentPathwayClones && currentPathwayClones.size || nextPathwayClones && nextPathwayClones.size;\n if (!hasClones) {\n return;\n }\n for (const _ref67 of currentPathwayClones.entries()) {\n var _ref68 = _slicedToArray(_ref67, 2);\n const id = _ref68[0];\n const clone = _ref68[1];\n const newClone = nextPathwayClones.get(id); // Delete the old pathway clone.\n\n if (!newClone) {\n this.mainPlaylistLoader_.updateOrDeleteClone(clone);\n this.contentSteeringController_.excludePathway(id);\n }\n }\n for (const _ref69 of nextPathwayClones.entries()) {\n var _ref70 = _slicedToArray(_ref69, 2);\n const id = _ref70[0];\n const clone = _ref70[1];\n const oldClone = currentPathwayClones.get(id); // Create a new pathway if it is a new pathway clone object.\n\n if (!oldClone) {\n const playlistsToClone = playlists.filter(p => {\n return p.attributes['PATHWAY-ID'] === clone['BASE-ID'];\n });\n playlistsToClone.forEach(p => {\n this.mainPlaylistLoader_.addClonePathway(clone, p);\n });\n this.contentSteeringController_.addAvailablePathway(id);\n continue;\n } // There have not been changes to the pathway clone object, so skip.\n\n if (this.equalPathwayClones_(oldClone, clone)) {\n continue;\n } // Update a preexisting cloned pathway.\n // True is set for the update flag.\n\n this.mainPlaylistLoader_.updateOrDeleteClone(clone, true);\n this.contentSteeringController_.addAvailablePathway(id);\n } // Deep copy contents of next to current pathways.\n\n this.contentSteeringController_.currentPathwayClones = new Map(JSON.parse(JSON.stringify([...nextPathwayClones])));\n }\n /**\n * Determines whether two pathway clone objects are equivalent.\n *\n * @param {Object} a The first pathway clone object.\n * @param {Object} b The second pathway clone object.\n * @return {boolean} True if the pathway clone objects are equal, false otherwise.\n */\n\n equalPathwayClones_(a, b) {\n if (a['BASE-ID'] !== b['BASE-ID'] || a.ID !== b.ID || a['URI-REPLACEMENT'].HOST !== b['URI-REPLACEMENT'].HOST) {\n return false;\n }\n const aParams = a['URI-REPLACEMENT'].PARAMS;\n const bParams = b['URI-REPLACEMENT'].PARAMS; // We need to iterate through both lists of params because one could be\n // missing a parameter that the other has.\n\n for (const p in aParams) {\n if (aParams[p] !== bParams[p]) {\n return false;\n }\n }\n for (const p in bParams) {\n if (aParams[p] !== bParams[p]) {\n return false;\n }\n }\n return true;\n }\n /**\n * Changes the current playlists for audio, video and subtitles after a new pathway\n * is chosen from content steering.\n */\n\n changeSegmentPathway_() {\n const nextPlaylist = this.selectPlaylist();\n this.pauseLoading(); // Switch audio and text track playlists if necessary in DASH\n\n if (this.contentSteeringController_.manifestType_ === 'DASH') {\n this.switchMediaForDASHContentSteering_();\n }\n this.switchMedia_(nextPlaylist, 'content-steering');\n }\n /**\n * Iterates through playlists and check their keyId set and compare with the\n * keyStatusMap, only enable playlists that have a usable key. If the playlist\n * has no keyId leave it enabled by default.\n */\n\n excludeNonUsablePlaylistsByKeyId_() {\n if (!this.mainPlaylistLoader_ || !this.mainPlaylistLoader_.main) {\n return;\n }\n let nonUsableKeyStatusCount = 0;\n const NON_USABLE = 'non-usable';\n this.mainPlaylistLoader_.main.playlists.forEach(playlist => {\n const keyIdSet = this.mainPlaylistLoader_.getKeyIdSet(playlist); // If the playlist doesn't have keyIDs lets not exclude it.\n\n if (!keyIdSet || !keyIdSet.size) {\n return;\n }\n keyIdSet.forEach(key => {\n const USABLE = 'usable';\n const hasUsableKeyStatus = this.keyStatusMap_.has(key) && this.keyStatusMap_.get(key) === USABLE;\n const nonUsableExclusion = playlist.lastExcludeReason_ === NON_USABLE && playlist.excludeUntil === Infinity;\n if (!hasUsableKeyStatus) {\n // Only exclude playlists that haven't already been excluded as non-usable.\n if (playlist.excludeUntil !== Infinity && playlist.lastExcludeReason_ !== NON_USABLE) {\n playlist.excludeUntil = Infinity;\n playlist.lastExcludeReason_ = NON_USABLE;\n this.logger_(`excluding playlist ${playlist.id} because the key ID ${key} doesn't exist in the keyStatusMap or is not ${USABLE}`);\n } // count all nonUsableKeyStatus\n\n nonUsableKeyStatusCount++;\n } else if (hasUsableKeyStatus && nonUsableExclusion) {\n delete playlist.excludeUntil;\n delete playlist.lastExcludeReason_;\n this.logger_(`enabling playlist ${playlist.id} because key ID ${key} is ${USABLE}`);\n }\n });\n }); // If for whatever reason every playlist has a non usable key status. Lets try re-including the SD renditions as a failsafe.\n\n if (nonUsableKeyStatusCount >= this.mainPlaylistLoader_.main.playlists.length) {\n this.mainPlaylistLoader_.main.playlists.forEach(playlist => {\n const isNonHD = playlist && playlist.attributes && playlist.attributes.RESOLUTION && playlist.attributes.RESOLUTION.height < 720;\n const excludedForNonUsableKey = playlist.excludeUntil === Infinity && playlist.lastExcludeReason_ === NON_USABLE;\n if (isNonHD && excludedForNonUsableKey) {\n // Only delete the excludeUntil so we don't try and re-exclude these playlists.\n delete playlist.excludeUntil;\n videojs.log.warn(`enabling non-HD playlist ${playlist.id} because all playlists were excluded due to ${NON_USABLE} key IDs`);\n }\n });\n }\n }\n /**\n * Adds a keystatus to the keystatus map, tries to convert to string if necessary.\n *\n * @param {any} keyId the keyId to add a status for\n * @param {string} status the status of the keyId\n */\n\n addKeyStatus_(keyId, status) {\n const isString = typeof keyId === 'string';\n const keyIdHexString = isString ? keyId : bufferToHexString(keyId);\n const formattedKeyIdString = keyIdHexString.slice(0, 32).toLowerCase();\n this.logger_(`KeyStatus '${status}' with key ID ${formattedKeyIdString} added to the keyStatusMap`);\n this.keyStatusMap_.set(formattedKeyIdString, status);\n }\n /**\n * Utility function for adding key status to the keyStatusMap and filtering usable encrypted playlists.\n *\n * @param {any} keyId the keyId from the keystatuschange event\n * @param {string} status the key status string\n */\n\n updatePlaylistByKeyStatus(keyId, status) {\n this.addKeyStatus_(keyId, status);\n if (!this.waitingForFastQualityPlaylistReceived_) {\n this.excludeNonUsableThenChangePlaylist_();\n } // Listen to loadedplaylist with a single listener and check for new contentProtection elements when a playlist is updated.\n\n this.mainPlaylistLoader_.off('loadedplaylist', this.excludeNonUsableThenChangePlaylist_.bind(this));\n this.mainPlaylistLoader_.on('loadedplaylist', this.excludeNonUsableThenChangePlaylist_.bind(this));\n }\n excludeNonUsableThenChangePlaylist_() {\n this.excludeNonUsablePlaylistsByKeyId_();\n this.fastQualityChange_();\n }\n}\n\n/**\n * Returns a function that acts as the Enable/disable playlist function.\n *\n * @param {PlaylistLoader} loader - The main playlist loader\n * @param {string} playlistID - id of the playlist\n * @param {Function} changePlaylistFn - A function to be called after a\n * playlist's enabled-state has been changed. Will NOT be called if a\n * playlist's enabled-state is unchanged\n * @param {boolean=} enable - Value to set the playlist enabled-state to\n * or if undefined returns the current enabled-state for the playlist\n * @return {Function} Function for setting/getting enabled\n */\n\nconst enableFunction = (loader, playlistID, changePlaylistFn) => enable => {\n const playlist = loader.main.playlists[playlistID];\n const incompatible = isIncompatible(playlist);\n const currentlyEnabled = isEnabled(playlist);\n if (typeof enable === 'undefined') {\n return currentlyEnabled;\n }\n if (enable) {\n delete playlist.disabled;\n } else {\n playlist.disabled = true;\n }\n if (enable !== currentlyEnabled && !incompatible) {\n // Ensure the outside world knows about our changes\n changePlaylistFn();\n if (enable) {\n loader.trigger('renditionenabled');\n } else {\n loader.trigger('renditiondisabled');\n }\n }\n return enable;\n};\n/**\n * The representation object encapsulates the publicly visible information\n * in a media playlist along with a setter/getter-type function (enabled)\n * for changing the enabled-state of a particular playlist entry\n *\n * @class Representation\n */\n\nclass Representation {\n constructor(vhsHandler, playlist, id) {\n const pc = vhsHandler.playlistController_;\n const qualityChangeFunction = pc.fastQualityChange_.bind(pc); // some playlist attributes are optional\n\n if (playlist.attributes) {\n const resolution = playlist.attributes.RESOLUTION;\n this.width = resolution && resolution.width;\n this.height = resolution && resolution.height;\n this.bandwidth = playlist.attributes.BANDWIDTH;\n this.frameRate = playlist.attributes['FRAME-RATE'];\n }\n this.codecs = codecsForPlaylist(pc.main(), playlist);\n this.playlist = playlist; // The id is simply the ordinality of the media playlist\n // within the main playlist\n\n this.id = id; // Partially-apply the enableFunction to create a playlist-\n // specific variant\n\n this.enabled = enableFunction(vhsHandler.playlists, playlist.id, qualityChangeFunction);\n }\n}\n/**\n * A mixin function that adds the `representations` api to an instance\n * of the VhsHandler class\n *\n * @param {VhsHandler} vhsHandler - An instance of VhsHandler to add the\n * representation API into\n */\n\nconst renditionSelectionMixin = function (vhsHandler) {\n // Add a single API-specific function to the VhsHandler instance\n vhsHandler.representations = () => {\n const main = vhsHandler.playlistController_.main();\n const playlists = isAudioOnly(main) ? vhsHandler.playlistController_.getAudioTrackPlaylists_() : main.playlists;\n if (!playlists) {\n return [];\n }\n return playlists.filter(media => !isIncompatible(media)).map((e, i) => new Representation(vhsHandler, e, e.id));\n };\n};\n\n/**\n * @file playback-watcher.js\n *\n * Playback starts, and now my watch begins. It shall not end until my death. I shall\n * take no wait, hold no uncleared timeouts, father no bad seeks. I shall wear no crowns\n * and win no glory. I shall live and die at my post. I am the corrector of the underflow.\n * I am the watcher of gaps. I am the shield that guards the realms of seekable. I pledge\n * my life and honor to the Playback Watch, for this Player and all the Players to come.\n */\n\nconst timerCancelEvents = ['seeking', 'seeked', 'pause', 'playing', 'error'];\n/**\n * @class PlaybackWatcher\n */\n\nclass PlaybackWatcher {\n /**\n * Represents an PlaybackWatcher object.\n *\n * @class\n * @param {Object} options an object that includes the tech and settings\n */\n constructor(options) {\n this.playlistController_ = options.playlistController;\n this.tech_ = options.tech;\n this.seekable = options.seekable;\n this.allowSeeksWithinUnsafeLiveWindow = options.allowSeeksWithinUnsafeLiveWindow;\n this.liveRangeSafeTimeDelta = options.liveRangeSafeTimeDelta;\n this.media = options.media;\n this.consecutiveUpdates = 0;\n this.lastRecordedTime = null;\n this.checkCurrentTimeTimeout_ = null;\n this.logger_ = logger('PlaybackWatcher');\n this.logger_('initialize');\n const playHandler = () => this.monitorCurrentTime_();\n const canPlayHandler = () => this.monitorCurrentTime_();\n const waitingHandler = () => this.techWaiting_();\n const cancelTimerHandler = () => this.resetTimeUpdate_();\n const pc = this.playlistController_;\n const loaderTypes = ['main', 'subtitle', 'audio'];\n const loaderChecks = {};\n loaderTypes.forEach(type => {\n loaderChecks[type] = {\n reset: () => this.resetSegmentDownloads_(type),\n updateend: () => this.checkSegmentDownloads_(type)\n };\n pc[`${type}SegmentLoader_`].on('appendsdone', loaderChecks[type].updateend); // If a rendition switch happens during a playback stall where the buffer\n // isn't changing we want to reset. We cannot assume that the new rendition\n // will also be stalled, until after new appends.\n\n pc[`${type}SegmentLoader_`].on('playlistupdate', loaderChecks[type].reset); // Playback stalls should not be detected right after seeking.\n // This prevents one segment playlists (single vtt or single segment content)\n // from being detected as stalling. As the buffer will not change in those cases, since\n // the buffer is the entire video duration.\n\n this.tech_.on(['seeked', 'seeking'], loaderChecks[type].reset);\n });\n /**\n * We check if a seek was into a gap through the following steps:\n * 1. We get a seeking event and we do not get a seeked event. This means that\n * a seek was attempted but not completed.\n * 2. We run `fixesBadSeeks_` on segment loader appends. This means that we already\n * removed everything from our buffer and appended a segment, and should be ready\n * to check for gaps.\n */\n\n const setSeekingHandlers = fn => {\n ['main', 'audio'].forEach(type => {\n pc[`${type}SegmentLoader_`][fn]('appended', this.seekingAppendCheck_);\n });\n };\n this.seekingAppendCheck_ = () => {\n if (this.fixesBadSeeks_()) {\n this.consecutiveUpdates = 0;\n this.lastRecordedTime = this.tech_.currentTime();\n setSeekingHandlers('off');\n }\n };\n this.clearSeekingAppendCheck_ = () => setSeekingHandlers('off');\n this.watchForBadSeeking_ = () => {\n this.clearSeekingAppendCheck_();\n setSeekingHandlers('on');\n };\n this.tech_.on('seeked', this.clearSeekingAppendCheck_);\n this.tech_.on('seeking', this.watchForBadSeeking_);\n this.tech_.on('waiting', waitingHandler);\n this.tech_.on(timerCancelEvents, cancelTimerHandler);\n this.tech_.on('canplay', canPlayHandler);\n /*\n An edge case exists that results in gaps not being skipped when they exist at the beginning of a stream. This case\n is surfaced in one of two ways:\n 1) The `waiting` event is fired before the player has buffered content, making it impossible\n to find or skip the gap. The `waiting` event is followed by a `play` event. On first play\n we can check if playback is stalled due to a gap, and skip the gap if necessary.\n 2) A source with a gap at the beginning of the stream is loaded programatically while the player\n is in a playing state. To catch this case, it's important that our one-time play listener is setup\n even if the player is in a playing state\n */\n\n this.tech_.one('play', playHandler); // Define the dispose function to clean up our events\n\n this.dispose = () => {\n this.clearSeekingAppendCheck_();\n this.logger_('dispose');\n this.tech_.off('waiting', waitingHandler);\n this.tech_.off(timerCancelEvents, cancelTimerHandler);\n this.tech_.off('canplay', canPlayHandler);\n this.tech_.off('play', playHandler);\n this.tech_.off('seeking', this.watchForBadSeeking_);\n this.tech_.off('seeked', this.clearSeekingAppendCheck_);\n loaderTypes.forEach(type => {\n pc[`${type}SegmentLoader_`].off('appendsdone', loaderChecks[type].updateend);\n pc[`${type}SegmentLoader_`].off('playlistupdate', loaderChecks[type].reset);\n this.tech_.off(['seeked', 'seeking'], loaderChecks[type].reset);\n });\n if (this.checkCurrentTimeTimeout_) {\n window$1.clearTimeout(this.checkCurrentTimeTimeout_);\n }\n this.resetTimeUpdate_();\n };\n }\n /**\n * Periodically check current time to see if playback stopped\n *\n * @private\n */\n\n monitorCurrentTime_() {\n this.checkCurrentTime_();\n if (this.checkCurrentTimeTimeout_) {\n window$1.clearTimeout(this.checkCurrentTimeTimeout_);\n } // 42 = 24 fps // 250 is what Webkit uses // FF uses 15\n\n this.checkCurrentTimeTimeout_ = window$1.setTimeout(this.monitorCurrentTime_.bind(this), 250);\n }\n /**\n * Reset stalled download stats for a specific type of loader\n *\n * @param {string} type\n * The segment loader type to check.\n *\n * @listens SegmentLoader#playlistupdate\n * @listens Tech#seeking\n * @listens Tech#seeked\n */\n\n resetSegmentDownloads_(type) {\n const loader = this.playlistController_[`${type}SegmentLoader_`];\n if (this[`${type}StalledDownloads_`] > 0) {\n this.logger_(`resetting possible stalled download count for ${type} loader`);\n }\n this[`${type}StalledDownloads_`] = 0;\n this[`${type}Buffered_`] = loader.buffered_();\n }\n /**\n * Checks on every segment `appendsdone` to see\n * if segment appends are making progress. If they are not\n * and we are still downloading bytes. We exclude the playlist.\n *\n * @param {string} type\n * The segment loader type to check.\n *\n * @listens SegmentLoader#appendsdone\n */\n\n checkSegmentDownloads_(type) {\n const pc = this.playlistController_;\n const loader = pc[`${type}SegmentLoader_`];\n const buffered = loader.buffered_();\n const isBufferedDifferent = isRangeDifferent(this[`${type}Buffered_`], buffered);\n this[`${type}Buffered_`] = buffered; // if another watcher is going to fix the issue or\n // the buffered value for this loader changed\n // appends are working\n\n if (isBufferedDifferent) {\n this.resetSegmentDownloads_(type);\n return;\n }\n this[`${type}StalledDownloads_`]++;\n this.logger_(`found #${this[`${type}StalledDownloads_`]} ${type} appends that did not increase buffer (possible stalled download)`, {\n playlistId: loader.playlist_ && loader.playlist_.id,\n buffered: timeRangesToArray(buffered)\n }); // after 10 possibly stalled appends with no reset, exclude\n\n if (this[`${type}StalledDownloads_`] < 10) {\n return;\n }\n this.logger_(`${type} loader stalled download exclusion`);\n this.resetSegmentDownloads_(type);\n this.tech_.trigger({\n type: 'usage',\n name: `vhs-${type}-download-exclusion`\n });\n if (type === 'subtitle') {\n return;\n } // TODO: should we exclude audio tracks rather than main tracks\n // when type is audio?\n\n pc.excludePlaylist({\n error: {\n message: `Excessive ${type} segment downloading detected.`\n },\n playlistExclusionDuration: Infinity\n });\n }\n /**\n * The purpose of this function is to emulate the \"waiting\" event on\n * browsers that do not emit it when they are waiting for more\n * data to continue playback\n *\n * @private\n */\n\n checkCurrentTime_() {\n if (this.tech_.paused() || this.tech_.seeking()) {\n return;\n }\n const currentTime = this.tech_.currentTime();\n const buffered = this.tech_.buffered();\n if (this.lastRecordedTime === currentTime && (!buffered.length || currentTime + SAFE_TIME_DELTA >= buffered.end(buffered.length - 1))) {\n // If current time is at the end of the final buffered region, then any playback\n // stall is most likely caused by buffering in a low bandwidth environment. The tech\n // should fire a `waiting` event in this scenario, but due to browser and tech\n // inconsistencies. Calling `techWaiting_` here allows us to simulate\n // responding to a native `waiting` event when the tech fails to emit one.\n return this.techWaiting_();\n }\n if (this.consecutiveUpdates >= 5 && currentTime === this.lastRecordedTime) {\n this.consecutiveUpdates++;\n this.waiting_();\n } else if (currentTime === this.lastRecordedTime) {\n this.consecutiveUpdates++;\n } else {\n this.consecutiveUpdates = 0;\n this.lastRecordedTime = currentTime;\n }\n }\n /**\n * Resets the 'timeupdate' mechanism designed to detect that we are stalled\n *\n * @private\n */\n\n resetTimeUpdate_() {\n this.consecutiveUpdates = 0;\n }\n /**\n * Fixes situations where there's a bad seek\n *\n * @return {boolean} whether an action was taken to fix the seek\n * @private\n */\n\n fixesBadSeeks_() {\n const seeking = this.tech_.seeking();\n if (!seeking) {\n return false;\n } // TODO: It's possible that these seekable checks should be moved out of this function\n // and into a function that runs on seekablechange. It's also possible that we only need\n // afterSeekableWindow as the buffered check at the bottom is good enough to handle before\n // seekable range.\n\n const seekable = this.seekable();\n const currentTime = this.tech_.currentTime();\n const isAfterSeekableRange = this.afterSeekableWindow_(seekable, currentTime, this.media(), this.allowSeeksWithinUnsafeLiveWindow);\n let seekTo;\n if (isAfterSeekableRange) {\n const seekableEnd = seekable.end(seekable.length - 1); // sync to live point (if VOD, our seekable was updated and we're simply adjusting)\n\n seekTo = seekableEnd;\n }\n if (this.beforeSeekableWindow_(seekable, currentTime)) {\n const seekableStart = seekable.start(0); // sync to the beginning of the live window\n // provide a buffer of .1 seconds to handle rounding/imprecise numbers\n\n seekTo = seekableStart + (\n // if the playlist is too short and the seekable range is an exact time (can\n // happen in live with a 3 segment playlist), then don't use a time delta\n seekableStart === seekable.end(0) ? 0 : SAFE_TIME_DELTA);\n }\n if (typeof seekTo !== 'undefined') {\n this.logger_(`Trying to seek outside of seekable at time ${currentTime} with ` + `seekable range ${printableRange(seekable)}. Seeking to ` + `${seekTo}.`);\n this.tech_.setCurrentTime(seekTo);\n return true;\n }\n const sourceUpdater = this.playlistController_.sourceUpdater_;\n const buffered = this.tech_.buffered();\n const audioBuffered = sourceUpdater.audioBuffer ? sourceUpdater.audioBuffered() : null;\n const videoBuffered = sourceUpdater.videoBuffer ? sourceUpdater.videoBuffered() : null;\n const media = this.media(); // verify that at least two segment durations or one part duration have been\n // appended before checking for a gap.\n\n const minAppendedDuration = media.partTargetDuration ? media.partTargetDuration : (media.targetDuration - TIME_FUDGE_FACTOR) * 2; // verify that at least two segment durations have been\n // appended before checking for a gap.\n\n const bufferedToCheck = [audioBuffered, videoBuffered];\n for (let i = 0; i < bufferedToCheck.length; i++) {\n // skip null buffered\n if (!bufferedToCheck[i]) {\n continue;\n }\n const timeAhead = timeAheadOf(bufferedToCheck[i], currentTime); // if we are less than two video/audio segment durations or one part\n // duration behind we haven't appended enough to call this a bad seek.\n\n if (timeAhead < minAppendedDuration) {\n return false;\n }\n }\n const nextRange = findNextRange(buffered, currentTime); // we have appended enough content, but we don't have anything buffered\n // to seek over the gap\n\n if (nextRange.length === 0) {\n return false;\n }\n seekTo = nextRange.start(0) + SAFE_TIME_DELTA;\n this.logger_(`Buffered region starts (${nextRange.start(0)}) ` + ` just beyond seek point (${currentTime}). Seeking to ${seekTo}.`);\n this.tech_.setCurrentTime(seekTo);\n return true;\n }\n /**\n * Handler for situations when we determine the player is waiting.\n *\n * @private\n */\n\n waiting_() {\n if (this.techWaiting_()) {\n return;\n } // All tech waiting checks failed. Use last resort correction\n\n const currentTime = this.tech_.currentTime();\n const buffered = this.tech_.buffered();\n const currentRange = findRange(buffered, currentTime); // Sometimes the player can stall for unknown reasons within a contiguous buffered\n // region with no indication that anything is amiss (seen in Firefox). Seeking to\n // currentTime is usually enough to kickstart the player. This checks that the player\n // is currently within a buffered region before attempting a corrective seek.\n // Chrome does not appear to continue `timeupdate` events after a `waiting` event\n // until there is ~ 3 seconds of forward buffer available. PlaybackWatcher should also\n // make sure there is ~3 seconds of forward buffer before taking any corrective action\n // to avoid triggering an `unknownwaiting` event when the network is slow.\n\n if (currentRange.length && currentTime + 3 <= currentRange.end(0)) {\n this.resetTimeUpdate_();\n this.tech_.setCurrentTime(currentTime);\n this.logger_(`Stopped at ${currentTime} while inside a buffered region ` + `[${currentRange.start(0)} -> ${currentRange.end(0)}]. Attempting to resume ` + 'playback by seeking to the current time.'); // unknown waiting corrections may be useful for monitoring QoS\n\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-unknown-waiting'\n });\n return;\n }\n }\n /**\n * Handler for situations when the tech fires a `waiting` event\n *\n * @return {boolean}\n * True if an action (or none) was needed to correct the waiting. False if no\n * checks passed\n * @private\n */\n\n techWaiting_() {\n const seekable = this.seekable();\n const currentTime = this.tech_.currentTime();\n if (this.tech_.seeking()) {\n // Tech is seeking or already waiting on another action, no action needed\n return true;\n }\n if (this.beforeSeekableWindow_(seekable, currentTime)) {\n const livePoint = seekable.end(seekable.length - 1);\n this.logger_(`Fell out of live window at time ${currentTime}. Seeking to ` + `live point (seekable end) ${livePoint}`);\n this.resetTimeUpdate_();\n this.tech_.setCurrentTime(livePoint); // live window resyncs may be useful for monitoring QoS\n\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-live-resync'\n });\n return true;\n }\n const sourceUpdater = this.tech_.vhs.playlistController_.sourceUpdater_;\n const buffered = this.tech_.buffered();\n const videoUnderflow = this.videoUnderflow_({\n audioBuffered: sourceUpdater.audioBuffered(),\n videoBuffered: sourceUpdater.videoBuffered(),\n currentTime\n });\n if (videoUnderflow) {\n // Even though the video underflowed and was stuck in a gap, the audio overplayed\n // the gap, leading currentTime into a buffered range. Seeking to currentTime\n // allows the video to catch up to the audio position without losing any audio\n // (only suffering ~3 seconds of frozen video and a pause in audio playback).\n this.resetTimeUpdate_();\n this.tech_.setCurrentTime(currentTime); // video underflow may be useful for monitoring QoS\n\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-video-underflow'\n });\n return true;\n }\n const nextRange = findNextRange(buffered, currentTime); // check for gap\n\n if (nextRange.length > 0) {\n this.logger_(`Stopped at ${currentTime} and seeking to ${nextRange.start(0)}`);\n this.resetTimeUpdate_();\n this.skipTheGap_(currentTime);\n return true;\n } // All checks failed. Returning false to indicate failure to correct waiting\n\n return false;\n }\n afterSeekableWindow_(seekable, currentTime, playlist) {\n let allowSeeksWithinUnsafeLiveWindow = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!seekable.length) {\n // we can't make a solid case if there's no seekable, default to false\n return false;\n }\n let allowedEnd = seekable.end(seekable.length - 1) + SAFE_TIME_DELTA;\n const isLive = !playlist.endList;\n const isLLHLS = typeof playlist.partTargetDuration === 'number';\n if (isLive && (isLLHLS || allowSeeksWithinUnsafeLiveWindow)) {\n allowedEnd = seekable.end(seekable.length - 1) + playlist.targetDuration * 3;\n }\n if (currentTime > allowedEnd) {\n return true;\n }\n return false;\n }\n beforeSeekableWindow_(seekable, currentTime) {\n if (seekable.length &&\n // can't fall before 0 and 0 seekable start identifies VOD stream\n seekable.start(0) > 0 && currentTime < seekable.start(0) - this.liveRangeSafeTimeDelta) {\n return true;\n }\n return false;\n }\n videoUnderflow_(_ref71) {\n let videoBuffered = _ref71.videoBuffered,\n audioBuffered = _ref71.audioBuffered,\n currentTime = _ref71.currentTime;\n // audio only content will not have video underflow :)\n if (!videoBuffered) {\n return;\n }\n let gap; // find a gap in demuxed content.\n\n if (videoBuffered.length && audioBuffered.length) {\n // in Chrome audio will continue to play for ~3s when we run out of video\n // so we have to check that the video buffer did have some buffer in the\n // past.\n const lastVideoRange = findRange(videoBuffered, currentTime - 3);\n const videoRange = findRange(videoBuffered, currentTime);\n const audioRange = findRange(audioBuffered, currentTime);\n if (audioRange.length && !videoRange.length && lastVideoRange.length) {\n gap = {\n start: lastVideoRange.end(0),\n end: audioRange.end(0)\n };\n } // find a gap in muxed content.\n } else {\n const nextRange = findNextRange(videoBuffered, currentTime); // Even if there is no available next range, there is still a possibility we are\n // stuck in a gap due to video underflow.\n\n if (!nextRange.length) {\n gap = this.gapFromVideoUnderflow_(videoBuffered, currentTime);\n }\n }\n if (gap) {\n this.logger_(`Encountered a gap in video from ${gap.start} to ${gap.end}. ` + `Seeking to current time ${currentTime}`);\n return true;\n }\n return false;\n }\n /**\n * Timer callback. If playback still has not proceeded, then we seek\n * to the start of the next buffered region.\n *\n * @private\n */\n\n skipTheGap_(scheduledCurrentTime) {\n const buffered = this.tech_.buffered();\n const currentTime = this.tech_.currentTime();\n const nextRange = findNextRange(buffered, currentTime);\n this.resetTimeUpdate_();\n if (nextRange.length === 0 || currentTime !== scheduledCurrentTime) {\n return;\n }\n this.logger_('skipTheGap_:', 'currentTime:', currentTime, 'scheduled currentTime:', scheduledCurrentTime, 'nextRange start:', nextRange.start(0)); // only seek if we still have not played\n\n this.tech_.setCurrentTime(nextRange.start(0) + TIME_FUDGE_FACTOR);\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-gap-skip'\n });\n }\n gapFromVideoUnderflow_(buffered, currentTime) {\n // At least in Chrome, if there is a gap in the video buffer, the audio will continue\n // playing for ~3 seconds after the video gap starts. This is done to account for\n // video buffer underflow/underrun (note that this is not done when there is audio\n // buffer underflow/underrun -- in that case the video will stop as soon as it\n // encounters the gap, as audio stalls are more noticeable/jarring to a user than\n // video stalls). The player's time will reflect the playthrough of audio, so the\n // time will appear as if we are in a buffered region, even if we are stuck in a\n // \"gap.\"\n //\n // Example:\n // video buffer: 0 => 10.1, 10.2 => 20\n // audio buffer: 0 => 20\n // overall buffer: 0 => 10.1, 10.2 => 20\n // current time: 13\n //\n // Chrome's video froze at 10 seconds, where the video buffer encountered the gap,\n // however, the audio continued playing until it reached ~3 seconds past the gap\n // (13 seconds), at which point it stops as well. Since current time is past the\n // gap, findNextRange will return no ranges.\n //\n // To check for this issue, we see if there is a gap that starts somewhere within\n // a 3 second range (3 seconds +/- 1 second) back from our current time.\n const gaps = findGaps(buffered);\n for (let i = 0; i < gaps.length; i++) {\n const start = gaps.start(i);\n const end = gaps.end(i); // gap is starts no more than 4 seconds back\n\n if (currentTime - start < 4 && currentTime - start > 2) {\n return {\n start,\n end\n };\n }\n }\n return null;\n }\n}\nconst defaultOptions = {\n errorInterval: 30,\n getSource(next) {\n const tech = this.tech({\n IWillNotUseThisInPlugins: true\n });\n const sourceObj = tech.currentSource_ || this.currentSource();\n return next(sourceObj);\n }\n};\n/**\n * Main entry point for the plugin\n *\n * @param {Player} player a reference to a videojs Player instance\n * @param {Object} [options] an object with plugin options\n * @private\n */\n\nconst initPlugin = function (player, options) {\n let lastCalled = 0;\n let seekTo = 0;\n const localOptions = merge(defaultOptions, options);\n player.ready(() => {\n player.trigger({\n type: 'usage',\n name: 'vhs-error-reload-initialized'\n });\n });\n /**\n * Player modifications to perform that must wait until `loadedmetadata`\n * has been triggered\n *\n * @private\n */\n\n const loadedMetadataHandler = function () {\n if (seekTo) {\n player.currentTime(seekTo);\n }\n };\n /**\n * Set the source on the player element, play, and seek if necessary\n *\n * @param {Object} sourceObj An object specifying the source url and mime-type to play\n * @private\n */\n\n const setSource = function (sourceObj) {\n if (sourceObj === null || sourceObj === undefined) {\n return;\n }\n seekTo = player.duration() !== Infinity && player.currentTime() || 0;\n player.one('loadedmetadata', loadedMetadataHandler);\n player.src(sourceObj);\n player.trigger({\n type: 'usage',\n name: 'vhs-error-reload'\n });\n player.play();\n };\n /**\n * Attempt to get a source from either the built-in getSource function\n * or a custom function provided via the options\n *\n * @private\n */\n\n const errorHandler = function () {\n // Do not attempt to reload the source if a source-reload occurred before\n // 'errorInterval' time has elapsed since the last source-reload\n if (Date.now() - lastCalled < localOptions.errorInterval * 1000) {\n player.trigger({\n type: 'usage',\n name: 'vhs-error-reload-canceled'\n });\n return;\n }\n if (!localOptions.getSource || typeof localOptions.getSource !== 'function') {\n videojs.log.error('ERROR: reloadSourceOnError - The option getSource must be a function!');\n return;\n }\n lastCalled = Date.now();\n return localOptions.getSource.call(player, setSource);\n };\n /**\n * Unbind any event handlers that were bound by the plugin\n *\n * @private\n */\n\n const cleanupEvents = function () {\n player.off('loadedmetadata', loadedMetadataHandler);\n player.off('error', errorHandler);\n player.off('dispose', cleanupEvents);\n };\n /**\n * Cleanup before re-initializing the plugin\n *\n * @param {Object} [newOptions] an object with plugin options\n * @private\n */\n\n const reinitPlugin = function (newOptions) {\n cleanupEvents();\n initPlugin(player, newOptions);\n };\n player.on('error', errorHandler);\n player.on('dispose', cleanupEvents); // Overwrite the plugin function so that we can correctly cleanup before\n // initializing the plugin\n\n player.reloadSourceOnError = reinitPlugin;\n};\n/**\n * Reload the source when an error is detected as long as there\n * wasn't an error previously within the last 30 seconds\n *\n * @param {Object} [options] an object with plugin options\n */\n\nconst reloadSourceOnError = function (options) {\n initPlugin(this, options);\n};\nvar version$4 = \"3.10.0\";\nvar version$3 = \"7.0.2\";\nvar version$2 = \"1.3.0\";\nvar version$1 = \"7.1.0\";\nvar version = \"4.0.1\";\n\n/**\n * @file videojs-http-streaming.js\n *\n * The main file for the VHS project.\n * License: https://github.com/videojs/videojs-http-streaming/blob/main/LICENSE\n */\nconst Vhs = {\n PlaylistLoader,\n Playlist,\n utils,\n STANDARD_PLAYLIST_SELECTOR: lastBandwidthSelector,\n INITIAL_PLAYLIST_SELECTOR: lowestBitrateCompatibleVariantSelector,\n lastBandwidthSelector,\n movingAverageBandwidthSelector,\n comparePlaylistBandwidth,\n comparePlaylistResolution,\n xhr: xhrFactory()\n}; // Define getter/setters for config properties\n\nObject.keys(Config).forEach(prop => {\n Object.defineProperty(Vhs, prop, {\n get() {\n videojs.log.warn(`using Vhs.${prop} is UNSAFE be sure you know what you are doing`);\n return Config[prop];\n },\n set(value) {\n videojs.log.warn(`using Vhs.${prop} is UNSAFE be sure you know what you are doing`);\n if (typeof value !== 'number' || value < 0) {\n videojs.log.warn(`value of Vhs.${prop} must be greater than or equal to 0`);\n return;\n }\n Config[prop] = value;\n }\n });\n});\nconst LOCAL_STORAGE_KEY = 'videojs-vhs';\n/**\n * Updates the selectedIndex of the QualityLevelList when a mediachange happens in vhs.\n *\n * @param {QualityLevelList} qualityLevels The QualityLevelList to update.\n * @param {PlaylistLoader} playlistLoader PlaylistLoader containing the new media info.\n * @function handleVhsMediaChange\n */\n\nconst handleVhsMediaChange = function (qualityLevels, playlistLoader) {\n const newPlaylist = playlistLoader.media();\n let selectedIndex = -1;\n for (let i = 0; i < qualityLevels.length; i++) {\n if (qualityLevels[i].id === newPlaylist.id) {\n selectedIndex = i;\n break;\n }\n }\n qualityLevels.selectedIndex_ = selectedIndex;\n qualityLevels.trigger({\n selectedIndex,\n type: 'change'\n });\n};\n/**\n * Adds quality levels to list once playlist metadata is available\n *\n * @param {QualityLevelList} qualityLevels The QualityLevelList to attach events to.\n * @param {Object} vhs Vhs object to listen to for media events.\n * @function handleVhsLoadedMetadata\n */\n\nconst handleVhsLoadedMetadata = function (qualityLevels, vhs) {\n vhs.representations().forEach(rep => {\n qualityLevels.addQualityLevel(rep);\n });\n handleVhsMediaChange(qualityLevels, vhs.playlists);\n}; // VHS is a source handler, not a tech. Make sure attempts to use it\n// as one do not cause exceptions.\n\nVhs.canPlaySource = function () {\n return videojs.log.warn('VHS is no longer a tech. Please remove it from ' + 'your player\\'s techOrder.');\n};\nconst emeKeySystems = (keySystemOptions, mainPlaylist, audioPlaylist) => {\n if (!keySystemOptions) {\n return keySystemOptions;\n }\n let codecs = {};\n if (mainPlaylist && mainPlaylist.attributes && mainPlaylist.attributes.CODECS) {\n codecs = unwrapCodecList(parseCodecs(mainPlaylist.attributes.CODECS));\n }\n if (audioPlaylist && audioPlaylist.attributes && audioPlaylist.attributes.CODECS) {\n codecs.audio = audioPlaylist.attributes.CODECS;\n }\n const videoContentType = getMimeForCodec(codecs.video);\n const audioContentType = getMimeForCodec(codecs.audio); // upsert the content types based on the selected playlist\n\n const keySystemContentTypes = {};\n for (const keySystem in keySystemOptions) {\n keySystemContentTypes[keySystem] = {};\n if (audioContentType) {\n keySystemContentTypes[keySystem].audioContentType = audioContentType;\n }\n if (videoContentType) {\n keySystemContentTypes[keySystem].videoContentType = videoContentType;\n } // Default to using the video playlist's PSSH even though they may be different, as\n // videojs-contrib-eme will only accept one in the options.\n //\n // This shouldn't be an issue for most cases as early intialization will handle all\n // unique PSSH values, and if they aren't, then encrypted events should have the\n // specific information needed for the unique license.\n\n if (mainPlaylist.contentProtection && mainPlaylist.contentProtection[keySystem] && mainPlaylist.contentProtection[keySystem].pssh) {\n keySystemContentTypes[keySystem].pssh = mainPlaylist.contentProtection[keySystem].pssh;\n } // videojs-contrib-eme accepts the option of specifying: 'com.some.cdm': 'url'\n // so we need to prevent overwriting the URL entirely\n\n if (typeof keySystemOptions[keySystem] === 'string') {\n keySystemContentTypes[keySystem].url = keySystemOptions[keySystem];\n }\n }\n return merge(keySystemOptions, keySystemContentTypes);\n};\n/**\n * @typedef {Object} KeySystems\n *\n * keySystems configuration for https://github.com/videojs/videojs-contrib-eme\n * Note: not all options are listed here.\n *\n * @property {Uint8Array} [pssh]\n * Protection System Specific Header\n */\n\n/**\n * Goes through all the playlists and collects an array of KeySystems options objects\n * containing each playlist's keySystems and their pssh values, if available.\n *\n * @param {Object[]} playlists\n * The playlists to look through\n * @param {string[]} keySystems\n * The keySystems to collect pssh values for\n *\n * @return {KeySystems[]}\n * An array of KeySystems objects containing available key systems and their\n * pssh values\n */\n\nconst getAllPsshKeySystemsOptions = (playlists, keySystems) => {\n return playlists.reduce((keySystemsArr, playlist) => {\n if (!playlist.contentProtection) {\n return keySystemsArr;\n }\n const keySystemsOptions = keySystems.reduce((keySystemsObj, keySystem) => {\n const keySystemOptions = playlist.contentProtection[keySystem];\n if (keySystemOptions && keySystemOptions.pssh) {\n keySystemsObj[keySystem] = {\n pssh: keySystemOptions.pssh\n };\n }\n return keySystemsObj;\n }, {});\n if (Object.keys(keySystemsOptions).length) {\n keySystemsArr.push(keySystemsOptions);\n }\n return keySystemsArr;\n }, []);\n};\n/**\n * Returns a promise that waits for the\n * [eme plugin](https://github.com/videojs/videojs-contrib-eme) to create a key session.\n *\n * Works around https://bugs.chromium.org/p/chromium/issues/detail?id=895449 in non-IE11\n * browsers.\n *\n * As per the above ticket, this is particularly important for Chrome, where, if\n * unencrypted content is appended before encrypted content and the key session has not\n * been created, a MEDIA_ERR_DECODE will be thrown once the encrypted content is reached\n * during playback.\n *\n * @param {Object} player\n * The player instance\n * @param {Object[]} sourceKeySystems\n * The key systems options from the player source\n * @param {Object} [audioMedia]\n * The active audio media playlist (optional)\n * @param {Object[]} mainPlaylists\n * The playlists found on the main playlist object\n *\n * @return {Object}\n * Promise that resolves when the key session has been created\n */\n\nconst waitForKeySessionCreation = _ref72 => {\n let player = _ref72.player,\n sourceKeySystems = _ref72.sourceKeySystems,\n audioMedia = _ref72.audioMedia,\n mainPlaylists = _ref72.mainPlaylists;\n if (!player.eme.initializeMediaKeys) {\n return Promise.resolve();\n } // TODO should all audio PSSH values be initialized for DRM?\n //\n // All unique video rendition pssh values are initialized for DRM, but here only\n // the initial audio playlist license is initialized. In theory, an encrypted\n // event should be fired if the user switches to an alternative audio playlist\n // where a license is required, but this case hasn't yet been tested. In addition, there\n // may be many alternate audio playlists unlikely to be used (e.g., multiple different\n // languages).\n\n const playlists = audioMedia ? mainPlaylists.concat([audioMedia]) : mainPlaylists;\n const keySystemsOptionsArr = getAllPsshKeySystemsOptions(playlists, Object.keys(sourceKeySystems));\n const initializationFinishedPromises = [];\n const keySessionCreatedPromises = []; // Since PSSH values are interpreted as initData, EME will dedupe any duplicates. The\n // only place where it should not be deduped is for ms-prefixed APIs, but\n // the existence of modern EME APIs in addition to\n // ms-prefixed APIs on Edge should prevent this from being a concern.\n // initializeMediaKeys also won't use the webkit-prefixed APIs.\n\n keySystemsOptionsArr.forEach(keySystemsOptions => {\n keySessionCreatedPromises.push(new Promise((resolve, reject) => {\n player.tech_.one('keysessioncreated', resolve);\n }));\n initializationFinishedPromises.push(new Promise((resolve, reject) => {\n player.eme.initializeMediaKeys({\n keySystems: keySystemsOptions\n }, err => {\n if (err) {\n reject(err);\n return;\n }\n resolve();\n });\n }));\n }); // The reasons Promise.race is chosen over Promise.any:\n //\n // * Promise.any is only available in Safari 14+.\n // * None of these promises are expected to reject. If they do reject, it might be\n // better here for the race to surface the rejection, rather than mask it by using\n // Promise.any.\n\n return Promise.race([\n // If a session was previously created, these will all finish resolving without\n // creating a new session, otherwise it will take until the end of all license\n // requests, which is why the key session check is used (to make setup much faster).\n Promise.all(initializationFinishedPromises),\n // Once a single session is created, the browser knows DRM will be used.\n Promise.race(keySessionCreatedPromises)]);\n};\n/**\n * If the [eme](https://github.com/videojs/videojs-contrib-eme) plugin is available, and\n * there are keySystems on the source, sets up source options to prepare the source for\n * eme.\n *\n * @param {Object} player\n * The player instance\n * @param {Object[]} sourceKeySystems\n * The key systems options from the player source\n * @param {Object} media\n * The active media playlist\n * @param {Object} [audioMedia]\n * The active audio media playlist (optional)\n *\n * @return {boolean}\n * Whether or not options were configured and EME is available\n */\n\nconst setupEmeOptions = _ref73 => {\n let player = _ref73.player,\n sourceKeySystems = _ref73.sourceKeySystems,\n media = _ref73.media,\n audioMedia = _ref73.audioMedia;\n const sourceOptions = emeKeySystems(sourceKeySystems, media, audioMedia);\n if (!sourceOptions) {\n return false;\n }\n player.currentSource().keySystems = sourceOptions; // eme handles the rest of the setup, so if it is missing\n // do nothing.\n\n if (sourceOptions && !player.eme) {\n videojs.log.warn('DRM encrypted source cannot be decrypted without a DRM plugin');\n return false;\n }\n return true;\n};\nconst getVhsLocalStorage = () => {\n if (!window$1.localStorage) {\n return null;\n }\n const storedObject = window$1.localStorage.getItem(LOCAL_STORAGE_KEY);\n if (!storedObject) {\n return null;\n }\n try {\n return JSON.parse(storedObject);\n } catch (e) {\n // someone may have tampered with the value\n return null;\n }\n};\nconst updateVhsLocalStorage = options => {\n if (!window$1.localStorage) {\n return false;\n }\n let objectToStore = getVhsLocalStorage();\n objectToStore = objectToStore ? merge(objectToStore, options) : options;\n try {\n window$1.localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(objectToStore));\n } catch (e) {\n // Throws if storage is full (e.g., always on iOS 5+ Safari private mode, where\n // storage is set to 0).\n // https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem#Exceptions\n // No need to perform any operation.\n return false;\n }\n return objectToStore;\n};\n/**\n * Parses VHS-supported media types from data URIs. See\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\n * for information on data URIs.\n *\n * @param {string} dataUri\n * The data URI\n *\n * @return {string|Object}\n * The parsed object/string, or the original string if no supported media type\n * was found\n */\n\nconst expandDataUri = dataUri => {\n if (dataUri.toLowerCase().indexOf('data:application/vnd.videojs.vhs+json,') === 0) {\n return JSON.parse(dataUri.substring(dataUri.indexOf(',') + 1));\n } // no known case for this data URI, return the string as-is\n\n return dataUri;\n};\n/**\n * Adds a request hook to an xhr object\n *\n * @param {Object} xhr object to add the onRequest hook to\n * @param {function} callback hook function for an xhr request\n */\n\nconst addOnRequestHook = (xhr, callback) => {\n if (!xhr._requestCallbackSet) {\n xhr._requestCallbackSet = new Set();\n }\n xhr._requestCallbackSet.add(callback);\n};\n/**\n * Adds a response hook to an xhr object\n *\n * @param {Object} xhr object to add the onResponse hook to\n * @param {function} callback hook function for an xhr response\n */\n\nconst addOnResponseHook = (xhr, callback) => {\n if (!xhr._responseCallbackSet) {\n xhr._responseCallbackSet = new Set();\n }\n xhr._responseCallbackSet.add(callback);\n};\n/**\n * Removes a request hook on an xhr object, deletes the onRequest set if empty.\n *\n * @param {Object} xhr object to remove the onRequest hook from\n * @param {function} callback hook function to remove\n */\n\nconst removeOnRequestHook = (xhr, callback) => {\n if (!xhr._requestCallbackSet) {\n return;\n }\n xhr._requestCallbackSet.delete(callback);\n if (!xhr._requestCallbackSet.size) {\n delete xhr._requestCallbackSet;\n }\n};\n/**\n * Removes a response hook on an xhr object, deletes the onResponse set if empty.\n *\n * @param {Object} xhr object to remove the onResponse hook from\n * @param {function} callback hook function to remove\n */\n\nconst removeOnResponseHook = (xhr, callback) => {\n if (!xhr._responseCallbackSet) {\n return;\n }\n xhr._responseCallbackSet.delete(callback);\n if (!xhr._responseCallbackSet.size) {\n delete xhr._responseCallbackSet;\n }\n};\n/**\n * Whether the browser has built-in HLS support.\n */\n\nVhs.supportsNativeHls = function () {\n if (!document || !document.createElement) {\n return false;\n }\n const video = document.createElement('video'); // native HLS is definitely not supported if HTML5 video isn't\n\n if (!videojs.getTech('Html5').isSupported()) {\n return false;\n } // HLS manifests can go by many mime-types\n\n const canPlay = [\n // Apple santioned\n 'application/vnd.apple.mpegurl',\n // Apple sanctioned for backwards compatibility\n 'audio/mpegurl',\n // Very common\n 'audio/x-mpegurl',\n // Very common\n 'application/x-mpegurl',\n // Included for completeness\n 'video/x-mpegurl', 'video/mpegurl', 'application/mpegurl'];\n return canPlay.some(function (canItPlay) {\n return /maybe|probably/i.test(video.canPlayType(canItPlay));\n });\n}();\nVhs.supportsNativeDash = function () {\n if (!document || !document.createElement || !videojs.getTech('Html5').isSupported()) {\n return false;\n }\n return /maybe|probably/i.test(document.createElement('video').canPlayType('application/dash+xml'));\n}();\nVhs.supportsTypeNatively = type => {\n if (type === 'hls') {\n return Vhs.supportsNativeHls;\n }\n if (type === 'dash') {\n return Vhs.supportsNativeDash;\n }\n return false;\n};\n/**\n * VHS is a source handler, not a tech. Make sure attempts to use it\n * as one do not cause exceptions.\n */\n\nVhs.isSupported = function () {\n return videojs.log.warn('VHS is no longer a tech. Please remove it from ' + 'your player\\'s techOrder.');\n};\n/**\n * A global function for setting an onRequest hook\n *\n * @param {function} callback for request modifiction\n */\n\nVhs.xhr.onRequest = function (callback) {\n addOnRequestHook(Vhs.xhr, callback);\n};\n/**\n * A global function for setting an onResponse hook\n *\n * @param {callback} callback for response data retrieval\n */\n\nVhs.xhr.onResponse = function (callback) {\n addOnResponseHook(Vhs.xhr, callback);\n};\n/**\n * Deletes a global onRequest callback if it exists\n *\n * @param {function} callback to delete from the global set\n */\n\nVhs.xhr.offRequest = function (callback) {\n removeOnRequestHook(Vhs.xhr, callback);\n};\n/**\n * Deletes a global onResponse callback if it exists\n *\n * @param {function} callback to delete from the global set\n */\n\nVhs.xhr.offResponse = function (callback) {\n removeOnResponseHook(Vhs.xhr, callback);\n};\nconst Component = videojs.getComponent('Component');\n/**\n * The Vhs Handler object, where we orchestrate all of the parts\n * of VHS to interact with video.js\n *\n * @class VhsHandler\n * @extends videojs.Component\n * @param {Object} source the soruce object\n * @param {Tech} tech the parent tech object\n * @param {Object} options optional and required options\n */\n\nclass VhsHandler extends Component {\n constructor(source, tech, options) {\n super(tech, options.vhs); // if a tech level `initialBandwidth` option was passed\n // use that over the VHS level `bandwidth` option\n\n if (typeof options.initialBandwidth === 'number') {\n this.options_.bandwidth = options.initialBandwidth;\n }\n this.logger_ = logger('VhsHandler'); // we need access to the player in some cases,\n // so, get it from Video.js via the `playerId`\n\n if (tech.options_ && tech.options_.playerId) {\n const _player = videojs.getPlayer(tech.options_.playerId);\n this.player_ = _player;\n }\n this.tech_ = tech;\n this.source_ = source;\n this.stats = {};\n this.ignoreNextSeekingEvent_ = false;\n this.setOptions_();\n if (this.options_.overrideNative && tech.overrideNativeAudioTracks && tech.overrideNativeVideoTracks) {\n tech.overrideNativeAudioTracks(true);\n tech.overrideNativeVideoTracks(true);\n } else if (this.options_.overrideNative && (tech.featuresNativeVideoTracks || tech.featuresNativeAudioTracks)) {\n // overriding native VHS only works if audio tracks have been emulated\n // error early if we're misconfigured\n throw new Error('Overriding native VHS requires emulated tracks. ' + 'See https://git.io/vMpjB');\n } // listen for fullscreenchange events for this player so that we\n // can adjust our quality selection quickly\n\n this.on(document, ['fullscreenchange', 'webkitfullscreenchange', 'mozfullscreenchange', 'MSFullscreenChange'], event => {\n const fullscreenElement = document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;\n if (fullscreenElement && fullscreenElement.contains(this.tech_.el())) {\n this.playlistController_.fastQualityChange_();\n } else {\n // When leaving fullscreen, since the in page pixel dimensions should be smaller\n // than full screen, see if there should be a rendition switch down to preserve\n // bandwidth.\n this.playlistController_.checkABR_();\n }\n });\n this.on(this.tech_, 'seeking', function () {\n if (this.ignoreNextSeekingEvent_) {\n this.ignoreNextSeekingEvent_ = false;\n return;\n }\n this.setCurrentTime(this.tech_.currentTime());\n });\n this.on(this.tech_, 'error', function () {\n // verify that the error was real and we are loaded\n // enough to have pc loaded.\n if (this.tech_.error() && this.playlistController_) {\n this.playlistController_.pauseLoading();\n }\n });\n this.on(this.tech_, 'play', this.play);\n }\n /**\n * Set VHS options based on options from configuration, as well as partial\n * options to be passed at a later time.\n *\n * @param {Object} options A partial chunk of config options\n */\n\n setOptions_() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.options_ = merge(this.options_, options); // defaults\n\n this.options_.withCredentials = this.options_.withCredentials || false;\n this.options_.limitRenditionByPlayerDimensions = this.options_.limitRenditionByPlayerDimensions === false ? false : true;\n this.options_.useDevicePixelRatio = this.options_.useDevicePixelRatio || false;\n this.options_.useBandwidthFromLocalStorage = typeof this.source_.useBandwidthFromLocalStorage !== 'undefined' ? this.source_.useBandwidthFromLocalStorage : this.options_.useBandwidthFromLocalStorage || false;\n this.options_.useForcedSubtitles = this.options_.useForcedSubtitles || false;\n this.options_.useNetworkInformationApi = this.options_.useNetworkInformationApi || false;\n this.options_.useDtsForTimestampOffset = this.options_.useDtsForTimestampOffset || false;\n this.options_.customTagParsers = this.options_.customTagParsers || [];\n this.options_.customTagMappers = this.options_.customTagMappers || [];\n this.options_.cacheEncryptionKeys = this.options_.cacheEncryptionKeys || false;\n this.options_.llhls = this.options_.llhls === false ? false : true;\n this.options_.bufferBasedABR = this.options_.bufferBasedABR || false;\n if (typeof this.options_.playlistExclusionDuration !== 'number') {\n this.options_.playlistExclusionDuration = 60;\n }\n if (typeof this.options_.bandwidth !== 'number') {\n if (this.options_.useBandwidthFromLocalStorage) {\n const storedObject = getVhsLocalStorage();\n if (storedObject && storedObject.bandwidth) {\n this.options_.bandwidth = storedObject.bandwidth;\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-bandwidth-from-local-storage'\n });\n }\n if (storedObject && storedObject.throughput) {\n this.options_.throughput = storedObject.throughput;\n this.tech_.trigger({\n type: 'usage',\n name: 'vhs-throughput-from-local-storage'\n });\n }\n }\n } // if bandwidth was not set by options or pulled from local storage, start playlist\n // selection at a reasonable bandwidth\n\n if (typeof this.options_.bandwidth !== 'number') {\n this.options_.bandwidth = Config.INITIAL_BANDWIDTH;\n } // If the bandwidth number is unchanged from the initial setting\n // then this takes precedence over the enableLowInitialPlaylist option\n\n this.options_.enableLowInitialPlaylist = this.options_.enableLowInitialPlaylist && this.options_.bandwidth === Config.INITIAL_BANDWIDTH; // grab options passed to player.src\n\n ['withCredentials', 'useDevicePixelRatio', 'limitRenditionByPlayerDimensions', 'bandwidth', 'customTagParsers', 'customTagMappers', 'cacheEncryptionKeys', 'playlistSelector', 'initialPlaylistSelector', 'bufferBasedABR', 'liveRangeSafeTimeDelta', 'llhls', 'useForcedSubtitles', 'useNetworkInformationApi', 'useDtsForTimestampOffset', 'exactManifestTimings', 'leastPixelDiffSelector'].forEach(option => {\n if (typeof this.source_[option] !== 'undefined') {\n this.options_[option] = this.source_[option];\n }\n });\n this.limitRenditionByPlayerDimensions = this.options_.limitRenditionByPlayerDimensions;\n this.useDevicePixelRatio = this.options_.useDevicePixelRatio;\n } // alias for public method to set options\n\n setOptions() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.setOptions_(options);\n }\n /**\n * called when player.src gets called, handle a new source\n *\n * @param {Object} src the source object to handle\n */\n\n src(src, type) {\n // do nothing if the src is falsey\n if (!src) {\n return;\n }\n this.setOptions_(); // add main playlist controller options\n\n this.options_.src = expandDataUri(this.source_.src);\n this.options_.tech = this.tech_;\n this.options_.externVhs = Vhs;\n this.options_.sourceType = simpleTypeFromSourceType(type); // Whenever we seek internally, we should update the tech\n\n this.options_.seekTo = time => {\n this.tech_.setCurrentTime(time);\n };\n this.playlistController_ = new PlaylistController(this.options_);\n const playbackWatcherOptions = merge({\n liveRangeSafeTimeDelta: SAFE_TIME_DELTA\n }, this.options_, {\n seekable: () => this.seekable(),\n media: () => this.playlistController_.media(),\n playlistController: this.playlistController_\n });\n this.playbackWatcher_ = new PlaybackWatcher(playbackWatcherOptions);\n this.playlistController_.on('error', () => {\n const player = videojs.players[this.tech_.options_.playerId];\n let error = this.playlistController_.error;\n if (typeof error === 'object' && !error.code) {\n error.code = 3;\n } else if (typeof error === 'string') {\n error = {\n message: error,\n code: 3\n };\n }\n player.error(error);\n });\n const defaultSelector = this.options_.bufferBasedABR ? Vhs.movingAverageBandwidthSelector(0.55) : Vhs.STANDARD_PLAYLIST_SELECTOR; // `this` in selectPlaylist should be the VhsHandler for backwards\n // compatibility with < v2\n\n this.playlistController_.selectPlaylist = this.selectPlaylist ? this.selectPlaylist.bind(this) : defaultSelector.bind(this);\n this.playlistController_.selectInitialPlaylist = Vhs.INITIAL_PLAYLIST_SELECTOR.bind(this); // re-expose some internal objects for backwards compatibility with < v2\n\n this.playlists = this.playlistController_.mainPlaylistLoader_;\n this.mediaSource = this.playlistController_.mediaSource; // Proxy assignment of some properties to the main playlist\n // controller. Using a custom property for backwards compatibility\n // with < v2\n\n Object.defineProperties(this, {\n selectPlaylist: {\n get() {\n return this.playlistController_.selectPlaylist;\n },\n set(selectPlaylist) {\n this.playlistController_.selectPlaylist = selectPlaylist.bind(this);\n }\n },\n throughput: {\n get() {\n return this.playlistController_.mainSegmentLoader_.throughput.rate;\n },\n set(throughput) {\n this.playlistController_.mainSegmentLoader_.throughput.rate = throughput; // By setting `count` to 1 the throughput value becomes the starting value\n // for the cumulative average\n\n this.playlistController_.mainSegmentLoader_.throughput.count = 1;\n }\n },\n bandwidth: {\n get() {\n let playerBandwidthEst = this.playlistController_.mainSegmentLoader_.bandwidth;\n const networkInformation = window$1.navigator.connection || window$1.navigator.mozConnection || window$1.navigator.webkitConnection;\n const tenMbpsAsBitsPerSecond = 10e6;\n if (this.options_.useNetworkInformationApi && networkInformation) {\n // downlink returns Mbps\n // https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/downlink\n const networkInfoBandwidthEstBitsPerSec = networkInformation.downlink * 1000 * 1000; // downlink maxes out at 10 Mbps. In the event that both networkInformationApi and the player\n // estimate a bandwidth greater than 10 Mbps, use the larger of the two estimates to ensure that\n // high quality streams are not filtered out.\n\n if (networkInfoBandwidthEstBitsPerSec >= tenMbpsAsBitsPerSecond && playerBandwidthEst >= tenMbpsAsBitsPerSecond) {\n playerBandwidthEst = Math.max(playerBandwidthEst, networkInfoBandwidthEstBitsPerSec);\n } else {\n playerBandwidthEst = networkInfoBandwidthEstBitsPerSec;\n }\n }\n return playerBandwidthEst;\n },\n set(bandwidth) {\n this.playlistController_.mainSegmentLoader_.bandwidth = bandwidth; // setting the bandwidth manually resets the throughput counter\n // `count` is set to zero that current value of `rate` isn't included\n // in the cumulative average\n\n this.playlistController_.mainSegmentLoader_.throughput = {\n rate: 0,\n count: 0\n };\n }\n },\n /**\n * `systemBandwidth` is a combination of two serial processes bit-rates. The first\n * is the network bitrate provided by `bandwidth` and the second is the bitrate of\n * the entire process after that - decryption, transmuxing, and appending - provided\n * by `throughput`.\n *\n * Since the two process are serial, the overall system bandwidth is given by:\n * sysBandwidth = 1 / (1 / bandwidth + 1 / throughput)\n */\n systemBandwidth: {\n get() {\n const invBandwidth = 1 / (this.bandwidth || 1);\n let invThroughput;\n if (this.throughput > 0) {\n invThroughput = 1 / this.throughput;\n } else {\n invThroughput = 0;\n }\n const systemBitrate = Math.floor(1 / (invBandwidth + invThroughput));\n return systemBitrate;\n },\n set() {\n videojs.log.error('The \"systemBandwidth\" property is read-only');\n }\n }\n });\n if (this.options_.bandwidth) {\n this.bandwidth = this.options_.bandwidth;\n }\n if (this.options_.throughput) {\n this.throughput = this.options_.throughput;\n }\n Object.defineProperties(this.stats, {\n bandwidth: {\n get: () => this.bandwidth || 0,\n enumerable: true\n },\n mediaRequests: {\n get: () => this.playlistController_.mediaRequests_() || 0,\n enumerable: true\n },\n mediaRequestsAborted: {\n get: () => this.playlistController_.mediaRequestsAborted_() || 0,\n enumerable: true\n },\n mediaRequestsTimedout: {\n get: () => this.playlistController_.mediaRequestsTimedout_() || 0,\n enumerable: true\n },\n mediaRequestsErrored: {\n get: () => this.playlistController_.mediaRequestsErrored_() || 0,\n enumerable: true\n },\n mediaTransferDuration: {\n get: () => this.playlistController_.mediaTransferDuration_() || 0,\n enumerable: true\n },\n mediaBytesTransferred: {\n get: () => this.playlistController_.mediaBytesTransferred_() || 0,\n enumerable: true\n },\n mediaSecondsLoaded: {\n get: () => this.playlistController_.mediaSecondsLoaded_() || 0,\n enumerable: true\n },\n mediaAppends: {\n get: () => this.playlistController_.mediaAppends_() || 0,\n enumerable: true\n },\n mainAppendsToLoadedData: {\n get: () => this.playlistController_.mainAppendsToLoadedData_() || 0,\n enumerable: true\n },\n audioAppendsToLoadedData: {\n get: () => this.playlistController_.audioAppendsToLoadedData_() || 0,\n enumerable: true\n },\n appendsToLoadedData: {\n get: () => this.playlistController_.appendsToLoadedData_() || 0,\n enumerable: true\n },\n timeToLoadedData: {\n get: () => this.playlistController_.timeToLoadedData_() || 0,\n enumerable: true\n },\n buffered: {\n get: () => timeRangesToArray(this.tech_.buffered()),\n enumerable: true\n },\n currentTime: {\n get: () => this.tech_.currentTime(),\n enumerable: true\n },\n currentSource: {\n get: () => this.tech_.currentSource_,\n enumerable: true\n },\n currentTech: {\n get: () => this.tech_.name_,\n enumerable: true\n },\n duration: {\n get: () => this.tech_.duration(),\n enumerable: true\n },\n main: {\n get: () => this.playlists.main,\n enumerable: true\n },\n playerDimensions: {\n get: () => this.tech_.currentDimensions(),\n enumerable: true\n },\n seekable: {\n get: () => timeRangesToArray(this.tech_.seekable()),\n enumerable: true\n },\n timestamp: {\n get: () => Date.now(),\n enumerable: true\n },\n videoPlaybackQuality: {\n get: () => this.tech_.getVideoPlaybackQuality(),\n enumerable: true\n }\n });\n this.tech_.one('canplay', this.playlistController_.setupFirstPlay.bind(this.playlistController_));\n this.tech_.on('bandwidthupdate', () => {\n if (this.options_.useBandwidthFromLocalStorage) {\n updateVhsLocalStorage({\n bandwidth: this.bandwidth,\n throughput: Math.round(this.throughput)\n });\n }\n });\n this.playlistController_.on('selectedinitialmedia', () => {\n // Add the manual rendition mix-in to VhsHandler\n renditionSelectionMixin(this);\n });\n this.playlistController_.sourceUpdater_.on('createdsourcebuffers', () => {\n this.setupEme_();\n }); // the bandwidth of the primary segment loader is our best\n // estimate of overall bandwidth\n\n this.on(this.playlistController_, 'progress', function () {\n this.tech_.trigger('progress');\n }); // In the live case, we need to ignore the very first `seeking` event since\n // that will be the result of the seek-to-live behavior\n\n this.on(this.playlistController_, 'firstplay', function () {\n this.ignoreNextSeekingEvent_ = true;\n });\n this.setupQualityLevels_(); // do nothing if the tech has been disposed already\n // this can occur if someone sets the src in player.ready(), for instance\n\n if (!this.tech_.el()) {\n return;\n }\n this.mediaSourceUrl_ = window$1.URL.createObjectURL(this.playlistController_.mediaSource);\n this.tech_.src(this.mediaSourceUrl_);\n }\n createKeySessions_() {\n const audioPlaylistLoader = this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;\n this.logger_('waiting for EME key session creation');\n waitForKeySessionCreation({\n player: this.player_,\n sourceKeySystems: this.source_.keySystems,\n audioMedia: audioPlaylistLoader && audioPlaylistLoader.media(),\n mainPlaylists: this.playlists.main.playlists\n }).then(() => {\n this.logger_('created EME key session');\n this.playlistController_.sourceUpdater_.initializedEme();\n }).catch(err => {\n this.logger_('error while creating EME key session', err);\n this.player_.error({\n message: 'Failed to initialize media keys for EME',\n code: 3\n });\n });\n }\n handleWaitingForKey_() {\n // If waitingforkey is fired, it's possible that the data that's necessary to retrieve\n // the key is in the manifest. While this should've happened on initial source load, it\n // may happen again in live streams where the keys change, and the manifest info\n // reflects the update.\n //\n // Because videojs-contrib-eme compares the PSSH data we send to that of PSSH data it's\n // already requested keys for, we don't have to worry about this generating extraneous\n // requests.\n this.logger_('waitingforkey fired, attempting to create any new key sessions');\n this.createKeySessions_();\n }\n /**\n * If necessary and EME is available, sets up EME options and waits for key session\n * creation.\n *\n * This function also updates the source updater so taht it can be used, as for some\n * browsers, EME must be configured before content is appended (if appending unencrypted\n * content before encrypted content).\n */\n\n setupEme_() {\n const audioPlaylistLoader = this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;\n const didSetupEmeOptions = setupEmeOptions({\n player: this.player_,\n sourceKeySystems: this.source_.keySystems,\n media: this.playlists.media(),\n audioMedia: audioPlaylistLoader && audioPlaylistLoader.media()\n });\n this.player_.tech_.on('keystatuschange', e => {\n this.playlistController_.updatePlaylistByKeyStatus(e.keyId, e.status);\n });\n this.handleWaitingForKey_ = this.handleWaitingForKey_.bind(this);\n this.player_.tech_.on('waitingforkey', this.handleWaitingForKey_);\n if (!didSetupEmeOptions) {\n // If EME options were not set up, we've done all we could to initialize EME.\n this.playlistController_.sourceUpdater_.initializedEme();\n return;\n }\n this.createKeySessions_();\n }\n /**\n * Initializes the quality levels and sets listeners to update them.\n *\n * @method setupQualityLevels_\n * @private\n */\n\n setupQualityLevels_() {\n const player = videojs.players[this.tech_.options_.playerId]; // if there isn't a player or there isn't a qualityLevels plugin\n // or qualityLevels_ listeners have already been setup, do nothing.\n\n if (!player || !player.qualityLevels || this.qualityLevels_) {\n return;\n }\n this.qualityLevels_ = player.qualityLevels();\n this.playlistController_.on('selectedinitialmedia', () => {\n handleVhsLoadedMetadata(this.qualityLevels_, this);\n });\n this.playlists.on('mediachange', () => {\n handleVhsMediaChange(this.qualityLevels_, this.playlists);\n });\n }\n /**\n * return the version\n */\n\n static version() {\n return {\n '@videojs/http-streaming': version$4,\n 'mux.js': version$3,\n 'mpd-parser': version$2,\n 'm3u8-parser': version$1,\n 'aes-decrypter': version\n };\n }\n /**\n * return the version\n */\n\n version() {\n return this.constructor.version();\n }\n canChangeType() {\n return SourceUpdater.canChangeType();\n }\n /**\n * Begin playing the video.\n */\n\n play() {\n this.playlistController_.play();\n }\n /**\n * a wrapper around the function in PlaylistController\n */\n\n setCurrentTime(currentTime) {\n this.playlistController_.setCurrentTime(currentTime);\n }\n /**\n * a wrapper around the function in PlaylistController\n */\n\n duration() {\n return this.playlistController_.duration();\n }\n /**\n * a wrapper around the function in PlaylistController\n */\n\n seekable() {\n return this.playlistController_.seekable();\n }\n /**\n * Abort all outstanding work and cleanup.\n */\n\n dispose() {\n if (this.playbackWatcher_) {\n this.playbackWatcher_.dispose();\n }\n if (this.playlistController_) {\n this.playlistController_.dispose();\n }\n if (this.qualityLevels_) {\n this.qualityLevels_.dispose();\n }\n if (this.tech_ && this.tech_.vhs) {\n delete this.tech_.vhs;\n }\n if (this.mediaSourceUrl_ && window$1.URL.revokeObjectURL) {\n window$1.URL.revokeObjectURL(this.mediaSourceUrl_);\n this.mediaSourceUrl_ = null;\n }\n if (this.tech_) {\n this.tech_.off('waitingforkey', this.handleWaitingForKey_);\n }\n super.dispose();\n }\n convertToProgramTime(time, callback) {\n return getProgramTime({\n playlist: this.playlistController_.media(),\n time,\n callback\n });\n } // the player must be playing before calling this\n\n seekToProgramTime(programTime, callback) {\n let pauseAfterSeek = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n let retryCount = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;\n return seekToProgramTime({\n programTime,\n playlist: this.playlistController_.media(),\n retryCount,\n pauseAfterSeek,\n seekTo: this.options_.seekTo,\n tech: this.options_.tech,\n callback\n });\n }\n /**\n * Adds the onRequest, onResponse, offRequest and offResponse functions\n * to the VhsHandler xhr Object.\n */\n\n setupXhrHooks_() {\n /**\n * A player function for setting an onRequest hook\n *\n * @param {function} callback for request modifiction\n */\n this.xhr.onRequest = callback => {\n addOnRequestHook(this.xhr, callback);\n };\n /**\n * A player function for setting an onResponse hook\n *\n * @param {callback} callback for response data retrieval\n */\n\n this.xhr.onResponse = callback => {\n addOnResponseHook(this.xhr, callback);\n };\n /**\n * Deletes a player onRequest callback if it exists\n *\n * @param {function} callback to delete from the player set\n */\n\n this.xhr.offRequest = callback => {\n removeOnRequestHook(this.xhr, callback);\n };\n /**\n * Deletes a player onResponse callback if it exists\n *\n * @param {function} callback to delete from the player set\n */\n\n this.xhr.offResponse = callback => {\n removeOnResponseHook(this.xhr, callback);\n }; // Trigger an event on the player to notify the user that vhs is ready to set xhr hooks.\n // This allows hooks to be set before the source is set to vhs when handleSource is called.\n\n this.player_.trigger('xhr-hooks-ready');\n }\n}\n/**\n * The Source Handler object, which informs video.js what additional\n * MIME types are supported and sets up playback. It is registered\n * automatically to the appropriate tech based on the capabilities of\n * the browser it is running in. It is not necessary to use or modify\n * this object in normal usage.\n */\n\nconst VhsSourceHandler = {\n name: 'videojs-http-streaming',\n VERSION: version$4,\n canHandleSource(srcObj) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const localOptions = merge(videojs.options, options);\n return VhsSourceHandler.canPlayType(srcObj.type, localOptions);\n },\n handleSource(source, tech) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const localOptions = merge(videojs.options, options);\n tech.vhs = new VhsHandler(source, tech, localOptions);\n tech.vhs.xhr = xhrFactory();\n tech.vhs.setupXhrHooks_();\n tech.vhs.src(source.src, source.type);\n return tech.vhs;\n },\n canPlayType(type, options) {\n const simpleType = simpleTypeFromSourceType(type);\n if (!simpleType) {\n return '';\n }\n const overrideNative = VhsSourceHandler.getOverrideNative(options);\n const supportsTypeNatively = Vhs.supportsTypeNatively(simpleType);\n const canUseMsePlayback = !supportsTypeNatively || overrideNative;\n return canUseMsePlayback ? 'maybe' : '';\n },\n getOverrideNative() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n const _options$vhs = options.vhs,\n vhs = _options$vhs === void 0 ? {} : _options$vhs;\n const defaultOverrideNative = !(videojs.browser.IS_ANY_SAFARI || videojs.browser.IS_IOS);\n const _vhs$overrideNative = vhs.overrideNative,\n overrideNative = _vhs$overrideNative === void 0 ? defaultOverrideNative : _vhs$overrideNative;\n return overrideNative;\n }\n};\n/**\n * Check to see if the native MediaSource object exists and supports\n * an MP4 container with both H.264 video and AAC-LC audio.\n *\n * @return {boolean} if native media sources are supported\n */\n\nconst supportsNativeMediaSources = () => {\n return browserSupportsCodec('avc1.4d400d,mp4a.40.2');\n}; // register source handlers with the appropriate techs\n\nif (supportsNativeMediaSources()) {\n videojs.getTech('Html5').registerSourceHandler(VhsSourceHandler, 0);\n}\nvideojs.VhsHandler = VhsHandler;\nvideojs.VhsSourceHandler = VhsSourceHandler;\nvideojs.Vhs = Vhs;\nif (!videojs.use) {\n videojs.registerComponent('Vhs', Vhs);\n}\nvideojs.options.vhs = videojs.options.vhs || {};\nif (!videojs.getPlugin || !videojs.getPlugin('reloadSourceOnError')) {\n videojs.registerPlugin('reloadSourceOnError', reloadSourceOnError);\n}\nexport { videojs as default };","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-3\"},[_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('h1',[_vm._v(\"\\n Campos customizados de \"+_vm._s(_vm.entity_translate[_vm.entity])+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",on:{\"click\":_vm.newFieldMapping}},[_c('font-awesome-icon',{attrs:{\"icon\":\"plus\"}}),_vm._v(\"\\n Novo\\n \")],1)]),_vm._v(\" \"),_vm._l((_vm.field_mapping),function(field){return _c('div',{key:field.id,staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row field_uni\"},[_c('div',{staticClass:\"col-lg-1\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.checke_field),expression:\"checke_field\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"value\":field.id,\"checked\":Array.isArray(_vm.checke_field)?_vm._i(_vm.checke_field,field.id)>-1:(_vm.checke_field)},on:{\"change\":function($event){var $$a=_vm.checke_field,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=field.id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.checke_field=$$a.concat([$$v]))}else{$$i>-1&&(_vm.checke_field=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.checke_field=$$c}}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.required ? \"Sim\" : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.type_field_translate[field.parameters.type_field])+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.hidden ? \"Sim\" : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.value_field)+\"\\n \")])])])}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",on:{\"click\":_vm.save}},[_vm._v(\"\\n Salvar\\n \")])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n Campos customizados de {{entity_translate[entity]}}\n \n \n
\n \n \n Novo\n \n
\n
\n
\n
\n \n
\n
\n {{field.parameters.name}}\n
\n
\n {{field.parameters.required ? \"Sim\" : \"Não\"}}\n
\n
\n {{type_field_translate[field.parameters.type_field]}}\n
\n
\n {{field.parameters.hidden ? \"Sim\" : \"Não\"}}\n
\n
\n {{field.parameters.value_field}}\n
\n
\n
\n
\n\n
\n\n
\n \n Salvar\n \n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=cfaf8022&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*!\n * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n * Copyright 2022 Fonticons, Inc.\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\nfunction _wrapRegExp() {\n _wrapRegExp = function (re, groups) {\n return new BabelRegExp(re, void 0, groups);\n };\n var _super = RegExp.prototype,\n _groups = new WeakMap();\n function BabelRegExp(re, flags, groups) {\n var _this = new RegExp(re, flags);\n return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);\n }\n function buildGroups(result, re) {\n var g = _groups.get(re);\n return Object.keys(g).reduce(function (groups, name) {\n return groups[name] = result[g[name]], groups;\n }, Object.create(null));\n }\n return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {\n var result = _super.exec.call(this, str);\n return result && (result.groups = buildGroups(result, this)), result;\n }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {\n if (\"string\" == typeof substitution) {\n var groups = _groups.get(this);\n return _super[Symbol.replace].call(this, str, substitution.replace(/\\$<([^>]+)>/g, function (_, name) {\n return \"$\" + groups[name];\n }));\n }\n if (\"function\" == typeof substitution) {\n var _this = this;\n return _super[Symbol.replace].call(this, str, function () {\n var args = arguments;\n return \"object\" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);\n });\n }\n return _super[Symbol.replace].call(this, str, substitution);\n }, _wrapRegExp.apply(this, arguments);\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nvar noop = function noop() {};\nvar _WINDOW = {};\nvar _DOCUMENT = {};\nvar _MUTATION_OBSERVER = null;\nvar _PERFORMANCE = {\n mark: noop,\n measure: noop\n};\ntry {\n if (typeof window !== 'undefined') _WINDOW = window;\n if (typeof document !== 'undefined') _DOCUMENT = document;\n if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;\n if (typeof performance !== 'undefined') _PERFORMANCE = performance;\n} catch (e) {}\nvar _ref = _WINDOW.navigator || {},\n _ref$userAgent = _ref.userAgent,\n userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;\nvar WINDOW = _WINDOW;\nvar DOCUMENT = _DOCUMENT;\nvar MUTATION_OBSERVER = _MUTATION_OBSERVER;\nvar PERFORMANCE = _PERFORMANCE;\nvar IS_BROWSER = !!WINDOW.document;\nvar IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';\nvar IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');\nvar NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';\nvar UNITS_IN_GRID = 16;\nvar DEFAULT_FAMILY_PREFIX = 'fa';\nvar DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';\nvar DATA_FA_I2SVG = 'data-fa-i2svg';\nvar DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';\nvar DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';\nvar DATA_PREFIX = 'data-prefix';\nvar DATA_ICON = 'data-icon';\nvar HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';\nvar MUTATION_APPROACH_ASYNC = 'async';\nvar TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];\nvar PRODUCTION = function () {\n try {\n return process.env.NODE_ENV === 'production';\n } catch (e) {\n return false;\n }\n}();\nvar PREFIX_TO_STYLE = {\n 'fas': 'solid',\n 'fa-solid': 'solid',\n 'far': 'regular',\n 'fa-regular': 'regular',\n 'fal': 'light',\n 'fa-light': 'light',\n 'fat': 'thin',\n 'fa-thin': 'thin',\n 'fad': 'duotone',\n 'fa-duotone': 'duotone',\n 'fab': 'brands',\n 'fa-brands': 'brands',\n 'fak': 'kit',\n 'fa-kit': 'kit',\n 'fa': 'solid'\n};\nvar STYLE_TO_PREFIX = {\n 'solid': 'fas',\n 'regular': 'far',\n 'light': 'fal',\n 'thin': 'fat',\n 'duotone': 'fad',\n 'brands': 'fab',\n 'kit': 'fak'\n};\nvar PREFIX_TO_LONG_STYLE = {\n 'fab': 'fa-brands',\n 'fad': 'fa-duotone',\n 'fak': 'fa-kit',\n 'fal': 'fa-light',\n 'far': 'fa-regular',\n 'fas': 'fa-solid',\n 'fat': 'fa-thin'\n};\nvar LONG_STYLE_TO_PREFIX = {\n 'fa-brands': 'fab',\n 'fa-duotone': 'fad',\n 'fa-kit': 'fak',\n 'fa-light': 'fal',\n 'fa-regular': 'far',\n 'fa-solid': 'fas',\n 'fa-thin': 'fat'\n};\nvar ICON_SELECTION_SYNTAX_PATTERN = /fa[srltdbk\\-\\ ]/; // eslint-disable-line no-useless-escape\n\nvar LAYERS_TEXT_CLASSNAME = 'fa-layers-text';\nvar FONT_FAMILY_PATTERN = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i; // TODO: do we need to handle font-weight for kit SVG pseudo-elements?\n\nvar FONT_WEIGHT_TO_PREFIX = {\n '900': 'fas',\n '400': 'far',\n 'normal': 'far',\n '300': 'fal',\n '100': 'fat'\n};\nvar oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);\nvar ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];\nvar DUOTONE_CLASSES = {\n GROUP: 'duotone-group',\n SWAP_OPACITY: 'swap-opacity',\n PRIMARY: 'primary',\n SECONDARY: 'secondary'\n};\nvar RESERVED_CLASSES = [].concat(_toConsumableArray(Object.keys(STYLE_TO_PREFIX)), ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', 'beat', 'border', 'fade', 'beat-fade', 'bounce', 'flip-both', 'flip-horizontal', 'flip-vertical', 'flip', 'fw', 'inverse', 'layers-counter', 'layers-text', 'layers', 'li', 'pull-left', 'pull-right', 'pulse', 'rotate-180', 'rotate-270', 'rotate-90', 'rotate-by', 'shake', 'spin-pulse', 'spin-reverse', 'spin', 'stack-1x', 'stack-2x', 'stack', 'ul', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY]).concat(oneToTen.map(function (n) {\n return \"\".concat(n, \"x\");\n})).concat(oneToTwenty.map(function (n) {\n return \"w-\".concat(n);\n}));\nvar initial = WINDOW.FontAwesomeConfig || {};\nfunction getAttrConfig(attr) {\n var element = DOCUMENT.querySelector('script[' + attr + ']');\n if (element) {\n return element.getAttribute(attr);\n }\n}\nfunction coerce(val) {\n // Getting an empty string will occur if the attribute is set on the HTML tag but without a value\n // We'll assume that this is an indication that it should be toggled to true\n // For example \n if (val === '') return true;\n if (val === 'false') return false;\n if (val === 'true') return true;\n return val;\n}\nif (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {\n var attrs = [['data-family-prefix', 'familyPrefix'], ['data-style-default', 'styleDefault'], ['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 var val = coerce(getAttrConfig(attr));\n if (val !== undefined && val !== null) {\n initial[key] = val;\n }\n });\n}\nvar _default = {\n familyPrefix: DEFAULT_FAMILY_PREFIX,\n styleDefault: 'solid',\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};\nvar _config = _objectSpread2(_objectSpread2({}, _default), initial);\nif (!_config.autoReplaceSvg) _config.observeMutations = false;\nvar config = {};\nObject.keys(_config).forEach(function (key) {\n Object.defineProperty(config, key, {\n enumerable: true,\n set: function set(val) {\n _config[key] = val;\n _onChangeCb.forEach(function (cb) {\n return cb(config);\n });\n },\n get: function get() {\n return _config[key];\n }\n });\n});\nWINDOW.FontAwesomeConfig = config;\nvar _onChangeCb = [];\nfunction onChange(cb) {\n _onChangeCb.push(cb);\n return function () {\n _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);\n };\n}\nvar d = UNITS_IN_GRID;\nvar meaninglessTransform = {\n size: 16,\n x: 0,\n y: 0,\n rotate: 0,\n flipX: false,\n flipY: false\n};\nfunction insertCss(css) {\n if (!css || !IS_DOM) {\n return;\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 for (var i = headChildren.length - 1; i > -1; i--) {\n var child = headChildren[i];\n var tagName = (child.tagName || '').toUpperCase();\n if (['STYLE', 'LINK'].indexOf(tagName) > -1) {\n beforeChild = child;\n }\n }\n DOCUMENT.head.insertBefore(style, beforeChild);\n return css;\n}\nvar idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\nfunction nextUniqueId() {\n var size = 12;\n var id = '';\n while (size-- > 0) {\n id += idPool[Math.random() * 62 | 0];\n }\n return id;\n}\nfunction toArray(obj) {\n var array = [];\n for (var i = (obj || []).length >>> 0; i--;) {\n array[i] = obj[i];\n }\n return array;\n}\nfunction 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}\nfunction htmlEscape(str) {\n return \"\".concat(str).replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(//g, '>');\n}\nfunction joinAttributes(attributes) {\n return Object.keys(attributes || {}).reduce(function (acc, attributeName) {\n return acc + \"\".concat(attributeName, \"=\\\"\").concat(htmlEscape(attributes[attributeName]), \"\\\" \");\n }, '').trim();\n}\nfunction joinStyles(styles) {\n return Object.keys(styles || {}).reduce(function (acc, styleName) {\n return acc + \"\".concat(styleName, \": \").concat(styles[styleName].trim(), \";\");\n }, '');\n}\nfunction 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}\nfunction 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}\nfunction 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 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 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}\nvar baseStyles = \":root, :host {\\n --fa-font-solid: normal 900 1em/1 \\\"Font Awesome 6 Solid\\\";\\n --fa-font-regular: normal 400 1em/1 \\\"Font Awesome 6 Regular\\\";\\n --fa-font-light: normal 300 1em/1 \\\"Font Awesome 6 Light\\\";\\n --fa-font-thin: normal 100 1em/1 \\\"Font Awesome 6 Thin\\\";\\n --fa-font-duotone: normal 900 1em/1 \\\"Font Awesome 6 Duotone\\\";\\n --fa-font-brands: normal 400 1em/1 \\\"Font Awesome 6 Brands\\\";\\n}\\n\\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\\n overflow: visible;\\n box-sizing: content-box;\\n}\\n\\n.svg-inline--fa {\\n display: var(--fa-display, inline-block);\\n height: 1em;\\n overflow: visible;\\n vertical-align: -0.125em;\\n}\\n.svg-inline--fa.fa-2xs {\\n vertical-align: 0.1em;\\n}\\n.svg-inline--fa.fa-xs {\\n vertical-align: 0em;\\n}\\n.svg-inline--fa.fa-sm {\\n vertical-align: -0.0714285705em;\\n}\\n.svg-inline--fa.fa-lg {\\n vertical-align: -0.2em;\\n}\\n.svg-inline--fa.fa-xl {\\n vertical-align: -0.25em;\\n}\\n.svg-inline--fa.fa-2xl {\\n vertical-align: -0.3125em;\\n}\\n.svg-inline--fa.fa-pull-left {\\n margin-right: var(--fa-pull-margin, 0.3em);\\n width: auto;\\n}\\n.svg-inline--fa.fa-pull-right {\\n margin-left: var(--fa-pull-margin, 0.3em);\\n width: auto;\\n}\\n.svg-inline--fa.fa-li {\\n width: var(--fa-li-width, 2em);\\n top: 0.25em;\\n}\\n.svg-inline--fa.fa-fw {\\n width: var(--fa-fw-width, 1.25em);\\n}\\n\\n.fa-layers svg.svg-inline--fa {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.fa-layers-counter, .fa-layers-text {\\n display: inline-block;\\n position: absolute;\\n text-align: center;\\n}\\n\\n.fa-layers {\\n display: inline-block;\\n height: 1em;\\n position: relative;\\n text-align: center;\\n vertical-align: -0.125em;\\n width: 1em;\\n}\\n.fa-layers svg.svg-inline--fa {\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-text {\\n left: 50%;\\n top: 50%;\\n -webkit-transform: translate(-50%, -50%);\\n transform: translate(-50%, -50%);\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter {\\n background-color: var(--fa-counter-background-color, #ff253a);\\n border-radius: var(--fa-counter-border-radius, 1em);\\n box-sizing: border-box;\\n color: var(--fa-inverse, #fff);\\n line-height: var(--fa-counter-line-height, 1);\\n max-width: var(--fa-counter-max-width, 5em);\\n min-width: var(--fa-counter-min-width, 1.5em);\\n overflow: hidden;\\n padding: var(--fa-counter-padding, 0.25em 0.5em);\\n right: var(--fa-right, 0);\\n text-overflow: ellipsis;\\n top: var(--fa-top, 0);\\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\\n transform: scale(var(--fa-counter-scale, 0.25));\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-bottom-right {\\n bottom: var(--fa-bottom, 0);\\n right: var(--fa-right, 0);\\n top: auto;\\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\\n transform: scale(var(--fa-layers-scale, 0.25));\\n -webkit-transform-origin: bottom right;\\n transform-origin: bottom right;\\n}\\n\\n.fa-layers-bottom-left {\\n bottom: var(--fa-bottom, 0);\\n left: var(--fa-left, 0);\\n right: auto;\\n top: auto;\\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\\n transform: scale(var(--fa-layers-scale, 0.25));\\n -webkit-transform-origin: bottom left;\\n transform-origin: bottom left;\\n}\\n\\n.fa-layers-top-right {\\n top: var(--fa-top, 0);\\n right: var(--fa-right, 0);\\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\\n transform: scale(var(--fa-layers-scale, 0.25));\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-top-left {\\n left: var(--fa-left, 0);\\n right: auto;\\n top: var(--fa-top, 0);\\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\\n transform: scale(var(--fa-layers-scale, 0.25));\\n -webkit-transform-origin: top left;\\n transform-origin: top left;\\n}\\n\\n.fa-1x {\\n font-size: 1em;\\n}\\n\\n.fa-2x {\\n font-size: 2em;\\n}\\n\\n.fa-3x {\\n font-size: 3em;\\n}\\n\\n.fa-4x {\\n font-size: 4em;\\n}\\n\\n.fa-5x {\\n font-size: 5em;\\n}\\n\\n.fa-6x {\\n font-size: 6em;\\n}\\n\\n.fa-7x {\\n font-size: 7em;\\n}\\n\\n.fa-8x {\\n font-size: 8em;\\n}\\n\\n.fa-9x {\\n font-size: 9em;\\n}\\n\\n.fa-10x {\\n font-size: 10em;\\n}\\n\\n.fa-2xs {\\n font-size: 0.625em;\\n line-height: 0.1em;\\n vertical-align: 0.225em;\\n}\\n\\n.fa-xs {\\n font-size: 0.75em;\\n line-height: 0.0833333337em;\\n vertical-align: 0.125em;\\n}\\n\\n.fa-sm {\\n font-size: 0.875em;\\n line-height: 0.0714285718em;\\n vertical-align: 0.0535714295em;\\n}\\n\\n.fa-lg {\\n font-size: 1.25em;\\n line-height: 0.05em;\\n vertical-align: -0.075em;\\n}\\n\\n.fa-xl {\\n font-size: 1.5em;\\n line-height: 0.0416666682em;\\n vertical-align: -0.125em;\\n}\\n\\n.fa-2xl {\\n font-size: 2em;\\n line-height: 0.03125em;\\n vertical-align: -0.1875em;\\n}\\n\\n.fa-fw {\\n text-align: center;\\n width: 1.25em;\\n}\\n\\n.fa-ul {\\n list-style-type: none;\\n margin-left: var(--fa-li-margin, 2.5em);\\n padding-left: 0;\\n}\\n.fa-ul > li {\\n position: relative;\\n}\\n\\n.fa-li {\\n left: calc(var(--fa-li-width, 2em) * -1);\\n position: absolute;\\n text-align: center;\\n width: var(--fa-li-width, 2em);\\n line-height: inherit;\\n}\\n\\n.fa-border {\\n border-color: var(--fa-border-color, #eee);\\n border-radius: var(--fa-border-radius, 0.1em);\\n border-style: var(--fa-border-style, solid);\\n border-width: var(--fa-border-width, 0.08em);\\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\\n}\\n\\n.fa-pull-left {\\n float: left;\\n margin-right: var(--fa-pull-margin, 0.3em);\\n}\\n\\n.fa-pull-right {\\n float: right;\\n margin-left: var(--fa-pull-margin, 0.3em);\\n}\\n\\n.fa-beat {\\n -webkit-animation-name: fa-beat;\\n animation-name: fa-beat;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-bounce {\\n -webkit-animation-name: fa-bounce;\\n animation-name: fa-bounce;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\\n}\\n\\n.fa-fade {\\n -webkit-animation-name: fa-fade;\\n animation-name: fa-fade;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\\n}\\n\\n.fa-beat-fade {\\n -webkit-animation-name: fa-beat-fade;\\n animation-name: fa-beat-fade;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\\n}\\n\\n.fa-flip {\\n -webkit-animation-name: fa-flip;\\n animation-name: fa-flip;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-shake {\\n -webkit-animation-name: fa-shake;\\n animation-name: fa-shake;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\\n animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-spin {\\n -webkit-animation-name: fa-spin;\\n animation-name: fa-spin;\\n -webkit-animation-delay: var(--fa-animation-delay, 0);\\n animation-delay: var(--fa-animation-delay, 0);\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\\n animation-duration: var(--fa-animation-duration, 2s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\\n animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-spin-reverse {\\n --fa-animation-direction: reverse;\\n}\\n\\n.fa-pulse,\\n.fa-spin-pulse {\\n -webkit-animation-name: fa-spin;\\n animation-name: fa-spin;\\n -webkit-animation-direction: var(--fa-animation-direction, normal);\\n animation-direction: var(--fa-animation-direction, normal);\\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\\n animation-duration: var(--fa-animation-duration, 1s);\\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\\n animation-timing-function: var(--fa-animation-timing, steps(8));\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n .fa-beat,\\n.fa-bounce,\\n.fa-fade,\\n.fa-beat-fade,\\n.fa-flip,\\n.fa-pulse,\\n.fa-shake,\\n.fa-spin,\\n.fa-spin-pulse {\\n -webkit-animation-delay: -1ms;\\n animation-delay: -1ms;\\n -webkit-animation-duration: 1ms;\\n animation-duration: 1ms;\\n -webkit-animation-iteration-count: 1;\\n animation-iteration-count: 1;\\n transition-delay: 0s;\\n transition-duration: 0s;\\n }\\n}\\n@-webkit-keyframes fa-beat {\\n 0%, 90% {\\n -webkit-transform: scale(1);\\n transform: scale(1);\\n }\\n 45% {\\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\\n transform: scale(var(--fa-beat-scale, 1.25));\\n }\\n}\\n@keyframes fa-beat {\\n 0%, 90% {\\n -webkit-transform: scale(1);\\n transform: scale(1);\\n }\\n 45% {\\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\\n transform: scale(var(--fa-beat-scale, 1.25));\\n }\\n}\\n@-webkit-keyframes fa-bounce {\\n 0% {\\n -webkit-transform: scale(1, 1) translateY(0);\\n transform: scale(1, 1) translateY(0);\\n }\\n 10% {\\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\\n }\\n 30% {\\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\\n }\\n 50% {\\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\\n }\\n 57% {\\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\\n }\\n 64% {\\n -webkit-transform: scale(1, 1) translateY(0);\\n transform: scale(1, 1) translateY(0);\\n }\\n 100% {\\n -webkit-transform: scale(1, 1) translateY(0);\\n transform: scale(1, 1) translateY(0);\\n }\\n}\\n@keyframes fa-bounce {\\n 0% {\\n -webkit-transform: scale(1, 1) translateY(0);\\n transform: scale(1, 1) translateY(0);\\n }\\n 10% {\\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\\n }\\n 30% {\\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\\n }\\n 50% {\\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\\n }\\n 57% {\\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\\n }\\n 64% {\\n -webkit-transform: scale(1, 1) translateY(0);\\n transform: scale(1, 1) translateY(0);\\n }\\n 100% {\\n -webkit-transform: scale(1, 1) translateY(0);\\n transform: scale(1, 1) translateY(0);\\n }\\n}\\n@-webkit-keyframes fa-fade {\\n 50% {\\n opacity: var(--fa-fade-opacity, 0.4);\\n }\\n}\\n@keyframes fa-fade {\\n 50% {\\n opacity: var(--fa-fade-opacity, 0.4);\\n }\\n}\\n@-webkit-keyframes fa-beat-fade {\\n 0%, 100% {\\n opacity: var(--fa-beat-fade-opacity, 0.4);\\n -webkit-transform: scale(1);\\n transform: scale(1);\\n }\\n 50% {\\n opacity: 1;\\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\\n transform: scale(var(--fa-beat-fade-scale, 1.125));\\n }\\n}\\n@keyframes fa-beat-fade {\\n 0%, 100% {\\n opacity: var(--fa-beat-fade-opacity, 0.4);\\n -webkit-transform: scale(1);\\n transform: scale(1);\\n }\\n 50% {\\n opacity: 1;\\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\\n transform: scale(var(--fa-beat-fade-scale, 1.125));\\n }\\n}\\n@-webkit-keyframes fa-flip {\\n 50% {\\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\\n }\\n}\\n@keyframes fa-flip {\\n 50% {\\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\\n }\\n}\\n@-webkit-keyframes fa-shake {\\n 0% {\\n -webkit-transform: rotate(-15deg);\\n transform: rotate(-15deg);\\n }\\n 4% {\\n -webkit-transform: rotate(15deg);\\n transform: rotate(15deg);\\n }\\n 8%, 24% {\\n -webkit-transform: rotate(-18deg);\\n transform: rotate(-18deg);\\n }\\n 12%, 28% {\\n -webkit-transform: rotate(18deg);\\n transform: rotate(18deg);\\n }\\n 16% {\\n -webkit-transform: rotate(-22deg);\\n transform: rotate(-22deg);\\n }\\n 20% {\\n -webkit-transform: rotate(22deg);\\n transform: rotate(22deg);\\n }\\n 32% {\\n -webkit-transform: rotate(-12deg);\\n transform: rotate(-12deg);\\n }\\n 36% {\\n -webkit-transform: rotate(12deg);\\n transform: rotate(12deg);\\n }\\n 40%, 100% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n}\\n@keyframes fa-shake {\\n 0% {\\n -webkit-transform: rotate(-15deg);\\n transform: rotate(-15deg);\\n }\\n 4% {\\n -webkit-transform: rotate(15deg);\\n transform: rotate(15deg);\\n }\\n 8%, 24% {\\n -webkit-transform: rotate(-18deg);\\n transform: rotate(-18deg);\\n }\\n 12%, 28% {\\n -webkit-transform: rotate(18deg);\\n transform: rotate(18deg);\\n }\\n 16% {\\n -webkit-transform: rotate(-22deg);\\n transform: rotate(-22deg);\\n }\\n 20% {\\n -webkit-transform: rotate(22deg);\\n transform: rotate(22deg);\\n }\\n 32% {\\n -webkit-transform: rotate(-12deg);\\n transform: rotate(-12deg);\\n }\\n 36% {\\n -webkit-transform: rotate(12deg);\\n transform: rotate(12deg);\\n }\\n 40%, 100% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n}\\n@-webkit-keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n@keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n.fa-rotate-90 {\\n -webkit-transform: rotate(90deg);\\n transform: rotate(90deg);\\n}\\n\\n.fa-rotate-180 {\\n -webkit-transform: rotate(180deg);\\n transform: rotate(180deg);\\n}\\n\\n.fa-rotate-270 {\\n -webkit-transform: rotate(270deg);\\n transform: rotate(270deg);\\n}\\n\\n.fa-flip-horizontal {\\n -webkit-transform: scale(-1, 1);\\n transform: scale(-1, 1);\\n}\\n\\n.fa-flip-vertical {\\n -webkit-transform: scale(1, -1);\\n transform: scale(1, -1);\\n}\\n\\n.fa-flip-both,\\n.fa-flip-horizontal.fa-flip-vertical {\\n -webkit-transform: scale(-1, -1);\\n transform: scale(-1, -1);\\n}\\n\\n.fa-rotate-by {\\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\\n transform: rotate(var(--fa-rotate-angle, none));\\n}\\n\\n.fa-stack {\\n display: inline-block;\\n vertical-align: middle;\\n height: 2em;\\n position: relative;\\n width: 2.5em;\\n}\\n\\n.fa-stack-1x,\\n.fa-stack-2x {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n z-index: var(--fa-stack-z-index, auto);\\n}\\n\\n.svg-inline--fa.fa-stack-1x {\\n height: 1em;\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-stack-2x {\\n height: 2em;\\n width: 2.5em;\\n}\\n\\n.fa-inverse {\\n color: var(--fa-inverse, #fff);\\n}\\n\\n.sr-only,\\n.fa-sr-only {\\n position: absolute;\\n width: 1px;\\n height: 1px;\\n padding: 0;\\n margin: -1px;\\n overflow: hidden;\\n clip: rect(0, 0, 0, 0);\\n white-space: nowrap;\\n border-width: 0;\\n}\\n\\n.sr-only-focusable:not(:focus),\\n.fa-sr-only-focusable:not(:focus) {\\n position: absolute;\\n width: 1px;\\n height: 1px;\\n padding: 0;\\n margin: -1px;\\n overflow: hidden;\\n clip: rect(0, 0, 0, 0);\\n white-space: nowrap;\\n border-width: 0;\\n}\\n\\n.svg-inline--fa .fa-primary {\\n fill: var(--fa-primary-color, currentColor);\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa .fa-secondary {\\n fill: var(--fa-secondary-color, currentColor);\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-primary {\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa mask .fa-primary,\\n.svg-inline--fa mask .fa-secondary {\\n fill: black;\\n}\\n\\n.fad.fa-inverse,\\n.fa-duotone.fa-inverse {\\n color: var(--fa-inverse, #fff);\\n}\";\nfunction 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 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 return s;\n}\nvar _cssInserted = false;\nfunction ensureCss() {\n if (config.autoAddCss && !_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n}\nvar InjectCSS = {\n mixout: function mixout() {\n return {\n dom: {\n css: css,\n insertCss: ensureCss\n }\n };\n },\n hooks: function hooks() {\n return {\n beforeDOMElementCreation: function beforeDOMElementCreation() {\n ensureCss();\n },\n beforeI2svg: function beforeI2svg() {\n ensureCss();\n }\n };\n }\n};\nvar w = WINDOW || {};\nif (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};\nif (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};\nif (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};\nif (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];\nvar namespace = w[NAMESPACE_IDENTIFIER];\nvar functions = [];\nvar listener = function listener() {\n DOCUMENT.removeEventListener('DOMContentLoaded', listener);\n loaded = 1;\n functions.map(function (fn) {\n return fn();\n });\n};\nvar loaded = false;\nif (IS_DOM) {\n loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);\n if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);\n}\nfunction domready(fn) {\n if (!IS_DOM) return;\n loaded ? setTimeout(fn, 0) : functions.push(fn);\n}\nfunction 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 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}\nfunction 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/**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */\n\nvar 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/**\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\nvar 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 if (initialValue === undefined) {\n i = 1;\n result = subject[keys[0]];\n } else {\n i = 0;\n result = initialValue;\n }\n for (; i < length; i++) {\n key = keys[i];\n result = iterator(result, subject[key], key, subject);\n }\n return result;\n};\n\n/**\n * ucs2decode() and codePointAt() are both works of Mathias Bynens and licensed under MIT\n *\n * Copyright Mathias Bynens \n\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nfunction ucs2decode(string) {\n var output = [];\n var counter = 0;\n var length = string.length;\n while (counter < length) {\n var value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n var extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) {\n // eslint-disable-line eqeqeq\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n}\nfunction toHex(unicode) {\n var decoded = ucs2decode(unicode);\n return decoded.length === 1 ? decoded[0].toString(16) : null;\n}\nfunction codePointAt(string, index) {\n var size = string.length;\n var first = string.charCodeAt(index);\n var second;\n if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {\n second = string.charCodeAt(index + 1);\n if (second >= 0xDC00 && second <= 0xDFFF) {\n return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;\n }\n }\n return first;\n}\nfunction normalizeIcons(icons) {\n return Object.keys(icons).reduce(function (acc, iconName) {\n var icon = icons[iconName];\n var expanded = !!icon.icon;\n if (expanded) {\n acc[icon.iconName] = icon.icon;\n } else {\n acc[iconName] = icon;\n }\n return acc;\n }, {});\n}\nfunction 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 = normalizeIcons(icons);\n if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {\n namespace.hooks.addPack(prefix, normalizeIcons(icons));\n } else {\n namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, 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 ease the upgrade process for our users by automatically defining\n * this as well.\n */\n\n if (prefix === 'fas') {\n defineIcons('fa', icons);\n }\n}\nvar duotonePathRe = [/*#__PURE__*/_wrapRegExp(/path d=\"((?:(?!\")[\\s\\S])+)\".*path d=\"((?:(?!\")[\\s\\S])+)\"/, {\n d1: 1,\n d2: 2\n}), /*#__PURE__*/_wrapRegExp(/path class=\"((?:(?!\")[\\s\\S])+)\".*d=\"((?:(?!\")[\\s\\S])+)\".*path class=\"((?:(?!\")[\\s\\S])+)\".*d=\"((?:(?!\")[\\s\\S])+)\"/, {\n cls1: 1,\n d1: 2,\n cls2: 3,\n d2: 4\n}), /*#__PURE__*/_wrapRegExp(/path class=\"((?:(?!\")[\\s\\S])+)\".*d=\"((?:(?!\")[\\s\\S])+)\"/, {\n cls1: 1,\n d1: 2\n})];\nvar styles = namespace.styles,\n shims = namespace.shims;\nvar LONG_STYLE = Object.values(PREFIX_TO_LONG_STYLE);\nvar _defaultUsablePrefix = null;\nvar _byUnicode = {};\nvar _byLigature = {};\nvar _byOldName = {};\nvar _byOldUnicode = {};\nvar _byAlias = {};\nvar PREFIXES = Object.keys(PREFIX_TO_STYLE);\nfunction isReserved(name) {\n return ~RESERVED_CLASSES.indexOf(name);\n}\nfunction getIconName(familyPrefix, cls) {\n var parts = cls.split('-');\n var prefix = parts[0];\n var iconName = parts.slice(1).join('-');\n if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {\n return iconName;\n } else {\n return null;\n }\n}\nvar 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 _byUnicode = lookup(function (acc, icon, iconName) {\n if (icon[3]) {\n acc[icon[3]] = iconName;\n }\n if (icon[2]) {\n var aliases = icon[2].filter(function (a) {\n return typeof a === 'number';\n });\n aliases.forEach(function (alias) {\n acc[alias.toString(16)] = iconName;\n });\n }\n return acc;\n });\n _byLigature = lookup(function (acc, icon, iconName) {\n acc[iconName] = iconName;\n if (icon[2]) {\n var aliases = icon[2].filter(function (a) {\n return typeof a === 'string';\n });\n aliases.forEach(function (alias) {\n acc[alias] = iconName;\n });\n }\n return acc;\n });\n _byAlias = lookup(function (acc, icon, iconName) {\n var aliases = icon[2];\n acc[iconName] = iconName;\n aliases.forEach(function (alias) {\n acc[alias] = iconName;\n });\n return acc;\n }); // If we have a Kit, we can't determine if regular is available since we\n // could be auto-fetching it. We'll have to assume that it is available.\n\n var hasRegular = 'far' in styles || config.autoFetchSvg;\n var shimLookups = reduce(shims, function (acc, shim) {\n var maybeNameMaybeUnicode = shim[0];\n var prefix = shim[1];\n var iconName = shim[2];\n if (prefix === 'far' && !hasRegular) {\n prefix = 'fas';\n }\n if (typeof maybeNameMaybeUnicode === 'string') {\n acc.names[maybeNameMaybeUnicode] = {\n prefix: prefix,\n iconName: iconName\n };\n }\n if (typeof maybeNameMaybeUnicode === 'number') {\n acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {\n prefix: prefix,\n iconName: iconName\n };\n }\n return acc;\n }, {\n names: {},\n unicodes: {}\n });\n _byOldName = shimLookups.names;\n _byOldUnicode = shimLookups.unicodes;\n _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault);\n};\nonChange(function (c) {\n _defaultUsablePrefix = getCanonicalPrefix(c.styleDefault);\n});\nbuild();\nfunction byUnicode(prefix, unicode) {\n return (_byUnicode[prefix] || {})[unicode];\n}\nfunction byLigature(prefix, ligature) {\n return (_byLigature[prefix] || {})[ligature];\n}\nfunction byAlias(prefix, alias) {\n return (_byAlias[prefix] || {})[alias];\n}\nfunction byOldName(name) {\n return _byOldName[name] || {\n prefix: null,\n iconName: null\n };\n}\nfunction byOldUnicode(unicode) {\n var oldUnicode = _byOldUnicode[unicode];\n var newUnicode = byUnicode('fas', unicode);\n return oldUnicode || (newUnicode ? {\n prefix: 'fas',\n iconName: newUnicode\n } : null) || {\n prefix: null,\n iconName: null\n };\n}\nfunction getDefaultUsablePrefix() {\n return _defaultUsablePrefix;\n}\nvar emptyCanonicalIcon = function emptyCanonicalIcon() {\n return {\n prefix: null,\n iconName: null,\n rest: []\n };\n};\nfunction getCanonicalPrefix(styleOrPrefix) {\n var style = PREFIX_TO_STYLE[styleOrPrefix];\n var prefix = STYLE_TO_PREFIX[styleOrPrefix] || STYLE_TO_PREFIX[style];\n var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;\n return prefix || defined || null;\n}\nfunction getCanonicalIcon(values) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$skipLookups = params.skipLookups,\n skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;\n var givenPrefix = null;\n var canonical = values.reduce(function (acc, cls) {\n var iconName = getIconName(config.familyPrefix, cls);\n if (styles[cls]) {\n cls = LONG_STYLE.includes(cls) ? LONG_STYLE_TO_PREFIX[cls] : cls;\n givenPrefix = cls;\n acc.prefix = cls;\n } else if (PREFIXES.indexOf(cls) > -1) {\n givenPrefix = cls;\n acc.prefix = getCanonicalPrefix(cls);\n } else if (iconName) {\n acc.iconName = iconName;\n } else if (cls !== config.replacementClass) {\n acc.rest.push(cls);\n }\n if (!skipLookups && acc.prefix && acc.iconName) {\n var shim = givenPrefix === 'fa' ? byOldName(acc.iconName) : {};\n var aliasIconName = byAlias(acc.prefix, acc.iconName);\n if (shim.prefix) {\n givenPrefix = null;\n }\n acc.iconName = shim.iconName || aliasIconName || acc.iconName;\n acc.prefix = shim.prefix || acc.prefix;\n if (acc.prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {\n // Allow a fallback from the regular style to solid if regular is not available\n // but only if we aren't auto-fetching SVGs\n acc.prefix = 'fas';\n }\n }\n return acc;\n }, emptyCanonicalIcon());\n if (canonical.prefix === 'fa' || givenPrefix === 'fa') {\n // The fa prefix is not canonical. So if it has made it through until this point\n // we will shift it to the correct prefix.\n canonical.prefix = getDefaultUsablePrefix() || 'fas';\n }\n return canonical;\n}\nvar Library = /*#__PURE__*/function () {\n function Library() {\n _classCallCheck(this, Library);\n this.definitions = {};\n }\n _createClass(Library, [{\n key: \"add\",\n value: function add() {\n var _this = this;\n for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {\n definitions[_key] = arguments[_key];\n }\n var additions = definitions.reduce(this._pullDefinitions, {});\n Object.keys(additions).forEach(function (key) {\n _this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);\n defineIcons(key, additions[key]);\n var longPrefix = PREFIX_TO_LONG_STYLE[key];\n if (longPrefix) defineIcons(longPrefix, 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 var aliases = icon[2];\n if (!additions[prefix]) additions[prefix] = {};\n if (aliases.length > 0) {\n aliases.forEach(function (alias) {\n if (typeof alias === 'string') {\n additions[prefix][alias] = icon;\n }\n });\n }\n additions[prefix][iconName] = icon;\n });\n return additions;\n }\n }]);\n return Library;\n}();\nvar _plugins = [];\nvar _hooks = {};\nvar providers = {};\nvar defaultProviderKeys = Object.keys(providers);\nfunction registerPlugins(nextPlugins, _ref) {\n var obj = _ref.mixoutsTo;\n _plugins = nextPlugins;\n _hooks = {};\n Object.keys(providers).forEach(function (k) {\n if (defaultProviderKeys.indexOf(k) === -1) {\n delete providers[k];\n }\n });\n _plugins.forEach(function (plugin) {\n var mixout = plugin.mixout ? plugin.mixout() : {};\n Object.keys(mixout).forEach(function (tk) {\n if (typeof mixout[tk] === 'function') {\n obj[tk] = mixout[tk];\n }\n if (_typeof(mixout[tk]) === 'object') {\n Object.keys(mixout[tk]).forEach(function (sk) {\n if (!obj[tk]) {\n obj[tk] = {};\n }\n obj[tk][sk] = mixout[tk][sk];\n });\n }\n });\n if (plugin.hooks) {\n var hooks = plugin.hooks();\n Object.keys(hooks).forEach(function (hook) {\n if (!_hooks[hook]) {\n _hooks[hook] = [];\n }\n _hooks[hook].push(hooks[hook]);\n });\n }\n if (plugin.provides) {\n plugin.provides(providers);\n }\n });\n return obj;\n}\nfunction chainHooks(hook, accumulator) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n var hookFns = _hooks[hook] || [];\n hookFns.forEach(function (hookFn) {\n accumulator = hookFn.apply(null, [accumulator].concat(args)); // eslint-disable-line no-useless-call\n });\n\n return accumulator;\n}\nfunction callHooks(hook) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n var hookFns = _hooks[hook] || [];\n hookFns.forEach(function (hookFn) {\n hookFn.apply(null, args);\n });\n return undefined;\n}\nfunction callProvided() {\n var hook = arguments[0];\n var args = Array.prototype.slice.call(arguments, 1);\n return providers[hook] ? providers[hook].apply(null, args) : undefined;\n}\nfunction findIconDefinition(iconLookup) {\n if (iconLookup.prefix === 'fa') {\n iconLookup.prefix = 'fas';\n }\n var iconName = iconLookup.iconName;\n var prefix = iconLookup.prefix || getDefaultUsablePrefix();\n if (!iconName) return;\n iconName = byAlias(prefix, iconName) || iconName;\n return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);\n}\nvar library = new Library();\nvar noAuto = function noAuto() {\n config.autoReplaceSvg = false;\n config.observeMutations = false;\n callHooks('noAuto');\n};\nvar dom = {\n i2svg: function i2svg() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (IS_DOM) {\n callHooks('beforeI2svg', params);\n callProvided('pseudoElements2svg', params);\n return callProvided('i2svg', params);\n } else {\n return Promise.reject('Operation requires a DOM of some kind.');\n }\n },\n watch: function watch() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var autoReplaceSvgRoot = params.autoReplaceSvgRoot;\n if (config.autoReplaceSvg === false) {\n config.autoReplaceSvg = true;\n }\n config.observeMutations = true;\n domready(function () {\n autoReplace({\n autoReplaceSvgRoot: autoReplaceSvgRoot\n });\n callHooks('watch', params);\n });\n }\n};\nvar parse = {\n icon: function icon(_icon) {\n if (_icon === null) {\n return null;\n }\n if (_typeof(_icon) === 'object' && _icon.prefix && _icon.iconName) {\n return {\n prefix: _icon.prefix,\n iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName\n };\n }\n if (Array.isArray(_icon) && _icon.length === 2) {\n var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];\n var prefix = getCanonicalPrefix(_icon[0]);\n return {\n prefix: prefix,\n iconName: byAlias(prefix, iconName) || iconName\n };\n }\n if (typeof _icon === 'string' && (_icon.indexOf(\"\".concat(config.familyPrefix, \"-\")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {\n var canonicalIcon = getCanonicalIcon(_icon.split(' '), {\n skipLookups: true\n });\n return {\n prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),\n iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName\n };\n }\n if (typeof _icon === 'string') {\n var _prefix = getDefaultUsablePrefix();\n return {\n prefix: _prefix,\n iconName: byAlias(_prefix, _icon) || _icon\n };\n }\n }\n};\nvar api = {\n noAuto: noAuto,\n config: config,\n dom: dom,\n parse: parse,\n library: library,\n findIconDefinition: findIconDefinition,\n toHtml: toHtml\n};\nvar 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};\nfunction domVariants(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}\nfunction 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 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(_objectSpread2(_objectSpread2({}, styles), {}, {\n 'transform-origin': \"\".concat(offset.x + transform.x / 16, \"em \").concat(offset.y + transform.y / 16, \"em\")\n }));\n }\n return [{\n tag: 'svg',\n attributes: attributes,\n children: children\n }];\n}\nfunction 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: _objectSpread2(_objectSpread2({}, attributes), {}, {\n id: id\n }),\n children: children\n }]\n }];\n}\nfunction 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 var _ref = mask.found ? mask : main,\n width = _ref.width,\n height = _ref.height;\n var isUploadedIcon = prefix === 'fak';\n var attrClass = [config.replacementClass, iconName ? \"\".concat(config.familyPrefix, \"-\").concat(iconName) : ''].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: _objectSpread2(_objectSpread2({}, 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 if (watchable) {\n content.attributes[DATA_FA_I2SVG] = '';\n }\n if (title) {\n content.children.push({\n tag: 'title',\n attributes: {\n id: content.attributes['aria-labelledby'] || \"title-\".concat(titleId || nextUniqueId())\n },\n children: [title]\n });\n delete content.attributes.title;\n }\n var args = _objectSpread2(_objectSpread2({}, content), {}, {\n prefix: prefix,\n iconName: iconName,\n main: main,\n mask: mask,\n maskId: maskId,\n transform: transform,\n symbol: symbol,\n styles: _objectSpread2(_objectSpread2({}, uploadedIconWidthStyle), extra.styles)\n });\n var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {\n children: [],\n attributes: {}\n } : callProvided('generateAbstractIcon', args) || {\n children: [],\n attributes: {}\n },\n children = _ref2.children,\n attributes = _ref2.attributes;\n args.children = children;\n args.attributes = attributes;\n if (symbol) {\n return asSymbol(args);\n } else {\n return asIcon(args);\n }\n}\nfunction 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 var attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {\n 'title': title\n } : {}), {}, {\n 'class': extra.classes.join(' ')\n });\n if (watchable) {\n attributes[DATA_FA_I2SVG] = '';\n }\n var styles = _objectSpread2({}, extra.styles);\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 var styleString = joinStyles(styles);\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n return val;\n}\nfunction makeLayersCounterAbstract(params) {\n var content = params.content,\n title = params.title,\n extra = params.extra;\n var attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {\n 'title': title\n } : {}), {}, {\n 'class': extra.classes.join(' ')\n });\n var styleString = joinStyles(extra.styles);\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n return val;\n}\nvar styles$1 = namespace.styles;\nfunction asFoundIcon(icon) {\n var width = icon[0];\n var height = icon[1];\n var _icon$slice = icon.slice(4),\n _icon$slice2 = _slicedToArray(_icon$slice, 1),\n vectorData = _icon$slice2[0];\n var element = null;\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 return {\n found: true,\n width: width,\n height: height,\n icon: element\n };\n}\nvar missingIconResolutionMixin = {\n found: false,\n width: 512,\n height: 512\n};\nfunction maybeNotifyMissing(iconName, prefix) {\n if (!PRODUCTION && !config.showMissingIcons && iconName) {\n console.error(\"Icon with name \\\"\".concat(iconName, \"\\\" and prefix \\\"\").concat(prefix, \"\\\" is missing.\"));\n }\n}\nfunction findIcon(iconName, prefix) {\n var givenPrefix = prefix;\n if (prefix === 'fa' && config.styleDefault !== null) {\n prefix = getDefaultUsablePrefix();\n }\n return new Promise(function (resolve, reject) {\n var val = {\n found: false,\n width: 512,\n height: 512,\n icon: callProvided('missingIconAbstract') || {}\n };\n if (givenPrefix === 'fa') {\n var shim = byOldName(iconName) || {};\n iconName = shim.iconName || iconName;\n prefix = shim.prefix || prefix;\n }\n if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {\n var icon = styles$1[prefix][iconName];\n return resolve(asFoundIcon(icon));\n }\n maybeNotifyMissing(iconName, prefix);\n resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {\n icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}\n }));\n });\n}\nvar noop$1 = function noop() {};\nvar p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {\n mark: noop$1,\n measure: noop$1\n};\nvar preamble = \"FA \\\"6.0.0\\\"\";\nvar begin = function begin(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" begins\"));\n return function () {\n return end(name);\n };\n};\nvar 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};\nvar perf = {\n begin: begin,\n end: end\n};\nvar noop$2 = function noop() {};\nfunction isWatched(node) {\n var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;\n return typeof i2svg === 'string';\n}\nfunction hasPrefixAndIcon(node) {\n var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;\n var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;\n return prefix && icon;\n}\nfunction hasBeenReplaced(node) {\n return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);\n}\nfunction getMutator() {\n if (config.autoReplaceSvg === true) {\n return mutators.replace;\n }\n var mutator = mutators[config.autoReplaceSvg];\n return mutator || mutators.replace;\n}\nfunction createElementNS(tag) {\n return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);\n}\nfunction createElement(tag) {\n return DOCUMENT.createElement(tag);\n}\nfunction convertSVG(abstractObj) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$ceFn = params.ceFn,\n ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;\n if (typeof abstractObj === 'string') {\n return DOCUMENT.createTextNode(abstractObj);\n }\n var tag = ceFn(abstractObj.tag);\n Object.keys(abstractObj.attributes || []).forEach(function (key) {\n tag.setAttribute(key, abstractObj.attributes[key]);\n });\n var children = abstractObj.children || [];\n children.forEach(function (child) {\n tag.appendChild(convertSVG(child, {\n ceFn: ceFn\n }));\n });\n return tag;\n}\nfunction nodeAsComment(node) {\n var comment = \" \".concat(node.outerHTML, \" \");\n /* BEGIN.ATTRIBUTION */\n\n comment = \"\".concat(comment, \"Font Awesome fontawesome.com \");\n /* END.ATTRIBUTION */\n\n return comment;\n}\nvar mutators = {\n replace: function replace(mutation) {\n var node = mutation[0];\n if (node.parentNode) {\n mutation[1].forEach(function (abstract) {\n node.parentNode.insertBefore(convertSVG(abstract), node);\n });\n if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {\n var comment = DOCUMENT.createComment(nodeAsComment(node));\n node.parentNode.replaceChild(comment, node);\n } else {\n node.remove();\n }\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 var forSvg = new RegExp(\"\".concat(config.familyPrefix, \"-.*\"));\n delete abstract[0].attributes.id;\n if (abstract[0].attributes.class) {\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 return acc;\n }, {\n toNode: [],\n toSvg: []\n });\n abstract[0].attributes.class = splitClasses.toSvg.join(' ');\n if (splitClasses.toNode.length === 0) {\n node.removeAttribute('class');\n } else {\n node.setAttribute('class', splitClasses.toNode.join(' '));\n }\n }\n var newInnerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.setAttribute(DATA_FA_I2SVG, '');\n node.innerHTML = newInnerHTML;\n }\n};\nfunction performOperationSync(op) {\n op();\n}\nfunction perform(mutations, callback) {\n var callbackFunction = typeof callback === 'function' ? callback : noop$2;\n if (mutations.length === 0) {\n callbackFunction();\n } else {\n var frame = performOperationSync;\n if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {\n frame = WINDOW.requestAnimationFrame || performOperationSync;\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}\nvar disabled = false;\nfunction disableObservation() {\n disabled = true;\n}\nfunction enableObservation() {\n disabled = false;\n}\nvar mo = null;\nfunction observe(options) {\n if (!MUTATION_OBSERVER) {\n return;\n }\n if (!config.observeMutations) {\n return;\n }\n var _options$treeCallback = options.treeCallback,\n treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,\n _options$nodeCallback = options.nodeCallback,\n nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,\n _options$pseudoElemen = options.pseudoElementsCallback,\n pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,\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 var defaultPrefix = getDefaultUsablePrefix();\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 treeCallback(mutationRecord.target);\n }\n if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target.parentNode);\n }\n if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {\n if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {\n var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),\n prefix = _getCanonicalIcon.prefix,\n iconName = _getCanonicalIcon.iconName;\n mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);\n if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);\n } else if (hasBeenReplaced(mutationRecord.target)) {\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}\nfunction disconnect() {\n if (!mo) return;\n mo.disconnect();\n}\nfunction styleParser(node) {\n var style = node.getAttribute('style');\n var val = [];\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 if (prop && value.length > 0) {\n acc[prop] = value.join(':').trim();\n }\n return acc;\n }, {});\n }\n return val;\n}\nfunction 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 if (!val.prefix) {\n val.prefix = getDefaultUsablePrefix();\n }\n if (existingPrefix && existingIconName) {\n val.prefix = existingPrefix;\n val.iconName = existingIconName;\n }\n if (val.iconName && val.prefix) {\n return val;\n }\n if (val.prefix && innerText.length > 0) {\n val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));\n }\n return val;\n}\nfunction 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 return acc;\n }, {});\n var title = node.getAttribute('title');\n var titleId = node.getAttribute('data-fa-title-id');\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 return extraAttributes;\n}\nfunction blankMeta() {\n return {\n iconName: null,\n title: null,\n titleId: null,\n prefix: null,\n transform: meaninglessTransform,\n symbol: false,\n mask: {\n iconName: null,\n prefix: null,\n rest: []\n },\n maskId: null,\n extra: {\n classes: [],\n styles: {},\n attributes: {}\n }\n };\n}\nfunction parseMeta(node) {\n var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n styleParser: true\n };\n var _classParser = classParser(node),\n iconName = _classParser.iconName,\n prefix = _classParser.prefix,\n extraClasses = _classParser.rest;\n var extraAttributes = attributesParser(node);\n var pluginMeta = chainHooks('parseNodeAttributes', {}, node);\n var extraStyles = parser.styleParser ? styleParser(node) : [];\n return _objectSpread2({\n iconName: iconName,\n title: node.getAttribute('title'),\n titleId: node.getAttribute('data-fa-title-id'),\n prefix: prefix,\n transform: meaninglessTransform,\n mask: {\n iconName: null,\n prefix: null,\n rest: []\n },\n maskId: null,\n symbol: false,\n extra: {\n classes: extraClasses,\n styles: extraStyles,\n attributes: extraAttributes\n }\n }, pluginMeta);\n}\nvar styles$2 = namespace.styles;\nfunction generateMutation(node) {\n var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {\n styleParser: false\n }) : parseMeta(node);\n if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {\n return callProvided('generateLayersText', node, nodeMeta);\n } else {\n return callProvided('generateSvgReplacementMutation', node, nodeMeta);\n }\n}\nfunction onTree(root) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n if (!IS_DOM) return Promise.resolve();\n var htmlClassList = DOCUMENT.documentElement.classList;\n var hclAdd = function hclAdd(suffix) {\n return htmlClassList.add(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n var hclRemove = function hclRemove(suffix) {\n return htmlClassList.remove(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$2);\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 if (prefixesDomQuery.length === 0) {\n return Promise.resolve();\n }\n var candidates = [];\n try {\n candidates = toArray(root.querySelectorAll(prefixesDomQuery));\n } catch (e) {// noop\n }\n if (candidates.length > 0) {\n hclAdd('pending');\n hclRemove('complete');\n } else {\n return Promise.resolve();\n }\n var mark = perf.begin('onTree');\n var mutations = candidates.reduce(function (acc, node) {\n try {\n var mutation = generateMutation(node);\n if (mutation) {\n acc.push(mutation);\n }\n } catch (e) {\n if (!PRODUCTION) {\n if (e.name === 'MissingIcon') {\n console.error(e);\n }\n }\n }\n return acc;\n }, []);\n return new Promise(function (resolve, reject) {\n Promise.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 (e) {\n mark();\n reject(e);\n });\n });\n}\nfunction 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}\nfunction 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 if (mask) {\n mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});\n }\n return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {\n mask: mask\n }));\n };\n}\nvar render = function render(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 domVariants(_objectSpread2({\n type: 'icon'\n }, iconDefinition), function () {\n callHooks('beforeDOMElementCreation', {\n iconDefinition: iconDefinition,\n params: params\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 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: _objectSpread2(_objectSpread2({}, 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};\nvar ReplaceElements = {\n mixout: function mixout() {\n return {\n icon: resolveIcons(render)\n };\n },\n hooks: function hooks() {\n return {\n mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {\n accumulator.treeCallback = onTree;\n accumulator.nodeCallback = onNode;\n return accumulator;\n }\n };\n },\n provides: function provides(providers$$1) {\n providers$$1.i2svg = function (params) {\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 return onTree(node, callback);\n };\n providers$$1.generateSvgReplacementMutation = function (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 Promise(function (resolve, reject) {\n Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({\n found: false,\n width: 512,\n height: 512,\n icon: {}\n })]).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n main = _ref2[0],\n mask = _ref2[1];\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 maskId: maskId,\n title: title,\n titleId: titleId,\n extra: extra,\n watchable: true\n })]);\n }).catch(reject);\n });\n };\n providers$$1.generateAbstractIcon = function (_ref3) {\n var children = _ref3.children,\n attributes = _ref3.attributes,\n main = _ref3.main,\n transform = _ref3.transform,\n styles = _ref3.styles;\n var styleString = joinStyles(styles);\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n var nextChild;\n if (transformIsMeaningful(transform)) {\n nextChild = callProvided('generateAbstractTransformGrouping', {\n main: main,\n transform: transform,\n containerWidth: main.width,\n iconWidth: main.width\n });\n }\n children.push(nextChild || main.icon);\n return {\n children: children,\n attributes: attributes\n };\n };\n }\n};\nvar Layers = {\n mixout: function mixout() {\n return {\n layer: function layer(assembler) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$classes = params.classes,\n classes = _params$classes === void 0 ? [] : _params$classes;\n return domVariants({\n type: 'layer'\n }, function () {\n callHooks('beforeDOMElementCreation', {\n assembler: assembler,\n params: params\n });\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 }\n};\nvar LayersCounter = {\n mixout: function mixout() {\n return {\n counter: function counter(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$title = params.title,\n title = _params$title === void 0 ? null : _params$title,\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 return domVariants({\n type: 'counter',\n content: content\n }, function () {\n callHooks('beforeDOMElementCreation', {\n content: content,\n params: params\n });\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 }\n};\nvar LayersText = {\n mixout: function mixout() {\n return {\n text: function text(content) {\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$title = params.title,\n title = _params$title === void 0 ? null : _params$title,\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 return domVariants({\n type: 'text',\n content: content\n }, function () {\n callHooks('beforeDOMElementCreation', {\n content: content,\n params: params\n });\n return makeLayersTextAbstract({\n content: content,\n transform: _objectSpread2(_objectSpread2({}, 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 },\n provides: function provides(providers$$1) {\n providers$$1.generateLayersText = function (node, nodeMeta) {\n var title = nodeMeta.title,\n transform = nodeMeta.transform,\n extra = nodeMeta.extra;\n var width = null;\n var height = null;\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 if (config.autoA11y && !title) {\n extra.attributes['aria-hidden'] = 'true';\n }\n return Promise.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};\nvar CLEAN_CONTENT_PATTERN = new RegExp(\"\\\"\", 'ug');\nvar SECONDARY_UNICODE_RANGE = [1105920, 1112319];\nfunction hexValueFromContent(content) {\n var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');\n var codePoint = codePointAt(cleaned, 0);\n var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];\n var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;\n return {\n value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),\n isSecondary: isPrependTen || isDoubled\n };\n}\nfunction replaceForPosition(node, position) {\n var pendingAttribute = \"\".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));\n return new Promise(function (resolve, reject) {\n if (node.getAttribute(pendingAttribute) !== null) {\n // This node is already being processed\n return resolve();\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 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 var prefix = ~['Solid', 'Regular', 'Light', 'Thin', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];\n var _hexValueFromContent = hexValueFromContent(_content),\n hexValue = _hexValueFromContent.value,\n isSecondary = _hexValueFromContent.isSecondary;\n var isV4 = fontFamily[0].startsWith('FontAwesome');\n var iconName = byUnicode(prefix, hexValue);\n var iconIdentifier = iconName;\n if (isV4) {\n var iconName4 = byOldUnicode(hexValue);\n if (iconName4.iconName && iconName4.prefix) {\n iconName = iconName4.iconName;\n prefix = iconName4.prefix;\n }\n } // 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 && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {\n node.setAttribute(pendingAttribute, iconIdentifier);\n if (alreadyProcessedPseudoElement) {\n // Delete the old one, since we're replacing it with a new one\n node.removeChild(alreadyProcessedPseudoElement);\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(_objectSpread2(_objectSpread2({}, 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 if (position === '::before') {\n node.insertBefore(element, node.firstChild);\n } else {\n node.appendChild(element);\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}\nfunction replace(node) {\n return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);\n}\nfunction 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}\nfunction searchPseudoElements(root) {\n if (!IS_DOM) return;\n return new Promise(function (resolve, reject) {\n var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);\n var end = perf.begin('searchPseudoElements');\n disableObservation();\n Promise.all(operations).then(function () {\n end();\n enableObservation();\n resolve();\n }).catch(function () {\n end();\n enableObservation();\n reject();\n });\n });\n}\nvar PseudoElements = {\n hooks: function hooks() {\n return {\n mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {\n accumulator.pseudoElementsCallback = searchPseudoElements;\n return accumulator;\n }\n };\n },\n provides: function provides(providers$$1) {\n providers$$1.pseudoElements2svg = function (params) {\n var _params$node = params.node,\n node = _params$node === void 0 ? DOCUMENT : _params$node;\n if (config.searchPseudoElements) {\n searchPseudoElements(node);\n }\n };\n }\n};\nvar _unwatched = false;\nvar MutationObserver$1 = {\n mixout: function mixout() {\n return {\n dom: {\n unwatch: function unwatch() {\n disableObservation();\n _unwatched = true;\n }\n }\n };\n },\n hooks: function hooks() {\n return {\n bootstrap: function bootstrap() {\n observe(chainHooks('mutationObserverCallbacks', {}));\n },\n noAuto: function noAuto() {\n disconnect();\n },\n watch: function watch(params) {\n var observeMutationsRoot = params.observeMutationsRoot;\n if (_unwatched) {\n enableObservation();\n } else {\n observe(chainHooks('mutationObserverCallbacks', {\n observeMutationsRoot: observeMutationsRoot\n }));\n }\n }\n };\n }\n};\nvar 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 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 if (first && rest === 'h') {\n acc.flipX = true;\n return acc;\n }\n if (first && rest === 'v') {\n acc.flipY = true;\n return acc;\n }\n rest = parseFloat(rest);\n if (isNaN(rest)) {\n return acc;\n }\n switch (first) {\n case 'grow':\n acc.size = acc.size + rest;\n break;\n case 'shrink':\n acc.size = acc.size - rest;\n break;\n case 'left':\n acc.x = acc.x - rest;\n break;\n case 'right':\n acc.x = acc.x + rest;\n break;\n case 'up':\n acc.y = acc.y - rest;\n break;\n case 'down':\n acc.y = acc.y + rest;\n break;\n case 'rotate':\n acc.rotate = acc.rotate + rest;\n break;\n }\n return acc;\n }, transform);\n};\nvar PowerTransforms = {\n mixout: function mixout() {\n return {\n parse: {\n transform: function transform(transformString) {\n return parseTransformString(transformString);\n }\n }\n };\n },\n hooks: function hooks() {\n return {\n parseNodeAttributes: function parseNodeAttributes(accumulator, node) {\n var transformString = node.getAttribute('data-fa-transform');\n if (transformString) {\n accumulator.transform = parseTransformString(transformString);\n }\n return accumulator;\n }\n };\n },\n provides: function provides(providers) {\n providers.generateAbstractTransformGrouping = function (_ref) {\n var main = _ref.main,\n 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 var operations = {\n outer: outer,\n inner: inner,\n path: path\n };\n return {\n tag: 'g',\n attributes: _objectSpread2({}, operations.outer),\n children: [{\n tag: 'g',\n attributes: _objectSpread2({}, operations.inner),\n children: [{\n tag: main.icon.tag,\n children: main.icon.children,\n attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)\n }]\n }]\n };\n };\n }\n};\nvar ALL_SPACE = {\n x: 0,\n y: 0,\n width: '100%',\n height: '100%'\n};\nfunction fillBlack(abstract) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (abstract.attributes && (abstract.attributes.fill || force)) {\n abstract.attributes.fill = 'black';\n }\n return abstract;\n}\nfunction deGroup(abstract) {\n if (abstract.tag === 'g') {\n return abstract.children;\n } else {\n return [abstract];\n }\n}\nvar Masks = {\n hooks: function hooks() {\n return {\n parseNodeAttributes: function parseNodeAttributes(accumulator, node) {\n var maskData = node.getAttribute('data-fa-mask');\n var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {\n return i.trim();\n }));\n if (!mask.prefix) {\n mask.prefix = getDefaultUsablePrefix();\n }\n accumulator.mask = mask;\n accumulator.maskId = node.getAttribute('data-fa-mask-id');\n return accumulator;\n }\n };\n },\n provides: function provides(providers) {\n providers.generateAbstractMask = function (_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: _objectSpread2(_objectSpread2({}, 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: _objectSpread2({}, trans.inner),\n children: [fillBlack(_objectSpread2({\n tag: mainPath.tag,\n attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)\n }, maskInnerGroupChildrenMixin))]\n };\n var maskOuterGroup = {\n tag: 'g',\n attributes: _objectSpread2({}, 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: _objectSpread2(_objectSpread2({}, 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: _objectSpread2({\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};\nvar MissingIconIndicator = {\n provides: function provides(providers) {\n var reduceMotion = false;\n if (WINDOW.matchMedia) {\n reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;\n }\n providers.missingIconAbstract = function () {\n var gChildren = [];\n var FILL = {\n fill: 'currentColor'\n };\n var ANIMATION_BASE = {\n attributeType: 'XML',\n repeatCount: 'indefinite',\n dur: '2s'\n }; // Ring\n\n gChildren.push({\n tag: 'path',\n attributes: _objectSpread2(_objectSpread2({}, 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 var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {\n attributeName: 'opacity'\n });\n var dot = {\n tag: 'circle',\n attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {\n cx: '256',\n cy: '364',\n r: '28'\n }),\n children: []\n };\n if (!reduceMotion) {\n dot.children.push({\n tag: 'animate',\n attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {\n attributeName: 'r',\n values: '28;14;28;28;14;28;'\n })\n }, {\n tag: 'animate',\n attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {\n values: '1;0;1;1;0;1;'\n })\n });\n }\n gChildren.push(dot);\n gChildren.push({\n tag: 'path',\n attributes: _objectSpread2(_objectSpread2({}, 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: reduceMotion ? [] : [{\n tag: 'animate',\n attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {\n values: '1;0;0;0;0;1;'\n })\n }]\n });\n if (!reduceMotion) {\n // Exclamation\n gChildren.push({\n tag: 'path',\n attributes: _objectSpread2(_objectSpread2({}, 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: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {\n values: '0;0;1;1;0;0;'\n })\n }]\n });\n }\n return {\n tag: 'g',\n attributes: {\n 'class': 'missing'\n },\n children: gChildren\n };\n };\n }\n};\nvar SvgSymbols = {\n hooks: function hooks() {\n return {\n parseNodeAttributes: function parseNodeAttributes(accumulator, node) {\n var symbolData = node.getAttribute('data-fa-symbol');\n var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;\n accumulator['symbol'] = symbol;\n return accumulator;\n }\n };\n }\n};\nvar plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];\nregisterPlugins(plugins, {\n mixoutsTo: api\n});\nvar noAuto$1 = api.noAuto;\nvar config$1 = api.config;\nvar library$1 = api.library;\nvar dom$1 = api.dom;\nvar parse$1 = api.parse;\nvar findIconDefinition$1 = api.findIconDefinition;\nvar toHtml$1 = api.toHtml;\nvar icon = api.icon;\nvar layer = api.layer;\nvar text = api.text;\nvar counter = api.counter;\nexport { noAuto$1 as noAuto, config$1 as config, library$1 as library, dom$1 as dom, parse$1 as parse, findIconDefinition$1 as findIconDefinition, toHtml$1 as toHtml, icon, layer, text, counter, api };","import toInteger from \"../_lib/toInteger/index.js\";\nimport addDays from \"../addDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of week to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the weeks added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport default function addWeeks(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n var days = amount * 7;\n return addDays(dirtyDate, days);\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport default function differenceInMilliseconds(dateLeft, dateRight) {\n requiredArgs(2, arguments);\n return toDate(dateLeft).getTime() - toDate(dateRight).getTime();\n}","import toDate from \"../toDate/index.js\";\nimport differenceInCalendarMonths from \"../differenceInCalendarMonths/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport isLastDayOfMonth from \"../isLastDayOfMonth/index.js\";\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @description\n * Get the number of full months between the given dates using trunc as a default rounding method.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nexport default function differenceInMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var sign = compareAsc(dateLeft, dateRight);\n var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));\n var result;\n\n // Check for the difference of less than month\n if (difference < 1) {\n result = 0;\n } else {\n if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {\n // This will check if the date is end of Feb and assign a higher end of month date\n // to compare it with Jan\n dateLeft.setDate(30);\n }\n dateLeft.setMonth(dateLeft.getMonth() - sign * difference);\n\n // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full\n // If so, result must be decreased by 1 in absolute value\n var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign;\n\n // Check for cases of one full calendar month\n if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {\n isLastMonthNotFull = false;\n }\n result = sign * (difference - Number(isLastMonthNotFull));\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row d-flex justify-content-between\"},[_vm._m(0),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"f14 btn-add-items-tb bg-light-purple color-white\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\"\\n ADICIONAR\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[(_vm.experiences.length === 0)?_c('div',{staticClass:\"d-flex justify-content-center align-item-center row mb-1 border-dark-purple pt-3 pb-4\"},[_c('h4',{staticClass:\"center f15 color-dark-purple\"},[_vm._v(\"\\n NENHUMA EXPERIÊNCIA PROFISSIOINAL FOI INFORMADA AINDA.\\n \")])]):_vm._e()]),_vm._v(\" \"),_vm._l((_vm.experiences),function(experience,index){return _c('div',{key:experience.id},[_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"row mb-1 border-dark-purple pt-3 pb-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('div',[_c('span',{staticClass:\"label-bold color-dark-purple\"},[_vm._v(_vm._s(experience.occupation))])]),_vm._v(\" \"),_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu drop-down-tb\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.openForm(experience.id)}}},[_vm._v(\"\\n EDITAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-4 fa fa-pencil-alt scale_1\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.deleteExperience(experience.id, index)}}},[_vm._v(\"\\n DELETAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-3 fas fa-trash-alt scale_1\"})])])])])]),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(experience.company)+\"\\n |\\n \"+_vm._s(experience.city))])]),_vm._v(\" \"),_c('div',[_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(\"\\n \"+_vm._s(experience.start_date)+\" - \"+_vm._s(experience.end_date)+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_vm._m(1,true),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(experience.description))])])])])])])])])})],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"ml-2 label-bold color-dark-purple\"},[_vm._v(\"HISTÓRICO PROFISSIONAL\\n \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(\"Descrição:\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n HISTÓRICO PROFISSIONAL\n \n
\n
\n \n ADICIONAR\n \n
\n
\n
\n
\n
\n NENHUMA EXPERIÊNCIA PROFISSIOINAL FOI INFORMADA AINDA.\n \n \n
\n\n
\n
\n
\n
\n
\n
\n
\n {{ experience.occupation }} \n
\n
\n
\n
\n {{ experience.company }}\n |\n {{ experience.city }} \n
\n
\n
\n \n {{ experience.start_date }} - {{ experience.end_date }}\n \n
\n
\n
\n
\n Descrição: \n
\n
\n {{\n experience.description\n }} \n
\n
\n
\n
\n
\n
\n
\n
\n \n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=74ea75e7&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"tag\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xl-12 card-body bg_grey\"},[_c('div',{staticClass:\"container-tag ml-2 mr-2\"},[_vm._m(0),_vm._v(\" \"),_vm._l((_vm.tags),function(tag){return _c('div',{key:tag.id,staticClass:\"card d-flex justify-content-between mb-2\",style:({ backgroundColor: tag.color })},[_c('div',{staticClass:\"row pt-1 pb-1\"},[_c('div',{staticClass:\"col-lg-12 col-xl-12 d-flex\"},[_c('div',{staticClass:\"name-tag ml-2 mr-2 ml-2 color-white\",on:{\"click\":function($event){return _vm.selectTag(tag)}}},[_vm._v(\"\\n \"+_vm._s(tag.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"option-tag d-flex\"},[_c('div',[_c('span',{staticClass:\"pointer color-white ml-2 mr-1\",on:{\"click\":function($event){return _vm.deleteTag(tag.id)}}},[_c('i',{staticClass:\"fas fa-trash-alt color-white\"})])])])]),_vm._v(\" \"),_c('div')])])}),_vm._v(\" \"),_c('div',{staticClass:\"center\"},[_c('button',{staticClass:\"btn btn-primary full mt-1 label-bold\",on:{\"click\":_vm.openForm}},[_vm._v(\"\\n CRIAR NOVA ETIQUETA\\n \")])])],2)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"aling-justify-center\"},[_c('div',{staticClass:\"header-job mt-4 mb-4 aling-justify-center\"},[_c('h4',[_vm._v(\"Etiquetas\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagList.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n {{ tag.name }}\n
\n
\n
\n
\n
\n
\n
\n \n CRIAR NOVA ETIQUETA\n \n
\n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./TagList.vue?vue&type=template&id=22a8b571&\"\nimport script from \"./TagList.vue?vue&type=script&lang=js&\"\nexport * from \"./TagList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(_vm._s(_vm.item.title || _vm.item.name))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemTemplate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemTemplate.vue?vue&type=script&lang=js&\"","\n \n {{ item.title || item.name }} \n
\n \n \n ","import { render, staticRenderFns } from \"./ItemTemplate.vue?vue&type=template&id=d69248ba&\"\nimport script from \"./ItemTemplate.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemTemplate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (!_vm.hide)?_c('div',{class:_vm.ParentDivClasses},[(_vm.useSvg)?_c('div',{staticClass:\"d-inline\"},[(_vm.rightIf)?_c('font-awesome-icon',{staticClass:\"color-green\",attrs:{\"icon\":\"check-circle\"}}):_vm._e(),_vm._v(\" \"),(_vm.wrongIf)?_c('font-awesome-icon',{staticClass:\"text-danger\",attrs:{\"icon\":\"times-circle\"}}):_vm._e()],1):_c('div',{staticClass:\"d-inline\"},[(_vm.rightIf)?_c('span',{staticClass:\"f18 color-green\"},[_vm._v(\"✓\")]):_vm._e(),_vm._v(\" \"),(_vm.wrongIf)?_c('span',{staticClass:\"f18 text-danger\"},[_vm._v(\"x\")]):_vm._e()])]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RightOrWrongIcons.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RightOrWrongIcons.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n
\n
\n ✓ \n x \n
\n
\n \n\n","import { render, staticRenderFns } from \"./RightOrWrongIcons.vue?vue&type=template&id=67f88f1b&\"\nimport script from \"./RightOrWrongIcons.vue?vue&type=script&lang=js&\"\nexport * from \"./RightOrWrongIcons.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","function dataHandler(newData, oldData) {\n if (oldData) {\n var chart = this.$data._chart;\n var newDatasetLabels = newData.datasets.map(function (dataset) {\n return dataset.label;\n });\n var oldDatasetLabels = oldData.datasets.map(function (dataset) {\n return dataset.label;\n });\n var oldLabels = JSON.stringify(oldDatasetLabels);\n var newLabels = JSON.stringify(newDatasetLabels);\n if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) {\n newData.datasets.forEach(function (dataset, i) {\n var oldDatasetKeys = Object.keys(oldData.datasets[i]);\n var newDatasetKeys = Object.keys(dataset);\n var deletionKeys = oldDatasetKeys.filter(function (key) {\n return key !== '_meta' && newDatasetKeys.indexOf(key) === -1;\n });\n deletionKeys.forEach(function (deletionKey) {\n delete chart.data.datasets[i][deletionKey];\n });\n for (var attribute in dataset) {\n if (dataset.hasOwnProperty(attribute)) {\n chart.data.datasets[i][attribute] = dataset[attribute];\n }\n }\n });\n if (newData.hasOwnProperty('labels')) {\n chart.data.labels = newData.labels;\n this.$emit('labels:update');\n }\n if (newData.hasOwnProperty('xLabels')) {\n chart.data.xLabels = newData.xLabels;\n this.$emit('xlabels:update');\n }\n if (newData.hasOwnProperty('yLabels')) {\n chart.data.yLabels = newData.yLabels;\n this.$emit('ylabels:update');\n }\n chart.update();\n this.$emit('chart:update');\n } else {\n if (chart) {\n chart.destroy();\n this.$emit('chart:destroy');\n }\n this.renderChart(this.chartData, this.options);\n this.$emit('chart:render');\n }\n } else {\n if (this.$data._chart) {\n this.$data._chart.destroy();\n this.$emit('chart:destroy');\n }\n this.renderChart(this.chartData, this.options);\n this.$emit('chart:render');\n }\n}\nexport var reactiveData = {\n data: function data() {\n return {\n chartData: null\n };\n },\n watch: {\n 'chartData': dataHandler\n }\n};\nexport var reactiveProp = {\n props: {\n chartData: {\n type: Object,\n required: true,\n default: function _default() {}\n }\n },\n watch: {\n 'chartData': dataHandler\n }\n};\nexport default {\n reactiveData: reactiveData,\n reactiveProp: reactiveProp\n};","import Chart from 'chart.js';\nexport function generateChart(chartId, chartType) {\n return {\n render: function render(createElement) {\n return createElement('div', {\n style: this.styles,\n class: this.cssClasses\n }, [createElement('canvas', {\n attrs: {\n id: this.chartId,\n width: this.width,\n height: this.height\n },\n ref: 'canvas'\n })]);\n },\n props: {\n chartId: {\n default: chartId,\n type: String\n },\n width: {\n default: 400,\n type: Number\n },\n height: {\n default: 400,\n type: Number\n },\n cssClasses: {\n type: String,\n default: ''\n },\n styles: {\n type: Object\n },\n plugins: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n data: function data() {\n return {\n _chart: null,\n _plugins: this.plugins\n };\n },\n methods: {\n addPlugin: function addPlugin(plugin) {\n this.$data._plugins.push(plugin);\n },\n generateLegend: function generateLegend() {\n if (this.$data._chart) {\n return this.$data._chart.generateLegend();\n }\n },\n renderChart: function renderChart(data, options) {\n if (this.$data._chart) this.$data._chart.destroy();\n if (!this.$refs.canvas) throw new Error('Please remove the tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components');\n this.$data._chart = new Chart(this.$refs.canvas.getContext('2d'), {\n type: chartType,\n data: data,\n options: options,\n plugins: this.$data._plugins\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.$data._chart) {\n this.$data._chart.destroy();\n }\n }\n };\n}\nexport var Bar = generateChart('bar-chart', 'bar');\nexport var HorizontalBar = generateChart('horizontalbar-chart', 'horizontalBar');\nexport var Doughnut = generateChart('doughnut-chart', 'doughnut');\nexport var Line = generateChart('line-chart', 'line');\nexport var Pie = generateChart('pie-chart', 'pie');\nexport var PolarArea = generateChart('polar-chart', 'polarArea');\nexport var Radar = generateChart('radar-chart', 'radar');\nexport var Bubble = generateChart('bubble-chart', 'bubble');\nexport var Scatter = generateChart('scatter-chart', 'scatter');\nexport default {\n Bar: Bar,\n HorizontalBar: HorizontalBar,\n Doughnut: Doughnut,\n Line: Line,\n Pie: Pie,\n PolarArea: PolarArea,\n Radar: Radar,\n Bubble: Bubble,\n Scatter: Scatter\n};","export default function buildFormatLongFn(args) {\n return function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n // TODO: Remove String()\n var width = options.width ? String(options.width) : args.defaultWidth;\n var format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}","/* eslint-env node */\n'use strict';\n\n// SDP helpers.\nconst SDPUtils = {};\n\n// Generate an alphanumeric identifier for cname or mids.\n// TODO: use UUIDs instead? https://gist.github.com/jed/982883\nSDPUtils.generateIdentifier = function () {\n return Math.random().toString(36).substring(2, 12);\n};\n\n// The RTCP CNAME used by all peerconnections from the same JS.\nSDPUtils.localCName = SDPUtils.generateIdentifier();\n\n// Splits SDP into lines, dealing with both CRLF and LF.\nSDPUtils.splitLines = function (blob) {\n return blob.trim().split('\\n').map(line => line.trim());\n};\n// Splits SDP into sessionpart and mediasections. Ensures CRLF.\nSDPUtils.splitSections = function (blob) {\n const parts = blob.split('\\nm=');\n return parts.map((part, index) => (index > 0 ? 'm=' + part : part).trim() + '\\r\\n');\n};\n\n// Returns the session description.\nSDPUtils.getDescription = function (blob) {\n const sections = SDPUtils.splitSections(blob);\n return sections && sections[0];\n};\n\n// Returns the individual media sections.\nSDPUtils.getMediaSections = function (blob) {\n const sections = SDPUtils.splitSections(blob);\n sections.shift();\n return sections;\n};\n\n// Returns lines that start with a certain prefix.\nSDPUtils.matchPrefix = function (blob, prefix) {\n return SDPUtils.splitLines(blob).filter(line => line.indexOf(prefix) === 0);\n};\n\n// Parses an ICE candidate line. Sample input:\n// candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8\n// rport 55996\"\n// Input can be prefixed with a=.\nSDPUtils.parseCandidate = function (line) {\n let parts;\n // Parse both variants.\n if (line.indexOf('a=candidate:') === 0) {\n parts = line.substring(12).split(' ');\n } else {\n parts = line.substring(10).split(' ');\n }\n const candidate = {\n foundation: parts[0],\n component: {\n 1: 'rtp',\n 2: 'rtcp'\n }[parts[1]] || parts[1],\n protocol: parts[2].toLowerCase(),\n priority: parseInt(parts[3], 10),\n ip: parts[4],\n address: parts[4],\n // address is an alias for ip.\n port: parseInt(parts[5], 10),\n // skip parts[6] == 'typ'\n type: parts[7]\n };\n for (let i = 8; i < parts.length; i += 2) {\n switch (parts[i]) {\n case 'raddr':\n candidate.relatedAddress = parts[i + 1];\n break;\n case 'rport':\n candidate.relatedPort = parseInt(parts[i + 1], 10);\n break;\n case 'tcptype':\n candidate.tcpType = parts[i + 1];\n break;\n case 'ufrag':\n candidate.ufrag = parts[i + 1]; // for backward compatibility.\n candidate.usernameFragment = parts[i + 1];\n break;\n default:\n // extension handling, in particular ufrag. Don't overwrite.\n if (candidate[parts[i]] === undefined) {\n candidate[parts[i]] = parts[i + 1];\n }\n break;\n }\n }\n return candidate;\n};\n\n// Translates a candidate object into SDP candidate attribute.\n// This does not include the a= prefix!\nSDPUtils.writeCandidate = function (candidate) {\n const sdp = [];\n sdp.push(candidate.foundation);\n const component = candidate.component;\n if (component === 'rtp') {\n sdp.push(1);\n } else if (component === 'rtcp') {\n sdp.push(2);\n } else {\n sdp.push(component);\n }\n sdp.push(candidate.protocol.toUpperCase());\n sdp.push(candidate.priority);\n sdp.push(candidate.address || candidate.ip);\n sdp.push(candidate.port);\n const type = candidate.type;\n sdp.push('typ');\n sdp.push(type);\n if (type !== 'host' && candidate.relatedAddress && candidate.relatedPort) {\n sdp.push('raddr');\n sdp.push(candidate.relatedAddress);\n sdp.push('rport');\n sdp.push(candidate.relatedPort);\n }\n if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') {\n sdp.push('tcptype');\n sdp.push(candidate.tcpType);\n }\n if (candidate.usernameFragment || candidate.ufrag) {\n sdp.push('ufrag');\n sdp.push(candidate.usernameFragment || candidate.ufrag);\n }\n return 'candidate:' + sdp.join(' ');\n};\n\n// Parses an ice-options line, returns an array of option tags.\n// Sample input:\n// a=ice-options:foo bar\nSDPUtils.parseIceOptions = function (line) {\n return line.substring(14).split(' ');\n};\n\n// Parses a rtpmap line, returns RTCRtpCoddecParameters. Sample input:\n// a=rtpmap:111 opus/48000/2\nSDPUtils.parseRtpMap = function (line) {\n let parts = line.substring(9).split(' ');\n const parsed = {\n payloadType: parseInt(parts.shift(), 10) // was: id\n };\n\n parts = parts[0].split('/');\n parsed.name = parts[0];\n parsed.clockRate = parseInt(parts[1], 10); // was: clockrate\n parsed.channels = parts.length === 3 ? parseInt(parts[2], 10) : 1;\n // legacy alias, got renamed back to channels in ORTC.\n parsed.numChannels = parsed.channels;\n return parsed;\n};\n\n// Generates a rtpmap line from RTCRtpCodecCapability or\n// RTCRtpCodecParameters.\nSDPUtils.writeRtpMap = function (codec) {\n let pt = codec.payloadType;\n if (codec.preferredPayloadType !== undefined) {\n pt = codec.preferredPayloadType;\n }\n const channels = codec.channels || codec.numChannels || 1;\n return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate + (channels !== 1 ? '/' + channels : '') + '\\r\\n';\n};\n\n// Parses a extmap line (headerextension from RFC 5285). Sample input:\n// a=extmap:2 urn:ietf:params:rtp-hdrext:toffset\n// a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset\nSDPUtils.parseExtmap = function (line) {\n const parts = line.substring(9).split(' ');\n return {\n id: parseInt(parts[0], 10),\n direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv',\n uri: parts[1],\n attributes: parts.slice(2).join(' ')\n };\n};\n\n// Generates an extmap line from RTCRtpHeaderExtensionParameters or\n// RTCRtpHeaderExtension.\nSDPUtils.writeExtmap = function (headerExtension) {\n return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) + (headerExtension.direction && headerExtension.direction !== 'sendrecv' ? '/' + headerExtension.direction : '') + ' ' + headerExtension.uri + (headerExtension.attributes ? ' ' + headerExtension.attributes : '') + '\\r\\n';\n};\n\n// Parses a fmtp line, returns dictionary. Sample input:\n// a=fmtp:96 vbr=on;cng=on\n// Also deals with vbr=on; cng=on\nSDPUtils.parseFmtp = function (line) {\n const parsed = {};\n let kv;\n const parts = line.substring(line.indexOf(' ') + 1).split(';');\n for (let j = 0; j < parts.length; j++) {\n kv = parts[j].trim().split('=');\n parsed[kv[0].trim()] = kv[1];\n }\n return parsed;\n};\n\n// Generates a fmtp line from RTCRtpCodecCapability or RTCRtpCodecParameters.\nSDPUtils.writeFmtp = function (codec) {\n let line = '';\n let pt = codec.payloadType;\n if (codec.preferredPayloadType !== undefined) {\n pt = codec.preferredPayloadType;\n }\n if (codec.parameters && Object.keys(codec.parameters).length) {\n const params = [];\n Object.keys(codec.parameters).forEach(param => {\n if (codec.parameters[param] !== undefined) {\n params.push(param + '=' + codec.parameters[param]);\n } else {\n params.push(param);\n }\n });\n line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\\r\\n';\n }\n return line;\n};\n\n// Parses a rtcp-fb line, returns RTCPRtcpFeedback object. Sample input:\n// a=rtcp-fb:98 nack rpsi\nSDPUtils.parseRtcpFb = function (line) {\n const parts = line.substring(line.indexOf(' ') + 1).split(' ');\n return {\n type: parts.shift(),\n parameter: parts.join(' ')\n };\n};\n\n// Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters.\nSDPUtils.writeRtcpFb = function (codec) {\n let lines = '';\n let pt = codec.payloadType;\n if (codec.preferredPayloadType !== undefined) {\n pt = codec.preferredPayloadType;\n }\n if (codec.rtcpFeedback && codec.rtcpFeedback.length) {\n // FIXME: special handling for trr-int?\n codec.rtcpFeedback.forEach(fb => {\n lines += 'a=rtcp-fb:' + pt + ' ' + fb.type + (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') + '\\r\\n';\n });\n }\n return lines;\n};\n\n// Parses a RFC 5576 ssrc media attribute. Sample input:\n// a=ssrc:3735928559 cname:something\nSDPUtils.parseSsrcMedia = function (line) {\n const sp = line.indexOf(' ');\n const parts = {\n ssrc: parseInt(line.substring(7, sp), 10)\n };\n const colon = line.indexOf(':', sp);\n if (colon > -1) {\n parts.attribute = line.substring(sp + 1, colon);\n parts.value = line.substring(colon + 1);\n } else {\n parts.attribute = line.substring(sp + 1);\n }\n return parts;\n};\n\n// Parse a ssrc-group line (see RFC 5576). Sample input:\n// a=ssrc-group:semantics 12 34\nSDPUtils.parseSsrcGroup = function (line) {\n const parts = line.substring(13).split(' ');\n return {\n semantics: parts.shift(),\n ssrcs: parts.map(ssrc => parseInt(ssrc, 10))\n };\n};\n\n// Extracts the MID (RFC 5888) from a media section.\n// Returns the MID or undefined if no mid line was found.\nSDPUtils.getMid = function (mediaSection) {\n const mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0];\n if (mid) {\n return mid.substring(6);\n }\n};\n\n// Parses a fingerprint line for DTLS-SRTP.\nSDPUtils.parseFingerprint = function (line) {\n const parts = line.substring(14).split(' ');\n return {\n algorithm: parts[0].toLowerCase(),\n // algorithm is case-sensitive in Edge.\n value: parts[1].toUpperCase() // the definition is upper-case in RFC 4572.\n };\n};\n\n// Extracts DTLS parameters from SDP media section or sessionpart.\n// FIXME: for consistency with other functions this should only\n// get the fingerprint line as input. See also getIceParameters.\nSDPUtils.getDtlsParameters = function (mediaSection, sessionpart) {\n const lines = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=fingerprint:');\n // Note: a=setup line is ignored since we use the 'auto' role in Edge.\n return {\n role: 'auto',\n fingerprints: lines.map(SDPUtils.parseFingerprint)\n };\n};\n\n// Serializes DTLS parameters to SDP.\nSDPUtils.writeDtlsParameters = function (params, setupType) {\n let sdp = 'a=setup:' + setupType + '\\r\\n';\n params.fingerprints.forEach(fp => {\n sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\\r\\n';\n });\n return sdp;\n};\n\n// Parses a=crypto lines into\n// https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#dictionary-rtcsrtpsdesparameters-members\nSDPUtils.parseCryptoLine = function (line) {\n const parts = line.substring(9).split(' ');\n return {\n tag: parseInt(parts[0], 10),\n cryptoSuite: parts[1],\n keyParams: parts[2],\n sessionParams: parts.slice(3)\n };\n};\nSDPUtils.writeCryptoLine = function (parameters) {\n return 'a=crypto:' + parameters.tag + ' ' + parameters.cryptoSuite + ' ' + (typeof parameters.keyParams === 'object' ? SDPUtils.writeCryptoKeyParams(parameters.keyParams) : parameters.keyParams) + (parameters.sessionParams ? ' ' + parameters.sessionParams.join(' ') : '') + '\\r\\n';\n};\n\n// Parses the crypto key parameters into\n// https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#rtcsrtpkeyparam*\nSDPUtils.parseCryptoKeyParams = function (keyParams) {\n if (keyParams.indexOf('inline:') !== 0) {\n return null;\n }\n const parts = keyParams.substring(7).split('|');\n return {\n keyMethod: 'inline',\n keySalt: parts[0],\n lifeTime: parts[1],\n mkiValue: parts[2] ? parts[2].split(':')[0] : undefined,\n mkiLength: parts[2] ? parts[2].split(':')[1] : undefined\n };\n};\nSDPUtils.writeCryptoKeyParams = function (keyParams) {\n return keyParams.keyMethod + ':' + keyParams.keySalt + (keyParams.lifeTime ? '|' + keyParams.lifeTime : '') + (keyParams.mkiValue && keyParams.mkiLength ? '|' + keyParams.mkiValue + ':' + keyParams.mkiLength : '');\n};\n\n// Extracts all SDES parameters.\nSDPUtils.getCryptoParameters = function (mediaSection, sessionpart) {\n const lines = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=crypto:');\n return lines.map(SDPUtils.parseCryptoLine);\n};\n\n// Parses ICE information from SDP media section or sessionpart.\n// FIXME: for consistency with other functions this should only\n// get the ice-ufrag and ice-pwd lines as input.\nSDPUtils.getIceParameters = function (mediaSection, sessionpart) {\n const ufrag = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=ice-ufrag:')[0];\n const pwd = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=ice-pwd:')[0];\n if (!(ufrag && pwd)) {\n return null;\n }\n return {\n usernameFragment: ufrag.substring(12),\n password: pwd.substring(10)\n };\n};\n\n// Serializes ICE parameters to SDP.\nSDPUtils.writeIceParameters = function (params) {\n let sdp = 'a=ice-ufrag:' + params.usernameFragment + '\\r\\n' + 'a=ice-pwd:' + params.password + '\\r\\n';\n if (params.iceLite) {\n sdp += 'a=ice-lite\\r\\n';\n }\n return sdp;\n};\n\n// Parses the SDP media section and returns RTCRtpParameters.\nSDPUtils.parseRtpParameters = function (mediaSection) {\n const description = {\n codecs: [],\n headerExtensions: [],\n fecMechanisms: [],\n rtcp: []\n };\n const lines = SDPUtils.splitLines(mediaSection);\n const mline = lines[0].split(' ');\n description.profile = mline[2];\n for (let i = 3; i < mline.length; i++) {\n // find all codecs from mline[3..]\n const pt = mline[i];\n const rtpmapline = SDPUtils.matchPrefix(mediaSection, 'a=rtpmap:' + pt + ' ')[0];\n if (rtpmapline) {\n const codec = SDPUtils.parseRtpMap(rtpmapline);\n const fmtps = SDPUtils.matchPrefix(mediaSection, 'a=fmtp:' + pt + ' ');\n // Only the first a=fmtp: is considered.\n codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {};\n codec.rtcpFeedback = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-fb:' + pt + ' ').map(SDPUtils.parseRtcpFb);\n description.codecs.push(codec);\n // parse FEC mechanisms from rtpmap lines.\n switch (codec.name.toUpperCase()) {\n case 'RED':\n case 'ULPFEC':\n description.fecMechanisms.push(codec.name.toUpperCase());\n break;\n default:\n // only RED and ULPFEC are recognized as FEC mechanisms.\n break;\n }\n }\n }\n SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(line => {\n description.headerExtensions.push(SDPUtils.parseExtmap(line));\n });\n const wildcardRtcpFb = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-fb:* ').map(SDPUtils.parseRtcpFb);\n description.codecs.forEach(codec => {\n wildcardRtcpFb.forEach(fb => {\n const duplicate = codec.rtcpFeedback.find(existingFeedback => {\n return existingFeedback.type === fb.type && existingFeedback.parameter === fb.parameter;\n });\n if (!duplicate) {\n codec.rtcpFeedback.push(fb);\n }\n });\n });\n // FIXME: parse rtcp.\n return description;\n};\n\n// Generates parts of the SDP media section describing the capabilities /\n// parameters.\nSDPUtils.writeRtpDescription = function (kind, caps) {\n let sdp = '';\n\n // Build the mline.\n sdp += 'm=' + kind + ' ';\n sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs.\n sdp += ' ' + (caps.profile || 'UDP/TLS/RTP/SAVPF') + ' ';\n sdp += caps.codecs.map(codec => {\n if (codec.preferredPayloadType !== undefined) {\n return codec.preferredPayloadType;\n }\n return codec.payloadType;\n }).join(' ') + '\\r\\n';\n sdp += 'c=IN IP4 0.0.0.0\\r\\n';\n sdp += 'a=rtcp:9 IN IP4 0.0.0.0\\r\\n';\n\n // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb.\n caps.codecs.forEach(codec => {\n sdp += SDPUtils.writeRtpMap(codec);\n sdp += SDPUtils.writeFmtp(codec);\n sdp += SDPUtils.writeRtcpFb(codec);\n });\n let maxptime = 0;\n caps.codecs.forEach(codec => {\n if (codec.maxptime > maxptime) {\n maxptime = codec.maxptime;\n }\n });\n if (maxptime > 0) {\n sdp += 'a=maxptime:' + maxptime + '\\r\\n';\n }\n if (caps.headerExtensions) {\n caps.headerExtensions.forEach(extension => {\n sdp += SDPUtils.writeExtmap(extension);\n });\n }\n // FIXME: write fecMechanisms.\n return sdp;\n};\n\n// Parses the SDP media section and returns an array of\n// RTCRtpEncodingParameters.\nSDPUtils.parseRtpEncodingParameters = function (mediaSection) {\n const encodingParameters = [];\n const description = SDPUtils.parseRtpParameters(mediaSection);\n const hasRed = description.fecMechanisms.indexOf('RED') !== -1;\n const hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1;\n\n // filter a=ssrc:... cname:, ignore PlanB-msid\n const ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:').map(line => SDPUtils.parseSsrcMedia(line)).filter(parts => parts.attribute === 'cname');\n const primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc;\n let secondarySsrc;\n const flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID').map(line => {\n const parts = line.substring(17).split(' ');\n return parts.map(part => parseInt(part, 10));\n });\n if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) {\n secondarySsrc = flows[0][1];\n }\n description.codecs.forEach(codec => {\n if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) {\n let encParam = {\n ssrc: primarySsrc,\n codecPayloadType: parseInt(codec.parameters.apt, 10)\n };\n if (primarySsrc && secondarySsrc) {\n encParam.rtx = {\n ssrc: secondarySsrc\n };\n }\n encodingParameters.push(encParam);\n if (hasRed) {\n encParam = JSON.parse(JSON.stringify(encParam));\n encParam.fec = {\n ssrc: primarySsrc,\n mechanism: hasUlpfec ? 'red+ulpfec' : 'red'\n };\n encodingParameters.push(encParam);\n }\n }\n });\n if (encodingParameters.length === 0 && primarySsrc) {\n encodingParameters.push({\n ssrc: primarySsrc\n });\n }\n\n // we support both b=AS and b=TIAS but interpret AS as TIAS.\n let bandwidth = SDPUtils.matchPrefix(mediaSection, 'b=');\n if (bandwidth.length) {\n if (bandwidth[0].indexOf('b=TIAS:') === 0) {\n bandwidth = parseInt(bandwidth[0].substring(7), 10);\n } else if (bandwidth[0].indexOf('b=AS:') === 0) {\n // use formula from JSEP to convert b=AS to TIAS value.\n bandwidth = parseInt(bandwidth[0].substring(5), 10) * 1000 * 0.95 - 50 * 40 * 8;\n } else {\n bandwidth = undefined;\n }\n encodingParameters.forEach(params => {\n params.maxBitrate = bandwidth;\n });\n }\n return encodingParameters;\n};\n\n// parses http://draft.ortc.org/#rtcrtcpparameters*\nSDPUtils.parseRtcpParameters = function (mediaSection) {\n const rtcpParameters = {};\n\n // Gets the first SSRC. Note that with RTX there might be multiple\n // SSRCs.\n const remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:').map(line => SDPUtils.parseSsrcMedia(line)).filter(obj => obj.attribute === 'cname')[0];\n if (remoteSsrc) {\n rtcpParameters.cname = remoteSsrc.value;\n rtcpParameters.ssrc = remoteSsrc.ssrc;\n }\n\n // Edge uses the compound attribute instead of reducedSize\n // compound is !reducedSize\n const rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize');\n rtcpParameters.reducedSize = rsize.length > 0;\n rtcpParameters.compound = rsize.length === 0;\n\n // parses the rtcp-mux attrіbute.\n // Note that Edge does not support unmuxed RTCP.\n const mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux');\n rtcpParameters.mux = mux.length > 0;\n return rtcpParameters;\n};\nSDPUtils.writeRtcpParameters = function (rtcpParameters) {\n let sdp = '';\n if (rtcpParameters.reducedSize) {\n sdp += 'a=rtcp-rsize\\r\\n';\n }\n if (rtcpParameters.mux) {\n sdp += 'a=rtcp-mux\\r\\n';\n }\n if (rtcpParameters.ssrc !== undefined && rtcpParameters.cname) {\n sdp += 'a=ssrc:' + rtcpParameters.ssrc + ' cname:' + rtcpParameters.cname + '\\r\\n';\n }\n return sdp;\n};\n\n// parses either a=msid: or a=ssrc:... msid lines and returns\n// the id of the MediaStream and MediaStreamTrack.\nSDPUtils.parseMsid = function (mediaSection) {\n let parts;\n const spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:');\n if (spec.length === 1) {\n parts = spec[0].substring(7).split(' ');\n return {\n stream: parts[0],\n track: parts[1]\n };\n }\n const planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:').map(line => SDPUtils.parseSsrcMedia(line)).filter(msidParts => msidParts.attribute === 'msid');\n if (planB.length > 0) {\n parts = planB[0].value.split(' ');\n return {\n stream: parts[0],\n track: parts[1]\n };\n }\n};\n\n// SCTP\n// parses draft-ietf-mmusic-sctp-sdp-26 first and falls back\n// to draft-ietf-mmusic-sctp-sdp-05\nSDPUtils.parseSctpDescription = function (mediaSection) {\n const mline = SDPUtils.parseMLine(mediaSection);\n const maxSizeLine = SDPUtils.matchPrefix(mediaSection, 'a=max-message-size:');\n let maxMessageSize;\n if (maxSizeLine.length > 0) {\n maxMessageSize = parseInt(maxSizeLine[0].substring(19), 10);\n }\n if (isNaN(maxMessageSize)) {\n maxMessageSize = 65536;\n }\n const sctpPort = SDPUtils.matchPrefix(mediaSection, 'a=sctp-port:');\n if (sctpPort.length > 0) {\n return {\n port: parseInt(sctpPort[0].substring(12), 10),\n protocol: mline.fmt,\n maxMessageSize\n };\n }\n const sctpMapLines = SDPUtils.matchPrefix(mediaSection, 'a=sctpmap:');\n if (sctpMapLines.length > 0) {\n const parts = sctpMapLines[0].substring(10).split(' ');\n return {\n port: parseInt(parts[0], 10),\n protocol: parts[1],\n maxMessageSize\n };\n }\n};\n\n// SCTP\n// outputs the draft-ietf-mmusic-sctp-sdp-26 version that all browsers\n// support by now receiving in this format, unless we originally parsed\n// as the draft-ietf-mmusic-sctp-sdp-05 format (indicated by the m-line\n// protocol of DTLS/SCTP -- without UDP/ or TCP/)\nSDPUtils.writeSctpDescription = function (media, sctp) {\n let output = [];\n if (media.protocol !== 'DTLS/SCTP') {\n output = ['m=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.protocol + '\\r\\n', 'c=IN IP4 0.0.0.0\\r\\n', 'a=sctp-port:' + sctp.port + '\\r\\n'];\n } else {\n output = ['m=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.port + '\\r\\n', 'c=IN IP4 0.0.0.0\\r\\n', 'a=sctpmap:' + sctp.port + ' ' + sctp.protocol + ' 65535\\r\\n'];\n }\n if (sctp.maxMessageSize !== undefined) {\n output.push('a=max-message-size:' + sctp.maxMessageSize + '\\r\\n');\n }\n return output.join('');\n};\n\n// Generate a session ID for SDP.\n// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-20#section-5.2.1\n// recommends using a cryptographically random +ve 64-bit value\n// but right now this should be acceptable and within the right range\nSDPUtils.generateSessionId = function () {\n return Math.random().toString().substr(2, 22);\n};\n\n// Write boiler plate for start of SDP\n// sessId argument is optional - if not supplied it will\n// be generated randomly\n// sessVersion is optional and defaults to 2\n// sessUser is optional and defaults to 'thisisadapterortc'\nSDPUtils.writeSessionBoilerplate = function (sessId, sessVer, sessUser) {\n let sessionId;\n const version = sessVer !== undefined ? sessVer : 2;\n if (sessId) {\n sessionId = sessId;\n } else {\n sessionId = SDPUtils.generateSessionId();\n }\n const user = sessUser || 'thisisadapterortc';\n // FIXME: sess-id should be an NTP timestamp.\n return 'v=0\\r\\n' + 'o=' + user + ' ' + sessionId + ' ' + version + ' IN IP4 127.0.0.1\\r\\n' + 's=-\\r\\n' + 't=0 0\\r\\n';\n};\n\n// Gets the direction from the mediaSection or the sessionpart.\nSDPUtils.getDirection = function (mediaSection, sessionpart) {\n // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv.\n const lines = SDPUtils.splitLines(mediaSection);\n for (let i = 0; i < lines.length; i++) {\n switch (lines[i]) {\n case 'a=sendrecv':\n case 'a=sendonly':\n case 'a=recvonly':\n case 'a=inactive':\n return lines[i].substring(2);\n default:\n // FIXME: What should happen here?\n }\n }\n\n if (sessionpart) {\n return SDPUtils.getDirection(sessionpart);\n }\n return 'sendrecv';\n};\nSDPUtils.getKind = function (mediaSection) {\n const lines = SDPUtils.splitLines(mediaSection);\n const mline = lines[0].split(' ');\n return mline[0].substring(2);\n};\nSDPUtils.isRejected = function (mediaSection) {\n return mediaSection.split(' ', 2)[1] === '0';\n};\nSDPUtils.parseMLine = function (mediaSection) {\n const lines = SDPUtils.splitLines(mediaSection);\n const parts = lines[0].substring(2).split(' ');\n return {\n kind: parts[0],\n port: parseInt(parts[1], 10),\n protocol: parts[2],\n fmt: parts.slice(3).join(' ')\n };\n};\nSDPUtils.parseOLine = function (mediaSection) {\n const line = SDPUtils.matchPrefix(mediaSection, 'o=')[0];\n const parts = line.substring(2).split(' ');\n return {\n username: parts[0],\n sessionId: parts[1],\n sessionVersion: parseInt(parts[2], 10),\n netType: parts[3],\n addressType: parts[4],\n address: parts[5]\n };\n};\n\n// a very naive interpretation of a valid SDP.\nSDPUtils.isValidSDP = function (blob) {\n if (typeof blob !== 'string' || blob.length === 0) {\n return false;\n }\n const lines = SDPUtils.splitLines(blob);\n for (let i = 0; i < lines.length; i++) {\n if (lines[i].length < 2 || lines[i].charAt(1) !== '=') {\n return false;\n }\n // TODO: check the modifier a bit more.\n }\n\n return true;\n};\n\n// Expose public methods.\nif (typeof module === 'object') {\n module.exports = SDPUtils;\n}","/**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\nvar ONE_SECOND_IN_TS = 90000,\n // 90kHz clock\n secondsToVideoTs,\n secondsToAudioTs,\n videoTsToSeconds,\n audioTsToSeconds,\n audioTsToVideoTs,\n videoTsToAudioTs,\n metadataTsToSeconds;\nsecondsToVideoTs = function (seconds) {\n return seconds * ONE_SECOND_IN_TS;\n};\nsecondsToAudioTs = function (seconds, sampleRate) {\n return seconds * sampleRate;\n};\nvideoTsToSeconds = function (timestamp) {\n return timestamp / ONE_SECOND_IN_TS;\n};\naudioTsToSeconds = function (timestamp, sampleRate) {\n return timestamp / sampleRate;\n};\naudioTsToVideoTs = function (timestamp, sampleRate) {\n return secondsToVideoTs(audioTsToSeconds(timestamp, sampleRate));\n};\nvideoTsToAudioTs = function (timestamp, sampleRate) {\n return secondsToAudioTs(videoTsToSeconds(timestamp), sampleRate);\n};\n\n/**\n * Adjust ID3 tag or caption timing information by the timeline pts values\n * (if keepOriginalTimestamps is false) and convert to seconds\n */\nmetadataTsToSeconds = function (timestamp, timelineStartPts, keepOriginalTimestamps) {\n return videoTsToSeconds(keepOriginalTimestamps ? timestamp : timestamp - timelineStartPts);\n};\nmodule.exports = {\n ONE_SECOND_IN_TS: ONE_SECOND_IN_TS,\n secondsToVideoTs: secondsToVideoTs,\n secondsToAudioTs: secondsToAudioTs,\n videoTsToSeconds: videoTsToSeconds,\n audioTsToSeconds: audioTsToSeconds,\n audioTsToVideoTs: audioTsToVideoTs,\n videoTsToAudioTs: videoTsToAudioTs,\n metadataTsToSeconds: metadataTsToSeconds\n};","import URLToolkit from 'url-toolkit';\nimport window from 'global/window';\nvar DEFAULT_LOCATION = 'http://example.com';\nvar resolveUrl = function resolveUrl(baseUrl, relativeUrl) {\n // return early if we don't need to resolve\n if (/^[a-z]+:/i.test(relativeUrl)) {\n return relativeUrl;\n } // if baseUrl is a data URI, ignore it and resolve everything relative to window.location\n\n if (/^data:/.test(baseUrl)) {\n baseUrl = window.location && window.location.href || '';\n } // IE11 supports URL but not the URL constructor\n // feature detect the behavior we want\n\n var nativeURL = typeof window.URL === 'function';\n var protocolLess = /^\\/\\//.test(baseUrl); // remove location if window.location isn't available (i.e. we're in node)\n // and if baseUrl isn't an absolute url\n\n var removeLocation = !window.location && !/\\/\\//i.test(baseUrl); // if the base URL is relative then combine with the current location\n\n if (nativeURL) {\n baseUrl = new window.URL(baseUrl, window.location || DEFAULT_LOCATION);\n } else if (!/\\/\\//i.test(baseUrl)) {\n baseUrl = URLToolkit.buildAbsoluteURL(window.location && window.location.href || '', baseUrl);\n }\n if (nativeURL) {\n var newUrl = new URL(relativeUrl, baseUrl); // if we're a protocol-less url, remove the protocol\n // and if we're location-less, remove the location\n // otherwise, return the url unmodified\n\n if (removeLocation) {\n return newUrl.href.slice(DEFAULT_LOCATION.length);\n } else if (protocolLess) {\n return newUrl.href.slice(newUrl.protocol.length);\n }\n return newUrl.href;\n }\n return URLToolkit.buildAbsoluteURL(baseUrl, relativeUrl);\n};\nexport default resolveUrl;","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\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); }\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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n/*! @name mpd-parser @version 1.2.2 @license Apache-2.0 */\nimport resolveUrl from '@videojs/vhs-utils/es/resolve-url';\nimport window from 'global/window';\nimport { forEachMediaGroup } from '@videojs/vhs-utils/es/media-groups';\nimport decodeB64ToUint8Array from '@videojs/vhs-utils/es/decode-b64-to-uint8-array';\nimport { DOMParser } from '@xmldom/xmldom';\nvar version = \"1.2.2\";\nconst isObject = obj => {\n return !!obj && typeof obj === 'object';\n};\nconst merge = function () {\n for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {\n objects[_key] = arguments[_key];\n }\n return objects.reduce((result, source) => {\n if (typeof source !== 'object') {\n return result;\n }\n Object.keys(source).forEach(key => {\n if (Array.isArray(result[key]) && Array.isArray(source[key])) {\n result[key] = result[key].concat(source[key]);\n } else if (isObject(result[key]) && isObject(source[key])) {\n result[key] = merge(result[key], source[key]);\n } else {\n result[key] = source[key];\n }\n });\n return result;\n }, {});\n};\nconst values = o => Object.keys(o).map(k => o[k]);\nconst range = (start, end) => {\n const result = [];\n for (let i = start; i < end; i++) {\n result.push(i);\n }\n return result;\n};\nconst flatten = lists => lists.reduce((x, y) => x.concat(y), []);\nconst from = list => {\n if (!list.length) {\n return [];\n }\n const result = [];\n for (let i = 0; i < list.length; i++) {\n result.push(list[i]);\n }\n return result;\n};\nconst findIndexes = (l, key) => l.reduce((a, e, i) => {\n if (e[key]) {\n a.push(i);\n }\n return a;\n}, []);\n/**\n * Returns a union of the included lists provided each element can be identified by a key.\n *\n * @param {Array} list - list of lists to get the union of\n * @param {Function} keyFunction - the function to use as a key for each element\n *\n * @return {Array} the union of the arrays\n */\n\nconst union = (lists, keyFunction) => {\n return values(lists.reduce((acc, list) => {\n list.forEach(el => {\n acc[keyFunction(el)] = el;\n });\n return acc;\n }, {}));\n};\nvar errors = {\n INVALID_NUMBER_OF_PERIOD: 'INVALID_NUMBER_OF_PERIOD',\n INVALID_NUMBER_OF_CONTENT_STEERING: 'INVALID_NUMBER_OF_CONTENT_STEERING',\n DASH_EMPTY_MANIFEST: 'DASH_EMPTY_MANIFEST',\n DASH_INVALID_XML: 'DASH_INVALID_XML',\n NO_BASE_URL: 'NO_BASE_URL',\n MISSING_SEGMENT_INFORMATION: 'MISSING_SEGMENT_INFORMATION',\n SEGMENT_TIME_UNSPECIFIED: 'SEGMENT_TIME_UNSPECIFIED',\n UNSUPPORTED_UTC_TIMING_SCHEME: 'UNSUPPORTED_UTC_TIMING_SCHEME'\n};\n\n/**\n * @typedef {Object} SingleUri\n * @property {string} uri - relative location of segment\n * @property {string} resolvedUri - resolved location of segment\n * @property {Object} byterange - Object containing information on how to make byte range\n * requests following byte-range-spec per RFC2616.\n * @property {String} byterange.length - length of range request\n * @property {String} byterange.offset - byte offset of range request\n *\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1\n */\n\n/**\n * Converts a URLType node (5.3.9.2.3 Table 13) to a segment object\n * that conforms to how m3u8-parser is structured\n *\n * @see https://github.com/videojs/m3u8-parser\n *\n * @param {string} baseUrl - baseUrl provided by nodes\n * @param {string} source - source url for segment\n * @param {string} range - optional range used for range calls,\n * follows RFC 2616, Clause 14.35.1\n * @return {SingleUri} full segment information transformed into a format similar\n * to m3u8-parser\n */\n\nconst urlTypeToSegment = _ref => {\n let _ref$baseUrl = _ref.baseUrl,\n baseUrl = _ref$baseUrl === void 0 ? '' : _ref$baseUrl,\n _ref$source = _ref.source,\n source = _ref$source === void 0 ? '' : _ref$source,\n _ref$range = _ref.range,\n range = _ref$range === void 0 ? '' : _ref$range,\n _ref$indexRange = _ref.indexRange,\n indexRange = _ref$indexRange === void 0 ? '' : _ref$indexRange;\n const segment = {\n uri: source,\n resolvedUri: resolveUrl(baseUrl || '', source)\n };\n if (range || indexRange) {\n const rangeStr = range ? range : indexRange;\n const ranges = rangeStr.split('-'); // default to parsing this as a BigInt if possible\n\n let startRange = window.BigInt ? window.BigInt(ranges[0]) : parseInt(ranges[0], 10);\n let endRange = window.BigInt ? window.BigInt(ranges[1]) : parseInt(ranges[1], 10); // convert back to a number if less than MAX_SAFE_INTEGER\n\n if (startRange < Number.MAX_SAFE_INTEGER && typeof startRange === 'bigint') {\n startRange = Number(startRange);\n }\n if (endRange < Number.MAX_SAFE_INTEGER && typeof endRange === 'bigint') {\n endRange = Number(endRange);\n }\n let length;\n if (typeof endRange === 'bigint' || typeof startRange === 'bigint') {\n length = window.BigInt(endRange) - window.BigInt(startRange) + window.BigInt(1);\n } else {\n length = endRange - startRange + 1;\n }\n if (typeof length === 'bigint' && length < Number.MAX_SAFE_INTEGER) {\n length = Number(length);\n } // byterange should be inclusive according to\n // RFC 2616, Clause 14.35.1\n\n segment.byterange = {\n length,\n offset: startRange\n };\n }\n return segment;\n};\nconst byteRangeToString = byterange => {\n // `endRange` is one less than `offset + length` because the HTTP range\n // header uses inclusive ranges\n let endRange;\n if (typeof byterange.offset === 'bigint' || typeof byterange.length === 'bigint') {\n endRange = window.BigInt(byterange.offset) + window.BigInt(byterange.length) - window.BigInt(1);\n } else {\n endRange = byterange.offset + byterange.length - 1;\n }\n return `${byterange.offset}-${endRange}`;\n};\n\n/**\n * parse the end number attribue that can be a string\n * number, or undefined.\n *\n * @param {string|number|undefined} endNumber\n * The end number attribute.\n *\n * @return {number|null}\n * The result of parsing the end number.\n */\n\nconst parseEndNumber = endNumber => {\n if (endNumber && typeof endNumber !== 'number') {\n endNumber = parseInt(endNumber, 10);\n }\n if (isNaN(endNumber)) {\n return null;\n }\n return endNumber;\n};\n/**\n * Functions for calculating the range of available segments in static and dynamic\n * manifests.\n */\n\nconst segmentRange = {\n /**\n * Returns the entire range of available segments for a static MPD\n *\n * @param {Object} attributes\n * Inheritied MPD attributes\n * @return {{ start: number, end: number }}\n * The start and end numbers for available segments\n */\n static(attributes) {\n const duration = attributes.duration,\n _attributes$timescale = attributes.timescale,\n timescale = _attributes$timescale === void 0 ? 1 : _attributes$timescale,\n sourceDuration = attributes.sourceDuration,\n periodDuration = attributes.periodDuration;\n const endNumber = parseEndNumber(attributes.endNumber);\n const segmentDuration = duration / timescale;\n if (typeof endNumber === 'number') {\n return {\n start: 0,\n end: endNumber\n };\n }\n if (typeof periodDuration === 'number') {\n return {\n start: 0,\n end: periodDuration / segmentDuration\n };\n }\n return {\n start: 0,\n end: sourceDuration / segmentDuration\n };\n },\n /**\n * Returns the current live window range of available segments for a dynamic MPD\n *\n * @param {Object} attributes\n * Inheritied MPD attributes\n * @return {{ start: number, end: number }}\n * The start and end numbers for available segments\n */\n dynamic(attributes) {\n const NOW = attributes.NOW,\n clientOffset = attributes.clientOffset,\n availabilityStartTime = attributes.availabilityStartTime,\n _attributes$timescale2 = attributes.timescale,\n timescale = _attributes$timescale2 === void 0 ? 1 : _attributes$timescale2,\n duration = attributes.duration,\n _attributes$periodSta = attributes.periodStart,\n periodStart = _attributes$periodSta === void 0 ? 0 : _attributes$periodSta,\n _attributes$minimumUp = attributes.minimumUpdatePeriod,\n minimumUpdatePeriod = _attributes$minimumUp === void 0 ? 0 : _attributes$minimumUp,\n _attributes$timeShift = attributes.timeShiftBufferDepth,\n timeShiftBufferDepth = _attributes$timeShift === void 0 ? Infinity : _attributes$timeShift;\n const endNumber = parseEndNumber(attributes.endNumber); // clientOffset is passed in at the top level of mpd-parser and is an offset calculated\n // after retrieving UTC server time.\n\n const now = (NOW + clientOffset) / 1000; // WC stands for Wall Clock.\n // Convert the period start time to EPOCH.\n\n const periodStartWC = availabilityStartTime + periodStart; // Period end in EPOCH is manifest's retrieval time + time until next update.\n\n const periodEndWC = now + minimumUpdatePeriod;\n const periodDuration = periodEndWC - periodStartWC;\n const segmentCount = Math.ceil(periodDuration * timescale / duration);\n const availableStart = Math.floor((now - periodStartWC - timeShiftBufferDepth) * timescale / duration);\n const availableEnd = Math.floor((now - periodStartWC) * timescale / duration);\n return {\n start: Math.max(0, availableStart),\n end: typeof endNumber === 'number' ? endNumber : Math.min(segmentCount, availableEnd)\n };\n }\n};\n/**\n * Maps a range of numbers to objects with information needed to build the corresponding\n * segment list\n *\n * @name toSegmentsCallback\n * @function\n * @param {number} number\n * Number of the segment\n * @param {number} index\n * Index of the number in the range list\n * @return {{ number: Number, duration: Number, timeline: Number, time: Number }}\n * Object with segment timing and duration info\n */\n\n/**\n * Returns a callback for Array.prototype.map for mapping a range of numbers to\n * information needed to build the segment list.\n *\n * @param {Object} attributes\n * Inherited MPD attributes\n * @return {toSegmentsCallback}\n * Callback map function\n */\n\nconst toSegments = attributes => number => {\n const duration = attributes.duration,\n _attributes$timescale3 = attributes.timescale,\n timescale = _attributes$timescale3 === void 0 ? 1 : _attributes$timescale3,\n periodStart = attributes.periodStart,\n _attributes$startNumb = attributes.startNumber,\n startNumber = _attributes$startNumb === void 0 ? 1 : _attributes$startNumb;\n return {\n number: startNumber + number,\n duration: duration / timescale,\n timeline: periodStart,\n time: number * duration\n };\n};\n/**\n * Returns a list of objects containing segment timing and duration info used for\n * building the list of segments. This uses the @duration attribute specified\n * in the MPD manifest to derive the range of segments.\n *\n * @param {Object} attributes\n * Inherited MPD attributes\n * @return {{number: number, duration: number, time: number, timeline: number}[]}\n * List of Objects with segment timing and duration info\n */\n\nconst parseByDuration = attributes => {\n const type = attributes.type,\n duration = attributes.duration,\n _attributes$timescale4 = attributes.timescale,\n timescale = _attributes$timescale4 === void 0 ? 1 : _attributes$timescale4,\n periodDuration = attributes.periodDuration,\n sourceDuration = attributes.sourceDuration;\n const _segmentRange$type = segmentRange[type](attributes),\n start = _segmentRange$type.start,\n end = _segmentRange$type.end;\n const segments = range(start, end).map(toSegments(attributes));\n if (type === 'static') {\n const index = segments.length - 1; // section is either a period or the full source\n\n const sectionDuration = typeof periodDuration === 'number' ? periodDuration : sourceDuration; // final segment may be less than full segment duration\n\n segments[index].duration = sectionDuration - duration / timescale * index;\n }\n return segments;\n};\n\n/**\n * Translates SegmentBase into a set of segments.\n * (DASH SPEC Section 5.3.9.3.2) contains a set of nodes. Each\n * node should be translated into segment.\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @return {Object.} list of segments\n */\n\nconst segmentsFromBase = attributes => {\n const baseUrl = attributes.baseUrl,\n _attributes$initializ = attributes.initialization,\n initialization = _attributes$initializ === void 0 ? {} : _attributes$initializ,\n sourceDuration = attributes.sourceDuration,\n _attributes$indexRang = attributes.indexRange,\n indexRange = _attributes$indexRang === void 0 ? '' : _attributes$indexRang,\n periodStart = attributes.periodStart,\n presentationTime = attributes.presentationTime,\n _attributes$number = attributes.number,\n number = _attributes$number === void 0 ? 0 : _attributes$number,\n duration = attributes.duration; // base url is required for SegmentBase to work, per spec (Section 5.3.9.2.1)\n\n if (!baseUrl) {\n throw new Error(errors.NO_BASE_URL);\n }\n const initSegment = urlTypeToSegment({\n baseUrl,\n source: initialization.sourceURL,\n range: initialization.range\n });\n const segment = urlTypeToSegment({\n baseUrl,\n source: baseUrl,\n indexRange\n });\n segment.map = initSegment; // If there is a duration, use it, otherwise use the given duration of the source\n // (since SegmentBase is only for one total segment)\n\n if (duration) {\n const segmentTimeInfo = parseByDuration(attributes);\n if (segmentTimeInfo.length) {\n segment.duration = segmentTimeInfo[0].duration;\n segment.timeline = segmentTimeInfo[0].timeline;\n }\n } else if (sourceDuration) {\n segment.duration = sourceDuration;\n segment.timeline = periodStart;\n } // If presentation time is provided, these segments are being generated by SIDX\n // references, and should use the time provided. For the general case of SegmentBase,\n // there should only be one segment in the period, so its presentation time is the same\n // as its period start.\n\n segment.presentationTime = presentationTime || periodStart;\n segment.number = number;\n return [segment];\n};\n/**\n * Given a playlist, a sidx box, and a baseUrl, update the segment list of the playlist\n * according to the sidx information given.\n *\n * playlist.sidx has metadadata about the sidx where-as the sidx param\n * is the parsed sidx box itself.\n *\n * @param {Object} playlist the playlist to update the sidx information for\n * @param {Object} sidx the parsed sidx box\n * @return {Object} the playlist object with the updated sidx information\n */\n\nconst addSidxSegmentsToPlaylist$1 = (playlist, sidx, baseUrl) => {\n // Retain init segment information\n const initSegment = playlist.sidx.map ? playlist.sidx.map : null; // Retain source duration from initial main manifest parsing\n\n const sourceDuration = playlist.sidx.duration; // Retain source timeline\n\n const timeline = playlist.timeline || 0;\n const sidxByteRange = playlist.sidx.byterange;\n const sidxEnd = sidxByteRange.offset + sidxByteRange.length; // Retain timescale of the parsed sidx\n\n const timescale = sidx.timescale; // referenceType 1 refers to other sidx boxes\n\n const mediaReferences = sidx.references.filter(r => r.referenceType !== 1);\n const segments = [];\n const type = playlist.endList ? 'static' : 'dynamic';\n const periodStart = playlist.sidx.timeline;\n let presentationTime = periodStart;\n let number = playlist.mediaSequence || 0; // firstOffset is the offset from the end of the sidx box\n\n let startIndex; // eslint-disable-next-line\n\n if (typeof sidx.firstOffset === 'bigint') {\n startIndex = window.BigInt(sidxEnd) + sidx.firstOffset;\n } else {\n startIndex = sidxEnd + sidx.firstOffset;\n }\n for (let i = 0; i < mediaReferences.length; i++) {\n const reference = sidx.references[i]; // size of the referenced (sub)segment\n\n const size = reference.referencedSize; // duration of the referenced (sub)segment, in the timescale\n // this will be converted to seconds when generating segments\n\n const duration = reference.subsegmentDuration; // should be an inclusive range\n\n let endIndex; // eslint-disable-next-line\n\n if (typeof startIndex === 'bigint') {\n endIndex = startIndex + window.BigInt(size) - window.BigInt(1);\n } else {\n endIndex = startIndex + size - 1;\n }\n const indexRange = `${startIndex}-${endIndex}`;\n const attributes = {\n baseUrl,\n timescale,\n timeline,\n periodStart,\n presentationTime,\n number,\n duration,\n sourceDuration,\n indexRange,\n type\n };\n const segment = segmentsFromBase(attributes)[0];\n if (initSegment) {\n segment.map = initSegment;\n }\n segments.push(segment);\n if (typeof startIndex === 'bigint') {\n startIndex += window.BigInt(size);\n } else {\n startIndex += size;\n }\n presentationTime += duration / timescale;\n number++;\n }\n playlist.segments = segments;\n return playlist;\n};\nconst SUPPORTED_MEDIA_TYPES = ['AUDIO', 'SUBTITLES']; // allow one 60fps frame as leniency (arbitrarily chosen)\n\nconst TIME_FUDGE = 1 / 60;\n/**\n * Given a list of timelineStarts, combines, dedupes, and sorts them.\n *\n * @param {TimelineStart[]} timelineStarts - list of timeline starts\n *\n * @return {TimelineStart[]} the combined and deduped timeline starts\n */\n\nconst getUniqueTimelineStarts = timelineStarts => {\n return union(timelineStarts, _ref2 => {\n let timeline = _ref2.timeline;\n return timeline;\n }).sort((a, b) => a.timeline > b.timeline ? 1 : -1);\n};\n/**\n * Finds the playlist with the matching NAME attribute.\n *\n * @param {Array} playlists - playlists to search through\n * @param {string} name - the NAME attribute to search for\n *\n * @return {Object|null} the matching playlist object, or null\n */\n\nconst findPlaylistWithName = (playlists, name) => {\n for (let i = 0; i < playlists.length; i++) {\n if (playlists[i].attributes.NAME === name) {\n return playlists[i];\n }\n }\n return null;\n};\n/**\n * Gets a flattened array of media group playlists.\n *\n * @param {Object} manifest - the main manifest object\n *\n * @return {Array} the media group playlists\n */\n\nconst getMediaGroupPlaylists = manifest => {\n let mediaGroupPlaylists = [];\n forEachMediaGroup(manifest, SUPPORTED_MEDIA_TYPES, (properties, type, group, label) => {\n mediaGroupPlaylists = mediaGroupPlaylists.concat(properties.playlists || []);\n });\n return mediaGroupPlaylists;\n};\n/**\n * Updates the playlist's media sequence numbers.\n *\n * @param {Object} config - options object\n * @param {Object} config.playlist - the playlist to update\n * @param {number} config.mediaSequence - the mediaSequence number to start with\n */\n\nconst updateMediaSequenceForPlaylist = _ref3 => {\n let playlist = _ref3.playlist,\n mediaSequence = _ref3.mediaSequence;\n playlist.mediaSequence = mediaSequence;\n playlist.segments.forEach((segment, index) => {\n segment.number = playlist.mediaSequence + index;\n });\n};\n/**\n * Updates the media and discontinuity sequence numbers of newPlaylists given oldPlaylists\n * and a complete list of timeline starts.\n *\n * If no matching playlist is found, only the discontinuity sequence number of the playlist\n * will be updated.\n *\n * Since early available timelines are not supported, at least one segment must be present.\n *\n * @param {Object} config - options object\n * @param {Object[]} oldPlaylists - the old playlists to use as a reference\n * @param {Object[]} newPlaylists - the new playlists to update\n * @param {Object} timelineStarts - all timelineStarts seen in the stream to this point\n */\n\nconst updateSequenceNumbers = _ref4 => {\n let oldPlaylists = _ref4.oldPlaylists,\n newPlaylists = _ref4.newPlaylists,\n timelineStarts = _ref4.timelineStarts;\n newPlaylists.forEach(playlist => {\n playlist.discontinuitySequence = timelineStarts.findIndex(function (_ref5) {\n let timeline = _ref5.timeline;\n return timeline === playlist.timeline;\n }); // Playlists NAMEs come from DASH Representation IDs, which are mandatory\n // (see ISO_23009-1-2012 5.3.5.2).\n //\n // If the same Representation existed in a prior Period, it will retain the same NAME.\n\n const oldPlaylist = findPlaylistWithName(oldPlaylists, playlist.attributes.NAME);\n if (!oldPlaylist) {\n // Since this is a new playlist, the media sequence values can start from 0 without\n // consequence.\n return;\n } // TODO better support for live SIDX\n //\n // As of this writing, mpd-parser does not support multiperiod SIDX (in live or VOD).\n // This is evident by a playlist only having a single SIDX reference. In a multiperiod\n // playlist there would need to be multiple SIDX references. In addition, live SIDX is\n // not supported when the SIDX properties change on refreshes.\n //\n // In the future, if support needs to be added, the merging logic here can be called\n // after SIDX references are resolved. For now, exit early to prevent exceptions being\n // thrown due to undefined references.\n\n if (playlist.sidx) {\n return;\n } // Since we don't yet support early available timelines, we don't need to support\n // playlists with no segments.\n\n const firstNewSegment = playlist.segments[0];\n const oldMatchingSegmentIndex = oldPlaylist.segments.findIndex(function (oldSegment) {\n return Math.abs(oldSegment.presentationTime - firstNewSegment.presentationTime) < TIME_FUDGE;\n }); // No matching segment from the old playlist means the entire playlist was refreshed.\n // In this case the media sequence should account for this update, and the new segments\n // should be marked as discontinuous from the prior content, since the last prior\n // timeline was removed.\n\n if (oldMatchingSegmentIndex === -1) {\n updateMediaSequenceForPlaylist({\n playlist,\n mediaSequence: oldPlaylist.mediaSequence + oldPlaylist.segments.length\n });\n playlist.segments[0].discontinuity = true;\n playlist.discontinuityStarts.unshift(0); // No matching segment does not necessarily mean there's missing content.\n //\n // If the new playlist's timeline is the same as the last seen segment's timeline,\n // then a discontinuity can be added to identify that there's potentially missing\n // content. If there's no missing content, the discontinuity should still be rather\n // harmless. It's possible that if segment durations are accurate enough, that the\n // existence of a gap can be determined using the presentation times and durations,\n // but if the segment timing info is off, it may introduce more problems than simply\n // adding the discontinuity.\n //\n // If the new playlist's timeline is different from the last seen segment's timeline,\n // then a discontinuity can be added to identify that this is the first seen segment\n // of a new timeline. However, the logic at the start of this function that\n // determined the disconinuity sequence by timeline index is now off by one (the\n // discontinuity of the newest timeline hasn't yet fallen off the manifest...since\n // we added it), so the disconinuity sequence must be decremented.\n //\n // A period may also have a duration of zero, so the case of no segments is handled\n // here even though we don't yet support early available periods.\n\n if (!oldPlaylist.segments.length && playlist.timeline > oldPlaylist.timeline || oldPlaylist.segments.length && playlist.timeline > oldPlaylist.segments[oldPlaylist.segments.length - 1].timeline) {\n playlist.discontinuitySequence--;\n }\n return;\n } // If the first segment matched with a prior segment on a discontinuity (it's matching\n // on the first segment of a period), then the discontinuitySequence shouldn't be the\n // timeline's matching one, but instead should be the one prior, and the first segment\n // of the new manifest should be marked with a discontinuity.\n //\n // The reason for this special case is that discontinuity sequence shows how many\n // discontinuities have fallen off of the playlist, and discontinuities are marked on\n // the first segment of a new \"timeline.\" Because of this, while DASH will retain that\n // Period while the \"timeline\" exists, HLS keeps track of it via the discontinuity\n // sequence, and that first segment is an indicator, but can be removed before that\n // timeline is gone.\n\n const oldMatchingSegment = oldPlaylist.segments[oldMatchingSegmentIndex];\n if (oldMatchingSegment.discontinuity && !firstNewSegment.discontinuity) {\n firstNewSegment.discontinuity = true;\n playlist.discontinuityStarts.unshift(0);\n playlist.discontinuitySequence--;\n }\n updateMediaSequenceForPlaylist({\n playlist,\n mediaSequence: oldPlaylist.segments[oldMatchingSegmentIndex].number\n });\n });\n};\n/**\n * Given an old parsed manifest object and a new parsed manifest object, updates the\n * sequence and timing values within the new manifest to ensure that it lines up with the\n * old.\n *\n * @param {Array} oldManifest - the old main manifest object\n * @param {Array} newManifest - the new main manifest object\n *\n * @return {Object} the updated new manifest object\n */\n\nconst positionManifestOnTimeline = _ref6 => {\n let oldManifest = _ref6.oldManifest,\n newManifest = _ref6.newManifest;\n // Starting from v4.1.2 of the IOP, section 4.4.3.3 states:\n //\n // \"MPD@availabilityStartTime and Period@start shall not be changed over MPD updates.\"\n //\n // This was added from https://github.com/Dash-Industry-Forum/DASH-IF-IOP/issues/160\n //\n // Because of this change, and the difficulty of supporting periods with changing start\n // times, periods with changing start times are not supported. This makes the logic much\n // simpler, since periods with the same start time can be considerred the same period\n // across refreshes.\n //\n // To give an example as to the difficulty of handling periods where the start time may\n // change, if a single period manifest is refreshed with another manifest with a single\n // period, and both the start and end times are increased, then the only way to determine\n // if it's a new period or an old one that has changed is to look through the segments of\n // each playlist and determine the presentation time bounds to find a match. In addition,\n // if the period start changed to exceed the old period end, then there would be no\n // match, and it would not be possible to determine whether the refreshed period is a new\n // one or the old one.\n const oldPlaylists = oldManifest.playlists.concat(getMediaGroupPlaylists(oldManifest));\n const newPlaylists = newManifest.playlists.concat(getMediaGroupPlaylists(newManifest)); // Save all seen timelineStarts to the new manifest. Although this potentially means that\n // there's a \"memory leak\" in that it will never stop growing, in reality, only a couple\n // of properties are saved for each seen Period. Even long running live streams won't\n // generate too many Periods, unless the stream is watched for decades. In the future,\n // this can be optimized by mapping to discontinuity sequence numbers for each timeline,\n // but it may not become an issue, and the additional info can be useful for debugging.\n\n newManifest.timelineStarts = getUniqueTimelineStarts([oldManifest.timelineStarts, newManifest.timelineStarts]);\n updateSequenceNumbers({\n oldPlaylists,\n newPlaylists,\n timelineStarts: newManifest.timelineStarts\n });\n return newManifest;\n};\nconst generateSidxKey = sidx => sidx && sidx.uri + '-' + byteRangeToString(sidx.byterange);\nconst mergeDiscontiguousPlaylists = playlists => {\n // Break out playlists into groups based on their baseUrl\n const playlistsByBaseUrl = playlists.reduce(function (acc, cur) {\n if (!acc[cur.attributes.baseUrl]) {\n acc[cur.attributes.baseUrl] = [];\n }\n acc[cur.attributes.baseUrl].push(cur);\n return acc;\n }, {});\n let allPlaylists = [];\n Object.values(playlistsByBaseUrl).forEach(playlistGroup => {\n const mergedPlaylists = values(playlistGroup.reduce((acc, playlist) => {\n // assuming playlist IDs are the same across periods\n // TODO: handle multiperiod where representation sets are not the same\n // across periods\n const name = playlist.attributes.id + (playlist.attributes.lang || '');\n if (!acc[name]) {\n // First Period\n acc[name] = playlist;\n acc[name].attributes.timelineStarts = [];\n } else {\n // Subsequent Periods\n if (playlist.segments) {\n // first segment of subsequent periods signal a discontinuity\n if (playlist.segments[0]) {\n playlist.segments[0].discontinuity = true;\n }\n acc[name].segments.push(...playlist.segments);\n } // bubble up contentProtection, this assumes all DRM content\n // has the same contentProtection\n\n if (playlist.attributes.contentProtection) {\n acc[name].attributes.contentProtection = playlist.attributes.contentProtection;\n }\n }\n acc[name].attributes.timelineStarts.push({\n // Although they represent the same number, it's important to have both to make it\n // compatible with HLS potentially having a similar attribute.\n start: playlist.attributes.periodStart,\n timeline: playlist.attributes.periodStart\n });\n return acc;\n }, {}));\n allPlaylists = allPlaylists.concat(mergedPlaylists);\n });\n return allPlaylists.map(playlist => {\n playlist.discontinuityStarts = findIndexes(playlist.segments || [], 'discontinuity');\n return playlist;\n });\n};\nconst addSidxSegmentsToPlaylist = (playlist, sidxMapping) => {\n const sidxKey = generateSidxKey(playlist.sidx);\n const sidxMatch = sidxKey && sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx;\n if (sidxMatch) {\n addSidxSegmentsToPlaylist$1(playlist, sidxMatch, playlist.sidx.resolvedUri);\n }\n return playlist;\n};\nconst addSidxSegmentsToPlaylists = function (playlists) {\n let sidxMapping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!Object.keys(sidxMapping).length) {\n return playlists;\n }\n for (const i in playlists) {\n playlists[i] = addSidxSegmentsToPlaylist(playlists[i], sidxMapping);\n }\n return playlists;\n};\nconst formatAudioPlaylist = (_ref7, isAudioOnly) => {\n let attributes = _ref7.attributes,\n segments = _ref7.segments,\n sidx = _ref7.sidx,\n mediaSequence = _ref7.mediaSequence,\n discontinuitySequence = _ref7.discontinuitySequence,\n discontinuityStarts = _ref7.discontinuityStarts;\n const playlist = {\n attributes: {\n NAME: attributes.id,\n BANDWIDTH: attributes.bandwidth,\n CODECS: attributes.codecs,\n ['PROGRAM-ID']: 1\n },\n uri: '',\n endList: attributes.type === 'static',\n timeline: attributes.periodStart,\n resolvedUri: attributes.baseUrl || '',\n targetDuration: attributes.duration,\n discontinuitySequence,\n discontinuityStarts,\n timelineStarts: attributes.timelineStarts,\n mediaSequence,\n segments\n };\n if (attributes.contentProtection) {\n playlist.contentProtection = attributes.contentProtection;\n }\n if (attributes.serviceLocation) {\n playlist.attributes.serviceLocation = attributes.serviceLocation;\n }\n if (sidx) {\n playlist.sidx = sidx;\n }\n if (isAudioOnly) {\n playlist.attributes.AUDIO = 'audio';\n playlist.attributes.SUBTITLES = 'subs';\n }\n return playlist;\n};\nconst formatVttPlaylist = _ref8 => {\n let attributes = _ref8.attributes,\n segments = _ref8.segments,\n mediaSequence = _ref8.mediaSequence,\n discontinuityStarts = _ref8.discontinuityStarts,\n discontinuitySequence = _ref8.discontinuitySequence;\n if (typeof segments === 'undefined') {\n // vtt tracks may use single file in BaseURL\n segments = [{\n uri: attributes.baseUrl,\n timeline: attributes.periodStart,\n resolvedUri: attributes.baseUrl || '',\n duration: attributes.sourceDuration,\n number: 0\n }]; // targetDuration should be the same duration as the only segment\n\n attributes.duration = attributes.sourceDuration;\n }\n const m3u8Attributes = {\n NAME: attributes.id,\n BANDWIDTH: attributes.bandwidth,\n ['PROGRAM-ID']: 1\n };\n if (attributes.codecs) {\n m3u8Attributes.CODECS = attributes.codecs;\n }\n const vttPlaylist = {\n attributes: m3u8Attributes,\n uri: '',\n endList: attributes.type === 'static',\n timeline: attributes.periodStart,\n resolvedUri: attributes.baseUrl || '',\n targetDuration: attributes.duration,\n timelineStarts: attributes.timelineStarts,\n discontinuityStarts,\n discontinuitySequence,\n mediaSequence,\n segments\n };\n if (attributes.serviceLocation) {\n vttPlaylist.attributes.serviceLocation = attributes.serviceLocation;\n }\n return vttPlaylist;\n};\nconst organizeAudioPlaylists = function (playlists) {\n let sidxMapping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let isAudioOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n let mainPlaylist;\n const formattedPlaylists = playlists.reduce((a, playlist) => {\n const role = playlist.attributes.role && playlist.attributes.role.value || '';\n const language = playlist.attributes.lang || '';\n let label = playlist.attributes.label || 'main';\n if (language && !playlist.attributes.label) {\n const roleLabel = role ? ` (${role})` : '';\n label = `${playlist.attributes.lang}${roleLabel}`;\n }\n if (!a[label]) {\n a[label] = {\n language,\n autoselect: true,\n default: role === 'main',\n playlists: [],\n uri: ''\n };\n }\n const formatted = addSidxSegmentsToPlaylist(formatAudioPlaylist(playlist, isAudioOnly), sidxMapping);\n a[label].playlists.push(formatted);\n if (typeof mainPlaylist === 'undefined' && role === 'main') {\n mainPlaylist = playlist;\n mainPlaylist.default = true;\n }\n return a;\n }, {}); // if no playlists have role \"main\", mark the first as main\n\n if (!mainPlaylist) {\n const firstLabel = Object.keys(formattedPlaylists)[0];\n formattedPlaylists[firstLabel].default = true;\n }\n return formattedPlaylists;\n};\nconst organizeVttPlaylists = function (playlists) {\n let sidxMapping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return playlists.reduce((a, playlist) => {\n const label = playlist.attributes.label || playlist.attributes.lang || 'text';\n if (!a[label]) {\n a[label] = {\n language: label,\n default: false,\n autoselect: false,\n playlists: [],\n uri: ''\n };\n }\n a[label].playlists.push(addSidxSegmentsToPlaylist(formatVttPlaylist(playlist), sidxMapping));\n return a;\n }, {});\n};\nconst organizeCaptionServices = captionServices => captionServices.reduce((svcObj, svc) => {\n if (!svc) {\n return svcObj;\n }\n svc.forEach(service => {\n const channel = service.channel,\n language = service.language;\n svcObj[language] = {\n autoselect: false,\n default: false,\n instreamId: channel,\n language\n };\n if (service.hasOwnProperty('aspectRatio')) {\n svcObj[language].aspectRatio = service.aspectRatio;\n }\n if (service.hasOwnProperty('easyReader')) {\n svcObj[language].easyReader = service.easyReader;\n }\n if (service.hasOwnProperty('3D')) {\n svcObj[language]['3D'] = service['3D'];\n }\n });\n return svcObj;\n}, {});\nconst formatVideoPlaylist = _ref9 => {\n let attributes = _ref9.attributes,\n segments = _ref9.segments,\n sidx = _ref9.sidx,\n discontinuityStarts = _ref9.discontinuityStarts;\n const playlist = {\n attributes: {\n NAME: attributes.id,\n AUDIO: 'audio',\n SUBTITLES: 'subs',\n RESOLUTION: {\n width: attributes.width,\n height: attributes.height\n },\n CODECS: attributes.codecs,\n BANDWIDTH: attributes.bandwidth,\n ['PROGRAM-ID']: 1\n },\n uri: '',\n endList: attributes.type === 'static',\n timeline: attributes.periodStart,\n resolvedUri: attributes.baseUrl || '',\n targetDuration: attributes.duration,\n discontinuityStarts,\n timelineStarts: attributes.timelineStarts,\n segments\n };\n if (attributes.frameRate) {\n playlist.attributes['FRAME-RATE'] = attributes.frameRate;\n }\n if (attributes.contentProtection) {\n playlist.contentProtection = attributes.contentProtection;\n }\n if (attributes.serviceLocation) {\n playlist.attributes.serviceLocation = attributes.serviceLocation;\n }\n if (sidx) {\n playlist.sidx = sidx;\n }\n return playlist;\n};\nconst videoOnly = _ref10 => {\n let attributes = _ref10.attributes;\n return attributes.mimeType === 'video/mp4' || attributes.mimeType === 'video/webm' || attributes.contentType === 'video';\n};\nconst audioOnly = _ref11 => {\n let attributes = _ref11.attributes;\n return attributes.mimeType === 'audio/mp4' || attributes.mimeType === 'audio/webm' || attributes.contentType === 'audio';\n};\nconst vttOnly = _ref12 => {\n let attributes = _ref12.attributes;\n return attributes.mimeType === 'text/vtt' || attributes.contentType === 'text';\n};\n/**\n * Contains start and timeline properties denoting a timeline start. For DASH, these will\n * be the same number.\n *\n * @typedef {Object} TimelineStart\n * @property {number} start - the start time of the timeline\n * @property {number} timeline - the timeline number\n */\n\n/**\n * Adds appropriate media and discontinuity sequence values to the segments and playlists.\n *\n * Throughout mpd-parser, the `number` attribute is used in relation to `startNumber`, a\n * DASH specific attribute used in constructing segment URI's from templates. However, from\n * an HLS perspective, the `number` attribute on a segment would be its `mediaSequence`\n * value, which should start at the original media sequence value (or 0) and increment by 1\n * for each segment thereafter. Since DASH's `startNumber` values are independent per\n * period, it doesn't make sense to use it for `number`. Instead, assume everything starts\n * from a 0 mediaSequence value and increment from there.\n *\n * Note that VHS currently doesn't use the `number` property, but it can be helpful for\n * debugging and making sense of the manifest.\n *\n * For live playlists, to account for values increasing in manifests when periods are\n * removed on refreshes, merging logic should be used to update the numbers to their\n * appropriate values (to ensure they're sequential and increasing).\n *\n * @param {Object[]} playlists - the playlists to update\n * @param {TimelineStart[]} timelineStarts - the timeline starts for the manifest\n */\n\nconst addMediaSequenceValues = (playlists, timelineStarts) => {\n // increment all segments sequentially\n playlists.forEach(playlist => {\n playlist.mediaSequence = 0;\n playlist.discontinuitySequence = timelineStarts.findIndex(function (_ref13) {\n let timeline = _ref13.timeline;\n return timeline === playlist.timeline;\n });\n if (!playlist.segments) {\n return;\n }\n playlist.segments.forEach((segment, index) => {\n segment.number = index;\n });\n });\n};\n/**\n * Given a media group object, flattens all playlists within the media group into a single\n * array.\n *\n * @param {Object} mediaGroupObject - the media group object\n *\n * @return {Object[]}\n * The media group playlists\n */\n\nconst flattenMediaGroupPlaylists = mediaGroupObject => {\n if (!mediaGroupObject) {\n return [];\n }\n return Object.keys(mediaGroupObject).reduce((acc, label) => {\n const labelContents = mediaGroupObject[label];\n return acc.concat(labelContents.playlists);\n }, []);\n};\nconst toM3u8 = _ref14 => {\n let dashPlaylists = _ref14.dashPlaylists,\n locations = _ref14.locations,\n contentSteering = _ref14.contentSteering,\n _ref14$sidxMapping = _ref14.sidxMapping,\n sidxMapping = _ref14$sidxMapping === void 0 ? {} : _ref14$sidxMapping,\n previousManifest = _ref14.previousManifest,\n eventStream = _ref14.eventStream;\n if (!dashPlaylists.length) {\n return {};\n } // grab all main manifest attributes\n\n const _dashPlaylists$0$attr = dashPlaylists[0].attributes,\n duration = _dashPlaylists$0$attr.sourceDuration,\n type = _dashPlaylists$0$attr.type,\n suggestedPresentationDelay = _dashPlaylists$0$attr.suggestedPresentationDelay,\n minimumUpdatePeriod = _dashPlaylists$0$attr.minimumUpdatePeriod;\n const videoPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(videoOnly)).map(formatVideoPlaylist);\n const audioPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(audioOnly));\n const vttPlaylists = mergeDiscontiguousPlaylists(dashPlaylists.filter(vttOnly));\n const captions = dashPlaylists.map(playlist => playlist.attributes.captionServices).filter(Boolean);\n const manifest = {\n allowCache: true,\n discontinuityStarts: [],\n segments: [],\n endList: true,\n mediaGroups: {\n AUDIO: {},\n VIDEO: {},\n ['CLOSED-CAPTIONS']: {},\n SUBTITLES: {}\n },\n uri: '',\n duration,\n playlists: addSidxSegmentsToPlaylists(videoPlaylists, sidxMapping)\n };\n if (minimumUpdatePeriod >= 0) {\n manifest.minimumUpdatePeriod = minimumUpdatePeriod * 1000;\n }\n if (locations) {\n manifest.locations = locations;\n }\n if (contentSteering) {\n manifest.contentSteering = contentSteering;\n }\n if (type === 'dynamic') {\n manifest.suggestedPresentationDelay = suggestedPresentationDelay;\n }\n if (eventStream && eventStream.length > 0) {\n manifest.eventStream = eventStream;\n }\n const isAudioOnly = manifest.playlists.length === 0;\n const organizedAudioGroup = audioPlaylists.length ? organizeAudioPlaylists(audioPlaylists, sidxMapping, isAudioOnly) : null;\n const organizedVttGroup = vttPlaylists.length ? organizeVttPlaylists(vttPlaylists, sidxMapping) : null;\n const formattedPlaylists = videoPlaylists.concat(flattenMediaGroupPlaylists(organizedAudioGroup), flattenMediaGroupPlaylists(organizedVttGroup));\n const playlistTimelineStarts = formattedPlaylists.map(_ref15 => {\n let timelineStarts = _ref15.timelineStarts;\n return timelineStarts;\n });\n manifest.timelineStarts = getUniqueTimelineStarts(playlistTimelineStarts);\n addMediaSequenceValues(formattedPlaylists, manifest.timelineStarts);\n if (organizedAudioGroup) {\n manifest.mediaGroups.AUDIO.audio = organizedAudioGroup;\n }\n if (organizedVttGroup) {\n manifest.mediaGroups.SUBTITLES.subs = organizedVttGroup;\n }\n if (captions.length) {\n manifest.mediaGroups['CLOSED-CAPTIONS'].cc = organizeCaptionServices(captions);\n }\n if (previousManifest) {\n return positionManifestOnTimeline({\n oldManifest: previousManifest,\n newManifest: manifest\n });\n }\n return manifest;\n};\n\n/**\n * Calculates the R (repetition) value for a live stream (for the final segment\n * in a manifest where the r value is negative 1)\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @param {number} time\n * current time (typically the total time up until the final segment)\n * @param {number} duration\n * duration property for the given \n *\n * @return {number}\n * R value to reach the end of the given period\n */\nconst getLiveRValue = (attributes, time, duration) => {\n const NOW = attributes.NOW,\n clientOffset = attributes.clientOffset,\n availabilityStartTime = attributes.availabilityStartTime,\n _attributes$timescale5 = attributes.timescale,\n timescale = _attributes$timescale5 === void 0 ? 1 : _attributes$timescale5,\n _attributes$periodSta2 = attributes.periodStart,\n periodStart = _attributes$periodSta2 === void 0 ? 0 : _attributes$periodSta2,\n _attributes$minimumUp2 = attributes.minimumUpdatePeriod,\n minimumUpdatePeriod = _attributes$minimumUp2 === void 0 ? 0 : _attributes$minimumUp2;\n const now = (NOW + clientOffset) / 1000;\n const periodStartWC = availabilityStartTime + periodStart;\n const periodEndWC = now + minimumUpdatePeriod;\n const periodDuration = periodEndWC - periodStartWC;\n return Math.ceil((periodDuration * timescale - time) / duration);\n};\n/**\n * Uses information provided by SegmentTemplate.SegmentTimeline to determine segment\n * timing and duration\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @param {Object[]} segmentTimeline\n * List of objects representing the attributes of each S element contained within\n *\n * @return {{number: number, duration: number, time: number, timeline: number}[]}\n * List of Objects with segment timing and duration info\n */\n\nconst parseByTimeline = (attributes, segmentTimeline) => {\n const type = attributes.type,\n _attributes$minimumUp3 = attributes.minimumUpdatePeriod,\n minimumUpdatePeriod = _attributes$minimumUp3 === void 0 ? 0 : _attributes$minimumUp3,\n _attributes$media = attributes.media,\n media = _attributes$media === void 0 ? '' : _attributes$media,\n sourceDuration = attributes.sourceDuration,\n _attributes$timescale6 = attributes.timescale,\n timescale = _attributes$timescale6 === void 0 ? 1 : _attributes$timescale6,\n _attributes$startNumb2 = attributes.startNumber,\n startNumber = _attributes$startNumb2 === void 0 ? 1 : _attributes$startNumb2,\n timeline = attributes.periodStart;\n const segments = [];\n let time = -1;\n for (let sIndex = 0; sIndex < segmentTimeline.length; sIndex++) {\n const S = segmentTimeline[sIndex];\n const duration = S.d;\n const repeat = S.r || 0;\n const segmentTime = S.t || 0;\n if (time < 0) {\n // first segment\n time = segmentTime;\n }\n if (segmentTime && segmentTime > time) {\n // discontinuity\n // TODO: How to handle this type of discontinuity\n // timeline++ here would treat it like HLS discontuity and content would\n // get appended without gap\n // E.G.\n // \n // \n // \n // \n // would have $Time$ values of [0, 1, 2, 5]\n // should this be appened at time positions [0, 1, 2, 3],(#EXT-X-DISCONTINUITY)\n // or [0, 1, 2, gap, gap, 5]? (#EXT-X-GAP)\n // does the value of sourceDuration consider this when calculating arbitrary\n // negative @r repeat value?\n // E.G. Same elements as above with this added at the end\n // \n // with a sourceDuration of 10\n // Would the 2 gaps be included in the time duration calculations resulting in\n // 8 segments with $Time$ values of [0, 1, 2, 5, 6, 7, 8, 9] or 10 segments\n // with $Time$ values of [0, 1, 2, 5, 6, 7, 8, 9, 10, 11] ?\n time = segmentTime;\n }\n let count;\n if (repeat < 0) {\n const nextS = sIndex + 1;\n if (nextS === segmentTimeline.length) {\n // last segment\n if (type === 'dynamic' && minimumUpdatePeriod > 0 && media.indexOf('$Number$') > 0) {\n count = getLiveRValue(attributes, time, duration);\n } else {\n // TODO: This may be incorrect depending on conclusion of TODO above\n count = (sourceDuration * timescale - time) / duration;\n }\n } else {\n count = (segmentTimeline[nextS].t - time) / duration;\n }\n } else {\n count = repeat + 1;\n }\n const end = startNumber + segments.length + count;\n let number = startNumber + segments.length;\n while (number < end) {\n segments.push({\n number,\n duration: duration / timescale,\n time,\n timeline\n });\n time += duration;\n number++;\n }\n }\n return segments;\n};\nconst identifierPattern = /\\$([A-z]*)(?:(%0)([0-9]+)d)?\\$/g;\n/**\n * Replaces template identifiers with corresponding values. To be used as the callback\n * for String.prototype.replace\n *\n * @name replaceCallback\n * @function\n * @param {string} match\n * Entire match of identifier\n * @param {string} identifier\n * Name of matched identifier\n * @param {string} format\n * Format tag string. Its presence indicates that padding is expected\n * @param {string} width\n * Desired length of the replaced value. Values less than this width shall be left\n * zero padded\n * @return {string}\n * Replacement for the matched identifier\n */\n\n/**\n * Returns a function to be used as a callback for String.prototype.replace to replace\n * template identifiers\n *\n * @param {Obect} values\n * Object containing values that shall be used to replace known identifiers\n * @param {number} values.RepresentationID\n * Value of the Representation@id attribute\n * @param {number} values.Number\n * Number of the corresponding segment\n * @param {number} values.Bandwidth\n * Value of the Representation@bandwidth attribute.\n * @param {number} values.Time\n * Timestamp value of the corresponding segment\n * @return {replaceCallback}\n * Callback to be used with String.prototype.replace to replace identifiers\n */\n\nconst identifierReplacement = values => (match, identifier, format, width) => {\n if (match === '$$') {\n // escape sequence\n return '$';\n }\n if (typeof values[identifier] === 'undefined') {\n return match;\n }\n const value = '' + values[identifier];\n if (identifier === 'RepresentationID') {\n // Format tag shall not be present with RepresentationID\n return value;\n }\n if (!format) {\n width = 1;\n } else {\n width = parseInt(width, 10);\n }\n if (value.length >= width) {\n return value;\n }\n return `${new Array(width - value.length + 1).join('0')}${value}`;\n};\n/**\n * Constructs a segment url from a template string\n *\n * @param {string} url\n * Template string to construct url from\n * @param {Obect} values\n * Object containing values that shall be used to replace known identifiers\n * @param {number} values.RepresentationID\n * Value of the Representation@id attribute\n * @param {number} values.Number\n * Number of the corresponding segment\n * @param {number} values.Bandwidth\n * Value of the Representation@bandwidth attribute.\n * @param {number} values.Time\n * Timestamp value of the corresponding segment\n * @return {string}\n * Segment url with identifiers replaced\n */\n\nconst constructTemplateUrl = (url, values) => url.replace(identifierPattern, identifierReplacement(values));\n/**\n * Generates a list of objects containing timing and duration information about each\n * segment needed to generate segment uris and the complete segment object\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @param {Object[]|undefined} segmentTimeline\n * List of objects representing the attributes of each S element contained within\n * the SegmentTimeline element\n * @return {{number: number, duration: number, time: number, timeline: number}[]}\n * List of Objects with segment timing and duration info\n */\n\nconst parseTemplateInfo = (attributes, segmentTimeline) => {\n if (!attributes.duration && !segmentTimeline) {\n // if neither @duration or SegmentTimeline are present, then there shall be exactly\n // one media segment\n return [{\n number: attributes.startNumber || 1,\n duration: attributes.sourceDuration,\n time: 0,\n timeline: attributes.periodStart\n }];\n }\n if (attributes.duration) {\n return parseByDuration(attributes);\n }\n return parseByTimeline(attributes, segmentTimeline);\n};\n/**\n * Generates a list of segments using information provided by the SegmentTemplate element\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @param {Object[]|undefined} segmentTimeline\n * List of objects representing the attributes of each S element contained within\n * the SegmentTimeline element\n * @return {Object[]}\n * List of segment objects\n */\n\nconst segmentsFromTemplate = (attributes, segmentTimeline) => {\n const templateValues = {\n RepresentationID: attributes.id,\n Bandwidth: attributes.bandwidth || 0\n };\n const _attributes$initializ2 = attributes.initialization,\n initialization = _attributes$initializ2 === void 0 ? {\n sourceURL: '',\n range: ''\n } : _attributes$initializ2;\n const mapSegment = urlTypeToSegment({\n baseUrl: attributes.baseUrl,\n source: constructTemplateUrl(initialization.sourceURL, templateValues),\n range: initialization.range\n });\n const segments = parseTemplateInfo(attributes, segmentTimeline);\n return segments.map(segment => {\n templateValues.Number = segment.number;\n templateValues.Time = segment.time;\n const uri = constructTemplateUrl(attributes.media || '', templateValues); // See DASH spec section 5.3.9.2.2\n // - if timescale isn't present on any level, default to 1.\n\n const timescale = attributes.timescale || 1; // - if presentationTimeOffset isn't present on any level, default to 0\n\n const presentationTimeOffset = attributes.presentationTimeOffset || 0;\n const presentationTime =\n // Even if the @t attribute is not specified for the segment, segment.time is\n // calculated in mpd-parser prior to this, so it's assumed to be available.\n attributes.periodStart + (segment.time - presentationTimeOffset) / timescale;\n const map = {\n uri,\n timeline: segment.timeline,\n duration: segment.duration,\n resolvedUri: resolveUrl(attributes.baseUrl || '', uri),\n map: mapSegment,\n number: segment.number,\n presentationTime\n };\n return map;\n });\n};\n\n/**\n * Converts a (of type URLType from the DASH spec 5.3.9.2 Table 14)\n * to an object that matches the output of a segment in videojs/mpd-parser\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @param {Object} segmentUrl\n * node to translate into a segment object\n * @return {Object} translated segment object\n */\n\nconst SegmentURLToSegmentObject = (attributes, segmentUrl) => {\n const baseUrl = attributes.baseUrl,\n _attributes$initializ3 = attributes.initialization,\n initialization = _attributes$initializ3 === void 0 ? {} : _attributes$initializ3;\n const initSegment = urlTypeToSegment({\n baseUrl,\n source: initialization.sourceURL,\n range: initialization.range\n });\n const segment = urlTypeToSegment({\n baseUrl,\n source: segmentUrl.media,\n range: segmentUrl.mediaRange\n });\n segment.map = initSegment;\n return segment;\n};\n/**\n * Generates a list of segments using information provided by the SegmentList element\n * SegmentList (DASH SPEC Section 5.3.9.3.2) contains a set of nodes. Each\n * node should be translated into segment.\n *\n * @param {Object} attributes\n * Object containing all inherited attributes from parent elements with attribute\n * names as keys\n * @param {Object[]|undefined} segmentTimeline\n * List of objects representing the attributes of each S element contained within\n * the SegmentTimeline element\n * @return {Object.} list of segments\n */\n\nconst segmentsFromList = (attributes, segmentTimeline) => {\n const duration = attributes.duration,\n _attributes$segmentUr = attributes.segmentUrls,\n segmentUrls = _attributes$segmentUr === void 0 ? [] : _attributes$segmentUr,\n periodStart = attributes.periodStart; // Per spec (5.3.9.2.1) no way to determine segment duration OR\n // if both SegmentTimeline and @duration are defined, it is outside of spec.\n\n if (!duration && !segmentTimeline || duration && segmentTimeline) {\n throw new Error(errors.SEGMENT_TIME_UNSPECIFIED);\n }\n const segmentUrlMap = segmentUrls.map(segmentUrlObject => SegmentURLToSegmentObject(attributes, segmentUrlObject));\n let segmentTimeInfo;\n if (duration) {\n segmentTimeInfo = parseByDuration(attributes);\n }\n if (segmentTimeline) {\n segmentTimeInfo = parseByTimeline(attributes, segmentTimeline);\n }\n const segments = segmentTimeInfo.map((segmentTime, index) => {\n if (segmentUrlMap[index]) {\n const segment = segmentUrlMap[index]; // See DASH spec section 5.3.9.2.2\n // - if timescale isn't present on any level, default to 1.\n\n const timescale = attributes.timescale || 1; // - if presentationTimeOffset isn't present on any level, default to 0\n\n const presentationTimeOffset = attributes.presentationTimeOffset || 0;\n segment.timeline = segmentTime.timeline;\n segment.duration = segmentTime.duration;\n segment.number = segmentTime.number;\n segment.presentationTime = periodStart + (segmentTime.time - presentationTimeOffset) / timescale;\n return segment;\n } // Since we're mapping we should get rid of any blank segments (in case\n // the given SegmentTimeline is handling for more elements than we have\n // SegmentURLs for).\n }).filter(segment => segment);\n return segments;\n};\nconst generateSegments = _ref16 => {\n let attributes = _ref16.attributes,\n segmentInfo = _ref16.segmentInfo;\n let segmentAttributes;\n let segmentsFn;\n if (segmentInfo.template) {\n segmentsFn = segmentsFromTemplate;\n segmentAttributes = merge(attributes, segmentInfo.template);\n } else if (segmentInfo.base) {\n segmentsFn = segmentsFromBase;\n segmentAttributes = merge(attributes, segmentInfo.base);\n } else if (segmentInfo.list) {\n segmentsFn = segmentsFromList;\n segmentAttributes = merge(attributes, segmentInfo.list);\n }\n const segmentsInfo = {\n attributes\n };\n if (!segmentsFn) {\n return segmentsInfo;\n }\n const segments = segmentsFn(segmentAttributes, segmentInfo.segmentTimeline); // The @duration attribute will be used to determin the playlist's targetDuration which\n // must be in seconds. Since we've generated the segment list, we no longer need\n // @duration to be in @timescale units, so we can convert it here.\n\n if (segmentAttributes.duration) {\n const _segmentAttributes = segmentAttributes,\n duration = _segmentAttributes.duration,\n _segmentAttributes$ti = _segmentAttributes.timescale,\n timescale = _segmentAttributes$ti === void 0 ? 1 : _segmentAttributes$ti;\n segmentAttributes.duration = duration / timescale;\n } else if (segments.length) {\n // if there is no @duration attribute, use the largest segment duration as\n // as target duration\n segmentAttributes.duration = segments.reduce((max, segment) => {\n return Math.max(max, Math.ceil(segment.duration));\n }, 0);\n } else {\n segmentAttributes.duration = 0;\n }\n segmentsInfo.attributes = segmentAttributes;\n segmentsInfo.segments = segments; // This is a sidx box without actual segment information\n\n if (segmentInfo.base && segmentAttributes.indexRange) {\n segmentsInfo.sidx = segments[0];\n segmentsInfo.segments = [];\n }\n return segmentsInfo;\n};\nconst toPlaylists = representations => representations.map(generateSegments);\nconst findChildren = (element, name) => from(element.childNodes).filter(_ref17 => {\n let tagName = _ref17.tagName;\n return tagName === name;\n});\nconst getContent = element => element.textContent.trim();\n\n/**\n * Converts the provided string that may contain a division operation to a number.\n *\n * @param {string} value - the provided string value\n *\n * @return {number} the parsed string value\n */\nconst parseDivisionValue = value => {\n return parseFloat(value.split('/').reduce((prev, current) => prev / current));\n};\nconst parseDuration = str => {\n const SECONDS_IN_YEAR = 365 * 24 * 60 * 60;\n const SECONDS_IN_MONTH = 30 * 24 * 60 * 60;\n const SECONDS_IN_DAY = 24 * 60 * 60;\n const SECONDS_IN_HOUR = 60 * 60;\n const SECONDS_IN_MIN = 60; // P10Y10M10DT10H10M10.1S\n\n const durationRegex = /P(?:(\\d*)Y)?(?:(\\d*)M)?(?:(\\d*)D)?(?:T(?:(\\d*)H)?(?:(\\d*)M)?(?:([\\d.]*)S)?)?/;\n const match = durationRegex.exec(str);\n if (!match) {\n return 0;\n }\n const _match$slice = match.slice(1),\n _match$slice2 = _slicedToArray(_match$slice, 6),\n year = _match$slice2[0],\n month = _match$slice2[1],\n day = _match$slice2[2],\n hour = _match$slice2[3],\n minute = _match$slice2[4],\n second = _match$slice2[5];\n return parseFloat(year || 0) * SECONDS_IN_YEAR + parseFloat(month || 0) * SECONDS_IN_MONTH + parseFloat(day || 0) * SECONDS_IN_DAY + parseFloat(hour || 0) * SECONDS_IN_HOUR + parseFloat(minute || 0) * SECONDS_IN_MIN + parseFloat(second || 0);\n};\nconst parseDate = str => {\n // Date format without timezone according to ISO 8601\n // YYY-MM-DDThh:mm:ss.ssssss\n const dateRegex = /^\\d+-\\d+-\\d+T\\d+:\\d+:\\d+(\\.\\d+)?$/; // If the date string does not specifiy a timezone, we must specifiy UTC. This is\n // expressed by ending with 'Z'\n\n if (dateRegex.test(str)) {\n str += 'Z';\n }\n return Date.parse(str);\n};\nconst parsers = {\n /**\n * Specifies the duration of the entire Media Presentation. Format is a duration string\n * as specified in ISO 8601\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The duration in seconds\n */\n mediaPresentationDuration(value) {\n return parseDuration(value);\n },\n /**\n * Specifies the Segment availability start time for all Segments referred to in this\n * MPD. For a dynamic manifest, it specifies the anchor for the earliest availability\n * time. Format is a date string as specified in ISO 8601\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The date as seconds from unix epoch\n */\n availabilityStartTime(value) {\n return parseDate(value) / 1000;\n },\n /**\n * Specifies the smallest period between potential changes to the MPD. Format is a\n * duration string as specified in ISO 8601\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The duration in seconds\n */\n minimumUpdatePeriod(value) {\n return parseDuration(value);\n },\n /**\n * Specifies the suggested presentation delay. Format is a\n * duration string as specified in ISO 8601\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The duration in seconds\n */\n suggestedPresentationDelay(value) {\n return parseDuration(value);\n },\n /**\n * specifices the type of mpd. Can be either \"static\" or \"dynamic\"\n *\n * @param {string} value\n * value of attribute as a string\n *\n * @return {string}\n * The type as a string\n */\n type(value) {\n return value;\n },\n /**\n * Specifies the duration of the smallest time shifting buffer for any Representation\n * in the MPD. Format is a duration string as specified in ISO 8601\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The duration in seconds\n */\n timeShiftBufferDepth(value) {\n return parseDuration(value);\n },\n /**\n * Specifies the PeriodStart time of the Period relative to the availabilityStarttime.\n * Format is a duration string as specified in ISO 8601\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The duration in seconds\n */\n start(value) {\n return parseDuration(value);\n },\n /**\n * Specifies the width of the visual presentation\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed width\n */\n width(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the height of the visual presentation\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed height\n */\n height(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the bitrate of the representation\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed bandwidth\n */\n bandwidth(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the frame rate of the representation\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed frame rate\n */\n frameRate(value) {\n return parseDivisionValue(value);\n },\n /**\n * Specifies the number of the first Media Segment in this Representation in the Period\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed number\n */\n startNumber(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the timescale in units per seconds\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed timescale\n */\n timescale(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the presentationTimeOffset.\n *\n * @param {string} value\n * value of the attribute as a string\n *\n * @return {number}\n * The parsed presentationTimeOffset\n */\n presentationTimeOffset(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the constant approximate Segment duration\n * NOTE: The element also contains an @duration attribute. This duration\n * specifies the duration of the Period. This attribute is currently not\n * supported by the rest of the parser, however we still check for it to prevent\n * errors.\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed duration\n */\n duration(value) {\n const parsedValue = parseInt(value, 10);\n if (isNaN(parsedValue)) {\n return parseDuration(value);\n }\n return parsedValue;\n },\n /**\n * Specifies the Segment duration, in units of the value of the @timescale.\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed duration\n */\n d(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the MPD start time, in @timescale units, the first Segment in the series\n * starts relative to the beginning of the Period\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed time\n */\n t(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the repeat count of the number of following contiguous Segments with the\n * same duration expressed by the value of @d\n *\n * @param {string} value\n * value of attribute as a string\n * @return {number}\n * The parsed number\n */\n r(value) {\n return parseInt(value, 10);\n },\n /**\n * Specifies the presentationTime.\n *\n * @param {string} value\n * value of the attribute as a string\n *\n * @return {number}\n * The parsed presentationTime\n */\n presentationTime(value) {\n return parseInt(value, 10);\n },\n /**\n * Default parser for all other attributes. Acts as a no-op and just returns the value\n * as a string\n *\n * @param {string} value\n * value of attribute as a string\n * @return {string}\n * Unparsed value\n */\n DEFAULT(value) {\n return value;\n }\n};\n/**\n * Gets all the attributes and values of the provided node, parses attributes with known\n * types, and returns an object with attribute names mapped to values.\n *\n * @param {Node} el\n * The node to parse attributes from\n * @return {Object}\n * Object with all attributes of el parsed\n */\n\nconst parseAttributes = el => {\n if (!(el && el.attributes)) {\n return {};\n }\n return from(el.attributes).reduce((a, e) => {\n const parseFn = parsers[e.name] || parsers.DEFAULT;\n a[e.name] = parseFn(e.value);\n return a;\n }, {});\n};\nconst keySystemsMap = {\n 'urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b': 'org.w3.clearkey',\n 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed': 'com.widevine.alpha',\n 'urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95': 'com.microsoft.playready',\n 'urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb': 'com.adobe.primetime'\n};\n/**\n * Builds a list of urls that is the product of the reference urls and BaseURL values\n *\n * @param {Object[]} references\n * List of objects containing the reference URL as well as its attributes\n * @param {Node[]} baseUrlElements\n * List of BaseURL nodes from the mpd\n * @return {Object[]}\n * List of objects with resolved urls and attributes\n */\n\nconst buildBaseUrls = (references, baseUrlElements) => {\n if (!baseUrlElements.length) {\n return references;\n }\n return flatten(references.map(function (reference) {\n return baseUrlElements.map(function (baseUrlElement) {\n const initialBaseUrl = getContent(baseUrlElement);\n const resolvedBaseUrl = resolveUrl(reference.baseUrl, initialBaseUrl);\n const finalBaseUrl = merge(parseAttributes(baseUrlElement), {\n baseUrl: resolvedBaseUrl\n }); // If the URL is resolved, we want to get the serviceLocation from the reference\n // assuming there is no serviceLocation on the initialBaseUrl\n\n if (resolvedBaseUrl !== initialBaseUrl && !finalBaseUrl.serviceLocation && reference.serviceLocation) {\n finalBaseUrl.serviceLocation = reference.serviceLocation;\n }\n return finalBaseUrl;\n });\n }));\n};\n/**\n * Contains all Segment information for its containing AdaptationSet\n *\n * @typedef {Object} SegmentInformation\n * @property {Object|undefined} template\n * Contains the attributes for the SegmentTemplate node\n * @property {Object[]|undefined} segmentTimeline\n * Contains a list of atrributes for each S node within the SegmentTimeline node\n * @property {Object|undefined} list\n * Contains the attributes for the SegmentList node\n * @property {Object|undefined} base\n * Contains the attributes for the SegmentBase node\n */\n\n/**\n * Returns all available Segment information contained within the AdaptationSet node\n *\n * @param {Node} adaptationSet\n * The AdaptationSet node to get Segment information from\n * @return {SegmentInformation}\n * The Segment information contained within the provided AdaptationSet\n */\n\nconst getSegmentInformation = adaptationSet => {\n const segmentTemplate = findChildren(adaptationSet, 'SegmentTemplate')[0];\n const segmentList = findChildren(adaptationSet, 'SegmentList')[0];\n const segmentUrls = segmentList && findChildren(segmentList, 'SegmentURL').map(s => merge({\n tag: 'SegmentURL'\n }, parseAttributes(s)));\n const segmentBase = findChildren(adaptationSet, 'SegmentBase')[0];\n const segmentTimelineParentNode = segmentList || segmentTemplate;\n const segmentTimeline = segmentTimelineParentNode && findChildren(segmentTimelineParentNode, 'SegmentTimeline')[0];\n const segmentInitializationParentNode = segmentList || segmentBase || segmentTemplate;\n const segmentInitialization = segmentInitializationParentNode && findChildren(segmentInitializationParentNode, 'Initialization')[0]; // SegmentTemplate is handled slightly differently, since it can have both\n // @initialization and an node. @initialization can be templated,\n // while the node can have a url and range specified. If the has\n // both @initialization and an subelement we opt to override with\n // the node, as this interaction is not defined in the spec.\n\n const template = segmentTemplate && parseAttributes(segmentTemplate);\n if (template && segmentInitialization) {\n template.initialization = segmentInitialization && parseAttributes(segmentInitialization);\n } else if (template && template.initialization) {\n // If it is @initialization we convert it to an object since this is the format that\n // later functions will rely on for the initialization segment. This is only valid\n // for \n template.initialization = {\n sourceURL: template.initialization\n };\n }\n const segmentInfo = {\n template,\n segmentTimeline: segmentTimeline && findChildren(segmentTimeline, 'S').map(s => parseAttributes(s)),\n list: segmentList && merge(parseAttributes(segmentList), {\n segmentUrls,\n initialization: parseAttributes(segmentInitialization)\n }),\n base: segmentBase && merge(parseAttributes(segmentBase), {\n initialization: parseAttributes(segmentInitialization)\n })\n };\n Object.keys(segmentInfo).forEach(key => {\n if (!segmentInfo[key]) {\n delete segmentInfo[key];\n }\n });\n return segmentInfo;\n};\n/**\n * Contains Segment information and attributes needed to construct a Playlist object\n * from a Representation\n *\n * @typedef {Object} RepresentationInformation\n * @property {SegmentInformation} segmentInfo\n * Segment information for this Representation\n * @property {Object} attributes\n * Inherited attributes for this Representation\n */\n\n/**\n * Maps a Representation node to an object containing Segment information and attributes\n *\n * @name inheritBaseUrlsCallback\n * @function\n * @param {Node} representation\n * Representation node from the mpd\n * @return {RepresentationInformation}\n * Representation information needed to construct a Playlist object\n */\n\n/**\n * Returns a callback for Array.prototype.map for mapping Representation nodes to\n * Segment information and attributes using inherited BaseURL nodes.\n *\n * @param {Object} adaptationSetAttributes\n * Contains attributes inherited by the AdaptationSet\n * @param {Object[]} adaptationSetBaseUrls\n * List of objects containing resolved base URLs and attributes\n * inherited by the AdaptationSet\n * @param {SegmentInformation} adaptationSetSegmentInfo\n * Contains Segment information for the AdaptationSet\n * @return {inheritBaseUrlsCallback}\n * Callback map function\n */\n\nconst inheritBaseUrls = (adaptationSetAttributes, adaptationSetBaseUrls, adaptationSetSegmentInfo) => representation => {\n const repBaseUrlElements = findChildren(representation, 'BaseURL');\n const repBaseUrls = buildBaseUrls(adaptationSetBaseUrls, repBaseUrlElements);\n const attributes = merge(adaptationSetAttributes, parseAttributes(representation));\n const representationSegmentInfo = getSegmentInformation(representation);\n return repBaseUrls.map(baseUrl => {\n return {\n segmentInfo: merge(adaptationSetSegmentInfo, representationSegmentInfo),\n attributes: merge(attributes, baseUrl)\n };\n });\n};\n/**\n * Tranforms a series of content protection nodes to\n * an object containing pssh data by key system\n *\n * @param {Node[]} contentProtectionNodes\n * Content protection nodes\n * @return {Object}\n * Object containing pssh data by key system\n */\n\nconst generateKeySystemInformation = contentProtectionNodes => {\n return contentProtectionNodes.reduce((acc, node) => {\n const attributes = parseAttributes(node); // Although it could be argued that according to the UUID RFC spec the UUID string (a-f chars) should be generated\n // as a lowercase string it also mentions it should be treated as case-insensitive on input. Since the key system\n // UUIDs in the keySystemsMap are hardcoded as lowercase in the codebase there isn't any reason not to do\n // .toLowerCase() on the input UUID string from the manifest (at least I could not think of one).\n\n if (attributes.schemeIdUri) {\n attributes.schemeIdUri = attributes.schemeIdUri.toLowerCase();\n }\n const keySystem = keySystemsMap[attributes.schemeIdUri];\n if (keySystem) {\n acc[keySystem] = {\n attributes\n };\n const psshNode = findChildren(node, 'cenc:pssh')[0];\n if (psshNode) {\n const pssh = getContent(psshNode);\n acc[keySystem].pssh = pssh && decodeB64ToUint8Array(pssh);\n }\n }\n return acc;\n }, {});\n}; // defined in ANSI_SCTE 214-1 2016\n\nconst parseCaptionServiceMetadata = service => {\n // 608 captions\n if (service.schemeIdUri === 'urn:scte:dash:cc:cea-608:2015') {\n const values = typeof service.value !== 'string' ? [] : service.value.split(';');\n return values.map(value => {\n let channel;\n let language; // default language to value\n\n language = value;\n if (/^CC\\d=/.test(value)) {\n var _value$split = value.split('=');\n var _value$split2 = _slicedToArray(_value$split, 2);\n channel = _value$split2[0];\n language = _value$split2[1];\n } else if (/^CC\\d$/.test(value)) {\n channel = value;\n }\n return {\n channel,\n language\n };\n });\n } else if (service.schemeIdUri === 'urn:scte:dash:cc:cea-708:2015') {\n const values = typeof service.value !== 'string' ? [] : service.value.split(';');\n return values.map(value => {\n const flags = {\n // service or channel number 1-63\n 'channel': undefined,\n // language is a 3ALPHA per ISO 639.2/B\n // field is required\n 'language': undefined,\n // BIT 1/0 or ?\n // default value is 1, meaning 16:9 aspect ratio, 0 is 4:3, ? is unknown\n 'aspectRatio': 1,\n // BIT 1/0\n // easy reader flag indicated the text is tailed to the needs of beginning readers\n // default 0, or off\n 'easyReader': 0,\n // BIT 1/0\n // If 3d metadata is present (CEA-708.1) then 1\n // default 0\n '3D': 0\n };\n if (/=/.test(value)) {\n const _value$split3 = value.split('='),\n _value$split4 = _slicedToArray(_value$split3, 2),\n channel = _value$split4[0],\n _value$split4$ = _value$split4[1],\n opts = _value$split4$ === void 0 ? '' : _value$split4$;\n flags.channel = channel;\n flags.language = value;\n opts.split(',').forEach(opt => {\n const _opt$split = opt.split(':'),\n _opt$split2 = _slicedToArray(_opt$split, 2),\n name = _opt$split2[0],\n val = _opt$split2[1];\n if (name === 'lang') {\n flags.language = val; // er for easyReadery\n } else if (name === 'er') {\n flags.easyReader = Number(val); // war for wide aspect ratio\n } else if (name === 'war') {\n flags.aspectRatio = Number(val);\n } else if (name === '3D') {\n flags['3D'] = Number(val);\n }\n });\n } else {\n flags.language = value;\n }\n if (flags.channel) {\n flags.channel = 'SERVICE' + flags.channel;\n }\n return flags;\n });\n }\n};\n/**\n * A map callback that will parse all event stream data for a collection of periods\n * DASH ISO_IEC_23009 5.10.2.2\n * https://dashif-documents.azurewebsites.net/Events/master/event.html#mpd-event-timing\n *\n * @param {PeriodInformation} period object containing necessary period information\n * @return a collection of parsed eventstream event objects\n */\n\nconst toEventStream = period => {\n // get and flatten all EventStreams tags and parse attributes and children\n return flatten(findChildren(period.node, 'EventStream').map(eventStream => {\n const eventStreamAttributes = parseAttributes(eventStream);\n const schemeIdUri = eventStreamAttributes.schemeIdUri; // find all Events per EventStream tag and map to return objects\n\n return findChildren(eventStream, 'Event').map(event => {\n const eventAttributes = parseAttributes(event);\n const presentationTime = eventAttributes.presentationTime || 0;\n const timescale = eventStreamAttributes.timescale || 1;\n const duration = eventAttributes.duration || 0;\n const start = presentationTime / timescale + period.attributes.start;\n return {\n schemeIdUri,\n value: eventStreamAttributes.value,\n id: eventAttributes.id,\n start,\n end: start + duration / timescale,\n messageData: getContent(event) || eventAttributes.messageData,\n contentEncoding: eventStreamAttributes.contentEncoding,\n presentationTimeOffset: eventStreamAttributes.presentationTimeOffset || 0\n };\n });\n }));\n};\n/**\n * Maps an AdaptationSet node to a list of Representation information objects\n *\n * @name toRepresentationsCallback\n * @function\n * @param {Node} adaptationSet\n * AdaptationSet node from the mpd\n * @return {RepresentationInformation[]}\n * List of objects containing Representaion information\n */\n\n/**\n * Returns a callback for Array.prototype.map for mapping AdaptationSet nodes to a list of\n * Representation information objects\n *\n * @param {Object} periodAttributes\n * Contains attributes inherited by the Period\n * @param {Object[]} periodBaseUrls\n * Contains list of objects with resolved base urls and attributes\n * inherited by the Period\n * @param {string[]} periodSegmentInfo\n * Contains Segment Information at the period level\n * @return {toRepresentationsCallback}\n * Callback map function\n */\n\nconst toRepresentations = (periodAttributes, periodBaseUrls, periodSegmentInfo) => adaptationSet => {\n const adaptationSetAttributes = parseAttributes(adaptationSet);\n const adaptationSetBaseUrls = buildBaseUrls(periodBaseUrls, findChildren(adaptationSet, 'BaseURL'));\n const role = findChildren(adaptationSet, 'Role')[0];\n const roleAttributes = {\n role: parseAttributes(role)\n };\n let attrs = merge(periodAttributes, adaptationSetAttributes, roleAttributes);\n const accessibility = findChildren(adaptationSet, 'Accessibility')[0];\n const captionServices = parseCaptionServiceMetadata(parseAttributes(accessibility));\n if (captionServices) {\n attrs = merge(attrs, {\n captionServices\n });\n }\n const label = findChildren(adaptationSet, 'Label')[0];\n if (label && label.childNodes.length) {\n const labelVal = label.childNodes[0].nodeValue.trim();\n attrs = merge(attrs, {\n label: labelVal\n });\n }\n const contentProtection = generateKeySystemInformation(findChildren(adaptationSet, 'ContentProtection'));\n if (Object.keys(contentProtection).length) {\n attrs = merge(attrs, {\n contentProtection\n });\n }\n const segmentInfo = getSegmentInformation(adaptationSet);\n const representations = findChildren(adaptationSet, 'Representation');\n const adaptationSetSegmentInfo = merge(periodSegmentInfo, segmentInfo);\n return flatten(representations.map(inheritBaseUrls(attrs, adaptationSetBaseUrls, adaptationSetSegmentInfo)));\n};\n/**\n * Contains all period information for mapping nodes onto adaptation sets.\n *\n * @typedef {Object} PeriodInformation\n * @property {Node} period.node\n * Period node from the mpd\n * @property {Object} period.attributes\n * Parsed period attributes from node plus any added\n */\n\n/**\n * Maps a PeriodInformation object to a list of Representation information objects for all\n * AdaptationSet nodes contained within the Period.\n *\n * @name toAdaptationSetsCallback\n * @function\n * @param {PeriodInformation} period\n * Period object containing necessary period information\n * @param {number} periodStart\n * Start time of the Period within the mpd\n * @return {RepresentationInformation[]}\n * List of objects containing Representaion information\n */\n\n/**\n * Returns a callback for Array.prototype.map for mapping Period nodes to a list of\n * Representation information objects\n *\n * @param {Object} mpdAttributes\n * Contains attributes inherited by the mpd\n * @param {Object[]} mpdBaseUrls\n * Contains list of objects with resolved base urls and attributes\n * inherited by the mpd\n * @return {toAdaptationSetsCallback}\n * Callback map function\n */\n\nconst toAdaptationSets = (mpdAttributes, mpdBaseUrls) => (period, index) => {\n const periodBaseUrls = buildBaseUrls(mpdBaseUrls, findChildren(period.node, 'BaseURL'));\n const periodAttributes = merge(mpdAttributes, {\n periodStart: period.attributes.start\n });\n if (typeof period.attributes.duration === 'number') {\n periodAttributes.periodDuration = period.attributes.duration;\n }\n const adaptationSets = findChildren(period.node, 'AdaptationSet');\n const periodSegmentInfo = getSegmentInformation(period.node);\n return flatten(adaptationSets.map(toRepresentations(periodAttributes, periodBaseUrls, periodSegmentInfo)));\n};\n/**\n * Tranforms an array of content steering nodes into an object\n * containing CDN content steering information from the MPD manifest.\n *\n * For more information on the DASH spec for Content Steering parsing, see:\n * https://dashif.org/docs/DASH-IF-CTS-00XX-Content-Steering-Community-Review.pdf\n *\n * @param {Node[]} contentSteeringNodes\n * Content steering nodes\n * @param {Function} eventHandler\n * The event handler passed into the parser options to handle warnings\n * @return {Object}\n * Object containing content steering data\n */\n\nconst generateContentSteeringInformation = (contentSteeringNodes, eventHandler) => {\n // If there are more than one ContentSteering tags, throw an error\n if (contentSteeringNodes.length > 1) {\n eventHandler({\n type: 'warn',\n message: 'The MPD manifest should contain no more than one ContentSteering tag'\n });\n } // Return a null value if there are no ContentSteering tags\n\n if (!contentSteeringNodes.length) {\n return null;\n }\n const infoFromContentSteeringTag = merge({\n serverURL: getContent(contentSteeringNodes[0])\n }, parseAttributes(contentSteeringNodes[0])); // Converts `queryBeforeStart` to a boolean, as well as setting the default value\n // to `false` if it doesn't exist\n\n infoFromContentSteeringTag.queryBeforeStart = infoFromContentSteeringTag.queryBeforeStart === 'true';\n return infoFromContentSteeringTag;\n};\n/**\n * Gets Period@start property for a given period.\n *\n * @param {Object} options\n * Options object\n * @param {Object} options.attributes\n * Period attributes\n * @param {Object} [options.priorPeriodAttributes]\n * Prior period attributes (if prior period is available)\n * @param {string} options.mpdType\n * The MPD@type these periods came from\n * @return {number|null}\n * The period start, or null if it's an early available period or error\n */\n\nconst getPeriodStart = _ref18 => {\n let attributes = _ref18.attributes,\n priorPeriodAttributes = _ref18.priorPeriodAttributes,\n mpdType = _ref18.mpdType;\n // Summary of period start time calculation from DASH spec section 5.3.2.1\n //\n // A period's start is the first period's start + time elapsed after playing all\n // prior periods to this one. Periods continue one after the other in time (without\n // gaps) until the end of the presentation.\n //\n // The value of Period@start should be:\n // 1. if Period@start is present: value of Period@start\n // 2. if previous period exists and it has @duration: previous Period@start +\n // previous Period@duration\n // 3. if this is first period and MPD@type is 'static': 0\n // 4. in all other cases, consider the period an \"early available period\" (note: not\n // currently supported)\n // (1)\n if (typeof attributes.start === 'number') {\n return attributes.start;\n } // (2)\n\n if (priorPeriodAttributes && typeof priorPeriodAttributes.start === 'number' && typeof priorPeriodAttributes.duration === 'number') {\n return priorPeriodAttributes.start + priorPeriodAttributes.duration;\n } // (3)\n\n if (!priorPeriodAttributes && mpdType === 'static') {\n return 0;\n } // (4)\n // There is currently no logic for calculating the Period@start value if there is\n // no Period@start or prior Period@start and Period@duration available. This is not made\n // explicit by the DASH interop guidelines or the DASH spec, however, since there's\n // nothing about any other resolution strategies, it's implied. Thus, this case should\n // be considered an early available period, or error, and null should suffice for both\n // of those cases.\n\n return null;\n};\n/**\n * Traverses the mpd xml tree to generate a list of Representation information objects\n * that have inherited attributes from parent nodes\n *\n * @param {Node} mpd\n * The root node of the mpd\n * @param {Object} options\n * Available options for inheritAttributes\n * @param {string} options.manifestUri\n * The uri source of the mpd\n * @param {number} options.NOW\n * Current time per DASH IOP. Default is current time in ms since epoch\n * @param {number} options.clientOffset\n * Client time difference from NOW (in milliseconds)\n * @return {RepresentationInformation[]}\n * List of objects containing Representation information\n */\n\nconst inheritAttributes = function (mpd) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const _options$manifestUri = options.manifestUri,\n manifestUri = _options$manifestUri === void 0 ? '' : _options$manifestUri,\n _options$NOW = options.NOW,\n NOW = _options$NOW === void 0 ? Date.now() : _options$NOW,\n _options$clientOffset = options.clientOffset,\n clientOffset = _options$clientOffset === void 0 ? 0 : _options$clientOffset,\n _options$eventHandler = options.eventHandler,\n eventHandler = _options$eventHandler === void 0 ? function () {} : _options$eventHandler;\n const periodNodes = findChildren(mpd, 'Period');\n if (!periodNodes.length) {\n throw new Error(errors.INVALID_NUMBER_OF_PERIOD);\n }\n const locations = findChildren(mpd, 'Location');\n const mpdAttributes = parseAttributes(mpd);\n const mpdBaseUrls = buildBaseUrls([{\n baseUrl: manifestUri\n }], findChildren(mpd, 'BaseURL'));\n const contentSteeringNodes = findChildren(mpd, 'ContentSteering'); // See DASH spec section 5.3.1.2, Semantics of MPD element. Default type to 'static'.\n\n mpdAttributes.type = mpdAttributes.type || 'static';\n mpdAttributes.sourceDuration = mpdAttributes.mediaPresentationDuration || 0;\n mpdAttributes.NOW = NOW;\n mpdAttributes.clientOffset = clientOffset;\n if (locations.length) {\n mpdAttributes.locations = locations.map(getContent);\n }\n const periods = []; // Since toAdaptationSets acts on individual periods right now, the simplest approach to\n // adding properties that require looking at prior periods is to parse attributes and add\n // missing ones before toAdaptationSets is called. If more such properties are added, it\n // may be better to refactor toAdaptationSets.\n\n periodNodes.forEach((node, index) => {\n const attributes = parseAttributes(node); // Use the last modified prior period, as it may contain added information necessary\n // for this period.\n\n const priorPeriod = periods[index - 1];\n attributes.start = getPeriodStart({\n attributes,\n priorPeriodAttributes: priorPeriod ? priorPeriod.attributes : null,\n mpdType: mpdAttributes.type\n });\n periods.push({\n node,\n attributes\n });\n });\n return {\n locations: mpdAttributes.locations,\n contentSteeringInfo: generateContentSteeringInformation(contentSteeringNodes, eventHandler),\n // TODO: There are occurences where this `representationInfo` array contains undesired\n // duplicates. This generally occurs when there are multiple BaseURL nodes that are\n // direct children of the MPD node. When we attempt to resolve URLs from a combination of the\n // parent BaseURL and a child BaseURL, and the value does not resolve,\n // we end up returning the child BaseURL multiple times.\n // We need to determine a way to remove these duplicates in a safe way.\n // See: https://github.com/videojs/mpd-parser/pull/17#discussion_r162750527\n representationInfo: flatten(periods.map(toAdaptationSets(mpdAttributes, mpdBaseUrls))),\n eventStream: flatten(periods.map(toEventStream))\n };\n};\nconst stringToMpdXml = manifestString => {\n if (manifestString === '') {\n throw new Error(errors.DASH_EMPTY_MANIFEST);\n }\n const parser = new DOMParser();\n let xml;\n let mpd;\n try {\n xml = parser.parseFromString(manifestString, 'application/xml');\n mpd = xml && xml.documentElement.tagName === 'MPD' ? xml.documentElement : null;\n } catch (e) {// ie 11 throws on invalid xml\n }\n if (!mpd || mpd && mpd.getElementsByTagName('parsererror').length > 0) {\n throw new Error(errors.DASH_INVALID_XML);\n }\n return mpd;\n};\n\n/**\n * Parses the manifest for a UTCTiming node, returning the nodes attributes if found\n *\n * @param {string} mpd\n * XML string of the MPD manifest\n * @return {Object|null}\n * Attributes of UTCTiming node specified in the manifest. Null if none found\n */\n\nconst parseUTCTimingScheme = mpd => {\n const UTCTimingNode = findChildren(mpd, 'UTCTiming')[0];\n if (!UTCTimingNode) {\n return null;\n }\n const attributes = parseAttributes(UTCTimingNode);\n switch (attributes.schemeIdUri) {\n case 'urn:mpeg:dash:utc:http-head:2014':\n case 'urn:mpeg:dash:utc:http-head:2012':\n attributes.method = 'HEAD';\n break;\n case 'urn:mpeg:dash:utc:http-xsdate:2014':\n case 'urn:mpeg:dash:utc:http-iso:2014':\n case 'urn:mpeg:dash:utc:http-xsdate:2012':\n case 'urn:mpeg:dash:utc:http-iso:2012':\n attributes.method = 'GET';\n break;\n case 'urn:mpeg:dash:utc:direct:2014':\n case 'urn:mpeg:dash:utc:direct:2012':\n attributes.method = 'DIRECT';\n attributes.value = Date.parse(attributes.value);\n break;\n case 'urn:mpeg:dash:utc:http-ntp:2014':\n case 'urn:mpeg:dash:utc:ntp:2014':\n case 'urn:mpeg:dash:utc:sntp:2014':\n default:\n throw new Error(errors.UNSUPPORTED_UTC_TIMING_SCHEME);\n }\n return attributes;\n};\nconst VERSION = version;\n/*\n * Given a DASH manifest string and options, parses the DASH manifest into an object in the\n * form outputed by m3u8-parser and accepted by videojs/http-streaming.\n *\n * For live DASH manifests, if `previousManifest` is provided in options, then the newly\n * parsed DASH manifest will have its media sequence and discontinuity sequence values\n * updated to reflect its position relative to the prior manifest.\n *\n * @param {string} manifestString - the DASH manifest as a string\n * @param {options} [options] - any options\n *\n * @return {Object} the manifest object\n */\n\nconst parse = function (manifestString) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const parsedManifestInfo = inheritAttributes(stringToMpdXml(manifestString), options);\n const playlists = toPlaylists(parsedManifestInfo.representationInfo);\n return toM3u8({\n dashPlaylists: playlists,\n locations: parsedManifestInfo.locations,\n contentSteering: parsedManifestInfo.contentSteeringInfo,\n sidxMapping: options.sidxMapping,\n previousManifest: options.previousManifest,\n eventStream: parsedManifestInfo.eventStream\n });\n};\n/**\n * Parses the manifest for a UTCTiming node, returning the nodes attributes if found\n *\n * @param {string} manifestString\n * XML string of the MPD manifest\n * @return {Object|null}\n * Attributes of UTCTiming node specified in the manifest. Null if none found\n */\n\nconst parseUTCTiming = manifestString => parseUTCTimingScheme(stringToMpdXml(manifestString));\nexport { VERSION, addSidxSegmentsToPlaylist$1 as addSidxSegmentsToPlaylist, generateSidxKey, inheritAttributes, parse, parseUTCTiming, stringToMpdXml, toM3u8, toPlaylists };","/**\n * Loops through all supported media groups in master and calls the provided\n * callback for each group\n *\n * @param {Object} master\n * The parsed master manifest object\n * @param {string[]} groups\n * The media groups to call the callback for\n * @param {Function} callback\n * Callback to call for each media group\n */\nexport var forEachMediaGroup = function forEachMediaGroup(master, groups, callback) {\n groups.forEach(function (mediaType) {\n for (var groupKey in master.mediaGroups[mediaType]) {\n for (var labelKey in master.mediaGroups[mediaType][groupKey]) {\n var mediaProperties = master.mediaGroups[mediaType][groupKey][labelKey];\n callback(mediaProperties, mediaType, groupKey, labelKey);\n }\n }\n });\n};","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n var monthDiff = dateLeft.getMonth() - dateRight.getMonth();\n return yearDiff * 12 + monthDiff;\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row d-flex justify-content-between\"},[_vm._m(0),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"f14 btn-add-items-tb bg-light-purple color-white\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\"\\n ADICIONAR\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[(_vm.educations.length === 0)?_c('div',{staticClass:\"d-flex justify-content-center align-item-center row mb-1 border-dark-purple pt-3 pb-4\"},[_c('h4',{staticClass:\"center f15 color-dark-purple\"},[_vm._v(\"\\n NENHUMA EXPERIÊNCIA EDUCACIONAL FOI INFORMADA AINDA.\\n \")])]):_vm._e()]),_vm._v(\" \"),_vm._l((_vm.educations),function(education,index){return _c('div',{key:education.id},[_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"row mb-1 border-dark-purple pt-3 pb-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('div',[_c('span',{staticClass:\"label-bold color-dark-purple\"},[_vm._v(_vm._s(education.study_area))])]),_vm._v(\" \"),_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu drop-down-tb\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.openForm(education.id)}}},[_vm._v(\"\\n EDITAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-4 fa fa-pencil-alt scale_1\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.deleteEducation(education.id, index)}}},[_vm._v(\"\\n DELETAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-3 fas fa-trash-alt scale_1\"})])])])])]),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(education.institution)+\"\\n |\\n \"+_vm._s(education.city))])]),_vm._v(\" \"),_c('div',[_c('div',[(education.start_date)?_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(\"\\n \"+_vm._s(education.start_date)+\" - \"+_vm._s(education.end_date)+\"\\n \")]):_c('span',[_vm._v(\"\\n Precisa atualizar data\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_vm._m(1,true),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(education.description))])])])])])])])])})],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"ml-2 label-bold color-dark-purple\"},[_vm._v(\"FORMAÇÃO SUPERIOR (OBRIGATÓRIO)\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(\"Descrição:\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n FORMAÇÃO SUPERIOR (OBRIGATÓRIO) \n
\n
\n \n ADICIONAR\n \n
\n
\n
\n
\n
\n NENHUMA EXPERIÊNCIA EDUCACIONAL FOI INFORMADA AINDA.\n \n \n
\n\n
\n
\n
\n
\n
\n
\n
\n {{ education.study_area }} \n
\n
\n
\n
\n {{ education.institution }}\n |\n {{ education.city }} \n
\n
\n
\n \n {{ education.start_date }} - {{ education.end_date }}\n \n \n Precisa atualizar data\n \n
\n
\n
\n
\n Descrição: \n
\n
\n {{\n education.description\n }} \n
\n
\n
\n
\n
\n
\n
\n
\n \n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3c6e2b8a&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row d-flex justify-content-between\"},[_vm._m(0),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"f14 btn-add-items-tb bg-light-purple color-white\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.showForm = !_vm.showForm}}},[_vm._v(\"\\n ADICIONAR\\n \")])])]),_vm._v(\" \"),(_vm.showForm)?_c('div',{staticClass:\"mt-3\"},[_c('LanguageForm',{attrs:{\"candidate_id\":_vm.candidate_id,\"url_custom\":_vm.url}})],1):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(this.languages.length >= 0),expression:\"this.languages.length >= 0\"}]},_vm._l((this.languages),function(language){return _c('div',{key:language.id},[_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"row mb-1 border-dark-purple pt-3 pb-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('div',{staticClass:\"col-lg-3 col-xs-3\"},[_c('span',[_c('strong',[_vm._v(\"IDIOMA:\")]),_vm._v(\" \"+_vm._s(language.name)+\" \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-3\"},[_c('span',[_c('strong',[_vm._v(\"NÍVEL:\")]),_vm._v(\" \"+_vm._s(_vm.levels[language.level].text)+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu drop-down-tb\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.deleteLanguage(language.id)}}},[_vm._v(\"\\n DELETAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-3 fas fa-trash-alt scale_1\"})])])])])])])])])])])}),0),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[(this.languages.length <= 0)?_c('div',{staticClass:\"d-flex justify-content-center align-item-center row mb-1 border-dark-purple pt-3 pb-4\"},[_c('h4',{staticClass:\"center f15 color-dark-purple\"},[_vm._v(\"NENHUM IDIOMA INFORMADO AINDA.\")])]):_vm._e()])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"ml-2 label-bold color-dark-purple\"},[_vm._v(\" IDIOMAS \")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n IDIOMAS \n
\n
\n \n ADICIONAR\n \n
\n
\n\n
\n \n
\n\n
= 0\">\n
\n
\n
\n
\n
\n
\n
\n IDIOMA: {{ language.name }} \n
\n
\n \n NÍVEL: {{ levels[language.level].text }}\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
NENHUM IDIOMA INFORMADO AINDA. \n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=665a915a&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 videoPainel bg-white p-3 shadow_bar\"},[_c('div',{staticClass:\"row\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_vm._l((_vm.job_questions),function(question,index){return _c('div',{key:question.id},[(index == _vm.question_show)?_c('div',[_c('div',{staticClass:\"f18\",staticStyle:{\"color\":\"#000 !important\"},domProps:{\"innerHTML\":_vm._s(question.title)}}),_vm._v(\" \"),_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('p',{staticClass:\"text-justify text-break\",staticStyle:{\"width\":\"70%\",\"text-align\":\"center !important\"}},[_vm._v(\"\\n \"+_vm._s(question.details)+\"\\n \")])]),_vm._v(\" \"),(question.video_id)?_c('div',{staticClass:\"videoPlay\"},[(question.video_id)?_c('video',{staticClass:\"full\",attrs:{\"controls\":\"\",\"controlslist\":\"nodownload\",\"playsinlineatributo\":\"\",\"preload\":\"yes\"}},[_c('source',{attrs:{\"src\":question.video,\"type\":\"video/mp4\"}})]):_vm._e(),_vm._v(\" \"),_c('p',[_vm._v(\"ASSISTA O VÍDEO E RESPONSA\")])]):_vm._e(),_vm._v(\" \"),(question.response_type == _vm.video_type)?_c('div',{staticClass:\"videoPlay\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"center\",staticStyle:{\"color\":\"#000\"}},[_vm._m(1,true),_vm._v(\" \"),_c('p',{staticClass:\"f16\"},[_vm._v(\"\\n TENTE GRAVAR USANDO DIRETO AS CÂMERAS DE SEU CELULAR OU\\n FAZER UPLOAD DO SEU VÍDEO, CLICANDO NO BOTÃO A BAIXO\\n \")])]),_vm._v(\" \"),(_vm.ios)?_c('VideoJSRecordMobile',{attrs:{\"question\":question,\"index\":index,\"currentTime\":_vm.currentTime}}):_vm._e(),_vm._v(\" \"),(!_vm.ios)?_c('VideoJSRecord',{attrs:{\"question\":question,\"index\":index,\"currentTime\":_vm.currentTime}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),(question.response_type == _vm.multiple_choices_type)?_c('div',[_c('MultipleChoices',{attrs:{\"question\":question,\"index\":index,\"currentTime\":_vm.currentTime,\"answers\":_vm.answers},on:{\"saveAnswers\":_vm.saveAnswer}})],1):_vm._e(),_vm._v(\" \"),(question.response_type == _vm.yer_or_no_type)?_c('div',[_c('YesOrNo',{attrs:{\"question\":question,\"index\":index,\"currentTime\":_vm.currentTime,\"answers\":_vm.answers},on:{\"saveAnswers\":_vm.saveAnswer}})],1):_vm._e(),_vm._v(\" \"),(question.response_type == _vm.text_type)?_c('div',[_c('TextType',{attrs:{\"question\":question,\"index\":index,\"currentTime\":_vm.currentTime,\"answers\":_vm.answers},on:{\"saveAnswers\":_vm.saveAnswer}})],1):_vm._e(),_vm._v(\" \"),(question.response_type == _vm.monetary_type)?_c('div',[_c('MonetaryType',{attrs:{\"question\":question,\"index\":index,\"currentTime\":_vm.currentTime,\"answers\":_vm.answers},on:{\"saveAnswers\":_vm.saveAnswer}})],1):_vm._e()]):_vm._e()])}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"})],2)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.question_show > 0)?_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.previousQuestion}},[_vm._v(\"\\n Voltar\\n \")]):_vm._e()])],1)])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h3',{staticClass:\"center\",staticStyle:{\"color\":\"#000\"}},[_vm._v(\"Responda as perguntas:\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',[_c('b',[_vm._v(\"NÃO FOI POSSÍVEL ABRIR A CÂMERA\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Questions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Questions.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
Responda as perguntas: \n \n
\n
\n
\n
\n
\n
\n {{ question.details }}\n
\n
\n
\n
\n \n \n
ASSISTA O VÍDEO E RESPONSA
\n
\n
\n
\n
\n NÃO FOI POSSÍVEL ABRIR A CÂMERA \n
\n
\n TENTE GRAVAR USANDO DIRETO AS CÂMERAS DE SEU CELULAR OU\n FAZER UPLOAD DO SEU VÍDEO, CLICANDO NO BOTÃO A BAIXO\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 0\"\n @click=\"previousQuestion\"\n class=\"btn btn-primary full\"\n >\n Voltar\n \n \n
\n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./Questions.vue?vue&type=template&id=50ab6134&\"\nimport script from \"./Questions.vue?vue&type=script&lang=js&\"\nexport * from \"./Questions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12 videoPainel bg-white p-3 shadow_bar\"},[_c('h1',{staticClass:\"center color-primary\"},[_vm._v(_vm._s(_vm.label || 'INSCRIÇÃO CONCLUÍDA COM SUCESSO')+\" \")]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(!_vm.icon_success)?_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}}):_vm._e(),_vm._v(\" \"),(_vm.icon_success)?_c('sweetalert-icon',{attrs:{\"icon\":\"success\"}}):_vm._e()],1),_vm._v(\" \"),(_vm.job.final_message)?_c('h6',{staticClass:\"mt-3 center\",domProps:{\"innerHTML\":_vm._s(_vm.job.final_message)}}):_vm._e(),_vm._v(\" \"),(_vm.account_uid == 'cektp8b4')?_c('h6',{staticClass:\"ml-3\"},[_c('p',[_vm._v(\"Agradecemos por ter participado da primeira etapa do Programa de Trainees Credit Suisse 2023.\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Seu teste on-line foi concluído.\")]),_vm._v(\" \"),_c('p',[_vm._v(\"A próxima etapa é aguardar. Caso você seja selecionado(a), o time do Credit Suisse entrará em contato com você para seguir com a próxima etapa do processo seletivo, o agendamento das entrevistas on-line.\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Desejamos sucesso e boa sorte!\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Para saber mais sobre dicas e conteúdos de carreira, acesse os canais da Mappit.\")]),_vm._v(\" \"),_c('a',{attrs:{\"href\":\"https://mappit.com.br/home\"}},[_vm._v(\"https://mappit.com.br/home\")]),_c('br'),_vm._v(\" \"),_c('a',{attrs:{\"href\":\"https://www.linkedin.com/company/mappit-talenses-group/\"}},[_vm._v(\"https://www.linkedin.com/company/mappit-talenses-group/\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Caso precise de ajuda ou tenha algum problema sua inscrição, entre em contato contato@mappit.com.br\")])]):_vm._e(),_vm._v(\" \"),(_vm.show)?_c('h4',{staticClass:\"mt-3 mb-2 color-grey center\"},[_vm._v(\"\\n AUMENTE SUAS CHANCES, FAÇA UPLOAD DE SEU CURRÍCULO PDF/DOC\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.show)?_c('p',{staticClass:\"center\"},[_vm._v(\"\\n SE VOCÊ ESTIVER NO CELULAR E NÃO TIVER O CURRÍCULO EM SEU APRELHO, USE\\n ESSA MESMA URL PARA ACESSAR OUTRA VEZ EM UM COMPUTADOR\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.show)?_c('CurriculumUpload'):_vm._e(),_vm._v(\" \"),(_vm.show)?_c('div',{staticClass:\"center\"},[(_vm.finished)?_c('button',{staticClass:\"btn mt-4 btn-success btn-lg\",attrs:{\"disabled\":_vm.load},on:{\"click\":_vm.destroySession}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"FINALIZAR CADASTRO\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])]):_vm._e(),_vm._v(\" \"),(!_vm.finished)?_c('h4',{staticClass:\"mt-3 mb-2 color-grey center\"},[_vm._v(\"\\n CADASTRO FINALIADO, BOA SORTE!\\n \")]):_vm._e()]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Congratulation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Congratulation.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n
{{label || 'INSCRIÇÃO CONCLUÍDA COM SUCESSO'}} \n
\n \n \n \n
\n
\n Agradecemos por ter participado da primeira etapa do Programa de Trainees Credit Suisse 2023.
\n
Seu teste on-line foi concluído.
\n
A próxima etapa é aguardar. Caso você seja selecionado(a), o time do Credit Suisse entrará em contato com você para seguir com a próxima etapa do processo seletivo, o agendamento das entrevistas on-line.
\n
Desejamos sucesso e boa sorte!
\n
Para saber mais sobre dicas e conteúdos de carreira, acesse os canais da Mappit.
\n\n
https://mappit.com.br/home \n
https://www.linkedin.com/company/mappit-talenses-group/ \n
Caso precise de ajuda ou tenha algum problema sua inscrição, entre em contato contato@mappit.com.br
\n \n
\n AUMENTE SUAS CHANCES, FAÇA UPLOAD DE SEU CURRÍCULO PDF/DOC\n \n
\n SE VOCÊ ESTIVER NO CELULAR E NÃO TIVER O CURRÍCULO EM SEU APRELHO, USE\n ESSA MESMA URL PARA ACESSAR OUTRA VEZ EM UM COMPUTADOR\n
\n
\n
\n
\n FINALIZAR CADASTRO \n \n \n
\n \n
\n CADASTRO FINALIADO, BOA SORTE!\n \n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Congratulation.vue?vue&type=template&id=5ac2f1c5&\"\nimport script from \"./Congratulation.vue?vue&type=script&lang=js&\"\nexport * from \"./Congratulation.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row p-3\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},_vm._l((_vm.currentApplies),function(apply,index){return _c('div',{key:apply.id},[_c('div',{staticClass:\"candidate_list\"},[_c('div',{staticClass:\"row p-3\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('img',{staticClass:\"avatar_thumb\",attrs:{\"src\":apply.image || '/images/avatar.png'}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('div',{staticClass:\"close-alt\",on:{\"click\":function($event){return _vm.deleteCandidate(index)}}},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'trash-alt']}})],1),_vm._v(\" \"),_c('span',{staticClass:\"f25\"},[_c('b',[_vm._v(_vm._s(apply.name.split(\" \")[0]))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"f12\",attrs:{\"href\":`mailto:${apply.email}`}},[_vm._v(_vm._s(apply.email))])])])]),_vm._v(\" \"),_c('hr')])}),0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\",staticStyle:{\"display\":\"flex\",\"flex-wrap\":\"wrap\"}},_vm._l((_vm.selective_processes),function(process){return _c('div',{key:process.id,staticClass:\"shadow_bar select_process\",class:`process${process.status}`},[_c('label',{staticClass:\"pointer\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.select_process_id),expression:\"select_process_id\"}],attrs:{\"type\":\"radio\",\"name\":\"status\"},domProps:{\"value\":process.id,\"checked\":_vm._q(_vm.select_process_id,process.id)},on:{\"change\":function($event){_vm.select_process_id=process.id}}}),_vm._v(\"\\n \"+_vm._s(process.name)+\"\\n \")])])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 p-0 m-0 center\"},[_c('button',{staticClass:\"btn radius-0 full btn btn-info\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.changeStatus}},[_vm._v(\"\\n ALTERAR STATUS\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 p-0 m-0 center\"},[_c('button',{staticClass:\"radius-0 full btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"\\n FECHAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('h3',{staticClass:\"p-3 pl-4\"},[_vm._v(\"MUDAR STATUS DO PROCESSO SELETIVO.\")]),_vm._v(\" \"),_c('hr')])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
MUDAR STATUS DO PROCESSO SELETIVO. \n \n \n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n {{ process.name }}\n \n
\n
\n
\n
\n
\n \n ALTERAR STATUS\n \n
\n
\n \n FECHAR\n \n
\n
\n
\n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChangeSelectiveProcess.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChangeSelectiveProcess.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ChangeSelectiveProcess.vue?vue&type=template&id=3e01d26d&\"\nimport script from \"./ChangeSelectiveProcess.vue?vue&type=script&lang=js&\"\nexport * from \"./ChangeSelectiveProcess.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"p-2\"},[_c('h2',{staticClass:\"mb-3\"},[_vm._v(_vm._s(_vm.plural))]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},_vm._l((_vm.appliesCurrent),function(apply,index){return _c('div',{key:apply.id},[_c('div',{staticClass:\"candidate_list\"},[_c('div',{staticClass:\"row color-primary p-3\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[(apply.image == '')?_c('div',{staticClass:\"avatar_thumb bg-black\"}):_vm._e(),_vm._v(\" \"),(apply.image != '')?_c('img',{staticClass:\"shadow_bar avatar_thumb\",attrs:{\"src\":apply.image}}):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"close-alt\",on:{\"click\":function($event){return _vm.removeApply(index)}}},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'trash-alt']}})],1),_vm._v(\" \"),_c('span',{staticClass:\"f25\"},[_c('b',[_vm._v(_vm._s(apply.name.split(\" \")[0]))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"f12 color-primary\",attrs:{\"href\":`mailto:${apply.email}`}},[_vm._v(_vm._s(apply.email))]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),(apply.answered_all)?_c('span',{staticClass:\"f12 color-black\"},[_vm._v(\"\\n CONDIDATO(A) JÁ RESPONDEU \"),_c('br'),_vm._v(_vm._s(_vm.questions.length > 1\n ? \"ESTAS PERGUNTAS\"\n : \"ESTA PERGUNTA\")+\"\\n \")]):_vm._e()])])])])}),0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.questions.length > 0),expression:\"questions.length > 0\"}]},[_c('Questions',{attrs:{\"questions_record\":_vm.questions}})],1),_vm._v(\" \"),(_vm.bigfive)?_c('div',{staticClass:\"mt-3\"},[_vm._m(0)]):_vm._e()])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 p-0 m-0 center\"},[_c('button',{staticClass:\"btn radius-0 full btn btn-outline-success\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.sendQuestions}},[_vm._v(\"\\n ENVIAR AS PERGUNTAS\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 p-0 m-0 center\"},[_c('button',{staticClass:\"radius-0 full btn btn-outline-danger\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"\\n CANCELAR ENVIO\\n \")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('span',[_vm._v(\"O CANDIDATO TAMBÉM RECEBERÁ O QUESTIONÁRIO\"),_c('br'),_vm._v(\"\\n DO TESTE DO BIGFIVE\")])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
{{ plural }} \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n {{ apply.name.split(\" \")[0] }} \n \n
\n
{{ apply.email }} \n
\n
\n CONDIDATO(A) JÁ RESPONDEU {{\n questions.length > 1\n ? \"ESTAS PERGUNTAS\"\n : \"ESTA PERGUNTA\"\n }}\n \n
\n
\n
\n
\n
\n
\n
0\">\n \n
\n
\n O CANDIDATO TAMBÉM RECEBERÁ O QUESTIONÁRIO \n DO TESTE DO BIGFIVE \n
\n
\n
\n
\n
\n
\n \n ENVIAR AS PERGUNTAS\n \n
\n
\n \n CANCELAR ENVIO\n \n
\n
\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Confirm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Confirm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Confirm.vue?vue&type=template&id=590beac9&\"\nimport script from \"./Confirm.vue?vue&type=script&lang=js&\"\nexport * from \"./Confirm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n \n
\n
\n
\n amount_deslike, pointer: !recruiter}\"\n icon=\"thumbs-up\"\n > \n {{amount_like}} \n
\n
\n \n {{amount_deslike}} \n
\n
\n
\n
\n 0, pointer: !recruiter}\"\n icon=\"star\"\n > \n {{amount_star}} \n
\n
\n
\n\n
\n \n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvaliationLike.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvaliationLike.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AvaliationLike.vue?vue&type=template&id=15d05382&\"\nimport script from \"./AvaliationLike.vue?vue&type=script&lang=js&\"\nexport * from \"./AvaliationLike.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"f20 color-grey\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('div',{staticClass:\"likeButton\"},[_c('font-awesome-icon',{class:{'color-like': _vm.amount_like > _vm.amount_deslike, pointer: !_vm.recruiter},attrs:{\"icon\":\"thumbs-up\"},on:{\"click\":function($event){return _vm.changeStatus(true,1)}}}),_vm._v(\" \"),_c('span',{staticClass:\"badge color-white bg-secondary\"},[_vm._v(_vm._s(_vm.amount_like))])],1),_vm._v(\" \"),_c('div',{staticClass:\"likeButton mt-1\"},[_c('font-awesome-icon',{class:{'color-dislike': _vm.amount_like < _vm.amount_deslike, pointer: !_vm.recruiter},attrs:{\"icon\":\"thumbs-down\"},on:{\"click\":function($event){return _vm.changeStatus(false,1)}}}),_vm._v(\" \"),_c('span',{staticClass:\"badge color-white bg-secondary\"},[_vm._v(_vm._s(_vm.amount_deslike))])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('div',{staticClass:\"ml-2 likeButton\"},[_c('font-awesome-icon',{class:{'color-star': _vm.amount_star > 0, pointer: !_vm.recruiter},attrs:{\"icon\":\"star\"},on:{\"click\":function($event){return _vm.changeStatus(true,2)}}}),_vm._v(\" \"),_c('span',{staticClass:\"badge color-white bg-secondary\"},[_vm._v(_vm._s(_vm.amount_star))])],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('ul',{staticClass:\"mb-0\"},_vm._l((_vm.question.choices.options),function(option,index){return _c('li',{key:index,staticClass:\"li_style_none\"},[_c('span',{staticClass:\"d-inline\",class:{\n 'font-weight-bold': _vm.wasMarked(option.title),\n }},[_vm._v(_vm._s(_vm.wasMarked(option.title) ? `* ${option.title}` : option.title))]),_vm._v(\" \"),_c('RightOrWrongIcons',{attrs:{\"ParentDivClasses\":\"d-inline\",\"hide\":!_vm.question.choices.rightAnswer.haveOne,\"useSvg\":_vm.useSvg,\"rightIf\":_vm.question.choices.rightAnswer.titles.includes(option.title),\"wrongIf\":!_vm.question.choices.rightAnswer.titles.includes(option.title) &&\n _vm.wasMarked(option.title)}}),_vm._v(\" \"),(option.hasSubanswer)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.getSubanswers(option))+\"\\n \")]):_vm._e()],1)}),0)]),_vm._v(\" \"),_vm._m(0)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"f14\"},[_vm._v(\"(\"),_c('b',[_vm._v(\"*\")]),_vm._v(\") Opção que o candidato(a) marcou\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultipleChoices.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultipleChoices.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n {{\n wasMarked(option.title) ? `* ${option.title}` : option.title\n }} \n \n \n {{ getSubanswers(option) }}\n \n \n \n
\n
\n (* ) Opção que o candidato(a) marcou \n
\n
\n \n\n","import { render, staticRenderFns } from \"./MultipleChoices.vue?vue&type=template&id=cff38196&\"\nimport script from \"./MultipleChoices.vue?vue&type=script&lang=js&\"\nexport * from \"./MultipleChoices.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"ml-4\"},[(!_vm.question.choices.hasExpectation)?_c('span',[_vm._v(\"R$\"+_vm._s(_vm.formatCurrency(_vm.answer.choices.currency)))]):(!_vm.question.choices.salaryRange)?_c('div',[_c('span',{staticClass:\"d-block\"},[_vm._v(\"Valor inserido pelo candidato(a): R$\\n \"+_vm._s(_vm.formatCurrency(_vm.answer.choices.currency)))]),_vm._v(\" \"),_c('span',{staticClass:\"d-block\"},[_vm._v(\"Valor esperado: R$\\n \"+_vm._s(_vm.formatCurrency(_vm.question.choices.expectedSalary.minValue)))])]):_c('div',[_c('span',{staticClass:\"d-block\"},[_vm._v(\"Valor inserido pelo candidato(a): R$\\n \"+_vm._s(_vm.formatCurrency(_vm.answer.choices.currency)))]),_vm._v(\" \"),_c('span',{staticClass:\"d-block\"},[_vm._v(\"Valor esperado: R$\\n \"+_vm._s(_vm.formatCurrency(_vm.question.choices.expectedSalary.minValue))+\"\\n a R$\\n \"+_vm._s(_vm.formatCurrency(_vm.question.choices.expectedSalary.maxValue)))])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MonetaryType.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MonetaryType.vue?vue&type=script&lang=js&\"","\n \n
R${{ formatCurrency(answer.choices.currency) }} \n
\n Valor inserido pelo candidato(a): R$\n {{ formatCurrency(answer.choices.currency) }} \n Valor esperado: R$\n {{ formatCurrency(question.choices.expectedSalary.minValue) }} \n
\n
\n Valor inserido pelo candidato(a): R$\n {{ formatCurrency(answer.choices.currency) }} \n Valor esperado: R$\n {{ formatCurrency(question.choices.expectedSalary.minValue) }}\n a R$\n {{ formatCurrency(question.choices.expectedSalary.maxValue) }} \n
\n
\n \n\n","import { render, staticRenderFns } from \"./MonetaryType.vue?vue&type=template&id=fbc159a0&\"\nimport script from \"./MonetaryType.vue?vue&type=script&lang=js&\"\nexport * from \"./MonetaryType.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('ul',{staticClass:\"mb-0\"},_vm._l((['Sim', 'Não']),function(option,index){return _c('li',{key:index,staticClass:\"li_style_none\"},[_c('span',{staticClass:\"d-inline\",class:{\n 'font-weight-bold': _vm.answer.choices.marked[0] == _vm.options[index],\n }},[_vm._v(_vm._s(_vm.answer.choices.marked[0] == _vm.options[index]\n ? `* ${option}`\n : option))]),_vm._v(\" \"),_c('RightOrWrongIcons',{attrs:{\"ParentDivClasses\":\"d-inline\",\"hide\":_vm.question.choices.correctAnswer == 'any',\"useSvg\":_vm.useSvg,\"rightIf\":_vm.question.choices.correctAnswer == _vm.options[index],\"wrongIf\":_vm.question.choices.correctAnswer != _vm.options[index]}})],1)}),0)]),_vm._v(\" \"),_vm._m(0)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"f14\"},[_vm._v(\"(\"),_c('b',[_vm._v(\"*\")]),_vm._v(\") Opção que o candidato(a) marcou\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YesOrNo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YesOrNo.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n {{\n answer.choices.marked[0] == options[index]\n ? `* ${option}`\n : option\n }} \n \n \n \n
\n
\n (* ) Opção que o candidato(a) marcou \n
\n
\n \n\n","import { render, staticRenderFns } from \"./YesOrNo.vue?vue&type=template&id=de45417c&\"\nimport script from \"./YesOrNo.vue?vue&type=script&lang=js&\"\nexport * from \"./YesOrNo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-card-grey\"},[_c('div',{staticClass:\"cardy-body-noBorder\"},[_c('h4',{staticClass:\"color-dar-purple mb-3\"},[_vm._v(\"APLICAÇÕES\")]),_vm._v(\" \"),_vm._l((_vm.applies),function(apply){return _c('div',{key:apply.id},[_c('p',{staticClass:\"m-0\"},[_c('font-awesome-icon',{staticClass:\"text-danger pointer mr-3\",attrs:{\"icon\":\"times-circle\"},on:{\"click\":function($event){return _vm.removeApply(apply.id)}}}),_vm._v(\" \"),_c('strong',{staticClass:\"color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.title)+\"\\n \")])],1),_vm._v(\" \"),_c('span',{staticClass:\"f11\"},[_vm._v(_vm._s(_vm._f(\"date\")(new Date(apply.created_at))))]),_vm._v(\" \"),_c('hr')])}),_vm._v(\" \"),_c('button',{staticClass:\"color-white btn-add-items-tb bg-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\"\\n Adicionar à vaga\\n \")])],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AllApplies.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AllApplies.vue?vue&type=script&lang=js&\"","\n \n
\n
APLICAÇÕES \n
\n
\n\n \n \n {{ apply.title }}\n \n
\n
{{ new Date(apply.created_at) | date }} \n
\n
\n
\n Adicionar à vaga\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./AllApplies.vue?vue&type=template&id=5a8f81aa&\"\nimport script from \"./AllApplies.vue?vue&type=script&lang=js&\"\nexport * from \"./AllApplies.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import getUTCDayOfYear from \"../../../_lib/getUTCDayOfYear/index.js\";\nimport getUTCISOWeek from \"../../../_lib/getUTCISOWeek/index.js\";\nimport getUTCISOWeekYear from \"../../../_lib/getUTCISOWeekYear/index.js\";\nimport getUTCWeek from \"../../../_lib/getUTCWeek/index.js\";\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\nimport addLeadingZeros from \"../../addLeadingZeros/index.js\";\nimport lightFormatters from \"../lightFormatters/index.js\";\nvar dayPeriodEnum = {\n am: 'am',\n pm: 'pm',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n};\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nvar formatters = {\n // Era\n G: function G(date, token, localize) {\n var era = date.getUTCFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case 'G':\n case 'GG':\n case 'GGG':\n return localize.era(era, {\n width: 'abbreviated'\n });\n // A, B\n case 'GGGGG':\n return localize.era(era, {\n width: 'narrow'\n });\n // Anno Domini, Before Christ\n case 'GGGG':\n default:\n return localize.era(era, {\n width: 'wide'\n });\n }\n },\n // Year\n y: function y(date, token, localize) {\n // Ordinal number\n if (token === 'yo') {\n var signedYear = date.getUTCFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n var year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, {\n unit: 'year'\n });\n }\n return lightFormatters.y(date, token);\n },\n // Local week-numbering year\n Y: function Y(date, token, localize, options) {\n var signedWeekYear = getUTCWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === 'YY') {\n var twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === 'Yo') {\n return localize.ordinalNumber(weekYear, {\n unit: 'year'\n });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n // ISO week-numbering year\n R: function R(date, token) {\n var isoWeekYear = getUTCISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function u(date, token) {\n var year = date.getUTCFullYear();\n return addLeadingZeros(year, token.length);\n },\n // Quarter\n Q: function Q(date, token, localize) {\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case 'Q':\n return String(quarter);\n // 01, 02, 03, 04\n case 'QQ':\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case 'Qo':\n return localize.ordinalNumber(quarter, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n case 'QQQ':\n return localize.quarter(quarter, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case 'QQQQQ':\n return localize.quarter(quarter, {\n width: 'narrow',\n context: 'formatting'\n });\n // 1st quarter, 2nd quarter, ...\n case 'QQQQ':\n default:\n return localize.quarter(quarter, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Stand-alone quarter\n q: function q(date, token, localize) {\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case 'q':\n return String(quarter);\n // 01, 02, 03, 04\n case 'qq':\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case 'qo':\n return localize.ordinalNumber(quarter, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n case 'qqq':\n return localize.quarter(quarter, {\n width: 'abbreviated',\n context: 'standalone'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case 'qqqqq':\n return localize.quarter(quarter, {\n width: 'narrow',\n context: 'standalone'\n });\n // 1st quarter, 2nd quarter, ...\n case 'qqqq':\n default:\n return localize.quarter(quarter, {\n width: 'wide',\n context: 'standalone'\n });\n }\n },\n // Month\n M: function M(date, token, localize) {\n var month = date.getUTCMonth();\n switch (token) {\n case 'M':\n case 'MM':\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case 'Mo':\n return localize.ordinalNumber(month + 1, {\n unit: 'month'\n });\n // Jan, Feb, ..., Dec\n case 'MMM':\n return localize.month(month, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // J, F, ..., D\n case 'MMMMM':\n return localize.month(month, {\n width: 'narrow',\n context: 'formatting'\n });\n // January, February, ..., December\n case 'MMMM':\n default:\n return localize.month(month, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Stand-alone month\n L: function L(date, token, localize) {\n var month = date.getUTCMonth();\n switch (token) {\n // 1, 2, ..., 12\n case 'L':\n return String(month + 1);\n // 01, 02, ..., 12\n case 'LL':\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case 'Lo':\n return localize.ordinalNumber(month + 1, {\n unit: 'month'\n });\n // Jan, Feb, ..., Dec\n case 'LLL':\n return localize.month(month, {\n width: 'abbreviated',\n context: 'standalone'\n });\n // J, F, ..., D\n case 'LLLLL':\n return localize.month(month, {\n width: 'narrow',\n context: 'standalone'\n });\n // January, February, ..., December\n case 'LLLL':\n default:\n return localize.month(month, {\n width: 'wide',\n context: 'standalone'\n });\n }\n },\n // Local week of year\n w: function w(date, token, localize, options) {\n var week = getUTCWeek(date, options);\n if (token === 'wo') {\n return localize.ordinalNumber(week, {\n unit: 'week'\n });\n }\n return addLeadingZeros(week, token.length);\n },\n // ISO week of year\n I: function I(date, token, localize) {\n var isoWeek = getUTCISOWeek(date);\n if (token === 'Io') {\n return localize.ordinalNumber(isoWeek, {\n unit: 'week'\n });\n }\n return addLeadingZeros(isoWeek, token.length);\n },\n // Day of the month\n d: function d(date, token, localize) {\n if (token === 'do') {\n return localize.ordinalNumber(date.getUTCDate(), {\n unit: 'date'\n });\n }\n return lightFormatters.d(date, token);\n },\n // Day of year\n D: function D(date, token, localize) {\n var dayOfYear = getUTCDayOfYear(date);\n if (token === 'Do') {\n return localize.ordinalNumber(dayOfYear, {\n unit: 'dayOfYear'\n });\n }\n return addLeadingZeros(dayOfYear, token.length);\n },\n // Day of week\n E: function E(date, token, localize) {\n var dayOfWeek = date.getUTCDay();\n switch (token) {\n // Tue\n case 'E':\n case 'EE':\n case 'EEE':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // T\n case 'EEEEE':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n case 'EEEEEE':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'formatting'\n });\n // Tuesday\n case 'EEEE':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Local day of week\n e: function e(date, token, localize, options) {\n var dayOfWeek = date.getUTCDay();\n var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case 'e':\n return String(localDayOfWeek);\n // Padded numerical value\n case 'ee':\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case 'eo':\n return localize.ordinalNumber(localDayOfWeek, {\n unit: 'day'\n });\n case 'eee':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // T\n case 'eeeee':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n case 'eeeeee':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'formatting'\n });\n // Tuesday\n case 'eeee':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Stand-alone local day of week\n c: function c(date, token, localize, options) {\n var dayOfWeek = date.getUTCDay();\n var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case 'c':\n return String(localDayOfWeek);\n // Padded numerical value\n case 'cc':\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case 'co':\n return localize.ordinalNumber(localDayOfWeek, {\n unit: 'day'\n });\n case 'ccc':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'standalone'\n });\n // T\n case 'ccccc':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'standalone'\n });\n // Tu\n case 'cccccc':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'standalone'\n });\n // Tuesday\n case 'cccc':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'standalone'\n });\n }\n },\n // ISO day of week\n i: function i(date, token, localize) {\n var dayOfWeek = date.getUTCDay();\n var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case 'i':\n return String(isoDayOfWeek);\n // 02\n case 'ii':\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case 'io':\n return localize.ordinalNumber(isoDayOfWeek, {\n unit: 'day'\n });\n // Tue\n case 'iii':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // T\n case 'iiiii':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n case 'iiiiii':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'formatting'\n });\n // Tuesday\n case 'iiii':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // AM or PM\n a: function a(date, token, localize) {\n var hours = date.getUTCHours();\n var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n switch (token) {\n case 'a':\n case 'aa':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n });\n case 'aaa':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n }).toLowerCase();\n case 'aaaaa':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'narrow',\n context: 'formatting'\n });\n case 'aaaa':\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // AM, PM, midnight, noon\n b: function b(date, token, localize) {\n var hours = date.getUTCHours();\n var dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n }\n switch (token) {\n case 'b':\n case 'bb':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n });\n case 'bbb':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n }).toLowerCase();\n case 'bbbbb':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'narrow',\n context: 'formatting'\n });\n case 'bbbb':\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // in the morning, in the afternoon, in the evening, at night\n B: function B(date, token, localize) {\n var hours = date.getUTCHours();\n var dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n switch (token) {\n case 'B':\n case 'BB':\n case 'BBB':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n });\n case 'BBBBB':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'narrow',\n context: 'formatting'\n });\n case 'BBBB':\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Hour [1-12]\n h: function h(date, token, localize) {\n if (token === 'ho') {\n var hours = date.getUTCHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, {\n unit: 'hour'\n });\n }\n return lightFormatters.h(date, token);\n },\n // Hour [0-23]\n H: function H(date, token, localize) {\n if (token === 'Ho') {\n return localize.ordinalNumber(date.getUTCHours(), {\n unit: 'hour'\n });\n }\n return lightFormatters.H(date, token);\n },\n // Hour [0-11]\n K: function K(date, token, localize) {\n var hours = date.getUTCHours() % 12;\n if (token === 'Ko') {\n return localize.ordinalNumber(hours, {\n unit: 'hour'\n });\n }\n return addLeadingZeros(hours, token.length);\n },\n // Hour [1-24]\n k: function k(date, token, localize) {\n var hours = date.getUTCHours();\n if (hours === 0) hours = 24;\n if (token === 'ko') {\n return localize.ordinalNumber(hours, {\n unit: 'hour'\n });\n }\n return addLeadingZeros(hours, token.length);\n },\n // Minute\n m: function m(date, token, localize) {\n if (token === 'mo') {\n return localize.ordinalNumber(date.getUTCMinutes(), {\n unit: 'minute'\n });\n }\n return lightFormatters.m(date, token);\n },\n // Second\n s: function s(date, token, localize) {\n if (token === 'so') {\n return localize.ordinalNumber(date.getUTCSeconds(), {\n unit: 'second'\n });\n }\n return lightFormatters.s(date, token);\n },\n // Fraction of second\n S: function S(date, token) {\n return lightFormatters.S(date, token);\n },\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function X(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n if (timezoneOffset === 0) {\n return 'Z';\n }\n switch (token) {\n // Hours and optional minutes\n case 'X':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case 'XXXX':\n case 'XX':\n // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case 'XXXXX':\n case 'XXX': // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function x(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n switch (token) {\n // Hours and optional minutes\n case 'x':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case 'xxxx':\n case 'xx':\n // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case 'xxxxx':\n case 'xxx': // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (GMT)\n O: function O(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n switch (token) {\n // Short\n case 'O':\n case 'OO':\n case 'OOO':\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n // Long\n case 'OOOO':\n default:\n return 'GMT' + formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (specific non-location)\n z: function z(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n switch (token) {\n // Short\n case 'z':\n case 'zz':\n case 'zzz':\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n // Long\n case 'zzzz':\n default:\n return 'GMT' + formatTimezone(timezoneOffset, ':');\n }\n },\n // Seconds timestamp\n t: function t(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timestamp = Math.floor(originalDate.getTime() / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n // Milliseconds timestamp\n T: function T(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timestamp = originalDate.getTime();\n return addLeadingZeros(timestamp, token.length);\n }\n};\nfunction formatTimezoneShort(offset, dirtyDelimiter) {\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = Math.floor(absOffset / 60);\n var minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n var delimiter = dirtyDelimiter || '';\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\nfunction formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {\n if (offset % 60 === 0) {\n var sign = offset > 0 ? '-' : '+';\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, dirtyDelimiter);\n}\nfunction formatTimezone(offset, dirtyDelimiter) {\n var delimiter = dirtyDelimiter || '';\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\n var minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\nexport default formatters;","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_DAY = 86400000;\nexport default function getUTCDayOfYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var timestamp = date.getTime();\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n var startOfYearTimestamp = date.getTime();\n var difference = timestamp - startOfYearTimestamp;\n return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;\n}","import isValid from \"../isValid/index.js\";\nimport subMilliseconds from \"../subMilliseconds/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport formatters from \"../_lib/format/formatters/index.js\";\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\"; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\n * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param {Date|Number} date - the original date\n * @param {String} format - the string of tokens\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\n\nexport default function format(dirtyDate, dirtyFormatStr, options) {\n var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;\n requiredArgs(2, arguments);\n var formatStr = String(dirtyFormatStr);\n var defaultOptions = getDefaultOptions();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);\n\n // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n if (!locale.localize) {\n throw new RangeError('locale must contain localize property');\n }\n if (!locale.formatLong) {\n throw new RangeError('locale must contain formatLong property');\n }\n var originalDate = toDate(dirtyDate);\n if (!isValid(originalDate)) {\n throw new RangeError('Invalid time value');\n }\n\n // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\n var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);\n var utcDate = subMilliseconds(originalDate, timezoneOffset);\n var formatterOptions = {\n firstWeekContainsDate: firstWeekContainsDate,\n weekStartsOn: weekStartsOn,\n locale: locale,\n _originalDate: originalDate\n };\n var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {\n var firstCharacter = substring[0];\n if (firstCharacter === 'p' || firstCharacter === 'P') {\n var longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n }).join('').match(formattingTokensRegExp).map(function (substring) {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return \"'\";\n }\n var firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return cleanEscapedString(substring);\n }\n var formatter = formatters[firstCharacter];\n if (formatter) {\n if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {\n throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\n }\n if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {\n throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\n }\n return formatter(utcDate, substring, locale.localize, formatterOptions);\n }\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n }\n return substring;\n }).join('');\n return result;\n}\nfunction cleanEscapedString(input) {\n var matched = input.match(escapedStringRegExp);\n if (!matched) {\n return input;\n }\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}","import { toUint8, bytesMatch } from './byte-helpers.js';\nvar ID3 = toUint8([0x49, 0x44, 0x33]);\nexport var getId3Size = function getId3Size(bytes, offset) {\n if (offset === void 0) {\n offset = 0;\n }\n bytes = toUint8(bytes);\n var flags = bytes[offset + 5];\n var returnSize = bytes[offset + 6] << 21 | bytes[offset + 7] << 14 | bytes[offset + 8] << 7 | bytes[offset + 9];\n var footerPresent = (flags & 16) >> 4;\n if (footerPresent) {\n return returnSize + 20;\n }\n return returnSize + 10;\n};\nexport var getId3Offset = function getId3Offset(bytes, offset) {\n if (offset === void 0) {\n offset = 0;\n }\n bytes = toUint8(bytes);\n if (bytes.length - offset < 10 || !bytesMatch(bytes, ID3, {\n offset: offset\n })) {\n return offset;\n }\n offset += getId3Size(bytes, offset); // recursive check for id3 tags as some files\n // have multiple ID3 tag sections even though\n // they should not.\n\n return getId3Offset(bytes, offset);\n};","// shim for using process in browser\nvar process = module.exports = {};\n\n// 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;\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\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 try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n})();\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\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}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\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}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n while (len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\nfunction noop() {}\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;\nprocess.listeners = function (name) {\n return [];\n};\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\nprocess.cwd = function () {\n return '/';\n};\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function () {\n return 0;\n};","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport default function endOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function getUTCWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getUTCFullYear();\n var defaultOptions = getDefaultOptions();\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n\n // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n var firstWeekOfNextYear = new Date(0);\n firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);\n var firstWeekOfThisYear = new Date(0);\n firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}","import html2pdf from 'html2pdf.js';\n\n//\n\nvar script = {\n props: {\n showLayout: {\n type: Boolean,\n default: false\n },\n floatLayout: {\n type: Boolean,\n default: true\n },\n enableDownload: {\n type: Boolean,\n default: true\n },\n previewModal: {\n type: Boolean,\n default: false\n },\n paginateElementsByHeight: {\n type: Number\n },\n filename: {\n type: String,\n default: \"\" + new Date().getTime()\n },\n pdfQuality: {\n type: Number,\n default: 2\n },\n pdfFormat: {\n default: 'a4'\n },\n pdfOrientation: {\n type: String,\n default: 'portrait'\n },\n pdfContentWidth: {\n default: '800px'\n },\n htmlToPdfOptions: {\n type: Object\n },\n manualPagination: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n hasAlreadyParsed: false,\n progress: 0,\n pdfWindow: null,\n pdfFile: null\n };\n },\n watch: {\n progress: function progress(val) {\n this.$emit('progress', val);\n },\n paginateElementsByHeight: function paginateElementsByHeight() {\n this.resetPagination();\n },\n $props: {\n handler: function handler() {\n this.validateProps();\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n validateProps: function validateProps() {\n // If manual-pagination is false, paginate-elements-by-height props is required\n if (!this.manualPagination) {\n if (this.paginateElementsByHeight === undefined) {\n console.error('Error: paginate-elements-by-height is required if manual-pagination is false');\n }\n }\n },\n resetPagination: function resetPagination() {\n var parentElement = this.$refs.pdfContent.firstChild;\n var pageBreaks = parentElement.getElementsByClassName('html2pdf__page-break');\n var pageBreakLength = pageBreaks.length - 1;\n if (pageBreakLength === -1) {\n return;\n }\n this.hasAlreadyParsed = false;\n\n // Remove All Page Break (For Pagination)\n for (var x = pageBreakLength; x >= 0; x--) {\n pageBreaks[x].parentNode.removeChild(pageBreaks[x]);\n }\n },\n generatePdf: function generatePdf() {\n this.$emit('startPagination');\n this.progress = 0;\n this.paginationOfElements();\n },\n paginationOfElements: function paginationOfElements() {\n this.progress = 25;\n\n /*\r\n \tWhen this props is true, \r\n \tthe props paginate-elements-by-height will not be used.\r\n \tInstead the pagination process will rely on the elements with a class \"html2pdf__page-break\"\r\n \tto know where to page break, which is automatically done by html2pdf.js\r\n */\n if (this.manualPagination) {\n this.progress = 70;\n this.$emit('hasPaginated');\n this.downloadPdf();\n return;\n }\n if (!this.hasAlreadyParsed) {\n var parentElement = this.$refs.pdfContent.firstChild;\n var ArrOfContentChildren = Array.from(parentElement.children);\n var childrenHeight = 0;\n\n /*\r\n \tLoop through Elements and add there height with childrenHeight variable.\r\n \tOnce the childrenHeight is >= this.paginateElementsByHeight, create a div with\r\n \ta class named 'html2pdf__page-break' and insert the element before the element\r\n \tthat will be in the next page\r\n */\n for (var childElement of ArrOfContentChildren) {\n // Get The First Class of the element\n var elementFirstClass = childElement.classList[0];\n var isPageBreakClass = elementFirstClass === 'html2pdf__page-break';\n if (isPageBreakClass) {\n childrenHeight = 0;\n } else {\n // Get Element Height\n var elementHeight = childElement.clientHeight;\n\n // Get Computed Margin Top and Bottom\n var elementComputedStyle = childElement.currentStyle || window.getComputedStyle(childElement);\n var elementMarginTopBottom = parseInt(elementComputedStyle.marginTop) + parseInt(elementComputedStyle.marginBottom);\n\n // Add Both Element Height with the Elements Margin Top and Bottom\n var elementHeightWithMargin = elementHeight + elementMarginTopBottom;\n if (childrenHeight + elementHeight < this.paginateElementsByHeight) {\n childrenHeight += elementHeightWithMargin;\n } else {\n var section = document.createElement('div');\n section.classList.add('html2pdf__page-break');\n parentElement.insertBefore(section, childElement);\n\n // Reset Variables made the upper condition false\n childrenHeight = elementHeightWithMargin;\n }\n }\n }\n this.progress = 70;\n\n /*\r\n \tSet to true so that if would generate again we wouldn't need\r\n \tto parse the HTML to paginate the elements\r\n */\n this.hasAlreadyParsed = true;\n } else {\n this.progress = 70;\n }\n this.$emit('hasPaginated');\n this.downloadPdf();\n },\n downloadPdf: async function downloadPdf() {\n // Set Element and Html2pdf.js Options\n var pdfContent = this.$refs.pdfContent;\n var options = this.setOptions();\n this.$emit('beforeDownload', {\n html2pdf: html2pdf,\n options: options,\n pdfContent: pdfContent\n });\n var html2PdfSetup = html2pdf().set(options).from(pdfContent);\n var pdfBlobUrl = null;\n if (this.previewModal) {\n this.pdfFile = await html2PdfSetup.output('bloburl');\n pdfBlobUrl = this.pdfFile;\n }\n if (this.enableDownload) {\n pdfBlobUrl = await html2PdfSetup.save().output('bloburl');\n }\n if (pdfBlobUrl) {\n var res = await fetch(pdfBlobUrl);\n var blobFile = await res.blob();\n this.$emit('hasDownloaded', blobFile);\n }\n this.progress = 100;\n },\n setOptions: function setOptions() {\n if (this.htmlToPdfOptions !== undefined && this.htmlToPdfOptions !== null) {\n return this.htmlToPdfOptions;\n }\n return {\n margin: 0,\n filename: this.filename + \".pdf\",\n image: {\n type: 'jpeg',\n quality: 0.98\n },\n enableLinks: false,\n html2canvas: {\n scale: this.pdfQuality,\n useCORS: true\n },\n jsPDF: {\n unit: 'in',\n format: this.pdfFormat,\n orientation: this.pdfOrientation\n }\n };\n },\n closePreview: function closePreview() {\n this.pdfFile = null;\n }\n }\n};\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n }\n // Vue.extend constructor export interop.\n var options = typeof script === 'function' ? script.options : script;\n // render functions\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true;\n // functional template\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n }\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId;\n }\n var hook;\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context = context ||\n // cached call\n this.$vnode && this.$vnode.ssrContext ||\n // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n }\n // inject component styles\n if (style) {\n style.call(this, createInjectorSSR(context));\n }\n // register component module identifier for async chunk inference\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n };\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function (context) {\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n return script;\n}\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\nfunction createInjector(context) {\n return function (id, style) {\n return addStyle(id, style);\n };\n}\nvar HEAD;\nvar styles = {};\nfunction addStyle(id, css) {\n var group = isOldIE ? css.media || 'default' : id;\n var style = styles[group] || (styles[group] = {\n ids: new Set(),\n styles: []\n });\n if (!style.ids.has(id)) {\n style.ids.add(id);\n var code = css.source;\n if (css.map) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n code += '\\n/*# sourceURL=' + css.map.sources[0] + ' */';\n // http://stackoverflow.com/a/26603875\n code += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';\n }\n if (!style.element) {\n style.element = document.createElement('style');\n style.element.type = 'text/css';\n if (css.media) {\n style.element.setAttribute('media', css.media);\n }\n if (HEAD === undefined) {\n HEAD = document.head || document.getElementsByTagName('head')[0];\n }\n HEAD.appendChild(style.element);\n }\n if ('styleSheet' in style.element) {\n style.styles.push(code);\n style.element.styleSheet.cssText = style.styles.filter(Boolean).join('\\n');\n } else {\n var index = style.ids.size - 1;\n var textNode = document.createTextNode(code);\n var nodes = style.element.childNodes;\n if (nodes[index]) {\n style.element.removeChild(nodes[index]);\n }\n if (nodes.length) {\n style.element.insertBefore(textNode, nodes[index]);\n } else {\n style.element.appendChild(textNode);\n }\n }\n }\n}\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c('div', {\n staticClass: \"vue-html2pdf\"\n }, [_c('section', {\n staticClass: \"layout-container\",\n class: {\n 'show-layout': _vm.showLayout,\n 'unset-all': !_vm.floatLayout\n }\n }, [_c('section', {\n ref: \"pdfContent\",\n staticClass: \"content-wrapper\",\n style: \"width: \" + _vm.pdfContentWidth + \";\"\n }, [_vm._t(\"pdf-content\")], 2)]), _vm._v(\" \"), _c('transition', {\n attrs: {\n \"name\": \"transition-anim\"\n }\n }, [_vm.pdfFile ? _c('section', {\n staticClass: \"pdf-preview\"\n }, [_c('button', {\n on: {\n \"click\": function ($event) {\n if ($event.target !== $event.currentTarget) {\n return null;\n }\n return _vm.closePreview();\n }\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t×\\n\\t\\t\\t\\t\")]), _vm._v(\" \"), _c('iframe', {\n attrs: {\n \"src\": _vm.pdfFile,\n \"width\": \"100%\",\n \"height\": \"100%\"\n }\n })]) : _vm._e()])], 1);\n};\nvar __vue_staticRenderFns__ = [];\n\n/* style */\nvar __vue_inject_styles__ = function (inject) {\n if (!inject) {\n return;\n }\n inject(\"data-v-1fd3ad26_0\", {\n source: \".vue-html2pdf .layout-container[data-v-1fd3ad26]{position:fixed;width:100vw;height:100vh;left:-100vw;top:0;z-index:-9999;background:rgba(95,95,95,.8);display:flex;justify-content:center;align-items:flex-start;overflow:auto}.vue-html2pdf .layout-container.show-layout[data-v-1fd3ad26]{left:0;z-index:9999}.vue-html2pdf .layout-container.unset-all[data-v-1fd3ad26]{all:unset;width:auto;height:auto}.vue-html2pdf .pdf-preview[data-v-1fd3ad26]{position:fixed;width:65%;min-width:600px;height:80vh;top:100px;z-index:9999999;left:50%;transform:translateX(-50%);border-radius:5px;box-shadow:0 0 10px #00000048}.vue-html2pdf .pdf-preview button[data-v-1fd3ad26]{position:absolute;top:-20px;left:-15px;width:35px;height:35px;background:#555;border:0;box-shadow:0 0 10px #00000048;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer}.vue-html2pdf .pdf-preview iframe[data-v-1fd3ad26]{border:0}.vue-html2pdf .transition-anim-enter-active[data-v-1fd3ad26],.vue-html2pdf .transition-anim-leave-active[data-v-1fd3ad26]{transition:opacity .3s ease-in}.vue-html2pdf .transition-anim-enter[data-v-1fd3ad26],.vue-html2pdf .transition-anim-leave-to[data-v-1fd3ad26]{opacity:0}\",\n map: undefined,\n media: undefined\n });\n};\n/* scoped */\nvar __vue_scope_id__ = \"data-v-1fd3ad26\";\n/* module identifier */\nvar __vue_module_identifier__ = undefined;\n/* functional template */\nvar __vue_is_functional_template__ = false;\n/* style inject SSR */\n\n/* style inject shadow dom */\n\nvar __vue_component__ = /*#__PURE__*/normalizeComponent({\n render: __vue_render__,\n staticRenderFns: __vue_staticRenderFns__\n}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);\n\n// Import vue component\n\n// install function executed by Vue.use()\nfunction install(Vue) {\n if (install.installed) {\n return;\n }\n install.installed = true;\n Vue.component('VueHtml2pdf', __vue_component__);\n}\n\n// Create module definition for Vue.use()\nvar plugin = {\n install: install\n};\n\n// To auto-install when vue is found\n/* global window global */\nvar GlobalVue = null;\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\nif (GlobalVue) {\n GlobalVue.use(plugin);\n}\n\n// Inject install function into component - allows component\n// to be registered via Vue.use() as well as Vue.component()\n__vue_component__.install = install;\n\n// It's possible to expose named exports when writing components that can\n// also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo';\n// export const RollupDemoDirective = component;\n\nexport default __vue_component__;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bgAdminRecruiter\"},[_c('div',{staticClass:\"application_layout\"},[_c('header',{staticClass:\"u-header--starter\",attrs:{\"id\":\"header\"}},[_c('nav',{staticClass:\"navbar navbar-dark lex-nowrap bg_menu p-0 bg-white\",staticStyle:{\"border-bottom\":\"1px solid #937ed0\"},attrs:{\"id\":\"logoAndNav\"}},[_c('inertia-link',{staticClass:\"m-3\",attrs:{\"href\":\"/recruiters/dashboard\"}},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\",\"width\":\"120px\"}})]),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('CalendarButton'),_vm._v(\" \"),_c('div',{staticClass:\"dropdown white_font\",staticStyle:{\"margin-right\":\"5px\",\"user-select\":\"none\"}},[_c('a',{staticClass:\"dropdown-toggle\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"data-toggle\":\"dropdown\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('img',{staticClass:\"img_avatar_small\",attrs:{\"src\":_vm.picture}})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu p-2 bg-light-grey\",staticStyle:{\"margin-left\":\"-90px\"},attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('inertia-link',{staticClass:\"btn full mt-1 mb-1 btn-dark user-dropdown-item\",attrs:{\"href\":\"/recruiters/profile/edit\"}},[_vm._v(\"Perfil\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn full mt-1 mb-1 btn-dark user-dropdown-item\",on:{\"click\":_vm.logout}},[_vm._v(\"\\n Logout\\n \")])],1)])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1 col-md-1 col-xs-12 px-0\",staticStyle:{\"background-color\":\"#241a3f\"}},[_c('div',{staticClass:\"pt-2 full_height\"},[_c('MenuAdminItem',{attrs:{\"label\":\"Dashboard\",\"url\":\"/recruiters/dashboard\",\"img\":\"/images/DASHBOARD_ICON.png\",\"img_active\":\"/images/DASHBOARD_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Vagas\",\"url\":\"/recruiters/jobs\",\"img\":\"/images/VAGA_ICON.png\",\"img_active\":\"/images/VAGA_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Vídeos\",\"url\":\"/recruiters/videos\",\"img\":\"/images/VIDEOS_ICON.png\",\"img_active\":\"/images/VIDEOS_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Live\",\"url\":\"/recruiters/rooms\",\"img\":\"/images/LIVE_ICON.png\",\"img_active\":\"/images/LIVE_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Templates\",\"url\":\"/recruiters/templates\",\"img\":\"/images/TEMPLATE_ICON.png\",\"img_active\":\"/images/TEMPLATE_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Galeria de vídeos\",\"url\":\"/recruiters/galleries\",\"img\":\"/images/VIDEOS_ICON.png\",\"img_active\":\"/images/VIDEOS_COLOR_ICON.png\",\"replace\":true,\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.talent_bank),expression:\"talent_bank\"}],attrs:{\"label\":\"Candidatos\",\"url\":\"/recruiters/talent_banks/candidates\",\"img\":\"/images/BANCO-DE-CANDIDATOS.png\",\"img_active\":\"/images/BANCO-DE-CANDIDATOS_COLOR.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Testes\",\"img\":\"/images/CONFIGURACOES_ICON.png\",\"img_active\":\"/images/CONFIGURACOES_COLOR_ICON.png \",\"url\":\"/recruiters/assessments\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.admin),expression:\"admin\"}],attrs:{\"label\":\"Recrutadores\",\"img\":\"/images/CONFIGURACOES_ICON.png\",\"img_active\":\"/images/CONFIGURACOES_COLOR_ICON.png \",\"url\":\"/recruiters/teams\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.admin),expression:\"admin\"}],staticClass:\"hide\",attrs:{\"label\":\"Mapeamento de campos\",\"img\":\"/images/CONFIGURACOES_ICON.png\",\"img_active\":\"/images/CONFIGURACOES_COLOR_ICON.png \",\"url\":\"/recruiters/field_mapping\",\"active\":_vm.menu}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-11 col-md-11 col-xs-12\",class:{\n 'p-0': _vm.fullLayout(this.menu),\n galleries: this.menu == 'Galeria de vídeos' ? true : false,\n 'p-4': !_vm.fullLayout(this.menu),\n },style:({ ..._vm.customStyle, ..._vm.contentStyles })},[_vm._t(\"default\")],2)])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"input-group input-group-xs input-group-borderless d-md-flex mr-auto ml-md-4\",staticStyle:{\"max-width\":\"700px\"}},[_c('div',{staticClass:\"input-group-prepend hide\"},[_c('span',{staticClass:\"input-group-text bg-primary2\",attrs:{\"id\":\"docsSearch\"}},[_c('span',{staticClass:\"fas fa-search\"})])]),_vm._v(\" \"),_c('input',{staticClass:\"js-hs-docs-search hide form-control pl-0 ui-autocomplete-input\",staticStyle:{\"height\":\"36px\",\"padding-right\":\"5px\"},attrs:{\"id\":\"input_search\",\"type\":\"text\",\"placeholder\":\"Pesquisar...\",\"aria-label\":\"Pesquisar...\",\"aria-describedby\":\"docsSearch\"}})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mr-3\"},[_c('button',{staticClass:\"hidebtn hide btn-outline-success\"},[_vm._v(\"\\n Upgrade Plan\\n \")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdminRecruiter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdminRecruiter.vue?vue&type=script&lang=js&\"","\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","import { render, staticRenderFns } from \"./AdminRecruiter.vue?vue&type=template&id=08bf1b00&\"\nimport script from \"./AdminRecruiter.vue?vue&type=script&lang=js&\"\nexport * from \"./AdminRecruiter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.url != false)?_c('div',[_c('span',[_c('a',{staticClass:\"color-white\",attrs:{\"href\":_vm.url,\"target\":\"_blank\"}},[_c('i',{staticClass:\"fas fa-cloud-download-alt color-black color-purple f20\"})])])]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ButtonDonwloadCV.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ButtonDonwloadCV.vue?vue&type=script&lang=js&\"","\n \n \n\n\n\n\n","import { render, staticRenderFns } from \"./ButtonDonwloadCV.vue?vue&type=template&id=792a3c75&scoped=true&\"\nimport script from \"./ButtonDonwloadCV.vue?vue&type=script&lang=js&\"\nexport * from \"./ButtonDonwloadCV.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"792a3c75\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container center\"},[_c('canvas',{staticClass:\"hide\",attrs:{\"id\":\"canvas\"}}),_vm._v(\" \"),_c('div',{staticStyle:{\"margin\":\"0px auto\",\"max-width\":\"320px\"}},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.url != false),expression:\"url != false\"}],attrs:{\"width\":\"100%\",\"id\":\"videoMobile\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.url}})])]),_vm._v(\" \"),(_vm.load)?_c('button',{staticClass:\"btn btn-lg btn-success\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(!_vm.load && !_vm.next)?_c('span',{staticClass:\"btn mt-3 btn-lg btn-success btn-default btn-file\"},[_vm._v(\"\\n COMEÇAR A GRAVAR.\\n \"),_c('input',{ref:\"file\",attrs:{\"type\":\"file\",\"accept\":\"video/*\",\"name\":\"answers[video]\",\"id\":\"capture\",\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovie()}}})]):_vm._e(),_vm._v(\" \"),(_vm.question.choices.canBeEmpty)?_c('div',[_c('button',{staticClass:\"btn mt-3 btn-lg btn-primary\",staticStyle:{\"width\":\"90%\"},on:{\"click\":function($event){return _vm.nextQuestion(false)}}},[_vm._v(\"\\n Pular\\n \")])]):_vm._e(),_vm._v(\" \"),(!_vm.load && _vm.next)?_c('button',{staticClass:\"btn mt-3 btn-lg btn-primary\",on:{\"click\":_vm.saveThumb}},[_vm._v(\"\\n PRÓXIMA PERGUNTA\\n \"),_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-right\"}})],1):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoJSRecordMobile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoJSRecordMobile.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n \n \n
\n\n
\n \n \n
\n \n\n
\n COMEÇAR A GRAVAR.\n \n \n
\n \n Pular\n \n
\n
\n PRÓXIMA PERGUNTA\n \n \n
\n \n\n\n","import { render, staticRenderFns } from \"./VideoJSRecordMobile.vue?vue&type=template&id=6bb3f562&\"\nimport script from \"./VideoJSRecordMobile.vue?vue&type=script&lang=js&\"\nexport * from \"./VideoJSRecordMobile.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"HABILIDADES TÉCNICAS\")]),_vm._v(\" \"),_c('vue-tags-input',{class:`full ${_vm.inputClasses}`,attrs:{\"disabled\":!_vm.candidate_id ? true : false,\"tags\":_vm.skills,\"autocomplete-items\":_vm.autocompleteItemsSkill},on:{\"before-deleting-tag\":_vm.deleteSkill,\"before-adding-tag\":_vm.createSkill,\"tags-changed\":(newTags) => (_vm.skills = newTags)},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:\"text\"}}),_vm._v(\" \"),(_vm.candidate_id)?_c('span',{staticClass:\"f12\"},[_vm._v(\"\\n PRESSIONE 'ENTER' PARA ADICIONAR AS HABILIDADES TÉCNICAS\\n \")]):_c('span',{staticClass:\"f12 text-danger\"},[_vm._v(\"\\n O CANDIDATO(A) PRECISA ESTAR CRIADO PARA PODER ADICIONAR AS HABILIDADES\\n TÉCNICAS\\n \")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CandidateSkills.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CandidateSkills.vue?vue&type=script&lang=js&\"","\n \n
\n HABILIDADES TÉCNICAS \n (skills = newTags)\"\n />\n \n PRESSIONE 'ENTER' PARA ADICIONAR AS HABILIDADES TÉCNICAS\n \n \n O CANDIDATO(A) PRECISA ESTAR CRIADO PARA PODER ADICIONAR AS HABILIDADES\n TÉCNICAS\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./CandidateSkills.vue?vue&type=template&id=446b7dd4&\"\nimport script from \"./CandidateSkills.vue?vue&type=script&lang=js&\"\nexport * from \"./CandidateSkills.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[(_vm.selectedManagers.length > 0)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('table',{staticClass:\"table table-hover\"},[_vm._m(0),_vm._v(\" \"),_c('tbody',_vm._l((_vm.selectedManagers),function(manager,index){return _c('tr',{key:manager.email,staticClass:\"h-auto\",on:{\"click\":function($event){manager.checked = !manager.checked}}},[_c('td',{staticClass:\"center\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(manager.checked),expression:\"manager.checked\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(manager.checked)?_vm._i(manager.checked,null)>-1:(manager.checked)},on:{\"change\":function($event){var $$a=manager.checked,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(manager, \"checked\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(manager, \"checked\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(manager, \"checked\", $$c)}}}}),_vm._v(\" \"),_c('div',{staticClass:\"d-inline\",on:{\"click\":function($event){return _vm.removeManager(index, manager.id)}}},[_c('i',{staticClass:\"fas fa-trash color-red ml-1 scale_1\"})])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"text-truncate d-inline-block\",style:(_vm.truncate ? 'max-width: 100px' : ''),attrs:{\"title\":manager.name}},[_vm._v(_vm._s(manager.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"text-truncate d-inline-block\",style:(_vm.truncate ? 'max-width: 200px' : ''),attrs:{\"title\":manager.email}},[_vm._v(_vm._s(manager.email))])])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mb-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.manager.name),expression:\"manager.name\"}],class:_vm.inputClasses,attrs:{\"type\":\"text\",\"placeholder\":\"Nome\"},domProps:{\"value\":(_vm.manager.name)},on:{\"blur\":_vm.addManager,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.manager, \"name\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.manager.email),expression:\"manager.email\"}],class:_vm.inputClasses,attrs:{\"type\":\"email\",\"placeholder\":\"Email\"},domProps:{\"value\":(_vm.manager.email)},on:{\"blur\":_vm.addManager,\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.addManager.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.manager, \"email\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-2\"},[(_vm.is_limited)?_c('button',{staticClass:\"btn-save-comment bg-purple mb-1 w-100\",on:{\"click\":_vm.addManager}},[_vm._v(\"\\n ADICIONAR DESTINATÁRIO\\n \")]):_c('button',{staticClass:\"btn-save-comment bg-purple mb-1 w-100\",on:{\"click\":_vm.addManager}},[_vm._v(\"\\n Adicionar gestor(a)\\n \")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('td',{staticClass:\"center\"},[_vm._v(\"#\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Email\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectManagers.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectManagers.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n
\n
\n \n
\n
\n \n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./SelectManagers.vue?vue&type=template&id=59f9dd3e&\"\nimport script from \"./SelectManagers.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectManagers.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bgAdminRecruiter\"},[_c('div',{staticClass:\"application_layout\"},[_c('header',{staticClass:\"u-header--starter\",attrs:{\"id\":\"header\"}},[_c('nav',{staticClass:\"navbar navbar-dark lex-nowrap bg_menu p-0 bg-white\",staticStyle:{\"border-bottom\":\"1px solid #937ed0\"},attrs:{\"id\":\"logoAndNav\"}},[_c('inertia-link',{staticClass:\"m-3\",attrs:{\"href\":\"/recruiters/dashboard\"}},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\",\"width\":\"120px\"}})]),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"dropdown white_font\",staticStyle:{\"margin-right\":\"5px\",\"user-select\":\"none\"}},[_c('a',{staticClass:\"dropdown-toggle\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"data-toggle\":\"dropdown\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('img',{staticClass:\"img_avatar_small\",attrs:{\"src\":_vm.picture}})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu p-2 bg-light-grey\",staticStyle:{\"margin-left\":\"-90px\"},attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('inertia-link',{staticClass:\"btn full mt-1 mb-1 btn-dark user-dropdown-item\",attrs:{\"href\":\"/recruiters/profile/edit\"}},[_vm._v(\"Perfil\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn full mt-1 mb-1 btn-dark user-dropdown-item\",on:{\"click\":_vm.logout}},[_vm._v(\"\\n Logout\\n \")])],1)])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1 col-md-1 col-xs-12 px-0\",staticStyle:{\"background-color\":\"#241a3f\"}},[_c('div',{staticClass:\"pt-2 full_height\"},[_c('MenuAdminItem',{attrs:{\"label\":\"Vagas\",\"url\":\"/recruiters/evaluators/jobs\",\"img\":\"/images/VAGA_ICON.png\",\"img_active\":\"/images/VAGA_COLOR_ICON.png\",\"active\":_vm.menu}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-11 col-md-11 col-xs-12\",class:{\n 'p-0': _vm.fullLayout(this.menu),\n galleries: this.menu == 'Galeria de vídeos' ? true : false,\n 'p-4': !_vm.fullLayout(this.menu),\n },style:({ ..._vm.customStyle, ..._vm.contentStyles })},[_vm._t(\"default\")],2)])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"input-group input-group-xs input-group-borderless d-md-flex mr-auto ml-md-4\",staticStyle:{\"max-width\":\"700px\"}},[_c('div',{staticClass:\"input-group-prepend hide\"},[_c('span',{staticClass:\"input-group-text bg-primary2\",attrs:{\"id\":\"docsSearch\"}},[_c('span',{staticClass:\"fas fa-search\"})])]),_vm._v(\" \"),_c('input',{staticClass:\"js-hs-docs-search hide form-control pl-0 ui-autocomplete-input\",staticStyle:{\"height\":\"36px\",\"padding-right\":\"5px\"},attrs:{\"id\":\"input_search\",\"type\":\"text\",\"placeholder\":\"Pesquisar...\",\"aria-label\":\"Pesquisar...\",\"aria-describedby\":\"docsSearch\"}})])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Evaluator.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Evaluator.vue?vue&type=script&lang=js&\"","\n \n \n\n\n","import { render, staticRenderFns } from \"./Evaluator.vue?vue&type=template&id=4ea4d7a0&\"\nimport script from \"./Evaluator.vue?vue&type=script&lang=js&\"\nexport * from \"./Evaluator.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// see https://tools.ietf.org/html/rfc1808\n\n(function (root) {\n var URL_REGEX = /^(?=((?:[a-zA-Z0-9+\\-.]+:)?))\\1(?=((?:\\/\\/[^\\/?#]*)?))\\2(?=((?:(?:[^?#\\/]*\\/)*[^;?#\\/]*)?))\\3((?:;[^?#]*)?)(\\?[^#]*)?(#[^]*)?$/;\n var FIRST_SEGMENT_REGEX = /^(?=([^\\/?#]*))\\1([^]*)$/;\n var SLASH_DOT_REGEX = /(?:\\/|^)\\.(?=\\/)/g;\n var SLASH_DOT_DOT_REGEX = /(?:\\/|^)\\.\\.\\/(?!\\.\\.\\/)[^\\/]*(?=\\/)/g;\n var URLToolkit = {\n // If opts.alwaysNormalize is true then the path will always be normalized even when it starts with / or //\n // E.g\n // With opts.alwaysNormalize = false (default, spec compliant)\n // http://a.com/b/cd + /e/f/../g => http://a.com/e/f/../g\n // With opts.alwaysNormalize = true (not spec compliant)\n // http://a.com/b/cd + /e/f/../g => http://a.com/e/g\n buildAbsoluteURL: function (baseURL, relativeURL, opts) {\n opts = opts || {};\n // remove any remaining space and CRLF\n baseURL = baseURL.trim();\n relativeURL = relativeURL.trim();\n if (!relativeURL) {\n // 2a) If the embedded URL is entirely empty, it inherits the\n // entire base URL (i.e., is set equal to the base URL)\n // and we are done.\n if (!opts.alwaysNormalize) {\n return baseURL;\n }\n var basePartsForNormalise = URLToolkit.parseURL(baseURL);\n if (!basePartsForNormalise) {\n throw new Error('Error trying to parse base URL.');\n }\n basePartsForNormalise.path = URLToolkit.normalizePath(basePartsForNormalise.path);\n return URLToolkit.buildURLFromParts(basePartsForNormalise);\n }\n var relativeParts = URLToolkit.parseURL(relativeURL);\n if (!relativeParts) {\n throw new Error('Error trying to parse relative URL.');\n }\n if (relativeParts.scheme) {\n // 2b) If the embedded URL starts with a scheme name, it is\n // interpreted as an absolute URL and we are done.\n if (!opts.alwaysNormalize) {\n return relativeURL;\n }\n relativeParts.path = URLToolkit.normalizePath(relativeParts.path);\n return URLToolkit.buildURLFromParts(relativeParts);\n }\n var baseParts = URLToolkit.parseURL(baseURL);\n if (!baseParts) {\n throw new Error('Error trying to parse base URL.');\n }\n if (!baseParts.netLoc && baseParts.path && baseParts.path[0] !== '/') {\n // If netLoc missing and path doesn't start with '/', assume everthing before the first '/' is the netLoc\n // This causes 'example.com/a' to be handled as '//example.com/a' instead of '/example.com/a'\n var pathParts = FIRST_SEGMENT_REGEX.exec(baseParts.path);\n baseParts.netLoc = pathParts[1];\n baseParts.path = pathParts[2];\n }\n if (baseParts.netLoc && !baseParts.path) {\n baseParts.path = '/';\n }\n var builtParts = {\n // 2c) Otherwise, the embedded URL inherits the scheme of\n // the base URL.\n scheme: baseParts.scheme,\n netLoc: relativeParts.netLoc,\n path: null,\n params: relativeParts.params,\n query: relativeParts.query,\n fragment: relativeParts.fragment\n };\n if (!relativeParts.netLoc) {\n // 3) If the embedded URL's is non-empty, we skip to\n // Step 7. Otherwise, the embedded URL inherits the \n // (if any) of the base URL.\n builtParts.netLoc = baseParts.netLoc;\n // 4) If the embedded URL path is preceded by a slash \"/\", the\n // path is not relative and we skip to Step 7.\n if (relativeParts.path[0] !== '/') {\n if (!relativeParts.path) {\n // 5) If the embedded URL path is empty (and not preceded by a\n // slash), then the embedded URL inherits the base URL path\n builtParts.path = baseParts.path;\n // 5a) if the embedded URL's is non-empty, we skip to\n // step 7; otherwise, it inherits the of the base\n // URL (if any) and\n if (!relativeParts.params) {\n builtParts.params = baseParts.params;\n // 5b) if the embedded URL's is non-empty, we skip to\n // step 7; otherwise, it inherits the of the base\n // URL (if any) and we skip to step 7.\n if (!relativeParts.query) {\n builtParts.query = baseParts.query;\n }\n }\n } else {\n // 6) The last segment of the base URL's path (anything\n // following the rightmost slash \"/\", or the entire path if no\n // slash is present) is removed and the embedded URL's path is\n // appended in its place.\n var baseURLPath = baseParts.path;\n var newPath = baseURLPath.substring(0, baseURLPath.lastIndexOf('/') + 1) + relativeParts.path;\n builtParts.path = URLToolkit.normalizePath(newPath);\n }\n }\n }\n if (builtParts.path === null) {\n builtParts.path = opts.alwaysNormalize ? URLToolkit.normalizePath(relativeParts.path) : relativeParts.path;\n }\n return URLToolkit.buildURLFromParts(builtParts);\n },\n parseURL: function (url) {\n var parts = URL_REGEX.exec(url);\n if (!parts) {\n return null;\n }\n return {\n scheme: parts[1] || '',\n netLoc: parts[2] || '',\n path: parts[3] || '',\n params: parts[4] || '',\n query: parts[5] || '',\n fragment: parts[6] || ''\n };\n },\n normalizePath: function (path) {\n // The following operations are\n // then applied, in order, to the new path:\n // 6a) All occurrences of \"./\", where \".\" is a complete path\n // segment, are removed.\n // 6b) If the path ends with \".\" as a complete path segment,\n // that \".\" is removed.\n path = path.split('').reverse().join('').replace(SLASH_DOT_REGEX, '');\n // 6c) All occurrences of \"/../\", where is a\n // complete path segment not equal to \"..\", are removed.\n // Removal of these path segments is performed iteratively,\n // removing the leftmost matching pattern on each iteration,\n // until no matching pattern remains.\n // 6d) If the path ends with \"/..\", where is a\n // complete path segment not equal to \"..\", that\n // \"/..\" is removed.\n while (path.length !== (path = path.replace(SLASH_DOT_DOT_REGEX, '')).length) {}\n return path.split('').reverse().join('');\n },\n buildURLFromParts: function (parts) {\n return parts.scheme + parts.netLoc + parts.path + parts.params + parts.query + parts.fragment;\n }\n };\n if (typeof exports === 'object' && typeof module === 'object') module.exports = URLToolkit;else if (typeof define === 'function' && define.amd) define([], function () {\n return URLToolkit;\n });else if (typeof exports === 'object') exports['URLToolkit'] = URLToolkit;else root['URLToolkit'] = URLToolkit;\n})(this);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","/*!\n * Vue.js v2.7.14\n * (c) 2014-2022 Evan You\n * Released under the MIT License.\n */\nvar emptyObject = Object.freeze({});\nvar isArray = Array.isArray;\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef(v) {\n return v === undefined || v === null;\n}\nfunction isDef(v) {\n return v !== undefined && v !== null;\n}\nfunction isTrue(v) {\n return v === true;\n}\nfunction isFalse(v) {\n return v === false;\n}\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive(value) {\n return typeof value === 'string' || typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' || typeof value === 'boolean';\n}\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n/**\n * Quick object check - this is primarily used to tell\n * objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object';\n}\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\nfunction toRawType(value) {\n return _toString.call(value).slice(8, -1);\n}\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject(obj) {\n return _toString.call(obj) === '[object Object]';\n}\nfunction isRegExp(v) {\n return _toString.call(v) === '[object RegExp]';\n}\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex(val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val);\n}\nfunction isPromise(val) {\n return isDef(val) && typeof val.then === 'function' && typeof val.catch === 'function';\n}\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString(val) {\n return val == null ? '' : Array.isArray(val) || isPlainObject(val) && val.toString === _toString ? JSON.stringify(val, null, 2) : String(val);\n}\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber(val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n;\n}\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap(str, expectsLowerCase) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase ? function (val) {\n return map[val.toLowerCase()];\n } : function (val) {\n return map[val];\n };\n}\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n/**\n * Remove an item from an array.\n */\nfunction remove$2(arr, item) {\n var len = arr.length;\n if (len) {\n // fast path for the only / last item\n if (item === arr[len - 1]) {\n arr.length = len - 1;\n return;\n }\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1);\n }\n }\n}\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n/**\n * Create a cached version of a pure function.\n */\nfunction cached(fn) {\n var cache = Object.create(null);\n return function cachedFn(str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) {\n return c ? c.toUpperCase() : '';\n });\n});\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n});\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n/* istanbul ignore next */\nfunction polyfillBind(fn, ctx) {\n function boundFn(a) {\n var l = arguments.length;\n return l ? l > 1 ? fn.apply(ctx, arguments) : fn.call(ctx, a) : fn.call(ctx);\n }\n boundFn._length = fn.length;\n return boundFn;\n}\nfunction nativeBind(fn, ctx) {\n return fn.bind(ctx);\n}\n// @ts-expect-error bind cannot be `undefined`\nvar bind = Function.prototype.bind ? nativeBind : polyfillBind;\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray(list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret;\n}\n/**\n * Mix properties into target object.\n */\nfunction extend(to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to;\n}\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject(arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res;\n}\n/* eslint-disable no-unused-vars */\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop(a, b, c) {}\n/**\n * Always return false.\n */\nvar no = function (a, b, c) {\n return false;\n};\n/* eslint-enable no-unused-vars */\n/**\n * Return the same value.\n */\nvar identity = function (_) {\n return _;\n};\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual(a, b) {\n if (a === b) return true;\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i]);\n });\n } else if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key]);\n });\n } else {\n /* istanbul ignore next */\n return false;\n }\n } catch (e) {\n /* istanbul ignore next */\n return false;\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n } else {\n return false;\n }\n}\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf(arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) return i;\n }\n return -1;\n}\n/**\n * Ensure a function is called only once.\n */\nfunction once(fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n };\n}\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill\nfunction hasChanged(x, y) {\n if (x === y) {\n return x === 0 && 1 / x !== 1 / y;\n } else {\n return x === x || y === y;\n }\n}\nvar SSR_ATTR = 'data-server-rendered';\nvar ASSET_TYPES = ['component', 'directive', 'filter'];\nvar LIFECYCLE_HOOKS = ['beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'beforeDestroy', 'destroyed', 'activated', 'deactivated', 'errorCaptured', 'serverPrefetch', 'renderTracked', 'renderTriggered'];\nvar config = {\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n /**\n * Whether to record perf\n */\n performance: false,\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n /**\n * Perform updates asynchronously. Intended to be used by Vue Test Utils\n * This will significantly reduce performance if set to false.\n */\n async: true,\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n};\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar unicodeRegExp = /a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved(str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5f;\n}\n/**\n * Define a property.\n */\nfunction def(obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp(\"[^\".concat(unicodeRegExp.source, \".$_\\\\d]\"));\nfunction parsePath(path) {\n if (bailRE.test(path)) {\n return;\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) return;\n obj = obj[segments[i]];\n }\n return obj;\n };\n}\n\n// can we use __proto__?\nvar hasProto = ('__proto__' in {});\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nUA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nUA && /chrome\\/\\d+/.test(UA) && !isEdge;\nUA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n// Firefox has a \"watch\" function on Object.prototype...\n// @ts-expect-error firebox support\nvar nativeWatch = {}.watch;\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', {\n get: function () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n }); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer;\n};\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n/* istanbul ignore next */\nfunction isNative(Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString());\n}\nvar hasSymbol = typeof Symbol !== 'undefined' && isNative(Symbol) && typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\nvar _Set; // $flow-disable-line\n/* istanbul ignore if */\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = /** @class */function () {\n function Set() {\n this.set = Object.create(null);\n }\n Set.prototype.has = function (key) {\n return this.set[key] === true;\n };\n Set.prototype.add = function (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function () {\n this.set = Object.create(null);\n };\n return Set;\n }();\n}\nvar currentInstance = null;\n/**\n * This is exposed for compatibility with v3 (e.g. some functions in VueUse\n * relies on it). Do not use this internally, just use `currentInstance`.\n *\n * @internal this function needs manual type declaration because it relies\n * on previously manually authored types from Vue 2\n */\nfunction getCurrentInstance() {\n return currentInstance && {\n proxy: currentInstance\n };\n}\n/**\n * @internal\n */\nfunction setCurrentInstance(vm) {\n if (vm === void 0) {\n vm = null;\n }\n if (!vm) currentInstance && currentInstance._scope.off();\n currentInstance = vm;\n vm && vm._scope.on();\n}\n\n/**\n * @internal\n */\nvar VNode = /** @class */function () {\n function VNode(tag, data, children, text, elm, context, componentOptions, asyncFactory) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n }\n Object.defineProperty(VNode.prototype, \"child\", {\n // DEPRECATED: alias for componentInstance for backwards compat.\n /* istanbul ignore next */\n get: function () {\n return this.componentInstance;\n },\n enumerable: false,\n configurable: true\n });\n return VNode;\n}();\nvar createEmptyVNode = function (text) {\n if (text === void 0) {\n text = '';\n }\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node;\n};\nfunction createTextVNode(val) {\n return new VNode(undefined, undefined, undefined, String(val));\n}\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode(vnode) {\n var cloned = new VNode(vnode.tag, vnode.data,\n // #7975\n // clone children array to avoid mutating original in case of cloning\n // a child.\n vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory);\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.asyncMeta = vnode.asyncMeta;\n cloned.isCloned = true;\n return cloned;\n}\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar uid$2 = 0;\nvar pendingCleanupDeps = [];\nvar cleanupDeps = function () {\n for (var i = 0; i < pendingCleanupDeps.length; i++) {\n var dep = pendingCleanupDeps[i];\n dep.subs = dep.subs.filter(function (s) {\n return s;\n });\n dep._pending = false;\n }\n pendingCleanupDeps.length = 0;\n};\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n * @internal\n */\nvar Dep = /** @class */function () {\n function Dep() {\n // pending subs cleanup\n this._pending = false;\n this.id = uid$2++;\n this.subs = [];\n }\n Dep.prototype.addSub = function (sub) {\n this.subs.push(sub);\n };\n Dep.prototype.removeSub = function (sub) {\n // #12696 deps with massive amount of subscribers are extremely slow to\n // clean up in Chromium\n // to workaround this, we unset the sub for now, and clear them on\n // next scheduler flush.\n this.subs[this.subs.indexOf(sub)] = null;\n if (!this._pending) {\n this._pending = true;\n pendingCleanupDeps.push(this);\n }\n };\n Dep.prototype.depend = function (info) {\n if (Dep.target) {\n Dep.target.addDep(this);\n if (process.env.NODE_ENV !== 'production' && info && Dep.target.onTrack) {\n Dep.target.onTrack(__assign({\n effect: Dep.target\n }, info));\n }\n }\n };\n Dep.prototype.notify = function (info) {\n // stabilize the subscriber list first\n var subs = this.subs.filter(function (s) {\n return s;\n });\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n // subs aren't sorted in scheduler if not running async\n // we need to sort them now to make sure they fire in correct\n // order\n subs.sort(function (a, b) {\n return a.id - b.id;\n });\n }\n for (var i = 0, l = subs.length; i < l; i++) {\n var sub = subs[i];\n if (process.env.NODE_ENV !== 'production' && info) {\n sub.onTrigger && sub.onTrigger(__assign({\n effect: subs[i]\n }, info));\n }\n sub.update();\n }\n };\n return Dep;\n}();\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\nfunction pushTarget(target) {\n targetStack.push(target);\n Dep.target = target;\n}\nfunction popTarget() {\n targetStack.pop();\n Dep.target = targetStack[targetStack.length - 1];\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\nvar methodsToPatch = ['push', 'pop', 'shift', 'unshift', 'splice', 'sort', 'reverse'];\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break;\n case 'splice':\n inserted = args.slice(2);\n break;\n }\n if (inserted) ob.observeArray(inserted);\n // notify change\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"array mutation\" /* TriggerOpTypes.ARRAY_MUTATION */,\n target: this,\n key: method\n });\n } else {\n ob.dep.notify();\n }\n return result;\n });\n});\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\nvar NO_INIITIAL_VALUE = {};\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\nfunction toggleObserving(value) {\n shouldObserve = value;\n}\n// ssr mock dep\nvar mockDep = {\n notify: noop,\n depend: noop,\n addSub: noop,\n removeSub: noop\n};\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = /** @class */function () {\n function Observer(value, shallow, mock) {\n if (shallow === void 0) {\n shallow = false;\n }\n if (mock === void 0) {\n mock = false;\n }\n this.value = value;\n this.shallow = shallow;\n this.mock = mock;\n // this.value = value\n this.dep = mock ? mockDep : new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (isArray(value)) {\n if (!mock) {\n if (hasProto) {\n value.__proto__ = arrayMethods;\n /* eslint-enable no-proto */\n } else {\n for (var i = 0, l = arrayKeys.length; i < l; i++) {\n var key = arrayKeys[i];\n def(value, key, arrayMethods[key]);\n }\n }\n }\n if (!shallow) {\n this.observeArray(value);\n }\n } else {\n /**\n * Walk through all properties and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\n var keys = Object.keys(value);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock);\n }\n }\n }\n /**\n * Observe a list of Array items.\n */\n Observer.prototype.observeArray = function (value) {\n for (var i = 0, l = value.length; i < l; i++) {\n observe(value[i], false, this.mock);\n }\n };\n return Observer;\n}();\n// helpers\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe(value, shallow, ssrMockReactivity) {\n if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n return value.__ob__;\n }\n if (shouldObserve && (ssrMockReactivity || !isServerRendering()) && (isArray(value) || isPlainObject(value)) && Object.isExtensible(value) && !value.__v_skip /* ReactiveFlags.SKIP */ && !isRef(value) && !(value instanceof VNode)) {\n return new Observer(value, shallow, ssrMockReactivity);\n }\n}\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive(obj, key, val, customSetter, shallow, mock) {\n var dep = new Dep();\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return;\n }\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n if ((!getter || setter) && (val === NO_INIITIAL_VALUE || arguments.length === 2)) {\n val = obj[key];\n }\n var childOb = !shallow && observe(val, false, mock);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter() {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n if (process.env.NODE_ENV !== 'production') {\n dep.depend({\n target: obj,\n type: \"get\" /* TrackOpTypes.GET */,\n key: key\n });\n } else {\n dep.depend();\n }\n if (childOb) {\n childOb.dep.depend();\n if (isArray(value)) {\n dependArray(value);\n }\n }\n }\n return isRef(value) && !shallow ? value.value : value;\n },\n set: function reactiveSetter(newVal) {\n var value = getter ? getter.call(obj) : val;\n if (!hasChanged(value, newVal)) {\n return;\n }\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else if (getter) {\n // #7981: for accessor properties without setter\n return;\n } else if (!shallow && isRef(value) && !isRef(newVal)) {\n value.value = newVal;\n return;\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal, false, mock);\n if (process.env.NODE_ENV !== 'production') {\n dep.notify({\n type: \"set\" /* TriggerOpTypes.SET */,\n target: obj,\n key: key,\n newValue: newVal,\n oldValue: value\n });\n } else {\n dep.notify();\n }\n }\n });\n return dep;\n}\nfunction set(target, key, val) {\n if (process.env.NODE_ENV !== 'production' && (isUndef(target) || isPrimitive(target))) {\n warn(\"Cannot set reactive property on undefined, null, or primitive value: \".concat(target));\n }\n if (isReadonly(target)) {\n process.env.NODE_ENV !== 'production' && warn(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n return;\n }\n var ob = target.__ob__;\n if (isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n // when mocking for SSR, array methods are not hijacked\n if (ob && !ob.shallow && ob.mock) {\n observe(val, false, true);\n }\n return val;\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val;\n }\n if (target._isVue || ob && ob.vmCount) {\n process.env.NODE_ENV !== 'production' && warn('Avoid adding reactive properties to a Vue instance or its root $data ' + 'at runtime - declare it upfront in the data option.');\n return val;\n }\n if (!ob) {\n target[key] = val;\n return val;\n }\n defineReactive(ob.value, key, val, undefined, ob.shallow, ob.mock);\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"add\" /* TriggerOpTypes.ADD */,\n target: target,\n key: key,\n newValue: val,\n oldValue: undefined\n });\n } else {\n ob.dep.notify();\n }\n return val;\n}\nfunction del(target, key) {\n if (process.env.NODE_ENV !== 'production' && (isUndef(target) || isPrimitive(target))) {\n warn(\"Cannot delete reactive property on undefined, null, or primitive value: \".concat(target));\n }\n if (isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return;\n }\n var ob = target.__ob__;\n if (target._isVue || ob && ob.vmCount) {\n process.env.NODE_ENV !== 'production' && warn('Avoid deleting properties on a Vue instance or its root $data ' + '- just set it to null.');\n return;\n }\n if (isReadonly(target)) {\n process.env.NODE_ENV !== 'production' && warn(\"Delete operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n return;\n }\n if (!hasOwn(target, key)) {\n return;\n }\n delete target[key];\n if (!ob) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"delete\" /* TriggerOpTypes.DELETE */,\n target: target,\n key: key\n });\n } else {\n ob.dep.notify();\n }\n}\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray(value) {\n for (var e = void 0, i = 0, l = value.length; i < l; i++) {\n e = value[i];\n if (e && e.__ob__) {\n e.__ob__.dep.depend();\n }\n if (isArray(e)) {\n dependArray(e);\n }\n }\n}\nfunction reactive(target) {\n makeReactive(target, false);\n return target;\n}\n/**\n * Return a shallowly-reactive copy of the original object, where only the root\n * level properties are reactive. It also does not auto-unwrap refs (even at the\n * root level).\n */\nfunction shallowReactive(target) {\n makeReactive(target, true);\n def(target, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n return target;\n}\nfunction makeReactive(target, shallow) {\n // if trying to observe a readonly proxy, return the readonly version.\n if (!isReadonly(target)) {\n if (process.env.NODE_ENV !== 'production') {\n if (isArray(target)) {\n warn(\"Avoid using Array as root value for \".concat(shallow ? \"shallowReactive()\" : \"reactive()\", \" as it cannot be tracked in watch() or watchEffect(). Use \").concat(shallow ? \"shallowRef()\" : \"ref()\", \" instead. This is a Vue-2-only limitation.\"));\n }\n var existingOb = target && target.__ob__;\n if (existingOb && existingOb.shallow !== shallow) {\n warn(\"Target is already a \".concat(existingOb.shallow ? \"\" : \"non-\", \"shallow reactive object, and cannot be converted to \").concat(shallow ? \"\" : \"non-\", \"shallow.\"));\n }\n }\n var ob = observe(target, shallow, isServerRendering() /* ssr mock reactivity */);\n if (process.env.NODE_ENV !== 'production' && !ob) {\n if (target == null || isPrimitive(target)) {\n warn(\"value cannot be made reactive: \".concat(String(target)));\n }\n if (isCollectionType(target)) {\n warn(\"Vue 2 does not support reactive collection types such as Map or Set.\");\n }\n }\n }\n}\nfunction isReactive(value) {\n if (isReadonly(value)) {\n return isReactive(value[\"__v_raw\" /* ReactiveFlags.RAW */]);\n }\n\n return !!(value && value.__ob__);\n}\nfunction isShallow(value) {\n return !!(value && value.__v_isShallow);\n}\nfunction isReadonly(value) {\n return !!(value && value.__v_isReadonly);\n}\nfunction isProxy(value) {\n return isReactive(value) || isReadonly(value);\n}\nfunction toRaw(observed) {\n var raw = observed && observed[\"__v_raw\" /* ReactiveFlags.RAW */];\n return raw ? toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n // non-extensible objects won't be observed anyway\n if (Object.isExtensible(value)) {\n def(value, \"__v_skip\" /* ReactiveFlags.SKIP */, true);\n }\n return value;\n}\n/**\n * @internal\n */\nfunction isCollectionType(value) {\n var type = toRawType(value);\n return type === 'Map' || type === 'WeakMap' || type === 'Set' || type === 'WeakSet';\n}\n\n/**\n * @internal\n */\nvar RefFlag = \"__v_isRef\";\nfunction isRef(r) {\n return !!(r && r.__v_isRef === true);\n}\nfunction ref$1(value) {\n return createRef(value, false);\n}\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (isRef(rawValue)) {\n return rawValue;\n }\n var ref = {};\n def(ref, RefFlag, true);\n def(ref, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, shallow);\n def(ref, 'dep', defineReactive(ref, 'value', rawValue, null, shallow, isServerRendering()));\n return ref;\n}\nfunction triggerRef(ref) {\n if (process.env.NODE_ENV !== 'production' && !ref.dep) {\n warn(\"received object is not a triggerable ref.\");\n }\n if (process.env.NODE_ENV !== 'production') {\n ref.dep && ref.dep.notify({\n type: \"set\" /* TriggerOpTypes.SET */,\n target: ref,\n key: 'value'\n });\n } else {\n ref.dep && ref.dep.notify();\n }\n}\nfunction unref(ref) {\n return isRef(ref) ? ref.value : ref;\n}\nfunction proxyRefs(objectWithRefs) {\n if (isReactive(objectWithRefs)) {\n return objectWithRefs;\n }\n var proxy = {};\n var keys = Object.keys(objectWithRefs);\n for (var i = 0; i < keys.length; i++) {\n proxyWithRefUnwrap(proxy, objectWithRefs, keys[i]);\n }\n return proxy;\n}\nfunction proxyWithRefUnwrap(target, source, key) {\n Object.defineProperty(target, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n var val = source[key];\n if (isRef(val)) {\n return val.value;\n } else {\n var ob = val && val.__ob__;\n if (ob) ob.dep.depend();\n return val;\n }\n },\n set: function (value) {\n var oldValue = source[key];\n if (isRef(oldValue) && !isRef(value)) {\n oldValue.value = value;\n } else {\n source[key] = value;\n }\n }\n });\n}\nfunction customRef(factory) {\n var dep = new Dep();\n var _a = factory(function () {\n if (process.env.NODE_ENV !== 'production') {\n dep.depend({\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n } else {\n dep.depend();\n }\n }, function () {\n if (process.env.NODE_ENV !== 'production') {\n dep.notify({\n target: ref,\n type: \"set\" /* TriggerOpTypes.SET */,\n key: 'value'\n });\n } else {\n dep.notify();\n }\n }),\n get = _a.get,\n set = _a.set;\n var ref = {\n get value() {\n return get();\n },\n set value(newVal) {\n set(newVal);\n }\n };\n def(ref, RefFlag, true);\n return ref;\n}\nfunction toRefs(object) {\n if (process.env.NODE_ENV !== 'production' && !isReactive(object)) {\n warn(\"toRefs() expects a reactive object but received a plain one.\");\n }\n var ret = isArray(object) ? new Array(object.length) : {};\n for (var key in object) {\n ret[key] = toRef(object, key);\n }\n return ret;\n}\nfunction toRef(object, key, defaultValue) {\n var val = object[key];\n if (isRef(val)) {\n return val;\n }\n var ref = {\n get value() {\n var val = object[key];\n return val === undefined ? defaultValue : val;\n },\n set value(newVal) {\n object[key] = newVal;\n }\n };\n def(ref, RefFlag, true);\n return ref;\n}\nvar rawToReadonlyFlag = \"__v_rawToReadonly\";\nvar rawToShallowReadonlyFlag = \"__v_rawToShallowReadonly\";\nfunction readonly(target) {\n return createReadonly(target, false);\n}\nfunction createReadonly(target, shallow) {\n if (!isPlainObject(target)) {\n if (process.env.NODE_ENV !== 'production') {\n if (isArray(target)) {\n warn(\"Vue 2 does not support readonly arrays.\");\n } else if (isCollectionType(target)) {\n warn(\"Vue 2 does not support readonly collection types such as Map or Set.\");\n } else {\n warn(\"value cannot be made readonly: \".concat(typeof target));\n }\n }\n return target;\n }\n if (process.env.NODE_ENV !== 'production' && !Object.isExtensible(target)) {\n warn(\"Vue 2 does not support creating readonly proxy for non-extensible object.\");\n }\n // already a readonly object\n if (isReadonly(target)) {\n return target;\n }\n // already has a readonly proxy\n var existingFlag = shallow ? rawToShallowReadonlyFlag : rawToReadonlyFlag;\n var existingProxy = target[existingFlag];\n if (existingProxy) {\n return existingProxy;\n }\n var proxy = Object.create(Object.getPrototypeOf(target));\n def(target, existingFlag, proxy);\n def(proxy, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, true);\n def(proxy, \"__v_raw\" /* ReactiveFlags.RAW */, target);\n if (isRef(target)) {\n def(proxy, RefFlag, true);\n }\n if (shallow || isShallow(target)) {\n def(proxy, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n }\n var keys = Object.keys(target);\n for (var i = 0; i < keys.length; i++) {\n defineReadonlyProperty(proxy, target, keys[i], shallow);\n }\n return proxy;\n}\nfunction defineReadonlyProperty(proxy, target, key, shallow) {\n Object.defineProperty(proxy, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n var val = target[key];\n return shallow || !isPlainObject(val) ? val : readonly(val);\n },\n set: function () {\n process.env.NODE_ENV !== 'production' && warn(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n }\n });\n}\n/**\n * Returns a reactive-copy of the original object, where only the root level\n * properties are readonly, and does NOT unwrap refs nor recursively convert\n * returned properties.\n * This is used for creating the props proxy object for stateful components.\n */\nfunction shallowReadonly(target) {\n return createReadonly(target, true);\n}\nfunction computed(getterOrOptions, debugOptions) {\n var getter;\n var setter;\n var onlyGetter = isFunction(getterOrOptions);\n if (onlyGetter) {\n getter = getterOrOptions;\n setter = process.env.NODE_ENV !== 'production' ? function () {\n warn('Write operation failed: computed value is readonly');\n } : noop;\n } else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n var watcher = isServerRendering() ? null : new Watcher(currentInstance, getter, noop, {\n lazy: true\n });\n if (process.env.NODE_ENV !== 'production' && watcher && debugOptions) {\n watcher.onTrack = debugOptions.onTrack;\n watcher.onTrigger = debugOptions.onTrigger;\n }\n var ref = {\n // some libs rely on the presence effect for checking computed refs\n // from normal refs, but the implementation doesn't matter\n effect: watcher,\n get value() {\n if (watcher) {\n if (watcher.dirty) {\n watcher.evaluate();\n }\n if (Dep.target) {\n if (process.env.NODE_ENV !== 'production' && Dep.target.onTrack) {\n Dep.target.onTrack({\n effect: Dep.target,\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n }\n watcher.depend();\n }\n return watcher.value;\n } else {\n return getter();\n }\n },\n set value(newVal) {\n setter(newVal);\n }\n };\n def(ref, RefFlag, true);\n def(ref, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, onlyGetter);\n return ref;\n}\nvar WATCHER = \"watcher\";\nvar WATCHER_CB = \"\".concat(WATCHER, \" callback\");\nvar WATCHER_GETTER = \"\".concat(WATCHER, \" getter\");\nvar WATCHER_CLEANUP = \"\".concat(WATCHER, \" cleanup\");\n// Simple effect.\nfunction watchEffect(effect, options) {\n return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n return doWatch(effect, null, process.env.NODE_ENV !== 'production' ? __assign(__assign({}, options), {\n flush: 'post'\n }) : {\n flush: 'post'\n });\n}\nfunction watchSyncEffect(effect, options) {\n return doWatch(effect, null, process.env.NODE_ENV !== 'production' ? __assign(__assign({}, options), {\n flush: 'sync'\n }) : {\n flush: 'sync'\n });\n}\n// initial value for watchers to trigger on undefined initial values\nvar INITIAL_WATCHER_VALUE = {};\n// implementation\nfunction watch(source, cb, options) {\n if (process.env.NODE_ENV !== 'production' && typeof cb !== 'function') {\n warn(\"`watch(fn, options?)` signature has been moved to a separate API. \" + \"Use `watchEffect(fn, options?)` instead. `watch` now only \" + \"supports `watch(source, cb, options?) signature.\");\n }\n return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, _a) {\n var _b = _a === void 0 ? emptyObject : _a,\n immediate = _b.immediate,\n deep = _b.deep,\n _c = _b.flush,\n flush = _c === void 0 ? 'pre' : _c,\n onTrack = _b.onTrack,\n onTrigger = _b.onTrigger;\n if (process.env.NODE_ENV !== 'production' && !cb) {\n if (immediate !== undefined) {\n warn(\"watch() \\\"immediate\\\" option is only respected when using the \" + \"watch(source, callback, options?) signature.\");\n }\n if (deep !== undefined) {\n warn(\"watch() \\\"deep\\\" option is only respected when using the \" + \"watch(source, callback, options?) signature.\");\n }\n }\n var warnInvalidSource = function (s) {\n warn(\"Invalid watch source: \".concat(s, \". A watch source can only be a getter/effect \") + \"function, a ref, a reactive object, or an array of these types.\");\n };\n var instance = currentInstance;\n var call = function (fn, type, args) {\n if (args === void 0) {\n args = null;\n }\n return invokeWithErrorHandling(fn, null, args, instance, type);\n };\n var getter;\n var forceTrigger = false;\n var isMultiSource = false;\n if (isRef(source)) {\n getter = function () {\n return source.value;\n };\n forceTrigger = isShallow(source);\n } else if (isReactive(source)) {\n getter = function () {\n source.__ob__.dep.depend();\n return source;\n };\n deep = true;\n } else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some(function (s) {\n return isReactive(s) || isShallow(s);\n });\n getter = function () {\n return source.map(function (s) {\n if (isRef(s)) {\n return s.value;\n } else if (isReactive(s)) {\n return traverse(s);\n } else if (isFunction(s)) {\n return call(s, WATCHER_GETTER);\n } else {\n process.env.NODE_ENV !== 'production' && warnInvalidSource(s);\n }\n });\n };\n } else if (isFunction(source)) {\n if (cb) {\n // getter with cb\n getter = function () {\n return call(source, WATCHER_GETTER);\n };\n } else {\n // no cb -> simple effect\n getter = function () {\n if (instance && instance._isDestroyed) {\n return;\n }\n if (cleanup) {\n cleanup();\n }\n return call(source, WATCHER, [onCleanup]);\n };\n }\n } else {\n getter = noop;\n process.env.NODE_ENV !== 'production' && warnInvalidSource(source);\n }\n if (cb && deep) {\n var baseGetter_1 = getter;\n getter = function () {\n return traverse(baseGetter_1());\n };\n }\n var cleanup;\n var onCleanup = function (fn) {\n cleanup = watcher.onStop = function () {\n call(fn, WATCHER_CLEANUP);\n };\n };\n // in SSR there is no need to setup an actual effect, and it should be noop\n // unless it's eager\n if (isServerRendering()) {\n // we will also not call the invalidate callback (+ runner is not set up)\n onCleanup = noop;\n if (!cb) {\n getter();\n } else if (immediate) {\n call(cb, WATCHER_CB, [getter(), isMultiSource ? [] : undefined, onCleanup]);\n }\n return noop;\n }\n var watcher = new Watcher(currentInstance, getter, noop, {\n lazy: true\n });\n watcher.noRecurse = !cb;\n var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\n // overwrite default run\n watcher.run = function () {\n if (!watcher.active) {\n return;\n }\n if (cb) {\n // watch(source, cb)\n var newValue = watcher.get();\n if (deep || forceTrigger || (isMultiSource ? newValue.some(function (v, i) {\n return hasChanged(v, oldValue[i]);\n }) : hasChanged(newValue, oldValue))) {\n // cleanup before running cb again\n if (cleanup) {\n cleanup();\n }\n call(cb, WATCHER_CB, [newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, onCleanup]);\n oldValue = newValue;\n }\n } else {\n // watchEffect\n watcher.get();\n }\n };\n if (flush === 'sync') {\n watcher.update = watcher.run;\n } else if (flush === 'post') {\n watcher.post = true;\n watcher.update = function () {\n return queueWatcher(watcher);\n };\n } else {\n // pre\n watcher.update = function () {\n if (instance && instance === currentInstance && !instance._isMounted) {\n // pre-watcher triggered before\n var buffer = instance._preWatchers || (instance._preWatchers = []);\n if (buffer.indexOf(watcher) < 0) buffer.push(watcher);\n } else {\n queueWatcher(watcher);\n }\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n watcher.onTrack = onTrack;\n watcher.onTrigger = onTrigger;\n }\n // initial run\n if (cb) {\n if (immediate) {\n watcher.run();\n } else {\n oldValue = watcher.get();\n }\n } else if (flush === 'post' && instance) {\n instance.$once('hook:mounted', function () {\n return watcher.get();\n });\n } else {\n watcher.get();\n }\n return function () {\n watcher.teardown();\n };\n}\nvar activeEffectScope;\nvar EffectScope = /** @class */function () {\n function EffectScope(detached) {\n if (detached === void 0) {\n detached = false;\n }\n this.detached = detached;\n /**\n * @internal\n */\n this.active = true;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this.parent = activeEffectScope;\n if (!detached && activeEffectScope) {\n this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\n }\n }\n EffectScope.prototype.run = function (fn) {\n if (this.active) {\n var currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n } finally {\n activeEffectScope = currentEffectScope;\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\"cannot run an inactive effect scope.\");\n }\n };\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n EffectScope.prototype.on = function () {\n activeEffectScope = this;\n };\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n EffectScope.prototype.off = function () {\n activeEffectScope = this.parent;\n };\n EffectScope.prototype.stop = function (fromParent) {\n if (this.active) {\n var i = void 0,\n l = void 0;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].teardown();\n }\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].stop(true);\n }\n }\n // nested scope, dereference from parent to avoid memory leaks\n if (!this.detached && this.parent && !fromParent) {\n // optimized O(1) removal\n var last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = undefined;\n this.active = false;\n }\n };\n return EffectScope;\n}();\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\n/**\n * @internal\n */\nfunction recordEffectScope(effect, scope) {\n if (scope === void 0) {\n scope = activeEffectScope;\n }\n if (scope && scope.active) {\n scope.effects.push(effect);\n }\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\"onScopeDispose() is called when there is no active effect scope\" + \" to be associated with.\");\n }\n}\nfunction provide(key, value) {\n if (!currentInstance) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"provide() can only be used inside setup().\");\n }\n } else {\n // TS doesn't allow symbol as index type\n resolveProvided(currentInstance)[key] = value;\n }\n}\nfunction resolveProvided(vm) {\n // by default an instance inherits its parent's provides object\n // but when it needs to provide values of its own, it creates its\n // own provides object using parent provides object as prototype.\n // this way in `inject` we can simply look up injections from direct\n // parent and let the prototype chain do the work.\n var existing = vm._provided;\n var parentProvides = vm.$parent && vm.$parent._provided;\n if (parentProvides === existing) {\n return vm._provided = Object.create(parentProvides);\n } else {\n return existing;\n }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory) {\n if (treatDefaultAsFactory === void 0) {\n treatDefaultAsFactory = false;\n }\n // fallback to `currentRenderingInstance` so that this can be called in\n // a functional component\n var instance = currentInstance;\n if (instance) {\n // #2400\n // to support `app.use` plugins,\n // fallback to appContext's `provides` if the instance is at root\n var provides = instance.$parent && instance.$parent._provided;\n if (provides && key in provides) {\n // TS doesn't allow symbol as index type\n return provides[key];\n } else if (arguments.length > 1) {\n return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance) : defaultValue;\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\"injection \\\"\".concat(String(key), \"\\\" not found.\"));\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\"inject() can only be used inside setup() or functional components.\");\n }\n}\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once,\n capture: capture,\n passive: passive\n };\n});\nfunction createFnInvoker(fns, vm) {\n function invoker() {\n var fns = invoker.fns;\n if (isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n invokeWithErrorHandling(cloned[i], null, arguments, vm, \"v-on handler\");\n }\n } else {\n // return handler return value for single handlers\n return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\");\n }\n }\n invoker.fns = fns;\n return invoker;\n}\nfunction updateListeners(on, oldOn, add, remove, createOnceHandler, vm) {\n var name, cur, old, event;\n for (name in on) {\n cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' && warn(\"Invalid handler for event \\\"\".concat(event.name, \"\\\": got \") + String(cur), vm);\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur, vm);\n }\n if (isTrue(event.once)) {\n cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n }\n add(event.name, cur, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove(event.name, oldOn[name], event.capture);\n }\n }\n}\nfunction mergeVNodeHook(def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n function wrappedHook() {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove$2(invoker.fns, wrappedHook);\n }\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n invoker.merged = true;\n def[hookKey] = invoker;\n}\nfunction extractPropsFromVNodeData(data, Ctor, tag) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return;\n }\n var res = {};\n var attrs = data.attrs,\n props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (key !== keyInLowerCase && attrs && hasOwn(attrs, keyInLowerCase)) {\n tip(\"Prop \\\"\".concat(keyInLowerCase, \"\\\" is passed to component \") + \"\".concat(formatComponentName(\n // @ts-expect-error tag is string\n tag || Ctor), \", but the declared prop name is\") + \" \\\"\".concat(key, \"\\\". \") + \"Note that HTML attributes are case-insensitive and camelCased \" + \"props need to use their kebab-case equivalents when using in-DOM \" + \"templates. You should probably use \\\"\".concat(altKey, \"\\\" instead of \\\"\").concat(key, \"\\\".\"));\n }\n }\n checkProp(res, props, key, altKey, true) || checkProp(res, attrs, key, altKey, false);\n }\n }\n return res;\n}\nfunction checkProp(res, hash, key, altKey, preserve) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true;\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true;\n }\n }\n return false;\n}\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren(children) {\n for (var i = 0; i < children.length; i++) {\n if (isArray(children[i])) {\n return Array.prototype.concat.apply([], children);\n }\n }\n return children;\n}\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g. , , v-for, or when the children is provided by user\n// with hand-written render functions / JSX. In such cases a full normalization\n// is needed to cater to all possible types of children values.\nfunction normalizeChildren(children) {\n return isPrimitive(children) ? [createTextVNode(children)] : isArray(children) ? normalizeArrayChildren(children) : undefined;\n}\nfunction isTextNode(node) {\n return isDef(node) && isDef(node.text) && isFalse(node.isComment);\n}\nfunction normalizeArrayChildren(children, nestedIndex) {\n var res = [];\n var i, c, lastIndex, last;\n for (i = 0; i < children.length; i++) {\n c = children[i];\n if (isUndef(c) || typeof c === 'boolean') continue;\n lastIndex = res.length - 1;\n last = res[lastIndex];\n // nested\n if (isArray(c)) {\n if (c.length > 0) {\n c = normalizeArrayChildren(c, \"\".concat(nestedIndex || '', \"_\").concat(i));\n // merge adjacent text nodes\n if (isTextNode(c[0]) && isTextNode(last)) {\n res[lastIndex] = createTextVNode(last.text + c[0].text);\n c.shift();\n }\n res.push.apply(res, c);\n }\n } else if (isPrimitive(c)) {\n if (isTextNode(last)) {\n // merge adjacent text nodes\n // this is necessary for SSR hydration because text nodes are\n // essentially merged when rendered to HTML strings\n res[lastIndex] = createTextVNode(last.text + c);\n } else if (c !== '') {\n // convert primitive to vnode\n res.push(createTextVNode(c));\n }\n } else {\n if (isTextNode(c) && isTextNode(last)) {\n // merge adjacent text nodes\n res[lastIndex] = createTextVNode(last.text + c.text);\n } else {\n // default key for nested array children (likely generated by v-for)\n if (isTrue(children._isVList) && isDef(c.tag) && isUndef(c.key) && isDef(nestedIndex)) {\n c.key = \"__vlist\".concat(nestedIndex, \"_\").concat(i, \"__\");\n }\n res.push(c);\n }\n }\n }\n return res;\n}\n\n/**\n * Runtime helper for rendering v-for lists.\n */\nfunction renderList(val, render) {\n var ret = null,\n i,\n l,\n keys,\n key;\n if (isArray(val) || typeof val === 'string') {\n ret = new Array(val.length);\n for (i = 0, l = val.length; i < l; i++) {\n ret[i] = render(val[i], i);\n }\n } else if (typeof val === 'number') {\n ret = new Array(val);\n for (i = 0; i < val; i++) {\n ret[i] = render(i + 1, i);\n }\n } else if (isObject(val)) {\n if (hasSymbol && val[Symbol.iterator]) {\n ret = [];\n var iterator = val[Symbol.iterator]();\n var result = iterator.next();\n while (!result.done) {\n ret.push(render(result.value, ret.length));\n result = iterator.next();\n }\n } else {\n keys = Object.keys(val);\n ret = new Array(keys.length);\n for (i = 0, l = keys.length; i < l; i++) {\n key = keys[i];\n ret[i] = render(val[key], key, i);\n }\n }\n }\n if (!isDef(ret)) {\n ret = [];\n }\n ret._isVList = true;\n return ret;\n}\n\n/**\n * Runtime helper for rendering \n */\nfunction renderSlot(name, fallbackRender, props, bindObject) {\n var scopedSlotFn = this.$scopedSlots[name];\n var nodes;\n if (scopedSlotFn) {\n // scoped slot\n props = props || {};\n if (bindObject) {\n if (process.env.NODE_ENV !== 'production' && !isObject(bindObject)) {\n warn('slot v-bind without argument expects an Object', this);\n }\n props = extend(extend({}, bindObject), props);\n }\n nodes = scopedSlotFn(props) || (isFunction(fallbackRender) ? fallbackRender() : fallbackRender);\n } else {\n nodes = this.$slots[name] || (isFunction(fallbackRender) ? fallbackRender() : fallbackRender);\n }\n var target = props && props.slot;\n if (target) {\n return this.$createElement('template', {\n slot: target\n }, nodes);\n } else {\n return nodes;\n }\n}\n\n/**\n * Runtime helper for resolving filters\n */\nfunction resolveFilter(id) {\n return resolveAsset(this.$options, 'filters', id, true) || identity;\n}\nfunction isKeyNotMatch(expect, actual) {\n if (isArray(expect)) {\n return expect.indexOf(actual) === -1;\n } else {\n return expect !== actual;\n }\n}\n/**\n * Runtime helper for checking keyCodes from config.\n * exposed as Vue.prototype._k\n * passing in eventKeyName as last argument separately for backwards compat\n */\nfunction checkKeyCodes(eventKeyCode, key, builtInKeyCode, eventKeyName, builtInKeyName) {\n var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;\n if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {\n return isKeyNotMatch(builtInKeyName, eventKeyName);\n } else if (mappedKeyCode) {\n return isKeyNotMatch(mappedKeyCode, eventKeyCode);\n } else if (eventKeyName) {\n return hyphenate(eventKeyName) !== key;\n }\n return eventKeyCode === undefined;\n}\n\n/**\n * Runtime helper for merging v-bind=\"object\" into a VNode's data.\n */\nfunction bindObjectProps(data, tag, value, asProp, isSync) {\n if (value) {\n if (!isObject(value)) {\n process.env.NODE_ENV !== 'production' && warn('v-bind without argument expects an Object or Array value', this);\n } else {\n if (isArray(value)) {\n value = toObject(value);\n }\n var hash = void 0;\n var _loop_1 = function (key) {\n if (key === 'class' || key === 'style' || isReservedAttribute(key)) {\n hash = data;\n } else {\n var type = data.attrs && data.attrs.type;\n hash = asProp || config.mustUseProp(tag, type, key) ? data.domProps || (data.domProps = {}) : data.attrs || (data.attrs = {});\n }\n var camelizedKey = camelize(key);\n var hyphenatedKey = hyphenate(key);\n if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {\n hash[key] = value[key];\n if (isSync) {\n var on = data.on || (data.on = {});\n on[\"update:\".concat(key)] = function ($event) {\n value[key] = $event;\n };\n }\n }\n };\n for (var key in value) {\n _loop_1(key);\n }\n }\n }\n return data;\n}\n\n/**\n * Runtime helper for rendering static trees.\n */\nfunction renderStatic(index, isInFor) {\n var cached = this._staticTrees || (this._staticTrees = []);\n var tree = cached[index];\n // if has already-rendered static tree and not inside v-for,\n // we can reuse the same tree.\n if (tree && !isInFor) {\n return tree;\n }\n // otherwise, render a fresh tree.\n tree = cached[index] = this.$options.staticRenderFns[index].call(this._renderProxy, this._c, this // for render fns generated for functional component templates\n );\n\n markStatic(tree, \"__static__\".concat(index), false);\n return tree;\n}\n/**\n * Runtime helper for v-once.\n * Effectively it means marking the node as static with a unique key.\n */\nfunction markOnce(tree, index, key) {\n markStatic(tree, \"__once__\".concat(index).concat(key ? \"_\".concat(key) : \"\"), true);\n return tree;\n}\nfunction markStatic(tree, key, isOnce) {\n if (isArray(tree)) {\n for (var i = 0; i < tree.length; i++) {\n if (tree[i] && typeof tree[i] !== 'string') {\n markStaticNode(tree[i], \"\".concat(key, \"_\").concat(i), isOnce);\n }\n }\n } else {\n markStaticNode(tree, key, isOnce);\n }\n}\nfunction markStaticNode(node, key, isOnce) {\n node.isStatic = true;\n node.key = key;\n node.isOnce = isOnce;\n}\nfunction bindObjectListeners(data, value) {\n if (value) {\n if (!isPlainObject(value)) {\n process.env.NODE_ENV !== 'production' && warn('v-on without argument expects an Object value', this);\n } else {\n var on = data.on = data.on ? extend({}, data.on) : {};\n for (var key in value) {\n var existing = on[key];\n var ours = value[key];\n on[key] = existing ? [].concat(existing, ours) : ours;\n }\n }\n }\n return data;\n}\nfunction resolveScopedSlots(fns, res,\n// the following are added in 2.6\nhasDynamicKeys, contentHashKey) {\n res = res || {\n $stable: !hasDynamicKeys\n };\n for (var i = 0; i < fns.length; i++) {\n var slot = fns[i];\n if (isArray(slot)) {\n resolveScopedSlots(slot, res, hasDynamicKeys);\n } else if (slot) {\n // marker for reverse proxying v-slot without scope on this.$slots\n // @ts-expect-error\n if (slot.proxy) {\n // @ts-expect-error\n slot.fn.proxy = true;\n }\n res[slot.key] = slot.fn;\n }\n }\n if (contentHashKey) {\n res.$key = contentHashKey;\n }\n return res;\n}\n\n// helper to process dynamic keys for dynamic arguments in v-bind and v-on.\nfunction bindDynamicKeys(baseObj, values) {\n for (var i = 0; i < values.length; i += 2) {\n var key = values[i];\n if (typeof key === 'string' && key) {\n baseObj[values[i]] = values[i + 1];\n } else if (process.env.NODE_ENV !== 'production' && key !== '' && key !== null) {\n // null is a special value for explicitly removing a binding\n warn(\"Invalid value for dynamic directive argument (expected string or null): \".concat(key), this);\n }\n }\n return baseObj;\n}\n// helper to dynamically append modifier runtime markers to event names.\n// ensure only append when value is already string, otherwise it will be cast\n// to string and cause the type check to miss.\nfunction prependModifier(value, symbol) {\n return typeof value === 'string' ? symbol + value : value;\n}\nfunction installRenderHelpers(target) {\n target._o = markOnce;\n target._n = toNumber;\n target._s = toString;\n target._l = renderList;\n target._t = renderSlot;\n target._q = looseEqual;\n target._i = looseIndexOf;\n target._m = renderStatic;\n target._f = resolveFilter;\n target._k = checkKeyCodes;\n target._b = bindObjectProps;\n target._v = createTextVNode;\n target._e = createEmptyVNode;\n target._u = resolveScopedSlots;\n target._g = bindObjectListeners;\n target._d = bindDynamicKeys;\n target._p = prependModifier;\n}\n\n/**\n * Runtime helper for resolving raw children VNodes into a slot object.\n */\nfunction resolveSlots(children, context) {\n if (!children || !children.length) {\n return {};\n }\n var slots = {};\n for (var i = 0, l = children.length; i < l; i++) {\n var child = children[i];\n var data = child.data;\n // remove slot attribute if the node is resolved as a Vue slot node\n if (data && data.attrs && data.attrs.slot) {\n delete data.attrs.slot;\n }\n // named slots should only be respected if the vnode was rendered in the\n // same context.\n if ((child.context === context || child.fnContext === context) && data && data.slot != null) {\n var name_1 = data.slot;\n var slot = slots[name_1] || (slots[name_1] = []);\n if (child.tag === 'template') {\n slot.push.apply(slot, child.children || []);\n } else {\n slot.push(child);\n }\n } else {\n (slots.default || (slots.default = [])).push(child);\n }\n }\n // ignore slots that contains only whitespace\n for (var name_2 in slots) {\n if (slots[name_2].every(isWhitespace)) {\n delete slots[name_2];\n }\n }\n return slots;\n}\nfunction isWhitespace(node) {\n return node.isComment && !node.asyncFactory || node.text === ' ';\n}\nfunction isAsyncPlaceholder(node) {\n // @ts-expect-error not really boolean type\n return node.isComment && node.asyncFactory;\n}\nfunction normalizeScopedSlots(ownerVm, scopedSlots, normalSlots, prevScopedSlots) {\n var res;\n var hasNormalSlots = Object.keys(normalSlots).length > 0;\n var isStable = scopedSlots ? !!scopedSlots.$stable : !hasNormalSlots;\n var key = scopedSlots && scopedSlots.$key;\n if (!scopedSlots) {\n res = {};\n } else if (scopedSlots._normalized) {\n // fast path 1: child component re-render only, parent did not change\n return scopedSlots._normalized;\n } else if (isStable && prevScopedSlots && prevScopedSlots !== emptyObject && key === prevScopedSlots.$key && !hasNormalSlots && !prevScopedSlots.$hasNormal) {\n // fast path 2: stable scoped slots w/ no normal slots to proxy,\n // only need to normalize once\n return prevScopedSlots;\n } else {\n res = {};\n for (var key_1 in scopedSlots) {\n if (scopedSlots[key_1] && key_1[0] !== '$') {\n res[key_1] = normalizeScopedSlot(ownerVm, normalSlots, key_1, scopedSlots[key_1]);\n }\n }\n }\n // expose normal slots on scopedSlots\n for (var key_2 in normalSlots) {\n if (!(key_2 in res)) {\n res[key_2] = proxyNormalSlot(normalSlots, key_2);\n }\n }\n // avoriaz seems to mock a non-extensible $scopedSlots object\n // and when that is passed down this would cause an error\n if (scopedSlots && Object.isExtensible(scopedSlots)) {\n scopedSlots._normalized = res;\n }\n def(res, '$stable', isStable);\n def(res, '$key', key);\n def(res, '$hasNormal', hasNormalSlots);\n return res;\n}\nfunction normalizeScopedSlot(vm, normalSlots, key, fn) {\n var normalized = function () {\n var cur = currentInstance;\n setCurrentInstance(vm);\n var res = arguments.length ? fn.apply(null, arguments) : fn({});\n res = res && typeof res === 'object' && !isArray(res) ? [res] // single vnode\n : normalizeChildren(res);\n var vnode = res && res[0];\n setCurrentInstance(cur);\n return res && (!vnode || res.length === 1 && vnode.isComment && !isAsyncPlaceholder(vnode)) // #9658, #10391\n ? undefined : res;\n };\n // this is a slot using the new v-slot syntax without scope. although it is\n // compiled as a scoped slot, render fn users would expect it to be present\n // on this.$slots because the usage is semantically a normal slot.\n if (fn.proxy) {\n Object.defineProperty(normalSlots, key, {\n get: normalized,\n enumerable: true,\n configurable: true\n });\n }\n return normalized;\n}\nfunction proxyNormalSlot(slots, key) {\n return function () {\n return slots[key];\n };\n}\nfunction initSetup(vm) {\n var options = vm.$options;\n var setup = options.setup;\n if (setup) {\n var ctx = vm._setupContext = createSetupContext(vm);\n setCurrentInstance(vm);\n pushTarget();\n var setupResult = invokeWithErrorHandling(setup, null, [vm._props || shallowReactive({}), ctx], vm, \"setup\");\n popTarget();\n setCurrentInstance();\n if (isFunction(setupResult)) {\n // render function\n // @ts-ignore\n options.render = setupResult;\n } else if (isObject(setupResult)) {\n // bindings\n if (process.env.NODE_ENV !== 'production' && setupResult instanceof VNode) {\n warn(\"setup() should not return VNodes directly - \" + \"return a render function instead.\");\n }\n vm._setupState = setupResult;\n // __sfc indicates compiled bindings from ","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./New.vue?vue&type=template&id=23e910a2&\"\nimport script from \"./New.vue?vue&type=script&lang=js&\"\nexport * from \"./New.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row d-flex justify-content-between\"},[_vm._m(0),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"f14 btn-add-items-tb bg-light-purple color-white\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\"\\n ADICIONAR\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[(_vm.extra_courses.length === 0)?_c('div',{staticClass:\"d-flex justify-content-center align-item-center row mb-1 border-dark-purple pt-3 pb-4\"},[_c('h4',{staticClass:\"center f15 color-dark-purple\"},[_vm._v(\"\\n NENHUMA ATIVIDADE/CURSO EXTRACURRICULAR FOI INFORMADO AINDA.\\n \")])]):_vm._e()]),_vm._v(\" \"),_vm._l((_vm.extra_courses),function(extra_course,index){return _c('div',{key:extra_course.id},[_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"row mb-1 border-dark-purple pt-3 pb-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('div',[_c('span',{staticClass:\"label-bold color-dark-purple\",staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(extra_course.name))])]),_vm._v(\" \"),_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu drop-down-tb\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.openForm(extra_course.id)}}},[_vm._v(\"\\n EDITAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-4 fa fa-pencil-alt scale_1\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.deleteExtraCourse(extra_course.id, index)}}},[_vm._v(\"\\n DELETAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-3 fas fa-trash-alt scale_1\"})])])])])]),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(extra_course.institution))])]),_vm._v(\" \"),_c('div',[_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(\"\\n \"+_vm._s(extra_course.start_date)+\" - \"+_vm._s(extra_course.end_date)+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_vm._m(1,true),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(extra_course.description))])])])])])])])])})],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"ml-2 label-bold color-dark-purple\"},[_vm._v(\"ATIVIDADES/CURSOS EXTRA CURRICULARES\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(\"Descrição:\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n ATIVIDADES/CURSOS EXTRA CURRICULARES \n
\n
\n \n ADICIONAR\n \n
\n
\n
\n
\n
\n NENHUMA ATIVIDADE/CURSO EXTRACURRICULAR FOI INFORMADO AINDA.\n \n \n
\n\n
\n
\n
\n
\n
\n
\n
\n {{ extra_course.name }} \n
\n
\n
\n
\n {{ extra_course.institution }} \n
\n
\n
\n \n {{ extra_course.start_date }} - {{ extra_course.end_date }}\n \n
\n
\n
\n
\n Descrição: \n
\n
\n {{\n extra_course.description\n }} \n
\n
\n
\n
\n
\n
\n
\n
\n \n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=7bf3f88e&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row d-flex justify-content-between\"},[_vm._m(0),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"f14 btn-add-items-tb bg-light-purple color-white\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\"\\n ADICIONAR\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[(_vm.certifications.length === 0)?_c('div',{staticClass:\"d-flex justify-content-center align-item-center row mb-1 border-dark-purple pt-3 pb-4\"},[_c('h4',{staticClass:\"center f15 color-dark-purple\"},[_vm._v(\"\\n NENHUMA CERTIFICAÇÃO FOI INFORMADA AINDA.\\n \")])]):_vm._e()]),_vm._v(\" \"),_vm._l((_vm.certifications),function(certification,index){return _c('div',{key:certification.id},[_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"row mb-1 border-dark-purple pt-3 pb-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('div',[_c('span',{staticClass:\"label-bold color-dark-purple\",staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(certification.name))])]),_vm._v(\" \"),_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu drop-down-tb\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.openForm(certification.id)}}},[_vm._v(\"\\n EDITAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-4 fa fa-pencil-alt scale_1\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.deleteCertifications(certification.id, index)}}},[_vm._v(\"\\n DELETAR\\n \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-3 fas fa-trash-alt scale_1\"})])])])])]),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(certification.institution))])]),_vm._v(\" \"),_c('div',[_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(\"\\n \"+_vm._s(certification.start_date)+\" - \"+_vm._s(certification.end_date)+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_vm._m(1,true),_vm._v(\" \"),_c('div',[_c('span',{staticStyle:{\"text-transform\":\"capitalize\"}},[_vm._v(_vm._s(certification.description))])])])])])])])])})],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"ml-2 label-bold color-dark-purple\"},[_vm._v(\"CERTIFICADOS\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(\"Descrição:\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n CERTIFICADOS \n
\n
\n \n ADICIONAR\n \n
\n
\n
\n
\n
\n NENHUMA CERTIFICAÇÃO FOI INFORMADA AINDA.\n \n \n
\n\n
\n
\n
\n
\n
\n
\n
\n {{ certification.name }} \n
\n
\n
\n
\n {{ certification.institution }} \n
\n
\n
\n \n {{ certification.start_date }} - {{ certification.end_date }}\n \n
\n
\n
\n
\n Descrição: \n
\n
\n {{\n certification.description\n }} \n
\n
\n
\n
\n
\n
\n
\n
\n \n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=79df86c8&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\",attrs:{\"oncopy\":\"return false\",\"oncut\":\"return false\",\"onpaste\":\"return false\"}},[(_vm.loading)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 videoPainel bg-white p-3 shadow_bar\"},[_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}})],1)]):_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 videoPainel bg-white p-3 shadow_bar mb-5\"},[(_vm.show_evaluation_start)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h3',{staticClass:\"center\",staticStyle:{\"color\":\"#000\"}},[_vm._v(\"\\n \"+_vm._s(_vm.evaluations[_vm.setup_index].evaluation.name)+\"\\n \")])]),_vm._v(\" \"),(_vm.evaluations[_vm.setup_index].evaluation.description)?_c('div',{staticClass:\"col-lg-12 col-xs-12 ml-5 mr-5\",staticStyle:{\"max-width\":\"fit-content\",\"word-wrap\":\"break-word\"}},[_c('span',{staticStyle:{\"color\":\"#000\"},domProps:{\"innerHTML\":_vm._s(_vm.evaluations[_vm.setup_index].evaluation.description)}})]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.show_evaluation_start)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-3\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":function($event){return _vm.showEvaluationStart(false)}}},[_vm._v(\"\\n Iniciar prova\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-3\"})]):_vm._e(),_vm._v(\" \"),(!_vm.show_evaluation_start)?_c('div',[_vm._m(0),_vm._v(\" \"),(_vm.total_steps > 1)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 pl-3 pr-3\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"apper\":\"\"}},[_c('StepIndicator',{staticClass:\"mt-3\",attrs:{\"defaultColor\":\"#53358b\",\"currentColor\":'#00a0d6',\"current\":_vm.setup_index,\"total\":_vm.total_steps}})],1)],1)]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 pl-3 pr-3\"},[_c('div',{staticClass:\"tab\"},[_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"f18\",staticStyle:{\"color\":\"#000 !important\"},domProps:{\"innerHTML\":_vm._s(_vm.mountTitle)}})])]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),(_vm.evaluations[_vm.setup_index].questions[_vm.question_index].response_type == _vm.text_type)?_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('TextType',{attrs:{\"question\":_vm.evaluations[_vm.setup_index].questions[_vm.question_index],\"index\":_vm.question_index,\"currentTime\":_vm.currentTime,\"is_evaluation\":true},on:{\"nextQuestion\":_vm.nextQuestion}})],1)]):_vm._e(),_vm._v(\" \"),(_vm.evaluations[_vm.setup_index].questions[_vm.question_index].response_type == _vm.video_type)?_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-3 col-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[(!_vm.ios)?_c('VideoJSRecord',{attrs:{\"question\":_vm.evaluations[_vm.setup_index].questions[_vm.question_index],\"index\":_vm.question_index,\"currentTime\":_vm.currentTime,\"is_evaluation\":true},on:{\"nextQuestion\":_vm.nextQuestion}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-12\"})]):_vm._e(),_vm._v(\" \"),(_vm.evaluations[_vm.setup_index].questions[_vm.question_index].response_type == _vm.multiple_choices_type)?_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('MultipleChoices',{attrs:{\"question\":_vm.evaluations[_vm.setup_index].questions[_vm.question_index],\"index\":_vm.question_index,\"currentTime\":_vm.currentTime,\"is_evaluation\":true},on:{\"nextQuestion\":_vm.nextQuestion}})],1)]):_vm._e(),_vm._v(\" \"),(_vm.evaluations[_vm.setup_index].questions[_vm.question_index].response_type == _vm.yer_or_no_type)?_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('YesOrNo',{attrs:{\"question\":_vm.evaluations[_vm.setup_index].questions[_vm.question_index],\"index\":_vm.question_index,\"currentTime\":_vm.currentTime,\"is_evaluation\":true},on:{\"saveAnswers\":_vm.nextQuestion}})],1)]):_vm._e(),_vm._v(\" \"),(_vm.evaluations[_vm.setup_index].questions[_vm.question_index].response_type == _vm.monetary_type)?_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('MonetaryType',{attrs:{\"question\":_vm.evaluations[_vm.setup_index].questions[_vm.question_index],\"index\":_vm.question_index,\"currentTime\":_vm.currentTime,\"is_evaluation\":true},on:{\"saveAnswers\":_vm.nextQuestion}})],1)]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticStyle:{\"text-align\":\"center\",\"margin-top\":\"40px\"}},[_c('span',[_vm._v(\"\\n Questão \"+_vm._s(_vm.question_index + 1)+\" de \"+_vm._s(_vm.evaluations[_vm.setup_index].questions.length)+\"\\n \")])])])]):_vm._e(),_vm._v(\" \"),(_vm.is_timer_counting)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('p',{staticStyle:{\"font-size\":\"16px\",\"color\":\"black\"}},[_c('b',[_vm._v(_vm._s(_vm.timer_minute)+\":\"+_vm._s(_vm.timer_secound <= 9 ? \"0\"+_vm.timer_secound : _vm.timer_secound))])])])]):_vm._e()])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h3',{staticClass:\"center\",staticStyle:{\"color\":\"#000\"}},[_vm._v(\"\\n Responda as perguntas:\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Evaluations.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Evaluations.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n
\n {{ evaluations[setup_index].evaluation.name }}\n \n \n
\n \n
\n
\n
\n
\n
\n \n Iniciar prova\n \n
\n
\n
\n
\n
\n
\n
\n Responda as perguntas:\n \n \n
\n
1\"\n class=\"row\"\n >\n
\n \n \n \n
\n
\n
\n
\n
\n \n Questão {{ question_index + 1 }} de {{ evaluations[setup_index].questions.length }}\n \n
\n
\n
\n
\n
\n
{{ timer_minute }}:{{ timer_secound <= 9 ? \"0\"+timer_secound : timer_secound }}
\n
\n
\n
\n\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Evaluations.vue?vue&type=template&id=4b1cbbb2&\"\nimport script from \"./Evaluations.vue?vue&type=script&lang=js&\"\nexport * from \"./Evaluations.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Evaluations.vue?vue&type=style&index=0&id=4b1cbbb2&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 color-black\"},_vm._l((_vm.choices.options),function(option,index){return _c('div',{key:index,staticStyle:{\"width\":\"fit-content\"}},[_c('label',{staticClass:\"pointer\",staticStyle:{\"overflow-wrap\":\"break-word\"}},[(_vm.choices.canMarkMoreThanOne)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(option.marked),expression:\"option.marked\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(option.marked)?_vm._i(option.marked,null)>-1:(option.marked)},on:{\"click\":function($event){return _vm.set_answer(option)},\"change\":function($event){var $$a=option.marked,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(option, \"marked\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(option, \"marked\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(option, \"marked\", $$c)}}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choices.marked),expression:\"choices.marked\"}],attrs:{\"type\":\"radio\",\"name\":\"question_options\"},domProps:{\"value\":option.title,\"checked\":_vm._q(_vm.choices.marked,option.title)},on:{\"click\":function($event){_vm.confirmChoice = true},\"change\":function($event){return _vm.$set(_vm.choices, \"marked\", option.title)}}}),_vm._v(\"\\n \"+_vm._s(option.title)+\"\\n \")]),_vm._v(\" \"),(option.hasSubanswer && option.marked)?_c('div',[_c('label',{staticClass:\"ml-4\"},[_vm._v(\"\\n \"+_vm._s(option.subanswerLabel)+\"\\n \")]),_vm._v(\" \"),_vm._l((option.subanswers),function(suboption,subindex){return _c('div',{key:subindex,staticClass:\"ml-5\"},[_c('label',{staticClass:\"pointer\",staticStyle:{\"overflow-wrap\":\"break-word\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(suboption.marked),expression:\"suboption.marked\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(suboption.marked)?_vm._i(suboption.marked,null)>-1:(suboption.marked)},on:{\"click\":function($event){return _vm.set_subanswer(suboption, option)},\"change\":function($event){var $$a=suboption.marked,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(suboption, \"marked\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(suboption, \"marked\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(suboption, \"marked\", $$c)}}}}),_vm._v(\"\\n \"+_vm._s(suboption.title)+\"\\n \")])])})],2):_vm._e()])}),0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.confirmChoice)?_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.saveAnswer}},[_vm._v(\"\\n Confirmar escolha\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.question.choices.canBeEmpty)?_c('div',[_c('button',{staticClass:\"btn btn-primary full mt-2\",on:{\"click\":_vm.skip}},[_vm._v(\"\\n Pular\\n \")])]):_vm._e()])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultipleChoices.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultipleChoices.vue?vue&type=script&lang=js&\"","\n \n
\n
\n\n
\n
\n
\n \n Confirmar escolha\n \n \n \n Pular\n \n
\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./MultipleChoices.vue?vue&type=template&id=bc06290a&\"\nimport script from \"./MultipleChoices.vue?vue&type=script&lang=js&\"\nexport * from \"./MultipleChoices.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.text),expression:\"text\"}],staticClass:\"form-control\",attrs:{\"cols\":\"30\",\"rows\":\"10\",\"placeholder\":\"Digite sua resposta aqui\"},domProps:{\"value\":(_vm.text)},on:{\"input\":function($event){if($event.target.composing)return;_vm.text=$event.target.value}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full mt-2\",on:{\"click\":_vm.saveAnswer}},[_vm._v(\"\\n Enviar resposta\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextType.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextType.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n \n Enviar resposta\n \n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./TextType.vue?vue&type=template&id=742c299c&\"\nimport script from \"./TextType.vue?vue&type=script&lang=js&\"\nexport * from \"./TextType.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticStyle:{\"width\":\"fit-content\",\"margin\":\"0 auto\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.marked),expression:\"marked\"}],attrs:{\"type\":\"radio\",\"id\":\"yes\",\"name\":\"yes_or_no\",\"value\":\"yes\"},domProps:{\"checked\":_vm._q(_vm.marked,\"yes\")},on:{\"click\":function($event){_vm.confirmChoice = true},\"change\":function($event){_vm.marked=\"yes\"}}}),_vm._v(\" \"),_c('label',{staticClass:\"color-black\",attrs:{\"for\":\"yes\"}},[_vm._v(\"Sim\")])]),_vm._v(\" \"),_c('div',{staticStyle:{\"width\":\"fit-content\",\"margin\":\"0 auto\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.marked),expression:\"marked\"}],attrs:{\"type\":\"radio\",\"name\":\"yes_or_no\",\"id\":\"no\",\"value\":\"no\"},domProps:{\"checked\":_vm._q(_vm.marked,\"no\")},on:{\"click\":function($event){_vm.confirmChoice = true},\"change\":function($event){_vm.marked=\"no\"}}}),_vm._v(\" \"),_c('label',{staticClass:\"color-black\",attrs:{\"for\":\"no\"}},[_vm._v(\"Não\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.confirmChoice)?_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.saveAnswer}},[_vm._v(\"\\n Confirmar escolha\\n \")]):_vm._e()])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YesOrNo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YesOrNo.vue?vue&type=script&lang=js&\"","\n \n
\n
\n\n
\n
\n \n \n Confirmar escolha\n \n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./YesOrNo.vue?vue&type=template&id=0180c0bd&\"\nimport script from \"./YesOrNo.vue?vue&type=script&lang=js&\"\nexport * from \"./YesOrNo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('div',{staticClass:\"input-group mb-2\"},[_vm._m(0),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.saveAnswer}},[_vm._v(\"\\n Enviar resposta\\n \")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text\"},[_vm._v(\"R$\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MonetaryType.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MonetaryType.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n \n Enviar resposta\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./MonetaryType.vue?vue&type=template&id=2e2ff9c0&\"\nimport script from \"./MonetaryType.vue?vue&type=script&lang=js&\"\nexport * from \"./MonetaryType.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (!_vm.loading)?_c('div',{staticStyle:{\"background-color\":\"white\",\"padding-top\":\"30px\",\"padding-left\":\"50px\",\"padding-right\":\"100px\"}},[_c('Experiences',{staticClass:\"mb-4 mt-4\",attrs:{\"candidate_id\":_vm.candidate_id,\"recruiter_id\":_vm.recruiter_id}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('Educations',{staticClass:\"mb-4 mt-4\",attrs:{\"candidate_id\":_vm.candidate_id,\"recruiter_id\":_vm.recruiter_id}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('ExtraCourses',{staticClass:\"mb-4 mt-4\",attrs:{\"candidate_id\":_vm.candidate_id}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('Certifications',{staticClass:\"mb-4 mt-4\",attrs:{\"candidate_id\":_vm.candidate_id,\"recruiter_id\":_vm.recruiter_id}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('CandidateSkills',{staticClass:\"mt-4 mb-4\",attrs:{\"candidate_id\":_vm.candidate_id}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('Language',{staticClass:\"mt-4 mb-4 pb-5\",attrs:{\"candidate_id\":_vm.candidate_id}})],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExperiencesTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExperiencesTab.vue?vue&type=script&lang=js&\"","\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n\n","import { render, staticRenderFns } from \"./ExperiencesTab.vue?vue&type=template&id=5f4c1556&\"\nimport script from \"./ExperiencesTab.vue?vue&type=script&lang=js&\"\nexport * from \"./ExperiencesTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"p-4\"},[_c('h3',{staticClass:\"mb-3\"},[_vm._v(\"COMPARTILHAR PERFIL\")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-6\"},[_c('div',{staticClass:\"row\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-12\"},[_c('VueSuggestion',{attrs:{\"searchURL\":\"/recruiters/shortlists/\",\"queryParamName\":`job_id=${_vm.job_id}&search`,\"responseDataName\":\"shortlists\",\"whenSelected\":_vm.shortlistSelected,\"placeholder\":\"COMECE A DIGITAR PARA BUSCAR\"}})],1),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"col-12 pt-1\"},[_c('label',[_vm._v(\"NOME\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.name),expression:\"name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.name=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-12 pt-1\"},[_c('button',{staticClass:\"btn mt-3 mb-3 full btn-success\",attrs:{\"disabled\":_vm.load_share,\"type\":\"button\"},on:{\"click\":_vm.createShortlist}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load_share),expression:\"!load_share\"}]},[_vm._v(\"ADICIONAR\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load_share),expression:\"load_share\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])]),_vm._v(\" \"),_vm._m(2),_vm._v(\" \"),(_vm.shortlists.length > 0)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('table',{staticClass:\"table table-hover\"},[_vm._m(3),_vm._v(\" \"),_c('tbody',_vm._l((_vm.shortlists),function(shortlist,index){return _c('tr',{key:shortlist.id,staticClass:\"h-auto\"},[_c('td',{staticClass:\"center\"},[_c('div',{staticClass:\"d-inline pointer\",on:{\"click\":function($event){return _vm.removeShortlist(index, shortlist.id)}}},[_c('i',{staticClass:\"fas fa-trash color-red ml-1 scale_1\"})])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"text-truncate d-inline-block\",staticStyle:{\"max-width\":\"100px\"},attrs:{\"title\":shortlist.name}},[_vm._v(_vm._s(shortlist.name))])]),_vm._v(\" \"),_c('td',[_c('table',_vm._l((shortlist.managers),function(manager,manager_index){return _c('tr',{key:`manager_${manager_index}_${index}`,staticClass:\"h-auto\"},[_c('td',{staticClass:\"center\"},[_c('div',{staticClass:\"d-inline\",on:{\"click\":function($event){return _vm.removeManager(index, manager_index, manager.id)}}},[_c('i',{staticClass:\"fas fa-trash color-red ml-1 scale_1\"})])]),_vm._v(\" \"),_c('td',[_c('span',{staticClass:\"text-truncate d-inline-block\",staticStyle:{\"max-width\":\"100px\"},attrs:{\"title\":manager.name}},[_vm._v(_vm._s(manager.manager_name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(manager.url),expression:\"manager.url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"paperclip\"}})],1)])])}),0)])])}),0)])]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-6\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('SelectManagers',{attrs:{\"inputClasses\":\"form-control\",\"truncate\":false,\"job_id\":_vm.job_id},model:{value:(_vm.managers),callback:function ($$v) {_vm.managers=$$v},expression:\"managers\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"MENSAGEM\")]),_vm._v(\" \"),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.message),expression:\"message\"}],staticClass:\"form-control\",attrs:{\"rows\":\"6\"},domProps:{\"value\":(_vm.message)},on:{\"input\":function($event){if($event.target.composing)return;_vm.message=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('p',{staticClass:\"mt-4\"},[_vm._v(\"MUDAR O STATUS DOS CANDIDATO(A)S PARA:\")]),_vm._v(\" \"),_c('div',{staticClass:\"shadow_bar select_process\"},[_c('label',{staticClass:\"pointer\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.select_process_id),expression:\"select_process_id\"}],attrs:{\"type\":\"radio\",\"name\":\"status\",\"value\":\"0\"},domProps:{\"checked\":_vm._q(_vm.select_process_id,\"0\")},on:{\"change\":function($event){_vm.select_process_id=\"0\"}}}),_vm._v(\"\\n NÃO ALTERAR STATUS\\n \")])]),_vm._v(\" \"),_vm._l((_vm.selective_processes),function(process){return _c('div',{key:process.id,staticClass:\"shadow_bar select_process\",class:`process${process.status}`},[_c('label',{staticClass:\"pointer\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.select_process_id),expression:\"select_process_id\"}],attrs:{\"type\":\"radio\",\"name\":\"status\"},domProps:{\"value\":process.id,\"checked\":_vm._q(_vm.select_process_id,process.id)},on:{\"change\":function($event){_vm.select_process_id=process.id}}}),_vm._v(\"\\n \"+_vm._s(process.name)+\"\\n \")])])})],2),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 pt-4\"},[_c('label',[_vm._v(\"TEMPO LIMITE DA LISTA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.limit_date),expression:\"limit_date\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.limit_date=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"1 DIA\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5 DIAS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7 DIAS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"10\"}},[_vm._v(\"10 DIAS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"20\"}},[_vm._v(\"20 DIAS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"30\"}},[_vm._v(\"30 DIAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 pt-4\"},[_c('button',{staticClass:\"btn mt-3 mb-3 full btn-success\",attrs:{\"disabled\":_vm.load_share,\"type\":\"button\"},on:{\"click\":_vm.shareCandidate}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load_share),expression:\"!load_share\"}]},[_vm._v(\"Compartilhar\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load_share),expression:\"load_share\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('a',{staticClass:\"f12\",attrs:{\"href\":_vm.url_share,\"target\":\"_BLANK\"}},[_vm._v(_vm._s(_vm.url_share))])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-12\"},[_c('h4',[_vm._v(\"\\n SELECIONE UMA LISTA\\n \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-12 pt-4\"},[_c('h4',[_vm._v(\"\\n CRIAR NOVA LISTA\\n \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-12 pt-4\"},[_c('h4',[_vm._v(\"\\n LISTAS CADASTRADAS\\n \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('td',{staticClass:\"center\"},[_vm._v(\"#\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Gestores(as)\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShareCandidate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShareCandidate.vue?vue&type=script&lang=js&\"","\n \n
COMPARTILHAR PERFIL \n
\n
\n
\n
\n
\n SELECIONE UMA LISTA\n \n \n
\n \n
\n
\n
\n CRIAR NOVA LISTA\n \n \n
\n NOME \n \n
\n
\n
\n ADICIONAR \n \n \n
\n \n
\n
\n
\n
\n LISTAS CADASTRADAS\n \n \n
0\">\n
\n \n \n # \n Nome \n Gestores(as) \n \n \n \n \n \n \n \n
\n \n \n {{ shortlist.name }} \n \n \n \n \n \n \n \n
\n \n \n {{ manager.manager_name }} \n \n \n \n \n \n \n \n
\n \n \n \n
\n
\n
\n
\n
\n
\n \n
\n
\n MENSAGEM \n \n
\n
\n
MUDAR O STATUS DOS CANDIDATO(A)S PARA:
\n
\n \n \n NÃO ALTERAR STATUS\n \n
\n
\n \n \n {{ process.name }}\n \n
\n
\n
\n TEMPO LIMITE DA LISTA \n \n 1 DIA \n 5 DIAS \n 7 DIAS \n 10 DIAS \n 20 DIAS \n 30 DIAS \n \n
\n
\n
\n
\n Compartilhar \n \n \n
\n \n
\n
\n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./ShareCandidate.vue?vue&type=template&id=4f297044&\"\nimport script from \"./ShareCandidate.vue?vue&type=script&lang=js&\"\nexport * from \"./ShareCandidate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('button',{staticClass:\"btn btn-primary full mb-3 radius-0 f13 h-100\",on:{\"click\":_vm.add}},[_vm._v(\"\\n Add Prova\\n \")]),_vm._v(\" \"),_vm._l((_vm.evaluations),function(evaluation,key){return _c('div',{key:key},[_c('EvaluationForm',{staticClass:\"mt-3 pb-3\",attrs:{\"evaluation\":evaluation,\"job_id\":_vm.job_id}})],1)})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n Add Prova\n \n\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=0a62803a&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row form_gallery\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('div',{staticClass:\"row\",staticStyle:{\"color\":\"#000 !important\"}},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pl-5 pr-4\"},[_c('h2',{staticClass:\"mt-3 header_h1\"},[_vm._v(\"\\n \"+_vm._s(this.video_current.name == \"\" ? \"CADASTRAR VÍDEO\" : \"EDITAR VÍDEO\")+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pl-5 pr-4\"},[_c('inputform',{attrs:{\"type\":\"text\",\"label\":\"TÍTULO DO VÍDEO\",\"field\":_vm.$v.video_current.name},model:{value:(_vm.video_current.name),callback:function ($$v) {_vm.$set(_vm.video_current, \"name\", $$v)},expression:\"video_current.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pl-5 pr-4\"},[_c('textareaform',{attrs:{\"label\":\"DESCRIÇÃO\",\"rows\":\"6\",\"field\":_vm.$v.video_current.description},model:{value:(_vm.video_current.description),callback:function ($$v) {_vm.$set(_vm.video_current, \"description\", $$v)},expression:\"video_current.description\"}})],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.able_iframe),expression:\"able_iframe\"}],staticClass:\"col-lg-12 pl-5 col-xs-12\"},[_c('label',{staticClass:\"mt-2\"},[_vm._v(\"Link do video\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.video_current.iframe),expression:\"video_current.iframe\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.video_current.iframe)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.video_current, \"iframe\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\",staticStyle:{\"text-transform\":\"uppercase\"}},[_vm._v(\"PLATAFORMAS COMPATÍVEIS: YOUTUBE, VIMEO, DAILYMOTION\")])]),_vm._v(\" \"),_c('div',{staticClass:\"row w-100 pl-5\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn mt-3 full btn-info\",on:{\"click\":_vm.recordVideo}},[_vm._v(\"\\n GRAVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 color-black\"},[_c('span',{staticClass:\"btn full btn-success mt-3 mb-1 btn-default btn-file\",staticStyle:{\"border-radius\":\"0px\"}},[_vm._v(\"\\n UPLOAD\\n \"),_c('input',{ref:`file`,attrs:{\"type\":\"file\",\"accept\":\"video/*\",\"id\":`capture`,\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovieUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn mt-3 full btn-secondary\",on:{\"click\":_vm.ableIframe}},[_vm._v(\"\\n EXTERNO\\n \")])]),_vm._v(\" \"),(!_vm.stopSave)?_c('div',{staticClass:\"col-lg-12 col-xs-12 color-black\"},[_c('button',{staticClass:\"btn mt-3 mb-3 btn-primary full\",on:{\"click\":_vm.save}},[_vm._v(\"\\n SALVAR\\n \")])]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 pt-3 pl-4 pr-5 col-xs-12 bg-gray-chumbo\"},[(_vm.video_current.iframe == '' || !_vm.video_current.iframe)?_c('div',[(_vm.video_current.id != 0 && _vm.delete_action)?_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.video_current.video != false && _vm.record == false),expression:\"video_current.video != false && record == false\"}],staticClass:\"btn mt-1 mb-1 btn-danger btn-sm right\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.deleteItem}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"times\"}}),_vm._v(\"Excluir item\\n \")],1):_vm._e(),_vm._v(\" \"),_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.video_current.video != false && _vm.record == false),expression:\"video_current.video != false && record == false\"}],attrs:{\"width\":\"100%\",\"id\":\"videoForm\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.video_current.video}})]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{staticClass:\"mt-4\",attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"videoPlayCurrent mt-5\"},[(_vm.record)?_c('VideoJSRecordGallery',{attrs:{\"video\":_vm.video_current,\"gallery\":_vm.gallery,\"item\":_vm.video_current,\"index\":0}}):_vm._e()],1)],1):_vm._e(),_vm._v(\" \"),(_vm.video_current.iframe != '')?_c('div',[(_vm.video_current.id != 0 && _vm.delete_action)?_c('button',{staticClass:\"btn mt-1 mb-1 btn-danger btn-sm right\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.deleteItem}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"times\"}}),_vm._v(\"Excluir item\\n \")],1):_vm._e(),_vm._v(\" \"),_c('video-embed',{attrs:{\"src\":_vm.video_current.iframe}})],1):_vm._e(),_vm._v(\" \"),(\n !_vm.record &&\n !_vm.load &&\n !_vm.able_iframe &&\n !_vm.video_current.video &&\n _vm.video_current.iframe === ''\n )?_c('div',{staticClass:\"videoPlayCurrent mt-5\"},[_c('div',{staticClass:\"center container-icon-video\"},[_c('font-awesome-icon',{staticClass:\"icon-pre-video\",staticStyle:{\"width\":\"35%\",\"height\":\"35%\"},attrs:{\"icon\":\"play\"}})],1)]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n {{\n this.video_current.name == \"\" ? \"CADASTRAR VÍDEO\" : \"EDITAR VÍDEO\"\n }}\n \n \n
\n \n
\n
\n \n
\n
\n Link do video \n \n PLATAFORMAS COMPATÍVEIS: YOUTUBE, VIMEO, DAILYMOTION \n
\n
\n
\n \n GRAVAR\n \n
\n
\n \n UPLOAD\n \n \n
\n
\n \n EXTERNO\n \n
\n
\n \n SALVAR\n \n
\n
\n
\n
\n
\n
\n
\n Excluir item\n \n\n
\n \n \n
\n 0 && percent <= 99\"\n :color=\"['#53358B', '#00baf7']\"\n bg-color=\"#fff\"\n :percent=\"percent\"\n />\n \n
\n \n
\n
\n
\n \n Excluir item\n \n \n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=6dec6791&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row selectVideo pr-3\"},[_c('div',{staticClass:\"col-lg-12 mt-4 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 form-control-feedback\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Search\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchVideos.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 pl-4 pr-4 pt-2 col-xs-12\"},[_c('div',{staticClass:\"container-video\"},[(_vm.videos.length == 0)?_c('span',[_vm._v(\"NÃO HÁ VÍDEOS\")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row mr-0 ml-0\"},_vm._l((_vm.videos),function(video,index){return _c('div',{key:video.id,staticClass:\"mt-2 mb-2 col-lg-6 col-xs-12\"},[_c('div',{staticClass:\"pointer\",class:{ selected_video: index == _vm.select ? true : false },on:{\"click\":function($event){return _vm.videoCurrent(index)}}},[_c('img',{staticClass:\"full\",attrs:{\"src\":video.thumbnail}}),_vm._v(\" \"),_c('div',[_c('p',{staticClass:\"crop_text overflow align-left f12 mt-0 mb-0\"},[_vm._v(\"\\n \"+_vm._s(video.name)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"crop_text overflow align-left name_recruiter mt-0 mb-0\"},[_vm._v(\"\\n \"+_vm._s(video.recruiter_name)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"align-left name_recruiter f9 mt-0 mb-0\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(video.created_at,\"D/MM/Y\"))+\"\\n \")])])])])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[(_vm.videos.length != 0)?_c('div',[_c('h2',{staticClass:\"crop_text overflow\"},[_vm._v(_vm._s(_vm.videos[_vm.select].name))]),_vm._v(\" \"),(_vm.videos.length != 0)?_c('video',{staticClass:\"full\",staticStyle:{\"margin\":\"0px auto\"},attrs:{\"id\":\"video_current\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.videos[_vm.select].video}})]):_vm._e()]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.chooseVideo}},[_vm._v(\"\\n SELECIONAR VÍDEO\\n \")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectVideoGalleryItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectVideoGalleryItem.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
NÃO HÁ VÍDEOS \n
\n
\n
\n
\n
\n
\n {{ video.name }}\n
\n
\n {{ video.recruiter_name }}\n
\n
\n {{ video.created_at | moment(\"D/MM/Y\") }}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
{{ videos[select].name }} \n \n \n \n \n
\n
\n \n SELECIONAR VÍDEO\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./SelectVideoGalleryItem.vue?vue&type=template&id=8659d4b8&\"\nimport script from \"./SelectVideoGalleryItem.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectVideoGalleryItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('draggable',_vm._b({attrs:{\"list\":_vm.questions,\"disabled\":false,\"ghost-class\":\"ghost\"},on:{\"change\":_vm.changeColumn}},'draggable',_vm.dragOptions,false),_vm._l((_vm.questions),function(question,index){return _c('div',{key:index,staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"position-relative\"},[_c('div',{staticClass:\"close radius-0\",staticStyle:{\"right\":\"0px\"},on:{\"click\":function($event){return _vm.deleteQuestion(index)}}},[_c('i',{staticClass:\"fa fa-times f10\",staticStyle:{\"margin-bottom\":\"7px\"}})]),_vm._v(\" \"),_c('div',{staticClass:\"formJov\"},[_c('div',{staticClass:\"pt-3\",staticStyle:{\"text-align\":\"left\"}},[_c('ul',{staticClass:\"nav nav-tabs\"},_vm._l((_vm.questions[index].tabs),function(tab){return _c('li',{key:tab.name,staticClass:\"nav-item\"},[_c('button',{staticClass:\"pointer btn py-2 px-5 radius-0\",class:tab.active ? 'btn-primary' : 'btn-light bg-white',on:{\"click\":function($event){return _vm.showTab(tab, index)}}},[_vm._v(\"\\n \"+_vm._s(tab.name)+\"\\n \")])])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"card-body p-0 mt-2\"},[(question.tabs[0].active)?_c('div',{staticClass:\"tab-pane\",class:{\n active: question.tabs[0].active,\n show: question.tabs[0].active,\n fade: !question.tabs[0].active,\n },attrs:{\"id\":question.tabs[0].name,\"aria-labelledby\":`${question.tabs[0].name}-tab`}},[_c('label',[_vm._v(\"TÍTULO DA PERGUNTA\")]),_vm._v(\" \"),(!_vm.loading_title)?_c('ckeditor',{staticClass:\"mt-2\",on:{\"blur\":function($event){return _vm.updateQuestions(false, index)}},model:{value:(_vm.questions[index].title),callback:function ($$v) {_vm.$set(_vm.questions[index], \"title\", $$v)},expression:\"questions[index].title\"}}):_vm._e(),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].details),expression:\"questions[index].details\"}],staticClass:\"mt-3 form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"ADICIONE DETALHES (OPCIONAL)\"},domProps:{\"value\":(_vm.questions[index].details)},on:{\"change\":function($event){return _vm.updateQuestions()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.questions[index], \"details\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"d-flex mt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].choices.canBeEmpty),expression:\"questions[index].choices.canBeEmpty\"}],staticClass:\"mr-1\",attrs:{\"type\":\"checkbox\"},domProps:{\"value\":false,\"checked\":Array.isArray(_vm.questions[index].choices.canBeEmpty)?_vm._i(_vm.questions[index].choices.canBeEmpty,false)>-1:(_vm.questions[index].choices.canBeEmpty)},on:{\"change\":[function($event){var $$a=_vm.questions[index].choices.canBeEmpty,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=false,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.questions[index].choices, \"canBeEmpty\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.questions[index].choices, \"canBeEmpty\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.questions[index].choices, \"canBeEmpty\", $$c)}},function($event){return _vm.updateQuestions(false, index)}]}}),_vm._v(\"\\n Pode ser vazio?\\n \")])],1):_vm._e(),_vm._v(\" \"),(question.tabs[1].active)?_c('div',{staticClass:\"tab-pane\",class:{\n active: question.tabs[1].active,\n show: question.tabs[1].active,\n fade: !question.tabs[1].active,\n },attrs:{\"id\":question.tabs[1].name,\"aria-labelledby\":`${question.tabs[1].name}-tab`}},[(\n question.tabs[1].options.record_now == false &&\n question.tabs[1].options.upload_video == false\n )?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',[_vm._v(\"TÍTULO DA PERGUNTA\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",on:{\"blur\":function($event){return _vm.updateQuestions(false, index)}},model:{value:(_vm.questions[index].title),callback:function ($$v) {_vm.$set(_vm.questions[index], \"title\", $$v)},expression:\"questions[index].title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"mb-2 col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"hide\",attrs:{\"id\":`canvas${index}`}}),_vm._v(\" \"),_c('div',{staticClass:\"videoPlayCurrent\"},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.questions[index].video),expression:\"questions[index].video\"}],staticClass:\"mt-2\",attrs:{\"width\":\"100%\",\"id\":`videoQuestion${index}`,\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.questions[index].video}})])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn full f13 radius-0 p-2 btn-primary btn-rezise-ask\",on:{\"click\":function($event){return _vm.canVideo(index)}}},[_vm._v(\"\\n GRAVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"btn f13 p-2 radius-0 full btn-success btn-default btn-file btn-rezise-ask\",attrs:{\"disabled\":question.title == ''}},[_vm._v(\"\\n UPLOAD\\n \"),_c('input',{ref:`file${index}`,refInFor:true,attrs:{\"type\":\"file\",\"accept\":\"video/*\",\"id\":`capture${index}`,\"capture\":\"camcorder\"},on:{\"click\":function($event){return _vm.canUpload(index, $event)},\"change\":function($event){return _vm.sendMovieUpload(index)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn f13 p-2 radius-0 btn-info full btn-rezise-ask\",attrs:{\"disabled\":_vm.load},on:{\"click\":function($event){return _vm.showSelectVideo(index)}}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"GALERIA\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.questions[index].tabs[1].options.record_now == true)?_c('div',{staticClass:\"videoPlayCurrent\"},[_c('VideoJSRecord',{attrs:{\"recruiter\":true,\"question\":question,\"job_id\":_vm.job_id,\"index\":index}}),_vm._v(\" \"),_c('button',{staticClass:\"mt-3 btn-primary btn-sm\",on:{\"click\":function($event){return _vm.backMenuVideo(index)}}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"Voltar\\n \")],1)],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('label',[_vm._v(\"Deseja que a resposta do candidato(a) seja por:\\n \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].response_type),expression:\"questions[index].response_type\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"response_type\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions(false, index)}]}},_vm._l((_vm.response_types),function(response){return _c('option',{key:response.value,domProps:{\"value\":response.type}},[_vm._v(\"\\n \"+_vm._s(response.value)+\"\\n \")])}),0)])]),_vm._v(\" \"),(_vm.questions[index].response_type == 2)?_c('div',{staticClass:\"row mt-3\"},[_c('MultipleChoices',{attrs:{\"index\":index},model:{value:(_vm.questions[index].choices),callback:function ($$v) {_vm.$set(_vm.questions[index], \"choices\", $$v)},expression:\"questions[index].choices\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.questions[index].response_type == 3)?_c('div',{staticClass:\"row mt-3\"},[_c('YesOrNo',{attrs:{\"index\":index},model:{value:(_vm.questions[index].choices),callback:function ($$v) {_vm.$set(_vm.questions[index], \"choices\", $$v)},expression:\"questions[index].choices\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.questions[index].response_type == 4)?_c('div',{staticClass:\"mt-3\"},[_c('Monetary',{attrs:{\"index\":index},model:{value:(_vm.questions[index].choices),callback:function ($$v) {_vm.$set(_vm.questions[index], \"choices\", $$v)},expression:\"questions[index].choices\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.questions[index].response_type == 0)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"NÚMERO DE TENTATIVAS\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].number_retakers),expression:\"questions[index].number_retakers\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"number_retakers\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions()}]}},[_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"TEMPO LIMITE\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].time),expression:\"questions[index].time\"}],staticClass:\"form-control\",staticStyle:{\"text-transform\":\"uppercase\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"time\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions()}]}},[_c('option',{attrs:{\"value\":\"30\"}},[_vm._v(\"30 segundos\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"60\"}},[_vm._v(\"60 segundos\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"90\"}},[_vm._v(\"90 segundos\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"120\"}},[_vm._v(\"120 segundos\")])])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"PROVA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].evaluation_id),expression:\"questions[index].evaluation_id\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"evaluation_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions(false, index)}]}},[_vm._l((_vm.evaluations),function(eva){return [_c('option',{key:eva.id,domProps:{\"value\":eva.id}},[_vm._v(_vm._s(eva.name))])]})],2)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"TIPO DE ORDENACAO\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].type_order),expression:\"questions[index].type_order\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"type_order\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions(false, index)}]}},[_c('option',{domProps:{\"value\":0}},[_vm._v(\"Ordenado\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":1}},[_vm._v(\"Aleatório\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":2}},[_vm._v(\"Por ultimo\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":3}},[_vm._v(\"Primeiro\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":4}},[_vm._v(\"Início\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('label',[_vm._v(\"EM QUAL ETAPA ESTÁ PERGUNTA IRÁ: \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].selective_process_id),expression:\"questions[index].selective_process_id\"}],staticClass:\"form-control col-xl-12\",staticStyle:{\"text-transform\":\"uppercase\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"selective_process_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions(true)}]}},_vm._l((_vm.selective_processes),function(selective_process){return _c('option',{key:selective_process.id,staticClass:\"form-control\",domProps:{\"value\":selective_process.id}},[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].description),expression:\"questions[index].description\"}],staticClass:\"form-control mt-3 mb-3 border-radius-pattern\",attrs:{\"placeholder\":\"DESCRIÇÃO DA PERGUNTA (USO APENAS PARA O RECRUTADOR(A))\",\"rows\":\"3\"},domProps:{\"value\":(_vm.questions[index].description)},on:{\"change\":function($event){return _vm.updateQuestions()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.questions[index], \"description\", $event.target.value)}}})])])])])])])}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=2a1f305a&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 d-flex\"},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showForm),expression:\"!showForm\"}],staticClass:\"btn btn-primary full radius-0\",on:{\"click\":function($event){_vm.showForm = true}}},[_vm._v(\"\\n ADICIONAR OPÇÃO\\n \")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showForm),expression:\"showForm\"}],staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.optionTitle),expression:\"optionTitle\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Opção\"},domProps:{\"value\":(_vm.optionTitle)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.addOption.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.optionTitle=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-success\",attrs:{\"title\":\"Adicionar Opção\"},on:{\"click\":_vm.addOption}},[_c('font-awesome-icon',{attrs:{\"icon\":\"check\"}})],1),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger\",attrs:{\"title\":\"Cancelar\"},on:{\"click\":function($event){_vm.showForm = false}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"times\"}})],1)])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_c('div',{staticClass:\"col-lg-12 text-left\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choices.canMarkMoreThanOne),expression:\"choices.canMarkMoreThanOne\"}],attrs:{\"type\":\"checkbox\",\"id\":`canMarkMoreThanOne-${_vm.index}`},domProps:{\"checked\":Array.isArray(_vm.choices.canMarkMoreThanOne)?_vm._i(_vm.choices.canMarkMoreThanOne,null)>-1:(_vm.choices.canMarkMoreThanOne)},on:{\"change\":[function($event){var $$a=_vm.choices.canMarkMoreThanOne,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.choices, \"canMarkMoreThanOne\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.choices, \"canMarkMoreThanOne\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.choices, \"canMarkMoreThanOne\", $$c)}},_vm.updateOptions]}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":`canMarkMoreThanOne-${_vm.index}`}},[_vm._v(\"Candidato poderá marcar mais de uma opção?\")])])]),_vm._v(\" \"),(_vm.choices.canMarkMoreThanOne)?_c('div',{staticClass:\"row mt-1\"},[_c('div',{staticClass:\"col-lg-12 text-left\"},[_c('label',[_vm._v(\"\\n Limite de escolhas:\\n \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choices.choiceLimit),expression:\"choices.choiceLimit\"}],attrs:{\"type\":\"number\",\"min\":\"1\",\"max\":_vm.choices.optionsCount},domProps:{\"value\":(_vm.choices.choiceLimit)},on:{\"change\":_vm.updateOptions,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.choices, \"choiceLimit\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 text-left\"},[_c('label',[_vm._v(\"\\n Mínimo de escolhas:\\n \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choices.choicesMin),expression:\"choices.choicesMin\"}],attrs:{\"type\":\"number\",\"min\":\"0\",\"max\":_vm.choices.optionsCount},domProps:{\"value\":(_vm.choices.choicesMin)},on:{\"change\":_vm.updateOptions,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.choices, \"choicesMin\", $event.target.value)}}})])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},_vm._l((_vm.choices.options),function(option,index){return _c('div',{key:index,staticClass:\"col-lg-12\",class:{ 'mt-2': index > 0 }},[_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(option.title),expression:\"option.title\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(option.title)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.$set(option, \"title\", $event.target.value)},_vm.updateOptions]}}),_vm._v(\" \"),_c('div',{staticClass:\"input-group-append\"},[_c('div',{staticClass:\"input-group-text\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(option.rightAnswer),expression:\"option.rightAnswer\"}],attrs:{\"type\":\"checkbox\",\"id\":`rightAnswer-${option.title}`},domProps:{\"checked\":Array.isArray(option.rightAnswer)?_vm._i(option.rightAnswer,null)>-1:(option.rightAnswer)},on:{\"change\":[function($event){var $$a=option.rightAnswer,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(option, \"rightAnswer\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(option, \"rightAnswer\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(option, \"rightAnswer\", $$c)}},_vm.updateOptions]}}),_vm._v(\" \"),_c('label',{staticClass:\"f14 ml-1 mb-0\",attrs:{\"for\":`rightAnswer-${option.title}`}},[_vm._v(\"Opção Correta\")])]),_vm._v(\" \"),_c('div',{staticClass:\"input-group-text\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(option.hasSubanswer),expression:\"option.hasSubanswer\"}],attrs:{\"type\":\"checkbox\",\"id\":`subanswer-${option.title}`},domProps:{\"checked\":Array.isArray(option.hasSubanswer)?_vm._i(option.hasSubanswer,null)>-1:(option.hasSubanswer)},on:{\"change\":function($event){var $$a=option.hasSubanswer,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(option, \"hasSubanswer\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(option, \"hasSubanswer\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(option, \"hasSubanswer\", $$c)}}}}),_vm._v(\" \"),_c('label',{staticClass:\"f14 ml-1 mb-0\",attrs:{\"for\":`subanswer-${option.title}`}},[_vm._v(\"Tem subopção?\")])]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger radius-0\",attrs:{\"title\":\"Deletar opção\"},on:{\"click\":function($event){return _vm.removeOption(index)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"trash\"}})],1)])]),_vm._v(\" \"),(option.hasSubanswer)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(option.subanswerLabel),expression:\"option.subanswerLabel\"}],staticClass:\"form-control mt-2\",attrs:{\"type\":\"text\",\"placeholder\":\"Título da pergunta\"},domProps:{\"value\":(option.subanswerLabel)},on:{\"blur\":_vm.updateOptions,\"input\":function($event){if($event.target.composing)return;_vm.$set(option, \"subanswerLabel\", $event.target.value)}}}):_vm._e(),_vm._v(\" \"),(option.hasSubanswer)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(option.subanswer),expression:\"option.subanswer\"}],staticClass:\"form-control mt-2\",attrs:{\"type\":\"text\",\"placeholder\":\"Subopções\"},domProps:{\"value\":(option.subanswer)},on:{\"blur\":function($event){return _vm.updateOptions(index)},\"input\":function($event){if($event.target.composing)return;_vm.$set(option, \"subanswer\", $event.target.value)}}}):_vm._e(),_vm._v(\" \"),(option.hasSubanswer)?_c('span',{staticClass:\"f12\"},[_vm._v(\"\\n Separe as opções com ponto e vírgula. Ex.: Opção 1; Opção 2; Opção 3\\n \")]):_vm._e()])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultipleChoices.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultipleChoices.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n ADICIONAR OPÇÃO\n \n
\n
\n
\n
\n
\n \n Candidato poderá marcar mais de uma opção? \n
\n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./MultipleChoices.vue?vue&type=template&id=10b6ee6c&\"\nimport script from \"./MultipleChoices.vue?vue&type=script&lang=js&\"\nexport * from \"./MultipleChoices.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('label',[_vm._v(\"Selecione a opção correta\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choices.correctAnswer),expression:\"choices.correctAnswer\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.choices, \"correctAnswer\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"yes\"}},[_vm._v(\"Sim\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"no\"}},[_vm._v(\"Não\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"any\"}},[_vm._v(\"Qualquer uma\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YesOrNo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./YesOrNo.vue?vue&type=script&lang=js&\"","\n \n Selecione a opção correta \n \n Sim \n Não \n Qualquer uma \n \n
\n \n\n","import { render, staticRenderFns } from \"./YesOrNo.vue?vue&type=template&id=1c148df6&\"\nimport script from \"./YesOrNo.vue?vue&type=script&lang=js&\"\nexport * from \"./YesOrNo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 text-left\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choices.hasExpectation),expression:\"choices.hasExpectation\"}],attrs:{\"type\":\"checkbox\",\"id\":`addSalaryExpectation-${_vm.index}`},domProps:{\"checked\":Array.isArray(_vm.choices.hasExpectation)?_vm._i(_vm.choices.hasExpectation,null)>-1:(_vm.choices.hasExpectation)},on:{\"change\":function($event){var $$a=_vm.choices.hasExpectation,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.choices, \"hasExpectation\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.choices, \"hasExpectation\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.choices, \"hasExpectation\", $$c)}}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":`addSalaryExpectation-${_vm.index}`}},[_vm._v(\"Deseja adicionar um valor esperado?\")])]),_vm._v(\" \"),(_vm.choices.hasExpectation)?_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-5\"},[_c('currency-input',{staticClass:\"form-control\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.choices.expectedSalary.minValue),callback:function ($$v) {_vm.$set(_vm.choices.expectedSalary, \"minValue\", $$v)},expression:\"choices.expectedSalary.minValue\"}})],1),_vm._v(\" \"),(_vm.choices.salaryRange)?_c('div',{staticClass:\"col-lg-2\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.choices.salaryRange)?_c('div',{staticClass:\"col-lg-5\"},[_c('currency-input',{staticClass:\"form-control\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.choices.expectedSalary.maxValue),callback:function ($$v) {_vm.$set(_vm.choices.expectedSalary, \"maxValue\", $$v)},expression:\"choices.expectedSalary.maxValue\"}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"},[_c('button',{staticClass:\"btn btn-primary full\",class:{ 'mt-2': _vm.choices.salaryRange },on:{\"click\":function($event){_vm.choices.salaryRange = !_vm.choices.salaryRange}}},[_vm._v(\"\\n \"+_vm._s(_vm.choices.salaryRange\n ? \"Cadastrar valor fixo\"\n : \"Cadastrar faixa de valores\")+\"\\n \")])])])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-table h-100 w-100\"},[_c('span',{staticClass:\"d-table-cell align-bottom\"},[_vm._v(\"Até\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Monetary.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Monetary.vue?vue&type=script&lang=js&\"","\n \n
\n \n Deseja adicionar um valor esperado? \n
\n
\n
\n
\n \n
\n
\n
\n \n
\n
\n \n {{\n choices.salaryRange\n ? \"Cadastrar valor fixo\"\n : \"Cadastrar faixa de valores\"\n }}\n \n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./Monetary.vue?vue&type=template&id=4daa13ff&\"\nimport script from \"./Monetary.vue?vue&type=script&lang=js&\"\nexport * from \"./Monetary.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mb-3 position-relative\"},[_c('div',{staticClass:\"close radius-0\",staticStyle:{\"right\":\"0px\"},on:{\"click\":function($event){return _vm.deleteVideo(_vm.index)}}},[_c('i',{staticClass:\"fa fa-times f10\",staticStyle:{\"margin-bottom\":\"7px\"}})]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\",staticStyle:{\"background-color\":\"#f4f4f4\"}},[(!_vm.record)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('label',[_vm._v(\"TÍTULO DO VÍDEO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.gallery_item.name),expression:\"gallery_item.name\"}],staticClass:\"form-control mb-2\",class:{ 'is-invalid': _vm.gallery_item.name === '' },attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.gallery_item.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.gallery_item, \"name\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.able_iframe),expression:\"able_iframe\"}],staticClass:\"col-lg-12 col-xs-12\"},[_c('label',[_vm._v(\"Url do video\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.gallery_item.iframe),expression:\"gallery_item.iframe\"}],staticClass:\"form-control mb-3\",attrs:{\"placeholder\":\"Plataformas compativeis: YouTube, Vimeo, DailyMotion\",\"rows\":\"6\"},domProps:{\"value\":(_vm.gallery_item.iframe)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.gallery_item, \"iframe\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"videoPlayCurrent\"},[(_vm.able_iframe)?_c('video-embed',{staticClass:\"mb-3\",attrs:{\"id\":`embed${_vm.index}`,\"src\":_vm.gallery_item.iframe}}):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.saveIframe}},[_vm._v(\"\\n Salvar Vídeo\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.backOption}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"Voltar\\n \")],1)],1)])]):_vm._e(),_vm._v(\" \"),(!_vm.record && !_vm.able_iframe)?_c('div',{staticClass:\"row row-btns\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"btn btn-sm full btn-primary resize-btn\",attrs:{\"disabled\":_vm.gallery_item.name == ''},on:{\"click\":function($event){return _vm.canRecord()}}},[_vm._v(\"\\n GRAVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',{staticClass:\"btn full btn-sm btn-primary-dark btn-default btn-file resize-btn\",class:{ disabled: _vm.gallery_item.name == '' },attrs:{\"disabled\":_vm.gallery_item.name == ''}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load_upload),expression:\"!load_upload\"}]},[_vm._v(\"UPLOAD\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load_upload),expression:\"load_upload\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})]),_vm._v(\" \"),_c('input',{ref:`file`,attrs:{\"type\":\"file\",\"disabled\":_vm.gallery_item.name == '',\"accept\":\"video/*\",\"id\":`capture${_vm.index}`,\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovieUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"btn btn-sm btn-info full resize-btn\",attrs:{\"disabled\":_vm.load || _vm.gallery_item.name == ''},on:{\"click\":function($event){return _vm.showSelectVideo(_vm.index)}}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"GALERIA\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"btn btn-sm full btn-secondary resize-btn\",attrs:{\"disabled\":_vm.gallery_item.name == ''},on:{\"click\":function($event){_vm.able_iframe = true}}},[_vm._v(\"\\n LINK EXTERNO\\n \")])])]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.gallery_item.video != '' && !_vm.record && !_vm.able_iframe),expression:\"gallery_item.video != '' && !record && !able_iframe\"}],staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"videoPlayCurrent mt-3\"},[_c('video',{attrs:{\"width\":\"100%\",\"id\":`video_unique${_vm.index}`,\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.gallery_item.video}})])])])]),_vm._v(\" \"),(_vm.record && !_vm.able_iframe)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"videoPlayCurrent center\"},[_c('VideoJSRecordGallery',{staticClass:\"mt-3\",attrs:{\"video\":_vm.gallery_item,\"gallery\":_vm.gallery,\"item\":_vm.gallery_item,\"reference_id\":_vm.current_reference_id,\"index\":_vm.index},on:{\"setFieldGalleryItem\":_vm.setFieldGalleryItem}}),_vm._v(\" \"),_c('button',{staticClass:\"mt-2 btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.backOption}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"Voltar\\n \")],1)],1)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-3 col-xs-12\"},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n
\n
\n
\n
\n TÍTULO DO VÍDEO \n \n
\n
\n
Url do video \n
\n\n
\n \n \n Salvar Vídeo\n \n \n Voltar\n \n
\n
\n
\n
\n
\n \n GRAVAR\n \n
\n
\n
\n UPLOAD \n \n \n
\n \n \n
\n
\n
\n GALERIA \n \n \n
\n \n
\n
\n \n LINK EXTERNO\n \n
\n
\n
\n
\n
\n
\n \n \n Voltar\n \n
\n
\n
\n
\n 0 && percent <= 99\"\n :color=\"['#53358B', '#00baf7']\"\n bg-color=\"#fff\"\n :percent=\"percent\"\n />\n
\n
\n
\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InstitutionalVideo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InstitutionalVideo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InstitutionalVideo.vue?vue&type=template&id=0aa8b2bc&\"\nimport script from \"./InstitutionalVideo.vue?vue&type=script&lang=js&\"\nexport * from \"./InstitutionalVideo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row full_height\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('div',{staticClass:\"ml-4 mt-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8\"},[_c('label',[_vm._v(\"NOME DO FEEDBACK\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.name),expression:\"feedback.name\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.feedback.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"name\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\"USADO APENAS PARA IDENTIFICAÇÃO\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('label',{staticStyle:{\"margin-top\":\"40px\"}},[_c('CheckBox',{staticClass:\"mr-3 left\",attrs:{\"checked\":_vm.feedback.use_video,\"label\":\"USAR VÍDEO\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-3\"},[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"STATUS\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.status),expression:\"feedback.status\"}],attrs:{\"type\":\"radio\",\"name\":\"status\",\"value\":\"1\"},domProps:{\"checked\":_vm._q(_vm.feedback.status,\"1\")},on:{\"change\":function($event){return _vm.$set(_vm.feedback, \"status\", \"1\")}}}),_vm._v(\"\\n ATIVO\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"ml-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.status),expression:\"feedback.status\"}],attrs:{\"type\":\"radio\",\"name\":\"status\",\"value\":\"0\"},domProps:{\"checked\":_vm._q(_vm.feedback.status,\"0\")},on:{\"change\":function($event){return _vm.$set(_vm.feedback, \"status\", \"0\")}}}),_vm._v(\"\\n DESATIVO\\n \")])])])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.feedback.use_video)?_c('div',[_c('div',{staticClass:\"ml-4 mt-4\"},[_c('label',[_vm._v(\"TÍTULO DO VÍDEO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.video.name),expression:\"video.name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.video.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.video, \"name\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\"\\n DIGITE UM TÍTULO PARA\\n \"),_c('b',[_vm._v(\"GRAVAR\")]),_vm._v(\" OU FAZER\\n \"),_c('b',[_vm._v(\"UPLOAD\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"ml-4 mt-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('button',{staticClass:\"btn full btn-primary\",attrs:{\"disabled\":_vm.video.name == '',\"type\":\"button\"},on:{\"click\":_vm.recordVideo}},[_vm._v(\"\\n GRAVAR VÍDEO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('span',{staticClass:\"btn full btn-success mb-1 btn-default btn-file\",staticStyle:{\"border-radius\":\"0px\"},attrs:{\"disabled\":_vm.video.name == ''}},[_vm._v(\"\\n FAZER UPLOAD\\n \"),_c('input',{ref:`file`,attrs:{\"type\":\"file\",\"disabled\":_vm.video.name == '',\"accept\":\"video/*\",\"id\":`capture`,\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovieUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('button',{staticClass:\"btn mt-4 full btn-info\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.chooseVideo}},[_vm._v(\"\\n USAR VÍDEO DA\\n \")])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.gallery_select)?_c('SelectVideoGalleryItem'):_vm._e()],1)],1)])]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"ml-4 mt-4\"},[_c('div',[_c('label',[_vm._v(\"TÍTULO DO E-MAIL\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.title),expression:\"feedback.title\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.feedback.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"title\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('label',[_vm._v(\"CORPO DO E-EMAIL\")]),_vm._v(\" \"),_c('ckeditor',{model:{value:(_vm.feedback.description),callback:function ($$v) {_vm.$set(_vm.feedback, \"description\", $$v)},expression:\"feedback.description\"}})],1),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),(_vm.feedback.use_video)?_c('div',{staticClass:\"mt-3\"},[_c('label',[_vm._v(\"TEXTO ADICIONAL PARA PÁGINA DO VÍDEO\")]),_vm._v(\" \"),_c('ckeditor',{model:{value:(_vm.feedback.additional_text),callback:function ($$v) {_vm.$set(_vm.feedback, \"additional_text\", $$v)},expression:\"feedback.additional_text\"}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-3 mb-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',[_vm._v(\"NOME TESTE (OPCIONAL)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.test_name),expression:\"test_name\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.test_name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.test_name=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"EMAILS TESTE (OPCIONAL)\")]),_vm._v(\" \"),_c('VueTagsInput',{attrs:{\"tags\":_vm.test_emails},on:{\"tags-changed\":(newTags) => (_vm.test_emails = newTags)},model:{value:(_vm.test_email),callback:function ($$v) {_vm.test_email=$$v},expression:\"test_email\"}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\"PRESSIONE 'ENTER' PARA ADICIONAR OS E-MAILS\")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3 mb-4\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"btn btn-info full\",on:{\"click\":_vm.makeTest}},[_vm._v(\"\\n Realizar teste\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.saveEndClouse}},[_vm._v(\"\\n Salvar\\n \")])])])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 full_height\",staticStyle:{\"background-color\":\"#414141\"}},[(!_vm.record && !_vm.load && !_vm.upload && !_vm.video.video)?_c('div',{staticClass:\"p-4\"},[_c('div',{staticClass:\"center container-icon-video\",staticStyle:{\"height\":\"337px\"}},[_c('font-awesome-icon',{staticClass:\"icon-pre-video\",staticStyle:{\"width\":\"35%\",\"height\":\"35%\",\"color\":\"white\"},attrs:{\"icon\":\"play\"}})],1)]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.record),expression:\"record\"}],staticClass:\"p-4\"},[(_vm.record)?_c('VideoJSRecordGallery',{attrs:{\"reference_id\":_vm.feedback.id,\"video\":_vm.video,\"gallery\":_vm.gallery,\"item\":_vm.video,\"index\":\"videoEditFeedback\"}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"p-4\"},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.video.video != false && _vm.record == false),expression:\"video.video != false && record == false\"}],attrs:{\"width\":\"100%\",\"id\":\"videoForm\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.video.video}})]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{staticClass:\"mt-4\",attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1)],1)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('p',{staticClass:\"f12\"},[_vm._v(\"\\n USE\\n \"),_c('b',[_vm._v(\"{name}\")]),_vm._v(\"PARA SUBSTITUIR PELO NOME DE CANDIDATO(A).\\n \")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n \n
\n TÍTULO DO VÍDEO \n \n \n DIGITE UM TÍTULO PARA\n GRAVAR OU FAZER\n UPLOAD \n \n
\n
\n
\n
\n \n GRAVAR VÍDEO\n \n
\n
\n \n FAZER UPLOAD\n \n \n
\n
\n \n USAR VÍDEO DA\n \n
\n
\n \n \n
\n
\n
\n \n
\n
\n TÍTULO DO E-MAIL \n \n
\n
\n CORPO DO E-EMAIL \n \n
\n
\n
\n USE\n {name} PARA SUBSTITUIR PELO NOME DE CANDIDATO(A).\n
\n
\n
\n TEXTO ADICIONAL PARA PÁGINA DO VÍDEO \n \n
\n\n
\n
\n
\n NOME TESTE (OPCIONAL) \n \n
\n
\n EMAILS TESTE (OPCIONAL) \n (test_emails = newTags)\"\n />\n PRESSIONE 'ENTER' PARA ADICIONAR OS E-MAILS \n
\n
\n
\n
\n \n Realizar teste\n \n
\n
\n \n Salvar\n \n
\n
\n
\n
\n\n
\n
\n\n
\n \n
\n
\n \n \n \n\n \n 0 && percent <= 99\"\n :color=\"['#53358B', '#00baf7']\"\n bg-color=\"#fff\"\n :percent=\"percent\"\n />\n \n
\n
\n
\n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditFeedback.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditFeedback.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditFeedback.vue?vue&type=template&id=73f946e8&\"\nimport script from \"./EditFeedback.vue?vue&type=script&lang=js&\"\nexport * from \"./EditFeedback.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('label',{staticClass:\"switch_jovool m-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.input),expression:\"input\"}],staticClass:\"switch_input\",attrs:{\"type\":\"checkbox\",\"checked\":\"\"},domProps:{\"checked\":Array.isArray(_vm.input)?_vm._i(_vm.input,null)>-1:(_vm.input)},on:{\"click\":_vm.onClick,\"change\":function($event){var $$a=_vm.input,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.input=$$a.concat([$$v]))}else{$$i>-1&&(_vm.input=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.input=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"slider_jovool round\"})]),_vm._v(\" \"),_c('span',{staticClass:\"ml-1 f12\"},[_vm._v(_vm._s(_vm.label))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SwitchCheckbox.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SwitchCheckbox.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SwitchCheckbox.vue?vue&type=template&id=af8fcbfa&scoped=true&\"\nimport script from \"./SwitchCheckbox.vue?vue&type=script&lang=js&\"\nexport * from \"./SwitchCheckbox.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SwitchCheckbox.vue?vue&type=style&index=0&id=af8fcbfa&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"af8fcbfa\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row full_height\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('div',{staticClass:\"ml-4 mt-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8\"},[_c('label',[_vm._v(\"APELIDO DA MENSAGEM\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.name),expression:\"feedback.name\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.feedback.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"name\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\"APENAS IDENTIFICAÇÃO\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('label',{staticStyle:{\"margin-top\":\"40px\"}},[_c('CheckBox',{staticClass:\"mr-3 left\",attrs:{\"checked\":_vm.feedback.use_video,\"label\":\"ADICIONAR VÍDEO\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-3\"},[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"STATUS\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.status),expression:\"feedback.status\"}],attrs:{\"type\":\"radio\",\"name\":\"status\",\"value\":\"1\"},domProps:{\"checked\":_vm._q(_vm.feedback.status,\"1\")},on:{\"change\":function($event){return _vm.$set(_vm.feedback, \"status\", \"1\")}}}),_vm._v(\"\\n ATIVA\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"ml-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.status),expression:\"feedback.status\"}],attrs:{\"type\":\"radio\",\"name\":\"status\",\"value\":\"0\"},domProps:{\"checked\":_vm._q(_vm.feedback.status,\"0\")},on:{\"change\":function($event){return _vm.$set(_vm.feedback, \"status\", \"0\")}}}),_vm._v(\"\\n INATIVA\\n \")])])])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.feedback.use_video)?_c('div',[_c('div',{staticClass:\"ml-4 mt-4\"},[_c('label',[_vm._v(\"APELIDO DO VÍDEO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.video.name),expression:\"video.name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.video.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.video, \"name\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\"\\n DIGITE O APELIDO PARA\\n \"),_c('b',[_vm._v(\"GRAVAR\")]),_vm._v(\" OU FAZER\\n \"),_c('b',[_vm._v(\"UPLOAD\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"ml-4 mt-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('button',{staticClass:\"btn full btn-primary\",attrs:{\"disabled\":_vm.video.name == '',\"type\":\"button\"},on:{\"click\":_vm.recordVideo}},[_vm._v(\"\\n GRAVAR VÍDEO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('span',{staticClass:\"btn full btn-success mb-1 btn-default btn-file\",staticStyle:{\"border-radius\":\"0px\"},attrs:{\"disabled\":_vm.video.name == ''}},[_vm._v(\"\\n FAZER UPLOAD\\n \"),_c('input',{ref:`file`,attrs:{\"type\":\"file\",\"disabled\":_vm.video.name == '',\"accept\":\"video/*\",\"id\":`capture`,\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovieUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('button',{staticClass:\"btn mt-4 full btn-info\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.chooseVideo}},[_vm._v(\"\\n UTILIZAR VÍDEO DA GALERIA\\n \")])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.gallery_select)?_c('SelectVideoGalleryItem'):_vm._e()],1)],1)])]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"ml-4 mt-4\"},[_c('div',[_c('label',[_vm._v(\"TÍTULO DO E-MAIL\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.title),expression:\"feedback.title\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.feedback.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"title\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('label',[_vm._v(\"MENSAGEM\")]),_vm._v(\" \"),_c('ckeditor',{model:{value:(_vm.feedback.description),callback:function ($$v) {_vm.$set(_vm.feedback, \"description\", $$v)},expression:\"feedback.description\"}})],1),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),(_vm.feedback.use_video)?_c('div',{staticClass:\"mt-3\"},[_c('label',[_vm._v(\"TEXTO ADICIONAL PARA PÁGINA DO VÍDEO\")]),_vm._v(\" \"),_c('ckeditor',{model:{value:(_vm.feedback.additional_text),callback:function ($$v) {_vm.$set(_vm.feedback, \"additional_text\", $$v)},expression:\"feedback.additional_text\"}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-3 mb-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',[_vm._v(\"DESTINATÁRIO TESTE (OPCIONAL)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.test_name),expression:\"test_name\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.test_name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.test_name=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"E-MAIL TESTE (OPCIONAL)\")]),_vm._v(\" \"),_c('VueTagsInput',{attrs:{\"tags\":_vm.test_emails,\"placeholder\":\"\"},on:{\"tags-changed\":(newTags) => (_vm.test_emails = newTags)},model:{value:(_vm.test_email),callback:function ($$v) {_vm.test_email=$$v},expression:\"test_email\"}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\" PRESSIONE PARA ADICIONAR E-MAILS\")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3 mb-4\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"btn btn-info full\",on:{\"click\":_vm.makeTest}},[_vm._v(\"\\n ENVIAR TESTE\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.saveEndClouse}},[_vm._v(\"\\n SALVAR\\n \")])])])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 full_height\",staticStyle:{\"background-color\":\"#414141\"}},[(!_vm.record && !_vm.load && !_vm.upload && !_vm.video.video)?_c('div',{staticClass:\"p-4\"},[_c('div',{staticClass:\"center container-icon-video\",staticStyle:{\"height\":\"337px\"}},[_c('font-awesome-icon',{staticClass:\"icon-pre-video\",staticStyle:{\"width\":\"35%\",\"height\":\"35%\",\"color\":\"white\"},attrs:{\"icon\":\"play\"}})],1)]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.record),expression:\"record\"}],staticClass:\"p-4\"},[(_vm.record)?_c('VideoJSRecordGallery',{attrs:{\"reference_id\":_vm.feedback.id,\"video\":_vm.video,\"gallery\":_vm.gallery,\"item\":_vm.video,\"index\":\"videoEditFeedback\"}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"p-4\"},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.video.video != false && _vm.record == false),expression:\"video.video != false && record == false\"}],attrs:{\"width\":\"100%\",\"id\":\"videoForm\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.video.video}})]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{staticClass:\"mt-4\",attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1)],1)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('p',{staticClass:\"f12\"},[_vm._v(\"\\n USE\\n \"),_c('b',[_vm._v(\"{name}\")]),_vm._v(\"PARA SUBSTITUIR PELO NOME DE CANDIDATO(A).\\n \")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n \n
\n APELIDO DO VÍDEO \n \n \n DIGITE O APELIDO PARA\n GRAVAR OU FAZER\n UPLOAD \n \n
\n
\n
\n
\n \n GRAVAR VÍDEO\n \n
\n
\n \n FAZER UPLOAD\n \n \n
\n
\n \n UTILIZAR VÍDEO DA GALERIA\n \n
\n
\n \n \n
\n
\n
\n \n
\n
\n TÍTULO DO E-MAIL \n \n
\n
\n MENSAGEM \n \n
\n
\n
\n USE\n {name} PARA SUBSTITUIR PELO NOME DE CANDIDATO(A).\n
\n
\n
\n TEXTO ADICIONAL PARA PÁGINA DO VÍDEO \n \n
\n\n
\n
\n
\n DESTINATÁRIO TESTE (OPCIONAL) \n \n
\n
\n E-MAIL TESTE (OPCIONAL) \n (test_emails = newTags)\"\n />\n PRESSIONE <ENTER> PARA ADICIONAR E-MAILS \n
\n
\n
\n
\n \n ENVIAR TESTE\n \n
\n
\n \n SALVAR\n \n
\n
\n
\n
\n\n
\n
\n\n
\n \n
\n
\n \n \n \n\n \n 0 && percent <= 99\"\n :color=\"['#53358B', '#00baf7']\"\n bg-color=\"#fff\"\n :percent=\"percent\"\n />\n \n
\n
\n
\n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditFeedback.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditFeedback.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditFeedback.vue?vue&type=template&id=003eba26&\"\nimport script from \"./EditFeedback.vue?vue&type=script&lang=js&\"\nexport * from \"./EditFeedback.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":_vm.candidate.name,\"menu\":\"Candidatos\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('Header',{attrs:{\"candidate\":_vm.candidate,\"applies\":_vm.applies,\"apply\":_vm.apply,\"skills\":_vm.skills,\"other_avatar\":_vm.other_avatar}}),_vm._v(\" \"),_c('div',{staticClass:\"space-candidate-layout mt-3 mb-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"border-dark-purple\"},[_c('div',{staticClass:\"pointer p-2\",on:{\"click\":_vm.showBigfive}},[_c('span',{staticClass:\"f12 pointer\"},[_c('i',{staticClass:\"fas mr-2 fa-address-book color-purple mr-1\"}),_vm._v(\"\\n BIGFIVE COMPLETO\\n \")])]),_vm._v(\" \"),(_vm.candidate.uid)?_c('BigfiveShow',{attrs:{\"candidate_uid\":_vm.candidate.uid,\"no_next\":true,\"only_graph\":true}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"space-candidate-layout mt-3 mb-3\"}),_vm._v(\" \"),_c('Experiences',{attrs:{\"candidate_id\":_vm.candidate.id,\"recruiter_id\":_vm.recruiter_id}}),_vm._v(\" \"),_c('div',{staticClass:\"space-candidate-layout mt-3 mb-3\"}),_vm._v(\" \"),_c('Education',{attrs:{\"candidate_id\":_vm.candidate.id}}),_vm._v(\" \"),_c('div',{staticClass:\"space-candidate-layout mt-3 mb-3\"}),_vm._v(\" \"),_c('Language',{attrs:{\"candidate_id\":_vm.candidate.id}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('Interview',{staticClass:\"hide\"}),_vm._v(\" \"),_c('DataCandidate',{attrs:{\"candidate_id\":_vm.candidate.id,\"candidate\":_vm.candidate}}),_vm._v(\" \"),_c('Applies',{attrs:{\"talent_banks_id\":_vm.candidate.talent_banks_id,\"candidates\":[_vm.candidate]}}),_vm._v(\" \"),_c('Comments',{attrs:{\"candidate_id\":_vm.candidate.id}}),_vm._v(\" \"),_c('Notes',{attrs:{\"candidate_id\":_vm.candidate.id}}),_vm._v(\" \"),_c('Files',{attrs:{\"candidate\":_vm.candidate}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CandidateLayout.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CandidateLayout.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n \n \n BIGFIVE COMPLETO\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./CandidateLayout.vue?vue&type=template&id=385bda9b&\"\nimport script from \"./CandidateLayout.vue?vue&type=script&lang=js&\"\nexport * from \"./CandidateLayout.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {\n switch (pattern) {\n case 'P':\n return formatLong.date({\n width: 'short'\n });\n case 'PP':\n return formatLong.date({\n width: 'medium'\n });\n case 'PPP':\n return formatLong.date({\n width: 'long'\n });\n case 'PPPP':\n default:\n return formatLong.date({\n width: 'full'\n });\n }\n};\nvar timeLongFormatter = function timeLongFormatter(pattern, formatLong) {\n switch (pattern) {\n case 'p':\n return formatLong.time({\n width: 'short'\n });\n case 'pp':\n return formatLong.time({\n width: 'medium'\n });\n case 'ppp':\n return formatLong.time({\n width: 'long'\n });\n case 'pppp':\n default:\n return formatLong.time({\n width: 'full'\n });\n }\n};\nvar dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {\n var matchResult = pattern.match(/(P+)(p+)?/) || [];\n var datePattern = matchResult[1];\n var timePattern = matchResult[2];\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n var dateTimeFormat;\n switch (datePattern) {\n case 'P':\n dateTimeFormat = formatLong.dateTime({\n width: 'short'\n });\n break;\n case 'PP':\n dateTimeFormat = formatLong.dateTime({\n width: 'medium'\n });\n break;\n case 'PPP':\n dateTimeFormat = formatLong.dateTime({\n width: 'long'\n });\n break;\n case 'PPPP':\n default:\n dateTimeFormat = formatLong.dateTime({\n width: 'full'\n });\n break;\n }\n return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));\n};\nvar longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter\n};\nexport default longFormatters;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.skills.length != 0),expression:\"skills.length != 0\"}],staticClass:\"full\"},[_c('table',{staticClass:\"table table-borderless\"},[_vm._m(0),_vm._v(\" \"),_c('tbody',_vm._l((_vm.skills),function(skill){return _c('tr',{key:skill.id,staticClass:\"h-auto\"},[_c('td',[_c('span',[_vm._v(_vm._s(skill.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('div',[_c('StarRating',{staticClass:\"d-inline-block\",attrs:{\"active-color\":\"#9472F8\",\"max-rating\":5,\"star-size\":18,\"show-rating\":false},on:{\"rating-selected\":function($event){return _vm.ratingSave(skill)}},model:{value:(skill.current_rating),callback:function ($$v) {_vm.$set(skill, \"current_rating\", $$v)},expression:\"skill.current_rating\"}})],1)]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('StarRating',{staticClass:\"d-inline-block\",attrs:{\"active-color\":\"#9472F8\",\"read-only\":true,\"d:max-rating\":\"5\",\"star-size\":18,\"show-rating\":false},model:{value:(skill.average),callback:function ($$v) {_vm.$set(skill, \"average\", $$v)},expression:\"skill.average\"}})],1)])}),0)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',{staticClass:\"font-weight-bold\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"HABILIDADES\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"AVALIE\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"MÉDIA\")])])])\n}]\n\nexport { render, staticRenderFns }","\n \n
Quadro geral de avaliações \n
\n
\n
\n \n \n Competência \n \n {{reference.reference_name}}\n \n Total \n \n \n \n \n \n {{ skill.name }}\n \n \n \n \n {{skill.total}} \n \n \n
\n
\n
\n \n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SkillRatingDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SkillRatingDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SkillRatingDetails.vue?vue&type=template&id=615b9185&\"\nimport script from \"./SkillRatingDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./SkillRatingDetails.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-5\"},[_c('span',{staticClass:\"color-primary font-medium col-12 center\"},[_vm._v(\"Quadro geral de avaliações\")]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"col-12 mt-3 table-responsive\"},[_c('table',{staticClass:\"table table-bordered\"},[_c('thead',[_c('tr',{staticClass:\"font-weight-bold\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"Competência\")]),_vm._v(\" \"),_vm._l((_vm.references),function(reference){return _c('td',{key:reference.reference_name,staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(reference.reference_name)+\"\\n \")])}),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Total\")])],2)]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.skills),function(skill){return _c('tr',{key:skill.id,staticClass:\"h-auto\"},[_c('th',{staticClass:\"center align-middle font-weight-normal\",attrs:{\"scope\":\"row\"}},[_vm._v(\"\\n \"+_vm._s(skill.name)+\"\\n \")]),_vm._v(\" \"),_vm._l((skill.avaliations),function(avaliation){return _c('td',{key:avaliation.id,staticClass:\"center align-middle\"},[_c('StarRating',{staticClass:\"d-inline-block\",attrs:{\"active-color\":\"#9472F8\",\"read-only\":true,\"max-rating\":5,\"star-size\":15},model:{value:(avaliation.rating),callback:function ($$v) {_vm.$set(avaliation, \"rating\", $$v)},expression:\"avaliation.rating\"}})],1)}),_vm._v(\" \"),_c('td',{staticClass:\"center align-middle\"},[_vm._v(_vm._s(skill.total))])],2)}),0)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n \n HABILIDADES \n AVALIE \n MÉDIA \n \n \n \n \n \n {{ skill.name }} \n \n \n \n \n
\n \n \n \n \n \n \n
\n
\n \n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CandidateSkillsRating.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CandidateSkillsRating.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CandidateSkillsRating.vue?vue&type=template&id=5e8e6bfb&\"\nimport script from \"./CandidateSkillsRating.vue?vue&type=script&lang=js&\"\nexport * from \"./CandidateSkillsRating.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h1',[_vm._v(\"\\n Campo de \"+_vm._s(_vm.entity_translate[this.entity])+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"NOME DO CAMPO\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold\",attrs:{\"type\":\"text\",\"field\":_vm.$v.field_mapping_entity.parameters.name},model:{value:(_vm.field_mapping_entity.parameters.name),callback:function ($$v) {_vm.$set(_vm.field_mapping_entity.parameters, \"name\", $$v)},expression:\"field_mapping_entity.parameters.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TIPO DO CAMPO\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.field_mapping_entity.parameters.type_field),expression:\"field_mapping_entity.parameters.type_field\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.field_mapping_entity.parameters, \"type_field\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"text\"}},[_vm._v(\"Texto\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"number\"}},[_vm._v(\"Número\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 mt-3 font-weight-bold\"},[_vm._v(\"Obrigatório\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.field_mapping_entity.parameters.required),expression:\"field_mapping_entity.parameters.required\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.field_mapping_entity.parameters, \"required\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":true}},[_vm._v(\"Sim\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":false}},[_vm._v(\"Não\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 mt-3 font-weight-bold\"},[_vm._v(\"ESCONDER\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.field_mapping_entity.hidden),expression:\"field_mapping_entity.hidden\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.field_mapping_entity, \"hidden\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":true}},[_vm._v(\"Sim\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":false}},[_vm._v(\"Não\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"VALOR PADRÃO\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold\",attrs:{\"type\":\"text\",\"field\":_vm.$v.field_mapping_entity.parameters.value_field},model:{value:(_vm.field_mapping_entity.parameters.value_field),callback:function ($$v) {_vm.$set(_vm.field_mapping_entity.parameters, \"value_field\", $$v)},expression:\"field_mapping_entity.parameters.value_field\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.save()}}},[_vm._v(\"\\n SALVAR\\n \")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n\n
\n Campo de {{entity_translate[this.entity]}}\n \n\n
\n
\n NOME DO CAMPO \n \n
\n\n
\n TIPO DO CAMPO \n \n Texto \n Número \n \n
\n\n
\n Obrigatório \n \n Sim \n Não \n \n
\n\n
\n ESCONDER \n \n Sim \n Não \n \n
\n\n
\n VALOR PADRÃO \n \n
\n
\n\n
\n
\n \n SALVAR\n \n
\n
\n\n
\n\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=6f8f52ca&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { stringToBytes, toUint8, bytesMatch, bytesToString, toHexString, padStart, bytesToNumber } from './byte-helpers.js';\nimport { getAvcCodec, getHvcCodec, getAv1Codec } from './codec-helpers.js';\nimport { parseOpusHead } from './opus-helpers.js';\nvar normalizePath = function normalizePath(path) {\n if (typeof path === 'string') {\n return stringToBytes(path);\n }\n if (typeof path === 'number') {\n return path;\n }\n return path;\n};\nvar normalizePaths = function normalizePaths(paths) {\n if (!Array.isArray(paths)) {\n return [normalizePath(paths)];\n }\n return paths.map(function (p) {\n return normalizePath(p);\n });\n};\nvar DESCRIPTORS;\nexport var parseDescriptors = function parseDescriptors(bytes) {\n bytes = toUint8(bytes);\n var results = [];\n var i = 0;\n while (bytes.length > i) {\n var tag = bytes[i];\n var size = 0;\n var headerSize = 0; // tag\n\n headerSize++;\n var byte = bytes[headerSize]; // first byte\n\n headerSize++;\n while (byte & 0x80) {\n size = (byte & 0x7F) << 7;\n byte = bytes[headerSize];\n headerSize++;\n }\n size += byte & 0x7F;\n for (var z = 0; z < DESCRIPTORS.length; z++) {\n var _DESCRIPTORS$z = DESCRIPTORS[z],\n id = _DESCRIPTORS$z.id,\n parser = _DESCRIPTORS$z.parser;\n if (tag === id) {\n results.push(parser(bytes.subarray(headerSize, headerSize + size)));\n break;\n }\n }\n i += size + headerSize;\n }\n return results;\n};\nDESCRIPTORS = [{\n id: 0x03,\n parser: function parser(bytes) {\n var desc = {\n tag: 0x03,\n id: bytes[0] << 8 | bytes[1],\n flags: bytes[2],\n size: 3,\n dependsOnEsId: 0,\n ocrEsId: 0,\n descriptors: [],\n url: ''\n }; // depends on es id\n\n if (desc.flags & 0x80) {\n desc.dependsOnEsId = bytes[desc.size] << 8 | bytes[desc.size + 1];\n desc.size += 2;\n } // url\n\n if (desc.flags & 0x40) {\n var len = bytes[desc.size];\n desc.url = bytesToString(bytes.subarray(desc.size + 1, desc.size + 1 + len));\n desc.size += len;\n } // ocr es id\n\n if (desc.flags & 0x20) {\n desc.ocrEsId = bytes[desc.size] << 8 | bytes[desc.size + 1];\n desc.size += 2;\n }\n desc.descriptors = parseDescriptors(bytes.subarray(desc.size)) || [];\n return desc;\n }\n}, {\n id: 0x04,\n parser: function parser(bytes) {\n // DecoderConfigDescriptor\n var desc = {\n tag: 0x04,\n oti: bytes[0],\n streamType: bytes[1],\n bufferSize: bytes[2] << 16 | bytes[3] << 8 | bytes[4],\n maxBitrate: bytes[5] << 24 | bytes[6] << 16 | bytes[7] << 8 | bytes[8],\n avgBitrate: bytes[9] << 24 | bytes[10] << 16 | bytes[11] << 8 | bytes[12],\n descriptors: parseDescriptors(bytes.subarray(13))\n };\n return desc;\n }\n}, {\n id: 0x05,\n parser: function parser(bytes) {\n // DecoderSpecificInfo\n return {\n tag: 0x05,\n bytes: bytes\n };\n }\n}, {\n id: 0x06,\n parser: function parser(bytes) {\n // SLConfigDescriptor\n return {\n tag: 0x06,\n bytes: bytes\n };\n }\n}];\n/**\n * find any number of boxes by name given a path to it in an iso bmff\n * such as mp4.\n *\n * @param {TypedArray} bytes\n * bytes for the iso bmff to search for boxes in\n *\n * @param {Uint8Array[]|string[]|string|Uint8Array} name\n * An array of paths or a single path representing the name\n * of boxes to search through in bytes. Paths may be\n * uint8 (character codes) or strings.\n *\n * @param {boolean} [complete=false]\n * Should we search only for complete boxes on the final path.\n * This is very useful when you do not want to get back partial boxes\n * in the case of streaming files.\n *\n * @return {Uint8Array[]}\n * An array of the end paths that we found.\n */\n\nexport var findBox = function findBox(bytes, paths, complete) {\n if (complete === void 0) {\n complete = false;\n }\n paths = normalizePaths(paths);\n bytes = toUint8(bytes);\n var results = [];\n if (!paths.length) {\n // short-circuit the search for empty paths\n return results;\n }\n var i = 0;\n while (i < bytes.length) {\n var size = (bytes[i] << 24 | bytes[i + 1] << 16 | bytes[i + 2] << 8 | bytes[i + 3]) >>> 0;\n var type = bytes.subarray(i + 4, i + 8); // invalid box format.\n\n if (size === 0) {\n break;\n }\n var end = i + size;\n if (end > bytes.length) {\n // this box is bigger than the number of bytes we have\n // and complete is set, we cannot find any more boxes.\n if (complete) {\n break;\n }\n end = bytes.length;\n }\n var data = bytes.subarray(i + 8, end);\n if (bytesMatch(type, paths[0])) {\n if (paths.length === 1) {\n // this is the end of the path and we've found the box we were\n // looking for\n results.push(data);\n } else {\n // recursively search for the next box along the path\n results.push.apply(results, findBox(data, paths.slice(1), complete));\n }\n }\n i = end;\n } // we've finished searching all of bytes\n\n return results;\n};\n/**\n * Search for a single matching box by name in an iso bmff format like\n * mp4. This function is useful for finding codec boxes which\n * can be placed arbitrarily in sample descriptions depending\n * on the version of the file or file type.\n *\n * @param {TypedArray} bytes\n * bytes for the iso bmff to search for boxes in\n *\n * @param {string|Uint8Array} name\n * The name of the box to find.\n *\n * @return {Uint8Array[]}\n * a subarray of bytes representing the name boxed we found.\n */\n\nexport var findNamedBox = function findNamedBox(bytes, name) {\n name = normalizePath(name);\n if (!name.length) {\n // short-circuit the search for empty paths\n return bytes.subarray(bytes.length);\n }\n var i = 0;\n while (i < bytes.length) {\n if (bytesMatch(bytes.subarray(i, i + name.length), name)) {\n var size = (bytes[i - 4] << 24 | bytes[i - 3] << 16 | bytes[i - 2] << 8 | bytes[i - 1]) >>> 0;\n var end = size > 1 ? i + size : bytes.byteLength;\n return bytes.subarray(i + 4, end);\n }\n i++;\n } // we've finished searching all of bytes\n\n return bytes.subarray(bytes.length);\n};\nvar parseSamples = function parseSamples(data, entrySize, parseEntry) {\n if (entrySize === void 0) {\n entrySize = 4;\n }\n if (parseEntry === void 0) {\n parseEntry = function parseEntry(d) {\n return bytesToNumber(d);\n };\n }\n var entries = [];\n if (!data || !data.length) {\n return entries;\n }\n var entryCount = bytesToNumber(data.subarray(4, 8));\n for (var i = 8; entryCount; i += entrySize, entryCount--) {\n entries.push(parseEntry(data.subarray(i, i + entrySize)));\n }\n return entries;\n};\nexport var buildFrameTable = function buildFrameTable(stbl, timescale) {\n var keySamples = parseSamples(findBox(stbl, ['stss'])[0]);\n var chunkOffsets = parseSamples(findBox(stbl, ['stco'])[0]);\n var timeToSamples = parseSamples(findBox(stbl, ['stts'])[0], 8, function (entry) {\n return {\n sampleCount: bytesToNumber(entry.subarray(0, 4)),\n sampleDelta: bytesToNumber(entry.subarray(4, 8))\n };\n });\n var samplesToChunks = parseSamples(findBox(stbl, ['stsc'])[0], 12, function (entry) {\n return {\n firstChunk: bytesToNumber(entry.subarray(0, 4)),\n samplesPerChunk: bytesToNumber(entry.subarray(4, 8)),\n sampleDescriptionIndex: bytesToNumber(entry.subarray(8, 12))\n };\n });\n var stsz = findBox(stbl, ['stsz'])[0]; // stsz starts with a 4 byte sampleSize which we don't need\n\n var sampleSizes = parseSamples(stsz && stsz.length && stsz.subarray(4) || null);\n var frames = [];\n for (var chunkIndex = 0; chunkIndex < chunkOffsets.length; chunkIndex++) {\n var samplesInChunk = void 0;\n for (var i = 0; i < samplesToChunks.length; i++) {\n var sampleToChunk = samplesToChunks[i];\n var isThisOne = chunkIndex + 1 >= sampleToChunk.firstChunk && (i + 1 >= samplesToChunks.length || chunkIndex + 1 < samplesToChunks[i + 1].firstChunk);\n if (isThisOne) {\n samplesInChunk = sampleToChunk.samplesPerChunk;\n break;\n }\n }\n var chunkOffset = chunkOffsets[chunkIndex];\n for (var _i = 0; _i < samplesInChunk; _i++) {\n var frameEnd = sampleSizes[frames.length]; // if we don't have key samples every frame is a keyframe\n\n var keyframe = !keySamples.length;\n if (keySamples.length && keySamples.indexOf(frames.length + 1) !== -1) {\n keyframe = true;\n }\n var frame = {\n keyframe: keyframe,\n start: chunkOffset,\n end: chunkOffset + frameEnd\n };\n for (var k = 0; k < timeToSamples.length; k++) {\n var _timeToSamples$k = timeToSamples[k],\n sampleCount = _timeToSamples$k.sampleCount,\n sampleDelta = _timeToSamples$k.sampleDelta;\n if (frames.length <= sampleCount) {\n // ms to ns\n var lastTimestamp = frames.length ? frames[frames.length - 1].timestamp : 0;\n frame.timestamp = lastTimestamp + sampleDelta / timescale * 1000;\n frame.duration = sampleDelta;\n break;\n }\n }\n frames.push(frame);\n chunkOffset += frameEnd;\n }\n }\n return frames;\n};\nexport var addSampleDescription = function addSampleDescription(track, bytes) {\n var codec = bytesToString(bytes.subarray(0, 4));\n if (track.type === 'video') {\n track.info = track.info || {};\n track.info.width = bytes[28] << 8 | bytes[29];\n track.info.height = bytes[30] << 8 | bytes[31];\n } else if (track.type === 'audio') {\n track.info = track.info || {};\n track.info.channels = bytes[20] << 8 | bytes[21];\n track.info.bitDepth = bytes[22] << 8 | bytes[23];\n track.info.sampleRate = bytes[28] << 8 | bytes[29];\n }\n if (codec === 'avc1') {\n var avcC = findNamedBox(bytes, 'avcC'); // AVCDecoderConfigurationRecord\n\n codec += \".\" + getAvcCodec(avcC);\n track.info.avcC = avcC; // TODO: do we need to parse all this?\n\n /* {\n configurationVersion: avcC[0],\n profile: avcC[1],\n profileCompatibility: avcC[2],\n level: avcC[3],\n lengthSizeMinusOne: avcC[4] & 0x3\n };\n let spsNalUnitCount = avcC[5] & 0x1F;\n const spsNalUnits = track.info.avc.spsNalUnits = [];\n // past spsNalUnitCount\n let offset = 6;\n while (spsNalUnitCount--) {\n const nalLen = avcC[offset] << 8 | avcC[offset + 1];\n spsNalUnits.push(avcC.subarray(offset + 2, offset + 2 + nalLen));\n offset += nalLen + 2;\n }\n let ppsNalUnitCount = avcC[offset];\n const ppsNalUnits = track.info.avc.ppsNalUnits = [];\n // past ppsNalUnitCount\n offset += 1;\n while (ppsNalUnitCount--) {\n const nalLen = avcC[offset] << 8 | avcC[offset + 1];\n ppsNalUnits.push(avcC.subarray(offset + 2, offset + 2 + nalLen));\n offset += nalLen + 2;\n }*/\n // HEVCDecoderConfigurationRecord\n } else if (codec === 'hvc1' || codec === 'hev1') {\n codec += \".\" + getHvcCodec(findNamedBox(bytes, 'hvcC'));\n } else if (codec === 'mp4a' || codec === 'mp4v') {\n var esds = findNamedBox(bytes, 'esds');\n var esDescriptor = parseDescriptors(esds.subarray(4))[0];\n var decoderConfig = esDescriptor && esDescriptor.descriptors.filter(function (_ref) {\n var tag = _ref.tag;\n return tag === 0x04;\n })[0];\n if (decoderConfig) {\n // most codecs do not have a further '.'\n // such as 0xa5 for ac-3 and 0xa6 for e-ac-3\n codec += '.' + toHexString(decoderConfig.oti);\n if (decoderConfig.oti === 0x40) {\n codec += '.' + (decoderConfig.descriptors[0].bytes[0] >> 3).toString();\n } else if (decoderConfig.oti === 0x20) {\n codec += '.' + decoderConfig.descriptors[0].bytes[4].toString();\n } else if (decoderConfig.oti === 0xdd) {\n codec = 'vorbis';\n }\n } else if (track.type === 'audio') {\n codec += '.40.2';\n } else {\n codec += '.20.9';\n }\n } else if (codec === 'av01') {\n // AV1DecoderConfigurationRecord\n codec += \".\" + getAv1Codec(findNamedBox(bytes, 'av1C'));\n } else if (codec === 'vp09') {\n // VPCodecConfigurationRecord\n var vpcC = findNamedBox(bytes, 'vpcC'); // https://www.webmproject.org/vp9/mp4/\n\n var profile = vpcC[0];\n var level = vpcC[1];\n var bitDepth = vpcC[2] >> 4;\n var chromaSubsampling = (vpcC[2] & 0x0F) >> 1;\n var videoFullRangeFlag = (vpcC[2] & 0x0F) >> 3;\n var colourPrimaries = vpcC[3];\n var transferCharacteristics = vpcC[4];\n var matrixCoefficients = vpcC[5];\n codec += \".\" + padStart(profile, 2, '0');\n codec += \".\" + padStart(level, 2, '0');\n codec += \".\" + padStart(bitDepth, 2, '0');\n codec += \".\" + padStart(chromaSubsampling, 2, '0');\n codec += \".\" + padStart(colourPrimaries, 2, '0');\n codec += \".\" + padStart(transferCharacteristics, 2, '0');\n codec += \".\" + padStart(matrixCoefficients, 2, '0');\n codec += \".\" + padStart(videoFullRangeFlag, 2, '0');\n } else if (codec === 'theo') {\n codec = 'theora';\n } else if (codec === 'spex') {\n codec = 'speex';\n } else if (codec === '.mp3') {\n codec = 'mp4a.40.34';\n } else if (codec === 'msVo') {\n codec = 'vorbis';\n } else if (codec === 'Opus') {\n codec = 'opus';\n var dOps = findNamedBox(bytes, 'dOps');\n track.info.opus = parseOpusHead(dOps); // TODO: should this go into the webm code??\n // Firefox requires a codecDelay for opus playback\n // see https://bugzilla.mozilla.org/show_bug.cgi?id=1276238\n\n track.info.codecDelay = 6500000;\n } else {\n codec = codec.toLowerCase();\n }\n /* eslint-enable */\n // flac, ac-3, ec-3, opus\n\n track.codec = codec;\n};\nexport var parseTracks = function parseTracks(bytes, frameTable) {\n if (frameTable === void 0) {\n frameTable = true;\n }\n bytes = toUint8(bytes);\n var traks = findBox(bytes, ['moov', 'trak'], true);\n var tracks = [];\n traks.forEach(function (trak) {\n var track = {\n bytes: trak\n };\n var mdia = findBox(trak, ['mdia'])[0];\n var hdlr = findBox(mdia, ['hdlr'])[0];\n var trakType = bytesToString(hdlr.subarray(8, 12));\n if (trakType === 'soun') {\n track.type = 'audio';\n } else if (trakType === 'vide') {\n track.type = 'video';\n } else {\n track.type = trakType;\n }\n var tkhd = findBox(trak, ['tkhd'])[0];\n if (tkhd) {\n var view = new DataView(tkhd.buffer, tkhd.byteOffset, tkhd.byteLength);\n var tkhdVersion = view.getUint8(0);\n track.number = tkhdVersion === 0 ? view.getUint32(12) : view.getUint32(20);\n }\n var mdhd = findBox(mdia, ['mdhd'])[0];\n if (mdhd) {\n // mdhd is a FullBox, meaning it will have its own version as the first byte\n var version = mdhd[0];\n var index = version === 0 ? 12 : 20;\n track.timescale = (mdhd[index] << 24 | mdhd[index + 1] << 16 | mdhd[index + 2] << 8 | mdhd[index + 3]) >>> 0;\n }\n var stbl = findBox(mdia, ['minf', 'stbl'])[0];\n var stsd = findBox(stbl, ['stsd'])[0];\n var descriptionCount = bytesToNumber(stsd.subarray(4, 8));\n var offset = 8; // add codec and codec info\n\n while (descriptionCount--) {\n var len = bytesToNumber(stsd.subarray(offset, offset + 4));\n var sampleDescriptor = stsd.subarray(offset + 4, offset + 4 + len);\n addSampleDescription(track, sampleDescriptor);\n offset += 4 + len;\n }\n if (frameTable) {\n track.frameTable = buildFrameTable(stbl, track.timescale);\n } // codec has no sub parameters\n\n tracks.push(track);\n });\n return tracks;\n};\nexport var parseMediaInfo = function parseMediaInfo(bytes) {\n var mvhd = findBox(bytes, ['moov', 'mvhd'], true)[0];\n if (!mvhd || !mvhd.length) {\n return;\n }\n var info = {}; // ms to ns\n // mvhd v1 has 8 byte duration and other fields too\n\n if (mvhd[0] === 1) {\n info.timestampScale = bytesToNumber(mvhd.subarray(20, 24));\n info.duration = bytesToNumber(mvhd.subarray(24, 32));\n } else {\n info.timestampScale = bytesToNumber(mvhd.subarray(12, 16));\n info.duration = bytesToNumber(mvhd.subarray(16, 20));\n }\n info.bytes = mvhd;\n return info;\n};","export var OPUS_HEAD = new Uint8Array([\n// O, p, u, s\n0x4f, 0x70, 0x75, 0x73,\n// H, e, a, d\n0x48, 0x65, 0x61, 0x64]); // https://wiki.xiph.org/OggOpus\n// https://vfrmaniac.fushizen.eu/contents/opus_in_isobmff.html\n// https://opus-codec.org/docs/opusfile_api-0.7/structOpusHead.html\n\nexport var parseOpusHead = function parseOpusHead(bytes) {\n var view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);\n var version = view.getUint8(0); // version 0, from mp4, does not use littleEndian.\n\n var littleEndian = version !== 0;\n var config = {\n version: version,\n channels: view.getUint8(1),\n preSkip: view.getUint16(2, littleEndian),\n sampleRate: view.getUint32(4, littleEndian),\n outputGain: view.getUint16(8, littleEndian),\n channelMappingFamily: view.getUint8(10)\n };\n if (config.channelMappingFamily > 0 && bytes.length > 10) {\n config.streamCount = view.getUint8(11);\n config.twoChannelStreamCount = view.getUint8(12);\n config.channelMapping = [];\n for (var c = 0; c < config.channels; c++) {\n config.channelMapping.push(view.getUint8(13 + c));\n }\n }\n return config;\n};\nexport var setOpusHead = function setOpusHead(config) {\n var size = config.channelMappingFamily <= 0 ? 11 : 12 + config.channels;\n var view = new DataView(new ArrayBuffer(size));\n var littleEndian = config.version !== 0;\n view.setUint8(0, config.version);\n view.setUint8(1, config.channels);\n view.setUint16(2, config.preSkip, littleEndian);\n view.setUint32(4, config.sampleRate, littleEndian);\n view.setUint16(8, config.outputGain, littleEndian);\n view.setUint8(10, config.channelMappingFamily);\n if (config.channelMappingFamily > 0) {\n view.setUint8(11, config.streamCount);\n config.channelMapping.foreach(function (cm, i) {\n view.setUint8(12 + i, cm);\n });\n }\n return new Uint8Array(view.buffer);\n};","import { toUint8, bytesToNumber, bytesMatch, bytesToString, numberToBytes, padStart } from './byte-helpers';\nimport { getAvcCodec, getHvcCodec, getAv1Codec } from './codec-helpers.js'; // relevant specs for this parser:\n// https://matroska-org.github.io/libebml/specs.html\n// https://www.matroska.org/technical/elements.html\n// https://www.webmproject.org/docs/container/\n\nexport var EBML_TAGS = {\n EBML: toUint8([0x1A, 0x45, 0xDF, 0xA3]),\n DocType: toUint8([0x42, 0x82]),\n Segment: toUint8([0x18, 0x53, 0x80, 0x67]),\n SegmentInfo: toUint8([0x15, 0x49, 0xA9, 0x66]),\n Tracks: toUint8([0x16, 0x54, 0xAE, 0x6B]),\n Track: toUint8([0xAE]),\n TrackNumber: toUint8([0xd7]),\n DefaultDuration: toUint8([0x23, 0xe3, 0x83]),\n TrackEntry: toUint8([0xAE]),\n TrackType: toUint8([0x83]),\n FlagDefault: toUint8([0x88]),\n CodecID: toUint8([0x86]),\n CodecPrivate: toUint8([0x63, 0xA2]),\n VideoTrack: toUint8([0xe0]),\n AudioTrack: toUint8([0xe1]),\n // Not used yet, but will be used for live webm/mkv\n // see https://www.matroska.org/technical/basics.html#block-structure\n // see https://www.matroska.org/technical/basics.html#simpleblock-structure\n Cluster: toUint8([0x1F, 0x43, 0xB6, 0x75]),\n Timestamp: toUint8([0xE7]),\n TimestampScale: toUint8([0x2A, 0xD7, 0xB1]),\n BlockGroup: toUint8([0xA0]),\n BlockDuration: toUint8([0x9B]),\n Block: toUint8([0xA1]),\n SimpleBlock: toUint8([0xA3])\n};\n/**\n * This is a simple table to determine the length\n * of things in ebml. The length is one based (starts at 1,\n * rather than zero) and for every zero bit before a one bit\n * we add one to length. We also need this table because in some\n * case we have to xor all the length bits from another value.\n */\n\nvar LENGTH_TABLE = [128, 64, 32, 16, 8, 4, 2, 1];\nvar getLength = function getLength(byte) {\n var len = 1;\n for (var i = 0; i < LENGTH_TABLE.length; i++) {\n if (byte & LENGTH_TABLE[i]) {\n break;\n }\n len++;\n }\n return len;\n}; // length in ebml is stored in the first 4 to 8 bits\n// of the first byte. 4 for the id length and 8 for the\n// data size length. Length is measured by converting the number to binary\n// then 1 + the number of zeros before a 1 is encountered starting\n// from the left.\n\nvar getvint = function getvint(bytes, offset, removeLength, signed) {\n if (removeLength === void 0) {\n removeLength = true;\n }\n if (signed === void 0) {\n signed = false;\n }\n var length = getLength(bytes[offset]);\n var valueBytes = bytes.subarray(offset, offset + length); // NOTE that we do **not** subarray here because we need to copy these bytes\n // as they will be modified below to remove the dataSizeLen bits and we do not\n // want to modify the original data. normally we could just call slice on\n // uint8array but ie 11 does not support that...\n\n if (removeLength) {\n valueBytes = Array.prototype.slice.call(bytes, offset, offset + length);\n valueBytes[0] ^= LENGTH_TABLE[length - 1];\n }\n return {\n length: length,\n value: bytesToNumber(valueBytes, {\n signed: signed\n }),\n bytes: valueBytes\n };\n};\nvar normalizePath = function normalizePath(path) {\n if (typeof path === 'string') {\n return path.match(/.{1,2}/g).map(function (p) {\n return normalizePath(p);\n });\n }\n if (typeof path === 'number') {\n return numberToBytes(path);\n }\n return path;\n};\nvar normalizePaths = function normalizePaths(paths) {\n if (!Array.isArray(paths)) {\n return [normalizePath(paths)];\n }\n return paths.map(function (p) {\n return normalizePath(p);\n });\n};\nvar getInfinityDataSize = function getInfinityDataSize(id, bytes, offset) {\n if (offset >= bytes.length) {\n return bytes.length;\n }\n var innerid = getvint(bytes, offset, false);\n if (bytesMatch(id.bytes, innerid.bytes)) {\n return offset;\n }\n var dataHeader = getvint(bytes, offset + innerid.length);\n return getInfinityDataSize(id, bytes, offset + dataHeader.length + dataHeader.value + innerid.length);\n};\n/**\n * Notes on the EBLM format.\n *\n * EBLM uses \"vints\" tags. Every vint tag contains\n * two parts\n *\n * 1. The length from the first byte. You get this by\n * converting the byte to binary and counting the zeros\n * before a 1. Then you add 1 to that. Examples\n * 00011111 = length 4 because there are 3 zeros before a 1.\n * 00100000 = length 3 because there are 2 zeros before a 1.\n * 00000011 = length 7 because there are 6 zeros before a 1.\n *\n * 2. The bits used for length are removed from the first byte\n * Then all the bytes are merged into a value. NOTE: this\n * is not the case for id ebml tags as there id includes\n * length bits.\n *\n */\n\nexport var findEbml = function findEbml(bytes, paths) {\n paths = normalizePaths(paths);\n bytes = toUint8(bytes);\n var results = [];\n if (!paths.length) {\n return results;\n }\n var i = 0;\n while (i < bytes.length) {\n var id = getvint(bytes, i, false);\n var dataHeader = getvint(bytes, i + id.length);\n var dataStart = i + id.length + dataHeader.length; // dataSize is unknown or this is a live stream\n\n if (dataHeader.value === 0x7f) {\n dataHeader.value = getInfinityDataSize(id, bytes, dataStart);\n if (dataHeader.value !== bytes.length) {\n dataHeader.value -= dataStart;\n }\n }\n var dataEnd = dataStart + dataHeader.value > bytes.length ? bytes.length : dataStart + dataHeader.value;\n var data = bytes.subarray(dataStart, dataEnd);\n if (bytesMatch(paths[0], id.bytes)) {\n if (paths.length === 1) {\n // this is the end of the paths and we've found the tag we were\n // looking for\n results.push(data);\n } else {\n // recursively search for the next tag inside of the data\n // of this one\n results = results.concat(findEbml(data, paths.slice(1)));\n }\n }\n var totalLength = id.length + dataHeader.length + data.length; // move past this tag entirely, we are not looking for it\n\n i += totalLength;\n }\n return results;\n}; // see https://www.matroska.org/technical/basics.html#block-structure\n\nexport var decodeBlock = function decodeBlock(block, type, timestampScale, clusterTimestamp) {\n var duration;\n if (type === 'group') {\n duration = findEbml(block, [EBML_TAGS.BlockDuration])[0];\n if (duration) {\n duration = bytesToNumber(duration);\n duration = 1 / timestampScale * duration * timestampScale / 1000;\n }\n block = findEbml(block, [EBML_TAGS.Block])[0];\n type = 'block'; // treat data as a block after this point\n }\n\n var dv = new DataView(block.buffer, block.byteOffset, block.byteLength);\n var trackNumber = getvint(block, 0);\n var timestamp = dv.getInt16(trackNumber.length, false);\n var flags = block[trackNumber.length + 2];\n var data = block.subarray(trackNumber.length + 3); // pts/dts in seconds\n\n var ptsdts = 1 / timestampScale * (clusterTimestamp + timestamp) * timestampScale / 1000; // return the frame\n\n var parsed = {\n duration: duration,\n trackNumber: trackNumber.value,\n keyframe: type === 'simple' && flags >> 7 === 1,\n invisible: (flags & 0x08) >> 3 === 1,\n lacing: (flags & 0x06) >> 1,\n discardable: type === 'simple' && (flags & 0x01) === 1,\n frames: [],\n pts: ptsdts,\n dts: ptsdts,\n timestamp: timestamp\n };\n if (!parsed.lacing) {\n parsed.frames.push(data);\n return parsed;\n }\n var numberOfFrames = data[0] + 1;\n var frameSizes = [];\n var offset = 1; // Fixed\n\n if (parsed.lacing === 2) {\n var sizeOfFrame = (data.length - offset) / numberOfFrames;\n for (var i = 0; i < numberOfFrames; i++) {\n frameSizes.push(sizeOfFrame);\n }\n } // xiph\n\n if (parsed.lacing === 1) {\n for (var _i = 0; _i < numberOfFrames - 1; _i++) {\n var size = 0;\n do {\n size += data[offset];\n offset++;\n } while (data[offset - 1] === 0xFF);\n frameSizes.push(size);\n }\n } // ebml\n\n if (parsed.lacing === 3) {\n // first vint is unsinged\n // after that vints are singed and\n // based on a compounding size\n var _size = 0;\n for (var _i2 = 0; _i2 < numberOfFrames - 1; _i2++) {\n var vint = _i2 === 0 ? getvint(data, offset) : getvint(data, offset, true, true);\n _size += vint.value;\n frameSizes.push(_size);\n offset += vint.length;\n }\n }\n frameSizes.forEach(function (size) {\n parsed.frames.push(data.subarray(offset, offset + size));\n offset += size;\n });\n return parsed;\n}; // VP9 Codec Feature Metadata (CodecPrivate)\n// https://www.webmproject.org/docs/container/\n\nvar parseVp9Private = function parseVp9Private(bytes) {\n var i = 0;\n var params = {};\n while (i < bytes.length) {\n var id = bytes[i] & 0x7f;\n var len = bytes[i + 1];\n var val = void 0;\n if (len === 1) {\n val = bytes[i + 2];\n } else {\n val = bytes.subarray(i + 2, i + 2 + len);\n }\n if (id === 1) {\n params.profile = val;\n } else if (id === 2) {\n params.level = val;\n } else if (id === 3) {\n params.bitDepth = val;\n } else if (id === 4) {\n params.chromaSubsampling = val;\n } else {\n params[id] = val;\n }\n i += 2 + len;\n }\n return params;\n};\nexport var parseTracks = function parseTracks(bytes) {\n bytes = toUint8(bytes);\n var decodedTracks = [];\n var tracks = findEbml(bytes, [EBML_TAGS.Segment, EBML_TAGS.Tracks, EBML_TAGS.Track]);\n if (!tracks.length) {\n tracks = findEbml(bytes, [EBML_TAGS.Tracks, EBML_TAGS.Track]);\n }\n if (!tracks.length) {\n tracks = findEbml(bytes, [EBML_TAGS.Track]);\n }\n if (!tracks.length) {\n return decodedTracks;\n }\n tracks.forEach(function (track) {\n var trackType = findEbml(track, EBML_TAGS.TrackType)[0];\n if (!trackType || !trackType.length) {\n return;\n } // 1 is video, 2 is audio, 17 is subtitle\n // other values are unimportant in this context\n\n if (trackType[0] === 1) {\n trackType = 'video';\n } else if (trackType[0] === 2) {\n trackType = 'audio';\n } else if (trackType[0] === 17) {\n trackType = 'subtitle';\n } else {\n return;\n } // todo parse language\n\n var decodedTrack = {\n rawCodec: bytesToString(findEbml(track, [EBML_TAGS.CodecID])[0]),\n type: trackType,\n codecPrivate: findEbml(track, [EBML_TAGS.CodecPrivate])[0],\n number: bytesToNumber(findEbml(track, [EBML_TAGS.TrackNumber])[0]),\n defaultDuration: bytesToNumber(findEbml(track, [EBML_TAGS.DefaultDuration])[0]),\n default: findEbml(track, [EBML_TAGS.FlagDefault])[0],\n rawData: track\n };\n var codec = '';\n if (/V_MPEG4\\/ISO\\/AVC/.test(decodedTrack.rawCodec)) {\n codec = \"avc1.\" + getAvcCodec(decodedTrack.codecPrivate);\n } else if (/V_MPEGH\\/ISO\\/HEVC/.test(decodedTrack.rawCodec)) {\n codec = \"hev1.\" + getHvcCodec(decodedTrack.codecPrivate);\n } else if (/V_MPEG4\\/ISO\\/ASP/.test(decodedTrack.rawCodec)) {\n if (decodedTrack.codecPrivate) {\n codec = 'mp4v.20.' + decodedTrack.codecPrivate[4].toString();\n } else {\n codec = 'mp4v.20.9';\n }\n } else if (/^V_THEORA/.test(decodedTrack.rawCodec)) {\n codec = 'theora';\n } else if (/^V_VP8/.test(decodedTrack.rawCodec)) {\n codec = 'vp8';\n } else if (/^V_VP9/.test(decodedTrack.rawCodec)) {\n if (decodedTrack.codecPrivate) {\n var _parseVp9Private = parseVp9Private(decodedTrack.codecPrivate),\n profile = _parseVp9Private.profile,\n level = _parseVp9Private.level,\n bitDepth = _parseVp9Private.bitDepth,\n chromaSubsampling = _parseVp9Private.chromaSubsampling;\n codec = 'vp09.';\n codec += padStart(profile, 2, '0') + \".\";\n codec += padStart(level, 2, '0') + \".\";\n codec += padStart(bitDepth, 2, '0') + \".\";\n codec += \"\" + padStart(chromaSubsampling, 2, '0'); // Video -> Colour -> Ebml name\n\n var matrixCoefficients = findEbml(track, [0xE0, [0x55, 0xB0], [0x55, 0xB1]])[0] || [];\n var videoFullRangeFlag = findEbml(track, [0xE0, [0x55, 0xB0], [0x55, 0xB9]])[0] || [];\n var transferCharacteristics = findEbml(track, [0xE0, [0x55, 0xB0], [0x55, 0xBA]])[0] || [];\n var colourPrimaries = findEbml(track, [0xE0, [0x55, 0xB0], [0x55, 0xBB]])[0] || []; // if we find any optional codec parameter specify them all.\n\n if (matrixCoefficients.length || videoFullRangeFlag.length || transferCharacteristics.length || colourPrimaries.length) {\n codec += \".\" + padStart(colourPrimaries[0], 2, '0');\n codec += \".\" + padStart(transferCharacteristics[0], 2, '0');\n codec += \".\" + padStart(matrixCoefficients[0], 2, '0');\n codec += \".\" + padStart(videoFullRangeFlag[0], 2, '0');\n }\n } else {\n codec = 'vp9';\n }\n } else if (/^V_AV1/.test(decodedTrack.rawCodec)) {\n codec = \"av01.\" + getAv1Codec(decodedTrack.codecPrivate);\n } else if (/A_ALAC/.test(decodedTrack.rawCodec)) {\n codec = 'alac';\n } else if (/A_MPEG\\/L2/.test(decodedTrack.rawCodec)) {\n codec = 'mp2';\n } else if (/A_MPEG\\/L3/.test(decodedTrack.rawCodec)) {\n codec = 'mp3';\n } else if (/^A_AAC/.test(decodedTrack.rawCodec)) {\n if (decodedTrack.codecPrivate) {\n codec = 'mp4a.40.' + (decodedTrack.codecPrivate[0] >>> 3).toString();\n } else {\n codec = 'mp4a.40.2';\n }\n } else if (/^A_AC3/.test(decodedTrack.rawCodec)) {\n codec = 'ac-3';\n } else if (/^A_PCM/.test(decodedTrack.rawCodec)) {\n codec = 'pcm';\n } else if (/^A_MS\\/ACM/.test(decodedTrack.rawCodec)) {\n codec = 'speex';\n } else if (/^A_EAC3/.test(decodedTrack.rawCodec)) {\n codec = 'ec-3';\n } else if (/^A_VORBIS/.test(decodedTrack.rawCodec)) {\n codec = 'vorbis';\n } else if (/^A_FLAC/.test(decodedTrack.rawCodec)) {\n codec = 'flac';\n } else if (/^A_OPUS/.test(decodedTrack.rawCodec)) {\n codec = 'opus';\n }\n decodedTrack.codec = codec;\n decodedTracks.push(decodedTrack);\n });\n return decodedTracks.sort(function (a, b) {\n return a.number - b.number;\n });\n};\nexport var parseData = function parseData(data, tracks) {\n var allBlocks = [];\n var segment = findEbml(data, [EBML_TAGS.Segment])[0];\n var timestampScale = findEbml(segment, [EBML_TAGS.SegmentInfo, EBML_TAGS.TimestampScale])[0]; // in nanoseconds, defaults to 1ms\n\n if (timestampScale && timestampScale.length) {\n timestampScale = bytesToNumber(timestampScale);\n } else {\n timestampScale = 1000000;\n }\n var clusters = findEbml(segment, [EBML_TAGS.Cluster]);\n if (!tracks) {\n tracks = parseTracks(segment);\n }\n clusters.forEach(function (cluster, ci) {\n var simpleBlocks = findEbml(cluster, [EBML_TAGS.SimpleBlock]).map(function (b) {\n return {\n type: 'simple',\n data: b\n };\n });\n var blockGroups = findEbml(cluster, [EBML_TAGS.BlockGroup]).map(function (b) {\n return {\n type: 'group',\n data: b\n };\n });\n var timestamp = findEbml(cluster, [EBML_TAGS.Timestamp])[0] || 0;\n if (timestamp && timestamp.length) {\n timestamp = bytesToNumber(timestamp);\n } // get all blocks then sort them into the correct order\n\n var blocks = simpleBlocks.concat(blockGroups).sort(function (a, b) {\n return a.data.byteOffset - b.data.byteOffset;\n });\n blocks.forEach(function (block, bi) {\n var decoded = decodeBlock(block.data, block.type, timestampScale, timestamp);\n allBlocks.push(decoded);\n });\n });\n return {\n tracks: tracks,\n blocks: allBlocks\n };\n};","import { bytesMatch, toUint8 } from './byte-helpers.js';\nexport var NAL_TYPE_ONE = toUint8([0x00, 0x00, 0x00, 0x01]);\nexport var NAL_TYPE_TWO = toUint8([0x00, 0x00, 0x01]);\nexport var EMULATION_PREVENTION = toUint8([0x00, 0x00, 0x03]);\n/**\n * Expunge any \"Emulation Prevention\" bytes from a \"Raw Byte\n * Sequence Payload\"\n *\n * @param data {Uint8Array} the bytes of a RBSP from a NAL\n * unit\n * @return {Uint8Array} the RBSP without any Emulation\n * Prevention Bytes\n */\n\nexport var discardEmulationPreventionBytes = function discardEmulationPreventionBytes(bytes) {\n var positions = [];\n var i = 1; // Find all `Emulation Prevention Bytes`\n\n while (i < bytes.length - 2) {\n if (bytesMatch(bytes.subarray(i, i + 3), EMULATION_PREVENTION)) {\n positions.push(i + 2);\n i++;\n }\n i++;\n } // If no Emulation Prevention Bytes were found just return the original\n // array\n\n if (positions.length === 0) {\n return bytes;\n } // Create a new array to hold the NAL unit data\n\n var newLength = bytes.length - positions.length;\n var newData = new Uint8Array(newLength);\n var sourceIndex = 0;\n for (i = 0; i < newLength; sourceIndex++, i++) {\n if (sourceIndex === positions[0]) {\n // Skip this byte\n sourceIndex++; // Remove this position index\n\n positions.shift();\n }\n newData[i] = bytes[sourceIndex];\n }\n return newData;\n};\nexport var findNal = function findNal(bytes, dataType, types, nalLimit) {\n if (nalLimit === void 0) {\n nalLimit = Infinity;\n }\n bytes = toUint8(bytes);\n types = [].concat(types);\n var i = 0;\n var nalStart;\n var nalsFound = 0; // keep searching until:\n // we reach the end of bytes\n // we reach the maximum number of nals they want to seach\n // NOTE: that we disregard nalLimit when we have found the start\n // of the nal we want so that we can find the end of the nal we want.\n\n while (i < bytes.length && (nalsFound < nalLimit || nalStart)) {\n var nalOffset = void 0;\n if (bytesMatch(bytes.subarray(i), NAL_TYPE_ONE)) {\n nalOffset = 4;\n } else if (bytesMatch(bytes.subarray(i), NAL_TYPE_TWO)) {\n nalOffset = 3;\n } // we are unsynced,\n // find the next nal unit\n\n if (!nalOffset) {\n i++;\n continue;\n }\n nalsFound++;\n if (nalStart) {\n return discardEmulationPreventionBytes(bytes.subarray(nalStart, i));\n }\n var nalType = void 0;\n if (dataType === 'h264') {\n nalType = bytes[i + nalOffset] & 0x1f;\n } else if (dataType === 'h265') {\n nalType = bytes[i + nalOffset] >> 1 & 0x3f;\n }\n if (types.indexOf(nalType) !== -1) {\n nalStart = i + nalOffset;\n } // nal header is 1 length for h264, and 2 for h265\n\n i += nalOffset + (dataType === 'h264' ? 1 : 2);\n }\n return bytes.subarray(0, 0);\n};\nexport var findH264Nal = function findH264Nal(bytes, type, nalLimit) {\n return findNal(bytes, 'h264', type, nalLimit);\n};\nexport var findH265Nal = function findH265Nal(bytes, type, nalLimit) {\n return findNal(bytes, 'h265', type, nalLimit);\n};","import { toUint8, bytesMatch } from './byte-helpers.js';\nimport { findBox } from './mp4-helpers.js';\nimport { findEbml, EBML_TAGS } from './ebml-helpers.js';\nimport { getId3Offset } from './id3-helpers.js';\nimport { findH264Nal, findH265Nal } from './nal-helpers.js';\nvar CONSTANTS = {\n // \"webm\" string literal in hex\n 'webm': toUint8([0x77, 0x65, 0x62, 0x6d]),\n // \"matroska\" string literal in hex\n 'matroska': toUint8([0x6d, 0x61, 0x74, 0x72, 0x6f, 0x73, 0x6b, 0x61]),\n // \"fLaC\" string literal in hex\n 'flac': toUint8([0x66, 0x4c, 0x61, 0x43]),\n // \"OggS\" string literal in hex\n 'ogg': toUint8([0x4f, 0x67, 0x67, 0x53]),\n // ac-3 sync byte, also works for ec-3 as that is simply a codec\n // of ac-3\n 'ac3': toUint8([0x0b, 0x77]),\n // \"RIFF\" string literal in hex used for wav and avi\n 'riff': toUint8([0x52, 0x49, 0x46, 0x46]),\n // \"AVI\" string literal in hex\n 'avi': toUint8([0x41, 0x56, 0x49]),\n // \"WAVE\" string literal in hex\n 'wav': toUint8([0x57, 0x41, 0x56, 0x45]),\n // \"ftyp3g\" string literal in hex\n '3gp': toUint8([0x66, 0x74, 0x79, 0x70, 0x33, 0x67]),\n // \"ftyp\" string literal in hex\n 'mp4': toUint8([0x66, 0x74, 0x79, 0x70]),\n // \"styp\" string literal in hex\n 'fmp4': toUint8([0x73, 0x74, 0x79, 0x70]),\n // \"ftypqt\" string literal in hex\n 'mov': toUint8([0x66, 0x74, 0x79, 0x70, 0x71, 0x74]),\n // moov string literal in hex\n 'moov': toUint8([0x6D, 0x6F, 0x6F, 0x76]),\n // moof string literal in hex\n 'moof': toUint8([0x6D, 0x6F, 0x6F, 0x66])\n};\nvar _isLikely = {\n aac: function aac(bytes) {\n var offset = getId3Offset(bytes);\n return bytesMatch(bytes, [0xFF, 0x10], {\n offset: offset,\n mask: [0xFF, 0x16]\n });\n },\n mp3: function mp3(bytes) {\n var offset = getId3Offset(bytes);\n return bytesMatch(bytes, [0xFF, 0x02], {\n offset: offset,\n mask: [0xFF, 0x06]\n });\n },\n webm: function webm(bytes) {\n var docType = findEbml(bytes, [EBML_TAGS.EBML, EBML_TAGS.DocType])[0]; // check if DocType EBML tag is webm\n\n return bytesMatch(docType, CONSTANTS.webm);\n },\n mkv: function mkv(bytes) {\n var docType = findEbml(bytes, [EBML_TAGS.EBML, EBML_TAGS.DocType])[0]; // check if DocType EBML tag is matroska\n\n return bytesMatch(docType, CONSTANTS.matroska);\n },\n mp4: function mp4(bytes) {\n // if this file is another base media file format, it is not mp4\n if (_isLikely['3gp'](bytes) || _isLikely.mov(bytes)) {\n return false;\n } // if this file starts with a ftyp or styp box its mp4\n\n if (bytesMatch(bytes, CONSTANTS.mp4, {\n offset: 4\n }) || bytesMatch(bytes, CONSTANTS.fmp4, {\n offset: 4\n })) {\n return true;\n } // if this file starts with a moof/moov box its mp4\n\n if (bytesMatch(bytes, CONSTANTS.moof, {\n offset: 4\n }) || bytesMatch(bytes, CONSTANTS.moov, {\n offset: 4\n })) {\n return true;\n }\n },\n mov: function mov(bytes) {\n return bytesMatch(bytes, CONSTANTS.mov, {\n offset: 4\n });\n },\n '3gp': function gp(bytes) {\n return bytesMatch(bytes, CONSTANTS['3gp'], {\n offset: 4\n });\n },\n ac3: function ac3(bytes) {\n var offset = getId3Offset(bytes);\n return bytesMatch(bytes, CONSTANTS.ac3, {\n offset: offset\n });\n },\n ts: function ts(bytes) {\n if (bytes.length < 189 && bytes.length >= 1) {\n return bytes[0] === 0x47;\n }\n var i = 0; // check the first 376 bytes for two matching sync bytes\n\n while (i + 188 < bytes.length && i < 188) {\n if (bytes[i] === 0x47 && bytes[i + 188] === 0x47) {\n return true;\n }\n i += 1;\n }\n return false;\n },\n flac: function flac(bytes) {\n var offset = getId3Offset(bytes);\n return bytesMatch(bytes, CONSTANTS.flac, {\n offset: offset\n });\n },\n ogg: function ogg(bytes) {\n return bytesMatch(bytes, CONSTANTS.ogg);\n },\n avi: function avi(bytes) {\n return bytesMatch(bytes, CONSTANTS.riff) && bytesMatch(bytes, CONSTANTS.avi, {\n offset: 8\n });\n },\n wav: function wav(bytes) {\n return bytesMatch(bytes, CONSTANTS.riff) && bytesMatch(bytes, CONSTANTS.wav, {\n offset: 8\n });\n },\n 'h264': function h264(bytes) {\n // find seq_parameter_set_rbsp\n return findH264Nal(bytes, 7, 3).length;\n },\n 'h265': function h265(bytes) {\n // find video_parameter_set_rbsp or seq_parameter_set_rbsp\n return findH265Nal(bytes, [32, 33], 3).length;\n }\n}; // get all the isLikely functions\n// but make sure 'ts' is above h264 and h265\n// but below everything else as it is the least specific\n\nvar isLikelyTypes = Object.keys(_isLikely) // remove ts, h264, h265\n.filter(function (t) {\n return t !== 'ts' && t !== 'h264' && t !== 'h265';\n}) // add it back to the bottom\n.concat(['ts', 'h264', 'h265']); // make sure we are dealing with uint8 data.\n\nisLikelyTypes.forEach(function (type) {\n var isLikelyFn = _isLikely[type];\n _isLikely[type] = function (bytes) {\n return isLikelyFn(toUint8(bytes));\n };\n}); // export after wrapping\n\nexport var isLikely = _isLikely; // A useful list of file signatures can be found here\n// https://en.wikipedia.org/wiki/List_of_file_signatures\n\nexport var detectContainerForBytes = function detectContainerForBytes(bytes) {\n bytes = toUint8(bytes);\n for (var i = 0; i < isLikelyTypes.length; i++) {\n var type = isLikelyTypes[i];\n if (isLikely[type](bytes)) {\n return type;\n }\n }\n return '';\n}; // fmp4 is not a container\n\nexport var isLikelyFmp4MediaSegment = function isLikelyFmp4MediaSegment(bytes) {\n return findBox(bytes, ['moof']).length > 0;\n};","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","const A = require('./agreeableness');\nconst E = require('./extraversion');\nconst N = require('./neuroticism');\nconst C = require('./conscientiousness');\nconst O = require('./openness_to_experience');\nmodule.exports = Object.assign([], [A, E, N, C, O]);","'use strict';\n\n/**\n * Ponyfill for `Array.prototype.find` which is only available in ES6 runtimes.\n *\n * Works with anything that has a `length` property and index access properties, including NodeList.\n *\n * @template {unknown} T\n * @param {Array | ({length:number, [number]: T})} list\n * @param {function (item: T, index: number, list:Array | ({length:number, [number]: T})):boolean} predicate\n * @param {Partial>?} ac `Array.prototype` by default,\n * \t\t\t\tallows injecting a custom implementation in tests\n * @returns {T | undefined}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find\n * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.find\n */\nfunction find(list, predicate, ac) {\n if (ac === undefined) {\n ac = Array.prototype;\n }\n if (list && typeof ac.find === 'function') {\n return ac.find.call(list, predicate);\n }\n for (var i = 0; i < list.length; i++) {\n if (Object.prototype.hasOwnProperty.call(list, i)) {\n var item = list[i];\n if (predicate.call(undefined, item, i, list)) {\n return item;\n }\n }\n }\n}\n\n/**\n * \"Shallow freezes\" an object to render it immutable.\n * Uses `Object.freeze` if available,\n * otherwise the immutability is only in the type.\n *\n * Is used to create \"enum like\" objects.\n *\n * @template T\n * @param {T} object the object to freeze\n * @param {Pick = Object} oc `Object` by default,\n * \t\t\t\tallows to inject custom object constructor for tests\n * @returns {Readonly}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n */\nfunction freeze(object, oc) {\n if (oc === undefined) {\n oc = Object;\n }\n return oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object;\n}\n\n/**\n * Since we can not rely on `Object.assign` we provide a simplified version\n * that is sufficient for our needs.\n *\n * @param {Object} target\n * @param {Object | null | undefined} source\n *\n * @returns {Object} target\n * @throws TypeError if target is not an object\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign\n */\nfunction assign(target, source) {\n if (target === null || typeof target !== 'object') {\n throw new TypeError('target is not an object');\n }\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n return target;\n}\n\n/**\n * All mime types that are allowed as input to `DOMParser.parseFromString`\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#Argument02 MDN\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparsersupportedtype WHATWG HTML Spec\n * @see DOMParser.prototype.parseFromString\n */\nvar MIME_TYPE = freeze({\n /**\n * `text/html`, the only mime type that triggers treating an XML document as HTML.\n *\n * @see DOMParser.SupportedType.isHTML\n * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring WHATWG HTML Spec\n */\n HTML: 'text/html',\n /**\n * Helper method to check a mime type if it indicates an HTML document\n *\n * @param {string} [value]\n * @returns {boolean}\n *\n * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring \t */\n isHTML: function (value) {\n return value === MIME_TYPE.HTML;\n },\n /**\n * `application/xml`, the standard mime type for XML documents.\n *\n * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType registration\n * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303\n * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n */\n XML_APPLICATION: 'application/xml',\n /**\n * `text/html`, an alias for `application/xml`.\n *\n * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303\n * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration\n * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n */\n XML_TEXT: 'text/xml',\n /**\n * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace,\n * but is parsed as an XML document.\n *\n * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType registration\n * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec\n * @see https://en.wikipedia.org/wiki/XHTML Wikipedia\n */\n XML_XHTML_APPLICATION: 'application/xhtml+xml',\n /**\n * `image/svg+xml`,\n *\n * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration\n * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1\n * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia\n */\n XML_SVG_IMAGE: 'image/svg+xml'\n});\n\n/**\n * Namespaces that are used in this code base.\n *\n * @see http://www.w3.org/TR/REC-xml-names\n */\nvar NAMESPACE = freeze({\n /**\n * The XHTML namespace.\n *\n * @see http://www.w3.org/1999/xhtml\n */\n HTML: 'http://www.w3.org/1999/xhtml',\n /**\n * Checks if `uri` equals `NAMESPACE.HTML`.\n *\n * @param {string} [uri]\n *\n * @see NAMESPACE.HTML\n */\n isHTML: function (uri) {\n return uri === NAMESPACE.HTML;\n },\n /**\n * The SVG namespace.\n *\n * @see http://www.w3.org/2000/svg\n */\n SVG: 'http://www.w3.org/2000/svg',\n /**\n * The `xml:` namespace.\n *\n * @see http://www.w3.org/XML/1998/namespace\n */\n XML: 'http://www.w3.org/XML/1998/namespace',\n /**\n * The `xmlns:` namespace\n *\n * @see https://www.w3.org/2000/xmlns/\n */\n XMLNS: 'http://www.w3.org/2000/xmlns/'\n});\nexports.assign = assign;\nexports.find = find;\nexports.freeze = freeze;\nexports.MIME_TYPE = MIME_TYPE;\nexports.NAMESPACE = NAMESPACE;","!function (t, e) {\n \"object\" == typeof exports && \"object\" == typeof module ? module.exports = e() : \"function\" == typeof define && define.amd ? define([], e) : \"object\" == typeof exports ? exports[\"vue-js-modal\"] = e() : t[\"vue-js-modal\"] = e();\n}(window, function () {\n return i = {}, o.m = n = [function (t, e, n) {\n var i = n(7);\n \"string\" == typeof i && (i = [[t.i, i, \"\"]]), i.locals && (t.exports = i.locals);\n (0, n(4).default)(\"d763679c\", i, !1, {});\n }, function (t, e, n) {\n var i = n(10);\n \"string\" == typeof i && (i = [[t.i, i, \"\"]]), i.locals && (t.exports = i.locals);\n (0, n(4).default)(\"6b9cc0e0\", i, !1, {});\n }, function (t, e, n) {\n var i = n(12);\n \"string\" == typeof i && (i = [[t.i, i, \"\"]]), i.locals && (t.exports = i.locals);\n (0, n(4).default)(\"663c004e\", i, !1, {});\n }, function (t, e) {\n t.exports = function (n) {\n var s = [];\n return s.toString = function () {\n return this.map(function (t) {\n var e = function (t, e) {\n var n = t[1] || \"\",\n i = t[3];\n if (!i) return n;\n if (e && \"function\" == typeof btoa) {\n var o = function (t) {\n return \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(t)))) + \" */\";\n }(i),\n r = i.sources.map(function (t) {\n return \"/*# sourceURL=\" + i.sourceRoot + t + \" */\";\n });\n return [n].concat(r).concat([o]).join(\"\\n\");\n }\n return [n].join(\"\\n\");\n }(t, n);\n return t[2] ? \"@media \" + t[2] + \"{\" + e + \"}\" : e;\n }).join(\"\");\n }, s.i = function (t, e) {\n \"string\" == typeof t && (t = [[null, t, \"\"]]);\n for (var n = {}, i = 0; i < this.length; i++) {\n var o = this[i][0];\n \"number\" == typeof o && (n[o] = !0);\n }\n for (i = 0; i < t.length; i++) {\n var r = t[i];\n \"number\" == typeof r[0] && n[r[0]] || (e && !r[2] ? r[2] = e : e && (r[2] = \"(\" + r[2] + \") and (\" + e + \")\"), s.push(r));\n }\n }, s;\n };\n }, function (t, e, n) {\n \"use strict\";\n\n function l(t, e) {\n for (var n = [], i = {}, o = 0; o < e.length; o++) {\n var r = e[o],\n s = r[0],\n a = {\n id: t + \":\" + o,\n css: r[1],\n media: r[2],\n sourceMap: r[3]\n };\n i[s] ? i[s].parts.push(a) : n.push(i[s] = {\n id: s,\n parts: [a]\n });\n }\n return n;\n }\n n.r(e), n.d(e, \"default\", function () {\n return v;\n });\n var i = \"undefined\" != typeof document;\n if (\"undefined\" != typeof DEBUG && DEBUG && !i) throw new Error(\"vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\");\n var u = {},\n o = i && (document.head || document.getElementsByTagName(\"head\")[0]),\n r = null,\n s = 0,\n c = !1,\n a = function () {},\n d = null,\n h = \"data-vue-ssr-id\",\n f = \"undefined\" != typeof navigator && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());\n function v(s, t, e, n) {\n c = e, d = n || {};\n var a = l(s, t);\n return p(a), function (t) {\n for (var e = [], n = 0; n < a.length; n++) {\n var i = a[n];\n (o = u[i.id]).refs--, e.push(o);\n }\n t ? p(a = l(s, t)) : a = [];\n for (n = 0; n < e.length; n++) {\n var o;\n if (0 === (o = e[n]).refs) {\n for (var r = 0; r < o.parts.length; r++) o.parts[r]();\n delete u[o.id];\n }\n }\n };\n }\n function p(t) {\n for (var e = 0; e < t.length; e++) {\n var n = t[e],\n i = u[n.id];\n if (i) {\n i.refs++;\n for (var o = 0; o < i.parts.length; o++) i.parts[o](n.parts[o]);\n for (; o < n.parts.length; o++) i.parts.push(b(n.parts[o]));\n i.parts.length > n.parts.length && (i.parts.length = n.parts.length);\n } else {\n var r = [];\n for (o = 0; o < n.parts.length; o++) r.push(b(n.parts[o]));\n u[n.id] = {\n id: n.id,\n refs: 1,\n parts: r\n };\n }\n }\n }\n function m() {\n var t = document.createElement(\"style\");\n return t.type = \"text/css\", o.appendChild(t), t;\n }\n function b(e) {\n var n,\n i,\n t = document.querySelector(\"style[\" + h + '~=\"' + e.id + '\"]');\n if (t) {\n if (c) return a;\n t.parentNode.removeChild(t);\n }\n if (f) {\n var o = s++;\n t = r = r || m(), n = w.bind(null, t, o, !1), i = w.bind(null, t, o, !0);\n } else t = m(), n = function (t, e) {\n var n = e.css,\n i = e.media,\n o = e.sourceMap;\n i && t.setAttribute(\"media\", i);\n d.ssrId && t.setAttribute(h, e.id);\n o && (n += \"\\n/*# sourceURL=\" + o.sources[0] + \" */\", n += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + \" */\");\n if (t.styleSheet) t.styleSheet.cssText = n;else {\n for (; t.firstChild;) t.removeChild(t.firstChild);\n t.appendChild(document.createTextNode(n));\n }\n }.bind(null, t), i = function () {\n t.parentNode.removeChild(t);\n };\n return n(e), function (t) {\n if (t) {\n if (t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap) return;\n n(e = t);\n } else i();\n };\n }\n var g,\n y = (g = [], function (t, e) {\n return g[t] = e, g.filter(Boolean).join(\"\\n\");\n });\n function w(t, e, n, i) {\n var o = n ? \"\" : i.css;\n if (t.styleSheet) t.styleSheet.cssText = y(e, o);else {\n var r = document.createTextNode(o),\n s = t.childNodes;\n s[e] && t.removeChild(s[e]), s.length ? t.insertBefore(r, s[e]) : t.appendChild(r);\n }\n }\n }, function (t, z, e) {\n \"use strict\";\n\n (function (t) {\n var i = function () {\n if (\"undefined\" != typeof Map) return Map;\n function i(t, n) {\n var i = -1;\n return t.some(function (t, e) {\n return t[0] === n && (i = e, !0);\n }), i;\n }\n return Object.defineProperty(t.prototype, \"size\", {\n get: function () {\n return this.__entries__.length;\n },\n enumerable: !0,\n configurable: !0\n }), t.prototype.get = function (t) {\n var e = i(this.__entries__, t),\n n = this.__entries__[e];\n return n && n[1];\n }, t.prototype.set = function (t, e) {\n var n = i(this.__entries__, t);\n ~n ? this.__entries__[n][1] = e : this.__entries__.push([t, e]);\n }, t.prototype.delete = function (t) {\n var e = this.__entries__,\n n = i(e, t);\n ~n && e.splice(n, 1);\n }, t.prototype.has = function (t) {\n return !!~i(this.__entries__, t);\n }, t.prototype.clear = function () {\n this.__entries__.splice(0);\n }, t.prototype.forEach = function (t, e) {\n void 0 === e && (e = null);\n for (var n = 0, i = this.__entries__; n < i.length; n++) {\n var o = i[n];\n t.call(e, o[1], o[0]);\n }\n }, t;\n function t() {\n this.__entries__ = [];\n }\n }(),\n n = \"undefined\" != typeof window && \"undefined\" != typeof document && window.document === document,\n e = void 0 !== t && t.Math === Math ? t : \"undefined\" != typeof self && self.Math === Math ? self : \"undefined\" != typeof window && window.Math === Math ? window : Function(\"return this\")(),\n l = \"function\" == typeof requestAnimationFrame ? requestAnimationFrame.bind(e) : function (t) {\n return setTimeout(function () {\n return t(Date.now());\n }, 1e3 / 60);\n },\n u = 2;\n var o = [\"top\", \"right\", \"bottom\", \"left\", \"width\", \"height\", \"size\", \"weight\"],\n r = \"undefined\" != typeof MutationObserver,\n s = (a.prototype.addObserver = function (t) {\n ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();\n }, a.prototype.removeObserver = function (t) {\n var e = this.observers_,\n n = e.indexOf(t);\n ~n && e.splice(n, 1), !e.length && this.connected_ && this.disconnect_();\n }, a.prototype.refresh = function () {\n this.updateObservers_() && this.refresh();\n }, a.prototype.updateObservers_ = function () {\n var t = this.observers_.filter(function (t) {\n return t.gatherActive(), t.hasActive();\n });\n return t.forEach(function (t) {\n return t.broadcastActive();\n }), 0 < t.length;\n }, a.prototype.connect_ = function () {\n n && !this.connected_ && (document.addEventListener(\"transitionend\", this.onTransitionEnd_), window.addEventListener(\"resize\", this.refresh), r ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {\n attributes: !0,\n childList: !0,\n characterData: !0,\n subtree: !0\n })) : (document.addEventListener(\"DOMSubtreeModified\", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);\n }, a.prototype.disconnect_ = function () {\n n && this.connected_ && (document.removeEventListener(\"transitionend\", this.onTransitionEnd_), window.removeEventListener(\"resize\", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener(\"DOMSubtreeModified\", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);\n }, a.prototype.onTransitionEnd_ = function (t) {\n var e = t.propertyName,\n n = void 0 === e ? \"\" : e;\n o.some(function (t) {\n return !!~n.indexOf(t);\n }) && this.refresh();\n }, a.getInstance = function () {\n return this.instance_ || (this.instance_ = new a()), this.instance_;\n }, a.instance_ = null, a);\n function a() {\n function t() {\n r && (r = !1, i()), s && n();\n }\n function e() {\n l(t);\n }\n function n() {\n var t = Date.now();\n if (r) {\n if (t - a < u) return;\n s = !0;\n } else s = !(r = !0), setTimeout(e, o);\n a = t;\n }\n var i, o, r, s, a;\n this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = (i = this.refresh.bind(this), s = r = !(o = 20), a = 0, n);\n }\n var c = function (t, e) {\n for (var n = 0, i = Object.keys(e); n < i.length; n++) {\n var o = i[n];\n Object.defineProperty(t, o, {\n value: e[o],\n enumerable: !1,\n writable: !1,\n configurable: !0\n });\n }\n return t;\n },\n h = function (t) {\n return t && t.ownerDocument && t.ownerDocument.defaultView || e;\n },\n f = g(0, 0, 0, 0);\n function v(t) {\n return parseFloat(t) || 0;\n }\n function p(n) {\n for (var t = [], e = 1; e < arguments.length; e++) t[e - 1] = arguments[e];\n return t.reduce(function (t, e) {\n return t + v(n[\"border-\" + e + \"-width\"]);\n }, 0);\n }\n function d(t) {\n var e = t.clientWidth,\n n = t.clientHeight;\n if (!e && !n) return f;\n var i,\n o = h(t).getComputedStyle(t),\n r = function (t) {\n for (var e = {}, n = 0, i = [\"top\", \"right\", \"bottom\", \"left\"]; n < i.length; n++) {\n var o = i[n],\n r = t[\"padding-\" + o];\n e[o] = v(r);\n }\n return e;\n }(o),\n s = r.left + r.right,\n a = r.top + r.bottom,\n l = v(o.width),\n u = v(o.height);\n if (\"border-box\" === o.boxSizing && (Math.round(l + s) !== e && (l -= p(o, \"left\", \"right\") + s), Math.round(u + a) !== n && (u -= p(o, \"top\", \"bottom\") + a)), (i = t) !== h(i).document.documentElement) {\n var c = Math.round(l + s) - e,\n d = Math.round(u + a) - n;\n 1 !== Math.abs(c) && (l -= c), 1 !== Math.abs(d) && (u -= d);\n }\n return g(r.left, r.top, l, u);\n }\n var m = \"undefined\" != typeof SVGGraphicsElement ? function (t) {\n return t instanceof h(t).SVGGraphicsElement;\n } : function (t) {\n return t instanceof h(t).SVGElement && \"function\" == typeof t.getBBox;\n };\n function b(t) {\n return n ? m(t) ? g(0, 0, (e = t.getBBox()).width, e.height) : d(t) : f;\n var e;\n }\n function g(t, e, n, i) {\n return {\n x: t,\n y: e,\n width: n,\n height: i\n };\n }\n var y = (w.prototype.isActive = function () {\n var t = b(this.target);\n return (this.contentRect_ = t).width !== this.broadcastWidth || t.height !== this.broadcastHeight;\n }, w.prototype.broadcastRect = function () {\n var t = this.contentRect_;\n return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;\n }, w);\n function w(t) {\n this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = g(0, 0, 0, 0), this.target = t;\n }\n var _ = function (t, e) {\n var n,\n i,\n o,\n r,\n s,\n a,\n l,\n u = (i = (n = e).x, o = n.y, r = n.width, s = n.height, a = \"undefined\" != typeof DOMRectReadOnly ? DOMRectReadOnly : Object, l = Object.create(a.prototype), c(l, {\n x: i,\n y: o,\n width: r,\n height: s,\n top: o,\n right: i + r,\n bottom: s + o,\n left: i\n }), l);\n c(this, {\n target: t,\n contentRect: u\n });\n },\n E = (x.prototype.observe = function (t) {\n if (!arguments.length) throw new TypeError(\"1 argument required, but only 0 present.\");\n if (\"undefined\" != typeof Element && Element instanceof Object) {\n if (!(t instanceof h(t).Element)) throw new TypeError('parameter 1 is not of type \"Element\".');\n var e = this.observations_;\n e.has(t) || (e.set(t, new y(t)), this.controller_.addObserver(this), this.controller_.refresh());\n }\n }, x.prototype.unobserve = function (t) {\n if (!arguments.length) throw new TypeError(\"1 argument required, but only 0 present.\");\n if (\"undefined\" != typeof Element && Element instanceof Object) {\n if (!(t instanceof h(t).Element)) throw new TypeError('parameter 1 is not of type \"Element\".');\n var e = this.observations_;\n e.has(t) && (e.delete(t), e.size || this.controller_.removeObserver(this));\n }\n }, x.prototype.disconnect = function () {\n this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);\n }, x.prototype.gatherActive = function () {\n var e = this;\n this.clearActive(), this.observations_.forEach(function (t) {\n t.isActive() && e.activeObservations_.push(t);\n });\n }, x.prototype.broadcastActive = function () {\n if (this.hasActive()) {\n var t = this.callbackCtx_,\n e = this.activeObservations_.map(function (t) {\n return new _(t.target, t.broadcastRect());\n });\n this.callback_.call(t, e, t), this.clearActive();\n }\n }, x.prototype.clearActive = function () {\n this.activeObservations_.splice(0);\n }, x.prototype.hasActive = function () {\n return 0 < this.activeObservations_.length;\n }, x);\n function x(t, e, n) {\n if (this.activeObservations_ = [], this.observations_ = new i(), \"function\" != typeof t) throw new TypeError(\"The callback provided as parameter 1 is not a function.\");\n this.callback_ = t, this.controller_ = e, this.callbackCtx_ = n;\n }\n var T = new (\"undefined\" != typeof WeakMap ? WeakMap : i)(),\n O = function t(e) {\n if (!(this instanceof t)) throw new TypeError(\"Cannot call a class as a function.\");\n if (!arguments.length) throw new TypeError(\"1 argument required, but only 0 present.\");\n var n = s.getInstance(),\n i = new E(e, n, this);\n T.set(this, i);\n };\n [\"observe\", \"unobserve\", \"disconnect\"].forEach(function (e) {\n O.prototype[e] = function () {\n var t;\n return (t = T.get(this))[e].apply(t, arguments);\n };\n });\n var S = void 0 !== e.ResizeObserver ? e.ResizeObserver : O;\n z.a = S;\n }).call(this, e(8));\n }, function (t, e, n) {\n \"use strict\";\n\n var i = n(0);\n n.n(i).a;\n }, function (t, e, n) {\n (t.exports = n(3)(!1)).push([t.i, \"\\n.vue-modal-top,\\n.vue-modal-bottom,\\n.vue-modal-left,\\n.vue-modal-right,\\n.vue-modal-topRight,\\n.vue-modal-topLeft,\\n.vue-modal-bottomLeft,\\n.vue-modal-bottomRight {\\n display: block;\\n overflow: hidden;\\n position: absolute;\\n background: transparent;\\n z-index: 9999999;\\n}\\n.vue-modal-topRight,\\n.vue-modal-topLeft,\\n.vue-modal-bottomLeft,\\n.vue-modal-bottomRight {\\n width: 12px;\\n height: 12px;\\n}\\n.vue-modal-top {\\n right: 12;\\n top: 0;\\n width: 100%;\\n height: 12px;\\n cursor: n-resize;\\n}\\n.vue-modal-bottom {\\n left: 0;\\n bottom: 0;\\n width: 100%;\\n height: 12px;\\n cursor: s-resize;\\n}\\n.vue-modal-left {\\n left: 0;\\n top: 0;\\n width: 12px;\\n height: 100%;\\n cursor: w-resize;\\n}\\n.vue-modal-right {\\n right: 0;\\n top: 0;\\n width: 12px;\\n height: 100%;\\n cursor: e-resize;\\n}\\n.vue-modal-topRight {\\n right: 0;\\n top: 0;\\n background: transparent;\\n cursor: ne-resize;\\n}\\n.vue-modal-topLeft {\\n left: 0;\\n top: 0;\\n cursor: nw-resize;\\n}\\n.vue-modal-bottomLeft {\\n left: 0;\\n bottom: 0;\\n cursor: sw-resize;\\n}\\n.vue-modal-bottomRight {\\n right: 0;\\n bottom: 0;\\n cursor: se-resize;\\n}\\n#vue-modal-triangle::after {\\n display: block;\\n position: absolute;\\n content: '';\\n background: transparent;\\n left: 0;\\n top: 0;\\n width: 0;\\n height: 0;\\n border-bottom: 10px solid #ddd;\\n border-left: 10px solid transparent;\\n}\\n#vue-modal-triangle.clicked::after {\\n border-bottom: 10px solid #369be9;\\n}\\n\", \"\"]);\n }, function (t, e) {\n var n;\n n = function () {\n return this;\n }();\n try {\n n = n || new Function(\"return this\")();\n } catch (t) {\n \"object\" == typeof window && (n = window);\n }\n t.exports = n;\n }, function (t, e, n) {\n \"use strict\";\n\n var i = n(1);\n n.n(i).a;\n }, function (t, e, n) {\n (t.exports = n(3)(!1)).push([t.i, \"\\n.vm--block-scroll {\\n overflow: hidden;\\n width: 100vw;\\n}\\n.vm--container {\\n position: fixed;\\n box-sizing: border-box;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100vh;\\n z-index: 999;\\n}\\n.vm--overlay {\\n position: fixed;\\n box-sizing: border-box;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100vh;\\n background: rgba(0, 0, 0, 0.2);\\n /* z-index: 999; */\\n opacity: 1;\\n}\\n.vm--container.scrollable {\\n height: 100%;\\n min-height: 100vh;\\n overflow-y: auto;\\n -webkit-overflow-scrolling: touch;\\n}\\n.vm--modal {\\n position: relative;\\n overflow: hidden;\\n box-sizing: border-box;\\n\\n background-color: white;\\n border-radius: 3px;\\n box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);\\n}\\n.vm--container.scrollable .vm--modal {\\n margin-bottom: 2px;\\n}\\n.vm--top-right-slot {\\n display: block;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n.vm-transition--overlay-enter-active,\\n.vm-transition--overlay-leave-active {\\n transition: all 50ms;\\n}\\n.vm-transition--overlay-enter,\\n.vm-transition--overlay-leave-active {\\n opacity: 0;\\n}\\n.vm-transition--modal-enter-active,\\n.vm-transition--modal-leave-active {\\n transition: all 400ms;\\n}\\n.vm-transition--modal-enter,\\n.vm-transition--modal-leave-active {\\n opacity: 0;\\n transform: translateY(-20px);\\n}\\n.vm-transition--default-enter-active,\\n.vm-transition--default-leave-active {\\n transition: all 2ms;\\n}\\n.vm-transition--default-enter,\\n.vm-transition--default-leave-active {\\n opacity: 0;\\n}\\n\", \"\"]);\n }, function (t, e, n) {\n \"use strict\";\n\n var i = n(2);\n n.n(i).a;\n }, function (t, e, n) {\n (t.exports = n(3)(!1)).push([t.i, \"\\n.vue-dialog {\\n font-size: 14px;\\n}\\n.vue-dialog div {\\n box-sizing: border-box;\\n}\\n.vue-dialog-content {\\n flex: 1 0 auto;\\n width: 100%;\\n padding: 14px;\\n}\\n.vue-dialog-content-title {\\n font-weight: 600;\\n padding-bottom: 14px;\\n}\\n.vue-dialog-buttons {\\n display: flex;\\n flex: 0 1 auto;\\n width: 100%;\\n border-top: 1px solid #eee;\\n}\\n.vue-dialog-buttons-none {\\n width: 100%;\\n padding-bottom: 14px;\\n}\\n.vue-dialog-button {\\n font-size: inherit;\\n background: transparent;\\n padding: 0;\\n margin: 0;\\n border: 0;\\n cursor: pointer;\\n box-sizing: border-box;\\n line-height: 40px;\\n height: 40px;\\n color: inherit;\\n font: inherit;\\n outline: none;\\n}\\n.vue-dialog-button:hover {\\n background: #f9f9f9;\\n}\\n.vue-dialog-button:active {\\n background: #f3f3f3;\\n}\\n.vue-dialog-button:not(:first-of-type) {\\n border-left: 1px solid #eee;\\n}\\n\", \"\"]);\n }, function (t, e, n) {\n \"use strict\";\n\n n.r(e), n.d(e, \"Modal\", function () {\n return W;\n }), n.d(e, \"Dialog\", function () {\n return X;\n }), n.d(e, \"version\", function () {\n return J;\n });\n function i() {\n var e = this,\n t = e.$createElement,\n n = e._self._c || t;\n return e.visible ? n(\"div\", {\n class: e.containerClass\n }, [n(\"transition\", {\n attrs: {\n name: e.guaranteedOverlayTransition\n },\n on: {\n \"before-enter\": e.beforeOverlayTransitionEnter,\n \"after-enter\": e.afterOverlayTransitionEnter,\n \"before-leave\": e.beforeOverlayTransitionLeave,\n \"after-leave\": e.afterOverlayTransitionLeave\n }\n }, [e.visibility.overlay ? n(\"div\", {\n staticClass: \"vm--overlay\",\n attrs: {\n \"data-modal\": e.name,\n \"aria-expanded\": e.visibility.overlay.toString()\n },\n on: {\n click: function (t) {\n return t.target !== t.currentTarget ? null : (t.stopPropagation(), e.onOverlayClick(t));\n }\n }\n }, [n(\"div\", {\n staticClass: \"vm--top-right-slot\"\n }, [e._t(\"top-right\")], 2)]) : e._e()]), e._v(\" \"), n(\"transition\", {\n attrs: {\n name: e.guaranteedModalTransition\n },\n on: {\n \"before-enter\": e.beforeModalTransitionEnter,\n \"after-enter\": e.afterModalTransitionEnter,\n \"before-leave\": e.beforeModalTransitionLeave,\n \"after-leave\": e.afterModalTransitionLeave\n }\n }, [e.visibility.modal ? n(\"div\", {\n ref: \"modal\",\n class: e.modalClass,\n style: e.modalStyle,\n attrs: {\n \"aria-expanded\": e.visibility.modal.toString(),\n role: \"dialog\",\n \"aria-modal\": \"true\"\n }\n }, [e._t(\"default\"), e._v(\" \"), e.resizable && !e.isAutoHeight ? n(\"resizer\", {\n attrs: {\n \"min-width\": e.minWidth,\n \"min-height\": e.minHeight,\n \"max-width\": e.maxWidth,\n \"max-height\": e.maxHeight,\n \"viewport-height\": e.viewportHeight,\n \"viewport-width\": e.viewportWidth,\n \"resize-indicator\": e.resizeIndicator,\n \"resize-edges\": e.resizeEdges\n },\n on: {\n resize: e.onModalResize\n }\n }) : e._e()], 2) : e._e()])], 1) : e._e();\n }\n function o() {\n var t = this,\n e = t.$createElement,\n n = t._self._c || e;\n return n(\"div\", [this.resizeEdges.includes(\"t\") ? n(\"div\", {\n staticClass: \"vue-modal-top\"\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"b\") ? n(\"div\", {\n staticClass: \"vue-modal-bottom\"\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"l\") ? n(\"div\", {\n staticClass: \"vue-modal-left\"\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"r\") ? n(\"div\", {\n staticClass: \"vue-modal-right\"\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"tr\") ? n(\"div\", {\n staticClass: \"vue-modal-topRight\"\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"tl\") ? n(\"div\", {\n staticClass: \"vue-modal-topLeft\"\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"br\") ? n(\"div\", {\n class: t.className,\n attrs: {\n id: t.getID\n }\n }) : t._e(), t._v(\" \"), this.resizeEdges.includes(\"bl\") ? n(\"div\", {\n staticClass: \"vue-modal-bottomLeft\"\n }) : t._e()]);\n }\n o._withStripped = i._withStripped = !0;\n function h(t, e, n) {\n return n < t ? t : e < n ? e : n;\n }\n function r(t, e, n) {\n return e in t ? Object.defineProperty(t, e, {\n value: n,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = n, t;\n }\n function s(t, e) {\n return function (t) {\n if (Array.isArray(t)) return t;\n }(t) || function (t, e) {\n var n = [],\n i = !0,\n o = !1,\n r = void 0;\n try {\n for (var s, a = t[Symbol.iterator](); !(i = (s = a.next()).done) && (n.push(s.value), !e || n.length !== e); i = !0);\n } catch (t) {\n o = !0, r = t;\n } finally {\n try {\n i || null == a.return || a.return();\n } finally {\n if (o) throw r;\n }\n }\n return n;\n }(t, e) || function () {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }();\n }\n function u() {\n var t = window.innerWidth,\n e = document.documentElement.clientWidth;\n return t && e ? Math.min(t, e) : e || t;\n }\n function a(t) {\n return t.split(\";\").map(function (t) {\n return t.trim();\n }).filter(Boolean).map(function (t) {\n return t.split(\":\");\n }).reduce(function (t, e) {\n var n = s(e, 2);\n return function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = null != arguments[t] ? arguments[t] : {},\n i = Object.keys(n);\n \"function\" == typeof Object.getOwnPropertySymbols && (i = i.concat(Object.getOwnPropertySymbols(n).filter(function (t) {\n return Object.getOwnPropertyDescriptor(n, t).enumerable;\n }))), i.forEach(function (t) {\n r(e, t, n[t]);\n });\n }\n return e;\n }({}, t, r({}, n[0], n[1]));\n }, {});\n }\n function f(t) {\n return t.touches && 0 < t.touches.length ? t.touches[0] : t;\n }\n var v = [\"INPUT\", \"TEXTAREA\", \"SELECT\"],\n c = function (t) {\n var e = 0 < arguments.length && void 0 !== t ? t : 0;\n return function () {\n return (e++).toString();\n };\n }(),\n l = {\n name: \"VueJsModalResizer\",\n props: {\n minHeight: {\n type: Number,\n default: 0\n },\n minWidth: {\n type: Number,\n default: 0\n },\n maxWidth: {\n type: Number,\n default: Number.MAX_SAFE_INTEGER\n },\n maxHeight: {\n type: Number,\n default: Number.MAX_SAFE_INTEGER\n },\n viewportWidth: {\n type: Number,\n required: !0\n },\n viewportHeight: {\n type: Number,\n required: !0\n },\n resizeIndicator: {\n type: Boolean,\n default: !0\n },\n resizeEdges: {\n type: Array,\n required: !0\n }\n },\n data: function () {\n return {\n clicked: !1,\n targetClass: \"\",\n size: {},\n initialX: 0,\n initialY: 0\n };\n },\n mounted: function () {\n this.$el.addEventListener(\"mousedown\", this.start, !1);\n },\n computed: {\n className: function () {\n return [\"vue-modal-bottomRight\", {\n clicked: this.clicked\n }];\n },\n getID: function () {\n return this.resizeIndicator ? \"vue-modal-triangle\" : \"\";\n }\n },\n methods: {\n start: function (t) {\n this.targetClass = t.target.className, this.clicked = !0, this.initialX = t.clientX, this.initialY = t.clientY, window.addEventListener(\"mousemove\", this.mousemove, !1), window.addEventListener(\"mouseup\", this.stop, !1), t.stopPropagation(), t.preventDefault();\n },\n stop: function () {\n this.clicked = !1, this.clicked = !1, this.targetClass = \"\", this.initialX = 0, this.initialY = 0, window.removeEventListener(\"mousemove\", this.mousemove, !1), window.removeEventListener(\"mouseup\", this.stop, !1), this.$emit(\"resize-stop\", {\n element: this.$el.parentElement,\n size: this.size\n });\n },\n mousemove: function (t) {\n this.resize(t);\n },\n resize: function (t) {\n var e = this.$el.parentElement,\n n = t.clientX,\n i = t.clientY,\n o = parseInt(e.style.width.replace(\"px\", \"\")),\n r = parseInt(e.style.height.replace(\"px\", \"\"));\n if (!(t.clientX > this.viewportWidth || t.clientX < 0) && !(t.clientY > this.viewportHeight || t.clientY < 0) && e) {\n switch (this.targetClass) {\n case \"vue-modal-right\":\n n -= e.offsetLeft, i = r;\n break;\n case \"vue-modal-left\":\n i = r, n = o + (this.initialX - t.clientX);\n break;\n case \"vue-modal-top\":\n n = o, i = r + (this.initialY - t.clientY);\n break;\n case \"vue-modal-bottom\":\n n = o, i -= e.offsetTop;\n break;\n case \"vue-modal-bottomRight\":\n n -= e.offsetLeft, i -= e.offsetTop;\n break;\n case \"vue-modal-topRight\":\n n -= e.offsetLeft, i = r + (this.initialY - t.clientY);\n break;\n case \"vue-modal-bottomLeft\":\n n = o + (this.initialX - t.clientX), i -= e.offsetTop;\n break;\n case \"vue-modal-topLeft\":\n n = o + (this.initialX - t.clientX), i = r + (this.initialY - t.clientY);\n break;\n default:\n console.error(\"Incorrrect/no resize direction.\");\n }\n var s = Math.min(u(), this.maxWidth),\n a = Math.min(window.innerHeight, this.maxHeight);\n n = h(this.minWidth, s, n), i = h(this.minHeight, a, i), this.initialX = t.clientX, this.initialY = t.clientY, this.size = {\n width: n,\n height: i\n };\n var l = {\n width: n - o,\n height: i - r\n };\n e.style.width = n + \"px\", e.style.height = i + \"px\", this.$emit(\"resize\", {\n element: e,\n size: this.size,\n direction: this.targetClass,\n dimGrowth: l\n });\n }\n }\n }\n };\n n(6);\n function d(t, e, n, i, o, r, s, a) {\n var l,\n u = \"function\" == typeof t ? t.options : t;\n if (e && (u.render = e, u.staticRenderFns = n, u._compiled = !0), i && (u.functional = !0), r && (u._scopeId = \"data-v-\" + r), s ? (l = function (t) {\n (t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || \"undefined\" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__), o && o.call(this, t), t && t._registeredComponents && t._registeredComponents.add(s);\n }, u._ssrRegister = l) : o && (l = a ? function () {\n o.call(this, this.$root.$options.shadowRoot);\n } : o), l) if (u.functional) {\n u._injectStyles = l;\n var c = u.render;\n u.render = function (t, e) {\n return l.call(e), c(t, e);\n };\n } else {\n var d = u.beforeCreate;\n u.beforeCreate = d ? [].concat(d, l) : [l];\n }\n return {\n exports: t,\n options: u\n };\n }\n var p = d(l, o, [], !1, null, null, null);\n p.options.__file = \"src/components/Resizer.vue\";\n var m = p.exports;\n function b(t) {\n return (b = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function g(t) {\n switch (b(t)) {\n case \"number\":\n return {\n type: \"px\",\n value: t\n };\n case \"string\":\n return function (e) {\n if (\"auto\" === e) return {\n type: e,\n value: 0\n };\n var t = _.find(function (t) {\n return t.regexp.test(e);\n });\n return t ? {\n type: t.name,\n value: parseFloat(e)\n } : {\n type: \"\",\n value: e\n };\n }(t);\n default:\n return {\n type: \"\",\n value: t\n };\n }\n }\n function y(t) {\n if (\"string\" != typeof t) return 0 <= t;\n var e = g(t);\n return (\"%\" === e.type || \"px\" === e.type) && 0 < e.value;\n }\n var w = \"[-+]?[0-9]*.?[0-9]+\",\n _ = [{\n name: \"px\",\n regexp: new RegExp(\"^\".concat(w, \"px$\"))\n }, {\n name: \"%\",\n regexp: new RegExp(\"^\".concat(w, \"%$\"))\n }, {\n name: \"px\",\n regexp: new RegExp(\"^\".concat(w, \"$\"))\n }],\n E = n(5),\n x = \"undefined\" != typeof window && window.ResizeObserver ? ResizeObserver : E.a;\n function T(t, e) {\n for (var n = 0; n < e.length; n++) {\n var i = e[n];\n i.enumerable = i.enumerable || !1, i.configurable = !0, \"value\" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);\n }\n }\n function O(t) {\n return function (t) {\n if (Array.isArray(t)) {\n for (var e = 0, n = new Array(t.length); e < t.length; e++) n[e] = t[e];\n return n;\n }\n }(t) || function (t) {\n if (Symbol.iterator in Object(t) || \"[object Arguments]\" === Object.prototype.toString.call(t)) return Array.from(t);\n }(t) || function () {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n }();\n }\n function S(t) {\n return e = 'button:not([disabled]), select:not([disabled]), a[href]:not([disabled]), area[href]:not([disabled]), [contentEditable=\"\"]:not([disabled]), [contentEditable=\"true\"]:not([disabled]), [contentEditable=\"TRUE\"]:not([disabled]), textarea:not([disabled]), iframe:not([disabled]), input:not([disabled]), summary:not([disabled]), [tabindex]:not([tabindex=\"-1\"])', O(t.querySelectorAll(e) || []);\n var e;\n }\n function z(t) {\n return t == document.activeElement;\n }\n var M = function () {\n function t() {\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.root = null, this.elements = [], this.onKeyDown = this.onKeyDown.bind(this), this.enable = this.enable.bind(this), this.disable = this.disable.bind(this), this.firstElement = this.firstElement.bind(this), this.lastElement = this.lastElement.bind(this);\n }\n var e, n, i;\n return e = t, (n = [{\n key: \"lastElement\",\n value: function () {\n return this.elements[this.elements.length - 1] || null;\n }\n }, {\n key: \"firstElement\",\n value: function () {\n return this.elements[0] || null;\n }\n }, {\n key: \"onKeyDown\",\n value: function (t) {\n var e;\n if (\"Tab\" === (e = t).key || 9 === e.keyCode) return t.shiftKey && z(this.firstElement()) ? (this.lastElement().focus(), void t.preventDefault()) : !document.activeElement || z(this.lastElement()) ? (this.firstElement().focus(), void t.preventDefault()) : void 0;\n }\n }, {\n key: \"enabled\",\n value: function () {\n return !!this.root;\n }\n }, {\n key: \"enable\",\n value: function (t) {\n if (t) {\n this.root = t, this.elements = S(this.root);\n var e = this.firstElement();\n e && e.focus(), this.root.addEventListener(\"keydown\", this.onKeyDown);\n }\n }\n }, {\n key: \"disable\",\n value: function () {\n this.root.removeEventListener(\"keydown\", this.onKeyDown), this.root = null;\n }\n }]) && T(e.prototype, n), i && T(e, i), t;\n }();\n function L(t, e, n) {\n return e in t ? Object.defineProperty(t, e, {\n value: n,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = n, t;\n }\n function k(t, e) {\n return function (t) {\n if (Array.isArray(t)) return t;\n }(t) || function (t, e) {\n var n = [],\n i = !0,\n o = !1,\n r = void 0;\n try {\n for (var s, a = t[Symbol.iterator](); !(i = (s = a.next()).done) && (n.push(s.value), !e || n.length !== e); i = !0);\n } catch (t) {\n o = !0, r = t;\n } finally {\n try {\n i || null == a.return || a.return();\n } finally {\n if (o) throw r;\n }\n }\n return n;\n }(t, e) || function () {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }();\n }\n var R = \"vm-transition--default\",\n C = \"enter\",\n $ = \"entering\",\n A = \"leave\",\n j = \"leavng\",\n H = {\n name: \"VueJsModal\",\n props: {\n name: {\n required: !0,\n type: String\n },\n resizable: {\n type: Boolean,\n default: !1\n },\n resizeEdges: {\n default: function () {\n return [\"r\", \"br\", \"b\", \"bl\", \"l\", \"tl\", \"t\", \"tr\"];\n },\n validator: function (e) {\n return [\"r\", \"br\", \"b\", \"bl\", \"l\", \"tl\", \"t\", \"tr\"].filter(function (t) {\n return -1 !== e.indexOf(t);\n }).length === e.length;\n },\n type: Array\n },\n centerResize: {\n type: Boolean,\n default: !0\n },\n resizeIndicator: {\n type: Boolean,\n default: !0\n },\n adaptive: {\n type: Boolean,\n default: !1\n },\n draggable: {\n type: [Boolean, String],\n default: !1\n },\n scrollable: {\n type: Boolean,\n default: !1\n },\n focusTrap: {\n type: Boolean,\n default: !1\n },\n reset: {\n type: Boolean,\n default: !1\n },\n overlayTransition: {\n type: String,\n default: \"vm-transition--overlay\"\n },\n transition: {\n type: String,\n default: \"vm-transition--modal\"\n },\n clickToClose: {\n type: Boolean,\n default: !0\n },\n classes: {\n type: [String, Array],\n default: function () {\n return [];\n }\n },\n styles: {\n type: [String, Array, Object]\n },\n minWidth: {\n type: Number,\n default: 0,\n validator: function (t) {\n return 0 <= t;\n }\n },\n minHeight: {\n type: Number,\n default: 0,\n validator: function (t) {\n return 0 <= t;\n }\n },\n maxWidth: {\n type: Number,\n default: Number.MAX_SAFE_INTEGER\n },\n maxHeight: {\n type: Number,\n default: Number.MAX_SAFE_INTEGER\n },\n width: {\n type: [Number, String],\n default: 600,\n validator: function (t) {\n return \"auto\" === t || y(t);\n }\n },\n height: {\n type: [Number, String],\n default: 300,\n validator: function (t) {\n return \"auto\" === t || y(t);\n }\n },\n shiftX: {\n type: Number,\n default: .5,\n validator: function (t) {\n return 0 <= t && t <= 1;\n }\n },\n shiftY: {\n type: Number,\n default: .5,\n validator: function (t) {\n return 0 <= t && t <= 1;\n }\n }\n },\n components: {\n Resizer: m\n },\n data: function () {\n return {\n visible: !1,\n visibility: {\n modal: !1,\n overlay: !1\n },\n overlayTransitionState: null,\n modalTransitionState: null,\n shiftLeft: 0,\n shiftTop: 0,\n modal: {\n width: 0,\n widthType: \"px\",\n height: 0,\n heightType: \"px\",\n renderedHeight: 0\n },\n viewportHeight: 0,\n viewportWidth: 0\n };\n },\n created: function () {\n this.setInitialSize();\n },\n beforeMount: function () {\n this.$modal.subscription.$on(\"toggle\", this.onToggle), window.addEventListener(\"resize\", this.onWindowResize), window.addEventListener(\"orientationchange\", this.onWindowResize), this.onWindowResize(), this.scrollable && !this.isAutoHeight && console.warn('Modal \"'.concat(this.name, '\" has scrollable flag set to true ') + 'but height is not \"auto\" ('.concat(this.height, \")\")), this.clickToClose && window.addEventListener(\"keyup\", this.onEscapeKeyUp);\n },\n mounted: function () {\n var n = this;\n this.resizeObserver = new x(function (t) {\n if (0 < t.length) {\n var e = k(t, 1)[0];\n n.modal.renderedHeight = e.contentRect.height;\n }\n }), this.$focusTrap = new M();\n },\n beforeDestroy: function () {\n this.$modal.subscription.$off(\"toggle\", this.onToggle), window.removeEventListener(\"resize\", this.onWindowResize), window.removeEventListener(\"orientationchange\", this.onWindowResize), this.clickToClose && window.removeEventListener(\"keyup\", this.onEscapeKeyUp), document.body.classList.remove(\"vm--block-scroll\");\n },\n computed: {\n guaranteedOverlayTransition: function () {\n return this.overlayTransition || R;\n },\n guaranteedModalTransition: function () {\n return this.transition || R;\n },\n isAutoHeight: function () {\n return \"auto\" === this.modal.heightType;\n },\n position: function () {\n var t = this.viewportHeight,\n e = this.viewportWidth,\n n = this.shiftLeft,\n i = this.shiftTop,\n o = this.shiftX,\n r = this.shiftY,\n s = this.trueModalWidth,\n a = this.trueModalHeight,\n l = e - s,\n u = Math.max(t - a, 0),\n c = i + r * u;\n return {\n left: parseInt(h(0, l, n + o * l)),\n top: !a && this.isAutoHeight ? void 0 : parseInt(h(0, u, c))\n };\n },\n trueModalWidth: function () {\n var t = this.viewportWidth,\n e = this.modal,\n n = this.adaptive,\n i = this.minWidth,\n o = this.maxWidth,\n r = \"%\" === e.widthType ? t / 100 * e.width : e.width;\n if (n) {\n var s = Math.max(i, Math.min(t, o));\n return h(i, s, r);\n }\n return r;\n },\n trueModalHeight: function () {\n var t = this.viewportHeight,\n e = this.modal,\n n = this.isAutoHeight,\n i = this.adaptive,\n o = this.minHeight,\n r = this.maxHeight,\n s = \"%\" === e.heightType ? t / 100 * e.height : e.height;\n if (n) return this.modal.renderedHeight;\n if (i) {\n var a = Math.max(o, Math.min(t, r));\n return h(o, a, s);\n }\n return s;\n },\n autoHeight: function () {\n return this.adaptive && this.modal.renderedHeight >= this.viewportHeight ? Math.max(this.minHeight, this.viewportHeight) + \"px\" : \"auto\";\n },\n containerClass: function () {\n return [\"vm--container\", this.scrollable && this.isAutoHeight && \"scrollable\"];\n },\n modalClass: function () {\n return [\"vm--modal\", this.classes];\n },\n stylesProp: function () {\n return \"string\" == typeof this.styles ? a(this.styles) : this.styles;\n },\n modalStyle: function () {\n return [this.stylesProp, {\n top: this.position.top + \"px\",\n left: this.position.left + \"px\",\n width: this.trueModalWidth + \"px\",\n height: this.isAutoHeight ? this.autoHeight : this.trueModalHeight + \"px\"\n }];\n },\n isComponentReadyToBeDestroyed: function () {\n return this.overlayTransitionState === A && this.modalTransitionState === A;\n }\n },\n watch: {\n isComponentReadyToBeDestroyed: function (t) {\n t && (this.visible = !1);\n }\n },\n methods: {\n startTransitionEnter: function () {\n this.visibility.overlay = !0, this.visibility.modal = !0;\n },\n startTransitionLeave: function () {\n this.visibility.overlay = !1, this.visibility.modal = !1;\n },\n beforeOverlayTransitionEnter: function () {\n this.overlayTransitionState = $;\n },\n afterOverlayTransitionEnter: function () {\n this.overlayTransitionState = C;\n },\n beforeOverlayTransitionLeave: function () {\n this.overlayTransitionState = j;\n },\n afterOverlayTransitionLeave: function () {\n this.overlayTransitionState = A;\n },\n beforeModalTransitionEnter: function () {\n var t = this;\n this.modalTransitionState = $, this.$nextTick(function () {\n t.resizeObserver.observe(t.$refs.modal);\n });\n },\n afterModalTransitionEnter: function () {\n this.modalTransitionState = C, this.draggable && this.addDraggableListeners(), this.focusTrap && this.$focusTrap.enable(this.$refs.modal);\n var t = this.createModalEvent({\n state: \"opened\"\n });\n this.$emit(\"opened\", t);\n },\n beforeModalTransitionLeave: function () {\n this.modalTransitionState = j, this.resizeObserver.unobserve(this.$refs.modal), this.$focusTrap.enabled() && this.$focusTrap.disable();\n },\n afterModalTransitionLeave: function () {\n this.modalTransitionState = A;\n var t = this.createModalEvent({\n state: \"closed\"\n });\n this.$emit(\"closed\", t);\n },\n onToggle: function (t, e, n) {\n if (this.name === t) {\n var i = void 0 === e ? !this.visible : e;\n this.toggle(i, n);\n }\n },\n setInitialSize: function () {\n var t = g(this.width),\n e = g(this.height);\n this.modal.width = t.value, this.modal.widthType = t.type, this.modal.height = e.value, this.modal.heightType = e.type;\n },\n onEscapeKeyUp: function (t) {\n 27 === t.which && this.visible && this.$modal.hide(this.name);\n },\n onWindowResize: function () {\n this.viewportWidth = u(), this.viewportHeight = window.innerHeight, this.ensureShiftInWindowBounds();\n },\n createModalEvent: function (t) {\n var e = 0 < arguments.length && void 0 !== t ? t : {};\n return function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = null != arguments[t] ? arguments[t] : {},\n i = Object.keys(n);\n \"function\" == typeof Object.getOwnPropertySymbols && (i = i.concat(Object.getOwnPropertySymbols(n).filter(function (t) {\n return Object.getOwnPropertyDescriptor(n, t).enumerable;\n }))), i.forEach(function (t) {\n L(e, t, n[t]);\n });\n }\n return e;\n }({\n name: this.name,\n ref: this.$refs.modal || null\n }, e);\n },\n onModalResize: function (t) {\n this.modal.widthType = \"px\", this.modal.width = t.size.width, this.modal.heightType = \"px\", this.modal.height = t.size.height, this.centerResize || (this.shiftLeft = this.getResizedShiftLeft(t), this.shiftTop = this.getResizedShiftTop(t));\n var e = this.modal.size;\n this.$emit(\"resize\", this.createModalEvent({\n size: e\n }));\n },\n getResizedShiftLeft: function (t) {\n this.viewportHeight, this.viewportWidth, this.trueModalWidth, this.trueModalHeight;\n var e = this.shiftLeft;\n switch (t.direction) {\n case \"vue-modal-topRight\":\n case \"vue-modal-bottomRight\":\n case \"vue-modal-right\":\n e += .5 * t.dimGrowth.width;\n break;\n case \"vue-modal-bottomLeft\":\n case \"vue-modal-topLeft\":\n case \"vue-modal-left\":\n e -= .5 * t.dimGrowth.width;\n break;\n case \"vue-modal-top\":\n case \"vue-modal-bottom\":\n break;\n default:\n console.error(\"Could not Find Resize Direction In ShiftLeft\");\n }\n return e;\n },\n getResizedShiftTop: function (t) {\n this.viewportHeight, this.viewportWidth, this.trueModalWidth, this.trueModalHeight;\n var e = this.shiftTop;\n switch (t.direction) {\n case \"vue-modal-bottom\":\n case \"vue-modal-bottomRight\":\n case \"vue-modal-bottomLeft\":\n e += .5 * t.dimGrowth.height;\n break;\n case \"vue-modal-top\":\n case \"vue-modal-topRight\":\n case \"vue-modal-topLeft\":\n e -= .5 * t.dimGrowth.height;\n break;\n case \"vue-modal-left\":\n case \"vue-modal-right\":\n break;\n default:\n console.error(\"Could not Find Resize Direction In ShiftTop\");\n }\n return e;\n },\n open: function (t) {\n var e = this;\n this.reset && (this.setInitialSize(), this.shiftLeft = 0, this.shiftTop = 0), this.scrollable && document.body.classList.add(\"vm--block-scroll\");\n var n = !1,\n i = this.createModalEvent({\n cancel: function () {\n n = !0;\n },\n state: \"before-open\",\n params: t\n });\n this.$emit(\"before-open\", i), n ? this.scrollable && document.body.classList.remove(\"vm--block-scroll\") : (\"undefined\" != typeof document && document.activeElement && \"BODY\" !== document.activeElement.tagName && document.activeElement.blur && document.activeElement.blur(), this.visible = !0, this.$nextTick(function () {\n e.startTransitionEnter();\n }));\n },\n close: function (t) {\n this.scrollable && document.body.classList.remove(\"vm--block-scroll\");\n var e = !1,\n n = this.createModalEvent({\n cancel: function () {\n e = !0;\n },\n state: \"before-close\",\n params: t\n });\n this.$emit(\"before-close\", n), e || this.startTransitionLeave();\n },\n toggle: function (t, e) {\n this.visible !== t && (t ? this.open(e) : this.close(e));\n },\n getDraggableElement: function () {\n return !0 === this.draggable ? this.$refs.modal : \"string\" == typeof this.draggable ? this.$refs.modal.querySelector(this.draggable) : null;\n },\n onOverlayClick: function () {\n this.clickToClose && this.toggle(!1);\n },\n addDraggableListeners: function () {\n var s = this,\n t = this.getDraggableElement();\n if (t) {\n var a = 0,\n l = 0,\n u = 0,\n c = 0,\n e = function (t) {\n var e = t.target;\n if (!(n = e) || -1 === v.indexOf(n.nodeName)) {\n var n,\n i = f(t),\n o = i.clientX,\n r = i.clientY;\n document.addEventListener(\"mousemove\", d), document.addEventListener(\"touchmove\", d), document.addEventListener(\"mouseup\", h), document.addEventListener(\"touchend\", h), a = o, l = r, u = s.shiftLeft, c = s.shiftTop;\n }\n },\n d = function (t) {\n var e = f(t),\n n = e.clientX,\n i = e.clientY;\n s.shiftLeft = u + n - a, s.shiftTop = c + i - l, t.preventDefault();\n },\n h = function t(e) {\n s.ensureShiftInWindowBounds(), document.removeEventListener(\"mousemove\", d), document.removeEventListener(\"touchmove\", d), document.removeEventListener(\"mouseup\", t), document.removeEventListener(\"touchend\", t), e.preventDefault();\n };\n t.addEventListener(\"mousedown\", e), t.addEventListener(\"touchstart\", e);\n }\n },\n ensureShiftInWindowBounds: function () {\n var t = this.viewportHeight,\n e = this.viewportWidth,\n n = this.shiftLeft,\n i = this.shiftTop,\n o = this.shiftX,\n r = this.shiftY,\n s = this.trueModalWidth,\n a = this.trueModalHeight,\n l = e - s,\n u = Math.max(t - a, 0),\n c = n + o * l,\n d = i + r * u;\n this.shiftLeft -= c - h(0, l, c), this.shiftTop -= d - h(0, u, d);\n }\n }\n },\n N = (n(9), d(H, i, [], !1, null, null, null));\n N.options.__file = \"src/components/Modal.vue\";\n function D() {\n var n = this,\n t = n.$createElement,\n i = n._self._c || t;\n return i(n.$modal.context.componentName, {\n tag: \"component\",\n attrs: {\n name: \"dialog\",\n height: \"auto\",\n classes: [\"vue-dialog\", this.params.class],\n width: n.width,\n \"shift-y\": .3,\n adaptive: !0,\n \"focus-trap\": !0,\n clickToClose: n.clickToClose,\n transition: n.transition\n },\n on: {\n \"before-open\": n.beforeOpened,\n \"before-close\": n.beforeClosed,\n opened: function (t) {\n return n.$emit(\"opened\", t);\n },\n closed: function (t) {\n return n.$emit(\"closed\", t);\n }\n }\n }, [i(\"div\", {\n staticClass: \"vue-dialog-content\"\n }, [n.params.title ? i(\"div\", {\n staticClass: \"vue-dialog-content-title\",\n domProps: {\n innerHTML: n._s(n.params.title || \"\")\n }\n }) : n._e(), n._v(\" \"), n.params.component ? i(n.params.component, n._b({\n tag: \"component\"\n }, \"component\", n.params.props, !1)) : i(\"div\", {\n domProps: {\n innerHTML: n._s(n.params.text || \"\")\n }\n })], 1), n._v(\" \"), n.buttons ? i(\"div\", {\n staticClass: \"vue-dialog-buttons\"\n }, n._l(n.buttons, function (t, e) {\n return i(\"button\", {\n key: e,\n class: t.class || \"vue-dialog-button\",\n style: n.buttonStyle,\n attrs: {\n type: \"button\",\n tabindex: \"0\"\n },\n domProps: {\n innerHTML: n._s(t.title)\n },\n on: {\n click: function (t) {\n return t.stopPropagation(), n.click(e, t);\n }\n }\n }, [n._v(n._s(t.title))]);\n }), 0) : i(\"div\", {\n staticClass: \"vue-dialog-buttons-none\"\n })]);\n }\n var W = N.exports;\n D._withStripped = !0;\n var I = {\n name: \"VueJsDialog\",\n props: {\n width: {\n type: [Number, String],\n default: 400\n },\n clickToClose: {\n type: Boolean,\n default: !0\n },\n transition: {\n type: String\n }\n },\n data: function () {\n return {\n params: {}\n };\n },\n computed: {\n buttons: function () {\n return this.params.buttons || [];\n },\n buttonStyle: function () {\n return {\n flex: \"1 1 \".concat(100 / this.buttons.length, \"%\")\n };\n }\n },\n methods: {\n beforeOpened: function (t) {\n this.params = t.params || {}, this.$emit(\"before-opened\", t);\n },\n beforeClosed: function (t) {\n this.params = {}, this.$emit(\"before-closed\", t);\n },\n click: function (t, e, n) {\n var i = 2 < arguments.length && void 0 !== n ? n : \"click\",\n o = this.buttons[t],\n r = null == o ? void 0 : o.handler;\n \"function\" == typeof r && r(t, e, {\n source: i\n });\n }\n }\n },\n P = (n(11), d(I, D, [], !1, null, null, null));\n P.options.__file = \"src/components/Dialog.vue\";\n function B() {\n var n = this,\n t = n.$createElement,\n i = n._self._c || t;\n return i(\"div\", {\n attrs: {\n id: \"modals-container\"\n }\n }, n._l(n.modals, function (e) {\n return i(\"modal\", n._g(n._b({\n key: e.id,\n on: {\n closed: function (t) {\n return n.remove(e.id);\n }\n }\n }, \"modal\", e.modalAttrs, !1), e.modalListeners), [i(e.component, n._g(n._b({\n tag: \"component\",\n on: {\n close: function (t) {\n return n.$modal.hide(e.modalAttrs.name, t);\n }\n }\n }, \"component\", e.componentAttrs, !1), n.$listeners))], 1);\n }), 1);\n }\n var X = P.exports;\n function Y(t, e, n) {\n return e in t ? Object.defineProperty(t, e, {\n value: n,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = n, t;\n }\n B._withStripped = !0;\n var G = d({\n data: function () {\n return {\n modals: []\n };\n },\n created: function () {\n this.$root.__modalContainer = this;\n },\n mounted: function () {\n var t = this;\n this.$modal.subscription.$on(\"hide-all\", function () {\n t.modals = [];\n });\n },\n methods: {\n add: function (t, e, n, i) {\n var o = this,\n r = 1 < arguments.length && void 0 !== e ? e : {},\n s = 2 < arguments.length && void 0 !== n ? n : {},\n a = 3 < arguments.length && void 0 !== i ? i : {},\n l = c(),\n u = s.name || \"dynamic_modal_\" + l;\n this.modals.push({\n id: l,\n modalAttrs: function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = null != arguments[t] ? arguments[t] : {},\n i = Object.keys(n);\n \"function\" == typeof Object.getOwnPropertySymbols && (i = i.concat(Object.getOwnPropertySymbols(n).filter(function (t) {\n return Object.getOwnPropertyDescriptor(n, t).enumerable;\n }))), i.forEach(function (t) {\n Y(e, t, n[t]);\n });\n }\n return e;\n }({}, s, {\n name: u\n }),\n modalListeners: a,\n component: t,\n componentAttrs: r\n }), this.$nextTick(function () {\n o.$modal.show(u);\n });\n },\n remove: function (e) {\n var t = this.modals.findIndex(function (t) {\n return t.id === e;\n });\n -1 !== t && this.modals.splice(t, 1);\n }\n }\n }, B, [], !1, null, null, null);\n G.options.__file = \"src/components/ModalsContainer.vue\";\n var U = G.exports;\n function F(t) {\n return (F = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function q(t, e, n) {\n return e in t ? Object.defineProperty(t, e, {\n value: n,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = n, t;\n }\n var V = function (i, t) {\n function o(t, e, n, i) {\n var o,\n r = 2 < arguments.length && void 0 !== n ? n : {},\n s = 3 < arguments.length ? i : void 0,\n a = null === (o = c.root) || void 0 === o ? void 0 : o.__modalContainer,\n l = u.dynamicDefaults || {};\n null != a && a.add(t, e, function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = null != arguments[t] ? arguments[t] : {},\n i = Object.keys(n);\n \"function\" == typeof Object.getOwnPropertySymbols && (i = i.concat(Object.getOwnPropertySymbols(n).filter(function (t) {\n return Object.getOwnPropertyDescriptor(n, t).enumerable;\n }))), i.forEach(function (t) {\n q(e, t, n[t]);\n });\n }\n return e;\n }({}, l, r), s);\n }\n var u = 1 < arguments.length && void 0 !== t ? t : {},\n r = new i(),\n c = {\n root: null,\n componentName: u.componentName || \"Modal\"\n };\n return {\n context: c,\n subscription: r,\n show: function () {\n for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];\n var i = e[0];\n switch (F(i)) {\n case \"string\":\n (function (t, e) {\n r.$emit(\"toggle\", t, !0, e);\n }).apply(void 0, e);\n break;\n case \"object\":\n case \"function\":\n o.apply(void 0, e);\n break;\n default:\n console.warn(\"[vue-js-modal] $modal() received an unsupported argument as a first argument.\", i);\n }\n },\n hide: function (t, e) {\n r.$emit(\"toggle\", t, !1, e);\n },\n hideAll: function () {\n r.$emit(\"hide-all\");\n },\n toggle: function (t, e) {\n r.$emit(\"toggle\", t, void 0, e);\n },\n setDynamicModalContainer: function (t) {\n c.root = t;\n var e,\n n = (e = document.createElement(\"div\"), document.body.appendChild(e), e);\n new i({\n parent: t,\n render: function (t) {\n return t(U);\n }\n }).$mount(n);\n }\n };\n },\n K = {\n install: function (e, t) {\n var n = 1 < arguments.length && void 0 !== t ? t : {};\n if (!e.prototype.$modal) {\n var i = new V(e, n);\n if (Object.defineProperty(e.prototype, \"$modal\", {\n get: function () {\n if (this instanceof e) {\n var t = this.$root;\n i.context.root || i.setDynamicModalContainer(t);\n }\n return i;\n }\n }), e.component(i.context.componentName, W), n.dialog) {\n var o = n.dialogComponentName || \"VDialog\";\n e.component(o, X);\n }\n }\n }\n },\n J = \"__VERSION__\";\n e.default = K;\n }], o.c = i, o.d = function (t, e, n) {\n o.o(t, e) || Object.defineProperty(t, e, {\n enumerable: !0,\n get: n\n });\n }, o.r = function (t) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n }, o.t = function (e, t) {\n if (1 & t && (e = o(e)), 8 & t) return e;\n if (4 & t && \"object\" == typeof e && e && e.__esModule) return e;\n var n = Object.create(null);\n if (o.r(n), Object.defineProperty(n, \"default\", {\n enumerable: !0,\n value: e\n }), 2 & t && \"string\" != typeof e) for (var i in e) o.d(n, i, function (t) {\n return e[t];\n }.bind(null, i));\n return n;\n }, o.n = function (t) {\n var e = t && t.__esModule ? function () {\n return t.default;\n } : function () {\n return t;\n };\n return o.d(e, \"a\", e), e;\n }, o.o = function (t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }, o.p = \"/dist/\", o(o.s = 13);\n function o(t) {\n if (i[t]) return i[t].exports;\n var e = i[t] = {\n i: t,\n l: !1,\n exports: {}\n };\n return n[t].call(e.exports, e, e.exports, o), e.l = !0, e.exports;\n }\n var n, i;\n});","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param {*} value - the value to check\n * @returns {boolean} true if the given value is a date\n * @throws {TypeError} 1 arguments required\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport default function isDate(value) {\n requiredArgs(1, arguments);\n return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';\n}","import toDate from \"../toDate/index.js\";\nimport endOfDay from \"../endOfDay/index.js\";\nimport endOfMonth from \"../endOfMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nexport default function isLastDayOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n return endOfDay(date).getTime() === endOfMonth(date).getTime();\n}","import { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport differenceInMonths from \"../differenceInMonths/index.js\";\nimport differenceInSeconds from \"../differenceInSeconds/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MINUTES_IN_DAY = 1440;\nvar MINUTES_IN_ALMOST_TWO_DAYS = 2520;\nvar MINUTES_IN_MONTH = 43200;\nvar MINUTES_IN_TWO_MONTHS = 86400;\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\n\nexport default function formatDistance(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale;\n requiredArgs(2, arguments);\n var defaultOptions = getDefaultOptions();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain formatDistance property');\n }\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n var localizeOptions = assign(cloneObject(options), {\n addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n comparison: comparison\n });\n var dateLeft;\n var dateRight;\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n var seconds = differenceInSeconds(dateRight, dateLeft);\n var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000;\n var minutes = Math.round((seconds - offsetInSeconds) / 60);\n var months;\n\n // 0 up to 2 mins\n if (minutes < 2) {\n if (options !== null && options !== void 0 && options.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance('halfAMinute', 0, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', minutes, localizeOptions);\n }\n }\n\n // 2 mins up to 0.75 hrs\n } else if (minutes < 45) {\n return locale.formatDistance('xMinutes', minutes, localizeOptions);\n\n // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance('aboutXHours', 1, localizeOptions);\n\n // 1.5 hrs up to 24 hrs\n } else if (minutes < MINUTES_IN_DAY) {\n var hours = Math.round(minutes / 60);\n return locale.formatDistance('aboutXHours', hours, localizeOptions);\n\n // 1 day up to 1.75 days\n } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {\n return locale.formatDistance('xDays', 1, localizeOptions);\n\n // 1.75 days up to 30 days\n } else if (minutes < MINUTES_IN_MONTH) {\n var days = Math.round(minutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions);\n\n // 1 month up to 2 months\n } else if (minutes < MINUTES_IN_TWO_MONTHS) {\n months = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('aboutXMonths', months, localizeOptions);\n }\n months = differenceInMonths(dateRight, dateLeft);\n\n // 2 months up to 12 months\n if (months < 12) {\n var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('xMonths', nearestMonth, localizeOptions);\n\n // 1 year up to max Date\n } else {\n var monthsSinceStartOfYear = months % 12;\n var years = Math.floor(months / 12);\n\n // N years up to 1 years 3 months\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance('aboutXYears', years, localizeOptions);\n\n // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance('overXYears', years, localizeOptions);\n\n // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance('almostXYears', years + 1, localizeOptions);\n }\n }\n}","import { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale, _options$roundingMeth;\n requiredArgs(2, arguments);\n var defaultOptions = getDefaultOptions();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n var localizeOptions = assign(cloneObject(options), {\n addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n comparison: comparison\n });\n var dateLeft;\n var dateRight;\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n var roundingMethod = String((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : 'round');\n var roundingMethodFn;\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var defaultUnit = options === null || options === void 0 ? void 0 : options.unit;\n var unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(defaultUnit);\n }\n\n // 0 up to 60 seconds\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && defaultUnit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions);\n\n // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","(function webpackUniversalModuleDefinition(root, factory) {\n if (typeof exports === 'object' && typeof module === 'object') module.exports = factory();else if (typeof define === 'function' && define.amd) define([], factory);else {\n var a = factory();\n for (var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n }\n})(typeof self !== 'undefined' ? self : this, function () {\n return (/******/function (modules) {\n // webpackBootstrap\n /******/ // The module cache\n /******/\n var installedModules = {};\n /******/\n /******/ // The require function\n /******/\n function __webpack_require__(moduleId) {\n /******/\n /******/ // Check if module is in cache\n /******/if (installedModules[moduleId]) {\n /******/return installedModules[moduleId].exports;\n /******/\n }\n /******/ // Create a new module (and put it into the cache)\n /******/\n var module = installedModules[moduleId] = {\n /******/i: moduleId,\n /******/l: false,\n /******/exports: {}\n /******/\n };\n /******/\n /******/ // Execute the module function\n /******/\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n /******/ // Flag the module as loaded\n /******/\n module.l = true;\n /******/\n /******/ // Return the exports of the module\n /******/\n return module.exports;\n /******/\n }\n /******/\n /******/\n /******/ // expose the modules object (__webpack_modules__)\n /******/\n __webpack_require__.m = modules;\n /******/\n /******/ // expose the module cache\n /******/\n __webpack_require__.c = installedModules;\n /******/\n /******/ // define getter function for harmony exports\n /******/\n __webpack_require__.d = function (exports, name, getter) {\n /******/if (!__webpack_require__.o(exports, name)) {\n /******/Object.defineProperty(exports, name, {\n enumerable: true,\n get: getter\n });\n /******/\n }\n /******/\n };\n /******/\n /******/ // define __esModule on exports\n /******/\n __webpack_require__.r = function (exports) {\n /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/Object.defineProperty(exports, Symbol.toStringTag, {\n value: 'Module'\n });\n /******/\n }\n /******/\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n /******/\n };\n /******/\n /******/ // create a fake namespace object\n /******/ // mode & 1: value is a module id, require it\n /******/ // mode & 2: merge all properties of value into the ns\n /******/ // mode & 4: return value when already ns object\n /******/ // mode & 8|1: behave like require\n /******/\n __webpack_require__.t = function (value, mode) {\n /******/if (mode & 1) value = __webpack_require__(value);\n /******/\n if (mode & 8) return value;\n /******/\n if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value;\n /******/\n var ns = Object.create(null);\n /******/\n __webpack_require__.r(ns);\n /******/\n Object.defineProperty(ns, 'default', {\n enumerable: true,\n value: value\n });\n /******/\n if (mode & 2 && typeof value != 'string') for (var key in value) __webpack_require__.d(ns, key, function (key) {\n return value[key];\n }.bind(null, key));\n /******/\n return ns;\n /******/\n };\n /******/\n /******/ // getDefaultExport function for compatibility with non-harmony modules\n /******/\n __webpack_require__.n = function (module) {\n /******/var getter = module && module.__esModule ? /******/function getDefault() {\n return module['default'];\n } : /******/function getModuleExports() {\n return module;\n };\n /******/\n __webpack_require__.d(getter, 'a', getter);\n /******/\n return getter;\n /******/\n };\n /******/\n /******/ // Object.prototype.hasOwnProperty.call\n /******/\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n /******/\n /******/ // __webpack_public_path__\n /******/\n __webpack_require__.p = \"\";\n /******/\n /******/\n /******/ // Load entry module and return exports\n /******/\n return __webpack_require__(__webpack_require__.s = 0);\n /******/\n }\n /************************************************************************/\n /******/([/* 0 */\n /***/function (module, __webpack_exports__, __webpack_require__) {\n \"use strict\";\n\n __webpack_require__.r(__webpack_exports__);\n var string_namespaceObject = {};\n __webpack_require__.r(string_namespaceObject);\n __webpack_require__.d(string_namespaceObject, \"capitalize\", function () {\n return string_capitalize;\n });\n __webpack_require__.d(string_namespaceObject, \"uppercase\", function () {\n return string_uppercase;\n });\n __webpack_require__.d(string_namespaceObject, \"lowercase\", function () {\n return string_lowercase;\n });\n __webpack_require__.d(string_namespaceObject, \"placeholder\", function () {\n return string_placeholder;\n });\n __webpack_require__.d(string_namespaceObject, \"truncate\", function () {\n return string_truncate;\n });\n var other_namespaceObject = {};\n __webpack_require__.r(other_namespaceObject);\n __webpack_require__.d(other_namespaceObject, \"currency\", function () {\n return other_currency;\n });\n __webpack_require__.d(other_namespaceObject, \"bytes\", function () {\n return other_bytes;\n });\n __webpack_require__.d(other_namespaceObject, \"pluralize\", function () {\n return other_pluralize;\n });\n __webpack_require__.d(other_namespaceObject, \"ordinal\", function () {\n return other_ordinal;\n });\n __webpack_require__.d(other_namespaceObject, \"number\", function () {\n return other_number;\n });\n __webpack_require__.d(other_namespaceObject, \"percent\", function () {\n return other_percent;\n });\n\n // CONCATENATED MODULE: ./src/util/index.js\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n }\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n }\n function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n }\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n }\n }\n function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n }\n var ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n var slice = ArrayProto.slice,\n util_toString = ObjProto.toString;\n var util = {};\n util.isArray = function (obj) {\n return Array.isArray(obj);\n };\n var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n util.isArrayLike = function (obj) {\n if (_typeof(obj) !== 'object' || !obj) {\n return false;\n }\n var length = obj.length;\n return typeof length === 'number' && length % 1 === 0 && length >= 0 && length <= MAX_ARRAY_INDEX;\n };\n util.isObject = function (obj) {\n var type = _typeof(obj);\n return type === 'function' || type === 'object' && !!obj;\n };\n util.each = function (obj, callback) {\n var i, len;\n if (util.isArray(obj)) {\n for (i = 0, len = obj.length; i < len; i++) {\n if (callback(obj[i], i, obj) === false) {\n break;\n }\n }\n } else {\n for (i in obj) {\n if (callback(obj[i], i, obj) === false) {\n break;\n }\n }\n }\n return obj;\n };\n util.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function (name) {\n util['is' + name] = function (obj) {\n return util_toString.call(obj) === '[object ' + name + ']';\n };\n });\n util.toArray = function (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret;\n };\n util.toNumber = function (value) {\n if (typeof value !== 'string') {\n return value;\n } else {\n var parsed = Number(value);\n return isNaN(parsed) ? value : parsed;\n }\n };\n util.convertRangeToArray = function (range) {\n return _toConsumableArray(Array(range + 1).keys()).slice(1);\n };\n util.convertArray = function (value) {\n if (util.isArray(value)) {\n return value;\n } else if (util.isPlainObject(value)) {\n // convert plain object to array.\n var keys = Object.keys(value);\n var i = keys.length;\n var res = new Array(i);\n var key;\n while (i--) {\n key = keys[i];\n res[i] = {\n $key: key,\n $value: value[key]\n };\n }\n return res;\n } else {\n return value || [];\n }\n };\n function multiIndex(obj, is) {\n // obj,['1','2','3'] -> ((obj['1'])['2'])['3']\n return is.length ? multiIndex(obj[is[0]], is.slice(1)) : obj;\n }\n util.getPath = function (obj, is) {\n // obj,'1.2.3' -> multiIndex(obj,['1','2','3'])\n return multiIndex(obj, is.split('.'));\n };\n /**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n *\n * @param {*} obj\n * @return {Boolean}\n */\n\n var util_toString = Object.prototype.toString;\n var OBJECT_STRING = '[object Object]';\n util.isPlainObject = function (obj) {\n return util_toString.call(obj) === OBJECT_STRING;\n };\n util.exist = function (value) {\n return value !== null && typeof value !== 'undefined';\n };\n\n /* harmony default export */\n var src_util = util;\n // CONCATENATED MODULE: ./src/string/capitalize.js\n /**\n * Converts a string into Capitalize\n * \n * 'abc' => 'Abc'\n * \n * @param {Object} options\n */\n function capitalize(value, options) {\n var globalOptions = this && this.capitalize ? this.capitalize : {};\n options = options || globalOptions;\n var onlyFirstLetter = options.onlyFirstLetter != null ? options.onlyFirstLetter : false;\n if (!value && value !== 0) return '';\n if (onlyFirstLetter === true) {\n return value.toString().charAt(0).toUpperCase() + value.toString().slice(1);\n } else {\n value = value.toString().toLowerCase().split(' ');\n return value.map(function (item) {\n return item.charAt(0).toUpperCase() + item.slice(1);\n }).join(' ');\n }\n }\n\n /* harmony default export */\n var string_capitalize = capitalize;\n // CONCATENATED MODULE: ./src/string/uppercase.js\n /**\n * Converts a string to UPPERCASE\n * \n * 'abc' => 'ABC'\n */\n function uppercase(value) {\n return value || value === 0 ? value.toString().toUpperCase() : '';\n }\n\n /* harmony default export */\n var string_uppercase = uppercase;\n // CONCATENATED MODULE: ./src/string/lowercase.js\n /**\n * Converts a string to lowercase\n * \n * 'AbC' => 'abc'\n */\n function lowercase(value) {\n return value || value === 0 ? value.toString().toLowerCase() : '';\n }\n\n /* harmony default export */\n var string_lowercase = lowercase;\n // CONCATENATED MODULE: ./src/string/placeholder.js\n /**\n * If the value is missing outputs the placeholder text\n * \n * '' => {placeholder}\n * 'foo' => 'foo'\n */\n function placeholder(input, property) {\n return input === undefined || input === '' || input === null ? property : input;\n }\n\n /* harmony default export */\n var string_placeholder = placeholder;\n // CONCATENATED MODULE: ./src/string/truncate.js\n /**\n * Truncate at the given || default length\n *\n * 'lorem ipsum dolor' => 'lorem ipsum dol...'\n */\n function truncate(value, length) {\n length = length || 15;\n if (!value || typeof value !== 'string') return '';\n if (value.length <= length) return value;\n return value.substring(0, length) + '...';\n }\n\n /* harmony default export */\n var string_truncate = truncate;\n // CONCATENATED MODULE: ./src/string/index.js\n\n // CONCATENATED MODULE: ./src/array/limitBy.js\n\n /**\n * Limit filter for arrays\n *\n * @param {Number|Array} arr (If Number, decimal expected)\n * @param {Number} n\n * @param {Number} offset (Decimal expected)\n */\n\n function limitBy(arr, n, offset) {\n arr = src_util.isArray(arr) ? arr : src_util.convertRangeToArray(arr);\n offset = offset ? parseInt(offset, 10) : 0;\n n = src_util.toNumber(n);\n return typeof n === 'number' ? arr.slice(offset, offset + n) : arr;\n }\n\n /* harmony default export */\n var array_limitBy = limitBy;\n // CONCATENATED MODULE: ./src/array/filterBy.js\n\n /**\n * Filter filter for arrays\n *\n * @param {Array} arr\n * @param {String} prop\n * @param {String|Number} search\n */\n\n function filterBy(arr, search) {\n var arr = src_util.convertArray(arr);\n if (search == null) {\n return arr;\n }\n if (typeof search === 'function') {\n return arr.filter(search);\n } // cast to lowercase string\n\n search = ('' + search).toLowerCase();\n var n = 2; // extract and flatten keys\n\n var keys = Array.prototype.concat.apply([], src_util.toArray(arguments, n));\n var res = [];\n var item, key, val, j;\n for (var i = 0, l = arr.length; i < l; i++) {\n item = arr[i];\n val = item && item.$value || item;\n j = keys.length;\n if (j) {\n while (j--) {\n key = keys[j];\n if (key === '$key' && contains(item.$key, search) || contains(src_util.getPath(val, key), search)) {\n res.push(item);\n break;\n }\n }\n } else if (contains(item, search)) {\n res.push(item);\n }\n }\n return res;\n }\n function contains(val, search) {\n var i;\n if (src_util.isPlainObject(val)) {\n var keys = Object.keys(val);\n i = keys.length;\n while (i--) {\n if (contains(val[keys[i]], search)) {\n return true;\n }\n }\n } else if (src_util.isArray(val)) {\n i = val.length;\n while (i--) {\n if (contains(val[i], search)) {\n return true;\n }\n }\n } else if (val != null) {\n return val.toString().toLowerCase().indexOf(search) > -1;\n }\n }\n\n /* harmony default export */\n var array_filterBy = filterBy;\n // CONCATENATED MODULE: ./src/array/orderBy.js\n\n /**\n * Filter filter for arrays\n *\n * @param {String|Array|Function} ...sortKeys\n * @param {Number} [order]\n */\n\n function orderBy(arr) {\n var _comparator = null;\n var sortKeys;\n arr = src_util.convertArray(arr); // determine order (last argument)\n\n var args = src_util.toArray(arguments, 1);\n var order = args[args.length - 1];\n if (typeof order === 'number') {\n order = order < 0 ? -1 : 1;\n args = args.length > 1 ? args.slice(0, -1) : args;\n } else {\n order = 1;\n } // determine sortKeys & comparator\n\n var firstArg = args[0];\n if (!firstArg) {\n return arr;\n } else if (typeof firstArg === 'function') {\n // custom comparator\n _comparator = function comparator(a, b) {\n return firstArg(a, b) * order;\n };\n } else {\n // string keys. flatten first\n sortKeys = Array.prototype.concat.apply([], args);\n _comparator = function comparator(a, b, i) {\n i = i || 0;\n return i >= sortKeys.length - 1 ? baseCompare(a, b, i) : baseCompare(a, b, i) || _comparator(a, b, i + 1);\n };\n }\n function baseCompare(a, b, sortKeyIndex) {\n var sortKey = sortKeys[sortKeyIndex];\n if (sortKey) {\n if (sortKey !== '$key') {\n if (src_util.isObject(a) && '$value' in a) a = a.$value;\n if (src_util.isObject(b) && '$value' in b) b = b.$value;\n }\n a = src_util.isObject(a) ? src_util.getPath(a, sortKey) : a;\n b = src_util.isObject(b) ? src_util.getPath(b, sortKey) : b;\n a = typeof a === 'string' ? a.toLowerCase() : a;\n b = typeof b === 'string' ? b.toLowerCase() : b;\n }\n return a === b ? 0 : a > b ? order : -order;\n } // sort on a copy to avoid mutating original array\n\n return arr.slice().sort(_comparator);\n }\n\n /* harmony default export */\n var array_orderBy = orderBy;\n // CONCATENATED MODULE: ./src/array/find.js\n\n /**\n * Get first matching element from a filtered array\n *\n * @param {Array} arr\n * @param {String|Number} search\n * @returns {mixed}\n */\n\n function find(arr, search) {\n var array = array_filterBy.apply(this, arguments);\n array.splice(1);\n return array;\n }\n\n /* harmony default export */\n var array_find = find;\n // CONCATENATED MODULE: ./src/array/index.js\n\n // CONCATENATED MODULE: ./src/other/currency.js\n\n /**\n * \n * 12345 => $12,345.00\n *\n * @param {String} symbol\n * @param {Number} decimals Decimal places\n * @param {Object} options\n */\n\n function currency(value, symbol, decimals, options) {\n var globalOptions = this && this.currency ? this.currency : {};\n symbol = src_util.exist(symbol) ? symbol : globalOptions.symbol;\n decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;\n options = options || globalOptions;\n var thousandsSeparator, symbolOnLeft, spaceBetweenAmountAndSymbol, showPlusSign;\n var digitsRE = /(\\d{3})(?=\\d)/g;\n value = parseFloat(value);\n if (!isFinite(value) || !value && value !== 0) return '';\n symbol = typeof symbol !== 'undefined' ? symbol : '$';\n decimals = typeof decimals !== 'undefined' ? decimals : 2;\n thousandsSeparator = options.thousandsSeparator != null ? options.thousandsSeparator : ',';\n symbolOnLeft = options.symbolOnLeft != null ? options.symbolOnLeft : true;\n spaceBetweenAmountAndSymbol = options.spaceBetweenAmountAndSymbol != null ? options.spaceBetweenAmountAndSymbol : false;\n showPlusSign = options.showPlusSign != null ? options.showPlusSign : false;\n var number = Math.abs(value);\n var stringified = toFixed(number, decimals);\n stringified = options.decimalSeparator ? stringified.replace('.', options.decimalSeparator) : stringified;\n var _int = decimals ? stringified.slice(0, -1 - decimals) : stringified;\n var i = _int.length % 3;\n var head = i > 0 ? _int.slice(0, i) + (_int.length > 3 ? thousandsSeparator : '') : '';\n var _float = decimals ? stringified.slice(-1 - decimals) : '';\n symbol = spaceBetweenAmountAndSymbol ? symbolOnLeft ? symbol + ' ' : ' ' + symbol : symbol;\n symbol = symbolOnLeft ? symbol + head + _int.slice(i).replace(digitsRE, '$1' + thousandsSeparator) + _float : head + _int.slice(i).replace(digitsRE, '$1' + thousandsSeparator) + _float + symbol;\n var sign = value < 0 ? '-' : '';\n var plusSign = value > 0 && showPlusSign ? '+' : '';\n return plusSign + sign + symbol;\n }\n function toFixed(num, precision) {\n return (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision)).toFixed(precision);\n }\n\n /* harmony default export */\n var other_currency = currency;\n // CONCATENATED MODULE: ./src/other/bytes.js\n\n /**\n * 1 => '8 byte'\n * 8 => '8 bytes'\n * 1024 => '1.00 kB'\n * 2000000 => '1.90 MB'\n * 2000000000 => '1.86 GB'\n * 2000000000000 => '1.82 TB'\n *\n * @param {Number} value\n * @param {Number} decimals Decimal places (default: 2)\n */\n\n function bytes(value, decimals) {\n var globalOptions = this && this.bytes ? this.bytes : {};\n decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;\n decimals = typeof decimals !== 'undefined' ? decimals : 2;\n value = value === null || isNaN(value) ? 0 : value;\n if (value >= Math.pow(1024, 4)) {\n // TB\n return \"\".concat((value / Math.pow(1024, 4)).toFixed(decimals), \" TB\");\n } else if (value >= Math.pow(1024, 3)) {\n // GB\n return \"\".concat((value / Math.pow(1024, 3)).toFixed(decimals), \" GB\");\n } else if (value >= Math.pow(1024, 2)) {\n // MB\n return \"\".concat((value / Math.pow(1024, 2)).toFixed(decimals), \" MB\");\n } else if (value >= 1024) {\n // kb\n return \"\".concat((value / 1024).toFixed(decimals), \" kB\");\n } // byte\n\n return value === 1 ? \"\".concat(value, \" byte\") : \"\".concat(value, \" bytes\");\n }\n\n /* harmony default export */\n var other_bytes = bytes;\n // CONCATENATED MODULE: ./src/other/pluralize.js\n\n /**\n * 'item' => 'items'\n *\n * @param {String|Array} word\n * @param {Object} options\n *\n */\n\n function pluralize(value, word, options) {\n var globalOptions = this && this.pluralize ? this.pluralize : {};\n options = options || globalOptions;\n var output = '';\n var includeNumber = options.includeNumber != null ? options.includeNumber : false;\n if (includeNumber === true) output += value + ' ';\n if (!value && value !== 0 || !word) return output;\n if (Array.isArray(word)) {\n output += word[value - 1] || word[word.length - 1];\n } else {\n output += word + (value === 1 ? '' : 's');\n }\n return output;\n }\n\n /* harmony default export */\n var other_pluralize = pluralize;\n // CONCATENATED MODULE: ./src/other/ordinal.js\n\n /**\n * 42 => 'nd'\n *\n * @params {Object} options\n * \n */\n\n function ordinal(value, options) {\n var globalOptions = this && this.ordinal ? this.ordinal : {};\n options = options || globalOptions;\n var output = '';\n var includeNumber = options.includeNumber != null ? options.includeNumber : false;\n if (includeNumber === true) output += value;\n var j = value % 10,\n k = value % 100;\n if (j == 1 && k != 11) output += 'st';else if (j == 2 && k != 12) output += 'nd';else if (j == 3 && k != 13) output += 'rd';else output += 'th';\n return output;\n }\n\n /* harmony default export */\n var other_ordinal = ordinal;\n // CONCATENATED MODULE: ./src/other/number.js\n\n /**\n * 123456 => '123,456'\n *\n * @params {Object} options\n *\n */\n\n function number_number(value, format, options) {\n var globalOptions = this && this.number ? this.number : {};\n format = src_util.exist(format) ? format : globalOptions.format;\n options = options || globalOptions;\n var config = parseFormat(format);\n var number = parseNumber(value);\n var thousandsSeparator = options.thousandsSeparator != null ? options.thousandsSeparator : ',';\n var decimalSeparator = options.decimalSeparator != null ? options.decimalSeparator : '.';\n config.sign = config.sign || number.sign;\n if (config.unit) {\n var numberWithUnit = addUnit(number.float, config);\n return config.sign + numberWithUnit;\n }\n var rounded = number_toFixed(number.float, config.decimals);\n var output = addSeparators(rounded, config.base, thousandsSeparator, decimalSeparator);\n return config.sign + output;\n }\n Math.sign = function (x) {\n x = +x;\n if (x === 0 || isNaN(x)) {\n return x;\n }\n return x > 0 ? 1 : -1;\n };\n function parseNumber(num) {\n return {\n float: Math.abs(parseFloat(num)),\n int: Math.abs(parseInt(num)),\n sign: Math.sign(num) < 0 ? '-' : ''\n };\n }\n function parseFormat() {\n var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '0';\n var regex = /([\\+\\-])?([0-9\\,]+)?([\\.0-9]+)?([a\\s]+)?/;\n var matches = string ? string.match(regex) : ['', '', '', '', ''];\n var float = matches[3];\n var decimals = float ? float.match(/0/g).length : 0;\n return {\n sign: matches[1] || '',\n base: matches[2] || '',\n decimals: decimals,\n unit: matches[4] || ''\n };\n }\n function addUnit(num, config) {\n var rx = /\\.0+$|(\\.[0-9]*[1-9])0+$/;\n var si = [{\n value: 1,\n symbol: ''\n }, {\n value: 1e3,\n symbol: 'K'\n }, {\n value: 1e6,\n symbol: 'M'\n }];\n var i;\n for (i = si.length - 1; i > 0; i--) {\n if (num >= si[i].value) {\n break;\n }\n }\n num = (num / si[i].value).toFixed(config.decimals).replace(rx, '$1');\n return num + config.unit.replace('a', si[i].symbol);\n }\n function addSeparators(num, base, thousandsSeparator, decimalSeparator) {\n var regex = /(\\d+)(\\d{3})/;\n var string = num.toString();\n var x = string.split('.');\n var x1 = x[0];\n var x2 = x.length > 1 ? decimalSeparator + x[1] : '';\n switch (base) {\n case '':\n x1 = '';\n break;\n case '0,0':\n while (regex.test(x1)) {\n x1 = x1.replace(regex, '$1' + thousandsSeparator + '$2');\n }\n break;\n }\n return x1 + x2;\n }\n function getFraction(num, decimals, separator) {\n var fraction = number_toFixed(num, decimals).toString().split('.')[1];\n return fraction ? separator + fraction : '';\n }\n function number_toFixed(num, precision) {\n return (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision)).toFixed(precision);\n }\n\n /* harmony default export */\n var other_number = number_number;\n // CONCATENATED MODULE: ./src/other/percent.js\n\n /**\n * 1.2 => '120%'\n * -0.2 => '-20%'\n * 100 => '10000%'\n * 1 => '100%'\n * 0.97 => '97%'\n *\n * @param {Number} value\n * @param {Number} decimals Decimal places (default: 2)\n */\n\n function percent(value, decimals, multiplier) {\n var globalOptions = this && this.percent ? this.percent : {};\n multiplier = src_util.exist(multiplier) ? multiplier : globalOptions.multiplier;\n multiplier = typeof multiplier !== 'undefined' ? multiplier : 100;\n decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;\n decimals = typeof decimals !== 'undefined' ? decimals : 0;\n value = value === null || isNaN(value) ? 0 : value;\n return \"\".concat((value * multiplier).toFixed(decimals), \"%\");\n }\n\n /* harmony default export */\n var other_percent = percent;\n // CONCATENATED MODULE: ./src/other/index.js\n\n // CONCATENATED MODULE: ./src/index.js\n\n var Vue2Filters = {\n install: function install(Vue, options) {\n src_util.each(string_namespaceObject, function (value, key) {\n Vue.filter(key, value.bind(options));\n });\n src_util.each(other_namespaceObject, function (value, key) {\n Vue.filter(key, value.bind(options));\n });\n },\n mixin: {\n methods: {\n limitBy: array_limitBy,\n filterBy: array_filterBy,\n orderBy: array_orderBy,\n find: array_find\n }\n }\n };\n /* harmony default export */\n var src = __webpack_exports__[\"default\"] = Vue2Filters;\n if (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(Vue2Filters);\n window.Vue2Filters = Vue2Filters;\n }\n\n /***/\n }\n /******/])\n );\n});","export default function buildMatchPatternFn(args) {\n return function (string) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n var matchedString = matchResult[0];\n var parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\n value = options.valueCallback ? options.valueCallback(value) : value;\n var rest = string.slice(matchedString.length);\n return {\n value: value,\n rest: rest\n };\n };\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nexport default function getUTCISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getUTCFullYear();\n var fourthOfJanuaryOfNextYear = new Date(0);\n fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);\n var fourthOfJanuaryOfThisYear = new Date(0);\n fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(object) {\n return assign({}, object);\n}","import {\n Line,\n mixins\n} from 'vue-chartjs'\nconst {\n reactiveProp\n} = mixins\n\nexport default {\n extends: Line,\n mixins: [reactiveProp],\n data: () => ({\n options: {\n responsive: true,\n maintainAspectRatio: false,\n legend: {\n position: 'bottom'\n }\n }\n }),\n mounted() {\n this.renderChart(this.chartData, this.options)\n }\n}","import assign from 'nano-assign';\nvar index = {\n name: 'StepIndicator',\n functional: true,\n props: {\n total: {\n type: Number,\n required: true\n },\n current: {\n type: Number,\n required: true\n },\n currentColor: {\n type: String,\n default: 'rgb(68, 0, 204)'\n },\n defaultColor: {\n type: String,\n default: 'rgb(130, 140, 153)'\n },\n handleClick: {\n type: Function\n }\n },\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data;\n var steps = [];\n var _loop = function _loop(i) {\n var color = i === props.current ? props.currentColor : props.defaultColor;\n steps.push(h('div', {\n class: 'step-indicator',\n style: {\n color: color,\n borderColor: color\n },\n on: {\n click: function click() {\n return props.handleClick && props.handleClick(i);\n }\n }\n }, [i + 1]));\n };\n for (var i = 0; i < props.total; i++) {\n _loop(i);\n }\n var attrs = assign({}, data, {\n class: ['step-indicators', data.class]\n });\n return h('div', attrs, [h('span', {\n class: 'step-indicators-line'\n })].concat(steps));\n }\n};\nexport default index;","import window from 'global/window';\nvar atob = function atob(s) {\n return window.atob ? window.atob(s) : Buffer.from(s, 'base64').toString('binary');\n};\nexport default function decodeB64ToUint8Array(b64Text) {\n var decodedString = atob(b64Text);\n var array = new Uint8Array(decodedString.length);\n for (var i = 0; i < decodedString.length; i++) {\n array[i] = decodedString.charCodeAt(i);\n }\n return array;\n}","var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'menos de um segundo',\n other: 'menos de {{count}} segundos'\n },\n xSeconds: {\n one: '1 segundo',\n other: '{{count}} segundos'\n },\n halfAMinute: 'meio minuto',\n lessThanXMinutes: {\n one: 'menos de um minuto',\n other: 'menos de {{count}} minutos'\n },\n xMinutes: {\n one: '1 minuto',\n other: '{{count}} minutos'\n },\n aboutXHours: {\n one: 'cerca de 1 hora',\n other: 'cerca de {{count}} horas'\n },\n xHours: {\n one: '1 hora',\n other: '{{count}} horas'\n },\n xDays: {\n one: '1 dia',\n other: '{{count}} dias'\n },\n aboutXWeeks: {\n one: 'cerca de 1 semana',\n other: 'cerca de {{count}} semanas'\n },\n xWeeks: {\n one: '1 semana',\n other: '{{count}} semanas'\n },\n aboutXMonths: {\n one: 'cerca de 1 mês',\n other: 'cerca de {{count}} meses'\n },\n xMonths: {\n one: '1 mês',\n other: '{{count}} meses'\n },\n aboutXYears: {\n one: 'cerca de 1 ano',\n other: 'cerca de {{count}} anos'\n },\n xYears: {\n one: '1 ano',\n other: '{{count}} anos'\n },\n overXYears: {\n one: 'mais de 1 ano',\n other: 'mais de {{count}} anos'\n },\n almostXYears: {\n one: 'quase 1 ano',\n other: 'quase {{count}} anos'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', String(count));\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'em ' + result;\n } else {\n return 'há ' + result;\n }\n }\n return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: \"EEEE, d 'de' MMMM 'de' y\",\n long: \"d 'de' MMMM 'de' y\",\n medium: 'd MMM y',\n short: 'dd/MM/yyyy'\n};\nvar timeFormats = {\n full: 'HH:mm:ss zzzz',\n long: 'HH:mm:ss z',\n medium: 'HH:mm:ss',\n short: 'HH:mm'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'às' {{time}}\",\n long: \"{{date}} 'às' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;","var formatRelativeLocale = {\n lastWeek: function lastWeek(date) {\n var weekday = date.getUTCDay();\n var last = weekday === 0 || weekday === 6 ? 'último' : 'última';\n return \"'\" + last + \"' eeee 'às' p\";\n },\n yesterday: \"'ontem às' p\",\n today: \"'hoje às' p\",\n tomorrow: \"'amanhã às' p\",\n nextWeek: \"eeee 'às' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, _baseDate, _options) {\n var format = formatRelativeLocale[token];\n if (typeof format === 'function') {\n return format(date);\n }\n return format;\n};\nexport default formatRelative;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['AC', 'DC'],\n abbreviated: ['AC', 'DC'],\n wide: ['antes de cristo', 'depois de cristo']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['T1', 'T2', 'T3', 'T4'],\n wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre']\n};\nvar monthValues = {\n narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'],\n abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'],\n wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro']\n};\nvar dayValues = {\n narrow: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],\n short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sab'],\n abbreviated: ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado'],\n wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mn',\n noon: 'md',\n morning: 'manhã',\n afternoon: 'tarde',\n evening: 'tarde',\n night: 'noite'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'meia-noite',\n noon: 'meio-dia',\n morning: 'manhã',\n afternoon: 'tarde',\n evening: 'tarde',\n night: 'noite'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'meia-noite',\n noon: 'meio-dia',\n morning: 'manhã',\n afternoon: 'tarde',\n evening: 'tarde',\n night: 'noite'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mn',\n noon: 'md',\n morning: 'da manhã',\n afternoon: 'da tarde',\n evening: 'da tarde',\n night: 'da noite'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'meia-noite',\n noon: 'meio-dia',\n morning: 'da manhã',\n afternoon: 'da tarde',\n evening: 'da tarde',\n night: 'da noite'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'meia-noite',\n noon: 'meio-dia',\n morning: 'da manhã',\n afternoon: 'da tarde',\n evening: 'da tarde',\n night: 'da noite'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, options) {\n var number = Number(dirtyNumber);\n if ((options === null || options === void 0 ? void 0 : options.unit) === 'week') {\n return number + 'ª';\n }\n return number + 'º';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Portuguese locale (Brazil).\n * @language Portuguese\n * @iso-639-2 por\n * @author Lucas Duailibe [@duailibe]{@link https://github.com/duailibe}\n * @author Yago Carballo [@yagocarballo]{@link https://github.com/YagoCarballo}\n */\nvar locale = {\n code: 'pt-BR',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1\n }\n};\nexport default locale;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)[ºªo]?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(ac|dc|a|d)/i,\n abbreviated: /^(a\\.?\\s?c\\.?|d\\.?\\s?c\\.?)/i,\n wide: /^(antes de cristo|depois de cristo)/i\n};\nvar parseEraPatterns = {\n any: [/^ac/i, /^dc/i],\n wide: [/^antes de cristo/i, /^depois de cristo/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^T[1234]/i,\n wide: /^[1234](º)? trimestre/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmajsond]/i,\n abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,\n wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i\n};\nvar parseMonthPatterns = {\n narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n any: [/^ja/i, /^fev/i, /^mar/i, /^abr/i, /^mai/i, /^jun/i, /^jul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dez/i]\n};\nvar matchDayPatterns = {\n narrow: /^(dom|[23456]ª?|s[aá]b)/i,\n short: /^(dom|[23456]ª?|s[aá]b)/i,\n abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,\n wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i\n};\nvar parseDayPatterns = {\n short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],\n narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],\n any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,\n any: /^([ap]\\.?\\s?m\\.?|meia[-\\s]noite|meio[-\\s]dia|(da) (manhã|tarde|noite))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mn|^meia[-\\s]noite/i,\n noon: /^md|^meio[-\\s]dia/i,\n morning: /manhã/i,\n afternoon: /tarde/i,\n evening: /tarde/i,\n night: /noite/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"row m2 card-body\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 mb-2\"},[_c('default-colors',{model:{value:(_vm.tag.color),callback:function ($$v) {_vm.$set(_vm.tag, \"color\", $$v)},expression:\"tag.color\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 d-flex justify-content-center col-xl-12\"},[_c('chrome',{on:{\"change-color\":_vm.onChange},model:{value:(_vm.tag.color),callback:function ($$v) {_vm.$set(_vm.tag, \"color\", $$v)},expression:\"tag.color\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 d-flex justify-content-center mt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tag.name),expression:\"tag.name\"}],staticClass:\"no_border form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Nome da etiqueta\"},domProps:{\"value\":(_vm.tag.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.tag, \"name\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 d-flex jusitify-content-center mt-2\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.sendTag}},[_c('b',[_vm._v(\"Salvar\")]),_c('i',{staticClass:\"ml-2 fas fa-check-circle\"})])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagForm.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n Salvar \n \n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./TagForm.vue?vue&type=template&id=7d32c360&\"\nimport script from \"./TagForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TagForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container m-5\"},[_c('div',{staticClass:\"row\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('label',{staticClass:\"input-group-btn pointer\"},[_c('span',{staticClass:\"btn btn-primary pointer\"},[_vm._v(\"\\n Carregar Arquivo\\n \"),_c('input',{ref:\"file\",staticStyle:{\"display\":\"none\"},attrs:{\"type\":\"file\",\"id\":\"apply_data\",\"name\":\"apply_data\",\"multiple\":\"\"},on:{\"change\":function($event){return _vm.sendFile()}}})])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"f18 font-weight-bold\"},[_vm._v(\"\\n Selecione um arquivo para adicionar dados nas aplicações da vaga.\\n \")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadApplyData.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadApplyData.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n Selecione um arquivo para adicionar dados nas aplicações da vaga.\n \n
\n
\n \n \n Carregar Arquivo\n \n \n \n
\n
\n
\n \n\n\n \n","import { render, staticRenderFns } from \"./UploadApplyData.vue?vue&type=template&id=2cbc03aa&\"\nimport script from \"./UploadApplyData.vue?vue&type=script&lang=js&\"\nexport * from \"./UploadApplyData.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"page-detail-candidate\"}},[_c('div',{staticClass:\"row mr-0 ml-0 pl-0 pr-0\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"mt-3 mb-3 label-bold\"},[_c('span',{staticClass:\"text-truncate p-2 f20\"},[_vm._v(\"VAGA \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-purple\"},[_vm._v(_vm._s(_vm.job_name))])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.show_resume),expression:\"!show_resume\"}],staticClass:\"bg-purple color-white\",style:({\n borderLeftColor: this.colorBorder,\n borderLeftWidth: '5px',\n })},[_c('div',{staticClass:\"row color-white direction-box\"},[_c('div',{staticClass:\"pr-5\"},[(_vm.avatar != '')?_c('img',{staticClass:\"thumb-box mt-3 mb-2\",attrs:{\"src\":_vm.avatar}}):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"content-items mb-3 pt-4 pb-2 text-truncate\"},[_c('p',{staticClass:\"mb-0\"},[_c('b',[_vm._v(_vm._s(_vm.candidate.name))])]),_vm._v(\" \"),_c('div',{staticClass:\"box-icons\"},[_c('span',[_c('a',{staticClass:\"f12 color-white\",attrs:{\"href\":`mailto:${_vm.candidate.email}`}},[_vm._v(\"\\n \"+_vm._s(_vm.candidate.email)+\"\\n \")])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"f12 color-white\"},[_vm._v(\"\\n \"+_vm._s(_vm.candidate.last_role)+\" /\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"f12 color-white\"},[_vm._v(\"\\n\\n \"+_vm._s(_vm.candidate.last_business)+\"\\n\\n \")]),_vm._v(\" \"),_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('i',{class:`${_vm.tagName ? 'mt-1' : 'mt-2'} fas f12 mr-2 fa-tags color-purple`}),_vm._v(\" \"),_c('div',{staticClass:\"color-white center px-1 font-weight-bold\",style:(_vm.tagColor ? `background-color: ${ _vm.tagColor }; text-shadow: 0px 0px 3px black;` : '')},[_c('span',{staticClass:\"f12 pointer\",on:{\"click\":_vm.showTagOverview}},[_vm._v(\"\\n \"+_vm._s(_vm.tagName != \"\" ? _vm.tagName : \"Sem Etiqueta\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',[_c('i',{staticClass:\"fas fa-phone-alt mr-2 color-purple f15\"}),_vm._v(\" \"),_c('span',{staticClass:\"color-white f12\"},[_vm._v(_vm._s(_vm.candidate.mobile_phone))])]),_vm._v(\" \"),(_vm.whatsapp != '')?_c('div',[_c('i',{staticClass:\"fab f15 mr-2 fa-whatsapp color-purple\"}),_vm._v(\" \"),_c('a',{staticClass:\"color-white f12\",attrs:{\"href\":`https://wa.me/${_vm.whatsapp}?text=%20`,\"target\":\"_blank\"}},[_vm._v(\"WHATSAPP\")])]):_vm._e()])])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.show_resume),expression:\"!show_resume\"}],staticClass:\"card-body-noBorder card-light-grey mt-3\"},[(_vm.candidate.uid)?_c('BigfiveShow',{attrs:{\"candidate_uid\":_vm.candidate.uid,\"no_next\":true,\"only_graph\":true,\"is_limited\":_vm.is_limited}}):_vm._e()],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.recruiter),expression:\"!recruiter\"}],staticClass:\"card card-body bg-white mt-3 card-body\"},[_c('p',[_vm._v(\"AVALIE ESSE CANDIDATO(A)\")]),_vm._v(\" \"),(!_vm.load_candidate)?_c('AvaliationLike',{attrs:{\"recruiter\":_vm.is_recruiter,\"apply_id\":_vm.apply.uid,\"job_id\":_vm.apply.job_id,\"like_avaliation\":_vm.apply.like_avaliation,\"like_candidate\":_vm.apply.like_candidate,\"star_candidate\":_vm.apply.star_candidate,\"deslike_candidate\":_vm.apply.deslike_candidate}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"row mt-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-purple color-white\"},[_c('div',{staticClass:\"row container pointer\",on:{\"click\":function($event){_vm.show_candidate_data = !_vm.show_candidate_data}}},[_c('p',{staticClass:\"pl-3 pt-3\"},[(_vm.is_limited)?_c('b',[_vm._v(\"DADOS ADICIONAIS\")]):_c('b',[_vm._v(\"MAIS DADOS DO CANDIDATO\")]),_vm._v(\" \"),(_vm.show_candidate_data)?_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-up\"}}):_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-down\"}})],1)]),_vm._v(\" \"),(_vm.show_candidate_data)?_c('div',{staticClass:\"container\",staticStyle:{\"background-color\":\"white\",\"border\":\"1px solid #e6e6e6\",\"color\":\"black\"}},[_c('div',{staticClass:\"col-lg-12 mt-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row mt-1 mb-2\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.candidate.remuneration || \"Não definido\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.candidate.hometown_attributes ? \n `${_vm.candidate.hometown_attributes.name}/${_vm.candidate.hometown_state_attributes.name}`:\n `Não definido`)+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.getEthnicity(_vm.candidate.ethnicity) || \"Não definido\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(3),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.getSexualOrientation(_vm.candidate.sexual_orientation) || \"Não definido\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-3\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.candidate.is_pcd ? _vm.candidate.pcd_description : \"Não\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-1\"},[_vm._m(5),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9 col-xs-12\"},_vm._l((_vm.skills),function(skill){return _c('div',{key:skill.id,staticClass:\"skill_uni\"},[_vm._v(\"\\n \"+_vm._s(skill.name)+\"\\n \")])}),0)])])])]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-purple color-white\"},[_c('p',{staticClass:\"pl-3 pt-3 mb-3\"},[(_vm.is_limited)?_c('b',[_vm._v(\"STATUS NO PROCESSO\")]):_c('b',[_vm._v(\"CLASSIFIQUE ESSE CANDIDATO(A)\")])]),_vm._v(\" \"),_c('div',[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.select_process_id),expression:\"select_process_id\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.select_process_id=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},function($event){return _vm.updateApply()}]}},_vm._l((_vm.select_process),function(process){return _c('option',{key:process.id,domProps:{\"value\":process.id}},[_vm._v(\"\\n \"+_vm._s(process.name)+\"\\n \")])}),0)])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-4\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-purple color-white\"},[_c('p',{staticClass:\"pl-3 pt-3\"},[(_vm.is_limited)?_c('b',[_vm._v(\"PORTFÓLIO\")]):_c('b',[_vm._v(\"PORTFÓLIO CANDIDATO(A)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"pl-3 pb-3 pt-3 d-flex justify-content-start\",staticStyle:{\"background-color\":\"white\",\"border\":\"1px solid #e6e6e6\",\"color\":\"black\"}},[_c('i',{staticClass:\"fas fa-paperclip\",staticStyle:{\"font-size\":\"36px\"}}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\"},[_c('div',{staticClass:\"text-truncate\"},[(_vm.candidate.linkedin_url != '')?_c('a',{staticClass:\"pl-1\",attrs:{\"href\":_vm.candidate.linkedin_url,\"target\":\"_blank\"}},[_vm._v(\"\\n \"+_vm._s(this.candidate.linkedin_url)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(this.candidate.linkedin_url == null)?_c('span',{},[_vm._v(\"\\n NÃO INFORMADO\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"text-truncate\"},[(_vm.candidate.personal_portfolio != '')?_c('a',{staticClass:\"pl-1 pt-1\",attrs:{\"href\":_vm.candidate.personal_portfolio,\"target\":\"_blank\"}},[_vm._v(\"\\n \"+_vm._s(_vm.candidate.personal_portfolio)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.candidate.personal_portfolio == '')?_c('span',{staticClass:\"pl-1\"},[_vm._v(\"\\n NÃO INFORMADO\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"text-truncate\"},[(_vm.candidate.personal_site != '')?_c('a',{staticClass:\"pl-1 pt-1\",attrs:{\"href\":_vm.candidate.personal_site,\"target\":\"_blank\"}},[_vm._v(\"\\n \"+_vm._s(this.candidate.personal_site)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.candidate.personal_site == '')?_c('span',{staticClass:\"pl-1\"},[_vm._v(\"\\n NÃO INFORMADO\\n \")]):_vm._e()])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7 ml-0 pl-0 col-xs-12\"},[_c('ul',{staticClass:\"nav nav-tabs\"},[_c('li',{staticClass:\"nav-item\"},[_c('a',{class:`nav-link ${ _vm.tab === 'answers' ? 'active' : ''}`,attrs:{\"aria-current\":\"page\"},on:{\"click\":function($event){return _vm.setTab('answers')}}},[_vm._v(\"\\n Respostas\\n \")])])]),_vm._v(\" \"),(_vm.tab === 'answers')?_c('div',{staticClass:\"cardy-body-noBorder card-light-grey\",staticStyle:{\"height\":\"calc(100% - 48px)\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.answers.length > 0),expression:\"answers.length > 0\"}]},[_vm._m(6),_vm._v(\" \"),_vm._l((_vm.answers),function(answer,index){return _c('li',{key:answer.id,staticClass:\"li_style_none mt-2 d-flex\",on:{\"click\":function($event){return _vm.nextVideo(index)}}},[_c('div',[_c('a',{staticClass:\"color-primary d-flex wrap\",class:{\n active_answer: index == _vm.answer_current,\n first_tab: index == 0,\n },staticStyle:{\"white-space\":\"normal !important\",\"width\":\"100%\"},attrs:{\"id\":`tab${index}_id`,\"data-toggle\":\"tab\",\"href\":`#tab${index}`,\"role\":\"tab\",\"aria-controls\":`tab${index}`,\"aria-selected\":\"true\"}},[([2, 3].includes(answer.question.response_type))?_c('div',{staticClass:\"d-inline\"},[_c('RightOrWrongIcons',{attrs:{\"ParentDivClasses\":\"d-inline mr-2\",\"hide\":_vm.showPreview(index, answer.question.response_type),\"useSvg\":true,\"rightIf\":_vm.rightAnswer(answer, answer.question),\"wrongIf\":!_vm.rightAnswer(answer, answer.question)}})],1):_vm._e(),_vm._v(\"\\n\\n \"+_vm._s(index + 1)+\".\\n \"),([2, 3].includes(answer.question.response_type))?_c('div',{staticClass:\"d-inline\"}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"question_preview d-inline\",domProps:{\"innerHTML\":_vm._s(_vm.truncate(answer.title))}})]),_vm._v(\" \"),(answer.question.response_type == 3 || answer.question.response_type == 2)?_c('div',{staticClass:\"mb-3\"},[_c('span',[_c('b',[_vm._v(\"Resposta: \")]),_vm._v(_vm._s(_vm.getAnswer(answer))+\"\\n \")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"f14\"},[_c('div',[_vm._v(\"\\n Tempo total: \"+_vm._s(_vm.getTimeTaken(answer.created_at, answer.updated_at))+\"\\n \")]),_vm._v(\" \"),_c('div',[_vm._v(\"\\n Início: \"+_vm._s(_vm.formattedDateTime(answer.created_at))+\"\\n \")]),_vm._v(\" \"),_c('div',[_vm._v(\"\\n Fim: \"+_vm._s(_vm.formattedDateTime(answer.updated_at))+\"\\n \")])]),_vm._v(\" \"),_c('hr')])])}),_vm._v(\" \"),(_vm.time_taken > 0)?_c('span',{staticClass:\"f15 d-block to_uppercase\"},[_vm._v(\"O Candidato(a) levou: \"+_vm._s(_vm.timeTakenToAnswer)+\" para responder\\n estas perguntas\")]):_vm._e(),_vm._v(\" \"),(_vm.hitsPercentage)?_c('span',{staticClass:\"f15 d-block to_uppercase\"},[_vm._v(\"\\n Percentual de acertos do Candidato(a): \"+_vm._s(_vm.hitsPercentage)+\" %\\n \")]):_vm._e()],2),_vm._v(\" \"),_c('JobExam',{attrs:{\"questions\":_vm.questions,\"answers\":_vm.answers,\"candidate\":_vm.candidate,\"job_title\":_vm.job_name,\"hitsPercentage\":_vm.hitsPercentage}}),_vm._v(\" \"),_c('hr',{staticClass:\"bg-purple\"}),_vm._v(\" \"),(_vm.load)?_c('div',{staticClass:\"center bg-black painel_load\",class:{ load_video: _vm.load }},[(_vm.load)?_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),(!_vm.load)?_c('div',[(_vm.answers.length > 0)?_c('div',[_c('div',{staticClass:\"pointer color-primary mb-2 label-bold\",staticStyle:{\"white-space\":\"normal !important\"}},[_c('div',{staticClass:\"d-flex\"},[_c('span',[_vm._v(_vm._s(_vm.answer_current + 1)+\".\")]),_vm._v(\" \"),_c('div',{staticStyle:{\"font-size\":\"15px !important\"},domProps:{\"innerHTML\":_vm._s(_vm.answers[_vm.answer_current].title)}})])]),_vm._v(\" \"),(_vm.answerQuestion.response_type == 2)?_c('div',{staticClass:\"mb-2\"},[_c('MultipleChoices',{attrs:{\"answer\":_vm.answers[_vm.answer_current]}})],1):_vm._e(),_vm._v(\" \"),(_vm.answerQuestion.response_type == 4)?_c('div',[_c('MonetaryType',{attrs:{\"answer\":_vm.answers[_vm.answer_current]}})],1):_vm._e(),_vm._v(\" \"),(_vm.answerQuestion.response_type == 3)?_c('div',{staticClass:\"mb-2\"},[_c('YesOrNo',{attrs:{\"answer\":_vm.answers[_vm.answer_current]}})],1):_vm._e(),_vm._v(\" \"),(_vm.answerQuestion.response_type == 1)?_c('div',{staticClass:\"mb-2\"},[(_vm.answers[_vm.answer_current].choices)?_c('p',{staticClass:\"text-justify\"},[_vm._v(\"\\n \"+_vm._s(_vm.answers[_vm.answer_current].choices.text || 'Não respondido.')+\"\\n \")]):_c('p',{staticClass:\"text-justify\"},[_vm._v(\"\\n Não respondido\\n \")])]):_vm._e(),_vm._v(\" \"),(_vm.answerQuestion.response_type == 0)?_c('video',{staticStyle:{\"max-height\":\"500px\"},attrs:{\"width\":\"100%\",\"controls\":\"\",\"playsinlineatributo\":\"\",\"preload\":\"yes\",\"controlslist\":\"nodownload\",\"id\":\"video_answers\"}},[_c('source',{attrs:{\"src\":_vm.answers[_vm.answer_current].video,\"type\":\"video/mp4\"}})]):_vm._e()]):_c('div',[_c('h4',{staticClass:\"p5 center\"},[_vm._v(\"Não há respostas\")])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-5\"},[_c('button',{staticClass:\"btn btn-primary full radius-0\",class:{ hide: _vm.havePreviusAnswer() === false },on:{\"click\":function($event){_vm.nextVideo(_vm.havePreviusAnswer())}}},[_c('i',{staticClass:\"fas ml-2 fa-chevron-left\"}),_vm._v(\"\\n PERGUNTA ANTERIOR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5\"},[_c('button',{staticClass:\"btn btn-primary full radius-0\",class:{ hide: _vm.haveNextAnswer() === false },on:{\"click\":function($event){_vm.nextVideo(_vm.haveNextAnswer())}}},[_vm._v(\"\\n PRÓXIMA PERGUNTA\\n \"),_c('i',{staticClass:\"fas mr-2 fa-chevron-right\"})])])])]),_vm._v(\" \"),_c('CandidateSkillsRating',{attrs:{\"job_id\":this.job_id,\"candidate_id\":this.candidate.id,\"apply_id\":this.apply.id,\"shortlist_uid\":_vm.shortlist_uid,\"recruiter_id\":_vm.recruiter_id}}),_vm._v(\" \"),(_vm.answers.length > 0)?_c('div',{staticClass:\"average-skills cardy-body-noBorder p-2 d-flex justify-content-between p-0 m-0\"},[_c('span',{staticClass:\"color-white\"},[_vm._v(\"\\n MÉDIA DA CLASSIFICAÇÃO DE CANDIDATO(A) NESSA PERGUNTA\\n \")]),_vm._v(\" \"),_c('StarRating',{attrs:{\"active-color\":\"#9472F8\",\"read-only\":true,\"rating\":_vm.rating_agg,\"max-rating\":5,\"star-size\":22,\"show-rating\":false}})],1):_vm._e(),_vm._v(\" \"),(_vm.answers.length > 0)?_c('div',{staticClass:\"inputComment\"},[_c('div'),_vm._v(\" \"),_c('StarRating',{staticClass:\"mt-4 mb-1\",attrs:{\"active-color\":\"#9472F8\",\"max-rating\":5,\"star-size\":22,\"show-rating\":false},on:{\"rating-selected\":_vm.ratingSave},model:{value:(_vm.rating),callback:function ($$v) {_vm.rating=$$v},expression:\"rating\"}}),_vm._v(\" \"),(!_vm.hasRightAnswer)?_c('hr'):_vm._e(),_vm._v(\" \"),(!_vm.hasRightAnswer)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold color-primary\"},[_vm._v(\"NOTA\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.score),expression:\"score\"}],staticClass:\"form-control mb-2\",staticStyle:{\"height\":\"44px\"},attrs:{\"type\":\"number\",\"placeholder\":\"NOTA\",\"step\":\"0.5\"},domProps:{\"value\":(_vm.score)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.saveAnswerScore.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.score=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold color-primary\"},[_vm._v(\"DETALHES DA AVALIAÇÃO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],staticClass:\"form-control mb-2\",staticStyle:{\"height\":\"44px\"},attrs:{\"placeholder\":\"DETALHES\"},domProps:{\"value\":(_vm.description)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.saveAnswerScore.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.description=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"bg-purple btn-save-comment\",staticStyle:{\"height\":\"42px\",\"margin-top\":\"25px\"},on:{\"click\":_vm.saveAnswerScore}},[_vm._v(\"\\n PUBLICAR\\n \")])])]):_vm._e(),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.comment),expression:\"comment\"}],staticClass:\"form-control mb-2\",staticStyle:{\"height\":\"44px\"},attrs:{\"placeholder\":\"Escreva um comentário\"},domProps:{\"value\":(_vm.comment)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.saveComments.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.comment=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"bg-purple btn-save-comment\",staticStyle:{\"margin\":\"auto\"},on:{\"click\":_vm.saveComments}},[_vm._v(\"\\n PUBLICAR\\n \")])])]),_vm._v(\" \"),_c('hr')],1):_vm._e(),_vm._v(\" \"),_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_vm._v(\"\\n Nº DE TENTATIVAS RESTANTES: \"+_vm._s(3 - _vm.view_evaluation)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[(3 - _vm.view_evaluation === 0)?_c('button',{staticClass:\"btn btn-primary full radius-0\",on:{\"click\":function($event){return _vm.addEvaluationView()}}},[_c('i',{staticClass:\"fas mr-2 fa-chevron-left\"}),_vm._v(\"\\n ADICIONAR MAIS TENTATIVAS\\n \")]):_vm._e()])])]),_vm._v(\" \"),(_vm.answers.length > 0)?_c('div',{staticClass:\"mt-2 mb-2 all_comments\",attrs:{\"id\":\"all_comments\"}},_vm._l((_vm.comments),function(com){return _c('div',{key:com.id,staticClass:\"f12 shadow_bar mt-2 mb-2 mr-4 ml-2 bg-white block_comment\",class:{\n left: com.manager_name,\n 'bg-primary-light': com.manager_name,\n }},[(\n (com.recruiter_name && _vm.recruiter) ||\n (com.manager_name &&\n !_vm.recruiter &&\n com.manager_id == _vm.manager_id)\n )?_c('div',{staticClass:\"deleteComment bg-primary2 pointer right\",on:{\"click\":function($event){return _vm.deleteComments(com.id)}}},[_c('i',{staticClass:\"fa fa-times\"})]):_vm._e(),_vm._v(\" \"),_c('span',{staticClass:\"color-primary\"},[_c('b',[_vm._v(_vm._s(com.recruiter_name ? com.recruiter_name : com.manager_name))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"conforta\"},[_vm._v(_vm._s(com.description))]),_vm._v(\" \"),_c('div',{staticClass:\"text-right\"},[_c('span',{staticClass:\"small-text full color-primary\"},[_vm._v(_vm._s(_vm.formattedDate(com.created_at)))])])])}),0):_vm._e(),_vm._v(\" \"),(_vm.answers.length > 0)?_c('div',{staticClass:\"mr-2 inputComment\"}):_vm._e()],1):_vm._e()],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mb-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3\"},[_c('button',{staticClass:\"btn btn-primary full radius-0\",class:{ hide: !_vm.havePrevius() },on:{\"click\":function($event){_vm.nextCandidate(_vm.havePrevius(), -1)}}},[_c('i',{staticClass:\"fas mr-2 fa-chevron-left\"}),_vm._v(\"\\n CANDIDATO(A) ANTERIOR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3\"},[_c('button',{staticClass:\"btn btn-primary full radius-0\",class:{ hide: !_vm.haveNext() },on:{\"click\":function($event){_vm.nextCandidate(_vm.haveNext(), +1)}}},[_vm._v(\"\\n PRÓXIMO CANDIDATO(A)\\n \"),_c('i',{staticClass:\"fas ml-2 fa-chevron-right\"})])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',[_vm._v(\"SALARIO\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',[_vm._v(\"CIDADE NATAL\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',[_vm._v(\"ETNIA\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',[_vm._v(\"ORIENTAÇÃO SEXUAL\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',[_vm._v(\"PCD\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 hide col-xs-12\"},[_c('span',[_vm._v(\"COMPETENCIAS\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"color-grey-primary\"},[_c('b',[_vm._v(\"PERGUNTAS DA ENTREVISTA\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n VAGA \n {{ job_name }} \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n {{ candidate.name }} \n
\n
\n
\n \n {{ candidate.email }}\n \n \n
\n
\n {{ candidate.last_role }} /\n \n
\n\n {{ candidate.last_business }}\n\n \n
\n
\n
\n \n {{ tagName != \"\" ? tagName : \"Sem Etiqueta\" }}\n \n
\n
\n
\n \n {{\n candidate.mobile_phone\n }} \n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n
AVALIE ESSE CANDIDATO(A)
\n
\n
\n\n
\n
\n
\n
\n
\n DADOS ADICIONAIS \n MAIS DADOS DO CANDIDATO \n \n \n
\n
\n
\n
\n
\n
\n
\n SALARIO \n
\n
\n \n {{ candidate.remuneration || \"Não definido\" }}\n \n
\n
\n
\n
\n CIDADE NATAL \n
\n
\n \n {{ candidate.hometown_attributes ? \n `${candidate.hometown_attributes.name}/${candidate.hometown_state_attributes.name}`:\n `Não definido`\n }}\n \n
\n
\n
\n
\n ETNIA \n
\n
\n \n {{ getEthnicity(candidate.ethnicity) || \"Não definido\" }}\n \n
\n
\n
\n
\n ORIENTAÇÃO SEXUAL \n
\n
\n \n {{ getSexualOrientation(candidate.sexual_orientation) || \"Não definido\" }}\n \n
\n
\n
\n
\n PCD \n
\n
\n \n {{ candidate.is_pcd ? candidate.pcd_description : \"Não\" }}\n \n
\n
\n
\n
\n COMPETENCIAS \n
\n
\n
\n {{ skill.name }}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n STATUS NO PROCESSO \n CLASSIFIQUE ESSE CANDIDATO(A) \n
\n
\n \n \n {{ process.name }}\n \n \n
\n
\n
\n
\n\n
\n
\n
\n
\n PORTFÓLIO \n PORTFÓLIO CANDIDATO(A) \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
0\">\n
\n PERGUNTAS DA ENTREVISTA \n
\n
\n \n
\n \n \n
\n\n {{ index + 1 }}.\n
\n
\n \n
\n \n Resposta: {{ getAnswer(answer) }}\n \n
\n
\n
\n Tempo total: {{ \n getTimeTaken(answer.created_at, answer.updated_at)\n }}\n
\n
\n Início: {{ formattedDateTime(answer.created_at) }}\n
\n
\n Fim: {{ formattedDateTime(answer.updated_at) }}\n
\n
\n
\n
\n \n
0\"\n >O Candidato(a) levou: {{ timeTakenToAnswer }} para responder\n estas perguntas \n
\n Percentual de acertos do Candidato(a): {{ hitsPercentage }} %\n \n
\n
\n
\n
\n \n
\n
\n
0\">\n
\n
\n
{{ answer_current + 1 }}. \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n {{ answers[answer_current].choices.text || 'Não respondido.' }}\n
\n
\n Não respondido\n
\n
\n
\n \n \n
\n
\n
Não há respostas \n \n
\n
\n
\n \n \n PERGUNTA ANTERIOR\n \n
\n
\n
\n \n PRÓXIMA PERGUNTA\n \n \n
\n
\n
\n
\n
0\"\n >\n \n MÉDIA DA CLASSIFICAÇÃO DE CANDIDATO(A) NESSA PERGUNTA\n \n \n
\n
0\"\n class=\"inputComment\"\n >\n
\n \n \n
\n
\n
\n
\n
\n NOTA \n \n
\n
\n DETALHES DA AVALIAÇÃO \n \n
\n
\n \n PUBLICAR\n \n
\n
\n
\n
\n
\n \n
\n
\n \n PUBLICAR\n \n
\n
\n
\n \n
\n
\n
\n
\n Nº DE TENTATIVAS RESTANTES: {{ 3 - view_evaluation }}\n
\n
\n \n \n ADICIONAR MAIS TENTATIVAS\n \n
\n
\n\n
\n \n\n
0\"\n class=\"mr-2 inputComment\"\n >
\n
\n
\n
\n
\n
\n
\n \n \n CANDIDATO(A) ANTERIOR\n \n
\n
\n
\n \n PRÓXIMO CANDIDATO(A)\n \n \n
\n
\n
\n
\n
\n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApplyShow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApplyShow.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ApplyShow.vue?vue&type=template&id=7ca7153c&\"\nimport script from \"./ApplyShow.vue?vue&type=script&lang=js&\"\nexport * from \"./ApplyShow.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ApplyShow.vue?vue&type=style&index=0&id=7ca7153c&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n \n
\n
\n ADICIONAR UM ARQUIVO \n \n \n
\n
\n
\n \n \n \n \n UPLOAD \n \n \n
\n
\n
\n {{ this.showName }} \n
\n
\n DESCRIÇÃO \n
\n
\n \n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n \n \n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=547e7842&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"cardy-body-noBorder mt-3\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-lg-2\"},[_c('div',{staticClass:\"btn-add-items-tb bg-purple center\"},[_c('label',{staticClass:\"f20 color-white pointer p-0\"},[_c('span',{staticClass:\"pointer\"},[_c('i',{staticClass:\"fas fa-upload ml-1 mr-1\"}),_vm._v(\" \"),_c('input',{ref:\"file\",staticClass:\"btn-add-items-tb bg-purple\",staticStyle:{\"display\":\"none\",\"width\":\"100%\"},attrs:{\"type\":\"file\",\"name\":\"fileUpload\",\"multiple\":\"\"},on:{\"change\":_vm.setName}}),_vm._v(\" \"),_c('span',[_vm._v(\"UPLOAD\")])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12 d-flex align-items-center\"},[_c('span',[_vm._v(_vm._s(this.showName))])]),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.files.description),expression:\"files.description\"}],staticClass:\"full form-control\",staticStyle:{\"height\":\"100px\"},attrs:{\"cols\":\"30\",\"rows\":\"10\"},domProps:{\"value\":(_vm.files.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.files, \"description\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12 mt-3 mb-2\"},[_c('button',{staticClass:\"color-white btn-add-items-tb bg-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":_vm.sendFile}},[_vm._v(\"\\n SALVAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mb-3 col-lg-12 col-xs-12\"},[_c('h4',{staticClass:\"color-dark-purple mt-3\"},[_c('strong',[_vm._v(\"ADICIONAR UM ARQUIVO\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-xs-12 mt-2 mb-2 col-lg-12 cardy-body-noBorder\"},[_c('span',{staticClass:\"ml-2\"},[_vm._v(\"DESCRIÇÃO\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 p-5 col-xs-12\",staticStyle:{\"background-color\":\"#414141\"}},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.url != false),expression:\"url != false\"}],attrs:{\"width\":\"100%\",\"height\":\"100%\",\"id\":\"video_show\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.url}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 p-3 pr-5\"},[_c('p',[_vm._v(\"COMENTÁRIOS\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2 all_comments\"},_vm._l((_vm.comments),function(com){return _c('div',{key:com.id,staticClass:\"f12 shadow_bar mt-2 mr-4 bg-white block_comment\"},[_c('div',{staticClass:\"deleteComment bg-primary2 pointer right\",on:{\"click\":function($event){return _vm.deleteComments(com.id)}}},[_c('i',{staticClass:\"fa fa-times\"})]),_vm._v(\" \"),_c('span',[_c('b',[_vm._v(_vm._s(com.recruiter_name))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"conforta\"},[_vm._v(_vm._s(com.description))]),_vm._v(\" \"),_c('div',{staticClass:\"text-right\"},[_c('span',{staticClass:\"small-text full\"},[_vm._v(_vm._s(_vm.formattedDate(com.created_at)))])])])}),0),_vm._v(\" \"),_c('StarRating',{attrs:{\"active-color\":\"#9472F8\",\"max-rating\":5,\"star-size\":20},on:{\"rating-selected\":_vm.ratingSave},model:{value:(_vm.rating),callback:function ($$v) {_vm.rating=$$v},expression:\"rating\"}}),_vm._v(\" \"),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.comment),expression:\"comment\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"COMENTE SOBRE ESSE VÍDEO, 'PRESSIONE ENTER PARA SALVAR'\"},domProps:{\"value\":(_vm.comment)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.saveComments.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.comment=$event.target.value}}}),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"btn mt-4 btn-primary left\",class:{hide: !_vm.havePrevius()},on:{\"click\":function($event){_vm.nextCandidate(_vm.havePrevius(), -1)}}},[_c('i',{staticClass:\"fas ml-2 fa-chevron-left\"}),_vm._v(\"\\n Anterior\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn mt-4 btn-primary right\",class:{hide: !_vm.haveNext()},on:{\"click\":function($event){_vm.nextCandidate(_vm.haveNext(), +1)}}},[_vm._v(\"\\n Próximo\\n \"),_c('i',{staticClass:\"fas ml-2 fa-chevron-right\"})])])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n \n
\n
\n
COMENTÁRIOS
\n
\n
\n \n
\n {{com.recruiter_name}} \n \n
\n
{{com.description}} \n
\n {{formattedDate(com.created_at)}} \n
\n
\n
\n
\n
\n
\n \n \n Anterior\n \n \n Próximo\n \n \n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=74b7e3fa&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vue-html2pdf',{ref:\"html2Pdf\",attrs:{\"show-layout\":false,\"float-layout\":true,\"enable-download\":true,\"preview-modal\":true,\"paginate-elements-by-height\":1500,\"filename\":_vm.candidate.name,\"pdf-quality\":1,\"manual-pagination\":false,\"pdf-format\":\"a4\",\"pdf-orientation\":\"portrait\",\"pdf-content-width\":\"760px\"},on:{\"hasStartedGeneration\":function($event){return _vm.hasStartedGeneration()},\"hasGenerated\":function($event){return _vm.hasGenerated($event)}}},[_c('section',{staticClass:\"p-4 f13\",attrs:{\"slot\":\"pdf-content\"},slot:\"pdf-content\"},[_c('section',{staticClass:\"pdf-item text-center\"},[_c('h2',[_vm._v(\"Prova da vaga de: \"+_vm._s(_vm.job_title))])]),_vm._v(\" \"),_c('section',{staticClass:\"pdf-item mb-5\"},[_c('span',{staticClass:\"d-block\"},[_vm._v(\"Nome do candidato(a): \"+_vm._s(_vm.candidate.name))]),_vm._v(\" \"),_c('span',{staticClass:\"d-block\"},[_vm._v(\"Email do candidato(a): \"+_vm._s(_vm.candidate.email))]),_vm._v(\" \"),_c('span',{staticClass:\"d-block\"},[_vm._v(\"Percentual de acertos do Candidato(a): \"+_vm._s(_vm.hitsPercentage)+\" %\")])]),_vm._v(\" \"),_vm._l((_vm.answers),function(answer,index){return _c('section',{key:answer.id,staticClass:\"pdf-item mt-3\"},[(index % 5 == 0 && index != 0)?_c('div',{staticClass:\"html2pdf__page-break\"}):_vm._e(),_vm._v(\" \"),(answer.question.response_type != 0)?_c('div',[_c('h4',{domProps:{\"innerHTML\":_vm._s(answer.question.title)}},[_vm._v(_vm._s(answer.question.title))]),_vm._v(\" \"),(answer.question.response_type == 2)?_c('div',{staticClass:\"mb-2\"},[_c('MultipleChoices',{attrs:{\"answer\":answer,\"useSvg\":false}})],1):_vm._e(),_vm._v(\" \"),(answer.question.response_type == 4)?_c('div',[_c('MonetaryType',{attrs:{\"answer\":answer,\"question\":_vm.questions[index]}})],1):_vm._e(),_vm._v(\" \"),(answer.question.response_type == 3)?_c('div',{staticClass:\"mb-2\"},[_c('YesOrNo',{attrs:{\"answer\":answer,\"useSvg\":false}})],1):_vm._e(),_vm._v(\" \"),(answer.question.response_type == 1)?_c('div',{staticClass:\"mb-2\"},[(answer.choices)?_c('p',{staticClass:\"text-justify ml-4\"},[_vm._v(\"\\n \"+_vm._s(answer.choices.text || 'Não respondido')+\"\\n \")]):_c('p',{staticClass:\"text-justify ml-4\"},[_vm._v(\"\\n Não respondido\\n \")])]):_vm._e()]):_vm._e()])})],2)]),_vm._v(\" \"),(_vm.answers.filter((answer) => _vm.rightType(answer.question)).length > 0)?_c('div',{staticClass:\"mt-2 text-right\",class:{ 'mb-2': _vm.showPreview }},[_c('button',{staticClass:\"btn btn-primary radius-0 to_uppercase\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.generateReport}},[_vm._v(\"\\n Download da Prova\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary radius-0 to_uppercase\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.showPreview = !_vm.showPreview}}},[_vm._v(\"\\n \"+_vm._s(!_vm.showPreview\n ? \"Mostrar preview da prova\"\n : \"Esconder preview da prova\")+\"\\n \")])]):_vm._e(),_vm._v(\" \"),(_vm.showPreview)?_c('div',{staticClass:\"row bg-white p-4 f13\"},[_c('div',{staticClass:\"col-lg-12 text-center\"},[_c('h2',[_vm._v(\"Prova da vaga de: \"+_vm._s(_vm.job_title))])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mb-1\"},[_c('span',{staticClass:\"d-block\"},[_vm._v(\"Nome do candidato(a): \"+_vm._s(_vm.candidate.name))]),_vm._v(\" \"),_c('span',{staticClass:\"d-block\"},[_vm._v(\"Email do candidato(a): \"+_vm._s(_vm.candidate.email))]),_vm._v(\" \"),_c('span',{staticClass:\"d-block\"},[_vm._v(\"Percentual de acertos do Candidato(a): \"+_vm._s(_vm.hitsPercentage)+\" %\")])]),_vm._v(\" \"),_vm._l((_vm.answers),function(answer,index){return _c('div',{key:answer.id,staticClass:\"col-lg-12 mt-3\"},[(answer.question.response_type != 0)?_c('div',[_c('h4',{domProps:{\"innerHTML\":_vm._s(answer.question.title)}},[_vm._v(_vm._s(answer.question.title))]),_vm._v(\" \"),(answer.question.response_type == 2)?_c('div',{staticClass:\"mb-2\"},[_c('MultipleChoices',{attrs:{\"answer\":answer,\"useSvg\":false}})],1):_vm._e(),_vm._v(\" \"),(answer.question.response_type == 4)?_c('div',[_c('MonetaryType',{attrs:{\"answer\":answer,\"question\":_vm.questions[index]}})],1):_vm._e(),_vm._v(\" \"),(answer.question.response_type == 3)?_c('div',{staticClass:\"mb-2\"},[_c('YesOrNo',{attrs:{\"answer\":answer,\"useSvg\":false}})],1):_vm._e(),_vm._v(\" \"),(answer.question.response_type == 1)?_c('div',{staticClass:\"mb-2\"},[_c('p',{staticClass:\"text-justify ml-4\"},[_vm._v(\"\\n \"+_vm._s(answer.choices.text)+\"\\n \")])]):_vm._e()]):_vm._e()])})],2):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n \n Prova da vaga de: {{ job_title }} \n \n \n Nome do candidato(a): {{ candidate.name }} \n Email do candidato(a): {{ candidate.email }} \n Percentual de acertos do Candidato(a): {{ hitsPercentage }} % \n \n \n
\n\n \n
{{ answer.question.title }} \n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n {{ answer.choices.text || 'Não respondido' }}\n
\n
\n Não respondido\n
\n
\n
\n \n \n \n
rightType(answer.question)).length > 0\"\n class=\"mt-2 text-right\"\n :class=\"{ 'mb-2': showPreview }\"\n >\n \n Download da Prova\n \n \n {{\n !showPreview\n ? \"Mostrar preview da prova\"\n : \"Esconder preview da prova\"\n }}\n \n
\n
\n
\n
Prova da vaga de: {{ job_title }} \n \n
\n Nome do candidato(a): {{ candidate.name }} \n Email do candidato(a): {{ candidate.email }} \n Percentual de acertos do Candidato(a): {{ hitsPercentage }} % \n
\n
\n
\n
{{ answer.question.title }} \n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n {{ answer.choices.text }}\n
\n
\n
\n
\n
\n
\n \n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobExam.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobExam.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./JobExam.vue?vue&type=template&id=16fb98dc&\"\nimport script from \"./JobExam.vue?vue&type=script&lang=js&\"\nexport * from \"./JobExam.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('line-chart',{attrs:{\"styles\":_vm.myStyles,\"chart-data\":_vm.datacollection}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"","\n \n \n
\n \n\n","import { render, staticRenderFns } from \"./Graph.vue?vue&type=template&id=4e187b7a&\"\nimport script from \"./Graph.vue?vue&type=script&lang=js&\"\nexport * from \"./Graph.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"single-chart\"},[_c('svg',{staticClass:\"circular-chart blue\",attrs:{\"viewBox\":\"0 0 36 36\"}},[_c('defs',[_c('linearGradient',{attrs:{\"id\":\"MyGradient\"}},[_c('stop',{attrs:{\"offset\":\"0%\",\"stop-color\":\"rgba(142, 45, 226, 1)\"}}),_vm._v(\" \"),_c('stop',{attrs:{\"offset\":\"100%\",\"stop-color\":\"rgba(0, 186, 247, 1)\"}})],1)],1),_vm._v(\" \"),_c('path',{staticClass:\"circle-bg\",attrs:{\"d\":\"M18 2.0845\\n a 15.9155 15.9155 0 0 1 0 31.831\\n a 15.9155 15.9155 0 0 1 0 -31.831\"}}),_vm._v(\" \"),_c('path',{staticClass:\"circle\",attrs:{\"stroke-dasharray\":`${_vm.percentage}, 100`,\"d\":\"M18 2.0845\\n a 15.9155 15.9155 0 0 0 0 31.831\\n a 15.9155 15.9155 0 0 0 0 -31.831\"}}),_vm._v(\" \"),_c('text',{staticClass:\"percentage\",attrs:{\"x\":\"18\",\"y\":\"20.35\"}},[_vm._v(_vm._s(_vm.percentage)+\"%\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PercentageCircle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PercentageCircle.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n \n \n \n \n \n \n {{ percentage }}% \n \n
\n \n\n\n\n","import { render, staticRenderFns } from \"./PercentageCircle.vue?vue&type=template&id=19990a4b&scoped=true&\"\nimport script from \"./PercentageCircle.vue?vue&type=script&lang=js&\"\nexport * from \"./PercentageCircle.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PercentageCircle.vue?vue&type=style&index=0&id=19990a4b&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"19990a4b\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-4\"},[_vm._m(0),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8\"},[_c('table',{staticClass:\"table_jovool\"},[_vm._m(2),_vm._v(\" \"),_c('tbody',_vm._l((_vm.candidates),function(candidate){return _c('tr',{key:candidate.id},[_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidates_selected),expression:\"candidates_selected\"}],attrs:{\"type\":\"checkbox\",\"name\":\"selectCandidate\"},domProps:{\"value\":candidate,\"checked\":Array.isArray(_vm.candidates_selected)?_vm._i(_vm.candidates_selected,candidate)>-1:(_vm.candidates_selected)},on:{\"change\":function($event){var $$a=_vm.candidates_selected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=candidate,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.candidates_selected=$$a.concat([$$v]))}else{$$i>-1&&(_vm.candidates_selected=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.candidates_selected=$$c}}}})]),_vm._v(\" \"),_c('td',[_c('span',{staticClass:\"d-block\"},[_vm._v(_vm._s(candidate.name))])]),_vm._v(\" \"),_c('td',[_c('span',{staticClass:\"d-block\"},[_vm._v(_vm._s(candidate.email))])])])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('VueSuggestion',{attrs:{\"searchURL\":\"/recruiters/jobs_search\",\"responseDataName\":\"jobs\",\"whenSelected\":_vm.JobSelected}}),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full mt-2\",class:{ disabled: _vm.job_id == 0 },attrs:{\"disabled\":_vm.job_id == 0},on:{\"click\":_vm.copy}},[_vm._v(\"\\n COPIAR CANDIDATOS(AS)\\n \")])],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-8 mb-2\"},[_c('h3',[_vm._v(\"COPIAR CANDIDATO(AS)\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-4 mb-2\"},[_c('h3',[_vm._v(\"VAGA:\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td'),_vm._v(\" \"),_c('td',[_vm._v(\"NOME\")]),_vm._v(\" \"),_c('td',[_vm._v(\"EMAIL\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CopyCandidates.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CopyCandidates.vue?vue&type=script&lang=js&\"","\n \n
\n
COPIAR CANDIDATO(AS) \n \n
\n
VAGA: \n \n
\n
\n \n \n COPIAR CANDIDATOS(AS)\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./CopyCandidates.vue?vue&type=template&id=20dfad9e&\"\nimport script from \"./CopyCandidates.vue?vue&type=script&lang=js&\"\nexport * from \"./CopyCandidates.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"header_table center_block\",style:(`width: ${_vm.width} !important`)},[_c('div',{staticClass:\"pointer\",on:{\"click\":_vm.openMenu}},[_vm._v(\"\\n \"+_vm._s(_vm.name)+\"\\n \"),_c('ArrowOrder',{staticClass:\"mr-3 icon_head_table\",attrs:{\"field\":this.field}}),_vm._v(\" \"),(_vm.state.filters[_vm.field])?_c('font-awesome-icon',{staticClass:\"right icon_head_table\",attrs:{\"icon\":\"filter\"}}):_vm._e()],1),_vm._v(\" \"),(_vm.state.openWindow == this.field)?_c('div',{staticClass:\"card block_filter\"},[_c('div',{staticClass:\"f14 card-header\"},[_vm._v(\"\\n Ordernar\\n \"),_c('OrderTable',{staticClass:\"right\",attrs:{\"useState\":true,\"entity\":_vm.entity,\"field\":_vm.field}})],1),_vm._v(\" \"),_c('div',{staticClass:\"card-body pt-1\"},[_c('label',{staticClass:\"f14\"},[_vm._v(\"Filtro\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search_text),expression:\"search_text\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search_text)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.filter.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search_text=$event.target.value}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-small mt-1 btn-success left\",on:{\"click\":_vm.filter}},[_vm._v(\"\\n Salvar\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-small mt-1 btn-danger right\",on:{\"click\":_vm.removefilter}},[_vm._v(\"\\n Limpar\\n \")])])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"","\n \n \n\n","import { render, staticRenderFns } from \"./Header.vue?vue&type=template&id=65649452&\"\nimport script from \"./Header.vue?vue&type=script&lang=js&\"\nexport * from \"./Header.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('font-awesome-icon',{attrs:{\"icon\":_vm.state.order[_vm.field] && _vm.state.order[_vm.field] == 'asc'\n ? 'chevron-up'\n : 'chevron-down'}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArrowOrder.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArrowOrder.vue?vue&type=script&lang=js&\"","\n \n \n\n\n","import { render, staticRenderFns } from \"./ArrowOrder.vue?vue&type=template&id=6f77a06d&\"\nimport script from \"./ArrowOrder.vue?vue&type=script&lang=js&\"\nexport * from \"./ArrowOrder.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import getUTCWeekYear from \"../getUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions = getDefaultOptions();\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n var year = getUTCWeekYear(dirtyDate, options);\n var firstWeek = new Date(0);\n firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCWeek(firstWeek, options);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport startOfUTCWeekYear from \"../startOfUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\nexport default function getUTCWeek(dirtyDate, options) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import getUTCISOWeekYear from \"../getUTCISOWeekYear/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function startOfUTCISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var year = getUTCISOWeekYear(dirtyDate);\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setUTCFullYear(year, 0, 4);\n fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCISOWeek(fourthOfJanuary);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport startOfUTCISOWeekYear from \"../startOfUTCISOWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\nexport default function getUTCISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","var scope = typeof global !== \"undefined\" && global || typeof self !== \"undefined\" && self || window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function () {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function () {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout = exports.clearInterval = function (timeout) {\n if (timeout) {\n timeout.close();\n }\n};\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function () {};\nTimeout.prototype.close = function () {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function (item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\nexports.unenroll = function (item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\nexports._unrefActive = exports.active = function (item) {\n clearTimeout(item._idleTimeoutId);\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout) item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\nrequire(\"setimmediate\");\n// 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.\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;","//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ptBr = moment.defineLocale('pt-br', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),\n weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n\n sameElse: 'L'\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'poucos segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n invalidDate: 'Data inválida'\n });\n return ptBr;\n});","module.exports = {\n domain: 'A',\n title: 'المسايرة',\n shortDescription: 'درجات المسايرة المختلفة تبيّن اختلاف الأفراد من نواحي التعاون والوئام الاجتماعي. الأفراد المسايرون يهمهم أن يكونوا علو وفاق مع الآخرين.',\n description: `They are therefore considerate, friendly,\ngenerous, helpful, and willing to compromise their interests with\nothers'. Agreeable people also have an optimistic view of human\nnature. They believe people are basically honest, decent, and\ntrustworthy. \nDisagreeable individuals place self-interest above getting along with\nothers. They are generally unconcerned with others' well-being, and\ntherefore are unlikely to extend themselves for other people.\nSometimes their skepticism about others' motives causes them to be\nsuspicious, unfriendly, and uncooperative.\n \nAgreeableness is obviously advantageous for attaining and maintaining\npopularity. Agreeable people are better liked than disagreeable\npeople. On the other hand, agreeableness is not useful in situations\nthat require tough or absolute objective decisions. Disagreeable\npeople can make excellent scientists, critics, or soldiers.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Agreeableness is low, indicating less concern\nwith others' needs than with your own. People see you as tough,\ncritical, and uncompromising.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your level of Agreeableness is average, indicating some concern\nwith others' Needs, but, generally, unwillingness to sacrifice\nyourself for others.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your high level of Agreeableness indicates a strong interest in\nothers' needs and well-being. You are pleasant, sympathetic, and\ncooperative.`\n }],\n facets: [{\n facet: 1,\n title: 'الثقة',\n text: 'من يسجّل درجة عالية في الثقة يرى أن أكثر الناس عادلون ويتحلون بالصدق وأن نواياهم حسنة. أما من يسجل درجة متدنية في الثقة فهو يرى الآخرين على أنهم أنانيون ومخادعون ومكامن محتملة للخطر.'\n }, {\n facet: 2,\n title: 'الاستقامة',\n text: 'من يسجلون درجة عالية في هذا الجانب لا يرون الحاجة للتظاهر أو التلاعب عند التعامل مع الآخرين، لذلك هم يتصفون بالصراحة والإخلاص. أما من يسجلون درجة متدنية فهم يرون بضرورة استخدام درجات معينة من الخداع في العلاقات الاجتماعية. يجد الناس أن التعامل مع أصحاب الدرجات العالية في الاستقامة أسهل، بينما التعامل مع أصحاب الدرجات المتدنية أصعب. هنا يجب التوضيح بأن الحصول على درجة متدنية في هذا الجانب لا يعني أن صاحبه غير أخلاقي، ولكنه ببساطة أكثر حذراً وأقل استعداداً للإفصاح بالحقيقة الكاملة.'\n }, {\n facet: 3,\n title: 'الإيثار',\n text: 'أصحاب الدرجة العالية في هذا الجانب يجدون مساعدة الآخرين مجزياً فعلاً لذلك هم مستعدون لتقديم المساعدة لمن يحتاجه، ولا يعتبرون تلك المساعدة تضحية بل يرون فيها تحقيقاً لذواتهم. أصحاب الدرجات المتدنية عادةً لا يحبون تقديم المساعدة لمن يحتاجها، وعندما يطلب أحد مساعدتهم يشعرون بحس الاضطرار ولا يرون فيها فرصة لتحقيق ذواتهم.'\n }, {\n facet: 4,\n title: 'التعاون',\n text: 'أصحاب الدرجات العالية في هذا الجانب لا يحبون المواجهات، وهم مستعدون للتضحية باحتياجاتهم الشخصية من أجل مسايرة الآخرين. في حين أن أصحاب الدرجات المتدنية مستعدون لإخافة غيرهم لنيل مرادهم.'\n }, {\n facet: 5,\n title: 'التواضع',\n text: 'من يسجلون درجات عالية في هذا الجانب لا يحبون ادّعاء أنهم أفضل من غيرهم، وأحياناً يكون هذا بسبب تدني الثقة بالذات. أما أصحاب الدرجات المتدنية قد يرون أنهم أفضل من غيرهم، مما قد يعتبره الآخرون من التكبّر.'\n }, {\n facet: 6,\n title: 'التعاطف',\n text: 'أصحاب الدرجات العالية في هذا الجانب يمتازون برقة القلب والتعاطف، ويشعرون بآلام الآخرين. أما أصحاب الدرجات المتدنية فلا يتأثرون بمعاناة الناس، ويفخرون بحسّهم الموضوعي وآرائهم العقلية، وتهمهم الحقيقة والحيادية أكثر من الرحمة والتعاطف.'\n }]\n};","module.exports = {\n domain: 'E',\n title: 'الانبساطية',\n shortDescription: 'سمة الانبساطية تصف التفاعل البائن مع العالم الخارجي.',\n description: `Extraverts enjoy being with people, are full of energy, and\noften experience positive emotions. They tend to be enthusiastic,\naction-oriented, individuals who are likely to say \"Yes!\" or \"Let's\ngo!\" to opportunities for excitement. In groups they like to talk,\nassert themselves, and draw attention to themselves.\n \nIntroverts lack the exuberance, energy, and activity levels of\nextraverts. They tend to be quiet, low-key, deliberate, and\ndisengaged from the social world. Their lack of social involvement\nshould not be interpreted as shyness or depression; the\nintrovert simply needs less stimulation than an extravert and prefers\nto be alone. The independence and reserve of the introvert is\nsometimes mistaken as unfriendliness or arrogance. In reality, an\nintrovert who scores high on the agreeableness dimension will not\nseek others out but will be quite pleasant when approached.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Extraversion is low, indicating you are\nintroverted, reserved, and quiet. You enjoy solitude and solitary\nactivities. Your socialization tends to be restricted to a few close friends.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Extraversion is average, indicating you are\nneither a subdued loner nor a jovial chatterbox. You enjoy time with\nothers but also time alone.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Extraversion is high, indicating you are\nsociable, outgoing, energetic, and lively. You prefer to be around\npeople much of the time.`\n }],\n facets: [{\n facet: 1,\n title: 'الود',\n text: 'الودودون يحبون الناس بإخلاص ويعبّرون عن مشاعرهم الإيجابية تجاه الآخرين بوضوح، ويكوّنون صداقات بسرعة ومن السهل بالنسبة لهم تكوين علاقات قوية وحميمية. أما أصحاب الدرجات المتدنية فهم ليسوا بالضرورة باردين أو عدائيين، ولكنهم لا يتواصلون مع غيرهم، وقد يعتبرهم الغير بأنهم بعيدين ومتحفظين.'\n }, {\n facet: 2,\n title: 'الاجتماعية',\n text: 'الاجتماعيون يرون في الاجتماع بالآخرين متعةً وتنشيطاً ومكافأة. أما أصحاب الدرجات المتدنية في هذا الجانب فيتعبون من التجمعات الكبيرة، ولذلك هم يُفضّلون تفاديها أصلاً. هذا لا يعني أنهم لا يحبون التواجد مع الناس، ولكن حاجتهم للخصوصية والعزلة أكبر من حاجة الاجتماعيين لها.'\n }, {\n facet: 3,\n title: 'توكيد الذات',\n text: 'أصحاب الدرجات العالية في توكيد الذات يحبون التحدث والأخذ بزمام الأمور وتوجيه الآخرين، وعادةً يكونون قادة للمجموعات. أما أصحاب الدرجات المتدنية فلا يتحدثون كثيراً ويتركون لغيرهم دفة التحكم في المجموعات.'\n }, {\n facet: 4,\n title: 'النشاط',\n text: 'الأفراد النشطون يعيشون حياة سريعة ومشغولة. يتحركون بسرعة ونشاط وحيوية ويشتركون في أنشطة وفعاليات كثيرة. أصحاب الدرجات المتدنية يعيشون حياةً أبطأ وأكثر استرخاءً.'\n }, {\n facet: 5,\n title: 'البحث عن الإثارة',\n text: 'أصحاب الدرجات العالية في هذا الجانب يملّون بسهولة عند غياب مستويات الإثارة العالية، ويحبون الإضاءات البرّاقة والضجيج والصخب، ويميلون نحو المجازفة ويسعون خلف الإثارة. أما أصحاب الدرجات المتدنية فيُتعِبهم الضجيج والصخب ولا يسعون خلف الإثارة.'\n }, {\n facet: 6,\n title: 'الابتهاج',\n text: 'هذا الجانب يقيس المزاج والمشاعر الإيجابية وليس المشاعر السلبية (سمة العُصابية هي التي تقيس المشاعر السلبية). أصحاب الدرجات العالية في الابتهاج يعيشون مشاعراً إيجابية عديدة منها السعادة والحماس والتفاؤل والفرح. أصحاب الدرجات المتدنية لا يعيشون هذه المشاعر بالقدر الذي يعيشه أصحاب الدرجات العالية.'\n }]\n};","module.exports = {\n domain: 'N',\n title: 'العُصابية',\n shortDescription: 'العُصابية تقيس قابلية الفرد لخوض المشاعر السلبية.',\n description: `Freud originally used the term neurosis to describe a\ncondition marked by mental distress, emotional suffering, and an\ninability to cope effectively with the normal demands of life. He\nsuggested that everyone shows some signs of neurosis, but that we\ndiffer in our degree of suffering and our specific symptoms of\ndistress. Today neuroticism refers to the tendency to experience\nnegative feelings. Those who score high on Neuroticism may\nexperience primarily one specific negative feeling such as anxiety,\nanger, or depression, but are likely to experience several of these\nemotions. People high in neuroticism are emotionally reactive. They\nrespond emotionally to events that would not affect most people, and\ntheir reactions tend to be more intense than normal. They are more\nlikely to interpret ordinary situations as threatening, and minor\nfrustrations as hopelessly difficult. Their negative emotional\nreactions tend to persist for unusually long periods of time, which\nmeans they are often in a bad mood. These problems in emotional\nregulation can diminish a neurotic's ability to think clearly, make\ndecisions, and cope effectively with stress.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Neuroticism is low, indicating that you are\nexceptionally calm, composed and unflappable. You do not react with\nintense emotions, even to situations that most people would describe\nas stressful.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Neuroticism is average, indicating that your level of\nemotional reactivity is typical of the general population.\nStressful and frustrating situations are somewhat upsetting to you,\nbut you are generally able to get over these feelings and cope with\nthese situations.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Neuroticism is high, indicating that you are easily\nupset, even by what most people consider the normal demands of\nliving. People consider you to be sensitive and emotional.`\n }],\n facets: [{\n facet: 1,\n title: 'القلق',\n text: 'يسهل تنشيط نظام المكافحة أو الهروب في أدمغة الأفراد القلقين. لهذا السبب أصحاب القلق العالي عادةً يشعرون أن شيئاً خطيراً على وشك الحدوث. قد يعتريهم الخوف من مواقف معينة، أو ربما يعيشون حالة خوف عامة. لذلك كثيراً ما يعتريهم شعور بالتوتر والهياج. أما أصحاب الدرجات المتدنية فهم غالباً هادئون وغير متخوّفين.'\n }, {\n facet: 2,\n title: 'الغضب',\n text: 'أصحاب الدرجات العالية في هذا الجانب يشعرون بالغضب عندما لا تسير الأمور على النحو المرغوب. هم حساسون من مسألة المعاملة بالعدل، ويعتريهم الاستياء والامتعاض عندما يشعرون أنه تم خداعهم. هذا الجانب يقيس النزعة نحو الشعور بالغضب، أما تعبير الفرد عن استيائه بأي طريقة ما من عدمها فهذا يعتمد على درجة سمة المسايرة لدى الفرد. أصحاب الدرجات المتدنية في جانب الغضب لا يغضبون بكثرة ولا بسهولة.'\n }, {\n facet: 3,\n title: 'الاكتئاب',\n text: 'هذا الجانب يقيس نزعة الفرد نحو الشعور بالحزن والاكتئاب والإحباط. أصحاب الدرجات العالية تنقصهم الحيوية ويجدون صعوبة في ابتداء الأنشطة. أما أصحاب الدرجات المتدنية فغالباً لا يعيشون هذه المشاعر.'\n }, {\n facet: 4,\n title: 'التدقيق بالذات',\n text: 'أصحاب الدرجات العالية في هذا الجانب يتحسسون من مسألة نظرة الناس لهم، فخوفهم من رفض وسخرية الناس بهم يُشعرهم بالخجل وعدم الارتياح. من السهل إرباكهم وإحراجهم. خوفهم من نقد وسخرية الناس لهم مبالغ فيه وغير واقعي، وكونهم مرتبكين وغير مرتاحين يوثّق ويثبت ذلك الخوف لديهم. أما أصحاب الدرجات المتدنية فلا يعتقدون بأن الجميع يشاهدهم وينتقدهم، لذلك هم لا يشعرون بالتوتر في المواقف الاجتماعية.'\n }, {\n facet: 5,\n title: 'الانغماس',\n text: 'أصحاب الدرجات العالية في هذا الجانب يشعرون برغبة شديدة وملحة تجاه ملذات لا يستطيعون مقاومتها، فيختارون الانغماس في ملذات ومكافآت قصيرة المدى عوضاً عن المكافآت بعيدة المدى. أصحاب الدرجات المتدنية لا يشعرون بهذا الإلحاح القوي لذلك لا تؤثر فيهم تلك الإغراءات بشدة.'\n }, {\n facet: 6,\n title: 'قابلية التأثر',\n text: 'أصحاب الدرجات العالية في هذا الجانب يشعرون بالهلع والالتباس والعجز عندما يكونون تحت الضغط أو الاجهاد. أصحاب الدرجات المتدنية يتسمون بالاتزان والثقة ووضوح التفكير تحت الضغوطات.'\n }]\n};","module.exports = {\n domain: 'C',\n title: 'اليقظة/التفاني',\n shortDescription: 'سمة اليقظة/التفاني تقيس تحكمنا وضبطنا وتوجيهنا لدوافعنا.',\n description: `Impulses are not inherently bad;\noccasionally time constraints require a snap decision, and acting on\nour first impulse can be an effective response. Also, in times of\nplay rather than work, acting spontaneously and impulsively can be\nfun. Impulsive individuals can be seen by others as colorful,\nfun-to-be-with, and zany.\n \nNonetheless, acting on impulse can lead to trouble in a number of\nways. Some impulses are antisocial. Uncontrolled antisocial acts\nnot only harm other members of society, but also can result in\nretribution toward the perpetrator of such impulsive acts. Another\nproblem with impulsive acts is that they often produce immediate\nrewards but undesirable, long-term consequences. Examples include\nexcessive socializing that leads to being fired from one's job,\nhurling an insult that causes the breakup of an important\nrelationship, or using pleasure-inducing drugs that eventually\ndestroy one's health.\n \nImpulsive behavior, even when not seriously destructive, diminishes\na person's effectiveness in significant ways. Acting impulsively\ndisallows contemplating alternative courses of action, some of which\nwould have been wiser than the impulsive choice. Impulsivity also\nsidetracks people during projects that require organized sequences\nof steps or stages. Accomplishments of an impulsive person are\ntherefore small, scattered, and inconsistent.\n \nA hallmark of intelligence, what potentially separates human beings\nfrom earlier life forms, is the ability to think about future\nconsequences before acting on an impulse. Intelligent activity\ninvolves contemplation of long-range goals, organizing and planning\nroutes to these goals, and persisting toward one's goals in the face\nof short-lived impulses to the contrary. The idea that intelligence\ninvolves impulse control is nicely captured by the term prudence, an\nalternative label for the Conscientiousness domain. Prudent means\nboth wise and cautious.\n \nPersons who score high on the\nConscientiousness scale are, in fact, perceived by others as intelligent.\nThe benefits of high conscientiousness are obvious. Conscientious\nindividuals avoid trouble and achieve high levels of success through\npurposeful planning and persistence. They are also positively\nregarded by others as intelligent and reliable. On the negative\nside, they can be compulsive perfectionists and workaholics.\nFurthermore, extremely conscientious individuals might be regarded\nas stuffy and boring.\n \nUnconscientious people may be criticized for\ntheir unreliability, lack of ambition, and failure to stay within\nthe lines, but they will experience many short-lived pleasures and\nthey will never be called stuffy.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Conscientiousness is low, indicating you like to live\nfor the moment and do what feels good now. Your work tends to be\ncareless and disorganized.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Conscientiousness is average. This means you are\nreasonably reliable, organized, and self-controlled.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Conscientiousness is high. This means you set clear\ngoals and pursue them with determination. People regard you as\nreliable and hard-working.`\n }],\n facets: [{\n facet: 1,\n title: 'الإحساس بالكفاءة',\n text: 'جانب الإحساس بالكفاءة يصف ثقة الفرد في قدرته على إنجاز الأمور. أصحاب الدرجة العالية في هذا الجانب يؤمنون بأنهم يمتلكون الفهم والحافز والانضباط اللازم لتحقيق النجاح. أصحاب الدرجات المتدنية يشعرون بأنهم غير فعّالون وقد يشعرون بأنهم لا يملكون زمام الأمور في سير حياتهم.'\n }, {\n facet: 2,\n title: 'التنظيم',\n text: 'أًصحاب الدرجات العالية في جانب التنظيم هم بطبيعة الحال منظمون، ويحبون العيش بناءً على روتين وجدول معين، ويحررون القوائم ويصنعون الخطط. أما أصحاب الدرجات المتدنية فهم عادةً فوضويون وغير منظمين.'\n }, {\n facet: 3,\n title: 'الالتزام',\n text: 'أصحاب الدرجات العالية في هذا الجانب يتمتعون بدرجة عالية من حس الالتزام وإنجاز ما يتعهدون بإنجازه. أصحاب الدرجات المتدنية يشعرون بأن العهود واللوائح خانقة، وغالباً ما يُنظر إليهم على أنهم غير جديرين بالثقة ولا يتحملون المسؤولية.'\n }, {\n facet: 4,\n title: 'النضال من أجل الإنجاز',\n text: 'الأفراد الذين يسجلون درجات عالية في هذا الجانب يناضلون بقوة من أجل تحقيق الامتياز، ورغبتهم بأن يُعرفوا كناجحين تدفعهم للبقاء في طريق إنجاز الأهداف. في العادة يكون لديهم اتجاه في الحياة، ولكن أصحاب الدرجات شديدة الارتفاع قد يتصفون بأحادية التفكير والهوس بأعمالهم. أصحاب الدرجات المتدنية يرضون بعمل أقل ما يمكن لإنجاز ما ينبغي، وقد يصفهم غيرهم بأنهم كسالى.'\n }, {\n facet: 5,\n title: 'ضبط الذات',\n text: 'ضبط الذات أو ما يسميه البعض بقوة الإرادة يصف الإصرار على والمثابرة من أجل إنهاء المهمات الصعبة أو غير المحببة. من يمتلكون درجات عالية في ضبط الذات لديهم القدرة على هزيمة ما ينتابهم من تردد في بدء المهام وتسييرها كما ينبغي حتى مع وجود الملهيات. أما أصحاب الدرجات المتدنية فهم يسوّفون ويماطلون، وعادةً ما يفشلون في إنهاء المهام بما فيها تلك المهام التي يرغبون بشدة أن تكتمل.'\n }, {\n facet: 6,\n title: 'الحذر/الرويّة',\n text: 'هذا الجانب يصف ميل الفرد إلى التفكير المسبق في الاحتمالات الممكنة قبل الفعل. أصحاب الدرجات العالية في هذا الجانب يتأنون عند اتخاذ القرارات. أما أصحاب الدرجات المتدنية فيقولون ويفعلون ما يطرأ على تفكيرهم دون التأني واعتبار البدائل الممكنة وعواقب تلك البدائل.'\n }]\n};","module.exports = {\n domain: 'O',\n title: 'الانفتاح',\n shortDescription: 'الانفتاح أو الانفتاح على التجارب هو السمة التي تميّز أصحاب الخيال والإبداع عن غير الخياليين والتقليديين.',\n description: `Open people are intellectually curious,\nappreciative of art, and sensitive to beauty. They tend to be,\ncompared to closed people, more aware of their feelings. They tend to\nthink and act in individualistic and nonconforming\nways. Intellectuals typically score high on Openness to Experience;\nconsequently, this factor has also been called Culture or\nIntellect. Nonetheless, Intellect is probably best regarded as one aspect of openness\nto experience. Scores on Openness to Experience are only modestly\nrelated to years of education and scores on standard intelligent tests.\n \nAnother characteristic of the open cognitive style is a facility for thinking\nin symbols and abstractions far removed from concrete experience. Depending on\nthe individual's specific intellectual abilities, this symbolic cognition may\ntake the form of mathematical, logical, or geometric thinking, artistic and\nmetaphorical use of language, music composition or performance, or one of the\nmany visual or performing arts.\n \nPeople with low scores on openness to experience tend to have narrow, common\ninterests. They prefer the plain, straightforward, and obvious over the\ncomplex, ambiguous, and subtle. They may regard the arts and sciences with\nsuspicion, regarding these endeavors as abstruse or of no practical use.\nClosed people prefer familiarity over novelty; they are conservative and\nresistant to change.\n \nOpenness is often presented as healthier or more mature by psychologists, who\nare often themselves open to experience. However, open and closed styles of\nthinking are useful in different environments. The intellectual style of the\nopen person may serve a professor well, but research has shown that closed\nthinking is related to superior job performance in police work, sales, and\na number of service occupations.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Openness to Experience is low, indicating you like to think in\nplain and simple terms. Others describe you as down-to-earth, practical,\nand conservative.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Openness to Experience is average, indicating you enjoy\ntradition but are willing to try new things. Your thinking is neither\nsimple nor complex. To others you appear to be a well-educated person\nbut not an intellectual.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Openness to Experience is high, indicating you enjoy novelty,\nvariety, and change. You are curious, imaginative, and creative.`\n }],\n facets: [{\n facet: 1,\n title: 'الخيال',\n text: 'أصحاب الخيال يرون أن العالم الحقيقي اعتيادي وربما باهت، لذلك فأصحاب الخيال العالي يستخدمون الخيال لبناء عالم أكثر إثارة ووفرة. أما أصحاب الدرجات المتدنية فيُفضّلون الواقع على الخيال.'\n }, {\n facet: 2,\n title: 'الجماليات',\n text: 'أصحاب الدرجات العالية في هذا الجانب يحبون الجمال في الطبيعة وكذلك في الفن. لذلك هم يتفاعلون وينغمسون مع الأحداث الفنية والطبيعية. قد يمتلكون المهارة الفنية وربما يمارسون الفن أنفسهم، ولكن ليس بالضرورة. إذاً فهذا الجانب يقيس الاهتمام والتقدير للجمال الطبيعي والمصنوع (الفني). أصحاب الدرجات المتدنية لا يملكون تلك الدرجة من الحس الجمالي والاهتمام بالفنون.'\n }, {\n facet: 3,\n title: 'المشاعر',\n text: 'أصحاب الدرجة العالية في هذا الجانب يكونون أقرب لمشاعرهم وأوعى بها. أما أصحاب الدرجات المتدنية فهم أقل وعياً بمشاعرهم، وهم يميلون إلى عدم التعبير عن مشاعرهم علناً.'\n }, {\n facet: 4,\n title: 'المغامرة',\n text: 'أصحاب الدرجات العالية يتشوقون لتجربة أنشطة جديدة والسفر لأماكن جديدة وتجربة أشياء مختلفة. إن الروتين والشيء المألوف ممل بالنسبة لهم، فهذا الفرد قد يرجع لبيته من طريق مختلف من أجل التغيير. أصحاب الدرجات المتدنية لا يرتاحون للتغيير ويفضّلون الروتين المألوف.'\n }, {\n facet: 5,\n title: 'الأفكار',\n text: 'جانبا الأفكار والجماليات هما أهم جوانب سمة الانفتاح. أصحاب الدرجة العالية في هذا الجانب يحبون المرح مع الأفكار، وهم منفتحون للأفكار الجديدة والمختلفة، ويحبون المناقشات الفكرية. كذلك يحبون الألغاز والأحجيات وكل ما يُنشّط العقل. أصحاب الدرجات المتدنية يُفضلون التعامل إما مع الناس أو الأشياء ولكن ليس الأفكار، ويرون أن التعامل مع الأفكار هو مضيعة للوقت. لا يجب خلط جانب الأفكار مع الذكاء لأن الذكاء هو نمط عقلي وليس قدرة عقلية. ومع ذلك أصحاب الدرجات العليا في جانب الأفكار يسجلون درجات أعلى قليلاً في اختبارات الذكاء المعتمدة.'\n }, {\n facet: 6,\n title: 'التحرر',\n text: 'هذا الجانب يشير إلى استعداد الفرد لتحدي السُلطات وتحدي المعهود والتقليدي. وقد يشير هذا الجانب في الحالات القصوى إلى عداء صريح للقوانين وتعاطف مع الخارجين عن القانون وحب للغموض والفوضى والشغب. أما أصحاب الدرجات المتدنية فيُفضّلون الأمن والاستقرار اللذين يأتيان من الامتثال للمعهود. هذه الصفات ليست مرادفة للتحرر والمحافظة السياسية، ولكنها حتماً تؤثر على أصحابها في رسم آرائهم السياسية.'\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Imødekommenhed',\n shortDescription: 'Imødekommenhed afspejler individuelle forskelle i interessen for samarbejde og social harmoni. Imødekommende individer sætter pris på at komme godt ud af det med andre mennesker.',\n description: `De er derfor hensynsfulde, venlige,\ngenerøse, hjælpsomme og villige til at gå på kompromis med andre. \nImødekommende mennesker har også et optimistisk syn på menneskets\nnatur. De tror på, at andre mennesker i bund og grund er ærlige, \nanstændige og pålidelige. \nUimødekommende individer sætter deres egeninteresse højere end hensynet \ntil at komme overens med andre. De bekymrer sig generelt ikke om andres \nvelvære, og de er derfor utilbøjelige til at være fleksible af hensyn til \nandre mennesker. Undertiden får deres mistro over for andres motiver dem \ntil at blive mistænksomme, uvenlige og usamarbejdsvillige.\n \nImødekommenhed er åbenlyst en fordel i forhold til at opnå og bevare\npopularitet. Imødekommende mennesker er mere vellidte end uimødekommende\nmennesker. På den anden side er imødekommenhed ikke en styrke i situationer,\nhvor der er behov for at træffe hårde eller fuldstændigt objektive beslutninger. Uimødekommende\nmennesker kan blive fremragende videnskabsmænd, kritikere eller soldater.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `\"Din score på Imødekommenhed er lav, hvilket indikerer en mindre interesse\nfor andres behov end for dine egne. Andre mennesker ser dig som hård,\nkritisk og kompromisløs.\"\n`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Din Imødekommenhed er gennemsnitlig, hvilket indikerer en vis interesse\nfor andres behov men generelt en modvilje mod at ofre\ndig for andre.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Dit høje niveau af Imødekommenhed indikerer en stærk interesse for\nandres behov og velvære. Du er rar, sympatisk og\nsamarbejdsvillig.`\n }],\n facets: [{\n facet: 1,\n title: 'Tillid',\n text: `En person med høj tillid antager, at de fleste mennesker\ner rimelige, ærlige og har gode intentioner. Personer med lav tillid\nser andre som egoistiske, uærlige og potentielt farlige.`\n }, {\n facet: 2,\n title: 'Moralitet',\n text: `Dem, der scorer højt på denne skala, ser ikke behov for \nforegivender eller manipulation i deres interaktion med andre og er derfor\nligefremme, ærlige og oprigtige. Dem, der scorer lavt, mener, at der er behov for en vis\ngrad af bedrag i sociale relationer. Andre mennesker\nfinder det forholdsvis nemt at forholde sig til de ligefremme\nindivider, der scorer højt på denne skala. De finder det generelt vanskeligere\nat forholde sig til de mindre ligefremme personer, der scorer lavt på denne skala. Det\nskal bemærkes, at mennesker, der scorer lavt, ikke er uden principper\neller moral; de er blot mere på vagt og mindre villige til åbent\nat afsløre hele sandheden.`\n }, {\n facet: 3,\n title: 'Altruisme',\n text: `Altruistiske mennesker ser en selvstændig \nværdi i at hjælpe andre. De er derfor generelt villige til\nhjælpe folk i nød. Altruistiske mennesker oplever det at\ngøre ting for andre som en form for selvrealisering\nsnarere end som selvopofrelse. Dem, der scorer lavt på denne skala, er ikke \nudpræget glade for at hjælpe mennesker i nød. Anmodninger om hjælp føles mere \nsom et krav, end som en mulighed for selvrealisering.`\n }, {\n facet: 4,\n title: 'Samarbejde',\n text: `Individer, der scorer højt på denne skala, kan ikke\nlide konfrontationer. De er villige til at gå på kompromis eller\nundertrykke deres egne behov for at komme godt ud af det med andre. Dem,\nder scorer lavt på denne skala, er mere tilbøjelige til at presse andre for\nat få deres vilje.`\n }, {\n facet: 5,\n title: 'Beskedenhed',\n text: `Dem, der scorer højt på denne skala, kan ikke lide at fremstille\nsig selv som bedre end andre mennesker. I nogle tilfælde kan denne tilgang\nskyldes lav selvtillid eller lavt selvværd. Ikke desto mindre,\ner der nogle mennesker med høj selvtillid, som betragter ubeskedenhed som upassende. Dem,\nsom er villige til at fremstille sig selv som overlegne, har en tendens til\ntil at blive opfattet som ubehageligt arrogante af andre mennesker.`\n }, {\n facet: 6,\n title: 'Sympati',\n text: `Personer, der scorer højt på denne skala, er\nkærlige og medfølende. De føler andres smerte tydeligt\nog får nemt medlidenhed med folk. Dem, der scorer lavt, påvirkes ikke\nnoget videre af menneskelig lidelse. De sætter en ære i\nat træffe objektive valg baseret på fornuft. De bekymrer sig mere om\nsandhed og upartisk retfærdighed end om barmhjertighed.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Udadvendthed',\n shortDescription: 'Udadvendthed er kendetegnet ved en udtalt optagethed af den ydre verden.',\n description: `Udadvendte mennesker nyder at være sammen med andre, har masser af energi, og\noplever ofte positive følelser. De har en tendens til at være entusiastiske,\nhandlingsorienterede individer, som er tilbøjelige til at sige \"Ja!\" eller \"Lad os\nkomme af sted!\", når der er udsigt til lidt spænding. I grupper kan de lide at tale,\nfremhæve og gøre opmærksomme på sig selv.\n \nIndadvendte mennesker har ikke sammme kådhed, energi og aktivitetsniveau som\nudadvendte. De har en tendens til at være stille, lavmælte, velovervejede og\nafkoblede fra den sociale verden. Deres manglende interesse for socialt engagement\nskal ikke ses som udtryk for generthed eller depression; \nindadvendte har simpelthen ikke samme behov for stimulering som udadvendte\nog foretrækker at være alene. Den indadvendtes selvstændighed \nog tilbageholdenhed forveksles nogle gange fejlagtigt med uvenlighed eller arrogance. \nI praksis vil en indadvendt person, som scorer højt på imødekommenhed, ikke \nopsøge andres selskab, men vil være ganske behagelig, hvis andre henvender sig.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Din score på Udadvendthed er lav, hvilket indikerer, at du er\nindadvendt, reserveret og stille. Du sætter pris på alenetid og på at dyrke aktiviteter\nfor dig selv. Din sociale omgang vil typisk begrænse sig til nogle få, nære venner.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Din score på Udadvendthed er gennemsnitlig, hvilket indikerer, at du \nhverken er en afdæmpet enspænder eller et jovialt sludrechatol. Du kan godt lide at tilbringe tid\nmed andre men også at have tid for dig selv.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Din score på Udadvendthed er høj, hvilket indikerer, at du er\nsocial, udadvendt, energisk og livlig. Du foretrækker at være i selskab\nmed andre mennesker det meste af tiden.`\n }],\n facets: [{\n facet: 1,\n title: 'Venlighed',\n text: `Venlige mennesker kan godt lide andre mennesker\nog viser åbent deres positive følelser overfor andre. De har nemt ved at \nfå venner, og det er nemt for dem at danne tætte, intime\nforhold. Dem, der scorer lavt på Venlighed, er ikke nødvendigvis kolde\nog afvisende, men de rækker ikke ud til andre og opfattes som\nsom fjerne og reserverede.`\n }, {\n facet: 2,\n title: 'Selskabelighed',\n text: `Selskabelige mennesker finder andres selskab\nbehageligt stimulerende og givende. De nyder at være blandt\nmange mennesker. Dem, der scorer lavt, har en tendens til at blive overvældet af,\nog undgår derfor aktivt, større menneskemængder. De har ikke nødvendigvis noget imod\nat være sammen med andre en gang imellem, men deres behov for privatliv og\ntid for sig selv er større end hos individer, som scorer\nhøjt på denne skala.`\n }, {\n facet: 3,\n title: 'Selvhævdelse',\n text: `Dem, der scorer højt på Selvhævdelse, kan godt lide at sige\n deres mening, tage styringen og guide andres aktiviteter. De har en tendens til\n at have lederrollen i en gruppe. Dem, der scorer lavt, siger ikke meget og lader\n andre styre aktiviteterne i en gruppe.`\n }, {\n facet: 4,\n title: 'Aktivitetsniveau',\n text: `Aktive individer lever tempofyldte og\ntravle liv. De bevæger sig omkring hurtigt og energisk og\ntager del i mange aktiviteter. Personer, som scorer lavt på denne\nskala, lever et mere stille og roligt liv i et afslappet tempo.`\n }, {\n facet: 5,\n title: 'Spændingssøgende',\n text: `Dem, der scorer højt på denne skala, kommer nemt\ntil at kede sig, hvis de ikke får en masse ekstern stimulation. De elsker alle lysene\nog livet i byen. De er tilbøjelige til at tage chancer og søge\nspænding. Dem, der scorer lavt, overvældes af larmen og påstyret og er\naverse overfor spænding.`\n }, {\n facet: 6,\n title: 'Munterhed',\n text: `Denne skala måler positivt humør og\nfølelser, ikke negative følelser (som er en del af\nNeuroticisme-domænet). Personer, der scorer højt på denne skala, oplever \ntypisk forskellige positive følelser, inklusive glæde,\nentusiasme, optimisme og lykke. Dem, der scorer lavt, er ikke nær så tilbøjelige til at have\nsådanne energiske, glade følelser.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neuroticisme',\n shortDescription: 'Neuroticisme referer til tendensen til at opleve negative følelser.',\n description: `Freud brugte oprindeligt betegnelsen neurose til at beskrive en\ntilstand kendetegnet ved mental og følelsesmæssig lidelse og en\nmanglende evne til at håndtere de krav, som livet almindeligvis stiller. Han\nantydede, at alle udviser en eller anden form for tegn på neurose, men at vi\ner forskellige, hvad angår graden af lidelse og de specifikke symptomer\nherpå. I dag referer neuroticisme til tendensen til at have\nnegative følelser. Dem, der scorer højt på neuroticisme,\nkan være meget udsat for en bestemt negativ følelse som angst,\nvrede eller depression, men vil sandsynligvis opleve flere af disse\nfølelser. Mennesker, som scorer højt på neuroticisme, er følelsesmæssigt reaktive. De\nreagerer følelsesmæssigt på begivenheder, som normalt ikke påvirker andre mennesker, og \nderes reaktioner har det med at være mere intense end normalt. De er mere tilbøjelige \ntil at opleve almindelige situationer som truende, og mindre\nudfordringer som håbløst vanskelige. Deres negative følelsesmæssige\nreaktioner har det med at vare ved i usædvanligt lang tid, hvilket \nresulterer i, at de ofte er i dårligt humør. Disse problemer med følelsesmæssig\nregulering kan formindske neurotikerens evne til at tænke klart, træffe\nbeslutninger og håndtere stress på en effektiv måde.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Din score på Neuroticisme er lav, hvilket indikerer, at du er\nmeget rolig, fattet og ligevægtig. Du reagerer ikke med\nintense følelsesmæssige udbrud, selv ikke i situationer, som de \nfleste andre ville betragte som stressende.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Din score på Neuroticisme er gennemsnitlig, hvilket indikerer, at\ndine følesesmæssige reaktioner er typisk for befolkningen som helhed.\nStressende og frustrerende situationer påvirker dig i nogen grad,\nmen du er generelt i stand til at sætte dig ud over disse følelser og håndtere\nsituationen.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Din score på Neuroticisme er høj, hvilket indikerer, at du let bliver\npåvirket, selv i situationer som de fleste ser som en normal del af\nlivet. Andre mennesker opfatter dig som sensitiv og emotionel.`\n }],\n facets: [{\n facet: 1,\n title: 'Angst',\n text: `Hjernens \"kæmp-eller-flygt\"-system bliver hos angste mennesker\naktiveret for nemt og for ofte. Derfor har mennesker, som scorer\nhøjt på angst, det ofte med at føle, at der sker noget farligt.\nMåske er de bange for bestemte situationer, eller også er de generelt frygtsomme.\nDe er anspændte og nervøse. Personer, som scorer lavt på angst, er normalt\nrolige og frygtløse.`\n }, {\n facet: 2,\n title: 'Vrede',\n text: `Personer, som scorer højt på Vrede, bliver rasende,\nnår tingene ikke går, som de ønsker det. De er meget optagede af at blive \nordentligt behandlet, og de føler vrede og bitterhed, hvis de føler, de bliver snydt.\nDenne skala måler tendensen til at føle vrede; hvorvidt\npersonen også udtrykker irritation eller fjendtlighed, afhænger af personens\nBehagelighedsniveau. Dem der scorer lavt, bliver sjældent vrede.`\n }, {\n facet: 3,\n title: 'Depression',\n text: `Denne skala måler tendensen til at føle sig trist, bedrøvet\nog modløs. Dem, der scorer højt, mangler energi og har svært ved selv at i\nværksætte aktiviteter. Dem, der scorer lavt, har en tendens til ikke at få \nsådanne depressive følelser.`\n }, {\n facet: 4,\n title: 'Selvbevidsthed',\n text: `Selvbevidste individer er følsomme\nover for, hvad andre mennesker tænker om dem. Deres bekymring for at blive afvist eller\nforhånet får dem til at føle sig generte og dårligt tilpas sammen med andre. De\nføler sig nemt pinligt berørt og bliver ofte flove. Deres frygt for at andre\nvil kritisere dem eller drille dem er overdreven og urealistisk, men deres\nakavethed og ubehag kan gøre denne frygt til en selvopfyldende\nprofeti. I modsætning hertil, lider dem, der scorer lavt, ikke af denne fejlagtige\nopfattelse af, at alle ser på dem og dømmer dem. De bliver ikke\nnervøse i sociale sammenhænge.`\n }, {\n facet: 5,\n title: 'Umådeholdenhed',\n text: `Umådeholdne individer føler stærke tilbøjeligheder og\nlyster, som de har svært ved at undertrykke. De har det med at være\nmeget fokuserede på kortsigtet nydelse og belønning, snarere end på\nde langsigtede konsekvenser. Dem, der scorer lavt, oplever ikke stærke, uimodståelige\nlyster og bliver derfor heller ikke fristet til umådeholden nydelse.`\n }, {\n facet: 6,\n title: 'Sårbarhed',\n text: `Dem, der scorer højt på Sårbarhed, oplever\npanik, forvirring og hjælpeløshed, når de er stressede eller under pres.\nDem, der scorer lavt, er mere fattede, selvsikre og klarttænkende, når de\nbliver presset.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Påpasselighed',\n shortDescription: 'Påpasselighed handler om den måde, hvorpå vi kontrollerer, regulerer og styrer vores impulser.',\n description: `Impulser er ikke i sig selv dårlige;\ni nogle tilfælde kan tidspres kræve en hurtig beslutning, og en\nimpulsiv reaktion baseret på første indskydelse kan være fornuftig. \nOg når man ikke er på arbejde, og det hele ikke er så alvorligt, \nkan det være sjovt at agere spontant og impulsivt. Impulsive individer \nkan af andre bliver opfattet som farverige, sjove at være sammen med og småskøre.\n \nMen impulsive handlinger kan også give problemer. Nogle impulser er asociale. \nUkontrollerede asociale handlinger kan ikke bare være til skade for andre \nmennesker, men kan også føre til gengældelse eller straf mod den, der begår \ndisse handlinger. Et andet problem med impulsive handlinger er, at de ofte \ngiver umiddelbare gevinster men har uønskede konsekvenser på længere sigt. \nEksempelvis kan overdreven socialisering føre til, at man bliver fyret fra sin job,\nfornærmer man en anden, kan det ødelægge et\nvigtigt forhold, og brugen af nydelsesmidler kan i sidste ende\nødelægge ens helbred.\n \nImpulsiv adfærd mindsker, selv når den ikke er alvorligt destruktiv,\ni væsentlig grad en persons effektivitet. Når man handler impulsivt,\nhar man ikke tid til at overveje alternative handlinger, som i nogle\ntilfælde kan være mere hensigtsmæssige end det impulsive valg. \nImpulsivitet kan også skabe distraktioner i projekter, som kræver \nplanlagte sekvenser af trin eller faser. Et impulsivt menneskes bedrifter er\nderfor små, spredte og usammenhængende.\n \nEt af kendetegnene på intelligens, og noget af det som potentielt adskiller\nmennesket fra tidligere livsformer, er evnen til at tænke over fremtidige\nkonsekvenser, før man handler på en indskydelse. Intelligent aktivitet\ninkluderer det at overveje sine langsigtede mål, at organisere og planlægge\nvejen frem til disse mål, og at fortsætte med at prøve at realisere disse\nmål på trods pludselige indskydelser i modsat retning. Idéen om at intelligens\ninvolverer evnen til at kontrollere sine impulser er godt indfanget af begrebet \nfornuftighed, en alternativ overskrift for Påpasselighed. Fornuftig betyder \nbåde vis og forsigtig.\n \nPersoner, der scorer højt på\nskalaen for Påpasselighed, opfattes af andre faktisk som intelligente.\nFordelene ved høj påpasselighed er tydelige. Påpasselige\nindivider undgår problemer og opnår en høj grad af succes gennem\nmålbevidst planlægning og vedholdenhed. De opfattes også positivt af \nandre som intelligente og pålidelige. På den negative\nside kan de være rendyrkede perfektionister og arbejdsnarkomaner.\nDerudover kan ekstremt påpasselige mennesker blive opfattet \nsom tørre og kedelige.\n \nUpåpasselige mennesker kan blive kritiseret for\nderes upålidelighed, mangel på ambitioner og manglende evne til \nat holde sig inden for rammerne, men de kan få mange kortvarige fornøjelser,\nog de vil aldrig blive betragtet som kedelige.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Din score på Påpasselighed er lav, hvilket indikerer, at du kan lide at leve\ni øjeblikket og gøre hvad der føles godt her og nu. Dit arbejde har en tendens til at være\nsjusket og uorganiseret.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Din score på Påpasselighed er gennemsnitlig. Det betyder, at du er\nrimelig pålidelig, organiseret og selvkontrolleret.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Din score på Påpasselighed er høj. Det betyder, at du sætter klare\nmål og forfølger dem beslutsomt. Andre mennesker ser dig som\npålidelig og hårdtarbejdende.`\n }],\n facets: [{\n facet: 1,\n title: 'Selvsikkerhed',\n text: `Selvsikkerhed beskriver tilliden til ens egne\nevner til at udrette ting. Dem, der scorer højt, mener selv, at de har den nødvendige intelligens\n(snusfornuft), drive og selvkontrol til at opnå succes.\nDem, der scorer lavt, synes ikke, de er effektive, og føler måske, at \nde ikke har kontrol over deres eget liv.`\n }, {\n facet: 2,\n title: 'Ordentlighed',\n text: `Personer, som scorer højt på ordentlighed, er\nvelorganiserede. De kan godt lide at leve efter rutiner og tidsplaner. De\nskriver lister og laver planer. Dem, der scorer lavt, har en tendens til at være uorganiserede\nog flyvske.`\n }, {\n facet: 3,\n title: 'Pligtopfyldenhed',\n text: `Denne skala afspejler graden af en persons \npligtfølelse. Dem, der scorer højt på denne skala, føler en stærk\nmoralsk forpligtelse. Dem, der scorer lavt, opfatter kontrakter, regler og\nlove som unødigt begrænsende. De opfattes ofte som upålidelige\neller endda uansvarlige.`\n }, {\n facet: 4,\n title: 'Stræbsomhed',\n text: `Individer, der scorer højt på denne skala,\nstræber efter at opnå det bedste. Deres drive til at blive anerkendt som\nsuccesrige, holder dem på sporet frem mod deres ambitiøse mål. De har ofte\nen stærk retningssans i livet, men nogle af dem, der scorer meget højt\nkan være for ensporerede og besat af deres arbejde. Dem, der scorer lavt, stiller sig tilfredse\nmed at klare sig igennem livet med en minimal arbejdsindsats, og opfattes\nofte af andre som dovne.`\n }, {\n facet: 5,\n title: 'Selvdisciplin',\n text: `Selvdisciplin - hvad mange omtaler som\nviljestyrke - henviser til evnen til vedholdende at arbejde med svære eller \nubehagelige opgaver, indtil de er gennemført. Mennesker, der har høj selvdisciplin,\ner i stand til at overvinde modviljen mod at påbegynde opgaver og blive på sporet,\nuanset forstyrrelser. Dem med lav selvdisciplin udsætter opgaverne og har en dårlig evne til at\nkæmpe igennem, og de er ofte ikke i stand til at gennemføre opgaver - selv ikke\nopgaver, som de faktisk gerne vil gennemføre.`\n }, {\n facet: 6,\n title: 'Forsigtighed',\n text: `Forsigtighed beskriver tilbøjeligheden til at\ntænke tingene igennem, før man handler. Dem, der scorer højt på Forsigtighedskalaen,\ntager sig god tid, når de træffer beslutninger. Dem, der scorer lavt, siger eller gør\nofte det første, der falder dem ind, uden at overveje alternativerne\neller de sandsynlige konsekvenser af disse alternativer.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Åbenhed for nyt',\n shortDescription: 'Åbenhed for nyt beskriver en kognitiv dimension, som adskiller opfindsomme og kreative mennesker fra mennesker, der er mere traditionsbundne og nede-på-jorden.',\n description: `Åbne mennesker er intellektuelt nysgerrige,\nværdsætter kunst og er sensitive over for skønhed. De har det med at være\nmere opmærksomme på deres følelser, sammenlignet med mere lukkede mennesker. \nDe har en tendens til at tænke og handle på mere individualistiske og nonkonforme \nmåder. Intellektuelle scorer typisk højt på Åbenhed for nyt;\nderfor bliver denne faktor også sommetider omtalt som Kultur eller\nIntellekt. Intellekt bør dog nok forstås som et aspekt ved Åbenhed\nfor nyt. Ens score i forhold til Åbenhed for nyt er kun i begrænset omfang\nrelateret til længden på en persons uddannelse og score på en almindelig intelligenstest.\n \nEt andet kendetegn ved den åbne kognitive stil er evnen til at tænke\ni symboler og abstraktioner adskilt fra konkrete erfaringer. Afhængigt af\ndet enkelte individs konkrete intellektuelle evner, kan den symbolske kognition\ntage form af matematisk, logisk eller geometrisk tænkning, kunstnerisk eller\nmetaforisk brug af sprog, musikalsk komposition og optræden, eller af en af\nde mange former for visuel kunst og scenekunst.\n \nPersoner, der scorer lavt på åbenhed for nyt, har en tendens til at have snævre og almindeligt \nudbredte interesser. De foretrækker det simple, ligefremme og tydelige frem for det\nkomplekse, tvetydige og subtile. De ser måske med en vis skepsis på kunst og videnskab,\nog opfatter sådanne aktiviteter som svært tilgængelige og uden praktisk anvendelse.\nLukkede mennesker foretrækker det kendte frem for det nye; de er konservative\nog afvisende over for forandringer.\n \nÅbenhed præsenteres ofte som sundere eller mere modent af psykologer, som \nofte selv er åbne for nyt. Men de åbne og lukkede måder at\ntænke på kan begge vise sig nyttige i forskellige miljøer. Den åbne persons\nintellektuelle stil kan være en fordel for en professor, men forskning viser\nat lukket tænkning kan føre til større effektivt på jobbet inden for politiet,\nsalg og en række servicefag.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Din score på Åbenhed for nyt er lav, hvilket indikerer, at du foretrækker\nat tænke i ligefremme og simple termer. Andre beskriver dig som nede-på-jorden, praktisk anlagt\nog konservativ.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Din score på Åbenhed for nyt er gennemsnitlig, hvilket indikerer, at du godt\nkan lide det traditionelle, men at du også er klar til at prøve nye ting. Din tænkning er hverken\nsimpel eller kompleks. I andres øjne fremstår du som veluddannet,\nmen ikke som intellektuel.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Din score på Åbenhed for nyt er høj, hvilket indikerer, at du godt kan lide nye ting,\nvariation og forandring. Du er nysgerrig, fantasifuld og kreativ.`\n }],\n facets: [{\n facet: 1,\n title: 'Fantasi',\n text: `For fantasifulde mennesker fremstår den virkelige verden\nofte for kedelig og almindelig. Dem, der scorer højt på denne skala, bruger fantasien til at \nskabe en mere farverig og interessant verden. Dem, der scorer lavt på denne \nskala, interesserer sig mere for fakta end for fantasi.`\n }, {\n facet: 2,\n title: 'Interesse for kunst',\n text: `Dem, der scorer højt på denne skala, elsker skønhed, både i\nkunsten og i naturen. De bliver nemt involverede i og optagede af både kunstneriske\nog naturlige begivenheder. De er ikke nødvendigvis talentfulde eller skolede inden for\nkunstens verden, selv om mange er det. De definerende træk på denne skala er\nen interesse i og værdsættelse af naturlig og\nkunstig skønhed. Dem, deres scorer lavt, mangler en æstetisk sans og interesse for\nkunst.`\n }, {\n facet: 3,\n title: 'Følelsesmæssighed',\n text: `Personer, som scorer højt på Følelsesmæssighed, har godt adgang til\nog er i kontakt med deres følelser. Dem, der scorer lavt, er mindre opmærksomme på\nderes følelser og viser dem typisk ikke.`\n }, {\n facet: 4,\n title: 'Eventyrlyst',\n text: `Dem, der scorer højt på eventyrlyst, prøver\ngerne nye ting, rejser til fremmede lande og oplever forskellige\nting. De synes, rutiner og kendte omgivelser er kedelige, og de tager gerne\nhjem en anden vej end de plejer, bare fordi det er anderledes. Dem, der scorer lavt, er tilbøjelige til\nat trives dårligt med forandring, og de foretrækker kendte rutiner.`\n }, {\n facet: 5,\n title: 'Intellekt',\n text: `Intellekt og interesse for kunst er de to \nvigtigste faktorer i forhold til åbenhed for nyt. Dem, der scorer højt på\nIntellekt, elsker at lege med nye tanker og idéer. De er åbne overfor nye og usædvanlige\nidéer og kan godt lide at diskutere intellektuelle emner. De kan godt lide gåder \nog hjernevridere. Dem, der scorer lavt på Intellekt, foretrækker at forholde sig til\nmennesker eller ting, snarere end idéer. De opfatter intellektuelle øvelser som\nspild af tid. Intellekt er ikke det samme som intelligens.\nIntellekt er en intellektuel stil, ikke en intellektuel evne, selv om\ndem, der scorer højt på Intellekt, ligger lidt højere på standardiserede \nintelligenstests end individer med lavt intellekt .`\n }, {\n facet: 6,\n title: 'Liberalisme',\n text: `Psykologisk liberalisme er udtryk for en parathed til at \nudfordre autoriteter, konventioner og traditionelle værdier. I dens mest\nekstreme form kan psykologisk liberalisme endda udtrykke sig gennem\ndirekte fjendtlighed over for regler, sympati med lovbrydere og en kærlighed for usikkerhed,\nkaos og uorden. Psykologisk konservative foretrækker den sikkerhed og \nstabilitet, som traditioner kan give. Psykologisk liberalisme og\nkonservatisme er ikke det samme som politisk tilhørsforhold, men det\nkan være med til at skubbe nogle i retning af bestemte partier.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Verträglichkeit ',\n shortDescription: 'Verträglichkeit zeigt die individuellen Unterschiede für die Bereitschaft zur Kooperation für die soziale Harmonie. Menschen mit stark ausgeprägter Verträglichkeit ist es wichtig sich mit anderen zu verstehen.',\n description: `Daher sind sie rücksichtsvoll, freundlich, großzügig, \nhilfsbereit und zu Kompromissen für das Wohl anderer bereit. \nWohltuende Personen haben ebenfalls eine optimistische Sichtweise auf die \nmenschliche Natur. Sie glauben, dass Menschen ehrlich, anständig und \nvertrauenswürdig sind. \nUnverträgliche Individuen stellen ihr eigenes Interesse über das soziale Wohl.\nDas Wohlergehen anderer ist ihnen generell gleichgültig, damit ist es unüblich\nfür sie sich für das Wohl anderer zu verausgaben. Gelegentlich hat ihre Skepsis\nzur Folge, dass sie von anderen als verdächtig, unfreundlich und nicht kooperativ \ngesehen werden.\n \nVerträglichkeit ist offensichtlich von Vorteil um Popularität zu erlangen und zu \nhalten. Verträgliche Menschen sind eher beliebt als unverträgliche Menschen.\nAndererseits ist Verträglichkeit nicht in Situationen hilfreich, in \ndenen harte oder absolut objektive Entscheidungen gefällt werden müssen. \nUnverträgliche Menschen können exzellente Wissenschaftler, Kritiker und Soldaten sein.`,\n results: [{\n score: 'low',\n text: `Deine Punktzahl für Verträglichkeit ist niedrig, was auf weniger\nInteresse auf das Wohl anderer als dein eigenes hindeutet. Leute sehen dich als\nhart, kritisch und kompromisslos.`\n }, {\n score: 'neutral',\n text: `Dein Verträglichkeitslevel ist normal, welches auf etwas Interesse\nauf das Wohl anderer hindeutet. Allerdings würdest du dich nicht unbedingt für\ndas Wohl anderer aufopfern.`\n }, {\n score: 'high',\n text: `Dein hohes Level an Verträglichkeit deutet auf ein starkes\nInteresse für die Bedürfnisse anderer. Du wirst als angenehm, sympathisch\nund kooperativ angesehen.`\n }],\n facets: [{\n facet: 1,\n title: 'Vertrauen',\n text: `Eine Person mit ausgeprägtem Vertrauen geht davon aus, dass\ndie meisten Leute fair, ehrlich, und guter Dinge sind. Personen mit niedrigem\nVertrauen sehen andere als egoistisch, hinterhältig und potentiell gefährlich.`\n }, {\n facet: 2,\n title: 'Moral',\n text: `Menschen mit hohen Punkten auf dieser Skala sehen keine Notwendigkeit\nauf Manipulation oder Täuschung zu greifen, wenn sie es mit anderen \nMenschen zu tun haben und wirken aufrichtig, offen und ehrlich. Menschen mit\nniedrigen Punktzahlen glauben, dass eine gewisse Unehrlichkeit in sozialen\nBeziehungen dazugehört. Leute empfinden es als einfach sich mit einem Menschen\nmit hoher Punktzahl zu verknüpfen. Generell finden es Leute schwer sich mit\neinem Menschen mit wenigen Punkten zu verknüpfen. Hier sei gesagt, dass eine\nniedrige Punktzahl nicht bedeutet, dass jene Menschen unmoralisch sind; sie\nsind lediglich verschlossener und halten sich mehr bedeckt.`\n }, {\n facet: 3,\n title: 'Altruismus',\n text: `Altruistische Leute finden den Akt des Helfens anderer als \nwirklich bereichernd. Infolgedessen sind sie generell gewillt anderen Menschen\nin Not zu helfen. Altruistische Menschen empfinden es als eine Form von \nSelbsterfüllung statt Selbstaufopferung, wenn sie Leuten in Not helfen. Menschen\nmit wenig Punkten in dieser Skala mögen es nicht besonders Menschen in Not zu\nhelfen. Sie sehen den Aufruf zur Hilfe eher als Zwang statt einer Chance\nzur Selbsterfüllung.`\n }, {\n facet: 4,\n title: 'Kooperation',\n text: `Individuen mit einer hohen Punktzahl in dieser Kategorie mögen\nkeine Konfrontationen. Sie sind durchaus zu einem Kompromiss bereit oder\nstellen ihre eigenen Bedürfnisse für das Wohl anderer zurück. Jene Menschen \nmit einer niedrigen Punktzahl sind eher dazu veranlagt andere einzuschüchtern\num ihren Willen durchzusetzen.`\n }, {\n facet: 5,\n title: 'Bescheidenheit',\n text: `Menschen mit hoher Punktzahl in dieser Skala geben nicht gerne\nzu, dass sie besser als andere Leute sind. In einigen Fällen leitet sich\ndiese Einstellung von niedrigem Selbstbewusstsein oder Selbstwertgefühl ab.\nDennoch finden manche Leute mit hohem Selbstbewusstsein Unanständigkeit als\nungehörig. Diejenigen die gewillt sind sich als überlegen zu beschreiben, \ntendieren dazu von anderen Leuten als arrogant gesehen zu werden.`\n }, {\n facet: 6,\n title: 'Sympathie',\n text: `Menschen mit einer hohen Punktzahl in dieser Skala sind \nweichherzig und mitfühlend. Sie empfinden viel Mitleid und lassen sich leicht\nvon diesem berühren. Menschen mit niedriger Punktzahl sind nicht stark von\nmenschlichem Leid betroffen. Sie sind stolz auf ihre auf Tatsachen begründeten\nobjektiven Entscheidungen. Sie sorgen sich mehr um Wahrheiten und\nunparteiischer Gerechtigkeit als Mitleid.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extraversion',\n shortDescription: 'Extraversion beschreibt das ausgeprägte Engagement mit der Außenwelt.',\n description: `Extrovertierte lieben die Gesellschaft anderer Leute, \nsind voller Energie, und empfinden oft positive Gefühle. Sie sind \nenthusiastische, handlungsorientierte Individuen, die dazu neigen mit \n\"Ja!\" oder \"Auf geht's\" auf neue Chancen für aufregende Aktivitäten zu antworten.\nIn Gruppen reden sie gerne, setzen sich durch und ziehen die \nAufmerksamkeit auf sich.\n \nIntrovertierten fehlt die Ausgelassenheit, die Energie, und die Lust auf \nAktivitäten des Extrovertierten. Sie tendieren dazu leise, \nzurückhaltend, wohlüberlegt, und von der sozialen Welt losgelöst zu \nsein. Ihr Mangel an sozialer Beteiligung sollte nicht als Schüchternheit \noder Depression interpretiert werden; die Introvertierten brauchen \nlediglich weniger Stimulation als ein Extrovertierter und sind gerne \nallein. Die Unabhängigkeit und die zurückhaltende Weise eines \nIntrovertierten wird manchmal als Unfreundlichkeit oder Arroganz \nmisverstanden. In Wirklichkeit wird ein Introvertierter mit hoher \nVerträglichkeit nicht auf Menschen zugehen, ist aber ein geselliger Typ \nwenn sie/er von anderen angesprochen wird.`,\n results: [{\n score: 'low',\n text: `Deine Punktzahl in Extraversion ist niedrig, was darauf \nhinweist, dass du introvertiert, zurückhaltend und leise bist. Du magst \ndie Einsamkeit und Aktivitäten die du alleine machen kannst. Deine \nsozialen Aktivitäten beschränken sich auf wenige, aber nahe Freunde.`\n }, {\n score: 'neutral',\n text: `Deine Punktzahl in Extraversion ist mittelmäßig, was darauf \nhinweist, dass du weder ein leiser Einzelgänger noch eine heitere \nLabertasche bist. Dir gefällt es Zeit mit anderen als auch mit dir \nselbst zu verbringen.`\n }, {\n score: 'high',\n text: `Deine Punktzahl in Extraversion ist hoch, was eine \ngesellige, extrovertierte, energetische und lebendige Art hinweist. Du \nziehst es vor so viel Zeit wie möglich mit anderen Leuten zu \nverbringen.`\n }],\n facets: [{\n facet: 1,\n title: 'Freundlichkeit',\n text: `Freundliche Menschen zeigen aufrichtige positive Gefühle \ngegenüber anderen Leuten. Sie finden schnell Freunde und es fällt ihnen \nleicht enge, intime Beziehungen zu knüpfen. Menschen mit niedriger \nPunktzahl in Freundlichkeit sind nicht unbedingt kalt und feindselig, \naber sie neigen dazu nicht auf Leute zuzugehen und werden von anderen \nals distanziert und zurückhaltend angesehen.`\n }, {\n facet: 2,\n title: 'Geselligkeit',\n text: `Gesellige Menschen empfinden die Gesellschaft anderer Leute \nals positive Stimulation und belohnend. Sie genießen eine Aufregung für \nMenschenmengen. Menschen mit niedrigen Punkten in Geselligkeit sind \nleicht von Menschenmassen überfordert und meiden diese oft. Sie hassen \ndie Gesellschaft anderer Menschen nicht, aber ihr Bedürfnis nach \nPrivatsphäre und Zeit für sich selbst ist viel größer als das der Leute, \ndie eine hohe Punktzahl in dieser Skala haben.`\n }, {\n facet: 3,\n title: 'Durchsetzungsvermögen',\n text: `Menschen mit einer hohen Punktzahl in Durchsetzungsvermögen \nlieben es ihre Meinung zu sagen und das Kommando zu übernehmen. Sie \ntendieren dazu der Leiter in Gruppen zu sein. Menschen mit niedriger \nPunktzahl neigen dazu nicht viel zu reden und überlassen anderen das \nKommando in Gruppenaktivitäten.`\n }, {\n facet: 4,\n title: 'Tatendrang',\n text: `Aktive Individuen leben einen schnelles, beschäftigtes \nLeben. Sie sind energisch und nehmen an vielen Aktivitäten teil. \nMenschen mit einer niedrigen Punktzahl in dieser Skala führen ein \nlangsameres und müßigeres, entspannteres Leben.`\n }, {\n facet: 5,\n title: 'Risikobereitschaft',\n text: `Menschen mit hoher Punktzahl in dieser Skala sind \nohne ein hohes Stimulationsniveau oft gelangweilt. Sie lieben grelle Lichter \nund das Gedränge der Massen. Sie gehen oft ein Risiko ein und suchen den \nNervenkitzel. Menschen mit einer niedrigen Punktzahl sind oft von Lärm \nund Tumult überfordert und von Nervenkitzel abgeneigt.`\n }, {\n facet: 6,\n title: 'Heiterkeit',\n text: `Diese Skala misst die positive Stimmung und die Gefühle, \nnicht die negativen Gefühle (diese sind Teil der Neurotizismus Domäne). \nPersonen mit hoher Punktzahl auf dieser Skala empfinden typischerweise \noft zahlreiche positive Gefühle, einschließlich von Glückseligkeit, \nEnthusiasmus, Optimismus und Freude. Menschen mit niedriger Punktzahl \nsind nicht so anfällig für diese energetische Munterkeit.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neurotizismus',\n shortDescription: 'Neurotizismus beschreibt die Tendenz zu negativen Gefühlen.',\n description: `Freud benutzte ursprünglich den Begriff Neurose um den \nZustand der mentalen Verzweiflung, emotionalen Leidens und der \nUnfähigkeit die normalen Ansprüche des Lebens effizient zu bewältigen zu \nbeschreiben. Er behauptete, dass jeder ein paar Zeichen von Neurose zeigt, \naber dass sich diese in dem Ausmaß des Leidens und der spezifischen \nSymptome der Verzweiflung unterscheiden. Heutzutage bezieht sich \nNeurotizismus auf die Tendenz negative Gefühle zu durchleben. \n Die Menschen, die eine hohe Punktzahl in Neurotizismus haben, \nerleben primär ein spezifisches negatives Gefühl wie Angst, Wut, oder \nDepression, sind aber Anfällig dafür mehrere dieser Emotionen zu fühlen.\n Diese Leute sind emotional reaktionsfreudig. Sie reagieren \nemotionaler auf Ereignisse als andere Menschen und ihre Reaktionen sind \nmeist intensiver als bei anderen Menschen. Sie interpretieren gewöhnliche \nSituationen eher als bedrohlich, und kleine Frustrationen als \nhoffnungslose Fälle.\n Ihre negativen emotionalen Reaktionen neigen dazu länger als \ngewöhnlich zu sein, was eine öftere schlechte Laune zur Folge hat. Diese \nProbleme bei der emotionalen Regulation reduziert sich bei einem Neurotiker \nauf die Fähigkeit klar zu denken, Entscheidungen zu treffen und Stress \neffektiv zu bewältigen.`,\n results: [{\n score: 'low',\n text: `Deine Punktzahl in Neurotizismus ist niedrig, was auf eine \naußergewöhnliche Ruhe, Gelassenheit und Unerschütterlichkeit hinweist. \nDu reagierst nicht mit starken Emotionen, auch wenn die meisten Leute \ndie Situation als stressvoll beschreiben würden.`\n }, {\n score: 'neutral',\n text: `Deine Punktzahl in Neurotizismus ist mittelmäßig, was auf \neine Reaktionsweise hindeutet, die typisch für die Allgemeinbevölkerung \nist. Anstrengende und frustrierende Situationen verärgern dich, aber du \nbist generell in der Lage Herr über deine Gefühle zu sein und die \nSituationen zu bewältigen.`\n }, {\n score: 'high',\n text: `Deine Punktzahl in Neurotizismus ist hoch, was darauf \nhindeutet, dass du schneller verärgert bist, selbst bei dem was die \nmeisten Menschen als normale Anforderungen des Lebens erachten. Leute \nsehen dich als sensibel und emotional.`\n }],\n facets: [{\n facet: 1,\n title: 'Angst',\n text: `Die \"Kampf-oder-Flucht\"-Reaktion wird bei ängstlichen \nIndividuen zu einfach und zu oft ausgelöst. Deshalb fühlen Menschen mit \nhoher Angst oft, dass jederzeit etwas gefährliches passieren wird. Sie \nkönnen vor einer spezifischen Situation Angst haben oder sind generell \nängstlich. Sie fühlen sich angespannt, zitterig und nervös. Personen mit \nwenig Angst sind in der Regel ruhig und furchtlos.`\n }, {\n facet: 2,\n title: 'Wut',\n text: `Personen mit einer hohen Punktzahl in Wut sind oft erzürnt \nwenn etwas nicht auf ihre Weise passiert. Ihnen ist es wichtig fair \nbehandelt zu werden und sie reagieren gereizt wenn sie das Gefühl haben, \ndass sie getäuscht werden. Diese Skala misst die Tendenz zur Wut; ob die \nPerson Verärgerungen und Feindseligkeit zeigt hängt von der \nVerträglichkeit des Individuums ab. Personen mit niedriger Punktzahl in \nWut werden weder schnell noch leicht böse.`\n }, {\n facet: 3,\n title: 'Depression',\n text: `Diese Skala misst die Neigung dazu Traurigkeit, \nSchwermütigkeit, und Entmutigung zu fühlen. Personen mit hoher Punktzahl \nin Depression fehlt Energie und haben Schwierigkeiten Aktivitäten zu \nbeginnen. Personen mit niedriger Punktzahl neigen dazu, diese depressiven \nGefühle nicht zu haben.`\n }, {\n facet: 4,\n title: 'Selbstbewusstsein',\n text: `Selbstbewussten Individuen ist es wichtig, was andere über \nsie denken. Ihre Sorge über Ablehnung und Spot lassen die Person \nschüchtern und ungemütlich in der Gesellschaft von anderen Leuten. Sie \nsind leicht und oft beschämt. Ihre Ängste, dass andere sie kritisieren \noder über sie herziehen, sind oft übertrieben und unrealistisch, aber \nihre Ungeschicklichkeit und Unwohlsein machen diese Ängste zu einer \nselbsterfüllenden Prophezeiung. Menschen mit niedriger Punktzahl \nhingegen leiden nicht unter diesem irrtümlichen Eindruck, dass jeder \nsie überwacht und verurteilt. Sie fühlen sich in sozialen Situationen \nnicht nervös.`\n }, {\n facet: 5,\n title: 'Übermaß',\n text: `Übermäßige Individuen durchleben oft starke Gelüste und \nTriebe, denen sie nur schwer widerstehen können. Sie neigen zu \nkurzzeitigen Befriedigungen und Belohnungen statt langfristigen Zielen. \nMenschen mit niedriger Punktzahl erleben keine starken, \nunwiderstehlichen Gelüsten und können diesen somit nicht verfallen.`\n }, {\n facet: 6,\n title: 'Empfindlichkeit',\n text: `Leute mit hoher Punktzahl in Empfindlichkeit erleben Panik, \nVerwirrung und Hilflosigkeit unter Druck oder Stress.\nMenschen mit niedriger Punktzahl fühlen sich unter Stress \nselbstsicherer, zuversichtlicher und denken klarer.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Gewissenhaftigkeit',\n shortDescription: 'Gewissenhaftigkeit beschäftigt sich mit der Art, wie wir unsere Impulse kontrollieren, regulieren und steuern.',\n description: `Impulse sind nicht grundsätzlich schlecht; gelegentlich ist es \nnotwendig wegen Zeitdruck mit einer spontanen Entscheidung zu reagieren\nund mit dem ersten Impuls ist es eine effektive Reaktion. Außerdem\nkann es in nicht ernsten Lagen spaßig sein spontan und impulsiv zu reagieren. \nImpulsive Individuen können von anderen als facettenreich, kasperhaft und \ngesellig angesehen werden.\n \nDennoch kann impulsives Handeln zu Problemen führen. Manche Impulse sind\nasozial. Unkontrolliertes asoziales Handeln kann nicht nur anderen schaden,\nes kann ebenfalls zu Rachegelüsten gegenüber dem Täter der impulsiven \nHandlungen führen. Ein weiteres Problem sind die ungewollten langfristigen\nKonsequenzen, auch wenn vorerst sofortige Belohnungen entstehen. Zum Beispiel\nder Verlust eines Jobs nach übermäßigem Sozialisieren, der Zusammenbruch einer\nwichtigen Beziehung nachdem eine Beleidigung gefallen ist oder die Zerstörung\nder eigenen Gesundheit durch rekreative Drogen.\n \nImpulsives Verhalten, auch wenn dieses nicht wirklich schädlich ist, reduziert\ndie Effektivität der Person in mehreren signifikanten Weisen. Das impulsive \nHandeln verhindert alternative Herangehensweisen an ein Problem, welche\nweiser als die impulsive Entscheidung gewesen wären. Impulsivität lenkt \nden Menschen ab, wenn ein Projekt einen organisierten Plan verfolgt. \nErrungenschaften einer impulsiven Person sind daher klein, weit gestreut und\ninkonsistent.\n \nEin Kennzeichen von Intelligenz, etwas was potentiell den Menschen von früheren\nLebensformen unterscheidet, ist die Fähigkeit über zukünftige Konsequenzen\nnachzudenken, bevor nach einem Impuls gehandelt wird. Intelligente Aktivitäten \nerfordern das Reflektieren über Langzeitziele, das Planen und Organisieren der\nSchritte zu diesem Ziel, sowie das Durchhaltevermögen für das Ziel gegenüber\nkurzzeitigen Impulsen. Die Idee, dass Intelligenz das Kontrollieren von Impulsen\nbeinhaltet, deckt sich mit dem Begriff Vernunft, welches ein anderer Titel für\ndie Gewissenhaftigkeitsdomäne ist. Vernunft bedeutet hier sowohl Weise als auch\nBehutsam zu sein.\n \nPersonen mit hoher Punktzahl in der Gewissenhaftigkeitsskala werden in der Tat\nvon anderen als intelligent wahrgenommen. Die Vorteile von hoher \nGewissenhaftigkeit sind offensichtlich. Gewissenhafte Individuen vermeiden \nSchwierigkeiten und haben ein hohes Maß an Erfolg durch zielgerichtetes Planen\nund Beständigkeit. Sie sind außerdem von anderen als intelligent und \nzuverlässig angesehen. Auf der anderen Seite können sie zwanghafte \nPerfektionisten und Workaholics sein. Des weiteren könnten extrem gewissenhafte\nLeute als spießig und langweilig angesehen werden.\n \nUngewissenhafte Menschen können für ihre Unzuverlässigkeit, Mangel an Ehrgeiz,\nund das Scheitern im Rahmen zu bleiben kritisiert werden, aber sie durchleben\nviele kurzzeitige Vergnügungen und werden niemals als spießig angesehen.`,\n results: [{\n score: 'low',\n text: `Deine Punktzahl in Gewissenhaftigkeit ist niedrig, was darauf \nhinweist, dass du für den Moment lebst und tust, was sich für dich im Moment gut\nanfühlt. Deine Arbeitsweise neigt dazu unbekümmert und unorganisiert zu sein.`\n }, {\n score: 'neutral',\n text: `Deine Punktzahl in Gewissenhaftigkeit ist mittelmäßig. Das \nbedeutet, dass du ziemlich zuverlässig und organisiert bist und dich selbst\nbeherrscht.`\n }, {\n score: 'high',\n text: `Deine Punktzahl in Gewissenhaftigkeit ist hoch. Das bedeutet, dass\ndu dir klare Ziele setzt und diese mit Entschlossenheit verfolgst. Andere Leute\nsehen dich als zuverlässig und fleißig.`\n }],\n facets: [{\n facet: 1,\n title: 'Kompetenz',\n text: `Kompetenz beschreibt die Selbsticherheit in die eigene Fähigkeit\nDinge zu erreichen. Menschen mit hoher Punktzahl glauben, sie haben die nötige\nIntelligenz (gesunden Menschenverstand), Trieb und Selbstkontrolle, um einen\nErfolg zu erzielen. Menschen mit niedriger Punktzahl fühlen sich ineffektiv,\nund können den Gedanken haben, ihr Leben nicht im Griff zu haben.`\n }, {\n facet: 2,\n title: 'Ordnungsliebe',\n text: `Personen mit hoher Punktzahl in Ordnungsliebe sind gut \norganisiert. Sie lieben es, ihr Leben in Routinen und Termine einzuteilen. Sie\nschreiben Listen und machen Pläne. Menschen mit niedriger Punktzahl neigen dazu\nunorganisiert und zerstreut zu sein.`\n }, {\n facet: 3,\n title: 'Pflichtbewusstsein',\n text: `Diese Skala reflektiert die Stärke der Pflichtauffassung einer \nPerson. Jene, die eine hohe Punktzahl in dieser Skala erzielen, haben einen starken\nDrang ihren moralischen Pflichten nachzugehen. Menschen mit niedriger Punktzahl\nfinden Verträge, Regeln, und Vorschriften zu begrenzend. Sie neigen dazu als \nunzuverlässig oder sogar verantwortungslos gesehen zu werden.`\n }, {\n facet: 4,\n title: 'Leistungsstreben',\n text: `Individuen, die eine hohe Punktzahl in dieser Skala erreichen, \nstreben sehr nach Spitzenleistungen. Ihr als erfolgreich angesehenes Streben\nhält sie auf der Spur für ihre hoch gesteckten Ziele. Sie haben oft einen\nkonkreten Lebensweg, aber Menschen mit extrem hohen Punktzahlen sind möglicherweise zu \nzielgerichtet und besessen mit ihrer Arbeit. Menschen mit niedriger Punktzahl\ngenügt es ihre Arbeit mit minimalem Aufwand zu erledigen und können von\nanderen als faul gesehen werden.`\n }, {\n facet: 5,\n title: 'Selbstdisziplin',\n text: `Selbstdisziplin, welches viele Leute auch Willenskraft nennen,\nbeschreibt die Fähigkeit an einem Problem oder einer unangenehmen Tätigkeit\nkonsequent zu arbeiten, bis diese erledigt ist. Leute mit hoher Selbstdisziplin\nsind in der Lage den Widerwillen zu bezwingen um Aufgaben zu beginnen und \nbis zum Ende zu führen, ohne abgelenkt zu werden. Jene mit wenig Selbstdisziplin\nschieben ihre Arbeiten auf und zeigen wenig Durchhaltevermögen. Dabei scheitern\nsie daran ihre Aufgaben zu erledigen, auch wenn sie das durchaus möchten.`\n }, {\n facet: 6,\n title: 'Besonnenheit',\n text: `Besonnenheit beschreibt die Einstellung die möglichen Ergebnisse\nzu durchdenken, bevor gehandelt wird. Menschen mit hoher Punktzahl in \nBesonnenheit nehmen sich die Zeit und denken über ihre Entscheidungen nach.\nMenschen mit niedriger Punktzahl handeln oft nach dem ersten Gedanken ohne \nüber Alternativen und mögliche Konsequenzen dieser Alternativen nachzudenken.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Offenheit für Erfahrungen',\n shortDescription: 'Offenheit für Erfahrungen beschreibt eine geistige Dimension, die zwischen einfallsreichen, kreativen Menschen und bodenständigen, konventionellen Menschen unterscheidet.',\n description: `Offene Menschen sind geistig neugierig, schätzen Kunst, und \nhaben ein Auge für Schönheit. Sie tendieren dazu, im Gegensatz zu geschlossenen\nLeuten, mehr im Einklang mit ihren Gefühlen zu sein. Sie neigen dazu, in \nungewöhnlicher Weise zu denken oder zu handeln. Intellektuelle erzielen \nüblicherweise eine hohe Punktzahl in Offenheit für Erfahrungen; \nInfolgedessen wird dieser Faktor auch Kultur oder Intellekt genannt.\n \nNichtsdestotrotz wird Intellekt besser als einer der Aspekte von \nOffenheit für Erfahrungen betrachtet. Punktzahlen in Offenheit für \nErfahrungen sind nur bedingt mit der Bildung oder Ergebnissen von \nstandardisierten Intelligenztests verbunden. \nEine andere Charakteristik des geistig offenen Stils ist eine \nLeichtigkeit für abstraktes Denken, weit entfernt von konkreten \nErfahrungen. Je nachdem was genau diese spezielle Fähigkeit des \nIndividuums ist, kann sie in der Form vom Mathematik, logischem \noder geometrischem Denken, kunstvoller oder metaphorischer Nutzung der \nSprache, musikalischen Kompositionen oder Auftritten, oder eine der \nvielen visuellen oder darstellenden Künsten ausgeprägt sein.\n \nMenschen mit niedriger Punktzahl in Offenheit für Erfahrungen tendieren \nzu üblichen, knappen Interessen. Sie bevorzugen das Einfache, \nUnkomplizierte, und Offensichtliche gegenüber dem Komplexen, Mehrdeutigen, und \nSubtilen. Sie könnten Kunst und Wissenschaft gegenüber misstrauisch sein \nund die Bemühungen als abstrus und ohne praktischen Nutzen sehen. \nVerschlossene Menschen ziehen Gewohnheit Neuheiten vor; sie sind \nkonservativ und resistent gegenüber Veränderungen.\n \nOffenheit wird von Psychologen oft als gesünder und erwachsener \ngehalten, wenn sie selbst offen gegenüber neuen Erfahrungen sind. \nAllerdings sind beide Denkweisen in verschiedenen Umgebungen nützlich. \nDer intellektuelle Stil der offenen Person könnte für einen \nProfessoren brauchbar sein, während Forschungen zeigten, dass \ngeschlossene Denkweisen zu überlegenden Arbeitsleistungen in der \nPolizeiarbeit, im Verkauf und einigen Dienstleistungsberufen führen.`,\n results: [{\n score: 'low',\n text: `Deine Punktzahl in Offenheit für Erfahrungen ist niedrig, \nwas darauf schließen lässt, dass du gerne in schlichter und einfacher \nWeise denkst. Andere beschreiben dich als bodenständig, pragmatisch und \nkonservativ.`\n }, {\n score: 'neutral',\n text: `Deine Punktzahl in Offenheit für Erfahrungen ist \ndurchschnittlich, was darauf schließen lässt, dass du gerne \ntraditionell denkst, aber offen für neue Dinge bist. Deine Denkweise ist \nweder simpel noch komplex. Auf andere wirkst du wie eine gebildete \nPerson, aber nicht wie ein Intellektueller.`\n }, {\n score: 'high',\n text: `Deine Punktzahl in Offenheit für Erfahrungen ist hoch, was \ndarauf schließen lässt, dass du Neuheiten, Abwechslung und Veränderungen \nmagst. Du bist neugierig, einfallsreich und kreativ.`\n }],\n facets: [{\n facet: 1,\n title: 'Einbildungskraft',\n text: `Für einfallsreiche Individuen ist die reale Welt\noft zu einfach und gewöhnlich. Menschen mit hoher Punktzahl in dieser \nSkala nutzen die Fantasie als einen Weg um eine reichere, interessantere \nWelt zu schaffen. Menschen mit niedriger Punktzahl auf diesem Gebiet \nsind mehr an Fakten als an Fantasie interessiert.`\n }, {\n facet: 2,\n title: 'Künstlerisches Interesse',\n text: `Menschen mit hoher Punktzahl in dieser Skala lieben \nSchönheit sowohl in der Kunst als auch in der Natur. Sie vertiefen sich \nschnell und einfach in Kunst- und Naturereignisse. Sie sind oft nicht \nkünstlerisch geschult, obwohl es viele später werden. Das entscheidende \nDetail dieser Skala ist das Interesse in, und Wertschätzung von \nnatureller und künstlerischer Schönheit. Menschen mit niedriger \nPunktzahl fehlt die ästhetische Sensibilität und das Interesse an \nKunst.`\n }, {\n facet: 3,\n title: 'Emotionalität',\n text: `Personen mit hoher Emotionaliät haben eine gute Kontrolle über \nund Wahrnehmung ihrer eigenen Gefühle. Menschen mit niedriger Punktzahl \nsind sich ihrer Gefühle weniger bewustt und tendieren dazu, diese nicht \noffen zu zeigen.`\n }, {\n facet: 4,\n title: 'Abenteuerlust',\n text: `Menschen mit hoher Punktzahl in Abenteuerlust sind gewillt \nneue Aktivitäten zu versuchen, in fremde Länder zu reisen und \nverschiedene Dinge zu erleben. Sie finden Vertrautheit und Routine \nlangweilig und fahren einen neuen Weg nach Hause, nur weil er anders \nist. Menschen mit niedriger Punktzahl neigen zu Unwohlsein bei \nVeränderungen und ziehen vertraute Routinen vor.`\n }, {\n facet: 5,\n title: 'Intellekt',\n text: `Intellekt und künstlerisches Interesse sind die zwei \nwichtigsten, zentralen Aspekte von Offenheit für Erfahrungen. Menschen \nmit hoher Punktzahl in Intellekt lieben es mit Ideen zu spielen. Sie \nsind unvoreingenommen gegenüber neuen und ungewöhnlichen Ideen, und \nmögen es über intellektuelle Probleme zu diskutieren. Ihnen gefallen \nRätsel, Puzzle und Denkaufgaben. Menschen mit niedriger Punktzahl \nbevorzugen es mit Menschen oder Dingen statt Ideen zu arbeiten. Sie \nsehen intellektuelle Übungen als eine Zeitverschwendung. Intellekt \nsollte nicht mit Intelligenz verwechselt werden. Intellekt ist eine \nDenkweise, keine Fähigkeit, auch wenn Menschen mit hoher Punktzahl in \nstandardisierten Intelligenztests meist besser abschneiden als Menschen \nmit niedriger Punktzahl.`\n }, {\n facet: 6,\n title: 'Liberalismus',\n text: `Psychologischer Liberalismus bezieht sich auf eine \nBereitschaft um die Autorität, Konvention und traditionelle Werte in \nFrage zu stellen. In seiner extremsten Form zeigt psychologischer \nLiberalismus absolute Feindseligkeit gegenüber Regeln, Sympathie für \nGesetzesbrecher, und eine Liebe für Unklarheit, Chaos und Unordnung. \nPsychologische Konservative bevorzugen die Sicherheit und Stabilität \ndurch Anpassung an Traditionen. Psychologischer Liberalismus und \nKonservatismus spiegeln nicht die politische Gesinnung wieder, die \nIndividuen neigen aber oft zu bestimmten politischen Parteien.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Agreeableness',\n shortDescription: 'Η συμβατότητα αντικατοπτρίζει μεμονωμένες διαφορές όσον αφορά τη συνεργασία και την κοινωνική αρμονία. Συμφωνήσιμα άτομα αξία να πάρει μαζί με άλλους.',\n description: `Ως εκ τούτου, είναι ευγενικοί, φιλικοί,\nγενναιόδωρη, χρήσιμη και πρόθυμη να συμβιβαστεί με τα συμφέροντά τους\nοι υπολοιποι'. Οι συμπολίτες έχουν επίσης μια αισιόδοξη άποψη για τον άνθρωπο\nφύση. Πιστεύουν ότι οι άνθρωποι είναι βασικά ειλικρινείς, αξιοπρεπείς και\nαξιόπιστος. \n \nΤα δυσάρεστα άτομα θέτουν το συμφέρον αυτοπεποίθησης πιο πάνω\nοι υπολοιποι. Είναι γενικά αδιάφοροι με την ευημερία των άλλων και\nεπομένως είναι απίθανο να επεκταθούν και για άλλους ανθρώπους.\nΜερικές φορές ο σκεπτικισμός τους για τα κίνητρα των άλλων προκαλεί την ύπαρξή τους\nύποπτο, εχθρικό και μη συνεργάσιμο.\n \nΗ ευκολία είναι προφανώς επωφελής για την επίτευξη και τη διατήρηση\nδημοτικότητα. Οι συμπονετικοί άνθρωποι προτιμούν περισσότερο από το δυσάρεστο\nΑνθρωποι. Από την άλλη πλευρά, η ευκολία δεν είναι χρήσιμη σε καταστάσεις\nπου απαιτούν σκληρές ή απόλυτες αντικειμενικές αποφάσεις. Δυσάρεστος\nοι άνθρωποι μπορούν να κάνουν εξαιρετικούς επιστήμονες, κριτικούς ή στρατιώτες.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Το σκορ σας για το Agreeableness είναι χαμηλό, γεγονός που δείχνει λιγότερη ανησυχία\nμε τις ανάγκες των άλλων παρά με τη δική σας. Οι άνθρωποι σας βλέπουν σκληρό,\nκρίσιμη και χωρίς συμβιβασμούς.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Το επίπεδο συμφωνίας σας είναι μέσο, γεγονός που υποδηλώνει κάποια ανησυχία\nμε τις ανάγκες των άλλων, αλλά, γενικά, την απροθυμία να θυσιάσουν\nτον εαυτό σας για τους άλλους.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Το υψηλό επίπεδο συμφωνίας σας δείχνει έντονο ενδιαφέρον\nτις ανάγκες και την ευημερία των άλλων. Είστε ευχάριστοι, συμπαθητικοί και\nσυνεταιρισμού. `\n }],\n facets: [{\n facet: 1,\n title: 'Trust',\n text: `Ένα άτομο με μεγάλη εμπιστοσύνη υποθέτει ότι οι περισσότεροι άνθρωποι\nείναι δίκαιες, ειλικρινείς και έχουν καλές προθέσεις. Άτομα με χαμηλή εμπιστοσύνη\nΒλέπετε τους άλλους ως εγωιστικούς, υποτιμημένους και δυνητικά επικίνδυνους.`\n }, {\n facet: 2,\n title: 'Morality',\n text: `Οι υψηλοί σκόρερ σε αυτή την κλίμακα δεν βλέπουν την ανάγκη\nπροδοσία ή χειραγώγηση όταν ασχολούνται με άλλους και είναι ως εκ τούτου\nειλικρινής, ειλικρινής και ειλικρινής. Οι χαμηλοί σκοράνοι πιστεύουν ότι είναι σίγουροι\nείναι αναγκαία η εξαπάτηση στις κοινωνικές σχέσεις. Ανθρωποι\nβρίσκουν σχετικά εύκολο να συνδεθούν με την απλή\nυψηλά σκόρερ σε αυτή την κλίμακα. Γενικά το βρίσκουν πιο δύσκολο\nνα σχετίζονται με τους αθέατους χαμηλός σκόρερ σε αυτή την κλίμακα. Το\nθα πρέπει να καταστεί σαφές ότι οι χαμηλοί σκόρερ δεν είναι απίθανοι\nή ανήθικο. Είναι απλώς πιο φυλαγμένοι και λιγότερο πρόθυμοι να ανοίξουν\nαποκαλύπτουν όλη την αλήθεια.`\n }, {\n facet: 3,\n title: 'Altruism',\n text: `Αλτρουιστές άνθρωποι βρίσκουν βοήθεια σε άλλους ανθρώπους\nπραγματικά ανταμείβοντας. Ως εκ τούτου, είναι γενικά πρόθυμοι να\nβοηθούν εκείνους που έχουν ανάγκη. Αλτρουιστές άνθρωποι το βρίσκουν αυτό\nτα πράγματα για τους άλλους είναι μια μορφή αυτοπεποίθησης και όχι\nαυτοθυσία. Οι χαμηλοί σκόρερ σε αυτή την κλίμακα δεν τους αρέσουν ιδιαίτερα\nβοηθώντας όσους έχουν ανάγκη. Τα αιτήματα για βοήθεια αισθάνονται σαν επιβολή\nπαρά μια ευκαιρία για αυτοεκτέλεση.`\n }, {\n facet: 4,\n title: 'Cooperation',\n text: `Άτομα που βαθμολογούνται ψηλά σε αυτή την κλίμακα\nαντιπαθητικές αντιπαραθέσεις. Είναι απολύτως πρόθυμοι να συμβιβαστούν ή\nνα αρνούνται τις δικές τους ανάγκες για να συναντηθούν με τους άλλους. Εκείνοι\nοι οποίοι βαθμολογούνται χαμηλά σε αυτή την κλίμακα είναι πιο πιθανό να εκφοβίσουν τους άλλους\nνα πάρουν το δρόμο τους.`\n }, {\n facet: 5,\n title: 'Modesty',\n text: `Οι υψηλοί σκόρερ σε αυτή την κλίμακα δεν επιθυμούν να ισχυριστούν\nότι είναι καλύτερα από άλλους. Σε ορισμένες περιπτώσεις αυτή η στάση\nμπορεί να προέρχεται από χαμηλή αυτοπεποίθηση ή αυτοπεποίθηση. Παρ 'όλα αυτά,\nμερικοί άνθρωποι με υψηλή αυτοεκτίμηση βρίσκουν απροσδόκητα άσχημα. Εκείνοι\nπου είναι πρόθυμοι να περιγράψουν τον εαυτό τους ως ανώτεροι τείνουν να\nνα θεωρείται ως δυσάρεστα αλαζονική από άλλους ανθρώπους.`\n }, {\n facet: 6,\n title: 'Sympathy',\n text: `Οι άνθρωποι που βαθμολογούνται ψηλά σε αυτή την κλίμακα είναι\nειλικρινής και συμπονετικόις. Αισθάνονται τον πόνο των άλλων\nαντιφατικά και μετακινούνται εύκολα στην κρίση. Οι χαμηλοί σκόρερ δεν \nεπηρεάζονται έντονα από τον ανθρώπινο πόνο. Αυτοί είναι υπερήφανοι\nκάνοντας αντικειμενικές κρίσεις βάσει του λόγου. Αφορούν περισσότερο\nμε αλήθεια και αμερόληπτη δικαιοσύνη παρά με έλεος.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extraversion',\n shortDescription: 'Η εξωστρέφεια χαρακτηρίζεται από έντονη δέσμευση στον εξωτερικό κόσμο.',\n description: `Οι εξορύξεις απολαμβάνουν να είναι με τους ανθρώπους, είναι γεμάτες ενέργεια, και\nσυχνά αισθάνονται θετικά συναισθήματα. Τείνουν να είναι ενθουσιασμένοι,\nπροσανατολισμένοι στην δράση, άτομα που είναι πιθανό να πουν \"Ναι!\" ή \"Ας\nπηγαίνετε! \"σε ευκαιρίες για ενθουσιασμό.Σε ομάδες, τους αρέσει να μιλάνε,\nβεβαιώνουν τον εαυτό τους και εφιστούν την προσοχή στον εαυτό τους.\n \nΟι εσωστρεφείς δεν έχουν τα επίπεδα ευφορίας, ενέργειας και δραστηριότητας\nεξωστρεφείς. Έχουν την τάση να είναι ήσυχα, χαμηλά κλειδιά, σκόπιμα, και\nαπεμπλακεί από τον κοινωνικό κόσμο. Η έλλειψη κοινωνικής συμμετοχής\nδεν πρέπει να ερμηνεύεται ως συστολή ή κατάθλιψη. ο\nτο εσωστρεφές χρειάζεται απλώς λιγότερη διέγερση από ένα εξωστρεφές και προτιμά\nνα είμαι μόνος. Η ανεξαρτησία και το απόθεμα του εσωστρεφούς είναι\nμερικές φορές είναι λανθασμένες ως εχθρότητα ή αλαζονεία. Στην πραγματικότητα, ένα\nεσωστρεφής που βαθμολογεί ψηλά την διάσταση της ευτυχίας δεν θα το κάνει\nαναζητήστε τους άλλους εκτός, αλλά θα είναι αρκετά ευχάριστο όταν πλησιάσετε.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Η βαθμολογία σας στην Εξωστρέφεια είναι χαμηλή, υποδεικνύοντας ότι είστε\nεσωστρεφής, δεσμευμένος και ήσυχος. Απολαμβάνετε μοναξιά και μοναξιά\nδραστηριότητες. Η κοινωνικοποίηση σας τείνει να περιορίζεται σε λίγους στενούς φίλους.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Η βαθμολογία σας στο Extraversion είναι μέση, υποδεικνύοντας ότι είστε\nούτε ένας υποκινούμενος μοναχός ούτε ένας ζωντανός κουβεντιέρας. Απολαμβάνετε χρόνο με\nάλλοι αλλά και μόνο ο χρόνος.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Η βαθμολογία σας στο Extraversion είναι υψηλή, υποδεικνύοντας ότι είστε\nκοινωνικό, εξερχόμενο, ενεργητικό και ζωντανό. Προτιμάτε να είστε γύρω σας\nανθρώπους πολλές φορές.`\n }],\n facets: [{\n facet: 1,\n title: 'Friendliness',\n text: `Φιλικοί άνθρωποι πραγματικά όπως άλλοι άνθρωποι\nκαι επιδεικνύουν ανοιχτά θετικά συναισθήματα προς τους άλλους. Κάνουν\nφίλους γρήγορα και είναι εύκολο για αυτούς να σχηματίσουν στενή, οικεία\nσχέσεις. Οι χαμηλοί σκόρερ για την φιλικότητα δεν είναι απαραιτήτως κρύες\nκαι εχθρικά, αλλά δεν φτάνουν σε άλλους και είναι αντιληπτά\nως απομακρυσμένη και αποκλειστική.`\n }, {\n facet: 2,\n title: 'Gregariousness',\n text: `Γκρίζα άτομα βρίσκουν την εταιρεία του\nάλλοι ευχάριστα τόνωση και ανταμοιβή. Απολαμβάνουν το\nτον ενθουσιασμό των πλήθους. Οι χαμηλοί σκόρερ τείνουν να αισθάνονται συγκλονισμένοι, και\nως εκ τούτου, να αποφύγει ενεργά, μεγάλα πλήθη. Δεν είναι απαραιτήτως\nδεν θέλουν να είναι με τους ανθρώπους μερικές φορές, αλλά η ανάγκη τους για την προστασία της ιδιωτικής ζωής και\nο χρόνος για τον εαυτό τους είναι πολύ μεγαλύτερος από ό, τι για τα άτομα που βαθμολογούν\nυψηλή σε αυτήν την κλίμακα.`\n }, {\n facet: 3,\n title: 'Assertiveness',\n text: `Υψηλούς σκόρερ Η βεβαιότητα θέλει να μιλήσει\nνα αναλάβει την ευθύνη και να κατευθύνει τις δραστηριότητες των άλλων. Εχουν την τάση\nνα είναι ηγέτες σε ομάδες. Οι χαμηλοί σκόρερ τείνουν να μην μιλούν πολύ και να αφήνουν\nάλλοι ελέγχουν τις δραστηριότητες των ομάδων.`\n }, {\n facet: 4,\n title: 'Activity Level',\n text: `Τα ενεργά άτομα οδηγούν γρήγορα, απασχολημένα\nζωή. Κινούνται γρήγορα, δυναμικά και σθεναρά, και\nεμπλέκονται σε πολλές δραστηριότητες. Οι άνθρωποι που σκοράρουν σε αυτό\nη κλίμακα ακολουθεί έναν πιο αργό και πιο χαλαρό, χαλαρό ρυθμό.`\n }, {\n facet: 5,\n title: 'Excitement-Seeking',\n text: `Οι υψηλοί σκόρερ σε αυτή την κλίμακα είναι εύκολα\nβαρεθεί χωρίς υψηλά επίπεδα διέγερσης. Λατρεύουν τα λαμπρά φώτα\nκαι θορυβοποίηση. Είναι πιθανό να αναλάβουν κινδύνους και να αναζητήσουν\nσυγκινήσεις. Οι χαμηλοί σκόρερ είναι συγκλονισμένοι από το θόρυβο και την αναταραχή και είναι\nδυσμενείς στην αναζήτηση συναρπαστικών.`\n }, {\n facet: 6,\n title: 'Cheerfulness',\n text: `Αυτή η κλίμακα μετρά θετική διάθεση και\nσυναισθήματα, όχι αρνητικά συναισθήματα (τα οποία αποτελούν μέρος του\nΤομέας νευροεπιστημών). Άτομα που βαθμολογούνται ψηλά σε αυτή την κλίμακα τυπικά\nδοκιμάστε μια σειρά από θετικά συναισθήματα, συμπεριλαμβανομένης της ευτυχίας,\nτον ενθουσιασμό, την αισιοδοξία και τη χαρά. Οι χαμηλοί σκόρερ δεν είναι τόσο επιρρεπείς σε τέτοια\nενεργειακά, υψηλά πνεύματα.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neuroticism',\n shortDescription: 'Ο νευρωτισμός αναφέρεται στην τάση να βιώνουμε αρνητικά συναισθήματα.',\n description: `Ο Freud αρχικά χρησιμοποίησε τον όρο νεύρωση για να περιγράψει ένα\nκατάσταση που χαρακτηρίζεται από ψυχική δυσφορία, συναισθηματικό πόνο και ένα\nαδυναμία να αντιμετωπίσει αποτελεσματικά τις συνήθεις απαιτήσεις της ζωής. Αυτός\nπρότεινε ότι όλοι δείχνουν κάποια σημάδια νεύρωσης, αλλά ότι εμείς\nδιαφέρουν ως προς τον βαθμό δυστυχίας και τα συγκεκριμένα συμπτώματά μας\nδυσφορία. Σήμερα ο νευρωτισμός αναφέρεται στην τάση για εμπειρία\nαρνητικά συναισθήματα. Όσοι σκοράρουν στον νευρωτισμό μπορούν\nδοκιμάστε κυρίως ένα συγκεκριμένο αρνητικό συναίσθημα όπως το άγχος,\nο θυμός ή η κατάθλιψη, αλλά είναι πιθανό να βιώσουν πολλά από αυτά\nσυναισθήματα. Οι άνθρωποι με υψηλή νευρωσία είναι συναισθηματικά αντιδραστικοί. Αυτοί\nνα ανταποκριθούν συναισθηματικά σε γεγονότα που δεν θα επηρεάσουν τους περισσότερους ανθρώπους, και\nοι αντιδράσεις τους τείνουν να είναι πιο έντονες από το κανονικό. Ειναι περισσοτερα\nείναι πιθανό να ερμηνεύσει τις συνήθεις καταστάσεις ως απειλητικές και δευτερεύουσες\nαπογοητεύσεις, όπως είναι απελπιστικά δύσκολη. Τα αρνητικά συναισθηματικά τους\nοι αντιδράσεις τείνουν να παραμένουν για ασυνήθιστα μεγάλες χρονικές περιόδους, πράγμα το οποίο\nσημαίνει ότι είναι συχνά σε κακή διάθεση. Αυτά τα προβλήματα είναι συναισθηματικά\nη ρύθμιση μπορεί να μειώσει την ικανότητα ενός νευρωτικού να σκέφτεται καθαρά, να κάνει\nτις αποφάσεις και να αντιμετωπίσουν αποτελεσματικά το άγχος. `,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Η βαθμολογία σας σχετικά με το Νευροεπιστήμη είναι χαμηλή, υποδεικνύοντας ότι είστε\nεξαιρετικά ήρεμη, σύνθετη και αδιαπέραστη. Δεν αντιδρά με\nέντονα συναισθήματα, ακόμη και σε καταστάσεις που οι περισσότεροι άνθρωποι θα περιγράψουν\nως άγχος.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Η βαθμολογία σας για τον Νευρολογισμό είναι μέση, δείχνοντας ότι το επίπεδο σας\nη συναισθηματική αντιδραστικότητα είναι χαρακτηριστική του γενικού πληθυσμού.\nΑγχωτικές και απογοητευτικές καταστάσεις είναι κάπως ενοχλητικές για σας,\nαλλά είστε γενικά σε θέση να ξεπεράσετε αυτά τα συναισθήματα και να αντιμετωπίσετε\nαυτές τις καταστάσεις.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Η βαθμολογία σας σχετικά με τον Νευρολογισμό είναι υψηλή, δείχνοντας ότι είστε εύκολα\nαναστατωμένος, ακόμη και από ό, τι οι περισσότεροι άνθρωποι θεωρούν τις συνήθεις απαιτήσεις του\nζωή. Οι άνθρωποι θεωρούν ότι είστε ευαίσθητοι και συναισθηματικοί.`\n }],\n facets: [{\n facet: 1,\n title: 'Anxiety',\n text: `Το σύστημα \"μάχης-ή-πτήσης\" του εγκεφάλου της ανήσυχης\nτα άτομα είναι πολύ εύκολα και πολύ συχνά εμπλέκονται. Ως εκ τούτου, οι άνθρωποι που\nέχουν υψηλό άγχος αισθάνονται συχνά ότι κάτι επικίνδυνο πρόκειται να συμβεί.\nΜπορεί να φοβούνται συγκεκριμένες καταστάσεις ή να φοβούνται απλώς γενικά.\nΝιώθουν ένταση, θόρυβο και νευρικότητα. Τα άτομα με χαμηλή ανησυχία είναι γενικά\nήρεμος και ατρόμητος.`\n }, {\n facet: 2,\n title: 'Anger',\n text: `Τα άτομα που βαθμολογούν ψηλά στο άγχος αισθάνονται εξοργισμένα πότε\nτα πράγματα δεν πηγαίνουν στον δρόμο τους. Είναι ευαίσθητοι για να αντιμετωπίζονται δίκαια\nκαι νιώθουν δυσαρέσκεια και πικρία όταν αισθάνονται ότι είναι εξαπατημένοι.\nΑυτή η κλίμακα μετρά την τάση να αισθάνεται θυμωμένος. είτε είναι είτε όχι\nπρόσωπο εκφράζει ενόχληση και εχθρότητα εξαρτάται από το άτομο\nεπίπεδο για την Agreeableness. Οι χαμηλοί σκόρερ δεν θυμώνουν συχνά ή εύκολα.`\n }, {\n facet: 3,\n title: 'Depression',\n text: `Αυτή η κλίμακα μετρά την τάση να αισθάνεται λυπημένος,\nκαι αποθαρρύνονται. Οι υψηλοί σκόρερ έχουν έλλειψη ενέργειας και δυσκολεύουν να ξεκινήσουν\nδραστηριότητες. Οι χαμηλοί σκόρερ τείνουν να είναι απαλλαγμένοι από αυτά τα καταθλιπτικά συναισθήματα.`\n }, {\n facet: 4,\n title: 'Self-Consciousness',\n text: `Τα αυτοσυνείδητα άτομα είναι ευαίσθητα\nσχετικά με το τι σκέφτονται οι άλλοι. Η ανησυχία τους για την απόρριψη και\nγελοιοποίηση να τους κάνει να αισθάνονται ντροπαλός και άβολα αφθονούν τους άλλους. Αυτοί\nείναι εύκολα ενοχλημένοι και συχνά αισθάνονται ντροπιασμένοι. Οι φόβοι τους ότι άλλοι\nθα επικρίνουν ή θα κάνουν τη διασκέδαση από αυτά είναι υπερβολικές και μη ρεαλιστικές, αλλά\nη αμηχανία και η ενόχληση τους μπορεί να κάνει αυτοί οι φόβοι αυτοπεποίθηση\nπροφητεία. Οι χαμηλοί σκόρερ, αντίθετα, δεν υποφέρουν από το λάθος\nτην εντύπωση ότι όλοι τους παρακολουθούν και κρίνουν. Δεν αισθάνονται\nνευρικό σε κοινωνικές καταστάσεις.`\n }, {\n facet: 5,\n title: 'Immoderation',\n text: `Τα αδέσποτα άτομα αισθάνονται ισχυρούς πόθους και\nεπιμένει ότι έχουν δυσκολία να αντισταθούν. Τείνουν να είναι\nπροσανατολισμένη προς τις βραχυπρόθεσμες απολαύσεις και τις ανταμοιβές,\nμακροπρόθεσμες συνέπειες. Οι χαμηλοί σκόρερ δεν αντιμετωπίζουν ισχυρή, ακαταμάχητη\nπόθους και κατά συνέπεια δεν βρήκαν τον εαυτό τους στον πειρασμό να ξεπεράσουν.`\n }, {\n facet: 6,\n title: 'Vulnerability',\n text: `Υψηλοί σκόρερ για την εμπειρία ευπάθειας\nπανικός, σύγχυση και αδυναμία όταν βρίσκονται υπό πίεση ή άγχος.\nΟι χαμηλοί σκόρερ αισθάνονται πιο χαλαροί, σίγουροι και σαφείς όταν\nτόνισε.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Conscientiousness',\n shortDescription: 'Η συνείδηση αφορά τον τρόπο με τον οποίο ελέγχουμε, ρυθμίζουμε και κατευθύνουμε τις παρορμήσεις μας.',\n description: `Οι παρορμήσεις δεν είναι εγγενώς κακές.\nπεριστασιακά χρονικοί περιορισμοί απαιτούν μια γρήγορη απόφαση, και ενεργώντας\nη πρώτη μας ώθηση μπορεί να είναι μια αποτελεσματική απάντηση. Επίσης, σε εποχές\nνα παίζουν παρά να δουλεύουν, να ενεργούν αυθόρμητα και παρορμητικά\nδιασκεδαστικο. Τα παρορμητικά άτομα μπορούν να θεωρηθούν από άλλους ως πολύχρωμα,\nδιασκέδαση-to-be-με, και zany.\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 results: [{\n score: 'low',\n // do not translate this line\n text: `Η βαθμολογία σας για τη Συνείδηση είναι χαμηλή, υποδεικνύοντας ότι θέλετε να ζήσετε\nπρος το παρόν και να κάνουμε αυτό που αισθάνεται καλά τώρα. Το έργο σας τείνει να είναι\nαπρόσεκτη και αποδιοργανωμένη.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Η βαθμολογία σας για τη Συνείδηση είναι μέση. Αυτό σημαίνει ότι είσαι\nεύλογα αξιόπιστη, οργανωμένη και αυτοελεγχόμενη.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Η βαθμολογία σας για τη Συνείδηση είναι υψηλή. Αυτό σημαίνει ότι θέτετε σαφή\nστόχους και να τους ακολουθήσουν με αποφασιστικότητα. Οι άνθρωποι σας θεωρούν\nαξιόπιστη και σκληρή εργασία.`\n }],\n facets: [{\n facet: 1,\n title: 'Self-Efficacy',\n text: `Η αυτο-αποτελεσματικότητα περιγράφει την εμπιστοσύνη στην ικανότητά του\nγια να ολοκληρώσουν τα πράγματα. Οι υψηλοί σκόρερ πιστεύουν ότι έχουν τη νοημοσύνη\n(κοινή λογική), την οδήγηση και τον αυτοέλεγχο που είναι απαραίτητα για την επίτευξη επιτυχίας.\nΟι χαμηλοί σκόρερ δεν αισθάνονται αποτελεσματικοί και μπορεί να έχουν την αίσθηση ότι δεν είναι\nστον έλεγχο της ζωής τους.`\n }, {\n facet: 2,\n title: 'Orderliness',\n text: `Τα άτομα με υψηλές βαθμολογίες στην κανονικότητα είναι\nκαλά οργανωμένη. Τους αρέσει να ζουν σύμφωνα με τις ρουτίνες και τα χρονοδιαγράμματα. Αυτοί\nνα κρατάτε τους καταλόγους και να κάνετε σχέδια. Οι χαμηλοί σκόρερ τείνουν να αποδιοργανώνονται και\nδιεσπαρμένος.`\n }, {\n facet: 3,\n title: 'Dutifulness',\n text: `Αυτή η κλίμακα αντικατοπτρίζει τη δύναμη της αίσθησης ενός ατόμου\nτου δασμού και της υποχρέωσης. Εκείνοι που έχουν υψηλή βαθμολογία σε αυτή την κλίμακα έχουν ισχυρή\nαίσθημα ηθικής υποχρέωσης. Οι χαμηλοί σκόρερ βρίσκουν συμβάσεις, κανόνες και\nκανονισμούς που περιορίζονται υπερβολικά. Είναι πιθανό να θεωρηθούν ως αναξιόπιστοι ή\nακόμη και ανεύθυνη.`\n }, {\n facet: 4,\n title: 'Achievement-Striving',\n text: `Άτομα που βαθμολογούν ψηλά σε αυτό\nκλίμακα προσπαθούν σκληρά για να επιτύχουν την αριστεία. Η προσπάθειά τους να αναγνωριστούν ως\nεπιτυχία τους διατηρεί σε καλό δρόμο προς τους υψηλές τους στόχους. Συχνά έχουν\nμια ισχυρή αίσθηση της κατεύθυνσης στη ζωή, αλλά εξαιρετικά υψηλές βαθμολογίες μπορεί\nνα είστε πολύ απασχολημένοι και εμμονή με το έργο τους. Οι χαμηλοί σκόρερ είναι ικανοποιημένοι\nνα περάσουν με ένα ελάχιστο ποσό εργασίας και να το δουν οι άλλοι\nως τεμπέλης.`\n }, {\n facet: 5,\n title: 'Self-Discipline',\n text: `Αυτοπειθαρχία - αυτό που πολλοί καλούν\nwill-power-αναφέρεται στην ικανότητα να επιμένει σε δύσκολες ή δυσάρεστες\nκαθήκοντα μέχρι να ολοκληρωθούν. Άτομα που κατέχουν υψηλή αυτοπειθαρχία\nείναι σε θέση να ξεπεράσουν την απροθυμία να ξεκινήσουν τα καθήκοντά τους και να παραμείνουν σε καλό δρόμο παρά το γεγονός ότι\nαποσπάσεις της προσοχής. Αυτοί με χαμηλή αυτοπειθαρχία χρονοτριβούν και δείχνουν φτωχούς\nπαρακολούθησης, συχνά αποτυγχάνουν να ολοκληρώσουν τις εργασίες - ακόμη και εργασίες που θέλουν πολύ\nπολλά για να ολοκληρωθεί.`\n }, {\n facet: 6,\n title: 'Cautiousness',\n text: `Η προσεκτικότητα περιγράφει τη διάθεση προς\nσκεφτείτε τις δυνατότητες πριν ενεργήσετε. Υψηλότεροι σκόρερ στην Προφύλαξη\nκλίμακα παίρνουν το χρόνο τους κατά τη λήψη αποφάσεων. Οι χαμηλοί σκόρερ συχνά λένε ή κάνουν\nτο πρώτο πράγμα που έρχεται στο νου χωρίς να συζητάμε εναλλακτικές λύσεις και το\nπιθανές συνέπειες αυτών των εναλλακτικών λύσεων.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Openness To Experience',\n shortDescription: 'Το Openness to Experience περιγράφει μια διάσταση του γνωστικού στυλ που διακρίνει τους φανταστικούς, δημιουργικούς ανθρώπους από τους γείτονες, τους συμβατικούς ανθρώπους.',\n description: `Οι ανοιχτοί άνθρωποι είναι διανοητικά περίεργοι,\nαισθητική της τέχνης και ευαίσθητη στην ομορφιά. Τείνουν να είναι,\nσε σύγκριση με τους κλειστούς ανθρώπους, περισσότερο ενήμεροι για τα συναισθήματά τους. Εχουν την τάση\nσκέφτεστε και ενεργείτε σε ατομικιστικές και μη συμμορφούμενες\nτρόπους. Οι διανοούμενοι έχουν συνήθως την υψηλότερη βαθμολογία στην Ανοικτότητα προς Εμπειρία.\nκατά συνέπεια, ο παράγοντας αυτός ονομάστηκε επίσης Πολιτισμός ή\nΔιάνοια. Παρόλα αυτά, η Intellect θεωρείται πιθανώς καλύτερα ως μία πτυχή του ανοίγματος\nνα βιώσω. Τα αποτελέσματα σχετικά με την Ανοικτότητα στην Εμπειρία είναι μέτρια\nπου σχετίζονται με τα έτη εκπαίδευσης και βαθμολογίες σε τυποποιημένες έξυπνες δοκιμές.\n \nΈνα άλλο χαρακτηριστικό του ανοιχτού γνωστικού στυλ είναι μια δυνατότητα σκέψης\nσε σύμβολα και αφαίμασεις που απέχουν πολύ από τη συγκεκριμένη εμπειρία. Εξαρτάται από\nτις συγκεκριμένες πνευματικές ικανότητες του ατόμου, αυτή η συμβολική γνώση μπορεί\nνα λάβουν τη μορφή μαθηματικής, λογικής ή γεωμετρικής σκέψης, καλλιτεχνικής και\nμεταφορική χρήση της γλώσσας, της μουσικής σύνθεσης ή της παράστασης, ή ενός από τους\nπολλές οπτικές ή επιτελικές τέχνες.\n \nΤα άτομα με χαμηλές βαθμολογίες σχετικά με το άνοιγμα στην εμπειρία τείνουν να έχουν στενό, κοινό χαρακτήρα\nτα ενδιαφέροντα. Προτιμούν το απλό, απλό και προφανές κατά τη διάρκεια του\nπολύπλοκη, διφορούμενη και λεπτή. Μπορούν να θεωρούν τις τέχνες και τις επιστήμες με\nυποψία, σχετικά με τις προσπάθειες αυτές ως άσκοπη ή μη πρακτική χρήση.\nΟι κλειστοί άνθρωποι προτιμούν την εξοικείωση με την καινοτομία. είναι συντηρητικοί και\nανθεκτικό στην αλλαγή.\n \nΗ διαφάνεια συχνά παρουσιάζεται ως πιο υγιής ή πιο ώριμη από τους ψυχολόγους, ποιος\nσυχνά είναι ανοιχτά στην εμπειρία. Ωστόσο, ανοιχτά και κλειστά στυλ του\nη σκέψη είναι χρήσιμη σε διαφορετικά περιβάλλοντα. Το πνευματικό στυλ του\nανοικτό πρόσωπο μπορεί να εξυπηρετήσει έναν καθηγητή καλά, αλλά η έρευνα έχει δείξει ότι έκλεισε\nη σκέψη σχετίζεται με την ανώτερη απόδοση της εργασίας στις αστυνομικές εργασίες, τις πωλήσεις και\nμια σειρά επαγγελμάτων.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Η βαθμολογία σας για το Openness to Experience είναι χαμηλή, υποδεικνύοντας ότι θέλετε να σκεφτείτε\nαπλοί και απλοί όροι. Άλλοι σας περιγράφουν ως υποβαθμισμένες, πρακτικές,\nκαι συντηρητική.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Η βαθμολογία σας για το Openness to Experience είναι μέση, υποδεικνύοντας ότι απολαμβάνετε\nαλλά είναι πρόθυμοι να δοκιμάσουν νέα πράγματα. Η σκέψη σου δεν είναι ούτε\nαπλή και περίπλοκη. Σε άλλους φαίνεται ότι είστε ένα πολύ μορφωμένο άτομο\nαλλά δεν είναι διανοούμενος.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Η βαθμολογία σας για το Openness to Experience είναι υψηλή, υποδεικνύοντας ότι απολαμβάνετε την καινοτομία,\nποικιλία και αλλαγή. Είστε περίεργοι, φανταστικοί και δημιουργικοί.`\n }],\n facets: [{\n facet: 1,\n title: 'Imagination',\n text: `Για τα ευφάνταστα άτομα, ο πραγματικός κόσμος είναι\nσυχνά πολύ απλή και συνηθισμένη. Οι υψηλοί σκόρερ σε αυτήν την κλίμακα χρησιμοποιούν φαντασία σαν α\nτρόπο δημιουργίας ενός πλουσιότερου, πιο ενδιαφέροντος κόσμου. Οι χαμηλοί σκορ έρχονται σε αυτό\nκλίμακα είναι περισσότερο προσανατολισμένη στα γεγονότα από τη φαντασία.`\n }, {\n facet: 2,\n title: 'Artistic Interests',\n text: `Οι υψηλοί σκόρερ σε αυτή την κλίμακα αγαπούν την ομορφιά, τόσο μέσα\nτης τέχνης και της φύσης. Γίνονται εύκολα εμπλέκονται και απορροφώνται σε καλλιτεχνικές\nκαι φυσικά γεγονότα. Δεν είναι απαραίτητα καλλιτεχνικά εκπαιδευμένοι ούτε\nταλαντούχοι, αν και πολλοί θα είναι. Τα καθοριστικά χαρακτηριστικά αυτής της κλίμακας είναι\nτο ενδιαφέρον και την εκτίμηση των φυσικών και\nτεχνητή ομορφιά. Οι χαμηλοί σκοπευτές δεν έχουν αισθητική ευαισθησία και ενδιαφέρον\nοι τέχνες.`\n }, {\n facet: 3,\n title: 'Emotionality',\n text: `Τα άτομα με υψηλή ευαισθησία έχουν καλή πρόσβαση\nκαι να συνειδητοποιήσουν τα συναισθήματά τους. Οι χαμηλοί σκόρερ δεν γνωρίζουν\nτα συναισθήματά τους και τείνουν να μην εκφράζουν ανοιχτά τα συναισθήματά τους.`\n }, {\n facet: 4,\n title: 'Adventurousness',\n text: `Οι υψηλοί σκόρερ για την περιπέτεια είναι πρόθυμοι να\nδοκιμάστε νέες δραστηριότητες, ταξιδεύετε σε ξένες εκτάσεις και δοκιμάστε διαφορετικά\nπράγματα. Βρίσκουν οικειότητα και ρουτίνα βαρετό, και θα πάρει ένα νέο\nδιαδρομή στο σπίτι μόνο και μόνο επειδή είναι διαφορετική. Οι χαμηλοί σκόρερ τείνουν να αισθάνονται\nάβολα με την αλλαγή και προτιμούν οικεία ρουτίνες.`\n }, {\n facet: 5,\n title: 'Intellect',\n text: `Τα πνευματικά και καλλιτεχνικά ενδιαφέροντα είναι τα δύο πιο\nσημαντικές, κεντρικές πτυχές του ανοίγματος στην εμπειρία. Υψηλή βαθμολογία\nΗ νοημοσύνη αγαπά να παίζει με ιδέες. Είναι ανοιχτοί στη νέα και ασυνήθιστη\nιδέες και επιθυμούν να συζητήσουν τα πνευματικά ζητήματα. Απολαμβάνουν γρίφους, παζλ,\nκαι ετικέτες εγκεφάλου. Οι χαμηλοί σκόρερ στην Intellect προτιμούν να ασχολούνται είτε με\nανθρώπους ή πράγματα και όχι ιδέες. Θεωρούν τις πνευματικές ασκήσεις ως α\nχάσιμο χρόνου. Η νοημοσύνη δεν πρέπει να εξομοιώνεται με τη νοημοσύνη.\nΗ νοημοσύνη είναι ένα πνευματικό στυλ, όχι μια πνευματική ικανότητα, αν και\nοι υψηλοί σκόρερ στο σκορ Intellect ελαφρώς υψηλότεροι από τους Low-Intellect\nάτομα σε τυποποιημένες δοκιμές πληροφοριών.`\n }, {\n facet: 6,\n title: 'Liberalism',\n text: `Ο ψυχολογικός φιλελευθερισμός αναφέρεται στην ετοιμότητα\nαμφισβητούν την αρχή, τη σύμβαση και τις παραδοσιακές αξίες. Στα περισσότερα του\nακραίες μορφές, ο ψυχολογικός φιλελευθερισμός μπορεί ακόμη και να είναι απλός\nτην εχθρότητα απέναντι στους κανόνες, τη συμπάθεια για τους διαταράκτες του νόμου και την αγάπη της ασάφειας,\nτο χάος και τη διαταραχή. Οι ψυχολογικοί συντηρητικοί προτιμούν την ασφάλεια και\nσταθερότητα που επιφέρει η συμβατότητα με την παράδοση. Ψυχολογικός φιλελευθερισμός\nκαι ο συντηρητισμός δεν είναι ταυτόσημοι με την πολιτική υπαγωγή, αλλά σίγουρα\nπροσανατολισμό ατόμων προς ορισμένα πολιτικά κόμματα.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Agreeableness',\n shortDescription: 'Agreeableness reflects individual differences in concern with cooperation and social harmony. Agreeable individuals value getting along with others.',\n description: `They are therefore considerate, friendly,\ngenerous, helpful, and willing to compromise their interests with\nothers'. Agreeable people also have an optimistic view of human\nnature. They believe people are basically honest, decent, and\ntrustworthy. \nDisagreeable individuals place self-interest above getting along with\nothers. They are generally unconcerned with others' well-being, and\ntherefore are unlikely to extend themselves for other people.\nSometimes their skepticism about others' motives causes them to be\nsuspicious, unfriendly, and uncooperative.\n \nAgreeableness is obviously advantageous for attaining and maintaining\npopularity. Agreeable people are better liked than disagreeable\npeople. On the other hand, agreeableness is not useful in situations\nthat require tough or absolute objective decisions. Disagreeable\npeople can make excellent scientists, critics, or soldiers.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Agreeableness is low, indicating less concern\nwith others' needs than with your own. People see you as tough,\ncritical, and uncompromising.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your level of Agreeableness is average, indicating some concern\nwith others' Needs, but, generally, unwillingness to sacrifice\nyourself for others.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your high level of Agreeableness indicates a strong interest in\nothers' needs and well-being. You are pleasant, sympathetic, and\ncooperative.`\n }],\n facets: [{\n facet: 1,\n title: 'Trust',\n text: `A person with high trust assumes that most people\nare fair, honest, and have good intentions. Persons low in trust\nsee others as selfish, devious, and potentially dangerous.`\n }, {\n facet: 2,\n title: 'Morality',\n text: `High scorers on this scale see no need for\npretense or manipulation when dealing with others and are therefore\ncandid, frank, and sincere. Low scorers believe that a certain\namount of deception in social relationships is necessary. People\nfind it relatively easy to relate to the straightforward\nhigh-scorers on this scale. They generally find it more difficult\nto relate to the unstraightforward low-scorers on this scale. It\nshould be made clear that low scorers are not unprincipled\nor immoral; they are simply more guarded and less willing to openly\nreveal the whole truth.`\n }, {\n facet: 3,\n title: 'Altruism',\n text: `Altruistic people find helping other people\ngenuinely rewarding. Consequently, they are generally willing to\nassist those who are in need. Altruistic people find that doing\nthings for others is a form of self-fulfillment rather than\nself-sacrifice. Low scorers on this scale do not particularly like\nhelping those in need. Requests for help feel like an imposition\nrather than an opportunity for self-fulfillment.`\n }, {\n facet: 4,\n title: 'Cooperation',\n text: `Individuals who score high on this scale\ndislike confrontations. They are perfectly willing to compromise or\nto deny their own needs in order to get along with others. Those\nwho score low on this scale are more likely to intimidate others to\nget their way.`\n }, {\n facet: 5,\n title: 'Modesty',\n text: `High scorers on this scale do not like to claim\nthat they are better than other people. In some cases this attitude\nmay derive from low self-confidence or self-esteem. Nonetheless,\nsome people with high self-esteem find immodesty unseemly. Those\nwhoare willing to describe themselves as superior tend to\nbe seen as disagreeably arrogant by other people.`\n }, {\n facet: 6,\n title: 'Sympathy',\n text: `People who score high on this scale are\ntenderhearted and compassionate. They feel the pain of others\nvicariously and are easily moved to pity. Low scorers are not\naffected strongly by human suffering. They pride themselves on\nmaking objective judgments based on reason. They are more concerned\nwith truth and impartial justice than with mercy.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extraversion',\n shortDescription: 'Extraversion is marked by pronounced engagement with the external world.',\n description: `Extraverts enjoy being with people, are full of energy, and\noften experience positive emotions. They tend to be enthusiastic,\naction-oriented, individuals who are likely to say \"Yes!\" or \"Let's\ngo!\" to opportunities for excitement. In groups they like to talk,\nassert themselves, and draw attention to themselves.\n \nIntroverts lack the exuberance, energy, and activity levels of\nextraverts. They tend to be quiet, low-key, deliberate, and\ndisengaged from the social world. Their lack of social involvement\nshould not be interpreted as shyness or depression; the\nintrovert simply needs less stimulation than an extravert and prefers\nto be alone. The independence and reserve of the introvert is\nsometimes mistaken as unfriendliness or arrogance. In reality, an\nintrovert who scores high on the agreeableness dimension will not\nseek others out but will be quite pleasant when approached.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Extraversion is low, indicating you are\nintroverted, reserved, and quiet. You enjoy solitude and solitary\nactivities. Your socialization tends to be restricted to a few close friends.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Extraversion is average, indicating you are\nneither a subdued loner nor a jovial chatterbox. You enjoy time with\nothers but also time alone.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Extraversion is high, indicating you are\nsociable, outgoing, energetic, and lively. You prefer to be around\npeople much of the time.`\n }],\n facets: [{\n facet: 1,\n title: 'Friendliness',\n text: `Friendly people genuinely like other people\nand openly demonstrate positive feelings toward others. They make\nfriends quickly and it is easy for them to form close, intimate\nrelationships. Low scorers on Friendliness are not necessarily cold\nand hostile, but they do not reach out to others and are perceived\nas distant and reserved.`\n }, {\n facet: 2,\n title: 'Gregariousness',\n text: `Gregarious people find the company of\nothers pleasantly stimulating and rewarding. They enjoy the\nexcitement of crowds. Low scorers tend to feel overwhelmed by, and\ntherefore actively avoid, large crowds. They do not necessarily\ndislike being with people sometimes, but their need for privacy and\ntime to themselves is much greater than for individuals who score\nhigh on this scale.`\n }, {\n facet: 3,\n title: 'Assertiveness',\n text: `High scorers Assertiveness like to speak\n out, take charge, and direct the activities of others. They tend to\n be leaders in groups. Low scorers tend not to talk much and let\n others control the activities of groups.`\n }, {\n facet: 4,\n title: 'Activity Level',\n text: `Active individuals lead fast-paced, busy\n lives. They move about quickly, energetically, and vigorously, and\n they are involved in many activities. People who score low on this\n scale follow a slower and more leisurely, relaxed pace.`\n }, {\n facet: 5,\n title: 'Excitement-Seeking',\n text: `High scorers on this scale are easily\nbored without high levels of stimulation. They love bright lights\nand hustle and bustle. They are likely to take risks and seek\nthrills. Low scorers are overwhelmed by noise and commotion and are\nadverse to thrill-seeking.`\n }, {\n facet: 6,\n title: 'Cheerfulness',\n text: `This scale measures positive mood and\nfeelings, not negative emotions (which are a part of the\nNeuroticism domain). Persons who score high on this scale typically\nexperience a range of positive feelings, including happiness,\nenthusiasm, optimism, and joy. Low scorers are not as prone to such\nenergetic, high spirits.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neuroticism',\n shortDescription: 'Neuroticism refers to the tendency to experience negative feelings.',\n description: `Freud originally used the term neurosis to describe a\ncondition marked by mental distress, emotional suffering, and an\ninability to cope effectively with the normal demands of life. He\nsuggested that everyone shows some signs of neurosis, but that we\ndiffer in our degree of suffering and our specific symptoms of\ndistress. Today neuroticism refers to the tendency to experience\nnegative feelings. Those who score high on Neuroticism may\nexperience primarily one specific negative feeling such as anxiety,\nanger, or depression, but are likely to experience several of these\nemotions. People high in neuroticism are emotionally reactive. They\nrespond emotionally to events that would not affect most people, and\ntheir reactions tend to be more intense than normal. They are more\nlikely to interpret ordinary situations as threatening, and minor\nfrustrations as hopelessly difficult. Their negative emotional\nreactions tend to persist for unusually long periods of time, which\nmeans they are often in a bad mood. These problems in emotional\nregulation can diminish a neurotic's ability to think clearly, make\ndecisions, and cope effectively with stress.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Neuroticism is low, indicating that you are\nexceptionally calm, composed and unflappable. You do not react with\nintense emotions, even to situations that most people would describe\nas stressful.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Neuroticism is average, indicating that your level of\nemotional reactivity is typical of the general population.\nStressful and frustrating situations are somewhat upsetting to you,\nbut you are generally able to get over these feelings and cope with\nthese situations.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Neuroticism is high, indicating that you are easily\nupset, even by what most people consider the normal demands of\nliving. People consider you to be sensitive and emotional.`\n }],\n facets: [{\n facet: 1,\n title: 'Anxiety',\n text: `The \"fight-or-flight\" system of the brain of anxious\nindividuals is too easily and too often engaged. Therefore, people who\nare high in anxiety often feel like something dangerous is about to happen.\nThey may be afraid of specific situations or be just generally fearful.\nThey feel tense, jittery, and nervous. Persons low in Anxiety are generally\ncalm and fearless.`\n }, {\n facet: 2,\n title: 'Anger',\n text: `Persons who score high in Anger feel enraged when\nthings do not go their way. They are sensitive about being treated fairly\nand feel resentful and bitter when they feel they are being cheated.\nThis scale measures the tendency to feel angry; whether or not the\nperson expresses annoyance and hostility depends on the individual's\nlevel on Agreeableness. Low scorers do not get angry often or easily.`\n }, {\n facet: 3,\n title: 'Depression',\n text: `This scale measures the tendency to feel sad, dejected,\nand discouraged. High scorers lack energy and have difficulty initiating\nactivities. Low scorers tend to be free from these depressive feelings.`\n }, {\n facet: 4,\n title: 'Self-Consciousness',\n text: `Self-conscious individuals are sensitive\nabout what others think of them. Their concern about rejection and\nridicule cause them to feel shy and uncomfortable around others. They\nare easily embarrassed and often feel ashamed. Their fears that others\nwill criticize or make fun of them are exaggerated and unrealistic, but\ntheir awkwardness and discomfort may make these fears a self-fulfilling\nprophecy. Low scorers, in contrast, do not suffer from the mistaken\nimpression that everyone is watching and judging them. They do not feel\nnervous in social situations.`\n }, {\n facet: 5,\n title: 'Immoderation',\n text: `Immoderate individuals feel strong cravings and\nurges that they have have difficulty resisting. They tend to be\noriented toward short-term pleasures and rewards rather than long-\nterm consequences. Low scorers do not experience strong, irresistible\ncravings and consequently do not find themselves tempted to overindulge.`\n }, {\n facet: 6,\n title: 'Vulnerability',\n text: `High scorers on Vulnerability experience\npanic, confusion, and helplessness when under pressure or stress.\nLow scorers feel more poised, confident, and clear-thinking when\nstressed.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Conscientiousness',\n shortDescription: 'Conscientiousness concerns the way in which we control, regulate, and direct our impulses.',\n description: `Impulses are not inherently bad;\noccasionally time constraints require a snap decision, and acting on\nour first impulse can be an effective response. Also, in times of\nplay rather than work, acting spontaneously and impulsively can be\nfun. Impulsive individuals can be seen by others as colorful,\nfun-to-be-with, and zany.\n \nNonetheless, acting on impulse can lead to trouble in a number of\nways. Some impulses are antisocial. Uncontrolled antisocial acts\nnot only harm other members of society, but also can result in\nretribution toward the perpetrator of such impulsive acts. Another\nproblem with impulsive acts is that they often produce immediate\nrewards but undesirable, long-term consequences. Examples include\nexcessive socializing that leads to being fired from one's job,\nhurling an insult that causes the breakup of an important\nrelationship, or using pleasure-inducing drugs that eventually\ndestroy one's health.\n \nImpulsive behavior, even when not seriously destructive, diminishes\na person's effectiveness in significant ways. Acting impulsively\ndisallows contemplating alternative courses of action, some of which\nwould have been wiser than the impulsive choice. Impulsivity also\nsidetracks people during projects that require organized sequences\nof steps or stages. Accomplishments of an impulsive person are\ntherefore small, scattered, and inconsistent.\n \nA hallmark of intelligence, what potentially separates human beings\nfrom earlier life forms, is the ability to think about future\nconsequences before acting on an impulse. Intelligent activity\ninvolves contemplation of long-range goals, organizing and planning\nroutes to these goals, and persisting toward one's goals in the face\nof short-lived impulses to the contrary. The idea that intelligence\ninvolves impulse control is nicely captured by the term prudence, an\nalternative label for the Conscientiousness domain. Prudent means\nboth wise and cautious.\n \nPersons who score high on the\nConscientiousness scale are, in fact, perceived by others as intelligent.\nThe benefits of high conscientiousness are obvious. Conscientious\nindividuals avoid trouble and achieve high levels of success through\npurposeful planning and persistence. They are also positively\nregarded by others as intelligent and reliable. On the negative\nside, they can be compulsive perfectionists and workaholics.\nFurthermore, extremely conscientious individuals might be regarded\nas stuffy and boring.\n \nUnconscientious people may be criticized for\ntheir unreliability, lack of ambition, and failure to stay within\nthe lines, but they will experience many short-lived pleasures and\nthey will never be called stuffy.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Conscientiousness is low, indicating you like to live\nfor the moment and do what feels good now. Your work tends to be\ncareless and disorganized.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Conscientiousness is average. This means you are\nreasonably reliable, organized, and self-controlled.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Conscientiousness is high. This means you set clear\ngoals and pursue them with determination. People regard you as\nreliable and hard-working.`\n }],\n facets: [{\n facet: 1,\n title: 'Self-Efficacy',\n text: `Self-Efficacy describes confidence in one's ability\nto accomplish things. High scorers believe they have the intelligence\n(common sense), drive, and self-control necessary for achieving success.\nLow scorers do not feel effective, and may have a sense that they are not\nin control of their lives.`\n }, {\n facet: 2,\n title: 'Orderliness',\n text: `Persons with high scores on orderliness are\nwell-organized. They like to live according to routines and schedules. They\nkeep lists and make plans. Low scorers tend to be disorganized and\nscattered.`\n }, {\n facet: 3,\n title: 'Dutifulness',\n text: `This scale reflects the strength of a person's sense\n of duty and obligation. Those who score high on this scale have a strong\n sense of moral obligation. Low scorers find contracts, rules, and\n regulations overly confining. They are likely to be seen as unreliable or\n even irresponsible.`\n }, {\n facet: 4,\n title: 'Achievement-Striving',\n text: `Individuals who score high on this\nscale strive hard to achieve excellence. Their drive to be recognized as\nsuccessful keeps them on track toward their lofty goals. They often have\na strong sense of direction in life, but extremely high scores may\nbe too single-minded and obsessed with their work. Low scorers are content\nto get by with a minimal amount of work, and might be seen by others\nas lazy.`\n }, {\n facet: 5,\n title: 'Self-Discipline',\n text: `Self-discipline-what many people call\nwill-power-refers to the ability to persist at difficult or unpleasant\ntasks until they are completed. People who possess high self-discipline\nare able to overcome reluctance to begin tasks and stay on track despite\ndistractions. Those with low self-discipline procrastinate and show poor\nfollow-through, often failing to complete tasks-even tasks they want very\nmuch to complete.`\n }, {\n facet: 6,\n title: 'Cautiousness',\n text: `Cautiousness describes the disposition to\nthink through possibilities before acting. High scorers on the Cautiousness\nscale take their time when making decisions. Low scorers often say or do\nfirst thing that comes to mind without deliberating alternatives and the\nprobable consequences of those alternatives.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Openness To Experience',\n shortDescription: 'Openness to Experience describes a dimension of cognitive style that distinguishes imaginative, creative people from down-to-earth, conventional people.',\n description: `Open people are intellectually curious,\nappreciative of art, and sensitive to beauty. They tend to be,\ncompared to closed people, more aware of their feelings. They tend to\nthink and act in individualistic and nonconforming\nways. Intellectuals typically score high on Openness to Experience;\nconsequently, this factor has also been called Culture or\nIntellect. Nonetheless, Intellect is probably best regarded as one aspect of openness\nto experience. Scores on Openness to Experience are only modestly\nrelated to years of education and scores on standard intelligent tests.\n \nAnother characteristic of the open cognitive style is a facility for thinking\nin symbols and abstractions far removed from concrete experience. Depending on\nthe individual's specific intellectual abilities, this symbolic cognition may\ntake the form of mathematical, logical, or geometric thinking, artistic and\nmetaphorical use of language, music composition or performance, or one of the\nmany visual or performing arts.\n \nPeople with low scores on openness to experience tend to have narrow, common\ninterests. They prefer the plain, straightforward, and obvious over the\ncomplex, ambiguous, and subtle. They may regard the arts and sciences with\nsuspicion, regarding these endeavors as abstruse or of no practical use.\nClosed people prefer familiarity over novelty; they are conservative and\nresistant to change.\n \nOpenness is often presented as healthier or more mature by psychologists, who\nare often themselves open to experience. However, open and closed styles of\nthinking are useful in different environments. The intellectual style of the\nopen person may serve a professor well, but research has shown that closed\nthinking is related to superior job performance in police work, sales, and\na number of service occupations.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Your score on Openness to Experience is low, indicating you like to think in\nplain and simple terms. Others describe you as down-to-earth, practical,\nand conservative.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Your score on Openness to Experience is average, indicating you enjoy\ntradition but are willing to try new things. Your thinking is neither\nsimple nor complex. To others you appear to be a well-educated person\nbut not an intellectual.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Your score on Openness to Experience is high, indicating you enjoy novelty,\nvariety, and change. You are curious, imaginative, and creative.`\n }],\n facets: [{\n facet: 1,\n title: 'Imagination',\n text: `To imaginative individuals, the real world is\noften too plain and ordinary. High scorers on this scale use fantasy as a\nway of creating a richer, more interesting world. Low scorers are on this\nscale are more oriented to facts than fantasy.`\n }, {\n facet: 2,\n title: 'Artistic Interests',\n text: `High scorers on this scale love beauty, both in\nart and in nature. They become easily involved and absorbed in artistic\nand natural events. They are not necessarily artistically trained nor\ntalented, although many will be. The defining features of this scale are\ninterest in, and appreciation of natural and\nartificial beauty. Low scorers lack aesthetic sensitivity and interest in\nthe arts.`\n }, {\n facet: 3,\n title: 'Emotionality',\n text: `Persons high on Emotionality have good access\nto and awareness of their own feelings. Low scorers are less aware of\ntheir feelings and tend not to express their emotions openly.`\n }, {\n facet: 4,\n title: 'Adventurousness',\n text: `High scorers on adventurousness are eager to\ntry new activities, travel to foreign lands, and experience different\nthings. They find familiarity and routine boring, and will take a new\nroute home just because it is different. Low scorers tend to feel\nuncomfortable with change and prefer familiar routines.`\n }, {\n facet: 5,\n title: 'Intellect',\n text: `Intellect and artistic interests are the two most\nimportant, central aspects of openness to experience. High scorers on\nIntellect love to play with ideas. They are open-minded to new and unusual\nideas, and like to debate intellectual issues. They enjoy riddles, puzzles,\nand brain teasers. Low scorers on Intellect prefer dealing with either\npeople or things rather than ideas. They regard intellectual exercises as a\nwaste of time. Intellect should not be equated with intelligence.\nIntellect is an intellectual style, not an intellectual ability, although\nhigh scorers on Intellect score slightly higher than low-Intellect\nindividuals on standardized intelligence tests.`\n }, {\n facet: 6,\n title: 'Liberalism',\n text: `Psychological liberalism refers to a readiness to\nchallenge authority, convention, and traditional values. In its most\nextreme form, psychological liberalism can even represent outright\nhostility toward rules, sympathy for law-breakers, and love of ambiguity,\nchaos, and disorder. Psychological conservatives prefer the security and\nstability brought by conformity to tradition. Psychological liberalism\nand conservatism are not identical to political affiliation, but certainly\nincline individuals toward certain political parties.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Simpatía',\n shortDescription: 'La simpatía refleja la capacidad de una persona para mantener la armonía y cooperar con otros.',\n description: `Una persona simpática busca llevarse bien con los demás.\nPor este motivo, son considerados, amistosos, generosos, serviciales y\nsiempre dispuestos a comprometerse con los intereses de los demás.\nLa gente simpática también tiene una percepción optimista sobre la\nnaturaleza humana, considerando que todo el mundo es honesto y digno\nde confianza.\n \nLos individuos más desagradables priorizan su propio bienestar a mantener\nuna buena relación con otras personas. Generalmente no se preocupan por\nel bienestar de los demás, y es muy raro que se ofrezcan a prestar\nayuda a otras personas. Su escepticismo sobre las motivaciones de otros\nhace que resulten desconfiados, ariscos y poco cooperativos.\n \nLa simpatía es un factor que supone una ventaja a la hora de ganar popularidad\nentre la gente, porque alguien simpática es más propenso a ganarse el\naprecio de otros. Por otro lado, esa simpatía es menos útil en circunstancias\ndonde se requiera tomar decisiones imparciales y objetivas. Las personas\ncon menos simpatía pueden ser brillantes como científicos, críticos o soldados.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Tu puntuación en simpatía es baja, lo que indica que te\nprecupan más tus necesidades que las de los demás. Los otros te perciben\ncomo una persona difícil, crítica e inflexiva.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Tu puntuación en simpatía es media. Aunque te preocupas por las\nnecesidades ajenas, generalmente no estás dispuesto a sacrificarte por otros.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Tu alta puntuación en simpatía indica que te interesas por las\nnecesidades de otros tanto como de tu propio bienestar. Eres agradable,\ncompasivo y cooperativo.`\n }],\n facets: [{\n facet: 1,\n title: 'Confianza',\n text: `Alguien que tenga un alto nivel de confianza asume que todos a\nsu alrededor son justos, honestos y con buenas intenciones. Quienes confían\npoco suelen percibir a los demás como egoístas, retorcidos y, potencialmente,\npeligrosos.`\n }, {\n facet: 2,\n title: 'Moral',\n text: `Quienes tienen una alta puntuación en esta escala no ven necesidad\nde fingir o manipular nada en sus interacción con los demás. Esto los convierte\nen personas directas y sinceras. Los que obtienen menos puntos consideran que\nes necesario mantener un cierto nivel de engaño en situaciones sociales.\nLas personas encuentran relativamente fácil relacionarse con la gente directa\nque obtiene muchos puntos en esta escala, y les resulta más difícil comunicarse\ncon quienes obtienen menos puntos. Hay que aclarar que quienes sacan menos puntos\nen moralidad no necesariamente son inmorales e inescrupulosos; simplemente mantienen\nla guardia y más reticentes a revelar toda la verdad.`\n }, {\n facet: 3,\n title: 'Altruismo',\n text: `Una persona altruista se siente bien con el simple hecho de ayudar a\notros. Es por eso que, normalmente, están dispuestos ayudar a quien lo necesita.\nPara esta gente, el ayudar a otros no es un sacrificio, sino algo que les llena.\nA quienes obtienen baja puntuación en esta escala, sin embargo, no les gusta\nespecialmente prestar ayuda a otras personas. Si acuden en ayuda de alguien,\nlo hacen más por imposición que por que hacerlo les haga sentir bien.`\n }, {\n facet: 4,\n title: 'Cooperación',\n text: `Quienes sacan una alta puntuación en esta escala detestan los\nenfrentamientos. Están dispuestos a comprometerse o sacrificar sus propias\nnecesidades con tal de llevarse bien con otros. Los que obtienen menos puntos\ntienden a intimidar a los demás con tal de salirse con la suya.`\n }, {\n facet: 5,\n title: 'Modestia',\n text: `A los que sacan una puntuación alta en esta escala no les gusta\ndecir que son mejor que los demás. En muchos casos, esta actitud puede derivar\nde una falta de autoestima. Por otro lado, alguien con mucha autoestima tiende\na no ser modesto en absoluto. Esta gente que se describe a sí misma como\nalguien superior a los demás suele ser percibida como antipática y arrogante.`\n }, {\n facet: 6,\n title: 'Empatía',\n text: `Quienes obtienen una alta puntuación en esta escala son personas\nbondadosas y compasivas. Sienten el dolor de otros y es muy fácil hacerlos sentir\nlástima. Los que obtienen menos puntos no se ven muy afectados por el sufrimiento\najeno, y se enorgullecen de poder tomar decisiones de forma objetiva basándose\núnicamente en la razón. Les preocupa más la verdad e impartir una justicia e\nimparcial, en lugar de caer en la misericordia.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extroversión',\n shortDescription: 'La extraversión se define por la relación de una persona con el mundo exterior.',\n description: `Las personas extrovertidas disfrutan estar con otra gente, están llenas\nde energía y tienden a ser optimistas. Suelen ser entusiastas y aventureros, personas\nque nunca dicen no ante la posibilidad de probar algo nuevo. Cuando están en grupo, les\ngusta hablar, reivindicarse y llamar la atención.\n \nLa gente introvertida carece de la exuberancia, energía y una vida tan activa como la\nde los extrovertidos. Suelen ser callados, discretos, prudentes y estar aislados del mundo exterior. El hecho de que se aislen no implica que sean tímidos o sufran depresión;\nuna persona introvertida simplemente no necesita tantos estímulos como alguien\nextrovertido, y prefieren estar solos.\n \nA veces se confunde esta independencia y cautela con frialdad y arrogancia. La realidad\nes que este tipo de personas, si tienen una buena puntuación en simpatía, aunque no den\nel paso de acercarse a otras personas, suelen ser muy agradables con quien se les acerca.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Tu puntuación en extroversión es baja, lo que significa que\neres una persona introvertida, reservada y callada. Disfrutas estar solo\ny hacer cosas en solitario. Tu actividad social se restringe a un par de\namigos cercanos.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Tienes una puntuación media en extroversión, lo que significa\nque ni eres un alma solitaria ni un charlatán alegre. Disfrutas la compañía\nde otros, pero también pasar tiempo solo.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Has sacado una alta puntuación en extroversión, lo que significa\nque eres una persona sociable, extrovertida, enérgica y alegre. Prefieres estar\nacompañado la mayor parte del tiempo.`\n }],\n facets: [{\n facet: 1,\n title: 'Cordialidad',\n text: `La gente cordial gusta de otros de forma genuina, y expresan\nabiertamente sus sentimientos positivos hacia los demás. Hacen amigos\nrápidamente y no les cuesta formar relaciones cercanas con otras personas.\nQuienes obtienen pocos puntos en esta escala no son necesariamente fríos y hostiles,\npero no suelen acercarse a otros y se les considera reservados y distantes.`\n }, {\n facet: 2,\n title: 'Sociabilidad',\n text: `La compañía de otros resulta muy gratificante para las\npersonas sociables. Disfrutan estar rodeados de gente. Alguien que\nobtiene baja puntuación en este aspecto, sin embargo, tiende a evitar\nlas multitudes porque le resultan agobiantes. No es que no les guste\nla compañía de otros en ningún momento, pero necesitan mucha más\nprivacidad y pasar tiempo en solitario que una persona con alta\npuntuación en esta escala.`\n }, {\n facet: 3,\n title: 'Confianza',\n text: `Quienes tienen una alta puntuación en confianza gustan\nde hablar, tomar la iniciativa y dirigir a los demás. Suelen asumir\nel papel de líder dentro de los grupos. Los que obtienen una puntuación\nbaja suelen hablar poco y dejarse llevar.`\n }, {\n facet: 4,\n title: 'Nivel de actividad',\n text: `Los individuos muy activos llevan una vida muy ocupada y que\navanza a un ritmo muy rápido. Se mueven constantemente y tienen mucha energía,\ncon lo que es frecuente verlos involucrados en muchas actividades diferentes.\nLas personas que obtienen una baja puntuación en esta escala avanzan a un ritmo\nmucho más relajado.`\n }, {\n facet: 5,\n title: 'Búsqueda de nuevas experiencias',\n text: `Quienes obtienen una alta puntuación en este aspecto se aburren con\nfacilidad y necesitan muchos estímulos. Adoran las luces brillantes y el ajetreo.\nEste tipo de personas son propicios a tomar riesgos y buscan nuevas experiencias constantemente. Por otro lado, las personas de más baja puntuación se agobian\nfácilmente con el ruido y el escándalo, y son bastante adversos al cambio.`\n }, {\n facet: 6,\n title: 'Alegría',\n text: `Esta faceta mide únicamente el nivel de ánimo y sentimientos positivos\n(las emociones negativas son parte del apartado de Neurosis). Los que obtienen una\npuntuación alta en esta escala expresan con frecuencia un abanico de emociones\npositivas, tales como la felicidad, el entusiasmo, el optimismo o la alegría. Quienes\nobtienen menos puntos son menos propensos a mostrar tanta energía y entusiasmo.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neurosis',\n shortDescription: 'La neurosis hace referencia a la tendencia a experimentar sentimientos negativos.',\n description: `Inicialmente, Freud usó el término \"neurosis\" para describir\nuna condición marcada por la angustia, el sufrimiento y la incapacidad de lidiar\ncon las tareas del día a día. Dijo que todos experimentamos algún signo de neurosis,\naunque los síntomas y el grado de gravedad varían de una persona a otra. Hoy en día\nse utiliza la palabra \"neurosis\" para describir la tendencia de una persona a\nexperimentar sentimientos negativos.\n \nLas personas que obtienen una alta puntuación en neurosis pueden verse afectados por\nun sentimiento negativo específico (como lo puede ser la ansiedad, la ira o la depresión),\naunque lo más normal es que sientan muchas de estas emociones.\n \nLas personas más neuróticas son muy reactivas a nivel emocional. Suelen presentar una respuesta\nemocional ante cosas que no tendrían impacto en la mayoría de la gente, y sus reacciones tienden\na ser más intensas de lo normal. Son muy propensos a interpretar situaciones normales como una\namenaza, y cualquier pequeña frustración les resulta tremendamente difícil de superar.\n \nSus respuestas negativas ante las situaciones suelen extenderse durante largos períodos de tiempo,\nlo que se traduce en que estén frecuentemente de mal humor. Esta incapacidad de controlar su\nnegatividad hace que una persona neurótica tenga dificultades para pensar con claridad, tomar\ndecisiones y lidiar con el estrés.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Tienes una puntuación baja en neurosis, lo que significa que eres\nuna persona especialmente calmada, tranquila y serena. No respondes de forma\nmuy intensa, ni siquiera en situaciones que la mayoría de personas consideraría\nestresante.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Tienes una puntuación media en neurosis, con lo que tu nivel\nde respuesta emocional ante las cosas coincide con el de la mayor parte de\nla población. Las situaciones de estrés y frustración te afectan, pero sueles\nser capaz de controlar esos sentimientos y superar estas situaciones.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Tienes una puntuación alta en neurosis, lo que implica que cuesta\nmuy poco molestarte, incluso con cosas que la mayoría considera que son parte\nde una vida normal. La gente te considera alguien muy sensible y emocional.`\n }],\n facets: [{\n facet: 1,\n title: 'Ansiedad',\n text: `Los individuos más ansiosos están constantemente dudando de si huir o enfrentar\nlas situaciones que se le presentan. Por este motivo, aquellos que presentan un alto nivel\nde ansiedad tienden a sentir que hay peligro acechándole a cada momento. Pueden temer a\nsituaciones concretas o ser miedosos en general. Se sienten tensos, agitados y nerviosos\ncon frecuencia. Quienes obtienen una baja puntuación en ansiedad suelen ser personas\nvalientes y tranquilas.`\n }, {\n facet: 2,\n title: 'Ira',\n text: `La gente que tiene una alta puntuación en ira tiende a enfadarse cuando las\ncosas no salen como quiere. Son especialmente sensibles en cuanto a que se les trate de forma\njusta, y pueden mostrarse muy resentidos con quien sienten que los ha engañado. Esta\nescala mide la tendencia de una persona a enfadarse; que expresen abiertamente su enfado y\nhostilidad depende del nivel de simpatía de cada uno. Los que tienen baja puntuación\nen este aspecto no se enfadan con facilidad.`\n }, {\n facet: 3,\n title: 'Depresión',\n text: `Esta escala mide la tendecia de una persona a sentirse triste,\ndesalentada y desanimada. Quienes tienen una alta puntuación tienen dificultades\npara iniciar actividades, mientras que los que obtienen menos puntos suelen ser\ninmunes a sentimientos depresivos.`\n }, {\n facet: 4,\n title: 'Vergüenza',\n text: `Las personas que sienten mucha vergüenza son muy sensibles a la\nopinión que los demás tengan de ellos. Les preocupa hacer el ridículo y ser\nrechazados, lo que provoca que se sientan inseguros e incómodos alrededor de\notras personas. Tienen un miedo excesivo a que se les critique o se burlen de\nellos, pero esa inquietud y torpeza hacen de su miedo una realidad. Los que\nobtienen poca puntuación en esta escala, sin embargo, no se sienten observados\ny juzgados constantemente por la gente que hay a su alrededor. Por este motivo,\nno se sienten nerviosos en situaciones sociales.`\n }, {\n facet: 5,\n title: 'Falta de moderacion',\n text: `Las personas con falta de moderación tienen problemas para\nresistirse a sus ansias y antojos. Suelen fijarse en obtener beneficios\na corto plazo en lugar de pensar en las consecuencias a largo plazo.\nQuienes obtienen una puntuación más baja no suelen tener deseos irresistibles\ny, en consecuencia, no suelen ceder ante las tentaciones con tanta facilidad.`\n }, {\n facet: 6,\n title: 'Vulnerabilidad',\n text: `Las personas muy vulnerables experimientan pánico, confusión e\nimpotencia cuando están sometidos a presión o estrés. Los que obtienen puntuaciones\nbajas se mantienen mejor la calma, confianza y capacidad de pensar con claridad\nen situaciones de estrés.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Meticulosidad',\n shortDescription: 'La meticulosidad hace referencia a la forma en que controlamos y dirigimos nuestros impulsos.',\n description: `Los impulsos no son necesariamente malos.\nA veces tenemos que tomar una decisión en un corto espacio de tiempo,\ny actuar en base a un impulso puede ser una respuesta efectiva. Además,\nmás aplicado a nuestro tiempo libre que al trabajo, actuar de forma\nimpulsiva puede resultar divertido. Las personas más impulsivas pueden\nresultar extravagantes, alocados y divertidos a ojos de los demás.\n \nA pesar de esto, actuar en base a nuestros impulsos puede traernos\nproblemas en muchas ocasiones. Algunos de estos impulsos pueden ser\nantisociales. Realizar estos actos de forma incontrolada puede causar\ndaños a otras personas y provocar castigos en la persona que cedió\na esos impulsos. También suele ocurrir que estos actos impulsivos\ngenerar algún tipo de beneficio a corto plazo, pero unas consecuencias\nno deseadas a largo plazo. Ejemplos de esto son un exceso de socialización\nque cause que te echen de tu trabajo, lanzar un insulto que acaba por\nromper la relación con alguien importante, o caer en una droga que\neventualmente repercutirá negativamente en tu salud.\n \nUn comportamiento impulsivo, aunque no sea seriamente destructivo,\nlimita en gran medida la efectividad de una persona. Este comportamiento\nimpide que la persona contemple las distintas opciones posibles a la\nhora de decidir cómo actuar, y perder la posibilidad de escoger otro\ncamino más sabio que lo que pueda surgir en el momento. La impulsividad\ntambién desvía a la gente durante la realización de proyectos que\nrequieren ser planificados con cuidado en diferentes fases. Los logros\nque puede alcanzar alguien impulsivo, por tanto, son pequeños, dispersos\ne inconsistentes.\n \nUna de las principales características de la inteligencia, lo que diferencia\na los seres humanos de otras formas de vida, es la capacidad de evaluar\nnuestras opciones de cara al futuro antes de actuar. Esta inteligencia\nnos permite analizar nuestras metas a largo plazo y planificar los pasos\na seguir para alcanzar dichos objetivos, además de ser capaces de persistir\nen la persecución de esas metas frente a cualquier impulso que pueda surgir.\nEl término prudencia describe muy bien la idea de que podamos usar la\ninteligencia para controlar nuestros impulsos, término que también se puede\nemplear como alternativa a nuestro concepto de meticulosidad. La prudencia\nindica sabiduría y precaución.\n \nLas personas que obtienen una alta puntuación en meticulosidad suelen ser\npercibidos por los demás como gente inteligente. Los beneficios de ser\nmeticuloso son evidentes. Este tipo de personas pueden evadir los problemas\ny lograr buenos resultados a través de una buena planificación y persistencia.\nTambién son considerados inteligentes y responsables. El lado negativo de esto\nes, sin embargo, que pueden ser muy perfeccionistas y adictos al trabajo.\nEn algunos casos esto puede causar que resulten aburridos y sosos a ojos de\notras personas.\n \nPor otra parte, a la gente más inconsciente puede ser criticada por su falta\nde ambición, irresponsabilidad y la incapacidad de mantenerse constante en\nla persecución de una meta concreta. No obstante, personas que persiguen\ntantos placeres a corto plazo nunca serán consideradas sosas.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Tienes una puntucación baja en meticulosidad, lo que indica que\nte gusta vivir el momento. Tiendes a ser descuidado y desorganizado.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Tienes una puntuación media en meticulosidad. Esto quiere decir que\neres razonablemente responsable, organizado y que eres capaz de controlar tus impulsos.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Tienes una puntuación alta en meticulosidad. Tienes muy claras tus metas y\nlas persigues con gran determinación. Se te considera responsable y trabajador.`\n }],\n facets: [{\n facet: 1,\n title: 'Autoeficacia',\n text: `La autoeficacia describe la confianza de uno en sus propias\nhabilidades para lograr cosas. Quienes tienen una alta puntuación en esta faceta\ntienen la inteligencia, voluntad y autocontrol necesario para alcanzar el éxito.\nLos que obtienen una puntuación más baja no se consideran tan efectivos y sienten\nque no tienen las riendas de su propia vida.`\n }, {\n facet: 2,\n title: 'Orden',\n text: `Las personas con un alto nivel de orden son muy organizadas. Les gusta\nvivir siguiendo una rutina y planificar sus horarios. Mantienen listas con sus asuntos\npendientes y hacen planes. Los que tienen una puntuación más baja son desorganizados y\nmás dispersos.`\n }, {\n facet: 3,\n title: 'Sentido del deber',\n text: `Esta escala refleja cuánto de fuerte es el sentido del deber de una persona.\nQuienes sacan una alta puntuación tienen un alto nivel de compromiso con sus obligaciones.\nLos que tienen baja puntuación consideran que los contratos o las reglas suponen una gran\nlimitación y no se rigen tanto por ellas. Se les suele considerar irresponsables.`\n }, {\n facet: 4,\n title: 'Orientación a objetivos',\n text: `Los que obtienen una alta puntuación en esta escala se esfuerzan muchísimo\npara alcanzar la excelencia. Su ambición por ser reconocidos por sus éxitos hace que\nse muevan constantemente en dirección a sus nobles metas. Suelen tener un camino muy\nmarcado en la vida, pero si su puntuación es muy alta, pueden llegar a estar demasiado\nobsesionados con el trabajo. Las personas con baja puntuación se contentan con hacer\nuna mínima cantidad de trabajo, con lo que es fácil que los clasifiquen como vagos.`\n }, {\n facet: 5,\n title: 'Disciplina',\n text: `La disciplina (también conocida por muchos como la fuerza de voluntad) es la\nhabilidad de una persona para persistir en una tarea difícil o desagradable hasta que logre\ncompletarla. Aquellos dotados de mucha disciplina pueden superar la reticencia a iniciar\nnuevas tareas y mantenerse en ellas a pesar de las distracciones. Las personas que carecen\nde disciplina, en cambio, posponen constantemente las cosas y tienen dificultades para\ncontinuarlas. Es frecuente que no logren completarlas, incluso aquellas que realmente\ntienen ganas de terminar.`\n }, {\n facet: 6,\n title: 'Prudencia',\n text: `La prudencia describe la tendencia a considerar distintas opciones antes de actuar.\nQuienes sacan una alta puntuación en prudencia suelen tomarse su tiempo para tomar una decisión.\nLos que tienen pocos puntos en este aspecto tienden a decir o hacer lo primero que les viene a la\ncabeza, sin replantearse posibles alternativas o las posibles consecuencias de cada una.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Apertura a experiencias',\n shortDescription: 'La apertura a experiencias describe el estilo cognitivo de una persona y permite distinguir entre la gente imaginativa y creativa de personas más sensatas y convencionales.',\n description: `Las personas de mente abierta son personas con una gran curiosidad\nintelectual, que aprecian al arte y son sensibles a la belleza. Suelen ser mucho más\nconscientes de sus sentimientos que personas más cerradas, y tienen una forma peculiar\nde pensar y actuar. Estas personas más intelectuales tienen una alta puntuación en\ncuanto a apertura a experienca, una categoría que también puede recibir el nombre de\ncultura o intelecto.\n \nA pesar de eso, el intelecto es, probablemente, el aspecto más relevante dentro de la\napertura a experiencias. La puntuación obtenida en esta categoría depende ligeramente\nde los años de educación de la persona y de su rendimiento en pruebas de integencia.\n \nOtra característica de un estilo cognitivo abierto es la facilidad de pensar en abstracto\nen lugar de centrarse en experiencias concretas. Dependiendo de la habilidad intelectual\nde cada uno, la cognición de la persona puede tomar forma de símbolos matemáticos, lógicos,\npensamiento geometríco, artístico o un uso metafórico en el lenguake, así como las artes\nescénicas o la composición de música, entre muchas otras formas visuales.\n \nLas personas que obtengan baja puntuación en esta categoría suelen tener una visión más\nlimitada del mundo y tienen mucho más en común. Prefieren las cosas simples, directas y\nevidentes en lugar de lo sutíl, ambiguo y complejo. Pueden poner en duda las ciencias y\nel arte, calificándolas como difíciles de comprender o sin uso práctico. La gente más\ncerrada prefiere la familiaridad de lo conocido frente a la innovación; son conservadores\ny resistentes al cambio.\n \nLos psicólogos consideran que ser abierto es un signo de más madurez y es más sano, y ellos\nmismos son, generalmente, gente abierta a nuevas experiencias. No obstante, ambas formas de\npensar pueden resultar útiles en distintos contextos. El intelecto de una persona abierta\npuede ser muy positivo para un profesor, pero un estudio ha demostrado que unestilo más\ncerrado funciona mejor para lograr un buen rendimiento como policía, comercial y otros muchos\ntrabajos de prestación de servicios.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `No estás muy abierto a experiencias, lo que implica que ves el mundo en términos\nmás simples y convencionales. Se te puede describir como una persona práctica, sensata y\nconservadora.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Tienes una puntuación media en apertura a experiencias. Esto indica que, aunque te\ngusta seguir la tradición, también estás dispuesto a provar cosas nuevas. No tienes una forma de\npensar muy simple ni tampoco demasiado compleja. Otros te perciben como una persona educada, pero\nno un intelectual.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Tu puntuación en apertura a experiencias es alta, lo que indica que disfrutas con el\ncambio, variedad y cualquier novedad. Eres curioso, imaginativo y creativo.`\n }],\n facets: [{\n facet: 1,\n title: 'Imaginación',\n text: `Este mundo es demasiado simple y ordinario para las personas más imaginativas.\nQuienes obtienen una alta puntuación en esta escala usan la fantasía como una forma de recrear\nun mundo más rico e interesante. Los que tienen una puntuación baja se centran más en los hechos\ny menos en fantasías.`\n }, {\n facet: 2,\n title: 'Interes artístico',\n text: `Los que obtienen una alta puntuación en este aspecto aprecian la belleza, tanto en el\narte como en la naturaleza. Es frecuente verlos involucrados en eventos artísticos y naturales. No\nnecesariamente tienen que dedicarse a las artes o tener talento en este campo, aunque en muchos casos\nlo son; esta escala mide el interés y capacidad de apreciar la belleza tanto natural como artificial,\ndespués de todo. Las personas que tengan una baja puntuación en esta categoría cuentan con muy poco\nsentido de la estética y no se interesan por el arte.`\n }, {\n facet: 3,\n title: 'Sensibilidad',\n text: `Las personas con un alto nivel de sensibilidad son muy conscientes de sus propios\nsentimientos. Los que tienen baja puntuación en esta escala no tienen tan claros sus sentimientos\ny tienen a no expresar sus emociones abiertamente.`\n }, {\n facet: 4,\n title: 'Ansias de aventura',\n text: `Las personas más aventureras buscan constantemente probar nuevas actividades, viajar\na otros países y experimentar cosas distintas. Les aburre la rutina y limitarse a lo conocido,\ncon lo que no dudarán en probar caminos distintos para llegar a casa sólo por cambiar. Quienes\ntienen menos puntuación en este aspecto se sienten incómodos ante los cambios y prefieren mantenerse\nen la rutina.`\n }, {\n facet: 5,\n title: 'Intelecto',\n text: `El intelecto y el interes por el arte son las dos características clave que definen\na una persona abierta a experiencias. Los que obtienen una alta puntuación en intelecto gustan\nde jugar con las ideas. Tienen la menta muy abierta a formas de pensar nuevas y poco convencionales,\ny les encanta participar en debates. Disfrutan resolviendo puzzles, acertijos y rompecabezas.\nLos que obtienen menos puntos en esta escala prefieren enfrentarse a personas o cosas concretas en\nlugar de ideas abstractas. Consideran estos ejercicios intelectuales una pérdida de tiempo.\nNo hay que confundir el intelecto con la inteligencia. La intelectualidad se refiere a una forma de\nver el mundo, no una habilidad. Aún así, es frecuente que una persona intelectual obtenga un\nrendimiento ligeramente mejor en pruebas de inteligencia que una persona que no lo es.`\n }, {\n facet: 6,\n title: 'Liberalismo',\n text: `El liberalismo psicológico hace referencia a la predisposición de\nuna persona de desafiar a la autoridad, las costumbres y los valores tradicionales.\nEn su forma más extrema, este liberalismo puede presentarse como hostilidad hacia\nlas reglas, apoyo a criminales y aprecio a la ambigüedad, caos y el desorden. Los\nque tienen una mente más conservadora prefieren la seguridad y estabilidad que les\nofrece el seguir con la tradición. Ser psicológicamente liberal o conservador no\nnecesariamente se traduce en ideales políticos, pero lo normal es que las personas\nse inclinen a partidos que se alineen más con su forma de pensar.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Convivialité',\n shortDescription: \"La convivialité évalue l'esprit d'équipe, les interactions sociales et la capacité à bien s'entendre avec les autres\",\n description: \"Les personnes conviviales se considérent comme amicales, généreuses, serviables et sont plus enclines aux compromis, ils ont également une vision optimiste du genre humain. Ils croient en l'honnêteté, la décence et la confiance envers les autres. Les moins conviviaux placent leurs intérêts au-dessus de ceux d'autrui. Ils se sentent moins concernés par le bien-être des autres et donc ne les aident pas. Ils sont souvent sceptiques sur les motivations des autres, voire suspicieux, froids et peu coopératifs. Etre convivial est évidemment un avantage, pour atteindre et maintenir une popularité. Les individus conviviaux sont plus appréciés. D'un autre coté, c'est un désavantage dans des situations nécessitant une certaine objectivité. Les individus avec un score bas font d'excellents scientifiques, critiques ou soldats.\",\n results: [{\n score: 'low',\n text: \"Votre score est bas, cela indique que vous vous sentez moins concerné par les autres que par vous même. Votre entourage dit de vous que vous êtes dur, critique et n'êtes pas enclin au compromis.\"\n }, {\n score: 'neutral',\n text: 'Votre score est dans la moyenne, cela indique que vous vous sentez concerné par les autres mais que vous avez des reticences à vous sacrifiez pour eux.'\n }, {\n score: 'high',\n text: \"Votre score haut, cela indique que vous portez un grand intérêt au autres et leur bien être. Votre entourage dit de vous que vous êtes quelqu'un d'agréable, sympathique et coopératif.\"\n }],\n facets: [{\n facet: 1,\n title: 'Confiance',\n text: \"Avec un score bas, vous partez du principe que la plupart des gens sont égocentriques, sournois et potentiellement dangereux. Avec un score dans la moyenne, vous n'avez pas d'a priori sur les gens et vous leurs faites confiance tout en étant prudent. Avec un score haut, vous partez du principe que la plupart des gens sont justes, honnêtes et ont de bonnes intentions.\"\n }, {\n facet: 2,\n title: 'Moralité',\n text: \"Avec un score bas, vous êtes partisan d'une dose de déception dans vos relations sociales. Elles sont plus complexes et prudentes qu'ouvertes et sincères. Avec un score dans la moyenne, vous êtes plutot honnête mais savez manier la ruse quand cela est nécessaire. Avec un score haut, vous ne voyez aucun intérêt aux faux-semblants ou à la manipulation lors de vos interactions avec les autres, vous préférez la franchise et la sincérité. Vos relations sociales sont simples et apaisées.\"\n }, {\n facet: 3,\n title: 'Altruisme',\n text: \"Avec un score bas, vous n'aimez pas particulièrement aider ceux qui sont dans le besoin. Vous vivez les demandes d'assistance comme un ordre et non une opportunité d'épanouissement. Avec un score dans la moyenne, vous aidez les gens dans le besoin avec bon cœur quand ils le demandent. Avec un score haut, vous apréciez aider les autres sans forcément attendre de gratification en retour. En conséquence, vous aidez volontairement ceux dans le besoin. Vous trouvez une forme d'épanouissement en accomplissant des choses pour les autres.\"\n }, {\n facet: 4,\n title: 'Coopération',\n text: \"Avec un score bas, vous préférez intimider les autres pour mener les choses où vous le souhaitez. Avec un score dans la moyenne, vous êtes coopératif tout en sachant défendre vos points de vue. Avec un score haut, vous n'aimez pas la confrontation. Vous préférez faire des compromis ou renier vos besoins pour bien vous entendre avec les autres.\"\n }, {\n facet: 5,\n title: 'Modestie',\n text: \"Avec un score bas, vous adorez la compétition et vous mesurer aux autres. Vous avez une grande confiance en vous et vos capacités. Avec un score dans la moyenne, la compétition ne vous fait pas peur, mais vous ne la recherchez pas particulièrement. Avec un score haut, vous n'appréciez pas la comparaison aux autres. Dans certains cas, vous aurez moins confiance en vous ou une tendance à vous sous-estimer. Néanmoins, vous trouvez inconvenants les gens ayant une haute estime d'eux même. Ceux se décrivant comme supérieurs vous sont désagréables et vous semblent arrogants.\"\n }, {\n facet: 6,\n title: 'Sympathie',\n text: \"Avec un score bas, vous n'êtes pas touché par les souffances des autres. Vous vous considérez comme quelqu'un d'objectif au jugement basé sur la raison plus concerné par l'impartialité que par la compassion. Avec un score dans la moyenne, vous faite preuve d'empathie tout en ne vous laissant pas submerger par elle. Avec un score haut, vous êtes tendre et empathique. Vous ressentez la douleur ou les soucis des autres et éprouvez de la compassion.\"\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extraversion',\n shortDescription: \"L'extraversion est marquée par un engagement prononcé pour le monde extérieur.\",\n description: \"Les extravertis s'épanouissent en groupe, sont énergiques et sont enclins à ressentir des émotions positives. Ils sont enthousiastes, orientés vers l'action. Ils préférent dire \\\"Oui\\\" ou \\\"C'est parti !\\\" aux opportunités excitantes. En groupe ils apprécient de discuter, s'affirmer et attirer l'attention sur eux. Les introvertis n'apprécient pas l'exubérance, l'énergie et le niveau d'activité des extravertis. Ils aspirent au calme, la discrétion et le désengagement du monde social. Ils fuient l'implication sociale qui ne doit pas être interprétée comme de la timidité ou de la dépression. Ils ont juste besoin de moins de stimulations que les extravertis et préfèrent la solitude. L'indépendance et la réserve des introvertis sont parfois interprétées à tort comme de la froideur ou de l'arrogance. En réalité, un introverti qui a un score haut en Convialité ne recherchera pas la compagnie des autres mais prendra plaisir à les rencontrer.\",\n results: [{\n score: 'low',\n text: \"Votre score bas, cela indique que vous êtes introverti, reservé et silencieux. Vous appréciez la solitude et les activités individuelles. Votre cercle d'amis est assez restreint.\"\n }, {\n score: 'neutral',\n text: \"Votre score dans la moyenne, cela indique que vous n'êtes ni une personne solitaire, ni joviale. Vous appréciez le temps passé avec les autres mais également la solitude de certains moments.\"\n }, {\n score: 'high',\n text: 'Votre score haut, cela indique que vous êtes sociable, ouvert et plein de vie. Vous préférez passer votre temps avec les autres plutôt que seul.'\n }],\n facets: [{\n facet: 1,\n title: 'Bienveillance',\n text: \"Avec un score bas, vous n'êtes pas froid ou hostile, mais vous ne recherchez pas spécialement les autres et préférez préserver une certaine distance ou réserve. Avec un score dans la moyenne, vous appréciez les autres mais savez également conserver une distance quand c'est nécessaire. Avec un score haut, vous appréciez sincèrement les autres, et exprimez ces sentiments positifs. Vous vous faites des amis rapidement et facilement.\"\n }, {\n facet: 2,\n title: 'Conformisme',\n text: \"Avec un score bas, vous vous sentez submergé par la foule ou le groupe. Vous appréciez être avec les autres, mais vous avez besoin d'intimité et de temps pour vous. Avec un score dans la moyenne, vous appréciez la compagnie des autres mais également les moments de solitude. Avec un score haut, vous trouvez la compagnie des autres plaisante et stimulante. Vous aimez l'excitation de la foule.\"\n }, {\n facet: 3,\n title: 'Assurance',\n text: \"Avec un score bas, vous ne parlez pas beaucoup et laissez les autres le soin de diriger. Avec un score dans la moyenne, vous prenez la parole ou dirigez quand c'est nécessaire sans que cela vous coûte. Avec un score haut, vous aimez dire ce que vous pensez, prendre le contrôle des choses et diriger.\"\n }, {\n facet: 4,\n title: 'Activité',\n text: \"Avec un score bas, vous suivez le mouvement paisiblement à votre rythme. Avec un score dans la moyenne, vous avez un niveau d'activité normal. Vous savez / pouvez mettre un coup d'accélérateur quand c'est nécessaire. Avec un score haut, vous avez une vie effrénée et bien remplie. Vous vous déplacez rapidement, énergiquement et vigoureusement. Vous vous impliquez dans beaucoup d'activités.\"\n }, {\n facet: 5,\n title: 'Enthousiasme',\n text: \"Avec un score bas, vous préférez le calme. Avec un score dans la moyenne, vous savez apprécier le calme mais aussi les activités en général. Avec un score haut, vous vous ennuyez facilement sans un niveau élevé de stimulation. Vous aimez les grandes activités, l'agitation, prendre des risques et ressentir le frisson.\"\n }, {\n facet: 6,\n title: 'Gaieté',\n text: \"Ce score mesure le sentiment et l'état d'esprit positif ou négatif. Avec un score bas, vous êtes moins dynamique et moins joyeux. Avec un score dans la moyenne, vous êtes quelqu'un d'optimiste sans être exubérant Avec un score haut, vous ressentez plutôt les émotions positives comme le bonheur, l'optimisme ou la joie.\"\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Névrosisme',\n shortDescription: 'Névrosisme réfère à une tendance à vivre des émotions négatives',\n description: \"Freud utilisait originellement le terme \\\"névrose\\\" pour décrire une situation mentalement bouleversante, émotionnellement blessante et une incapacité à surmonter les situations normales de la vie. Il a suggéré que chacun montre des signes de névrose, mais que nous en souffrons à différents degrés et de façons différentes. Aujourd'hui le névrosisme se référe à la gestion des situations émotionnellement négatives. Ceux ayant un score haut éprouvent principalement un sentiment spécifique négatif comme l'anxiété, la colère ou la dépression, mais probalement plusieurs de ces derniers. Les individus au score haut sont émotionnellement réactifs. Ils répondent émotionnellement aux événements qui normalement n'affecteraient pas les autres, et ils réagissent plus intensément que la normale. Ils interprètent les situations normales comme menaçantes, et minorent les frustrations comme le désespoir. Leurs réactions émotionnelles négatives ont tendance à persister exceptionnellement sur de longues périodes, ce qui signifie qu'ils se sentent mal. Ces problèmes dans le régulations des émotions peuvent être diminués par une capacité à penser clairement, à prendre des décisions et à surmonter efficacement le stress\",\n results: [{\n score: 'low',\n text: 'Votre score bas indique que vous êtes exceptionnellement calme et imperturbable. Vous ne réagissez pas intensément à vos émotions, même dans des situations stressantes.'\n }, {\n score: 'neutral',\n text: 'Votre score dans la moyenne indique que vous réagissez à vos émotions comme la plupart des gens. Les situations stressantes et frustrantes vous agacent, mais généralement vous contrôlez vos sentiments pour faire face à ces situations.'\n }, {\n score: 'high',\n text: 'Votre score haut indique que vous vous agacez facilement, même dans des situations considérées comme normales. Les autres vous considèrent comme sensible et émotionnellement réceptif.'\n }],\n facets: [{\n facet: 1,\n title: 'Anxiété',\n text: \"Avec un score bas, vous n'êtes pas facilement inquiet. Avec un score dans la moyenne, vous n'êtes pas particulièrement anxieux mais vous ressentez le stress et la pression. Avec un score haut, le mécanisme \\\"combat-fuite\\\" de votre cerveau se déclenche plus facilement ou trop souvent. Cela induit un haut niveau d'anxiété et souvent un sentiment de danger vous submerge dans certaines situations ou en permanence. Vous vous sentez tendu et nerveux.\"\n }, {\n facet: 2,\n title: 'Colère',\n text: \"Cet indice mesure la tendance à ressentir de la colère. Avec un score bas, vous ne vous enervez que très rarement Avec un score dans la moyenne, certains sujets vous agacent mais vous savez vous contrôler. Avec un score haut, vous vous sentez enragé quand les choses vont de travers. Vous exigez d'être traité avec équité et vous vous sentez aigri et amer quand vous avez l'impression d'être floué. En fonction de votre niveau de convivialité vous exprimez votre hostilité et votre mécontentement.\"\n }, {\n facet: 3,\n title: 'Dépression',\n text: \"Cet indice mesure la tendance à se sentir triste, rejeté et découragé. Avec un score bas, vous tendez à vous libérer des sentiments dépressifs. Avec un score dans la moyenne, il peut parfois vous arriver d'éprouver ces émotions mais cela ne dure pas. Avec un score haut, vous avez moins d'énergie et des difficultés à prendre des initiatives.\"\n }, {\n facet: 4,\n title: 'Conscience de soi',\n text: \"La conscience de soi est sensible à ce que les autres pensent de vous. Elle concerne les causes de rejet et de ridicule et entraîne un sentiment d'inconfort et de la timidité. Avec un score bas, vous ne souffrez pas du regard ou du jugement des autres. Vous n'êtes pas nerveux dans vos interactions sociales. Avec un score dans la moyenne,rares sont les situations qui vous mettent mal à l'aise. Avec un score haut, vous vous sentez souvent embarassé et honteux. Vous avez peur que les autres vous critiquent ou se moquent de vous de façon exagérée et irréaliste. vous avez peur que votre maladresse et votre inconfort vous empêche d'évoluer.\"\n }, {\n facet: 5,\n title: 'Immodération',\n text: \"Avec un score bas, vous n'avez pas d'envie irrésistible et n'êtes pas tenté par les excès. Avec un score dans la moyenne, vous n'êtes pas particulièrement addict mais vous appréciez un petit excès de temps à autre. Avec un score haut, vous ressentez de fortes envies ou urgences que vous avez du mal à contrôler. Vous vous tournez plus facilement vers les récompenses ou plaisirs immédiats plutôt qu'à long terme.\"\n }, {\n facet: 6,\n title: 'Vulnérabilité',\n text: \"Avec un score bas, vous vous sentez posé, confiant et clairvoyant sous l'effet du stress. Avec un score dans la moyenne, vous vous sentez habituellement capable de faire face aux situations. Avec un score haut vous pouvez vous sentir paniqué, confus et impuissant quand vous êtes soumis au stress ou à la pression.\"\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Conscience',\n shortDescription: 'La conscience concerne la façon dont on controle, régule, ou dirige nos impulsions.',\n description: \"Les impulsions sont par définition mauvaises. Occasionnellement, certaines contraintes impliquent de casser des décisions et nécessitent une action rapide, alors les impulsions sont efficaces. De plus hors du cadre du travail, lors de jeux par exemple, agir de façon spontanée et impulsive peut être amusant. Les impulsifs peuvent être vus comme divertissants ou loufoques. Néanmoins, agir sous le coup d'une impulsion peut être mauvais. Certaines impulsions sont anti-sociales. Les actes anti-sociaux non contrôlés ne blessent pas seulement des membres de la société, mais les auteurs peuvent également encourir des sanctions. Un autre souci est l'immédiateté d'un résultat pas toujours désiré ou ayant des conséquences sur le long-terme. Par exemple impliquant un licenciement, hurler et insulter sur un collègue peut causer la destruction d'une importante relation de travail ou encore l'utilisation de drogue induit un plaisir immédiat mais une détérioration de l'état de santé sur le long terme. Un comportement impulsif, non destructif, peut fortement réduire l'efficacité. Agir de façon impulsive interdit les actions alternatives, qui auraient pu être envisagées. L'impulsivité peut également distraire les participants d'un projet nécessitant une organisation séquentielle. La réussite d'une personne impulsive est donc faible, éparpillée et inconsistante. Une des caractéristiques de l'intelligence, ce qui potentiellement différencie l'être humain des anciennes formes de vie, est la capacité à penser aux conséquences avant d'agir sur une impulsion. Une activité intelligente implique la prise en compte de but à long terme, l'organisation et la planification des différents chemins pour arriver à ces buts pour désamorcer les impulsions à court terme. L'idée que l'intelligence implique le contrôle de ses impulsions est représentée par l'indice de prudence, un synonyme du domaine de la Conscience. Les individus ayant un score haut passent auprès des autres pour être intelligents et fiables. Les bénéfices sont indéniables. Ils évitent les soucis et réussissent à travers leur détermination et leur planification. Un des côtés négatifs, est qu'ils peuvent être compulsifs, perfectionnistes ou addictes au travail. A l'extrême ils peuvent passer pour étouffants ou ennuyeux. Les individus présentant un score bas peuvent être critiqués pour leur faillibilité, leur manque d'ambition et leurs échecs à rester dans les clous, mais ils expérimenteront le plaisir du court-terme et ne seront jamais perçus comme étouffants.\",\n results: [{\n score: 'low',\n text: 'Votre score bas indique que vous aimez vivre le moment présent et faire ce qui vous rend heureux sur le moment. Votre travail tend à être négligé et désorganisé.'\n }, {\n score: 'neutral',\n text: 'Votre score dans la moyenne indique que vous êtes plutôt fiable, organisé et que vous savez vous contrôler.'\n }, {\n score: 'high',\n text: 'Votre score haut indique que vous vous fixez des buts précis et les atteignez avec détermination. Les autres vous voient comme un travailleur acharné.'\n }],\n facets: [{\n facet: 1,\n title: 'Auto-efficacité',\n text: \"L'auto-efficacité décrit votre confiance en votre capacité à accomplir les choses. Avec un score bas, vous ne vous sentez pas efficace et ressentez un sentiment de perte de contrôle dans ce que vous entreprenez. Avec un score dans la moyenne, vous connaissez vos limites et arrivez à estimer vos capacités à accomplir une tâche assez justement. Avec un score haut, vous pensez avoir les capacités de contrôle ou de gestion nécessaires pour accomplir avec succès n'importe quoi.\"\n }, {\n facet: 2,\n title: 'Organisation',\n text: 'Avec un score bas, vous avez tendance à vous désorganiser et vous éparpiller. Avec un score dans la moyenne, vous êtes organisé sans être trop pointilleux. Avec un score haut, vous êtes bien organisé. Vous aimez vos routines et planifier les choses. Vous faites des listes et des plans.'\n }, {\n facet: 3,\n title: 'Respect',\n text: \"Le respect représente votre sentiment de devoir et d'obligation. Avec un score bas, vous trouvez les contrats, règles et règlementations trop contraignantes. Vous êtes vu comme quelqu'un de peu fiable ou irresponsable. Avec un score dans la moyenne, les règles et contraintes ne vous dérangent pas. Avec un score haut, vous avez un grand sens moral et obligataire.\"\n }, {\n facet: 4,\n title: 'Persévérance',\n text: \"Avec un score bas, vous vous contentez de faire le minimum. Les autres vous voient comme un paresseux. Avec un score dans la moyenne, vous savez être ambitieux quand il le faut. Avec un score haut, vous faites tout votre possible pour atteindre l'excellence. Vous continuez pour être reconnu pour avoir atteint de nobles objectifs. Vous donnez un grand sens à votre vie, mais un score extrême sera également trop déterminé voire obsédé par son but.\"\n }, {\n facet: 5,\n title: 'Auto-discipline',\n text: \"L'auto-discipline, aussi appelée motivation, est la capacité à se contraindre dans une tâche difficile ou déplaisante jusqu'à son accomplissement. Avec un score bas, vous procrastinez et montrez un faible engagement, le plus souvent vous échouez à finir ce que vous commencez alors que vous souhaitiez vraiment terminer. Avec un score dans la moyenne, vous savez vous astreindre à une tâche, mais pouvez vous laissez distraire. Avec un score haut, vous êtes capable de vaincre vos réticences et de ne pas vous laisser distraire.\"\n }, {\n facet: 6,\n title: 'Prudence',\n text: \"La prudence décrit les réflexions que vous pouvez mener en amont d'une action. Avec un score bas, vous passez directement à l'action (ou dites ce que vous pensez) sans réfléchir aux conséquences. Avec un score dans la moyenne, vous réfléchissez avant de passer à l'action, mais dans un temps raisonnable. Il vous arrive également de faire certaines choses sans réfléchir. Avec un score haut, la prise de décision et le passage à l'action vous sont chronophages.\"\n }]\n};","module.exports = {\n domain: 'O',\n title: \"Ouverture d'esprit\",\n shortDescription: \"L'ouverture d'esprit représente les capacités d'imagination, de créativité et de curiosité de la personnalité.\",\n description: \"Les personnes ouvertes d'esprit sont intellectuellement curieuses, apprécient l'art et sont sensibles à la beauté. Ils tendent à être perçus comme des gens proches et en phase avec leurs émotions. Ils agissent de façon non conventionnelle. Les intellectuels ont typiquement un score haut en ouverture d'esprit, en conséquence, ce facteur est aussi appelé Culture ou Intellect. Néanmoins, l'intellect est probalement l'aspect le plus important de l'ouverture d'esprit. Ce score n'est que peu corrélé aux années d'expérience ou au test d'intelligence standard. Une autre caractéristique de l'ouverture cognitive est la facilité d'abstration des concepts plutôt que la limitation aux faits. Ramené à un individu, cette capacité peut se traduire par des formes de pensées orientées vers les mathématiques, la logique, la géometrie, l'art, les métaphores verbales, la musique ou bien d'autres formes d'arts. Les individus présentant un score bas tendent à avoir des centres d'intérêts restreints. Ils prefèreront des réflexions simples et claires plutôt que complexes, ambigües ou subtiles. Ils voient les réflexions artistiques et scientifiques comme obscures et complexes à mettre en œuvre. Ils préféreront la routine à la nouveauté. Ils sont conservateurs et résistants aux changements. L'ouverture d'esprit est souvent présentée comme étant une preuve de maturité et plus saine pour l'esprit. Cependant ces systèmes de pensée présentent des avantages et des inconvénients en fonction de l'environnement de l'individu. Par exemple, un score haut aidera les professeurs, à l'inverse un score bas aidera les policiers ou les commerciaux.\",\n results: [{\n score: 'low',\n text: \"Votre score bas indique que vous aimez réfléchir en termes simples. Votre entourage vous décrit comme quelqu'un de conservateur, pratique et terre à terre\"\n }, {\n score: 'neutral',\n text: \"Votre score dans la moyenne indique que vous aimez les traditions mais également que vous n'êtes pas contre les nouvelles choses. Votre mode de pensée est plus simple que complexe. Votre entourage vous voit comme quelqu'un de bien éduqué mais pas non plus un intellectuel.\"\n }, {\n score: 'high',\n text: 'Votre score haut indique que vous aimez tenter de nouvelles expériences, varier les plaisirs et le changement en règle générale. Vous êtes curieux, imaginatif et créatif.'\n }],\n facets: [{\n facet: 1,\n title: 'Imagination',\n text: \"Avec un score bas, vous êtes plus terre à terre et vous vous intéressez aux faits, au concret. Avec un score dans la moyenne,vous pouvez faire preuve d'imagination tout en étant concentré sur le réel. Avec un score haut, vous trouvez le monde réel trop simple et ordinaire. Vous utilisez la fantaisie pour rendre votre monde plus intéressant.\"\n }, {\n facet: 2,\n title: 'Sens Artistique',\n text: \"Avec un score bas, vous êtes assez peu sensible ou ne montrez que peu d'intérêt pour les arts en général. Avec un score dans la moyenne, pas insensible à l'art, vous n'êtes pas pour autant facilement touché par celui-ci. Avec un score haut, vous aimez la beauté aussi bien formelle que fonctionnelle. Vous êtes facilement absorbé par les manifestions ou évenements. Vous n'êtes pas necessairement artiste vous même, mais vous savez en apprécier les attraits.\"\n }, {\n facet: 3,\n title: 'Affection',\n text: \"Avec un score bas, vous êtes moins attentif à vos émotions et avez tendance à les refouler ou ne pas les exprimer ouvertement. Avec un score dans la moyenne, vous faites preuve d'introspection. Avec un score haut, vous accédez facilement à vos émotions et y êtes attentif.\"\n }, {\n facet: 4,\n title: 'Aventure',\n text: \"Avec un score bas, vous n'aimez pas le changement et préférez la routine. Avec un score dans la moyenne, vous appréciez vos habitudes mais n'êtes pas contre un peu de nouveauté. Avec un score haut, vous êtes un fervent défenseur du changement, vous aimez voyager ou découvrir de nouvelles expériences. Vous trouvez la routine ennuyeuse et cherchez de nouvelles voies juste parce qu'elles sont différentes.\"\n }, {\n facet: 5,\n title: 'Intellect',\n text: \"L'intellect et le sens artistique sont deux traits importants de l'ouverture d'esprit. L'intellect ne doit pas être confondu avec l'intelligence, c'est un type d'intelligence et non une compétence intellectuelle, bien que ceux avec un score élevé présentent également un score plus élevé aux tests standards d'intelligence. Avec un score bas, vous préférez discuter avec d'autres personnes partageant le même point de vue que vous. Vous considérez comme une perte de temps les exercices intellectuels. Avec un score dans la moyenne, vous êtes globalement ouverts aux nouvelles idées. Avec un score haut, vous aimez jouer avec les concepts, les idées inhabituelles et les débats intellectuels. Vous appréciez les devinettes, les puzzles et autres casse-têtes.\"\n }, {\n facet: 6,\n title: 'Libéralisme',\n text: \"Le libéralisme psychologique fait référence à la capacité d'acceptation des changements d'autorité, de convention ou de valeurs. Avec un score bas, vous préférez la sécurité, la stabilité et la conformité des traditions. Avec un score dans la moyenne, vous vous montrez traditionnel tout en étant ouvert d'esprit. Avec un score haut, vous préférez les comportements rebelles ou anarchiques.\"\n }]\n};","module.exports = {\n domain: 'A',\n title: 'הסכמה',\n shortDescription: 'הסכמה משקפת הבדלים בין אינדיבידואלים על מנת ליצר הרמוניה חברתית. אינדבידואלים שמסכימים מסתדרים אחד עם השני.',\n description: `לכן הם מתחשבים,\nנדיבים, עוזרים ומוכנים להתפשר על האינטרסים שלהם\n'. אנשים בעלי הסכמה יש השקפה אופטימית על טבע האדם הם מאמינים שאנשים הם בעצם כנים, הגונים, ו\nאמינים. \nאנשים שלא מסכימים ושמים את האינטרס העצמי מעל אנשים\nאחרים. הם בדרך כלל לא מודאגים עם הרווחה של אחרים, ולכן הם לא צפויים לתת את עצמם עבור אנשים אחרים.\nלפעמים הספקנות שלהם לגבי המניעים של אחרים גורמת להם להיות\nחשודים, לא ידידותים וגורם להם לא משתף פעולה.\n \nהסכמה היא ללא ספק יתרון על מנת להשיג ולשמור\nפּוֹפּוּלָרִיוּת. אנשים שמסכימים עם דעותיהם הם אהובים יותר\n. מצד שני, הסכמה אינה שימושית במצבים\nהדורשות החלטות אובייקטיביות קשות או מוחלטות.\nאנשים שלא מסכימים יכולים לעשות מדענים מצוינים, מבקרים או חיילים.`,\n results: [{\n score: 'low',\n text: 'הציון שלך ביכולה ההסכמה הוא נמוך, יש לך פחות דאגה לאחר מאשר לעצמך. אנשים רואים אותך קשוח ,ביקורתי וחסר פשרות'\n }, {\n score: 'neutral',\n text: 'רמת ההסכה שלך היא ממוצעת יש לך דאגה לצרכים של אחרים, אבל באופן כללי לא תקריב את עצמך בשבילם.'\n }, {\n score: 'high',\n text: 'רמה ההסכה שלך היא גבוה יש לך דאגה עניין רב בצרכים של אנשים אחרים. אני סימפטי וקואפרטיבי'\n }],\n facets: [{\n facet: 1,\n title: 'אמון',\n text: `A person with high trust assumes that most people\nare fair, honest, and have good intentions. Persons low in trust\nsee others as selfish, devious, and potentially dangerous.`\n }, {\n facet: 2,\n title: 'מוסריות',\n text: `ציון גבוה בסולם זה לא רואים צורך\nהעמדת פנים או מניפולציה בעת התמודדות עם אחרים ולכן הם\nכנה, כנה, כנה. ציון נמוך מאמינים כי מסוים\nכמות ההונאה ביחסים חברתיים היא הכרחית. אֲנָשִׁים\nלמצוא את זה יחסית קל להתייחס ישר\nגבוהה- ציון בקנה מידה זה. הם בדרך כלל מוצאים את זה יותר קשה\nכדי להתייחס לבלתי-מתפשרים הנמוכה ביותר בסולם זה. זה\nצריך להבהיר כי נמוך ציון הם נגד עקרונות\nאו לא מוסרי; הם פשוט נשמרים יותר ופחות מוכנים בגלוי\nלחשוף את כל האמת.`\n }, {\n facet: 3,\n title: 'אלטרואיזם',\n text: `אנשים אלטרואיסטים מוצאים עזרה לאנשים אחרים\nבאמת מתגמלת. כתוצאה מכך, הם מוכנים בדרך כלל\nלסייע לנזקקים. אנשים אלטרואיסטים מוצאים את זה עושה\nדברים עבור אחרים היא צורה של הגשמה עצמית ולא\nהקרבה עצמית. סקוררים נמוכים בסולם הזה לא אוהבים במיוחד\nסיוע לנזקקים. בקשות לעזרה מרגישות כמו הטלה\nולא הזדמנות להגשמה עצמית.`\n }, {\n facet: 4,\n title: 'שיתוף פעולה',\n text: `אנשים אשר ניקוד גבוה בסולם זה\nלא אוהבים עימותים. הם מוכנים לחלוטין להתפשר או\nלהתכחש לצרכיהם כדי להסתדר עם אחרים. הָהֵן\nאשר ניקוד נמוך בסולם זה נוטים יותר להפחיד אחרים\nלעשות את דרכם.`\n }, {\n facet: 5,\n title: 'צנוע',\n text: `ניקוד גבוה בסולם זה לא אוהב לתבוע\nכי הם טובים יותר מאשר אנשים אחרים. במקרים מסוימים, יחס זה\nעשויה לנבוע מבטחון עצמי נמוך או הערכה עצמית. בְּכָל זֹאת,\nכמה אנשים עם הערכה עצמית גבוהה למצוא חוסר צניעות. הָהֵן\nשמוכנים לתאר את עצמם כמיטב יכולתם\nייראה בעיני אנשים אחרים.`\n }, {\n facet: 6,\n title: 'סימפטיות',\n text: `אנשים אשר ניקוד גבוה בסולם זה הם\nאדיב ורחום. הם מרגישים את הכאב של אחרים\nבעקיפין והם מועברים בקלות לרחמים.ציון נמוך הם לא\nמושפע מאוד מסבל אנושי. הם גאים על עצמם\nקבלת החלטות אובייקטיביות המבוססות על התבונה. הם מודאגים יותר\nעם האמת וצדק ללא משוא פנים מאשר ברחמים.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'חוצפה',\n shortDescription: 'החריגה מתבטאת באינטראקציה בולטת עם העולם החיצוני.',\n description: `חוצפה נהנית להיות עם אנשים, מלאים באנרגיה, ו\nלעתים קרובות לחוות רגשות חיוביים. הם נוטים להיות נלהבים,\nאקטיביים, אנשים שעשויים לומר \"כן!\" או \"בואו\nללכת! \"להזדמנויות להתרגשות: בקבוצות הם אוהבים לדבר,\nלהתווכח, למשוך תשומת לב לעצמם.\n \nמופנמים חסרים את התרוממות רוח, אנרגיה, ופעילות הרמות\n. הם נוטים להיות שקטים, נמוכים, מכוונים, ו\nמנותקים מן העולם החברתי. חוסר המעורבות החברתית שלהם\nלא צריך להתפרש כמו ביישנות או דיכאון; ה\nמופנם פשוט צריך פחות גירוי מאשר אקסטרוורט ומעדיף\nלהיות לבד. עצמאות ושמירה של מופנם הוא\nלפעמים טועה כמו חוסר ידידות או יהירות. במציאות, א\nמופנם מי ציונים גבוהים על הממד הנועם לא\nלחפש אחרים, אבל יהיה די נעים כאשר התקרב.`,\n results: [{\n score: 'low',\n text: `הציון שלך על אקסטרסיה הוא נמוך, מה שמעיד על כך\nמופנם, שמור ושקט. אתה נהנה בדידות בודד\nפעילויות. החבר שלך נוטה להיות מוגבל למספר חברים קרובים.`\n }, {\n score: 'neutral',\n text: `הניקוד שלך על ההחצנה הוא ממוצע, המציין שאתה\nלא מתבודד מאופק וגם לא פטפטן עליז. אתה נהנה עם הזמן\nאחרים, אלא גם לבד.`\n }, {\n score: 'high',\n text: `הניקוד שלך על ההחצנה הוא גבוה, המציין שאתה\nחברותי, יוצא, אנרגטי, תוסס. אתה מעדיף להיות בסביבה\nאנשים רוב הזמן.`\n }],\n facets: [{\n facet: 1,\n title: 'חַברוּתִיוּת',\n text: `אנשים ידידותיים באמת כמו אנשים אחרים\nולהפגין בגלוי רגשות חיוביים כלפי אחרים. הם מכינים\nחברים במהירות וקל להם ליצור קרוב, אינטימי\nיחסים. סקוררים נמוכים על ידידות הם לא בהכרח קר\nועוינות, אבל הם לא להושיט יד לאחרים נתפסים\nמרוחק ומרוחק.`\n }, {\n facet: 2,\n title: 'גמישות',\n text: `אנשים גמישים מוצאים את החברה של\nאחרים מגרים ומעניקים נעימה. הם נהנים\nההתרגשות של ההמונים. ציון נמוך נוטים להרגיש המום, ו\nולכן פעיל להימנע, קהל גדול. הם לא בהכרח\nלא אוהב להיות עם אנשים לפעמים, אבל הצורך שלהם לפרטיות\nהזמן לעצמם הוא הרבה יותר גדול מאשר עבור אנשים ציון\nגבוה בסולם זה.`\n }, {\n facet: 3,\n title: 'Assertiveness',\n text: `High scorers Assertiveness like to speak\n out, take charge, and direct the activities of others. They tend to\n be leaders in groups. Low scorers tend not to talk much and let\n others control the activities of groups.`\n }, {\n facet: 4,\n title: 'רמת הפעילות',\n text: `אנשים פעילים להוביל המהיר, עסוק\nחיים. הם נעים במהירות, במרץ, במרץ\nהם מעורבים בפעילויות רבות. אנשים אשר ניקוד נמוך על זה\nבקנה מידה איטי יותר ויותר נינוח, רגוע קצב.`\n }, {\n facet: 5,\n title: 'חיפוש ריגושים',\n text: `ציון גבוה בסולם זה בקלות\nמשועמם ללא רמות גבוהות של גירוי. הם אוהבים אורות בהירים\nואת המהומה ואת ההמולה. הם צפויים לקחת סיכונים ולחפש\nריגושים. קלעים נמוכים הם המום רעש ומהומה והם\nשלילי כדי ריגוש המבקשים.`\n }, {\n facet: 6,\n title: 'עליזות',\n text: `סולם זה מודד מצב רוח חיובי\nרגשות, לא רגשות שליליים (שהם חלק\nתחום נוירוטיזם). אנשים אשר ציון גבוה בסולם זה בדרך כלל\nלחוות מגוון של רגשות חיוביים, כולל אושר,\nהתלהבות, אופטימיות ושמחה. ציון נמוך אינם נוטים כזה\nאנרגטית, רוחות גבוהות.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'נוירוטיזם',\n shortDescription: 'נוירוטיזם מתייחס לנטייה לחוות רגשות שליליים.',\n description: `פרויד השתמש במקור במונח נוירוזה כדי לתאר א\nמצב המסומן במצוקה נפשית, סבל נפשי ו\nחוסר היכולת להתמודד בצורה יעילה עם הדרישות הרגילות של החיים. הוא\nהציע שכולם יראו סימנים של נוירוזה, אבל זה אנחנו\nשונים במידת הסבל שלנו ואת הסימפטומים הספציפיים שלנו\nמְצוּקָה. היום נוירוטיזם מתייחס לנטייה לחוות\nרגשות שליליים. אלה אשר ניקוד גבוה על נוירוטיות עשוי\nניסיון בעיקר תחושה שלילית ספציפית כגון חרדה,\nכעס או דיכאון, אך סביר שהם יחוו כמה מהם\nרגשות. אנשים בעלי רמות גבוהות של נוירוטיות הם תגובה רגשית. הֵם\nלהגיב רגשית לאירועים שלא ישפיעו על רוב האנשים, ו\nהתגובות שלהם נוטות להיות אינטנסיביות יותר מהרגיל. הם יותר\nסביר לפרש מצבים רגילים כמאיימים, וקטנים\nהתסכולים קשים עד כדי תקווה. הרגשות השליליים שלהם\nהתגובות נוטות להתעקש על תקופות זמן ארוכות במיוחד, אשר\nכלומר, הם במצב רוח רע. בעיות אלה רגשית\nהרגולציה יכולה להפחית את יכולתו של הנוירוטי לחשוב בבהירות\nהחלטות, להתמודד בצורה יעילה עם מתח`,\n results: [{\n score: 'low',\n text: `הציון שלך על נוירוטיזם הוא נמוך, המציין כי אתה\nרגוע באופן יוצא דופן, מורכב ולא ניתן להחלפה. אתה לא מגיב\nרגשות עזים, אפילו למצבים שרוב האנשים יתארו\nמלחיץ.`\n }, {\n score: 'neutral',\n text: `הציון שלך על נוירוטיזם הוא ממוצע, המציין כי רמת שלך\nתגובתיות רגשית אופיינית לכלל האוכלוסייה.\nמצבים מלחיצים ומתסכלים מרגיזים אותך במקצת,\nאבל בדרך כלל אפשר להתגבר על הרגשות האלה ולהתמודד אתם\nבמצבים אלה.`\n }, {\n score: 'high',\n text: `הציון שלך על נוירוטיזם הוא גבוה, המציין כי אתה בקלות\nנסער, אפילו על ידי מה שרוב האנשים רואים את הדרישות הרגילות של\nחַי. אנשים חושבים שאתה רגיש ורגשי.`\n }],\n facets: [{\n facet: 1,\n title: 'חרדה',\n text: `מערכת \"להילחם או הטיסה\" של המוח של חרדה\nאנשים הוא קל מדי לעתים קרובות מדי עוסקת. לכן, אנשים אשר\nהם גבוהים חרדה לעתים קרובות מרגיש כמו משהו מסוכן עומד לקרות.\nהם עלולים לפחד ממצבים ספציפיים או להיות פשוט חוששים בדרך כלל.\nהם מרגישים מתוחים, עצבניים ועצבניים. אנשים עם חרדה נמוכה הם בדרך כלל\nרגוע וחסר פחד.`\n }, {\n facet: 2,\n title: 'כעס',\n text: `אנשים שמקבלים ציון גבוה באנגר מרגישים זועמים מתי\nדברים לא הולכים בדרכם. הם רגישים כלפי טיפול הוגן\nומרגישים טינה ומרירות כאשר הם מרגישים שמרמים אותם.\nסולם זה מודד את הנטייה להרגיש כעס; בין אם\nאדם מבטא מטרד ועוינות תלוי של הפרט\nרמה על הסכמה. ציון נמוך לא מתרגזים לעתים קרובות או בקלות.`\n }, {\n facet: 3,\n title: 'דכאונות',\n text: `סולם זה מודד את הנטייה להרגיש עצובים, מדוכאים,\nו להרתיע. ניקוד גבוה חסר אנרגיה וקשה ליזום\nפעילויות. ציון נמוך נוטים להיות חופשיים מן הרגשות האלה דיכאוניים.`\n }, {\n facet: 4,\n title: 'מודעות עצמיץ',\n text: `אנשים בעלי מודעות עצמית רגישים\nעל מה שאחרים חושבים עליהם. החשש שלהם לגבי דחייה ו\nללעג לגרום להם להרגיש ביישן ולא נוח בשפע אחרים. הֵם\nמתביישים בקלות ולעתים קרובות מתביישים. הפחדים שלהם כי אחרים\nיבקרו או יגחקו עליהם מוגזמים ולא מציאותיים, אבל\nחוסר הנוחות והאי-נוחות עלולים להפוך את הפחדים האלה להגשמה עצמית\nנְבוּאָה. לעומת זאת, קלעים נמוכים אינם סובלים מהטעות\nהרושם שכולם צופים ושופטים אותם. הם לא מרגישים\nעצבני במצבים חברתיים.`\n }, {\n facet: 5,\n title: 'אימפרציה',\n text: `אנשים חסרי תחושה חשים תשוקה עזה\nדוחק כי הם מתקשים להתנגד. הם נוטים להיות\nמכוונת לתענוגות קצרי טווח ולתגמולים ולא לטווח ארוך,\nלטווח הארוך. קלעים נמוכים לא חווים חזק, שאין לעמוד בפניו\nהתשוקה ולכן אינם מוצאים עצמם מתפתים להתרברב.`\n }, {\n facet: 6,\n title: 'פגיעות',\n text: `ציון גבוה על חוויית הפגיעות\nפאניקה, בלבול וחוסר אונים בעת לחץ או לחץ.\nמקלטים נמוכים מרגישים יותר שקולים, בטוחים וחושבים בהירה\nלחוץ.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Conscientiousness',\n shortDescription: 'Conscientiousness concerns the way in which we control, regulate, and direct our impulses.',\n description: `Impulses are not inherently bad;\noccasionally time constraints require a snap decision, and acting on\nour first impulse can be an effective response. Also, in times of\nplay rather than work, acting spontaneously and impulsively can be\nfun. Impulsive individuals can be seen by others as colorful,\nfun-to-be-with, and zany.\n \nNonetheless, acting on impulse can lead to trouble in a number of\nways. Some impulses are antisocial. Uncontrolled antisocial acts\nnot only harm other members of society, but also can result in\nretribution toward the perpetrator of such impulsive acts. Another\nproblem with impulsive acts is that they often produce immediate\nrewards but undesirable, long-term consequences. Examples include\nexcessive socializing that leads to being fired from one's job,\nhurling an insult that causes the breakup of an important\nrelationship, or using pleasure-inducing drugs that eventually\ndestroy one's health.\n \nImpulsive behavior, even when not seriously destructive, diminishes\na person's effectiveness in significant ways. Acting impulsively\ndisallows contemplating alternative courses of action, some of which\nwould have been wiser than the impulsive choice. Impulsivity also\nsidetracks people during projects that require organized sequences\nof steps or stages. Accomplishments of an impulsive person are\ntherefore small, scattered, and inconsistent.\n \nA hallmark of intelligence, what potentially separates human beings\nfrom earlier life forms, is the ability to think about future\nconsequences before acting on an impulse. Intelligent activity\ninvolves contemplation of long-range goals, organizing and planning\nroutes to these goals, and persisting toward one's goals in the face\nof short-lived impulses to the contrary. The idea that intelligence\ninvolves impulse control is nicely captured by the term prudence, an\nalternative label for the Conscientiousness domain. Prudent means\nboth wise and cautious.\n \nPersons who score high on the\nConscientiousness scale are, in fact, perceived by others as intelligent.\nThe benefits of high conscientiousness are obvious. Conscientious\nindividuals avoid trouble and achieve high levels of success through\npurposeful planning and persistence. They are also positively\nregarded by others as intelligent and reliable. On the negative\nside, they can be compulsive perfectionists and workaholics.\nFurthermore, extremely conscientious individuals might be regarded\nas stuffy and boring.\n \nUnconscientious people may be criticized for\ntheir unreliability, lack of ambition, and failure to stay within\nthe lines, but they will experience many short-lived pleasures and\nthey will never be called stuffy.`,\n results: [{\n score: 'low',\n text: `Your score on Conscientiousness is low, indicating you like to live\nfor the moment and do what feels good now. Your work tends to be\ncareless and disorganized.`\n }, {\n score: 'neutral',\n text: `Your score on Conscientiousness is average. This means you are\nreasonably reliable, organized, and self-controlled.`\n }, {\n score: 'high',\n text: `Your score on Conscientiousness is high. This means you set clear\ngoals and pursue them with determination. People regard you as\nreliable and hard-working.`\n }],\n facets: [{\n facet: 1,\n title: 'Self-Efficacy',\n text: `Self-Efficacy describes confidence in one's ability\nto accomplish things. High scorers believe they have the intelligence\n(common sense), drive, and self-control necessary for achieving success.\nLow scorers do not feel effective, and may have a sense that they are not\nin control of their lives.`\n }, {\n facet: 2,\n title: 'Orderliness',\n text: `Persons with high scores on orderliness are\nwell-organized. They like to live according to routines and schedules. They\nkeep lists and make plans. Low scorers tend to be disorganized and\nscattered.`\n }, {\n facet: 3,\n title: 'Dutifulness',\n text: `This scale reflects the strength of a person's sense\n of duty and obligation. Those who score high on this scale have a strong\n sense of moral obligation. Low scorers find contracts, rules, and\n regulations overly confining. They are likely to be seen as unreliable or\n even irresponsible.`\n }, {\n facet: 4,\n title: 'Achievement-Striving',\n text: `Individuals who score high on this\nscale strive hard to achieve excellence. Their drive to be recognized as\nsuccessful keeps them on track toward their lofty goals. They often have\na strong sense of direction in life, but extremely high scores may\nbe too single-minded and obsessed with their work. Low scorers are content\nto get by with a minimal amount of work, and might be seen by others\nas lazy.`\n }, {\n facet: 5,\n title: 'Self-Discipline',\n text: `Self-discipline-what many people call\nwill-power-refers to the ability to persist at difficult or unpleasant\ntasks until they are completed. People who possess high self-discipline\nare able to overcome reluctance to begin tasks and stay on track despite\ndistractions. Those with low self-discipline procrastinate and show poor\nfollow-through, often failing to complete tasks-even tasks they want very\nmuch to complete.`\n }, {\n facet: 6,\n title: 'Cautiousness',\n text: `Cautiousness describes the disposition to\nthink through possibilities before acting. High scorers on the Cautiousness\nscale take their time when making decisions. Low scorers often say or do\nfirst thing that comes to mind without deliberating alternatives and the\nprobable consequences of those alternatives.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'פתוח לחוויות',\n shortDescription: 'פתיחות לחוויה מתארת מימד של סגנון קוגניטיבי שמבדיל בין אנשים דמיוניים ויצירתיים לבין אנשים רגילים.',\n description: `אנשים פתוחים הם סקרנים מבחינה אינטלקטואלית,\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 results: [{\n score: 'low',\n text: `הציון שלך על פתיחות לחוויה הוא נמוך, המציין שאתה אוהב לחשוב\nפשוט ופשוט. אחרים מתארים אותך כמו על הקרקע, מעשי,\nו שמרני.`\n }, {\n score: 'neutral',\n text: `הציון שלך על פתיחות לחוויה הוא ממוצע, המציין שאתה נהנה\nאבל הם מוכנים לנסות דברים חדשים. החשיבה שלך היא לא\nפשוט ולא מורכב. לאחרים אתה נראה אדם משכיל\nאבל לא אינטלקטואל.`\n }, {\n score: 'high',\n text: `הציון שלך על פתיחות לחוויה הוא גבוה, המציין שאתה נהנה חידוש,\nמגוון, שינוי. אתה סקרן, דמיון ויצירתי.`\n }],\n facets: [{\n facet: 1,\n title: 'דמיון',\n text: `לאנשים אמיתיים, העולם האמיתי הוא\nלעתים קרובות מדי רגיל רגיל. ניקוד גבוה בקנה מידה זה להשתמש פנטזיה כמו\nדרך ליצירת עולם עשיר, מעניין יותר. ניקוד נמוך הם על זה\nבקנה מידה יותר מכוונת לעובדות מאשר פנטזיה.`\n }, {\n facet: 2,\n title: 'עניין אומנותי',\n text: `ניקוד גבוה על היופי הזה יופי אהבה, הן ב\nהאמנות והטבע. הם נעשים בקלות וקלטים באמנות\nואירועים טבעיים. הם לא בהכרח מאומנים בצורה אומנותית ולא\nמוכשר, אם כי רבים יהיו. המאפיינים המגדירים של סולם זה הם\nעניין, הערכה של הטבע\nיופי מלאכותי. לניקויים נמוכים חסרים רגישות ועניין אסתטיים\nהאומנויות.`\n }, {\n facet: 3,\n title: 'רגשיות',\n text: `לאנשים בעלי רמת רגש גבוהה יש גישה טובה\nאל המודעות והרגשות שלהם. ציון נמוך פחות מודעים\nהרגשות שלהם נוטים לא להביע את רגשותיהם בגלוי.`\n }, {\n facet: 4,\n title: 'הרפתקנות',\n text: `אנשים בעלי ניקוד גבוה על הרפתקנות הם להוטים\nלנסות פעילויות חדשות, לנסוע לארצות זרות, ניסיון שונה\nדברים. הם מוצאים היכרות משעמם שגרתית, ויקח חדש\nהמסלול הביתה רק בגלל זה שונה. נמוך scorers נוטים להרגיש\nלא נוח עם שינוי ומעדיפים שגרות מוכרות.`\n }, {\n facet: 5,\n title: 'אינטלקט',\n text: `אינטלקט ואינטרסים אמנותיים הם השניים ביותר\nהיבטים חשובים, מרכזיים של פתיחות להתנסות. ניקוד גבוה\nאינטלקט אוהב לשחק עם רעיונות. הם פתוחים לחדשים ולא יוצאי דופן\nרעיונות ורוצים לדון בסוגיות אינטלקטואליות. הם נהנים חידות, פאזלים,\nואת טייסס המוח. ציון נמוך על אינטלקט מעדיפים להתמודד עם אחד\nאנשים או דברים במקום רעיונות. הם מתייחסים לתרגילים אינטלקטואליים כאל\nבזבוז זמן. אינטלקט לא צריך להיות שווה עם אינטליגנציה.\nהאינטלקט הוא סגנון אינטלקטואלי, לא יכולת אינטלקטואלית, אם כי\nציון גבוה על ניקוד אינטלקט מעט גבוה יותר מאשר אינטלקט נמוך\nאנשים על בדיקות מודיעיניות סטנדרטיות.`\n }, {\n facet: 6,\n title: 'ליברליזם',\n text: `הליברליזם הפסיכולוגי מתייחס לנכונות\nאתגר סמכות, מוסכמה וערכים מסורתיים. הכי הרבה שלה\nקיצונית, הליברליזם הפסיכולוגי יכול אפילו לייצג באופן גלוי\nעוינות לכללים, אהדה לשוברים חוק, ואהבת עמימות,\nכאוס והפרעה. השמרנים הפסיכולוגיים מעדיפים את הביטחון\nיציבות הנובעת מהתאמה למסורת. ליברליזם פסיכולוגי\nהשמרנות אינה זהה לזיקה הפוליטית, אבל בהחלט\nאנשים משופעים כלפי מפלגות מסוימות.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Samvinnuþýði',\n shortDescription: 'Þátturinn Samvinnuþýði er skilgreindur út frá samskiptum við aðra og endurspeglar mun einstaklinga þegar kemur að þörfinni fyrir því að vera í sátt og samlyndi við annað fólk og hvort einstaklingarnir sýna öðrum samkennd og kurteisi í samskiptum.',\n description: `Einstaklingar sem skora hátt á þessum þætti meta þess mikils að semja vel við aðra og eru yfirleitt taldir vera umhyggjusamir, kurteisir, vinalegir, gjafmildir, hjálpsamir og gjarnir á að setja þarfir annarra ofar eigin þörfum. Samvinnuþýðir einstaklingar líta yfirleitt svo á að aðrir einstaklingar séu góðhjartaðir og telja sem svo að það sé hægt að treysta á aðra og að fólk sé almennt heiðarlegt og finni fyrir samkennd með öðrum. Þegar kemur að því að vinna með öðru fólki þá eiga einstaklingar sem skora hátt á þættinum yfirleitt mjög auðvelt með það. Það að skora hátt á samvinnuþýði getur augljóslega gagnast fólki sem vill að öðrum líki vel við sig en getur reynst þeim erfiðlega í aðstæðum sem krefjast þess að taka erfiðar ákvarðanir eða þegar kemur að því að standa fast á sínu. \nEinstaklingar sem skora lágt á þessum þætti eiga það til að setja þarfir sínar framar þörfum annarra og hafa ekki sömu þörf fyrir því að semja vel við aðra og þeir sem skora hátt á þættinum. Þeir geta átt það til að gruna aðra um græsku og reiða sig því yfirleitt ekki á velvild eða hjálpsemi annarra. Þar sem einstaklingar sem skora lágt á þessum þætti eru yfirleitt taldir vera ákveðnir þá geta þeir átt það til að vera álitnir kaldir og óviðkunnanlegir þó að það sé ekki raunin. Þeir eiga það til að keppast mjög og bera sig saman við aðra og hefur verið sýnt fram á það að stjórnendur í stórum fyrirtækjum, þar sem oft þarf að taka erfiðar ákvarðanir, skori yfirleitt lágt á þessum þætti.`,\n results: [{\n score: 'low',\n text: 'Þú skorar lágt á þættinum Samvinnuþýði, sem gefur til kynna að þú hefur frekar áhyggjur af þörfum þínum en þörfum annarra. Fólk sem skorar lágt á samvinnuþýði á yfirleitt erfitt með að fyrirgefa öðrum, er oft langrækið, setur þarfir sínar ofar þarfir annarra, er ákveðið og þrjóskt og tekur það ekki nærri sér þegar aðrir eru ekki sammála þeim.'\n }, {\n score: 'neutral',\n text: 'Þú skorar í meðallagi á þættinum Samvinnuþýði sem gefur til kynna að þú hefur stundum áhyggjur af þörfum annarra en ert yfirleitt ekki tilbúin/n að setja þarfir þeirra ofar þínum eigin.'\n }, {\n score: 'high',\n text: 'Þú skorar hátt á þættinum Samvinnuþýði sem gefur til kynna að þú hefur mikinn áhuga á og áhyggjur af þörfum annarra og reynir oft fara úr vegi þínum til að geðjast öðrum. Fólk sem skorar hátt á samvinnuþýði á yfirleitt auðvelt með að vinna með öðru fólki, fyrirgefur öðrum auðveldlega, er almennt umhugað um það hvernig öðrum líður en getur þó átt erfitt með að standa fast á sínu.'\n }],\n facets: [{\n facet: 1,\n title: 'Trust',\n text: `A person with high trust assumes that most people\nare fair, honest, and have good intentions. Persons low in trust\nsee others as selfish, devious, and potentially dangerous.`\n }, {\n facet: 2,\n title: 'Morality',\n text: `High scorers on this scale see no need for\npretense or manipulation when dealing with others and are therefore\ncandid, frank, and sincere. Low scorers believe that a certain\namount of deception in social relationships is necessary. People\nfind it relatively easy to relate to the straightforward\nhigh-scorers on this scale. They generally find it more difficult\nto relate to the unstraightforward low-scorers on this scale. It\nshould be made clear that low scorers are not unprincipled\nor immoral; they are simply more guarded and less willing to openly\nreveal the whole truth.`\n }, {\n facet: 3,\n title: 'Altruism',\n text: `Altruistic people find helping other people\ngenuinely rewarding. Consequently, they are generally willing to\nassist those who are in need. Altruistic people find that doing\nthings for others is a form of self-fulfillment rather than\nself-sacrifice. Low scorers on this scale do not particularly like\nhelping those in need. Requests for help feel like an imposition\nrather than an opportunity for self-fulfillment.`\n }, {\n facet: 4,\n title: 'Cooperation',\n text: `Individuals who score high on this scale\ndislike confrontations. They are perfectly willing to compromise or\nto deny their own needs in order to get along with others. Those\nwho score low on this scale are more likely to intimidate others to\nget their way.`\n }, {\n facet: 5,\n title: 'Modesty',\n text: `High scorers on this scale do not like to claim\nthat they are better than other people. In some cases this attitude\nmay derive from low self-confidence or self-esteem. Nonetheless,\nsome people with high self-esteem find immodesty unseemly. Those\nwhoare willing to describe themselves as superior tend to\nbe seen as disagreeably arrogant by other people.`\n }, {\n facet: 6,\n title: 'Sympathy',\n text: `People who score high on this scale are\ntenderhearted and compassionate. They feel the pain of others\nvicariously and are easily moved to pity. Low scorers are not\naffected strongly by human suffering. They pride themselves on\nmaking objective judgments based on reason. They are more concerned\nwith truth and impartial justice than with mercy.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Úthverfa',\n shortDescription: 'Úthverfa er þáttur sem endurspeglar þörf einstaklinga til þess að sækja í félagsleg samskipti við umheiminn af fyrra bragði.',\n description: `Einstaklingar sem skora hátt á þessum þætti eru yfirleitt sagðir vera úthverfir og njóta þess að vera í kringum annað fólk, gefa oft mikið af sér, þykja orkumiklir, með góða félagsfærni, eru jákvæðir og eiga auðvelt með að eignast vini. Þeir eru oftast ákveðnir og málglaðir og hafa oftast gott sjálfstraust og eru því líklegri til að búa til tækifæri til félagslegra samskipta í umhverfi sínu frekar en að bregðast passíft við tækifærunum sem blasa við þeim. Úthverfir einstaklingar þrífast yfirleitt í störfum sem krefjast mikillar samskipta við annað fólk og eru þó nokkuð næmir fyrir umbununum sem hafa félagslegt gildi eins og til dæmis bros eða hlátur, þ.e. það að fá annað fólk til að hlæja og brosa lætur þeim líða vel. Þeir hafa gaman af alls kyns félagslegum samkomum og njóta þess að fanga og veita öðrum athygli og hefur verið sýnt fram á að þessi þáttur geti haft jákvæð áhrif í sölustörfum og stjórnunarstöðum. Þar sem úthverfir einstaklingar sækja yfirleitt í félagsleg samskipti þá kunnu þeir yfirleitt betur við það að leysa verkefni í hópum frekar en alein. \nEinstaklingar sem skora lágt á þessum þætti eru sagðir vera innhverfir og sækjast síður eftir því að eiga í meiri samskiptum við aðra en nauðsyn krefur. Þó að einstaklingar sem skora lágt á þessum þætti sækja síður eftir því að vera miðpunktur athyglinnar þá eru þeir oftast langt frá því að vera feimnir. Innhverfir einstaklingar hafa einfaldlega bara minni þörf fyrir félagsleg samskipti en úthverfir einstaklingar og kjósa því oft frekar að vera einir. Þetta getur til dæmis nýst þeim mjög vel í bóknámi þar sem fá síður leiða en aðrir. Þeir geta átt það til að vera hlédrægir í stórum hópum og láta lítið fyrir sér fara og sækja því síður í störf sem krefjast mikilla samskipta. Innhverfir einstaklingar sækja því oft frekar í störf líkt og bókhaldsstörf, störf í forritunar- eða tölvunarfræðigeiranum og verkfræði- og framleiðslustörf. `,\n results: [{\n score: 'low',\n text: 'Þú skorar lágt á þættinum Úthverfa sem gefur til kynna að þú sért innhverf/ur, hæglát/ur og lætur oftast lítið fyrir þig fara. Þú sækist frekar eftir því að gera eitthvað rólegt sem krefst þess ekki að vera mikið innan um annað fólk og nýtur þess að dunda þér ein/n. Þú átt líklegast vinahóp í smærri kantinum sem samanstendur af þínum nánustu vinum.'\n }, {\n score: 'neutral',\n text: 'Þú skorar í meðallagi á þættinum Úthverfu sem bendir til þess að þú hafir enga sérstaka löngun til þess að vera ein/n eða með öðrum. Þú kýst ekki að vera ein/n mest allan tímann en nýtur þess þó þegar færi gefst.'\n }, {\n score: 'high',\n text: 'Þú skorar hátt á þættinum Úthverfa sem gefur til kynna að þú sért mjög félagslynd/ur, hefur gaman af samkvæmum, átt marga vini og ert oftast mjög kát/ur. Þú hefur þörf fyrir því að vera í kringum annað fólk og þrífst illa og leiðist mjög í aðstæðum þar sem þú ert einsamall/einsömul í langan tíma.'\n }],\n facets: [{\n facet: 1,\n title: 'Friendliness',\n text: `Friendly people genuinely like other people\nand openly demonstrate positive feelings toward others. They make\nfriends quickly and it is easy for them to form close, intimate\nrelationships. Low scorers on Friendliness are not necessarily cold\nand hostile, but they do not reach out to others and are perceived\nas distant and reserved.`\n }, {\n facet: 2,\n title: 'Gregariousness',\n text: `Gregarious people find the company of\nothers pleasantly stimulating and rewarding. They enjoy the\nexcitement of crowds. Low scorers tend to feel overwhelmed by, and\ntherefore actively avoid, large crowds. They do not necessarily\ndislike being with people sometimes, but their need for privacy and\ntime to themselves is much greater than for individuals who score\nhigh on this scale.`\n }, {\n facet: 3,\n title: 'Assertiveness',\n text: `High scorers Assertiveness like to speak\n out, take charge, and direct the activities of others. They tend to\n be leaders in groups. Low scorers tend not to talk much and let\n others control the activities of groups.`\n }, {\n facet: 4,\n title: 'Activity Level',\n text: `Active individuals lead fast-paced, busy\n lives. They move about quickly, energetically, and vigorously, and\n they are involved in many activities. People who score low on this\n scale follow a slower and more leisurely, relaxed pace.`\n }, {\n facet: 5,\n title: 'Excitement-Seeking',\n text: `High scorers on this scale are easily\nbored without high levels of stimulation. They love bright lights\nand hustle and bustle. They are likely to take risks and seek\nthrills. Low scorers are overwhelmed by noise and commotion and are\nadverse to thrill-seeking.`\n }, {\n facet: 6,\n title: 'Cheerfulness',\n text: `This scale measures positive mood and\nfeelings, not negative emotions (which are a part of the\nNeuroticism domain). Persons who score high on this scale typically\nexperience a range of positive feelings, including happiness,\nenthusiasm, optimism, and joy. Low scorers are not as prone to such\nenergetic, high spirits.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Tilfinninganæmi',\n shortDescription: 'Tilfinninganæmi er þáttur sem lýsir tilhneigingu einstaklinga til þess að skynja aðstæður sem ógnandi og lýsir því að hve miklu leyti þeir eru líklegri til að upplifa neikvæðar tilfinningar á borð við kvíða og skömm.',\n description: `Einstaklingar sem skora hátt á þessum þætti er líklegri til að forðast aðstæður sem geta átt í för með sér líkamlega hættu og eru yfirleitt næmari fyrir streitu en aðrir. Þeir sækja yfirleitt í mikla nánd, samúð og tilfinningalegan stuðning frá öðrum. Einstaklingar sem skora hátt á þættinum geta átt það til að telja að þeir hafi enga stjórn á hlutum eða aðstæðum og forðast því yfirleitt streituvaldandi aðstæður. Þar sem þeir eru líklegri til að upplifa sterkar tilfinningar en aðrir eru þeir yfirleitt taldir vera miklar tilfinningaverur sem eru næmir fyrir tilfinningum sínum og annarra. \nEinstaklingar sem skora lágt á þessum þætti eru yfirleitt í góðu tilfinningalegu jafnvægi og eru að öllu jafna mjög jafnlyndir. Þeir finna síður fyrir streitu í erfiðum og krefjandi aðstæðum og ná yfirleitt að halda ró sinni þegar reynir á.`,\n results: [{\n score: 'low',\n text: 'Þú skorar lágt á þættinum Tilfinninganæmi sem bendir til þess að þú sért mjög róleg/ur og yfirveguð/aður í streituvaldandi aðstæðum. Þú missir ekki stjórn á skapi þínu eða tilfinningum þó að annað fólk í kringum þig sé í miklu uppnámi yfir aðstæðunum.'\n }, {\n score: 'neutral',\n text: 'Þú skorar í meðallagi á þættinum Tilfinninganæmi sem gefur til kynna að þú bregst þó nokkuð eðlilega við erfiðum og streituvaldandi aðstæðum. Aðstæðurnar koma þér í þónokkuð uppnám en þú átt tiltölulega auðvelt með að ná völdum á tilfinningum þínum og takast á við þær.'\n }, {\n score: 'high',\n text: 'Þú skorar hátt á þættinum Tilfinninganæmi sem gefur til kynna að þú kemst auðveldlega í uppnám og lætur jafnvel litla hluti sem aðrir pæla ekki í pirra þig. Flestir líta á þig sem mikla tilfinningaveru sem getur upplifað sterkar tilfinningar í ýmsum aðstæðum.'\n }],\n facets: [{\n facet: 1,\n title: 'Anxiety',\n text: `The \"fight-or-flight\" system of the brain of anxious\nindividuals is too easily and too often engaged. Therefore, people who\nare high in anxiety often feel like something dangerous is about to happen.\nThey may be afraid of specific situations or be just generally fearful.\nThey feel tense, jittery, and nervous. Persons low in Anxiety are generally\ncalm and fearless.`\n }, {\n facet: 2,\n title: 'Anger',\n text: `Persons who score high in Anger feel enraged when\nthings do not go their way. They are sensitive about being treated fairly\nand feel resentful and bitter when they feel they are being cheated.\nThis scale measures the tendency to feel angry; whether or not the\nperson expresses annoyance and hostility depends on the individual's\nlevel on Agreeableness. Low scorers do not get angry often or easily.`\n }, {\n facet: 3,\n title: 'Depression',\n text: `This scale measures the tendency to feel sad, dejected,\nand discouraged. High scorers lack energy and have difficult initiating\nactivities. Low scorers tend to be free from these depressive feelings.`\n }, {\n facet: 4,\n title: 'Self-Consciousness',\n text: `Self-conscious individuals are sensitive\nabout what others think of them. Their concern about rejection and\nridicule cause them to feel shy and uncomfortable abound others. They\nare easily embarrassed and often feel ashamed. Their fears that others\nwill criticize or make fun of them are exaggerated and unrealistic, but\ntheir awkwardness and discomfort may make these fears a self-fulfilling\nprophecy. Low scorers, in contrast, do not suffer from the mistaken\nimpression that everyone is watching and judging them. They do not feel\nnervous in social situations.`\n }, {\n facet: 5,\n title: 'Immoderation',\n text: `Immoderate individuals feel strong cravings and\nurges that they have have difficulty resisting. They tend to be\noriented toward short-term pleasures and rewards rather than long-\nterm consequences. Low scorers do not experience strong, irresistible\ncravings and consequently do not find themselves tempted to overindulge.`\n }, {\n facet: 6,\n title: 'Vulnerability',\n text: `High scorers on Vulnerability experience\npanic, confusion, and helplessness when under pressure or stress.\nLow scorers feel more poised, confident, and clear-thinking when\nstressed.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Samviskusemi',\n shortDescription: 'Þátturinn Samviskusemi snýr að því hvernig einstaklingar takast á við verkefni, þrautseigju þeirra í hegðun og sjálfsstjórnun þegar kemur að eigin hvötum og gefur þó nokkuð góða vísbendingu um það hversu skipulagðir, vinnusamir og áreiðanlegir einstaklingar eru.',\n description: `Einstaklingar sem skora hátt á þættinum samviskusemi eru yfirleitt mjög skipulagðir, áreiðanlegir, agaðir og yfirleitt mjög nákvæmir í því sem þeir taka sér fyrir hendur. Þeir pæla oft vel og vandlega í hlutum áður en þeir taka ákvarðanir og vinna jafnt og þétt að markmiðum sínum. Enn fremur þrífast þeir yfirleitt betur í umhverfi þar sem eru röð og regla og sinna námi og starfi mjög vel. Einstaklingar sem skora hátt á þessum þætti eiga tiltölulega auðvelt með að stjórna eigin hvötum sem getur reynst þeim sérstaklega vel þegar kemur að því að ná markmiðum sínum. Þeir standa sig yfirleitt vel í öllu sem þeir taka þátt í og eru yfirleitt taldir vera klárir og duglegir. Þó að einstaklingar sem skora hátt á þessum þætti séu oftast ekki hrifnir af aðstæðum sem þeir hafa ekki stjórn á, þá er samviskusemi talinn vera sá þáttur sem spáir best fyrir um frammistöðu í starfi, óháð starfinu. \nEinstaklingar sem skora lágt á þættinum eru yfirleitt taldir vera kærulausir, hvatvísir og latir. Þeir geta átt það til að fresta hlutum og eru líklegri til að sætta sig við hálfkláruð verk til að losna undan erfiðum verkefnum. Þetta getur meðal annars verið vegna þess að þeir séu síður líklegir til að skipuleggja tímann sinn og eiga það til að taka hvatvísar ákvarðanir. Þeir kunna einnig síður að meta reglusemi og skipulag í umhverfi sínu og því getur þeim verið alveg sama þótt allt í nánasta umhverfi þeirra sé í óreglu.`,\n results: [{\n score: 'low',\n text: 'Þú skorar lágt á þættinum Samviskusemi sem bendir til þess að þú eigir það til að vera óskipulagður/óskipulögð og sért þónokkuð kærulaus í því sem þú aðhefst. Þú sækir líklegast frekar í það sem krefst lítils af þér og veitir þér skammtíma ánægju og lifir oftast í núinu frekar en að hafa áhyggjur af því sem seinna kemur.'\n }, {\n score: 'neutral',\n text: 'Þú skorar í meðallagi á þættinum Samviskusemi sem gefur til kynna að þú hefur sæmilega sjálfsstjórnun, hefur þó nokkuð góð tök á flestu í lífi þínu og líkar að mesta að hafa reglu á því sem gerist í lífi þínu.'\n }, {\n score: 'high',\n text: 'Þú skorar hátt á þættinum Samviskusemi sem gefur til kynna að þú átt auðvelt með að setja þér markmið og ná þeim. Flestir líta á þig sem skipulagðan og duglegan einstakling sem vill hafa röð og reglu á hlutum og hægt er að reiða sig á.'\n }],\n facets: [{\n facet: 1,\n title: 'Self-Efficacy',\n text: `Self-Efficacy describes confidence in one's ability\nto accomplish things. High scorers believe they have the intelligence\n(common sense), drive, and self-control necessary for achieving success.\nLow scorers do not feel effective, and may have a sense that they are not\nin control of their lives.`\n }, {\n facet: 2,\n title: 'Orderliness',\n text: `Persons with high scores on orderliness are\nwell-organized. They like to live according to routines and schedules. They\nkeep lists and make plans. Low scorers tend to be disorganized and\nscattered.`\n }, {\n facet: 3,\n title: 'Dutifulness',\n text: `This scale reflects the strength of a person's sense\n of duty and obligation. Those who score high on this scale have a strong\n sense of moral obligation. Low scorers find contracts, rules, and\n regulations overly confining. They are likely to be seen as unreliable or\n even irresponsible.`\n }, {\n facet: 4,\n title: 'Achievement-Striving',\n text: `Individuals who score high on this\nscale strive hard to achieve excellence. Their drive to be recognized as\nsuccessful keeps them on track toward their lofty goals. They often have\na strong sense of direction in life, but extremely high scores may\nbe too single-minded and obsessed with their work. Low scorers are content\nto get by with a minimal amount of work, and might be seen by others\nas lazy.`\n }, {\n facet: 5,\n title: 'Self-Discipline',\n text: `Self-discipline-what many people call\nwill-power-refers to the ability to persist at difficult or unpleasant\ntasks until they are completed. People who possess high self-discipline\nare able to overcome reluctance to begin tasks and stay on track despite\ndistractions. Those with low self-discipline procrastinate and show poor\nfollow-through, often failing to complete tasks-even tasks they want very\nmuch to complete.`\n }, {\n facet: 6,\n title: 'Cautiousness',\n text: `Cautiousness describes the disposition to\nthink through possibilities before acting. High scorers on the Cautiousness\nscale take their time when making decisions. Low scorers often say or do\nfirst thing that comes to mind without deliberating alternatives and the\nprobable consequences of those alternatives.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Víðsýni',\n shortDescription: 'Víðsýni lýsir meðal annars hugsunarstíl sem einkennist af mikilli sköpunargleði, forvitni og hugmyndaauðgi.',\n description: `Einstaklingar sem skora hátt á þessum þætti eru yfirleitt með mikla sköpunargleði, eru forvitnir, dást mjög að fegurð í umhverfinu og listum og sækja oft í bækur til að svala námsfýsi sinni. Víðsýnir einstaklingar eru yfirleitt ekki vanafastir, heillast auðveldlega af list, reyna oft að sjá hlutina frá mismunandi sjónarhornum og eru gjarnir á að breyta til. Þeir eru yfirleitt opnari fyrir framandi menningu og hafa oftast fjölbreytileg áhugamál og áhugasvið. Enn fremur hafa rannsóknir sýnt fram á það að einstaklingar sem skora hátt á þessum þætti eigi auðvelt með að aðlaga sér að mismunandi aðstæðum eins og til dæmis nýju starfsumhverfi. \nEinstaklingar sem skora lágt á þessum þætti eru stundum taldir vera vanafastir í hegðun sinni og eiga það til að vera taldir íhaldssamir þegar kemur að mögulegum breytingum. Þeir eru yfirleitt mjög jarðbundnir og kjósa yfirleitt frekar það sem þeim þykir kunnuglegt fram yfir það að prófa eitthvað nýtt. Einnig eiga þeir síður til að vilja lýsa tilfinningum sínum opinberlega og hafa yfirleitt síður áhuga á óvenjulegum og róttækum hugmyndum.`,\n results: [{\n score: 'low',\n text: 'Þú skorar lágt á þættinum Víðsýni sem bendir til að þess að þú sért tiltölulega vanaföst/fastur. Flestir myndu lýsa þér sem mjög jarðbundnum og praktískum einstaklingi sem eyðir ekki miklum tíma í óvenjulegar eða fjarstæðukenndar pælingar.'\n }, {\n score: 'neutral',\n text: 'Þú skorar í meðallagi á þættinum Víðsýni sem bendir til þess að þú sért tiltölulega venjuleg/ur þegar kemur að því að pæla í og prófa nýja hluti. Þú ert tiltölulega vanafastur/föst en ert samt tilbúin/n að prófa nýja hluti ef tækifærið gefst.'\n }, {\n score: 'high',\n text: 'Þú skorar hátt á þættinum Víðsýni sem gefur til kynna að þú hefur gaman af nýjum hlutum og pælingum og ert opin/n fyrir breytingum í lífi þínu. Þú ert yfirleitt mjög forvitin/n, hugmyndarík/ur og hefur frjóan hug.'\n }],\n facets: [{\n facet: 1,\n title: 'Imagination',\n text: `To imaginative individuals, the real world is\noften too plain and ordinary. High scorers on this scale use fantasy as a\nway of creating a richer, more interesting world. Low scorers are on this\nscale are more oriented to facts than fantasy.`\n }, {\n facet: 2,\n title: 'Artistic Interests',\n text: `High scorers on this scale love beauty, both in\nart and in nature. They become easily involved and absorbed in artistic\nand natural events. They are not necessarily artistically trained nor\ntalented, although many will be. The defining features of this scale are\ninterest in, and appreciation of natural and\nartificial beauty. Low scorers lack aesthetic sensitivity and interest in\nthe arts.`\n }, {\n facet: 3,\n title: 'Emotionality',\n text: `Persons high on Emotionality have good access\nto and awareness of their own feelings. Low scorers are less aware of\ntheir feelings and tend not to express their emotions openly.`\n }, {\n facet: 4,\n title: 'Adventurousness',\n text: `High scorers on adventurousness are eager to\ntry new activities, travel to foreign lands, and experience different\nthings. They find familiarity and routine boring, and will take a new\nroute home just because it is different. Low scorers tend to feel\nuncomfortable with change and prefer familiar routines.`\n }, {\n facet: 5,\n title: 'Intellect',\n text: `Intellect and artistic interests are the two most\nimportant, central aspects of openness to experience. High scorers on\nIntellect love to play with ideas. They are open-minded to new and unusual\nideas, and like to debate intellectual issues. They enjoy riddles, puzzles,\nand brain teasers. Low scorers on Intellect prefer dealing with either\npeople or things rather than ideas. They regard intellectual exercises as a\nwaste of time. Intellect should not be equated with intelligence.\nIntellect is an intellectual style, not an intellectual ability, although\nhigh scorers on Intellect score slightly higher than low-Intellect\nindividuals on standardized intelligence tests.`\n }, {\n facet: 6,\n title: 'Liberalism',\n text: `Psychological liberalism refers to a readiness to\nchallenge authority, convention, and traditional values. In its most\nextreme form, psychological liberalism can even represent outright\nhostility toward rules, sympathy for law-breakers, and love of ambiguity,\nchaos, and disorder. Psychological conservatives prefer the security and\nstability brought by conformity to tradition. Psychological liberalism\nand conservatism are not identical to political affiliation, but certainly\nincline individuals toward certain political parties.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Piacevolezza',\n shortDescription: 'Riflette le differenze individuali riguardo alla cooperazione e alla armonia sociale. Piacevoli individui trovano valore nello stare bene con gli altri.',\n description: `Loro sono inoltre considerati amichevoli, generosi, utili e disposti a compromettere i loro interessi per gli altri.\n Loro hanno una ottimista visione della natura umana. \n Credono che le persone sono principalmente oneste, decenti e meritevoli di fiducia. \n Quelli poco piacevoli mettono i loro propri interessi sopra ogni cosa \n A loro generalmente non interessa e non amano sforzarsi per gli altri.\n Qualche volta il loro scettiscimo sugli altri motiva la ragione per cui a volte sono non amichevoli e poco cooperativi. \n Essere piacevoli ovviamente è un vantaggio per ottenere e mantenere popolarità. La gente piacevole sono migliori di quelli non.\n Però la gente non piacevole sono utili quando è necessario prendere una assoluta e oggettiva decisione. Queste ultime possono essere\n eccellenti scienziati, critici o soldati.`,\n results: [{\n score: 'low',\n text: 'Il tuo punteggio è basso, indica meno preoccupazioni per gli altri. Gli altri ti vedono come un critico.'\n }, {\n score: 'neutral',\n text: 'Sei nella media, indica che ti preoccupi il giusto degli altri ma generalmente non ti sforzi molto per loro'\n }, {\n score: 'high',\n text: 'Il livello alto indica che hai molto interesse nelle altre persone. Sei simpatico e riesci a cooperare senza problemi.'\n }],\n facets: [{\n facet: 1,\n title: 'Fiducia',\n text: `Una persona con un'alta fiducia assume che la maggioranza delle persone è giusta, onesta, e ha buone intenzioni.\n Persone con una bassa fiducia vedono gli altri come egoisti e potenzialmente pericolosi.`\n }, {\n facet: 2,\n title: 'Moralità',\n text: `Alti punteggi su questa scala non hanno bisogno di mentire \n o di manipolare quando trattano con gli altri e quindi sono candidi, franchi e sinceri.\n Chi ha un punteggio basso crede che certe quantità di inganni sono necessarie nelle relazioni sociali.\n Le persone trovano che è relativamente semplice relazionarsi con chi ha punteggi alti su questa scala.\n Le persone trovano che è più difficile relazionarsi con chi ha un punteggio più basso.\n Bisogna chiarire che chi ha un basso punteggio non è senza principi o immorali, \n loro sono più guardinghi e meno disposti a mostrare a tutti come sono in realtà.`\n }, {\n facet: 3,\n title: 'Altruismo',\n text: `Le persone altruistiche trovano genuinamente gratificante aiutare gli altri. \n Conseguentemente, loro sono generalmente predisposti ad aiutare chi ne ha di bisogno. Le persone altruistiche trovano che fare cose per gli altri è una forma di autorealizzazione\n pittosto che un sacrificio. Chi ha un basso punteggio non ama particolarmente aiutare chi ha bisogno. \n Pensano che le richieste di aiuto siano come una imposizione piuttosto che una opportunità di rendersi utili.`\n }, {\n facet: 4,\n title: 'Cooperazione',\n text: `Individui che hanno un punteggio alto su questa scala non amano confrontarsi.\n Sono perfettamente disposti a compromettere o negare i loro bisogni per farsi accettare dagli altri.\n Quelli con un basso punteggio sono più intimidatori.`\n }, {\n facet: 5,\n title: 'Modestia',\n text: `Alti punteggi su questa scala non amano richiamare l'attenzione\n mostrando che sono migliori di altr. In alcuni casi l'attitudine può derivare da una bassa autostima.\n Nonostante alcune persone con un'alta autostima trovano la modestia sconveniente. \n Quelli che sono disposti a descrivere loro stessi come superiori tendono ad essere visti come arroganti dagli altri.`\n }, {\n facet: 6,\n title: 'Compassione',\n text: `Chi ha un alto punteggio è considerato tenero e compassionevole. Loro sentono il dolore degli altri e facilmente se ne fanno carico.\n Chi ha un punteggio basso non è particolarmente affetto dalla sofferenza umana.\n Loro sono orgogliosi di loro stessi nel giudicare basandosi su alcune ragioni.\n Loro sono molto più interessati alla verità e alla giustizia imparziale piuttosto che alla clemenza.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'estroversione',\n shortDescription: 'L\\'extraversione è segnato dall\\'impegno pronunciato con il mondo esterno. ',\n description: `L'extraversione è segnato dall'impegno pronunciato con il mondo esterno.\nGli estranei si divertono a stare con le persone, sono pieni di energia e\nspesso volte provano emozioni positive. Tendono ad essere entusiasti,\norientati all'azione, persone che probabilmente diranno \"Sì!\" oppure \"Andiamo!\"\nalle opportunità di eccitazione. Nei gruppi a loro piace parlare,\naffermarsi e attirare l'attenzione su se stessi.\n \nGli introversi mancano dell'esuberanza, dell'energia e dei livelli di attività di\nestroversi. Tendono ad essere silenziosi, di basso profilo, deliberati e\ndisimpegnato dal mondo sociale. La loro mancanza di coinvolgimento sociale\nnon dovrebbe essere interpretato come timidezza o depressione; il\nl'introverso ha semplicemente bisogno di meno stimoli di un extra e preferisce\nessere solo.\n L'indipendenza e la riserva dell'introverso è\na volte scambiato per scortesia o arroganza. In realtà, a\nl'introverso che ottiene un punteggio elevato nella gradevolezza non lo farà\ncercare gli altri, ma sarà abbastanza piacevole quando ci si avvicina.\n`,\n results: [{\n score: 'low',\n text: `Il tuo punteggio su Extraversion è basso, a indicare che lo sei\n introverso, riservato e tranquillo. Ti piacciono la solitudine e solitari\n attività.La tua socializzazione è limitata a pochi amici intimi.`\n }, {\n score: 'neutral',\n text: `Il tuo punteggio su Extraversion è medio, a indicare che lo sei\n né un solitario sottomesso o entrambi gioviale. Ti piace il tempo con\n altri ma anche il tempo da solo.`\n }, {\n score: 'high',\n text: `Il tuo punteggio su Extraversion è alto, a indicare che lo sei\n socievole, estroverso, energico e vivace. Tu preferisci stare in giro\n le persone per la maggior parte del tempo.`\n }],\n facets: [{\n facet: 1,\n title: 'Amichevolezza',\n text: `Le persone amichevoli amano sinceramente gli altri\n e dimostrare apertamente sentimenti positivi verso gli altri. Essi fanno\n amici in fretta ed è facile per loro formare una stretta, intima\n relazioni. I punteggi bassi di Friendliness non sono necessariamente freddi\n e ostili, ma non raggiungono gli altri e vengono percepiti\n come distante e riservato`\n }, {\n facet: 2,\n title: 'Socievolezza',\n text: `Le persone socievolezza trovano la compagnia di\n altri piacevolmente, stimolanti e gratificanti. Godono il\n eccitazione delle folle. I punteggi bassi tendono a sentirsi subissare da, e\n quindi evitate attivamente, grandi folle. Non necessariamente\n non mi piace stare con le persone a volte, ma il loro bisogno di privacy e\n il tempo per se stessi è molto più grande che per le persone che segnano\n alto su questa scala.`\n }, {\n facet: 3,\n title: 'Assertività',\n text: `A loro piace parlare fuori,\n prendere in carico e dirigere le attività degli altri. Tendono a\n essere leader in gruppi. I punteggi bassi tendono a non parlare molto e lasciano\n altri controllano le attività dei gruppi.`\n }, {\n facet: 4,\n title: 'Livello di attività',\n text: `Individui attivi condurre ritmo frenetico, occupato\n vive. Si muovono rapidamente, energicamente e vigorosamente, e\n sono coinvolti in molte attività. Le persone che ottengono un punteggio basso su questo\n la scala segue un ritmo più lento e più rilassato.`\n }, {\n facet: 5,\n title: 'Eccitazione-cerca di',\n text: `I punteggi più alti di questa scala sono facilmente\n annoiato senza alti livelli di stimolazione. Amano le luci brillanti\n e il trambusto. È probabile che corrano dei rischi e cerchino\n emozioni. I punteggi bassi sono sopraffatti dal rumore e dalla confusione e lo sono\n avverso alla ricerca del brivido.`\n }, {\n facet: 6,\n title: 'Allegria',\n text: `Questa scala misura l'umore positivo e\n sentimenti, nessuna emozione negativae (che fanno parte del\n Dominio del nevroticismo). Le persone che ottengono punteggi elevati su questa scala in genere\n sperimentare una serie di sentimenti positivi, inclusa la felicità,\n entusiasmo, ottimismo e gioia. I punteggi bassi non sono così inclini a tale\n energico, buon umore.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Nevroticismo',\n shortDescription: 'Il termine nevroticismo si riferisce alla tendente costanza di provare sentimenti negativi.',\n description: `In origine Freud era solito usare il termine nevroticismo \nper descrivere una condizione marcata da stress mentale, sofferenza \nemozionale, e l’inabilità a far fronte alle normali richieste della vita. \nEgli supponeva che chiunque mostri segni di nevroticismo, ma che questi \ndifferiscono in base al nostro grado di sofferenza e ai nostri specifici \nsintomi di angoscia. Oggi il termine nevroticismo si riferisca alla tendenza \na sperimentare sentimenti negativi. Coloro che ottengono punteggi \nalti in nevroticismo potrebbero sperimentare principalmente un sentimento negativo \ncome ansia, rabbia, o depressione, ma sono soliti provare diverse \ndi queste emozioni. Gli individui alti in nevroticismo sono \nemotivamente reattivi. Rispondono emotivamente ad eventi che non influenzerebbero \nla maggior parte delle persone e le loro reazioni tendono ad essere più intense \ndel normale. Essi tendono ad interpretare situazioni ordinarie come \nminacciose, e minori frustrazioni come difficoltà senza speranze. \nLe loro reazioni emotivamente negative rendono a persistere per lunghi ed \nanormali periodi di tempo, il che risulta in un costante malumore. Questi \nproblemi di regolazione emotiva possono diminuire l’abilità nevrotica di \npensare chiaramente, prendere decisioni e far fronte allo stress.`,\n results: [{\n score: 'low',\n text: `'Il tuo punteggio in Nevroticismo è basso, indica che sei eccezionalmente \ncalmo, composto e imperturbabile. Non reagisci con intense emozioni, anche \nin situazioni che la maggior parte delle persone describerebbe come stressanti.'`\n }, {\n score: 'neutral',\n text: `Il tuo punteggio in Nevroticismo è nella media, indica che il \ntuo livello di reattività emotiva è tipico alla popolazione generale. \nSituazioni stressanti e frustranti sono in qualche modo causa di rabbia \nper te, ma sei generalmente capace di passare sopra a questi sentimenti \ne far fronte a queste situazioni.`\n }, {\n score: 'high',\n text: `Il tuo punteggio in Nevroticismo è alto, indica che sei \nspesso arrabbiato, anche per le situazioni affrontate senza \nproblemi dalla maggior parte degli altri individui. Le persone \nti considerano sensibile ed emozionale.`\n }],\n facets: [{\n facet: 1,\n title: 'Anxiety',\n text: `Il sistema \"lotta-o-fuga\" del cervello degli individui \nansiosi è spesso impegnato. A causa di ciò, le persone la cui ansia \nè alta provano spesso un presentimento di allerta come se qualcosa \ndi pericoloso stesse per accadere.\nEssi sono spesso impauriti da specifiche situazioni o generalmente \npaurosi. Altri sentimenti presenti sono tensione e nervosismo. Le \npersone basse in Ansia sono generalmente calme e impavidi.`\n }, {\n facet: 2,\n title: 'Anger',\n text: `Le persone il cui punteggio in Rabbia è alto si arrabbiano \nspesso quando le cose non vanno nella direzione desiderata. Essi tengono \nmolto ad essere trattati correttamente e si risentono quando sentono di \nessere abbindolate. Questa scala misura la tendenza a sentirsi arrabbiati; \nche la persona esprima noia e ostilità dipende dal livello di piaceolezza \ndell'individuo.`\n }, {\n facet: 3,\n title: 'Depression',\n text: `Questa scala misura la tendenza al sentirsi tristi, sconsolati \ne scoraggiati. Alti punteggi implicano mancanza di energie e difficoltà ad \niniziare un'attività. I punteggi bassi tendono ad essere liberi da questi \nsentimenti depressivi.`\n }, {\n facet: 4,\n title: 'Self-Consciousness',\n text: `Gli individui coscienti sono sensibili ai giudizi esterni. \nLa loro preoccupazione per il rifiuto e il ridicolo li fa sentire timidi \ne a disagio abbandonando gli altri. Sono spesso imbarazzati e provano \nspesso vergogna. Le loro paure relative a critiche o prese in giro altrui \nrisultano spesso esagerate e irreali ma il loro disagio e sconforto possono \nfar avverare queste profezie auto indotte. I punteggi bassi, contrariamente, \nnon si fanno sconfortare da false impressioni di giudizio e osservazione. \nEssi non risultano nervosi in situazioni sociali. `\n }, {\n facet: 5,\n title: 'Immoderation',\n text: `Gli individui Immoderati si sentono forti bisogni e voglie \nalle quali difficilmente resistono. Essi tendono a cercare e provare piaceri \ne riconoscimenti a corto termine piuttosto che conseguenze a lungo termine. \nI punteggi bassi non provano forti e irresistibili voglie e conseguentemente \nnon si trovano tentati a lasciarsi andare.`\n }, {\n facet: 6,\n title: 'Vulnerability',\n text: `Punteggi alti in Vulnerabilità sperimentano panico, confusione \ned impotenza quando sotto pressione o stress. I punteggi bassi si sentono più \ncomposti, sicuri e riescono a pensare a mente lucida quando sotto stress.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Conscientiousness',\n shortDescription: 'Conscientiousness concerns the way in which we control, regulate, and direct our impulses.',\n description: `Impulses are not inherently bad;\noccasionally time constraints require a snap decision, and acting on\nour first impulse can be an effective response. Also, in times of\nplay rather than work, acting spontaneously and impulsively can be\nfun. Impulsive individuals can be seen by others as colorful,\nfun-to-be-with, and zany.\n \nNonetheless, acting on impulse can lead to trouble in a number of\nways. Some impulses are antisocial. Uncontrolled antisocial acts\nnot only harm other members of society, but also can result in\nretribution toward the perpetrator of such impulsive acts. Another\nproblem with impulsive acts is that they often produce immediate\nrewards but undesirable, long-term consequences. Examples include\nexcessive socializing that leads to being fired from one's job,\nhurling an insult that causes the breakup of an important\nrelationship, or using pleasure-inducing drugs that eventually\ndestroy one's health.\n \nImpulsive behavior, even when not seriously destructive, diminishes\na person's effectiveness in significant ways. Acting impulsively\ndisallows contemplating alternative courses of action, some of which\nwould have been wiser than the impulsive choice. Impulsivity also\nsidetracks people during projects that require organized sequences\nof steps or stages. Accomplishments of an impulsive person are\ntherefore small, scattered, and inconsistent.\n \nA hallmark of intelligence, what potentially separates human beings\nfrom earlier life forms, is the ability to think about future\nconsequences before acting on an impulse. Intelligent activity\ninvolves contemplation of long-range goals, organizing and planning\nroutes to these goals, and persisting toward one's goals in the face\nof short-lived impulses to the contrary. The idea that intelligence\ninvolves impulse control is nicely captured by the term prudence, an\nalternative label for the Conscientiousness domain. Prudent means\nboth wise and cautious.\n \nPersons who score high on the\nConscientiousness scale are, in fact, perceived by others as intelligent.\nThe benefits of high conscientiousness are obvious. Conscientious\nindividuals avoid trouble and achieve high levels of success through\npurposeful planning and persistence. They are also positively\nregarded by others as intelligent and reliable. On the negative\nside, they can be compulsive perfectionists and workaholics.\nFurthermore, extremely conscientious individuals might be regarded\nas stuffy and boring.\n \nUnconscientious people may be criticized for\ntheir unreliability, lack of ambition, and failure to stay within\nthe lines, but they will experience many short-lived pleasures and\nthey will never be called stuffy.`,\n results: [{\n score: 'low',\n text: `Your score on Conscientiousness is low, indicating you like to live\nfor the moment and do what feels good now. Your work tends to be\ncareless and disorganized.`\n }, {\n score: 'neutral',\n text: `Your score on Conscientiousness is average. This means you are\nreasonably reliable, organized, and self-controlled.`\n }, {\n score: 'high',\n text: `Your score on Conscientiousness is high. This means you set clear\ngoals and pursue them with determination. People regard you as\nreliable and hard-working.`\n }],\n facets: [{\n facet: 1,\n title: 'Self-Efficacy',\n text: `Self-Efficacy describes confidence in one's ability\nto accomplish things. High scorers believe they have the intelligence\n(common sense), drive, and self-control necessary for achieving success.\nLow scorers do not feel effective, and may have a sense that they are not\nin control of their lives.`\n }, {\n facet: 2,\n title: 'Orderliness',\n text: `Persons with high scores on orderliness are\nwell-organized. They like to live according to routines and schedules. They\nkeep lists and make plans. Low scorers tend to be disorganized and\nscattered.`\n }, {\n facet: 3,\n title: 'Dutifulness',\n text: `This scale reflects the strength of a person's sense\n of duty and obligation. Those who score high on this scale have a strong\n sense of moral obligation. Low scorers find contracts, rules, and\n regulations overly confining. They are likely to be seen as unreliable or\n even irresponsible.`\n }, {\n facet: 4,\n title: 'Achievement-Striving',\n text: `Individuals who score high on this\nscale strive hard to achieve excellence. Their drive to be recognized as\nsuccessful keeps them on track toward their lofty goals. They often have\na strong sense of direction in life, but extremely high scores may\nbe too single-minded and obsessed with their work. Low scorers are content\nto get by with a minimal amount of work, and might be seen by others\nas lazy.`\n }, {\n facet: 5,\n title: 'Self-Discipline',\n text: `Self-discipline-what many people call\nwill-power-refers to the ability to persist at difficult or unpleasant\ntasks until they are completed. People who possess high self-discipline\nare able to overcome reluctance to begin tasks and stay on track despite\ndistractions. Those with low self-discipline procrastinate and show poor\nfollow-through, often failing to complete tasks-even tasks they want very\nmuch to complete.`\n }, {\n facet: 6,\n title: 'Cautiousness',\n text: `Cautiousness describes the disposition to\nthink through possibilities before acting. High scorers on the Cautiousness\nscale take their time when making decisions. Low scorers often say or do\nfirst thing that comes to mind without deliberating alternatives and the\nprobable consequences of those alternatives.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Openness To Experience',\n shortDescription: 'Openness to Experience describes a dimension of cognitive style that distinguishes imaginative, creative people from down-to-earth, conventional people.',\n description: `Open people are intellectually curious,\nappreciative of art, and sensitive to beauty. They tend to be,\ncompared to closed people, more aware of their feelings. They tend to\nthink and act in individualistic and nonconforming\nways. Intellectuals typically score high on Openness to Experience;\nconsequently, this factor has also been called Culture or\nIntellect. Nonetheless, Intellect is probably best regarded as one aspect of openness\nto experience. Scores on Openness to Experience are only modestly\nrelated to years of education and scores on standard intelligent tests.\n \nAnother characteristic of the open cognitive style is a facility for thinking\nin symbols and abstractions far removed from concrete experience. Depending on\nthe individual's specific intellectual abilities, this symbolic cognition may\ntake the form of mathematical, logical, or geometric thinking, artistic and\nmetaphorical use of language, music composition or performance, or one of the\nmany visual or performing arts.\n \nPeople with low scores on openness to experience tend to have narrow, common\ninterests. They prefer the plain, straightforward, and obvious over the\ncomplex, ambiguous, and subtle. They may regard the arts and sciences with\nsuspicion, regarding these endeavors as abstruse or of no practical use.\nClosed people prefer familiarity over novelty; they are conservative and\nresistant to change.\n \nOpenness is often presented as healthier or more mature by psychologists, who\nare often themselves open to experience. However, open and closed styles of\nthinking are useful in different environments. The intellectual style of the\nopen person may serve a professor well, but research has shown that closed\nthinking is related to superior job performance in police work, sales, and\na number of service occupations.`,\n results: [{\n score: 'low',\n text: `Your score on Openness to Experience is low, indicating you like to think in\nplain and simple terms. Others describe you as down-to-earth, practical,\nand conservative.`\n }, {\n score: 'neutral',\n text: `Your score on Openness to Experience is average, indicating you enjoy\ntradition but are willing to try new things. Your thinking is neither\nsimple nor complex. To others you appear to be a well-educated person\nbut not an intellectual.`\n }, {\n score: 'high',\n text: `Your score on Openness to Experience is high, indicating you enjoy novelty,\nvariety, and change. You are curious, imaginative, and creative.`\n }],\n facets: [{\n facet: 1,\n title: 'Imagination',\n text: `To imaginative individuals, the real world is\noften too plain and ordinary. High scorers on this scale use fantasy as a\nway of creating a richer, more interesting world. Low scorers are on this\nscale are more oriented to facts than fantasy.`\n }, {\n facet: 2,\n title: 'Artistic Interests',\n text: `High scorers on this scale love beauty, both in\nart and in nature. They become easily involved and absorbed in artistic\nand natural events. They are not necessarily artistically trained nor\ntalented, although many will be. The defining features of this scale are\ninterest in, and appreciation of natural and\nartificial beauty. Low scorers lack aesthetic sensitivity and interest in\nthe arts.`\n }, {\n facet: 3,\n title: 'Emotionality',\n text: `Persons high on Emotionality have good access\nto and awareness of their own feelings. Low scorers are less aware of\ntheir feelings and tend not to express their emotions openly.`\n }, {\n facet: 4,\n title: 'Adventurousness',\n text: `High scorers on adventurousness are eager to\ntry new activities, travel to foreign lands, and experience different\nthings. They find familiarity and routine boring, and will take a new\nroute home just because it is different. Low scorers tend to feel\nuncomfortable with change and prefer familiar routines.`\n }, {\n facet: 5,\n title: 'Intellect',\n text: `Intellect and artistic interests are the two most\nimportant, central aspects of openness to experience. High scorers on\nIntellect love to play with ideas. They are open-minded to new and unusual\nideas, and like to debate intellectual issues. They enjoy riddles, puzzles,\nand brain teasers. Low scorers on Intellect prefer dealing with either\npeople or things rather than ideas. They regard intellectual exercises as a\nwaste of time. Intellect should not be equated with intelligence.\nIntellect is an intellectual style, not an intellectual ability, although\nhigh scorers on Intellect score slightly higher than low-Intellect\nindividuals on standardized intelligence tests.`\n }, {\n facet: 6,\n title: 'Liberalism',\n text: `Psychological liberalism refers to a readiness to\nchallenge authority, convention, and traditional values. In its most\nextreme form, psychological liberalism can even represent outright\nhostility toward rules, sympathy for law-breakers, and love of ambiguity,\nchaos, and disorder. Psychological conservatives prefer the security and\nstability brought by conformity to tradition. Psychological liberalism\nand conservatism are not identical to political affiliation, but certainly\nincline individuals toward certain political parties.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Aangenaamheid',\n shortDescription: 'Aangenaamheid weerspiegelt individuele verschillen in relatie tot samenwerking en sociale vaardigheden. Aangename individuen vinden waarde in het omgaan met anderen.',\n description: `Ze zijn daardoor attent, vriendelijk, gul, behulpzaam en bereid om hun eigen belang op zij te zetten voor anderen. Aangename mensen hebben oop een optimistische kijk op het leven. Ze geloven dat mensen in principe eerlijk, fatsoenlijk en betrouwbaar zijn. \nOnaangename individuen plaatsen eigenbelang voor dat van anderen. Ze zijn over het algemeen niet betrokken bij het welzijn van anderen en het is onwaarschijnlijk dat zij moeite doen voor andere mensen. Soms zorgt hun scepsis over de motieven van anderen er voor dat ze onvriendelijk en oncoöperatief over komen. Aangenaamheid is uiteraard voordelig voor het bereiken en onderhouden van populariteit. Aangename mensen worden beter aanvaard dan onaangename mensen. Aan de andere kant is deze meegaandheid niet nuttig in situaties die moeilijke of absoluut objectieve beslissingen vereisen. Onaangename mensen kunnen daarom uitstekende wetenschappers, critici of soldaten zijn.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Je score op het gebied van Aangenaamheid is laad, wat duidt op minder bezorgdheid\n met de behoeften van anderen dan met die van jezelf. Mensen zien je als hard,\n kritisch en compromisloos`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Je niveau van Aangenaamheid is gemiddeld, wat aangeeft\n dat je je bezig houdt met de behoeften van anderen, maar over het algemeen vaker voor jezelf kiest dan voor anderen.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Je hoge niveau van Aangenaamheid duidt op een sterke interesse in\n de behoeften en het welzijn van anderen. Je bent aangenaam, sympathiek en\n coöperatief.`\n }],\n facets: [{\n facet: 1,\n title: 'Vertrouwen',\n text: `Een persoon met een hoog vertrouwen gaat ervan uit dat de meeste mensen eerlijk zijn en goede bedoelingen hebben. Personen met weinig vertrouwen\n zien anderen als zelfzuchtig, sluw en potentieel gevaarlijk.`\n }, {\n facet: 2,\n title: 'Moraal',\n text: `Hoge scoorders op deze schaal zien geen noodzaak voor\n schijn of manipulatie bij het omgaan met anderen en zijn daarom\n openhartig, openhartig en oprecht. Lage scoorders geloven dat een zekere\n hoeveelheid misleiding in sociale relaties noodzakelijk is. Mensen\n vinden het relatief eenvoudig om zich te verhouden tot de rechttoe rechtaan\n hoge scoorders op deze schaal. Ze vinden het over het algemeen moeilijker\n om zich te verhouden tot de min of meer lage scorers op deze schaal. Het\n moet duidelijk worden gemaakt dat lage scoorders niet onprincipieel zijn\n of immoreel; ze zijn eenvoudigweg meer gereserveerd en minder bereid om open te zijn om zich bloot te geven.`\n }, {\n facet: 3,\n title: 'Altruïsme',\n text: `Altruïstische mensen vinden het helpen van andere mensen\n oprecht lonend. Daarom zijn ze over het algemeen bereid om\n degenen die in nood zijn te helpen. Altruïstische mensen vinden dat\n dingen voor anderen doen eerder een vorm van zelfontplooiing is dan van\n zelfopoffering. Lage scoorders op deze schaal houden niet zo van\n mensen helpen. Verzoeken om hulp voelen als een teken van zwakte\n in plaats van een kans op zelfontplooiing.`\n }, {\n facet: 4,\n title: 'Samenwerking',\n text: `Personen die hoog scoren op deze schaal\n houden niet van confrontaties. Ze zijn perfect bereid om compromissen te sluiten of\n om hun eigen behoeften te ontkennen om met anderen overweg te kunnen. Mensen\n die laag scoren op deze schaal hebben een hogere kans dat zij anderen te intimideren\n hun zin krijgen.`\n }, {\n facet: 5,\n title: 'Bescheidenheid',\n text: `Hoge scoorders op deze schaal houden er niet van om te claimen\n dat ze beter zijn dan andere mensen. In sommige gevallen kan deze houding voortkomen\n uit een laag zelfvertrouwen of zelfrespect. Niettemin,\n sommige mensen met een hoge zelfwaardering vinden bescheidenheid ongepast. Zij die bereid zijn om zichzelf te beschrijven als superieur hebben de neiging om\n door anderen als onaangenaam of arrogant worden beschouwd.\n `\n }, {\n facet: 6,\n title: 'Sympathie',\n text: `Mensen die hoog scoren op deze schaal zijn\n zachtmoedig en meelevend. Ze kunnen zich inleven in de pijn van anderen\n en zijn gemakkelijk tot medelijden bewogen. Lage scoorders zijn niet\n sterk beïnvloed door menselijk leed. Ze zijn trots op\n objectieve beoordelingen die zij maken op basis van reden. Ze zijn meer begaan\n met de waarheid en onpartijdige gerechtigheid dan met genade.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extraversie',\n shortDescription: 'Extraversie wordt gekenmerkt door een uitgesproken betrokkenheid bij de buitenwereld. ',\n description: `Extraverts vinden het fijn om met mensen samen te zijn, zijn vol energie en ervaren vaak positieve emoties. Ze zijn vaak enthousiast,\nactiegericht, en het zijn individuen die waarschijnlijk volmondig \"Ja!\" zeggen tegen een kans op een positieve ervaring. In groepen houden ze ervan om te praten,\nzichzelf te doen gelden en de aandacht op zichzelf te vestigen.\n \nIntroverten missen de uitbundigheid, energie en activiteitsniveaus van\nextraverte mensen. Ze hebben de neiging om rustig, ingehouden, afgemeten en\nniet sociaal betrokken. Hun gebrek aan sociale betrokkenheid\nmoet niet worden geïnterpreteerd als verlegenheid of depressie; de\nintrovert heeft eenvoudigweg minder stimulatie nodig dan een extravert en geeft de voorkeur aan\nalleen zijn. De onafhankelijkheid en de gereserveerdheid van de introvert wordt soms verward met onvriendelijkheid of arrogantie. In werkelijkheid zal een introvert die hoog scoorde op de dimensie Aanvaardbaarheid niet snel anderen opzoeken, maar het als prettig ervaren wanneer hij wordtzal dat niet doen\nalleen zijn. De onafhankelijkheid en de gereserveerdheid van de introvert wordt soms verward met onvriendelijkheid of arrogantie. In werkelijkheid zal een introvert die hoog scoorde op de dimensie Aanvaardbaarheid niet snel anderen opzoeken, maar het als prettig ervaren wanneer hij wordt benaderd.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: 'Je score op Extraversie is laag, wat aangeeft dat je introvert, gereserveerd en stil bent. Je geniet van eenzaamheid en eenzame activiteiten. Je sociale leven is meestal beperkt tot enkele goede vrienden.'\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Je score op Extraversie is gemiddeld, wat aangeeft dat je noch een ingetogen eenling, noch een gezellige babbelaar bent. Je geniet van de tijd met\n anderen maar ook van tijd alleen.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Je score op Extraversie is hoog, wat aangeeft dat je\n sociaal, extravert, energiek en levendig bent. Je bent het grootste deel van de tijd liever in gezelschap van mensen.`\n }],\n facets: [{\n facet: 1,\n title: 'Vriendelijkheid',\n text: `Vriendelijke mensen houden oprecht van andere mensen\n en tonen openlijk positieve gevoelens ten opzichte van anderen. Ze maken\n snel vrienden en het is gemakkelijk voor hen om hechte, intieme relaties te vormen. Lage scoorders op Vriendelijkheid zijn niet per se koud\n en vijandig, maar ze reiken geen uit naar anderen en worden als afwezig en gereserveerd beschouwd.`\n }, {\n facet: 2,\n title: 'Gezelschap',\n text: `Gezelschapsmensen vinden het aangenaam en stimulerend in het gezelschap van anderen. Ze genieten van de energie en opwinding van grote menigten. Lage scoorders voelen zich vaak overweldigd door grote menigten en mijden deze actief. Ze vinden het niet noodzakelijkerwijs\n onprettig om soms met mensen samen te zijn, maar hun behoefte aan privacy en\n tijd voor zichzelf is veel groter dan voor individuen die\n hoog op deze schaal scoren.`\n }, {\n facet: 3,\n title: 'Assertiviteit',\n text: 'Hoge scoorders op gebied van Assertiviteit zijn niet bang hun mening te geven, nemen de leiding en leiden de activiteiten van anderen. Ze hebben de neiging om leiderrol te claimen in groepen. Lage scoorders hebben de neiging niet veel te praten en anderen de activiteiten in groepen te laten controleren.'\n }, {\n facet: 4,\n title: 'Activiteiten niveau',\n text: `Actieve individuen leiden snelle, drukke levens. Ze bewegen zich snel, energiek en krachtig, en\n ze zijn betrokken bij veel activiteiten. Mensen die hier laag op scoren\n schaal volgen een langzamer en meer ontspannen tempo.`\n }, {\n facet: 5,\n title: 'Opwinding zoekend',\n text: 'Hoge scoorders op deze schaal zijn gemakkelijk verveeld zonder hoge niveaus van stimulatie. Ze houden van felle lichten en drukte. Ze nemen waarschijnlijk risico\\'s en zoeken sensatie. Lage scoorders worden overweldigd door lawaai en commotie en zijn niet geneigd tot thrill-seeking.'\n }, {\n facet: 6,\n title: 'Opgewektheid',\n text: 'Deze schaal meet positieve stemming en gevoelens, niet te verwarren met negatieve emoties (die deel uitmaken van de Neuroticism domein). Personen die hoog scoren op deze schaal ervaren doorgaans een scala aan positieve gevoelens, waaronder geluk, enthousiasme, optimisme en vreugde. Lage scoorders zijn minder vatbaar voor dergelijke energieke uitspattingen.'\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neuroticisme',\n shortDescription: 'Neuroticisme verwijst naar de neiging om negatieve gevoelens te ervaren.',\n description: `Freud gebruikte oorspronkelijk de term neurose om een te beschrijven toestand gekenmerkt door mentale nood, emotioneel leed en een onvermogen om effectief om te gaan met de normale eisen van het leven.\n Hij suggereerde dat iedereen enige tekenen van neurose vertoont, maar dat wij verschillen in onze mate van lijden en onze specifieke symptomen van nood. Tegenwoordig verwijst neuroticisme naar de neiging om negatieve gevoelens te ervaren. Degenen die hoog scoren op Neuroticisme ervaren vooral één specifiek negatief gevoel zoals angst, woede of depressie, maar zullen waarschijnlijk meerdere hiervan ervaren. Mensen met een hoog neuroticisme zijn emotioneel reactief. Ze reageren emotioneel op gebeurtenissen die de meeste mensen niet zouden beïnvloeden, en hun reacties zijn meestal intenser dan normaal. Ze zijn meer geneigd gewone situaties interpreteren als bedreigend en minder belangrijk frustraties als onoverkomelijk. Hun negatieve emoties hebben de neiging voor lange tijdspannes te duren, wat betekent dat ze vaak in een slecht humeur zijn. Deze problemen in emotionele balans kan het vermogen van een neuroticus nadelig beïnvloeden op gebieden van helder te denken, beslissingen nemen en effectief omgaan met stress.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: 'Je score op Neuroticisme is laag, wat aangeeft dat je uitzonderlijk kalm en evenwichtig bent. Je reageert niet met intense emoties, zelfs in situaties die de meeste mensen zouden beschrijven zo stressvol.'\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Je score op Neuroticisme is gemiddeld, wat aangeeft dat je niveau van emotionele reactiviteit typerend is voor de algemene bevolking.\n Stressvolle en frustrerende situaties zijn enigszins verontrustend voor jou, maar je bent over het algemeen in staat om deze gevoelens te overwinnen en met deze situaties om te gaan.`\n }, {\n score: 'high',\n // do not translate this line\n text: 'Je score op Neuroticisme is hoog, wat aangeeft dat je gemakkelijk overstuur bent, zelfs door wat de meeste mensen beschouwen als de normale gang van zaken. Mensen beschouwen je als gevoelig en emotioneel.'\n }],\n facets: [{\n facet: 1,\n title: 'Angst',\n text: 'Het \"vecht-of-vlucht\"-instinct van de hersenen van angstige individuen zijn te gemakkelijk en te vaak bezig. Daarom mensen met een hoge angst score vaak het gevoel dat er iets gevaarlijks gaat gebeuren. Ze kunnen bang zijn voor specifieke situaties of gewoon bang zijn. Ze voelen zich gespannen, zenuwachtig en nerveus. Personen met een lage angst score zijn over het algemeen kalm en onbevreesd.'\n }, {\n facet: 2,\n title: 'Boosheid',\n text: `Personen die hoog scoren in Boosheid voelen zich boos wanneer dingen gaan niet zoals ze willen. Ze zijn gevoelig voor eerlijke behandeling en voelen zich haatdragend en verbitterd wanneer ze het idee hebben dat ze worden bedrogen.\n Deze schaal meet de neiging om je boos te voelen; of de persoon ergernis en vijandigheid uitdrukt, hangt af van het niveau van verbondenheid. Lage scoorders worden niet vaak of gemakkelijk boos.`\n }, {\n facet: 3,\n title: 'Depressiviteit',\n text: 'Deze schaal meet de neiging om verdrietig, neerslachtig en ontmoedigd te zijn. Hoge scoorders missen energie en hebben moeite met het initiëren van activiteiten. Lage scoorders zijn vaak vrij van deze depressieve gevoelens.'\n }, {\n facet: 4,\n title: 'Zelfbewustzijn',\n text: `Zelfbewuste personen zijn gevoelig voor wat anderen van hen vinden. Hun bezorgdheid over afwijzing en ridicule maken dat ze zich verlegen en ongemakkelijk voelen bij anderen.\n Ze zijn gemakkelijk in verlegenheid gebracht en schamen zich vaak. Hun angsten dat anderen ze zullen bekritiseren of bespotten zijn overdreven en onrealistisch, maar hun onhandigheid en ongemak kunnen deze angsten realiteit maken. Lage scoorders daarentegen hebben geen last van het verkeerde indruk dat iedereen naar hen kijkt en over hen oordeelt. Ze voelen niet nerveus in sociale situaties.`\n }, {\n facet: 5,\n title: 'Ongematigdheid',\n text: `Ongematigde individuen voelen sterke hunkeringen en moeite hebben om weerstand te bieden aan hun aandrang. Ze hebben de neiging om gericht te zijn op kortstondige genoegens en beloningen in plaats van op langetermijngevolgen.\n Lage scoorders ervaren geen sterk, onweerstaanbaar hunkeren en komen daardoor niet in de verleiding om aan hun drifte toe te geven.`\n }, {\n facet: 6,\n title: 'Kwetsbaarheid',\n text: `Hoge scoorders op gebied van Kwetsbaarheid ervaren paniek, verwarring en hulpeloosheid bij druk of stress.\n Lage scoorders voelen zich meer evenwichtig, zelfverzekerd en denken helder in geval van stress.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Zorgvuldigheid',\n shortDescription: 'Zorgvuldigheid betreft de manier waarop we onze impulsen controleren, reguleren en sturen.',\n description: `\n Impulsen zijn niet inherent slecht;\n zo nu en dan vereisen tijdsbeperkingen een snelle beslissing en handelen naar\n onze eerste impuls kan een effectief antwoord zijn. Ook in tijden van\n spelen in plaats van werken, kan spontaan en impulsief gedrag leuk zijn. Impulsieve individuen kunnen door anderen als kleurrijk worden gezien,\n leuk om mee om te gaan, en spontaan.\n \nNiettemin kan impuslief handelen in een aantal van de gevallen tot problemen leiden. Sommige impulsen zijn asociaal. Ongecontroleerde asociale handelingen\nkunnen niet alleen schade toebrengen aan andere leden van de samenleving, maar ook resulteren in\nvergelding voor de pleger van dergelijke impulsieve daden. Een ander\nprobleem met impulsieve handelingen is dat ze vaak onmiddellijk\nbeloningen opleveren, maar ongewenste langetermijngevolgen. Voorbeelden hiervan zijn\nbuitensporige socialisatie die ertoe leidt dat iemand ontslagen wordt van zijn werk,\neen belediging uiten die het een belangrijke relatie in gevaar brengt, of met drugsgebruik uiteindelijk\niemands gezondheid in gevaar brengen.\n \nImpulsief gedrag, zelfs als het niet ernstig destructief is, vermindert\nde effectiviteit van een persoon op belangrijke manieren. Impulsief handelen\nstaat het niet toe om alternatieve handelwijzen te overwegen, waarvan sommige\nwellicht optimaler zouden zijn geweest dan de impulsieve keuze. Impulsiviteit leidt mensen ook af tijdens projecten die een georganiseerde serie vereist\nvan stappen of stadia. De prestaties van een impulsieve persoon zijn daarom kleiner, verspreid en inconsistent.\n \nEen kenmerk van intelligentie, wat de mens onderscheidt\nvan primitieve levensvormen, is het vermogen om na te denken over de gevolgen voordat het in een opwelling reageert. Een intelligente activiteit\nomvat het overwegen van doelen op lange termijn, organiseren en plannen\nroutes naar deze doelen, en vasthouden aan iemands doelen ten opzichte van kortstondige impulsen. Het idee dat intelligentie impulsbeheersing impliceert is mooi gevangen door de term voorzichtigheid, een\nalternatief label voor het domein Zorgvuldigheid. Voorzichtig zijn betekent\nzowel wijs als op je hoede.\n \nPersonen die hoog scoren op de\nZorgvuldigheid-schaal wordt in feite door anderen als intelligent ervaren.\nDe voordelen van een hoge zorgvuldigheid zijn duidelijk. Gewetensvolle\nindividuen vermijden problemen en bereiken een hoger niveau van succes door\ndoelgerichte planning en doorzettingsvermogen. Ze worden door anderen ook positief,intelligent en betrouwbaar beschouwd. Aan de negatieve kant kunnen ze dwangmatige perfectionisten en workaholics zijn.\nBovendien kunnen extreem bewuste personen worden beschouwd\nzo benauwd en saai.\n \nOnzorgvulgide mensen kunnen worden bekritiseerd\nhun onbetrouwbaarheid, gebrek aan ambitie en het onvermogen om binnen de lijntjes te blijven, maar ze zullen veel kortstondig plezier ervaren en\nze zullen nooit saai worden genoemd.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Je score op Zorgvuldigheid is laag, wat aangeeft dat je graag in het moment leeft en doe wat nu goed voelt. Jouw werk is meestal\n zorgeloos en ongeorganiseerd.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `\n Je score op Zorgvuldigheid is gemiddeld. Dit betekent dat je\n redelijk betrouwbaar, georganiseerd en zelfbeheerst bent.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Je score op Zorgvuldigheid is hoog. Dit betekent dat je duidelijke\n doelen stelt en ze met vastberadenheid nastreeft. Mensen beschouwen u als\n betrouwbaar en hardwerkend.`\n }],\n facets: [{\n facet: 1,\n title: 'Zelfstandigheid',\n text: `Zelfstandigheid beschrijft vertrouwen in iemands vaardigheid\n om dingen te bereiken. Hoge scoorders geloven dat ze de intelligentie\n (gezond verstand), drive en zelfbeheersing hebben die nodig zijn om succes te behalen.\n Lage scoorders voelen zich niet effectief en hebben misschien het gevoel dat ze dat niet\n de controle hebben over hun leven.`\n }, {\n facet: 2,\n title: 'Opgeruimdheid',\n text: `Personen met hoge scores op opgeruimdheid zijn\n goed georganiseerd. Ze willen graag leven volgens routines en schema's. Ze\n maken lijsten en plannen. Lage scoorders zijn vaak ongeorganiseerd en\n verspreid.`\n }, {\n facet: 3,\n title: 'Plichtsgetrouw',\n text: `Deze schaal geeft de mate van iemands besef weer\n op gebied van plicht en verplichting. Degenen die hoog scoren op deze schaal hebben een sterk\n gevoel van morele verplichting. Laag scorers vinden contracten, regels en\n regelgeving te beperkt. Ze worden waarschijnlijk gezien als onbetrouwbaar of\n zelfs onverantwoordelijk.`\n }, {\n facet: 4,\n title: 'Doelen Streven',\n text: `Individuen die hoog scoren op deze schaal streven ernaar om excellentie te bereiken. Hun drive om erkend te worden als succesvol houdt hen op het goede spoor richting hun doelen. Ze hebben vaak\n een sterk gevoel van richting in hun leven, maar extreem hoge scores leiden misschien tot een te hoge vastberadheid en obsessie met hun werk. Lage scoorders zijn tevreden om met een minimale hoeveelheid werk rond te komen en kunnen door anderen gezien worden lui.`\n }, {\n facet: 5,\n title: 'Zelf-Discipline',\n text: `Zelf-discipline (wat veel mensen\n wilskracht noemen) verwijst naar het vermogen om te volharden in moeilijk of onaangename taken totdat ze zijn voltooid. Mensen met een hoge zelfdiscipline\n zijn in staat om ondanks tegenzin aan taken te beginnen en op koers blijven ondanks afleiding. Degenen met een lage zelfdiscipline stellen taken uit en tonen zich slecht in opvolgen. Vaak lukt het niet om taken te voltooien, zelfs taken die ze erg graag willen voltooien.`\n }, {\n facet: 6,\n title: 'Voorzichtigheid',\n text: `Voorzichtigheid beschrijft de aanleg om eerst te denken en daarna te handelen. Hoge scoorders op de voorzichtigheid schaal nemen hun tijd bij het nemen van beslissingen. Lage scoorders zeggen of doen vaak het eerste dat in ze opkomt zonder over alternatieven na te denken en de\n mogelijke gevolgen van die alternatieven.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Openheid voor Ervaring',\n shortDescription: 'Openheid voor Ervaring beschrijft een dimensie van cognitieve stijl die creatieve, creatieve mensen onderscheidt van nuchtere, conventionele mensen.',\n description: `Open mensen zijn intellectueel nieuwsgierig en gevoelig voor kunst en schoonheid. Ze hebben de neiging om meer bewust van hun gevoelens te zijn, vergeleken met gesloten mensen.\n Ze hebben de neiging om te denken en handelen in individualistisch en non-conformistische zin. Intellectuelen scoren meestal hoog op Openheid voor Ervaring;\nDeze eigenschap wordt ook vaak aangeduid met Cultuur of Intellect. \nIntellect wordt echter waarschijnlijk het best beschouwd als een aspect van openheid. Scores op Openheid voor Ervaring zijn slechts beperkt gerelateerd aan opleidingsniveau en scores op standaard intelligente tests.\n \nEen ander kenmerk van de open cognitieve stijl is een denkvermogen in symbolen en abstracties die ver verwijderd zijn van concrete ervaring.\nAfhankelijk van de specifieke intellectuele capaciteiten van het individu, kan deze symbolische cognitie de vorm aannemen van wiskundig, logisch of geometrisch denken, artistiek en metaforisch gebruik van taal, muziekcompositie of uitvoering, of een van de visuele of podiumkunsten.\n \nMensen met lage scores op openheid voor ervaring hebben de neiging om beperkte gemeenschappelijke interesses te hebben. Ze geven de voorkeur aan duidelijkheid en rechtdoorzee boven\ncomplexiteit, dubbelzinnigheid en subtiliteit. Ze kunnen de kunsten en wetenschappen met een zekere achterdocht benaderen en ze bestempelen als onzinnig of nutteloos.\nGesloten mensen geven de voorkeur aan vertrouwdheid met nieuwigheid; ze zijn conservatief en\nbieden weerstand tegen verandering.\n \nOpenheid wordt vaak gepresenteerd als gezonder of meer volwassen door psychologen, die\nzelf vaak open staan voor ervaring. Open en gesloten stijlen van\ndenken is nuttig in verschillende omgevingen. De intellectuele stijl van de\nopen persoon kan een hoogleraar goed dienen, maar uit onderzoek is gebleken dat gesloten\ndenken de werkprestaties positief beïnvloedt wanneer het gaat om politiewerk, verkoop en\neen aantal serviceberoepen.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Je score op Openheid voor Ervaring is laag, wat aangeeft dat je graag denkt aan duidelijke en eenvoudige voorwaarden. Anderen beschrijven je als realistisch, praktisch,\n en conservatief.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Je score op Openheid voor Ervaring is gemiddeld, wat aangeeft dat je geniet van traditie maar bereid bent om nieuwe dingen te proberen.\n Je denken is noch eenvoudig noch complex. Voor anderen lijkt u een goed opgeleide persoon te zijn maar geen intellectueel.`\n }, {\n score: 'high',\n // do not translate this line\n text: 'Je score op Openheid voor Ervaring is hoog, wat aangeeft dat je geniet van nieuwe dingen, variëteit en verandering. Je bent nieuwsgierig, fantasierijk en creatief.'\n }],\n facets: [{\n facet: 1,\n title: 'Verbeelding',\n text: `Voor fantasierijke individuen is de echte wereld vaak te gewoon. Hoge scoorders op deze schaal gebruiken fantasie als een\n manier om een rijkere, interessantere wereld te creëren. Lage scoorders op deze schaal zijn meer op feiten georiënteerd dan op fantasie.`\n }, {\n facet: 2,\n title: 'Artistieke Interesses',\n text: `Hoge scoorders op deze schaal houden van schoonheid, zowel in kunst aks in de natuur.\n Ze raken gemakkelijk betrokken en verzonken in artistieke en natuurlijke gebeurtenissen.\n Ze zijn niet noodzakelijkerwijs artistiek geschoold of getalenteerd, hoewel velen dat wel zullen zijn.\n De bepalende kenmerken van deze schaal zijn interesse in en waardering van natuurlijke en kunstmatige schoonheid.\n Lage scoorders missen esthetische gevoeligheid en interesse in de kunst.`\n }, {\n facet: 3,\n title: 'Emotionaliteit',\n text: `Personen met een hoge Emotionaliteit staan in goede verbinding met hun bewustzijn van hun eigen gevoelens.\n Lage scoorders zijn zich minder bewust van hun gevoelens en hebben de neiging om hun emoties niet openlijk te uiten.`\n }, {\n facet: 4,\n title: 'Avontuurlijkheid',\n text: `Hoge scoorders op avontuurlijkheid staan te popelen nieuwe activiteiten te ondernemen,\n reizen naar vreemde landen en nieuwe dingen ervaren.\n Ze vinden vertrouwdheid en routine saai. Lage scoorders hebben de neiging zich\nongemakkelijk te voelen met verandering en geven de voorkeur aan vertrouwde routines.`\n }, {\n facet: 5,\n title: 'Intellect',\n text: `Intellect en artistieke belangen zijn de twee meest belangrijke, centrale aspecten van openheid voor ervaring.\n Hoge scoorders op gebied van Intellect spelen graag met ideeën. Ze staan open voor nieuwe, ongewone ideeën,\n en bespreken graag intellectuele kwesties.\n Ze genieten van raadsels, puzzels, en hersenkrakers.\n Lage scorers op Intellect geven de voorkeur aan mensen of dingen in plaats van ideeën.\n Ze beschouwen intellectuele oefeningen als een tijdsverspilling.\n Intellect moet niet worden gelijkgesteld aan intelligentie. Intellect is een intellectuele stijl,\n maar geen intellectuele vaardigheid. Hoge scoorders op Intellect scoren iets hoger dan lage scoorders op gestandaardiseerde intelligentietests.`\n }, {\n facet: 6,\n title: 'Liberalisme',\n text: `Psychologisch liberalisme verwijst naar een bereidheid om gezag, conventie en traditionele waarden uit te dagen.\n In zijn meest extreme vorm, kan psychologisch liberalisme zelfs een\nvijandigheid tegenover regels, sympathie voor overtreders, en liefde voor dubbelzinnigheid,\nchaos en wanorde vertegenwoordigen.\nPsychologische conservatieven geven de voorkeur aan veiligheid en\nstabiliteit in overeenstemming met traditie. Psychologisch liberalisme\nen conservatisme zijn niet identiek aan politieke overtuiging, maar individuen neigen zeker\nnaar bepaalde politieke partijen.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Medmenneskelighet',\n shortDescription: 'Medmenneskelighet henspeiler på individuelle forskjeller når det gjelder samarbeid og sosial harmoni. Medmenneskelige individer setter det å komme overens med andre høyt.',\n description: `De er derfor hensynsfulle, vennlige og villige til å finne kompromisser dersom det er interessekonflikter.\nMedmenneskelige individer har også et optimistisk syn på menneskenaturen. De tror at mennesker i bunn og grunn er ærlige, redelige og til å stole på.\nLite medmenneskelige individer setter egne interesser over det å komme overens med andre. De er generelt ikke så opptatt av andres ve og vel, og vil derfor ikke strekke seg langt for andre mennesker.\n \nNoen ganger er det deres skepsis når det gjelder andres motiver som forårsaker deres mistenksomhet, uvennlighet og mangel på samarbeidsvilje.\nMedmenneskelighet er svært fordelaktig for å bli populær og for å fortsette å være det.\n \nMedmenneskelige individer er bedre likt enn de som er lite medmenneskelig.\nMen medmenneskelighet er ingen nyttig egenskap i situasjoner der det kreves at man tar tøffe og helt objektive beslutninger.\nLite medmenneskelige individer kan bli dyktige vitenskapsmenn, kritikere eller soldater.`,\n results: [{\n score: 'low',\n text: 'Ditt resultat på medmenneskelighet er lavt, noe som tyder på at du er mindre opptatt av andres behov enn dine egne. Folk ser deg som tøff, kritisk og kompromissløs.'\n }, {\n score: 'neutral',\n text: 'Ditt resultat på medmenneskelighet er gjennomsnittlig, noe som tyder på at du er noe opptatt av andres behov, men generelt lite villig til å ofre deg for andre.'\n }, {\n score: 'high',\n text: 'Ditt høye resultat på medmenneskelighet tyder på en utpreget interesse for andres behov og deres ve og vel. Du er hyggelig, sympatisk og samarbeidsvillig.'\n }],\n facets: [{\n facet: 1,\n title: 'Tillit',\n text: 'En person som skårer høyt på tillit ser som oftest på andre mennesker som rettferdige, ærlige og at de har gode hensikter. Personer som skårer lavt på tillit ser på andre som selvopptatte, bedragerske og potensielt farlige.'\n }, {\n facet: 2,\n title: 'Moral',\n text: `De som skårer høyt på denne fasetten ser ikke noe behov for å forstille seg eller manipulere i relasjoner med andre og er derfor ærlige, åpne og oppriktige.\nDe som skårer lavt mener at det kan være nødvendig å bløffe og skjule ting i sosiale relasjoner.\nFolk synes det er relativt lett å forholde seg til de likeframme individene som skårer høyt her.\nDe finner det generelt vanskeligere å forholde seg til de som skårer lavt.\n\nDet skal understrekes at de som skårer lavt er ikke prinsippløse eller umoralske;\n\nde er bare mer vaktsomme og mindre tilbøyelige til å avdekke hele sannheten.`\n }, {\n facet: 3,\n title: 'Altruisme',\n text: `Altruistiske mennesker ser det å hjelpe andre mennesker som belønning i seg selv.\n\nDerfor er de generelt villige til hjelpe de som er i nød. Altruistiske mennesker synes at det å gjøre\n\nting for andre er en form for selvrealisering snarere enn et offer.\n\nDe som skårer lavt på denne fasetten er ikke spesielt opptatt av å hjelpe de som er i nød.\n\nNår man blir bedt om hjelp føles det som en byrde, ikke som en mulighet til selv-realisering.`\n }, {\n facet: 4,\n title: 'Føyelighet',\n text: `Individer som skårer høyt på denne fasetten misliker konfrontasjoner.\n\nDe er svært tilbøyelige til å finne kompromisser eller de vil undertrykke egne behov for å komme overens med andre.\n\nDe som skårer lavt på denne fasetten er mer tilbøyelige til å støte andre for å oppnå egne mål.`\n }, {\n facet: 5,\n title: 'Beskjedenhet',\n text: `De som skårer høyt på denne fasetten liker ikke å hevde at de er bedre enn andre mennesker.\n\nI noen tilfeller kan denne holdningen skyldes lav selvfølelse eller selvtillit.\n\nAllikevel, noen mennesker med høy selvtillit finner ubeskjedenhet upassende.\n\nDe som er er villig til å beskrive seg selv som overlegne andre mennesker blir ofte sett på som ubehagelig arrogante av andre.`\n }, {\n facet: 6,\n title: 'Følsomhet',\n text: `Individer som skårer høyt på denne fasetten er medfølende og følsomme.\n\nDe føler smerten til andre og blir lett rørt til medfølelse.\n\nDe som skårer lavt blir ikke så berørt av menneskelig lidelse.\n\nDe er stolt av at de klarer å gjøre objektive vurderinger basert på fornuft.\n\nDe er mer opptatt av sannhet og upartisk rettferdighet enn barmhjertighet.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Ekstroversjon',\n shortDescription: 'Ekstroversjon kjennetegnes av tydelig engasjement i den ytre verden.',\n description: `De ekstroverte liker å være sammen med mennesker, er fulle av energi, og opplever ofte positive følelser.\n De pleier å være entusiastiske, handlingsorienterte individer som liker å si \"Ja!\" eller \"La oss sette i gang!\" når det åpner seg muligheter for å oppleve noe spennende.\n De liker å snakke i grupper, hevde seg selv og rette oppmerksomhet mot seg selv.\n \n De introverte mangler livligheten, energien og aktivitesnivået til de ekstroverte.\n De er ofte stille, nedstemte, forsiktige og lite engasjert i den sosiale verden.\n Deres mangel på sosialt engasjement bør ikke tolkes som reserverthet eller depresjon; den introverte trenger bare mindre stimulering enn den ekstroverte og foretrekker å være alene.\n Uavhengigheten og reservasjonen til den introverte er noen ganger feilaktig sett på som uvennlighet eller arroganse.\n \n I realiteten så vil en introvert som skårer høyt på medmennesklighetsfaktoren ikke søke andre bevisst, men synes det er ganske greit hvis andre søker deres selskap.`,\n results: [{\n score: 'low',\n text: `Ditt resultat på ekstroversjon er lavt, noe som tyder på at du er\n\nintrovert, reservert og stille. Du liker å være alene og aktiviteter du kan gjøre for deg selv.\n\nDen sosiale delen av livet ditt omfatter noen få nære venner.`\n }, {\n score: 'neutral',\n text: 'Ditt resultat på ekstroversjon er gjennomsnittlig, noe som tyder på at du verken foretrekker å være alene eller en godmodig pratemaker. Du liker å være med andre, samtidig som du også setter pris på alene-tid.'\n }, {\n score: 'high',\n text: `Ditt resultat på ekstroversjon er høyt, noe som tyder på at du er sosial, utadvendt, energisk og livlig.\n\nDu foretrekker å være med andre mesteparten av tiden.`\n }],\n facets: [{\n facet: 1,\n title: 'Vennlighet',\n text: 'Vennlige mennesker liker andre mennesker og viser åpent positive følelser de har ovenfor andre. De får lettere venner, og det er enkelt for dem å danne nære, intime forhold. De som skårer lavt på vennlighet er ikke nødvendvis kalde og fiendtlige, men de knytter seg ikke til andre og blir oppfattet som distanserte og reserverte.'\n }, {\n facet: 2,\n title: 'Sosiabilitet',\n text: 'Personer med høy sosiabilitet setter pris på andres selskap og finner det stimulerende og får mye ut av det. De synes det er spennende med mange mennesker. De som skårer lavt føler seg overveldet av mange mennesker, og unngår derfor aktivt slike situasjoner. Det er ikke det at de nødvendigvis misliker å være med mennesker fra tid til annen, men deres behov for privatliv og tid for seg selv er større enn for individer som skårer høyt her.'\n }, {\n facet: 3,\n title: 'Selvmarkering',\n text: `De som skårer høyt på selvmarkering liker å si i fra, ta ansvar og styre andres aktiviteter. De er ofte leder i grupper.\n \n De som skårer lavt pleier ikke å være så snakkesalige og lar andre kontrollere det som skal foregå i gruppa.`\n }, {\n facet: 4,\n title: 'Aktivitet',\n text: `Aktive individer er travle og lever hektiske liv. De er som oftest i bevegelse, er raske og energiske, og de er med på mange aktiviteter.\n\nMennesker som skårer lavt på dette er roligere og følger et mer avslappet løp.`\n }, {\n facet: 5,\n title: 'Spennings-søking',\n text: `De som skårer høyt på dette kjeder seg lett hvis de ikke opplever så mye stimuli. De elsker mye lys og fart og spenning.\n\nDe lever ofte risikofullt og søker spenning. De som skårer lavt blir satt ut av støy og bråk og oppsøker ikke fart og spenning.`\n }, {\n facet: 6,\n title: 'Positive følelser',\n text: `Denne fasetten måler positive humørsvingninger og følelser, ikke negative følelser (som er en del av nevrotisisme-området).\n\nPersoner som skårer høyt her opplever ofte en rekke positive følelser, slik som glede, entusiasme og begeistring.\n\nDe som skårer lavt er ikke så tilbøyelige til å føle at de bobler over av energi og glede.`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Nevrotisisme',\n shortDescription: 'Nevrotisisme omhandler tendensen til å oppleve negative følelser.',\n description: `Freud brukte opprinnelig begrepet nevrose for å beskrive en tilstand preget av mentalt stress, følelsesmessige\nlidelser og en sviktende evne til å håndtere det som livet normalt krever av oss.\nHan mente at alle har noen tegn på nevrose, men at det er ulike grader av hvor mye vi plages av dette og at de spesifikke symptomene kan variere.\n \nI dag knytter vi nevrotisisme til tendensen vi har til å oppleve negative følelser.\n De som skårer høyt på nevrotisisme kan oppleve en spesifikk negativ følelse slik som angst eller depresjon, men ofte vil de oppleve flere av disse følelsene.\n Mennesker som skårer høyt på nevrotisisme er følelsemessig reaktive. De reagerer emosjonelt på hendelser som ofte ikke vil opprøre andre, og deres reaksjoner\n pleier å være mer intense enn det som er normalt. De er tilbøyelige til å tolke vanlige situasjoner som truende, og mindre frustrasjoner kan framstå som håpløst vanskelige.\n \nDeres negative emosjonelle reaksjoner pleier å vedvare i usedvanlig lange perioder.\nDisse problemene med å håndtere følelsene kan forhindre nevrotikerens evne til å tenke klart, ta beslutninger og håndtere stress effektivt.`,\n results: [{\n score: 'low',\n text: `Ditt resultat på nevrotisisme er lavt, noe som tyder på at du er usedvanlig rolig,\n\nfattet og holder på sinnsroen. Du reagerer ikke med intense følelser, selv på situasjoner som de fleste mennesker\n\nvil oppfatte som stressende.`\n }, {\n score: 'neutral',\n text: `Din skåre på nevrotisisme er gjennomsnittlig, noe som indikerer at nivået av emosjonell reaktivitet er typisk for den generelle befolkningen.\n \nStressende og frustrerende situasjoner er noe oppskakende for deg, men du er vanligvis i stand til å komme over disse følelsene og takle slike situasjoner.`\n }, {\n score: 'high',\n text: `Ditt resultat på nevrotisisme er høyt, noe som tyder på at du blir lett opprørt, selv\n\ni situasjoner som de fleste ser på som noe som man kan forvente av livsutfordringer.\n\nAndre ser på deg som følsom og sensibel.`\n }],\n facets: [{\n facet: 1,\n title: 'Angst',\n text: `Det som kalles for \"fight-or-flight\" eller \"kamp-flukt\"-responsen i hjernen blir hos engstelige individer aktivert for raskt.\n\nDerfor vil individer som skårer høyt her lett føle at det er fare på ferde.\n\nDe kan være redde for spesifikke situasjoner eller kan være generelt fryktsomme.\n\nDe føler seg anspente, urolige og nervøse.\n\nPersoner som skårer lavt på angst er generelt rolige og fryktløse.`\n }, {\n facet: 2,\n title: 'Sinne',\n text: `Personer som skårer høyt på sinne blir ergerlige når ting ikke går deres vei.\n\nDe er vare på måten de blir behandlet og opptatt av å bli behandlet rettferdig, de blir opprørte og bitre\n\nnår de føler at de blir sviktet eller bedratt.\n\nDenne fasetten måler tendensen til å føle sinne; om eller\n\nom ikke personen uttrykker misnøye eller fiendtlighet avhenger av individets nivå når det gjelder medmenneskelighet.\n\nDe som skårer lavt blir ikke så ofte eller fort sinte.`\n }, {\n facet: 3,\n title: 'Depresjon',\n text: `Denne fasetten måler tendensen til å føle seg trist, motløs eller nedstemt.\n\nDe som skårer høyt mangler energi og har problemer med å ta initiativet til aktiviteter.\n\nDe som skårer lavt pleier å være fri for disse depressive følelsene.`\n }, {\n facet: 4,\n title: 'Selvbevissthet',\n text: `Selvbevisste individer er opptatt av hva andre tenker om dem.\n\nDeres frykt for å bli avvist og latterliggjort får dem til å føle seg brydd og ukomfortable i forhold til andre mennesker.\n\nDe blir ofte brydd og føler skam. Frykten for at andre skal kritisere dem eller gjøre dem til latter er ofte\n\noverdrevet og er ikke reell, men det åpenbare ubehaget kan gjøre frykten til en selvoppfyllende profeti.\n\nDe som skårer lavt, derimot, deler ikke det feilaktige inntrykket av at alle vurderer og dømmer dem.\n\nDe føler seg ikke nervøse i sosiale situasjoner.`\n }, {\n facet: 5,\n title: 'Impulsivitet',\n text: `Impulsive individer har sterke lyster og lengsler som det er vanskelig å motstå.\n\nDe styrer ofte mot kortlivede gleder og det som innkasserer rask belønning framfor det som gir glede i det lange løp.\n\nDe som skårer lavt opplever ikke sterke, uimotståelige lyster og blir dermed ikke fristet til å kaste seg ut i ting.`\n }, {\n facet: 6,\n title: 'Sårbarhet',\n text: `De som skårer høyt på sårbarhet opplever panikk, forvirring og hjelpeløshet i pressede eller stressede situasjoner.\n\nDe som skårer lavt føler seg roligere, sikre og klarttenkende når de er stresset.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Planmessighet',\n shortDescription: 'Planmessighet omhandler måten vi kontrollerer, regulerer og styrer våre impulser.',\n description: `Impulser er ikke i seg dårlige, avhengig av situasjonen vil det noen ganger være\nnødvendig med raske avgjørelser, og det å handle på den første impulsen vi får, kan være en effektiv respons.\nVidere, kan det når det er snakk om lek og spill framfor jobb, være morsomt at man kan handle spontant og impulsivt.\n \nImpulsive indvider kan bli sett på som fargerike, morsomme å være sammen med og eksentriske.\nMen det å være impulsiv kan også føre til problemer på mange slags måter.\nNoen impulser er antisosiale. Ukontrollerte antisosiale handlinger skader ikke bare andre\nmedlemmer av samfunnet, men kan også føre til at den som utfører de impulsive handlingene blir straffet.\n \nEt annet problem forbundet med impulsive handlinger er at de ifte avstedkommer umiddelbar belønning, men\nuønskede virkninger i det lange løp. Eksempler er at man overdriver når man inngår sosiale relasjoner,\nnoe som kan føre til at man blir oppsagt på jobben, at man kaster fornærmelser i ansiktet på viktige bekjentskaper,\neller bruker stemningskapende rusmidler som til slutt er ødeleggende for helsa.\nImpulsiv atferd, selv om den ikke er veldig destruktiv, er alvorlig til hindrer for effektivitet og produksjon.\n \nNår man handler impulsivt, så forhindrer det at man tenker over andre mulige handlingsalternativer, som kanskje hadde vært\nklokere enn det impulsive valget. Impulsivitet stiller også folk på sidelinja i prosjekter som krever\norganisering etappevis eller i stadier. Det en impulsiv person oppnår er derfor smått, fragmentert og lite sammenhengende.\nEt adelsmerke på intelligens, det som virkelig skiller mennesker ut fra tidligere livsformer, er evnen til\nå tenke på framtidige konsekvenser før en impulsiv handling. Intelligent aktivitet går ut på at man setter seg\nlangsiktige mål, organiserer og planlegger måter å nå målene på og ikke mister målene sine av syne ved å kaste seg over kortlivede impulser.\nForestillingen om at intelligens omhandler impulskontroll gjenspeiles godt i begrepet god dømmekraft,\net annet kjennemerke ved planmessighetsfasetten.\n \nGod dømmekraft innebærer både klokskap og forsiktighet. Personer som skårer høyt på planmessighet\nblir faktisk sett på som intelligente av andre. Fordelene med de som er veldig planmessige er åpenbare.\n \nPlanmessige individer unngår problemer og oppnår mye suksess gjennom hensiktsmessig planlegging og utholdenhet.\nDe har ofte et positivt omdømme og oppfattes som intelligente og tillitvekkende. En negativ side kan være at\nde kan være tvangsmessig opptatt av perfeksjon og oppfattes som arbeidsnarkomane.\nVidere, kan svært planmessige individer bli sett på som reserverte og kjedelige.\n \nPersoner som er lite planmessige kan bli kritisert for sin upålitelighet, mangel på ambisjoner og\nsviktende evne til å holde ut, men de vil ha mange kortvarige gleder, og de vil aldri bli betegnet som reserverte og kjedelige`,\n results: [{\n score: 'low',\n text: `Ditt resultat på planmessighet er lavt, noe som tyder på at du\nliker å leve i øyeblikket og gjøre det som føles bra her og nå.\n\nArbeidet ditt er ofte unøyaktig og dårlig organisert.`\n }, {\n score: 'neutral',\n text: `Ditt resultat på planmessighet er gjennomsnittlig.\n\nDette betyr at du er ganske pålitelig, organisert og har kontroll på deg selv.`\n }, {\n score: 'high',\n text: `Ditt resultat på planmessighet er høyt.\n\nDette betyr at du setter deg klare mål og følger dem fast. Andre ser på deg som pålitelig og hardt-arbeidende.`\n }],\n facets: [{\n facet: 1,\n title: 'Kompetanse',\n text: `Kompetanse beskriver evnen til å oppnå ting.\n\nDe som skårer høyt mener at de har intelligensen (fornuften), drivet og selvkontrollen som kreves for å lykkes.\n\nDe som skårer lavt føler seg ikke så effektive og føler at de ikke har så god kontroll på livet sitt`\n }, {\n facet: 2,\n title: 'Orden',\n text: `Personer med høy skåre på orden er velorganiserte.\n\nDe liker å ha rutiner og skjemaer for å regulere livet sitt.\n\nDe lager lister og legger planer. De som skårer lavt er uorganiserte og usystematiske`\n }, {\n facet: 3,\n title: 'Pliktoppfyllenhet',\n text: `Denne fasetten gjenspeiler styrkegraden av en persons pliktfølelse.\n\nDe som skårer høyt på dette har en sterk følelse av moralske forpliktelser.\n\nDe som skårer lavt synes kontrakter, regler og reguleringer virker begrensende på dem.\n\nDe blir ofte sett på som upålitelige og til og med uansvarlige.`\n }, {\n facet: 4,\n title: 'Prestasjonsstreben',\n text: `Individer som skårer høyt her jobber hardt for å utmerke seg.\n\nDeres fokusering på suksess og anerkjennelse gjør at de streber etter å nå de høye målene de har satt seg.\n\nDe har ofte en sterk følelse og mål for det de vil med livet sitt, og de som har svært høye skårer her\n\nkan være veldig ensrettede og fullstendig oppslukt av arbeidet sitt.\n\nDe som skårer lavt vil komme seg unna med et minimum av arbeid, og kan bli sett på som late.`\n }, {\n facet: 5,\n title: 'Selvdisiplin',\n text: `Selvdisiplin, eller hva mange kaller viljestyrke, omhandler evnen til utholdenhet, noe som\n\ngjør at man fullfører oppgaver som ikke er så lystbetonte. Personer som har denne høye selvdisiplinen klarer å\n\novervinne motstanden mot å starte på slike oppgaver og klarer å heve seg over eventuelle distraksjoner mens de arbeider.\n\nDe som har lav selvdisiplin prokastinerer og viser liten evne til å\ngjennomføre og fullføre oppgaver, selv oppgaver de gjerne ønsker å bli ferdige med.`\n }, {\n facet: 6,\n title: 'Betenksomhet',\n text: `Betenksomhet omhandler anlegget du har for å tenke igjennom ulike muligheter og alternativer du har før du handler.\n\nDe som skårer høyt på betenksomhet tar seg god tid når de skal fatte beslutninger.\n\nDe som skårer lavt gjør ofte det første og beste de tenker på uten å tenke igjennom alternativer eller mulige konsekvenser av disse alternative.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Åpenhet for erfaringer',\n shortDescription: 'Åpenhet for erfaringer beskriver en dimensjon av en kognitiv stil der fantasi skiller kreative mennesker fra jordnære, konvensjonelle mennesker.',\n description: `Åpne mennesker er intellektuelt nysgjerrige, setter pris på kunst, og de verdsetter skjønnhet.\n De pleier å være mer klar over sine følelser enn mennesker som er mer lukket.\n\n De tenker og handler ofte på individuelle og lite konforme måter.\n De intellektuelle skårer vanligvis høyere på åpenhet for erfaringer; derfor har denne faktoren også blitt kalt kultur eller intellekt.\n Ikke desto mindre, blir intellektet ofte sett på som et aspekt ved åpenhet for erfaringer.\n \n Skåren på åpenhet for erfaringer er bare i liten grad relatert til utdanning og skåren på standardiserte IQ-tester.\n Et annet kjennetegn ved den åpne kognitive stilen er en evne til å tenke i symboler og abstraksjoner, også når de ikke har med konkret erfaring å gjøre.\n Avhengig av idividets spesifikke intellektulle evner, kan denne kognisjonen i forhold til symboler opptre i form av matematikk, logisk eller geometrisk\n tenkning, kunstnerisk og metaforisk bruk av språk, musikalsk komposisjon eller\n framføring, eller som en av mange uttrykksformer innenfor visuell eller utøvende kunst.\n \n Mennesker med lave skårer på åpenhet for erfaringer har gjerne begrensede, vanlige interesser.\n De foretrekker det enkle, ukompliserte og opplagte framfor det komplekse, tvetydige og dype.\n De kan se på kunst og vitenskap med skepsis og se på det disse forfekter som obskurt og ikke av noen nytteverdi.\n \n Lukkede personligheter foretrekker det kjente framfor det ukjente; de er konservative og er ikke glad i forandringer.\n Åpenhet blir ofte sett på som sunnere og mer modent av psykologer, kanskje fordi de ofte selv er åpne for erfaringer.\n Men åpne og lukkede måter å tenke på kan være nyttig i ulike miljøer. Den intellektuelle tenkemåten til en åpen person\n kan fungere bra hos en professor, men forskning har vist at lukket tenkning kan relateres til framragende arbeid i politietaten, innenfor salg og i en rekke service-yrker.`,\n results: [{\n score: 'low',\n text: `Din skåre på åpenhet for erfaringer er lav, noe som tyder på at du liker å tenke enkelt og rett-fram begrepsmessig.\n\nAndre beskriver deg som jordnær, praktisk og konservativ.`\n }, {\n score: 'neutral',\n text: `Din skåre på åpenhet for erfaringer er gjennomsnittlig, noe som tyder på at du liker tradisjoner, men er villig til å prøve nye ting.\n\nTenkningen din er verken enkel eller kompleks. For andre framstår du som en velutdannet person, men ikke en intellektuell.`\n }, {\n score: 'high',\n text: `Din skåre på åpenhet for erfaringer er høy, noe som tyder på at du liker nye ting, variasjon og forandring.\n Du er nysgjerrig, fantasifull og kreativ.`\n }],\n facets: [{\n facet: 1,\n title: 'Fantasi',\n text: `For individer med mye fantasi er den virkelige verden ofte for enkel og ordinær.\n\nDe som skårer høyt her bruker fantasien for å skape seg en rikere og mer interessant verden.\n\nDe som skårer lavt her er mer faktaorienterte.`\n }, {\n facet: 2,\n title: 'Estetikk',\n text: `De som skårer høyt her elsker skjønnhet, både i kunsten og naturen.\n\nDe lar seg lett rive med og begeistres av det kunstneriske og det som skjer i naturen.\n\nDe er ikke nødvendigvis talentfulle eller utdannet innenfor disse områdene, selv om mange vil være det.\n\nTrekkene som definerer denne skalaen er interesse for, og verdsettelse av naturlig og kunstnerisk\n\nskjønnhet. De som skårer lavt mangler estetisk sans og interesse for kunst.`\n }, {\n facet: 3,\n title: 'Følelser',\n text: `Personer som skårer høyt på følelser har god kontakt med sine egne følelser.\n\nDe som skårer lavt er mindre oppmerksomme på egne følelser og vil ikke gi åpent uttrykk for dem.`\n }, {\n facet: 4,\n title: 'Eventyrlyst',\n text: `De som skårer høyt på dette vil gjerne prøve nye aktiviteter, reise til fremmede land og oppleve nye ting.\n\nDe synes rutine og det kjente er kjedelig og vil velge en annen vei hjem kun fordi den er annerledes.\n\nDe som skårer lavt liker dårlig forandring og foretrekker kjente rutiner.`\n }, {\n facet: 5,\n title: 'Intellekt',\n text: `Intellekt og kunstnerisk sans er de to viktigeste og mest sentrale aspektene ved åpenhet for erfaringer.\n\nDe som skårer høyt på intellekt liker å leke med tanker og idéer. De er åpne ovenfor nye utradisjonelle idéer og liker å diskutere ulike intellektuelle problemer.\n\nDe liker å løse gåter, puslespill og hjernetrim. De som skårer lavt på dette foretrekker å ha med virkelige mennesker å gjøre\n\nframfor intellektuelle problemstillinger. De ser på intellektuelle aktiviteter som bortkastet tid. Intellekt burde ikke sammenstilles med intelligens.\n\nIntellekt er en intellektuell stil, ikke en intellektuell evne, selv om de som skårer høyt på intellekt-skåren, skårer noe høyere enn de som er skårer lavt på\n\nintellekt på standardiserte intelligenstester.`\n }, {\n facet: 6,\n title: ' Liberale verdier',\n text: `Denne psykologiske verdien når det gjelder liberalisme tar for seg tilbøyeligheten til å utfordre autoriteter, konvensjoner og tradisjonelle verdier.\n\nI sin mest ekstreme form, kan denne psykologiske verdi-dimensjonen representere regelrett fiendtlighet ovenfor lover og og regler, sympati\n\nfor lovbrytere og en forkjærlighet for det tvetydige, kaos og uorden.\n\nDe som er psykologisk konservative foretrekker trygghet og stabilitet ved å holde seg til tradisjoner. psykologisk liberalisme og\n\nkonservatisme er ikke det samme som politisk tilhørighet, men er absolutt med å trekke individet mot visse politiske partier.`\n }]\n};","module.exports = {\n domain: 'A',\n title: 'Afabilidade',\n shortDescription: 'Pessoas agradáveis aos outros, simpáticos. Se preocupam com a cooperação e a harmonia social e facilmente se dão bem com outras pessoas.',\n description: `São atenciosos, amigáveis, generosos e se comprometem com os \ninteresses do próximo. Pessoas com esse perfil também têm uma visão otimista \nsobre a humanidade. Eles acreditam que as pessoas são honestas, decentes, \ne confiáveis por natureza. Já os que não se encaixam nesse perfil são \nconsiderados mais individualistas, colocam o interesse próprio acima do \ninteresse alheio e geralmente não se preocupam com o bem-estar dos outros e \nnormalmente não estão dispostos a ajudar. Às vezes, sua desconfiança faz com \nque suspeitem dos outros, sejam hostis e não pensem no cooperativismo.\nA \"afabilidade\" é uma virtude para alcançar e manter popularidade. Pessoas \n\"afáveis\" tendem a conquistar uma admiração sem terem que se esforçar para isso. \nPor outro lado, essa busca por aceitação pode atrapalhar em situações que requerem \ndecisões objetivas e mais complexas, pois a opinião externa e a harmonia entre os \ndemais pesam mais do que seu ponto de vista. Se esforçam demais para que suas \nações agradem a maioria.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Sua pontuação para \"afabilidade\" é baixa, indicando que você se\npreocupa mais com as próprias necessidades do que com a dos outros. \nAs pessoas podem te considerar rigoroso, crítico, e inflexível.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Seu nível de \"amabilidade\" é médio, indicando que você se preocupa \ncom as necessidades alheias, mas, dificilmente você se sacrifica para \nfazê-las ou agradar aos outros.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Seu alto nível de \"afabilidade\" indica um forte interesse em atender \nnecessidades dos outros, promover o bem-estar dos que estão a sua volta \ne o cooperativismo. Você é agradável, simpático, e solidário.`\n }],\n facets: [{\n facet: 1,\n title: 'Confiança',\n text: `Quem pontua alto para confiança normalmente acredita que a maioria \ndas pessoas são justas, honestas e bem-intencionadas por natureza. Pessoas com \nbaixa pontuação são desconfiados, enxergam os outros como egoístas, \ndesonestos e perigosos.`\n }, {\n facet: 2,\n title: 'Moralidade',\n text: `Pessoas que se baseiam na ética e justiça, indivíduo sincero e franco. \nEsse grupo têm facilidade em lidar com outras pessoas e normalmente não gostam de \nmanipulações nas relações. Pontuação baixa caracteriza pessoas que acreditam que \né necessário ou comum que as relações sociais causam decepções.`\n }, {\n facet: 3,\n title: 'Altruísmo',\n text: `Se sentem recompensados ao ajudar outras pessoas como forma de \nauto-realização, fortemente movidos pela compaixão e dedicados a promover o \nbem-estar dos outros. Extremamente generoso e disposto a ajudar aqueles que estão \nem necessidade. Pontuação baixa para altruísmo indica pessoas que não se sentem \nbem ajudando necessitados. Ajudar parece mais uma obrigação para eles \ndo que uma ação gratificante.`\n }, {\n facet: 4,\n title: 'Cooperação',\n text: `Indivíduos que não gostam de confrontos/agressividade. Preferem \ncomprometer ou negar suas próprias necessidades, se isso resultar em harmonia entre \nos demais. Já os que pontuam pouco são mais propensos a intimidar os outros para \nconseguir o que querem.`\n }, {\n facet: 5,\n title: 'Modéstia',\n text: `Pesssoas que falam de realizações próprias com bastante humildade. \nNão gostam de ser considerados superiores ou melhores do que os outros. Em alguns \ncasos essa atitude pode ocasionar baixa autoconfiança/autoestima. Os que têm \npontuação baixa se consideram superiores e podem ser vistos como arrogante \npor outras pessoas.`\n }, {\n facet: 6,\n title: 'Empatia',\n text: `Pontuação alta indica capacidade de se pôr no lugar do outro. Sentem a \ndor alheia com compaixão e se preocupam com os demais. O sofrimento humano é algo que \nos afeta fortemente. Os que pontuam baixo nessa competência não se afetam muito pelo \nsofrimento humano. Acreditam na meritocracia e que julgamentos são baseados na razão. \nEstão mais preocupados com a verdade e justiça imparcial do que com a misericórdia/pena.`\n }]\n};","module.exports = {\n domain: 'E',\n title: 'Extroversão',\n shortDescription: 'A extroversão é marcada pela sociabilidade, engajamento com o mundo externo.',\n description: `Extrovertidos gostam de estar rodeados de pessoas, são cheios \nde energia, e normalmente seus dias são carregados de emoções positivas. Eles \ntendem a ser animados, orientados para a ação. Provavelmente você vai escutar \ndeles palavras motivadoras, como 'Bora!' e 'Vamos? Vamos!' Quando estão em \ngrupos eles gostam de falar, se destacar e chamar a atenção. Ao contrátio, os \nintrovertidos tendem a ser discretos e mais quietos, gostam de passar o tempo \nsozinhos. Sua falta de envolvimento social não deve ser interpretado como timidez \nou depressão. O introvertido simplesmente precisa de menos estímulo do que um \nextrovertido e prefere sua própria companhia. A independência e reserva do \nintrovertido é às vezes confundido como falta de amizade ou arrogância. \nNa verdade, um introvertido que pontua alto na \"afabilidade\" é o tipo de pessoa \nque não busca ajuda de outros, mas será bastante simpático e solicito quando o chamarem.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Sua pontuação para \"extroversão\" é baixa, indicando que \nvocê tende a ser mais introvertido, reservado e tranquilo. Você curte \na solidão e atividades individuais. Ter alguns amigos próximos pra \nvocê já é um grande nível de socialização.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Sua pontuação extroversão é média, indicando que você \nnão é nem super tímido e nem o mais comunicativo do seu grupo. Você \naproveita o tempo com outros, mas também gosta de estar sozinho.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Sua pontuação para extroversão é alta, indicando que \nvocê é bastante sociável, extrovertido, energético e animado. Você \nprefere estar por perto de pessoas a maior parte do tempo. `\n }],\n facets: [{\n facet: 1,\n title: 'Simpatia',\n text: `Pessoas amigáveis, que fazem amigos rapidamente e com \nmuita facilidade. Os que pontuam baixo para simpatia não são \nnecessariamente frios e hostis, são apenas menos comunicativos, mais \ndistantes e reservados.`\n }, {\n facet: 2,\n title: 'Sociabilidade',\n text: `Preferência pela companhia dos outros e evita estar \nsozinho. Se sentem bem em multidões/aglomerações. Já os que pontuam \npouco tendem a se sentir tensos em grandes multidões e por isso evitam \naglomerações. Não são antisociais/antipáticos, apenas sentem mais \nnecessidade de privacidade e tempo para si mesmos do que as pessoas \nque têm pontuação alta.`\n }, {\n facet: 3,\n title: 'Assertividade',\n text: `Gostam de assumir o comando e direcionar as atividades \ndos outros. Tendem a conquistar cargos de liderança e dominar situações \nsociais. Já as pessoas com pontuação baixa tendem a ser mais quietos e \nnão se incomodam quando os outros comandam as atividades em grupos.`\n }, {\n facet: 4,\n title: 'Atividade',\n text: `Pessoas com estilo de vida acelerado e propensos a estarem \nativos. Gostam de estar em movimento e normalmente estão envolvidos em \nmuitas atividades ao mesmo tempo. Pesoas que tem pontuação baixa seguem \num ritmo mais lento e tranquilo, são mais relaxadas.`\n }, {\n facet: 5,\n title: 'Busca de Sensações',\n text: `Alegres e estimulados. Têm preferência por barulho. Ficam \nentediados facilmente, adoram luzes brilhantes e movimento. Eles são mais \npropensos a arriscar-se e viver fortes emoções. Os com pontuação baixa não \ngostam de barulho e tumulto e fogem de experiências com fortes emoções.`\n }, {\n facet: 6,\n title: 'Emoções Positivas',\n text: `Pessoas alto astral, bem humoradas, lidam com as situações com \nemoções positivas com felicidade, entusiasmo e alegria. As pessoas que \nalcançam uma pontuação baixa não tem um temperamento tão enérgico e alto astral`\n }]\n};","module.exports = {\n domain: 'N',\n title: 'Neuroticismo',\n shortDescription: 'Neuroticismo: tendência a sentir emoções negativas.',\n description: `O termo neurose foi utilizado por Freud para descrever \numa condição marcada por sofrimento mental e emocional, e pela incapacidade \nde lidar com as circunstâncias normais da vida. O pscicanalista defendia \na ideia de que todos os seres humanos mostram alguns sinais de neurose, \nmas que cada indivíduo lida de maneira diferente ao sofrimento e tem sintomas \nespecíficos quando \"em sitações de perigo\". Hoje a psicologia retrata o \nneuroticismo como a tendência à experiência de sentimentos negativos. As pessoas \ndessa personalidade tendem a sentir, dentro desses sentimentos negativos, a \nansiedade, raiva, ou depressão. São pessoas emocionalmente reativas, ou seja, \nrespondem emocionalmente a acontecimentos que não afetariam a maioria das pessoas,\ne suas reações tendem a ser mais intensas do que o normal. Eles interpretam situações \ncomuns como ameaçadoras, e pequenas frustrações são extremamente difíceis de lidar. \nAs reações negativas tendem a persistir por períodos longos de tempo, o que significa \nque eles estão muitas vezes de mau humor. Esses problemas emocionais podem diminuir \na capacidade de pensar com clareza, fazer decisões, e lidar com o estresse.\nIndivíduos que caem na categoria neurótica tendem a ser mais propensos a \nmudanças de humor e a serem reativos.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Sua pontuação para \"neuroticismo é baixa, indicando que você é \nbastante calmo, equilibrado e estável. Você não reage com\nemoções intensas em situações difíceis. Em momentos de estresse você tende a ser bastante \ntranquilo e não responde emocionalmente com raiva. Geralmente confiam em sua capacidade \nde lidar com situações adversas ou desconfortáveis.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Sua pontuação para \"neuroticismo\" é média, indicando que seu \nnível de reatividade emocional é típica da população em geral. Situações \nestressantes e frustrantes são um pouco perturbadoras para você, mas você \ngeralmente é capaz de superar esses sentimentos e lidar bem com essas situações.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Sua pontuação para \"neuroticismo\" é alta, indicando que você tende \na experimentar emoções negativas muito intensamente e têm dificuldade em controlar \nessas emoções quando surgem. As pessoas te consideram sensível e emotivo. Pessoas \ncom essa personalidade são mais vulneráveis à angústia psicológica do que \nos indivíduos que pontuam mais baixo.`\n }],\n facets: [{\n facet: 1,\n title: 'Ansiedade',\n text: `Tipo de pessoa que está sempre 'em alerta'. Sente ansiedade e que algo \nperigoso está prestes a acontecer. São mais propensos a sentir medo e tensão em \nsituações comuns. Pessoas com baixa pontuação para ansiedade geralmente não têm medo, \nsão calmas e tranquilas.`\n }, {\n facet: 2,\n title: 'Raiva',\n text: `As pessoas com alta pontuação nessa categoria se frustram quando as \ncoisas não vão do seu jeito e têm tendência a sentir amargura e raiva. Gostam de ser \ntratados de forma justa e se sentem injustiçados quando enganados. Pessoas com pontuação \nbaixa dificilmente passam raiva.`\n }, {\n facet: 3,\n title: 'Melancolia',\n text: `Pontuações altas identificam pessoas que têm dificuldade em iniciar \natividades e propensão maior a experimentar sintomas depressivos, como perda de energia, \ndificuldade de concentração e problemas com o sono. Já as pessoas com pontuação baixa \ntendem a não sentir esses sentimentos depressivos.`\n }, {\n facet: 4,\n title: 'Autoconsciência',\n text: `Pessoas impulsivas são incapazes de controlar desejos ou impulsos. Sentem \ndificuldade em resistir a vontades. Eles tendem a sanar seus prazeres e buscam recompensas \ninstantâneas ao invés de longo-prazo. Já pessoas pouco impulsivas não passam por situações \nexageradas em relação a seus desejos, pois conseguem resistir. Por esse motivo costumam \nser mais moderados.`\n }, {\n facet: 5,\n title: 'Impulsividade',\n text: `Pessoas impulsivas são incapazes de controlar desejos ou impulsos. \nSentem dificuldade em resistir a vontades. Eles tendem a sanar seus prazeres e \nbuscam recompensas instantâneas ao invês de longo-prazo. Já pessoas pouco impulsivas \nnão experimentam necessidades exageradas ou desejos que são impossíveis de resistir, \npor esse motivo costumam ser mais moderados. `\n }, {\n facet: 6,\n title: 'Vulnerabilidade',\n text: `Pessoas que pontuam alto nessa competência têm dificuldade em lidar com \no estresse. Estão mais propensos a passar por situações de pânico, confusão e desamparo \nquando sob pressão. Pessoas com pouca pontuação para vulnerabilidade se sentem mais \nequilibrados, confiantes e pensam com clareza quando passam por momentos de estresse.`\n }]\n};","module.exports = {\n domain: 'C',\n title: 'Consciência',\n shortDescription: 'Diz respeito à forma como controlamos, conduzimos e direcionamos nossos impulsos.',\n description: `Consciência gira em torno da ideia de organização e perseverança. \nIndivíduos conscientes normalmente são considerados inteligentes, pois idealizam \nmetas de longo prazo, planejam como vão alcançar seus objetivos e persistem até \nconcluírem, por esse motivo, sua inteligência também está ligada a capacidade de \ncontrolar impulsos. São extremamente capazes de pensar sobre consequências futuras \nantes de agir. Ao invés de ir em busca de recompensas rápidas, o consciente tende \na dedicar-se a grandes projetos, onde é devidamente cauteloso em suas atividades. \nAs pessoas o consideram uma pessoa prudente e sábia. Os benefícios de ser uma pessoa \ndessa categoria é a consciência de seus atos, pois evitam problemas e os ajuda a \nalcançar altos níveis de assertividade e sucesso através de planejamento, propósito \ne persistência. Também são considerados extremamente confiáveis. Porém podem ser \nperfeccionistas, obcecados e 'workaholics'. Em alguns momentos são considerados \nchatos e \"impositores\". Já as pessoas que não estão nessa categoria podem ser criticadas \npor não serem tão confiáveis, terem pouca ou nenhuma ambição e por serem desobedientes. \nAgem sem pensar. Porém, ao agir com espontaneidade e impulsivamente podem ser considerados \ndivertidos e alegres. Vale lembrar que os impulsos não são necessariamente ruins, pois em alguns \ncasos uma decisão rápida pode estar ligada a agilidade e eficácia. No entanto, agir por \nimpulso pode levar a vários problemas e inclusive prejudicar a sociedade. Outro problema \ncom atos impulsivos é que eles muitas vezes produzem recompensas imediatas, mas suas \nconsequências a longo prazo são ruins. O comportamento impulsivo, mesmo quando não é \ntotalmente destrutivo, prejudica a assertividade pois dificulta a assimilação de resolução \nde problemas. Também afeta aos envolvidos em projetos que requerem sequências organizadas \nou são dividiidos em etapas.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Sua pontuação em \"Consciência\" é baixa, indicando que você gosta \nde viver o agora e faz as coisas de maneira impulsiva. Seu trabalho tende a ser \ndesorganizado e costumam te avaliar como descuidado.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Sua pontuação em \"Consciência\" é média. Isso significa que você \né razoavelmente organizado e tem auto-controle.`\n }, {\n score: 'high',\n // do not translate this line\n text: `\"Sua pontuação em Consciência\" é alta. Você é uma pessoa \nque define bem seus objetivos e os realiza com determinação. Te consideram \nconfiável e trabalhador.\"`\n }],\n facets: [{\n facet: 1,\n title: 'Autoeficácia',\n text: `Quem pontua alto normalmente tem confiança para realizar as coisas. Se \nsente capaz, acredita que têm a inteligência (senso comum) e autocontrole necessários \npara alcançar o sucesso e lidam tranquilamente com os desafios e dificuldades da vida. \nPessoas com pontuação baixa não se sentem eficazes, e podem se sentir perdidos, como se \nnão estivessem no controle de suas vidas.`\n }, {\n facet: 2,\n title: 'Ordem',\n text: `Pontuação alta indica clareza e abordagem metódica das tarefas. Essas pessoas \ngostam de viver de acordo com rotinas e horários, costumam criar listas e fazer planejamento. \nOrganização é seu sobrenome. Pessoas com baixa pontuação tendem a ser desorganizadas e dispersas.`\n }, {\n facet: 3,\n title: 'Senso de Dever',\n text: `Pessoas conscientes, muito dogmáticas em seus valores. Valorizam o dever e \nobrigação. Têm um forte senso de moral. Pessoas com pontuação baixa consideram regras, \ncontratos e regulamentações exageradas, podendo ser vistos como não confiáveis ou até mesmo \nirresponsáveis.`\n }, {\n facet: 4,\n title: 'Realização-Esforço',\n text: `Disposição para trabalhar duro e são motivados por metas (se esforçam para \nalcançar a excelência). Gostam de se sentir reconhecidos e tem objetivos claros na vida. Às \nvezes a busca por perfeição os tornam 'workaholic', obcecados com o trabalho. Pessoas que \npontuam pouco nessa competência se sentem realizados quando cumprem determinada tarefa com \no mínimo de trabalho/esforço, podendo ser visto como preguiçoso.`\n }, {\n facet: 5,\n title: 'Autodisciplina',\n text: `Alta capacidade de seguir com as tarefas e limitar a distração. Se mantém a \npersistentes mesmo em tarefas difíceis ou que não gostem de fazer. Não procrastinam para \ncomeçar e finalizar tarefas e são extremamente focadas quando iniciam uma atividade. Aqueles \ncom pouca autodisciplina procrastinam e tem mais dificuldade de 'acompanhar o ritmo'. Muitas \nvezes não conseguem completar tarefas, mesmo as que eles queiram muito finalizar.`\n }, {\n facet: 6,\n title: 'Cautela',\n text: `Tendem a refletir cuidadosamente sobre as decisões antes de agir. Pensam nas \npossibilidades e consequências das ações antes de tomar uma decisão. Já os que pontuam baixo \nnormalmente falam/fazem a primeira coisa que vem à mente sem pensar muito nas consequências das \nsuas palavras e ações.`\n }]\n};","module.exports = {\n domain: 'O',\n title: 'Abertura à Experiência',\n shortDescription: 'Pessoas criativas, apreciadores da arte e da beleza e que gostam do novo.',\n description: `Abertura à Experiência retrata pessoas intelectualmente curiosas, \napreciadoras da arte e sensíveis à beleza. Eles tendem a ser, em comparação com \npessoas mais fechadas, mais conscientes de seus sentimentos. Tendem a pensar e agir \nde maneira individualista. A abertura à Experiência está ligada ao intelecto, a \npessoas consideradas intelectuais. Outra característica dessa categoria é a facilidade \npara assimilação de símbolos e ao abstrato. Habilidades intelectuais (pensamento matemático, \nlógico ou geométrico, uso artístico e metafórico da linguagem, performance musical e da \narte visual). Pessoas com notas baixas para \"Abertura para Experiência\" tendem a se \ninteressar pelo comum. Eles preferem o simples, direto e óbvio, são conservadores e \nresistentes à mudança. Pessoas nessa categoria, abertas à experiências, são normalmente \nconsideradas mais maduras, que se adaptam com mais facilidade. No entanto, estilos de \npensamento \"abertos e fechados\" são úteis em diferentes ambientes. O estilo intelectual \nda pessoa aberta pode servir bem a um professor, já o indivíduo que não pontua tanto \npara abertura à experiência pode desempenhar melhor no trabalho policial, \nvendas e uma série de outras ocupações.`,\n results: [{\n score: 'low',\n // do not translate this line\n text: `Sua pontuação para \"abertura para experiência\" é baixa, indicando \nque você gosta de pensar em termos simples e claros. Te descrevem como prático e realista.`\n }, {\n score: 'neutral',\n // do not translate this line\n text: `Sua pontuação para \"abertura para experiência\" é média, indicando que você \ngosta de tradição, mas está disposto a tentar coisas novas. Você costuma pensar de \nmaneira neutra, nem simples nem complicada. Os outros te vêem como uma pessoa educada \nmas não super intelectual.`\n }, {\n score: 'high',\n // do not translate this line\n text: `Sua pontuação para \"abertura para experiência\" é alta, indicando que você \ngosta de novidades, de variar as atividades, e de mudanças. Você é curioso e criativo.`\n }],\n facets: [{\n facet: 1,\n title: 'Fantasia',\n text: `Vida mental ativa, critiva e de forte imaginação. Para essas pessoas o \nmundo real é muito comum, normal e rotineiro, por isso estão sempre criando maneiras \nde fantasiar um mundo mais interessante e fabuloso. Quem não tem uma pontuação alta \npara fantasia são mais orientados por fatos do que imaginação.`\n }, {\n facet: 2,\n title: 'Estética',\n text: `Forte valorização da arte e da beleza, interesse pela poesia, arte e \nmúsica. Essas pessoas normalmente desenvolvem habilidades artísticas e têm \nsensibilidade a eventos naturais e a estética. Já as pessoas que têm baixa pontuação, \ntem pouca ou nenhuma sensibilidade estética e interesse pela arte.`\n }, {\n facet: 3,\n title: 'Emotividade',\n text: `Receptivos e conscientes de seus próprios sentimentos e emoções. \nSentem emoções fortes e tendem a expressá-las abertamente. As pessaos pouco emotivas \ntendem a não expressar suas emoções abertamente.`\n }, {\n facet: 4,\n title: 'Aventura',\n text: `Dispostos a explorar novos lugares, experimentar novos alimentos e \ncomeçar novas atividades. Pessoas aventureiras estão sempre em busca do desconhecido, \ngostam de desbravar lugares e não gostam de rotina. É aquela pessoa que gosta de mudar \na cada dia seu caminho de volta para casa. Ao contrário, as pessoas que pontuam pouco \npara aventura se sentem desconfortáveis com mudanças e preferem rotinas familiares.`\n }, {\n facet: 5,\n title: 'Intelecto',\n text: `Curioso e cheio de ideias. Interesse por argumentos filosóficos. Pessoas \nabertas para o novo e incomum, gostam de debater questões intelectuais, de decifrar \nenigmas e de desafios para a mente. Normalmente se saem melhores em questões de raciocínio \nrápido e lógica. Já as pessoas com pontuação baixa preferem lidar com pessoas em vez de \nideias. Eles consideram os exercícios intelectuais uma perda de tempo.`\n }, {\n facet: 6,\n title: 'Liberalismo',\n text: `Gosta de explorar e avaliar seus próprios valores sociais, políticos e religiosos. \nLiberalismo psicológico refere-se a uma abertura a desafiar autoridade, o convencional e \ntradicional. Demonstra aversão em relação às regras, se questiona com frequência sobre o que \né imposto e aprecia revoluções sociais. Não se importam com estabilidade e segurança, são \ninconformados e entram em conflito com a tradição. Já o contrário, os conservadores psicológicos, \npreferem a segurança e estabilidade. Se sentem bem com o tradicional e normalmente não saem \nda sua zona de conforto.`\n }]\n};","// Generated by CoffeeScript 1.10.0\nvar BRUTEFORCE_CARDINALITY, MIN_GUESSES_BEFORE_GROWING_SEQUENCE, MIN_SUBMATCH_GUESSES_MULTI_CHAR, MIN_SUBMATCH_GUESSES_SINGLE_CHAR, adjacency_graphs, calc_average_degree, k, scoring, v;\nadjacency_graphs = require('./adjacency_graphs');\ncalc_average_degree = function (graph) {\n var average, k, key, n, neighbors, v;\n average = 0;\n for (key in graph) {\n neighbors = graph[key];\n average += function () {\n var len, o, results;\n results = [];\n for (o = 0, len = neighbors.length; o < len; o++) {\n n = neighbors[o];\n if (n) {\n results.push(n);\n }\n }\n return results;\n }().length;\n }\n average /= function () {\n var results;\n results = [];\n for (k in graph) {\n v = graph[k];\n results.push(k);\n }\n return results;\n }().length;\n return average;\n};\nBRUTEFORCE_CARDINALITY = 10;\nMIN_GUESSES_BEFORE_GROWING_SEQUENCE = 10000;\nMIN_SUBMATCH_GUESSES_SINGLE_CHAR = 10;\nMIN_SUBMATCH_GUESSES_MULTI_CHAR = 50;\nscoring = {\n nCk: function (n, k) {\n var d, o, r, ref;\n if (k > n) {\n return 0;\n }\n if (k === 0) {\n return 1;\n }\n r = 1;\n for (d = o = 1, ref = k; 1 <= ref ? o <= ref : o >= ref; d = 1 <= ref ? ++o : --o) {\n r *= n;\n r /= d;\n n -= 1;\n }\n return r;\n },\n log10: function (n) {\n return Math.log(n) / Math.log(10);\n },\n log2: function (n) {\n return Math.log(n) / Math.log(2);\n },\n factorial: function (n) {\n var f, i, o, ref;\n if (n < 2) {\n return 1;\n }\n f = 1;\n for (i = o = 2, ref = n; 2 <= ref ? o <= ref : o >= ref; i = 2 <= ref ? ++o : --o) {\n f *= i;\n }\n return f;\n },\n most_guessable_match_sequence: function (password, matches, _exclude_additive) {\n var _, bruteforce_update, guesses, k, l, len, len1, len2, lst, m, make_bruteforce_match, matches_by_j, n, o, optimal, optimal_l, optimal_match_sequence, q, ref, ref1, u, unwind, update, w;\n if (_exclude_additive == null) {\n _exclude_additive = false;\n }\n n = password.length;\n matches_by_j = function () {\n var o, ref, results;\n results = [];\n for (_ = o = 0, ref = n; 0 <= ref ? o < ref : o > ref; _ = 0 <= ref ? ++o : --o) {\n results.push([]);\n }\n return results;\n }();\n for (o = 0, len = matches.length; o < len; o++) {\n m = matches[o];\n matches_by_j[m.j].push(m);\n }\n for (q = 0, len1 = matches_by_j.length; q < len1; q++) {\n lst = matches_by_j[q];\n lst.sort(function (m1, m2) {\n return m1.i - m2.i;\n });\n }\n optimal = {\n m: function () {\n var ref, results, u;\n results = [];\n for (_ = u = 0, ref = n; 0 <= ref ? u < ref : u > ref; _ = 0 <= ref ? ++u : --u) {\n results.push({});\n }\n return results;\n }(),\n pi: function () {\n var ref, results, u;\n results = [];\n for (_ = u = 0, ref = n; 0 <= ref ? u < ref : u > ref; _ = 0 <= ref ? ++u : --u) {\n results.push({});\n }\n return results;\n }(),\n g: function () {\n var ref, results, u;\n results = [];\n for (_ = u = 0, ref = n; 0 <= ref ? u < ref : u > ref; _ = 0 <= ref ? ++u : --u) {\n results.push({});\n }\n return results;\n }()\n };\n update = function (_this) {\n return function (m, l) {\n var competing_g, competing_l, g, k, pi, ref;\n k = m.j;\n pi = _this.estimate_guesses(m, password);\n if (l > 1) {\n pi *= optimal.pi[m.i - 1][l - 1];\n }\n g = _this.factorial(l) * pi;\n if (!_exclude_additive) {\n g += Math.pow(MIN_GUESSES_BEFORE_GROWING_SEQUENCE, l - 1);\n }\n ref = optimal.g[k];\n for (competing_l in ref) {\n competing_g = ref[competing_l];\n if (competing_l > l) {\n continue;\n }\n if (competing_g <= g) {\n return;\n }\n }\n optimal.g[k][l] = g;\n optimal.m[k][l] = m;\n return optimal.pi[k][l] = pi;\n };\n }(this);\n bruteforce_update = function (_this) {\n return function (k) {\n var i, l, last_m, ref, results, u;\n m = make_bruteforce_match(0, k);\n update(m, 1);\n results = [];\n for (i = u = 1, ref = k; 1 <= ref ? u <= ref : u >= ref; i = 1 <= ref ? ++u : --u) {\n m = make_bruteforce_match(i, k);\n results.push(function () {\n var ref1, results1;\n ref1 = optimal.m[i - 1];\n results1 = [];\n for (l in ref1) {\n last_m = ref1[l];\n l = parseInt(l);\n if (last_m.pattern === 'bruteforce') {\n continue;\n }\n results1.push(update(m, l + 1));\n }\n return results1;\n }());\n }\n return results;\n };\n }(this);\n make_bruteforce_match = function (_this) {\n return function (i, j) {\n return {\n pattern: 'bruteforce',\n token: password.slice(i, +j + 1 || 9e9),\n i: i,\n j: j\n };\n };\n }(this);\n unwind = function (_this) {\n return function (n) {\n var candidate_g, candidate_l, g, k, l, optimal_match_sequence, ref;\n optimal_match_sequence = [];\n k = n - 1;\n l = void 0;\n g = Infinity;\n ref = optimal.g[k];\n for (candidate_l in ref) {\n candidate_g = ref[candidate_l];\n if (candidate_g < g) {\n l = candidate_l;\n g = candidate_g;\n }\n }\n while (k >= 0) {\n m = optimal.m[k][l];\n optimal_match_sequence.unshift(m);\n k = m.i - 1;\n l--;\n }\n return optimal_match_sequence;\n };\n }(this);\n for (k = u = 0, ref = n; 0 <= ref ? u < ref : u > ref; k = 0 <= ref ? ++u : --u) {\n ref1 = matches_by_j[k];\n for (w = 0, len2 = ref1.length; w < len2; w++) {\n m = ref1[w];\n if (m.i > 0) {\n for (l in optimal.m[m.i - 1]) {\n l = parseInt(l);\n update(m, l + 1);\n }\n } else {\n update(m, 1);\n }\n }\n bruteforce_update(k);\n }\n optimal_match_sequence = unwind(n);\n optimal_l = optimal_match_sequence.length;\n if (password.length === 0) {\n guesses = 1;\n } else {\n guesses = optimal.g[n - 1][optimal_l];\n }\n return {\n password: password,\n guesses: guesses,\n guesses_log10: this.log10(guesses),\n sequence: optimal_match_sequence\n };\n },\n estimate_guesses: function (match, password) {\n var estimation_functions, guesses, min_guesses;\n if (match.guesses != null) {\n return match.guesses;\n }\n min_guesses = 1;\n if (match.token.length < password.length) {\n min_guesses = match.token.length === 1 ? MIN_SUBMATCH_GUESSES_SINGLE_CHAR : MIN_SUBMATCH_GUESSES_MULTI_CHAR;\n }\n estimation_functions = {\n bruteforce: this.bruteforce_guesses,\n dictionary: this.dictionary_guesses,\n spatial: this.spatial_guesses,\n repeat: this.repeat_guesses,\n sequence: this.sequence_guesses,\n regex: this.regex_guesses,\n date: this.date_guesses\n };\n guesses = estimation_functions[match.pattern].call(this, match);\n match.guesses = Math.max(guesses, min_guesses);\n match.guesses_log10 = this.log10(match.guesses);\n return match.guesses;\n },\n bruteforce_guesses: function (match) {\n var guesses, min_guesses;\n guesses = Math.pow(BRUTEFORCE_CARDINALITY, match.token.length);\n if (guesses === Number.POSITIVE_INFINITY) {\n guesses = Number.MAX_VALUE;\n }\n min_guesses = match.token.length === 1 ? MIN_SUBMATCH_GUESSES_SINGLE_CHAR + 1 : MIN_SUBMATCH_GUESSES_MULTI_CHAR + 1;\n return Math.max(guesses, min_guesses);\n },\n repeat_guesses: function (match) {\n return match.base_guesses * match.repeat_count;\n },\n sequence_guesses: function (match) {\n var base_guesses, first_chr;\n first_chr = match.token.charAt(0);\n if (first_chr === 'a' || first_chr === 'A' || first_chr === 'z' || first_chr === 'Z' || first_chr === '0' || first_chr === '1' || first_chr === '9') {\n base_guesses = 4;\n } else {\n if (first_chr.match(/\\d/)) {\n base_guesses = 10;\n } else {\n base_guesses = 26;\n }\n }\n if (!match.ascending) {\n base_guesses *= 2;\n }\n return base_guesses * match.token.length;\n },\n MIN_YEAR_SPACE: 20,\n REFERENCE_YEAR: new Date().getFullYear(),\n regex_guesses: function (match) {\n var char_class_bases, year_space;\n char_class_bases = {\n alpha_lower: 26,\n alpha_upper: 26,\n alpha: 52,\n alphanumeric: 62,\n digits: 10,\n symbols: 33\n };\n if (match.regex_name in char_class_bases) {\n return Math.pow(char_class_bases[match.regex_name], match.token.length);\n } else {\n switch (match.regex_name) {\n case 'recent_year':\n year_space = Math.abs(parseInt(match.regex_match[0]) - this.REFERENCE_YEAR);\n year_space = Math.max(year_space, this.MIN_YEAR_SPACE);\n return year_space;\n }\n }\n },\n date_guesses: function (match) {\n var guesses, year_space;\n year_space = Math.max(Math.abs(match.year - this.REFERENCE_YEAR), this.MIN_YEAR_SPACE);\n guesses = year_space * 365;\n if (match.separator) {\n guesses *= 4;\n }\n return guesses;\n },\n KEYBOARD_AVERAGE_DEGREE: calc_average_degree(adjacency_graphs.qwerty),\n KEYPAD_AVERAGE_DEGREE: calc_average_degree(adjacency_graphs.keypad),\n KEYBOARD_STARTING_POSITIONS: function () {\n var ref, results;\n ref = adjacency_graphs.qwerty;\n results = [];\n for (k in ref) {\n v = ref[k];\n results.push(k);\n }\n return results;\n }().length,\n KEYPAD_STARTING_POSITIONS: function () {\n var ref, results;\n ref = adjacency_graphs.keypad;\n results = [];\n for (k in ref) {\n v = ref[k];\n results.push(k);\n }\n return results;\n }().length,\n spatial_guesses: function (match) {\n var L, S, U, d, guesses, i, j, o, possible_turns, q, ref, ref1, ref2, ref3, s, shifted_variations, t, u;\n if ((ref = match.graph) === 'qwerty' || ref === 'dvorak') {\n s = this.KEYBOARD_STARTING_POSITIONS;\n d = this.KEYBOARD_AVERAGE_DEGREE;\n } else {\n s = this.KEYPAD_STARTING_POSITIONS;\n d = this.KEYPAD_AVERAGE_DEGREE;\n }\n guesses = 0;\n L = match.token.length;\n t = match.turns;\n for (i = o = 2, ref1 = L; 2 <= ref1 ? o <= ref1 : o >= ref1; i = 2 <= ref1 ? ++o : --o) {\n possible_turns = Math.min(t, i - 1);\n for (j = q = 1, ref2 = possible_turns; 1 <= ref2 ? q <= ref2 : q >= ref2; j = 1 <= ref2 ? ++q : --q) {\n guesses += this.nCk(i - 1, j - 1) * s * Math.pow(d, j);\n }\n }\n if (match.shifted_count) {\n S = match.shifted_count;\n U = match.token.length - match.shifted_count;\n if (S === 0 || U === 0) {\n guesses *= 2;\n } else {\n shifted_variations = 0;\n for (i = u = 1, ref3 = Math.min(S, U); 1 <= ref3 ? u <= ref3 : u >= ref3; i = 1 <= ref3 ? ++u : --u) {\n shifted_variations += this.nCk(S + U, i);\n }\n guesses *= shifted_variations;\n }\n }\n return guesses;\n },\n dictionary_guesses: function (match) {\n var reversed_variations;\n match.base_guesses = match.rank;\n match.uppercase_variations = this.uppercase_variations(match);\n match.l33t_variations = this.l33t_variations(match);\n reversed_variations = match.reversed && 2 || 1;\n return match.base_guesses * match.uppercase_variations * match.l33t_variations * reversed_variations;\n },\n START_UPPER: /^[A-Z][^A-Z]+$/,\n END_UPPER: /^[^A-Z]+[A-Z]$/,\n ALL_UPPER: /^[^a-z]+$/,\n ALL_LOWER: /^[^A-Z]+$/,\n uppercase_variations: function (match) {\n var L, U, chr, i, len, o, q, ref, ref1, regex, variations, word;\n word = match.token;\n if (word.match(this.ALL_LOWER) || word.toLowerCase() === word) {\n return 1;\n }\n ref = [this.START_UPPER, this.END_UPPER, this.ALL_UPPER];\n for (o = 0, len = ref.length; o < len; o++) {\n regex = ref[o];\n if (word.match(regex)) {\n return 2;\n }\n }\n U = function () {\n var len1, q, ref1, results;\n ref1 = word.split('');\n results = [];\n for (q = 0, len1 = ref1.length; q < len1; q++) {\n chr = ref1[q];\n if (chr.match(/[A-Z]/)) {\n results.push(chr);\n }\n }\n return results;\n }().length;\n L = function () {\n var len1, q, ref1, results;\n ref1 = word.split('');\n results = [];\n for (q = 0, len1 = ref1.length; q < len1; q++) {\n chr = ref1[q];\n if (chr.match(/[a-z]/)) {\n results.push(chr);\n }\n }\n return results;\n }().length;\n variations = 0;\n for (i = q = 1, ref1 = Math.min(U, L); 1 <= ref1 ? q <= ref1 : q >= ref1; i = 1 <= ref1 ? ++q : --q) {\n variations += this.nCk(U + L, i);\n }\n return variations;\n },\n l33t_variations: function (match) {\n var S, U, chr, chrs, i, o, p, possibilities, ref, ref1, subbed, unsubbed, variations;\n if (!match.l33t) {\n return 1;\n }\n variations = 1;\n ref = match.sub;\n for (subbed in ref) {\n unsubbed = ref[subbed];\n chrs = match.token.toLowerCase().split('');\n S = function () {\n var len, o, results;\n results = [];\n for (o = 0, len = chrs.length; o < len; o++) {\n chr = chrs[o];\n if (chr === subbed) {\n results.push(chr);\n }\n }\n return results;\n }().length;\n U = function () {\n var len, o, results;\n results = [];\n for (o = 0, len = chrs.length; o < len; o++) {\n chr = chrs[o];\n if (chr === unsubbed) {\n results.push(chr);\n }\n }\n return results;\n }().length;\n if (S === 0 || U === 0) {\n variations *= 2;\n } else {\n p = Math.min(U, S);\n possibilities = 0;\n for (i = o = 1, ref1 = p; 1 <= ref1 ? o <= ref1 : o >= ref1; i = 1 <= ref1 ? ++o : --o) {\n possibilities += this.nCk(U + S, i);\n }\n variations *= possibilities;\n }\n }\n return variations;\n }\n};\nmodule.exports = scoring;","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n}\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return _setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _createForOfIteratorHelperLoose(o) {\n var i = 0;\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n };\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n i = o[Symbol.iterator]();\n return i.next.bind(i);\n}\n\n// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nvar LuxonError = /*#__PURE__*/function (_Error) {\n _inheritsLoose(LuxonError, _Error);\n function LuxonError() {\n return _Error.apply(this, arguments) || this;\n }\n return LuxonError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n/**\n * @private\n */\n\nvar InvalidDateTimeError = /*#__PURE__*/function (_LuxonError) {\n _inheritsLoose(InvalidDateTimeError, _LuxonError);\n function InvalidDateTimeError(reason) {\n return _LuxonError.call(this, \"Invalid DateTime: \" + reason.toMessage()) || this;\n }\n return InvalidDateTimeError;\n}(LuxonError);\n/**\n * @private\n */\n\nvar InvalidIntervalError = /*#__PURE__*/function (_LuxonError2) {\n _inheritsLoose(InvalidIntervalError, _LuxonError2);\n function InvalidIntervalError(reason) {\n return _LuxonError2.call(this, \"Invalid Interval: \" + reason.toMessage()) || this;\n }\n return InvalidIntervalError;\n}(LuxonError);\n/**\n * @private\n */\n\nvar InvalidDurationError = /*#__PURE__*/function (_LuxonError3) {\n _inheritsLoose(InvalidDurationError, _LuxonError3);\n function InvalidDurationError(reason) {\n return _LuxonError3.call(this, \"Invalid Duration: \" + reason.toMessage()) || this;\n }\n return InvalidDurationError;\n}(LuxonError);\n/**\n * @private\n */\n\nvar ConflictingSpecificationError = /*#__PURE__*/function (_LuxonError4) {\n _inheritsLoose(ConflictingSpecificationError, _LuxonError4);\n function ConflictingSpecificationError() {\n return _LuxonError4.apply(this, arguments) || this;\n }\n return ConflictingSpecificationError;\n}(LuxonError);\n/**\n * @private\n */\n\nvar InvalidUnitError = /*#__PURE__*/function (_LuxonError5) {\n _inheritsLoose(InvalidUnitError, _LuxonError5);\n function InvalidUnitError(unit) {\n return _LuxonError5.call(this, \"Invalid unit \" + unit) || this;\n }\n return InvalidUnitError;\n}(LuxonError);\n/**\n * @private\n */\n\nvar InvalidArgumentError = /*#__PURE__*/function (_LuxonError6) {\n _inheritsLoose(InvalidArgumentError, _LuxonError6);\n function InvalidArgumentError() {\n return _LuxonError6.apply(this, arguments) || this;\n }\n return InvalidArgumentError;\n}(LuxonError);\n/**\n * @private\n */\n\nvar ZoneIsAbstractError = /*#__PURE__*/function (_LuxonError7) {\n _inheritsLoose(ZoneIsAbstractError, _LuxonError7);\n function ZoneIsAbstractError() {\n return _LuxonError7.call(this, \"Zone is an abstract class\") || this;\n }\n return ZoneIsAbstractError;\n}(LuxonError);\n\n/**\n * @private\n */\nvar n = \"numeric\",\n s = \"short\",\n l = \"long\";\nvar DATE_SHORT = {\n year: n,\n month: n,\n day: n\n};\nvar DATE_MED = {\n year: n,\n month: s,\n day: n\n};\nvar DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s\n};\nvar DATE_FULL = {\n year: n,\n month: l,\n day: n\n};\nvar DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l\n};\nvar TIME_SIMPLE = {\n hour: n,\n minute: n\n};\nvar TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n\n};\nvar TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\nvar TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\nvar TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hour12: false\n};\n/**\n * {@link toLocaleString}; format like '09:30:23', always 24-hour.\n */\n\nvar TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hour12: false\n};\n/**\n * {@link toLocaleString}; format like '09:30:23 EDT', always 24-hour.\n */\n\nvar TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hour12: false,\n timeZoneName: s\n};\n/**\n * {@link toLocaleString}; format like '09:30:23 Eastern Daylight Time', always 24-hour.\n */\n\nvar TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hour12: false,\n timeZoneName: l\n};\n/**\n * {@link toLocaleString}; format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n */\n\nvar DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n\n};\n/**\n * {@link toLocaleString}; format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n */\n\nvar DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\nvar DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n\n};\nvar DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\nvar DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n\n};\nvar DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s\n};\nvar DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\nvar DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l\n};\nvar DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\n\n/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n/**\n * @private\n */\n// TYPES\n\nfunction isUndefined(o) {\n return typeof o === \"undefined\";\n}\nfunction isNumber(o) {\n return typeof o === \"number\";\n}\nfunction isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\nfunction isString(o) {\n return typeof o === \"string\";\n}\nfunction isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n} // CAPABILITIES\n\nfunction hasIntl() {\n try {\n return typeof Intl !== \"undefined\" && Intl.DateTimeFormat;\n } catch (e) {\n return false;\n }\n}\nfunction hasFormatToParts() {\n return !isUndefined(Intl.DateTimeFormat.prototype.formatToParts);\n}\nfunction hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n} // OBJECTS AND ARRAYS\n\nfunction maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\nfunction bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce(function (best, next) {\n var pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\nfunction pick(obj, keys) {\n return keys.reduce(function (a, k) {\n a[k] = obj[k];\n return a;\n }, {});\n}\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n} // NUMBERS AND STRINGS\n\nfunction integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n} // x % n but takes the sign of n instead of x\n\nfunction floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\nfunction padStart(input, n) {\n if (n === void 0) {\n n = 2;\n }\n var minus = input < 0 ? \"-\" : \"\";\n var target = minus ? input * -1 : input;\n var result;\n if (target.toString().length < n) {\n result = (\"0\".repeat(n) + target).slice(-n);\n } else {\n result = target.toString();\n }\n return \"\" + minus + result;\n}\nfunction parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\nfunction parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n var f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\nfunction roundTo(number, digits, towardZero) {\n if (towardZero === void 0) {\n towardZero = false;\n }\n var factor = Math.pow(10, digits),\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n} // DATE BASICS\n\nfunction isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nfunction daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\nfunction daysInMonth(year, month) {\n var modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n} // covert a calendar object to a local timestamp (epoch, but with the offset baked in)\n\nfunction objToLocalTS(obj) {\n var d = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond); // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n return +d;\n}\nfunction weeksInWeekYear(weekYear) {\n var p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7,\n last = weekYear - 1,\n p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7;\n return p1 === 4 || p2 === 3 ? 53 : 52;\n}\nfunction untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > 60 ? 1900 + year : 2000 + year;\n} // PARSING\n\nfunction parseZoneInfo(ts, offsetFormat, locale, timeZone) {\n if (timeZone === void 0) {\n timeZone = null;\n }\n var date = new Date(ts),\n intlOpts = {\n hour12: false,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\"\n };\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n var modified = Object.assign({\n timeZoneName: offsetFormat\n }, intlOpts),\n intl = hasIntl();\n if (intl && hasFormatToParts()) {\n var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function (m) {\n return m.type.toLowerCase() === \"timezonename\";\n });\n return parsed ? parsed.value : null;\n } else if (intl) {\n // this probably doesn't work for all locales\n var without = new Intl.DateTimeFormat(locale, intlOpts).format(date),\n included = new Intl.DateTimeFormat(locale, modified).format(date),\n diffed = included.substring(without.length),\n trimmed = diffed.replace(/^[, \\u200e]+/, \"\");\n return trimmed;\n } else {\n return null;\n }\n} // signedOffset('-5', '30') -> -330\n\nfunction signedOffset(offHourStr, offMinuteStr) {\n var offHour = parseInt(offHourStr, 10); // don't || this because we want to preserve -0\n\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n var offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n} // COERCION\n\nfunction asNumber(value) {\n var numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue)) throw new InvalidArgumentError(\"Invalid unit value \" + value);\n return numericValue;\n}\nfunction normalizeObject(obj, normalizer, nonUnitKeys) {\n var normalized = {};\n for (var u in obj) {\n if (hasOwnProperty(obj, u)) {\n if (nonUnitKeys.indexOf(u) >= 0) continue;\n var v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\nfunction formatOffset(offset, format) {\n var hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n switch (format) {\n case \"short\":\n return \"\" + sign + padStart(hours, 2) + \":\" + padStart(minutes, 2);\n case \"narrow\":\n return \"\" + sign + hours + (minutes > 0 ? \":\" + minutes : \"\");\n case \"techie\":\n return \"\" + sign + padStart(hours, 2) + padStart(minutes, 2);\n default:\n throw new RangeError(\"Value format \" + format + \" is out of range for property format\");\n }\n}\nfunction timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\nvar ianaRegex = /[A-Za-z_+-]{1,256}(:?\\/[A-Za-z_+-]{1,256}(\\/[A-Za-z_+-]{1,256})?)?/;\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n/**\n * @private\n */\n\nvar monthsLong = [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"];\nvar monthsShort = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\nvar monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\nfunction months(length) {\n switch (length) {\n case \"narrow\":\n return [].concat(monthsNarrow);\n case \"short\":\n return [].concat(monthsShort);\n case \"long\":\n return [].concat(monthsLong);\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\nvar weekdaysLong = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"];\nvar weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\nvar weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\nfunction weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [].concat(weekdaysNarrow);\n case \"short\":\n return [].concat(weekdaysShort);\n case \"long\":\n return [].concat(weekdaysLong);\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\nvar meridiems = [\"AM\", \"PM\"];\nvar erasLong = [\"Before Christ\", \"Anno Domini\"];\nvar erasShort = [\"BC\", \"AD\"];\nvar erasNarrow = [\"B\", \"A\"];\nfunction eras(length) {\n switch (length) {\n case \"narrow\":\n return [].concat(erasNarrow);\n case \"short\":\n return [].concat(erasShort);\n case \"long\":\n return [].concat(erasLong);\n default:\n return null;\n }\n}\nfunction meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\nfunction weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\nfunction monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\nfunction eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\nfunction formatRelativeTime(unit, count, numeric, narrow) {\n if (numeric === void 0) {\n numeric = \"always\";\n }\n if (narrow === void 0) {\n narrow = false;\n }\n var units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"]\n };\n var lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n if (numeric === \"auto\" && lastable) {\n var isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : \"next \" + units[unit][0];\n case -1:\n return isDay ? \"yesterday\" : \"last \" + units[unit][0];\n case 0:\n return isDay ? \"today\" : \"this \" + units[unit][0];\n }\n }\n var isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit;\n return isInPast ? fmtValue + \" \" + fmtUnit + \" ago\" : \"in \" + fmtValue + \" \" + fmtUnit;\n}\nfunction formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n var filtered = pick(knownFormat, [\"weekday\", \"era\", \"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"timeZoneName\", \"hour12\"]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(DATE_MED_WITH_WEEKDAY):\n return \"EEE, LLL d, yyyy\";\n case stringify(DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\nfunction stringifyTokens(splits, tokenToString) {\n var s = \"\";\n for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done;) {\n var token = _step.value;\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\nvar _macroTokenToFormatOpts = {\n D: DATE_SHORT,\n DD: DATE_MED,\n DDD: DATE_FULL,\n DDDD: DATE_HUGE,\n t: TIME_SIMPLE,\n tt: TIME_WITH_SECONDS,\n ttt: TIME_WITH_SHORT_OFFSET,\n tttt: TIME_WITH_LONG_OFFSET,\n T: TIME_24_SIMPLE,\n TT: TIME_24_WITH_SECONDS,\n TTT: TIME_24_WITH_SHORT_OFFSET,\n TTTT: TIME_24_WITH_LONG_OFFSET,\n f: DATETIME_SHORT,\n ff: DATETIME_MED,\n fff: DATETIME_FULL,\n ffff: DATETIME_HUGE,\n F: DATETIME_SHORT_WITH_SECONDS,\n FF: DATETIME_MED_WITH_SECONDS,\n FFF: DATETIME_FULL_WITH_SECONDS,\n FFFF: DATETIME_HUGE_WITH_SECONDS\n};\n/**\n * @private\n */\n\nvar Formatter = /*#__PURE__*/function () {\n Formatter.create = function create(locale, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return new Formatter(locale, opts);\n };\n Formatter.parseFormat = function parseFormat(fmt) {\n var current = null,\n currentFull = \"\",\n bracketed = false;\n var splits = [];\n for (var i = 0; i < fmt.length; i++) {\n var c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({\n literal: bracketed,\n val: currentFull\n });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({\n literal: false,\n val: currentFull\n });\n }\n currentFull = c;\n current = c;\n }\n }\n if (currentFull.length > 0) {\n splits.push({\n literal: bracketed,\n val: currentFull\n });\n }\n return splits;\n };\n Formatter.macroTokenToFormatOpts = function macroTokenToFormatOpts(token) {\n return _macroTokenToFormatOpts[token];\n };\n function Formatter(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n var _proto = Formatter.prototype;\n _proto.formatWithSystemDefault = function formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n var df = this.systemLoc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.format();\n };\n _proto.formatDateTime = function formatDateTime(dt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.format();\n };\n _proto.formatDateTimeParts = function formatDateTimeParts(dt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.formatToParts();\n };\n _proto.resolvedOptions = function resolvedOptions(dt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.resolvedOptions();\n };\n _proto.num = function num(n, p) {\n if (p === void 0) {\n p = 0;\n }\n\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n var opts = Object.assign({}, this.opts);\n if (p > 0) {\n opts.padTo = p;\n }\n return this.loc.numberFormatter(opts).format(n);\n };\n _proto.formatDateTimeFromString = function formatDateTimeFromString(dt, fmt) {\n var _this = this;\n var knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\" && hasFormatToParts(),\n string = function string(opts, extract) {\n return _this.loc.extract(dt, opts, extract);\n },\n formatOffset = function formatOffset(opts) {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = function meridiem() {\n return knownEnglish ? meridiemForDateTime(dt) : string({\n hour: \"numeric\",\n hour12: true\n }, \"dayperiod\");\n },\n month = function month(length, standalone) {\n return knownEnglish ? monthForDateTime(dt, length) : string(standalone ? {\n month: length\n } : {\n month: length,\n day: \"numeric\"\n }, \"month\");\n },\n weekday = function weekday(length, standalone) {\n return knownEnglish ? weekdayForDateTime(dt, length) : string(standalone ? {\n weekday: length\n } : {\n weekday: length,\n month: \"long\",\n day: \"numeric\"\n }, \"weekday\");\n },\n maybeMacro = function maybeMacro(token) {\n var formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return _this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = function era(length) {\n return knownEnglish ? eraForDateTime(dt, length) : string({\n era: length\n }, \"era\");\n },\n tokenToString = function tokenToString(token) {\n // Where possible: http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles\n switch (token) {\n // ms\n case \"S\":\n return _this.num(dt.millisecond);\n case \"u\": // falls through\n\n case \"SSS\":\n return _this.num(dt.millisecond, 3);\n // seconds\n\n case \"s\":\n return _this.num(dt.second);\n case \"ss\":\n return _this.num(dt.second, 2);\n // minutes\n\n case \"m\":\n return _this.num(dt.minute);\n case \"mm\":\n return _this.num(dt.minute, 2);\n // hours\n\n case \"h\":\n return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return _this.num(dt.hour);\n case \"HH\":\n return _this.num(dt.hour, 2);\n // offset\n\n case \"Z\":\n // like +6\n return formatOffset({\n format: \"narrow\",\n allowZ: _this.opts.allowZ\n });\n case \"ZZ\":\n // like +06:00\n return formatOffset({\n format: \"short\",\n allowZ: _this.opts.allowZ\n });\n case \"ZZZ\":\n // like +0600\n return formatOffset({\n format: \"techie\",\n allowZ: _this.opts.allowZ\n });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, {\n format: \"short\",\n locale: _this.loc.locale\n });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, {\n format: \"long\",\n locale: _this.loc.locale\n });\n // zone\n\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n\n case \"a\":\n return meridiem();\n // dates\n\n case \"d\":\n return useDateTimeFormatter ? string({\n day: \"numeric\"\n }, \"day\") : _this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({\n day: \"2-digit\"\n }, \"day\") : _this.num(dt.day, 2);\n // weekdays - standalone\n\n case \"c\":\n // like 1\n return _this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n\n case \"E\":\n // like 1\n return _this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n\n case \"L\":\n // like 1\n return useDateTimeFormatter ? string({\n month: \"numeric\",\n day: \"numeric\"\n }, \"month\") : _this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter ? string({\n month: \"2-digit\",\n day: \"numeric\"\n }, \"month\") : _this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n\n case \"M\":\n // like 1\n return useDateTimeFormatter ? string({\n month: \"numeric\"\n }, \"month\") : _this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter ? string({\n month: \"2-digit\"\n }, \"month\") : _this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({\n year: \"numeric\"\n }, \"year\") : _this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter ? string({\n year: \"2-digit\"\n }, \"year\") : _this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter ? string({\n year: \"numeric\"\n }, \"year\") : _this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter ? string({\n year: \"numeric\"\n }, \"year\") : _this.num(dt.year, 6);\n // eras\n\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return _this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return _this.num(dt.weekYear, 4);\n case \"W\":\n return _this.num(dt.weekNumber);\n case \"WW\":\n return _this.num(dt.weekNumber, 2);\n case \"o\":\n return _this.num(dt.ordinal);\n case \"ooo\":\n return _this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return _this.num(dt.quarter);\n case \"qq\":\n // like 01\n return _this.num(dt.quarter, 2);\n case \"X\":\n return _this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return _this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n };\n _proto.formatDurationFromString = function formatDurationFromString(dur, fmt) {\n var _this2 = this;\n var tokenToField = function tokenToField(token) {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = function tokenToString(lildur) {\n return function (token) {\n var mapped = tokenToField(token);\n if (mapped) {\n return _this2.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n };\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(function (found, _ref) {\n var literal = _ref.literal,\n val = _ref.val;\n return literal ? found : found.concat(val);\n }, []),\n collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {\n return t;\n }));\n return stringifyTokens(tokens, tokenToString(collapsed));\n };\n return Formatter;\n}();\nvar Invalid = /*#__PURE__*/function () {\n function Invalid(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n var _proto = Invalid.prototype;\n _proto.toMessage = function toMessage() {\n if (this.explanation) {\n return this.reason + \": \" + this.explanation;\n } else {\n return this.reason;\n }\n };\n return Invalid;\n}();\n\n/**\n * @interface\n */\n\nvar Zone = /*#__PURE__*/function () {\n function Zone() {}\n var _proto = Zone.prototype;\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n _proto.offsetName = function offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */;\n\n _proto.formatOffset = function formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */;\n\n _proto.offset = function offset(ts) {\n throw new ZoneIsAbstractError();\n }\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */;\n\n _proto.equals = function equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */;\n\n _createClass(Zone, [{\n key: \"type\",\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get: function get() {\n throw new ZoneIsAbstractError();\n }\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n }, {\n key: \"name\",\n get: function get() {\n throw new ZoneIsAbstractError();\n }\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n }, {\n key: \"universal\",\n get: function get() {\n throw new ZoneIsAbstractError();\n }\n }, {\n key: \"isValid\",\n get: function get() {\n throw new ZoneIsAbstractError();\n }\n }]);\n return Zone;\n}();\nvar singleton = null;\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\n\nvar LocalZone = /*#__PURE__*/function (_Zone) {\n _inheritsLoose(LocalZone, _Zone);\n function LocalZone() {\n return _Zone.apply(this, arguments) || this;\n }\n var _proto = LocalZone.prototype;\n\n /** @override **/\n _proto.offsetName = function offsetName(ts, _ref) {\n var format = _ref.format,\n locale = _ref.locale;\n return parseZoneInfo(ts, format, locale);\n }\n /** @override **/;\n\n _proto.formatOffset = function formatOffset$1(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n /** @override **/;\n\n _proto.offset = function offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n /** @override **/;\n\n _proto.equals = function equals(otherZone) {\n return otherZone.type === \"local\";\n }\n /** @override **/;\n\n _createClass(LocalZone, [{\n key: \"type\",\n /** @override **/\n get: function get() {\n return \"local\";\n }\n /** @override **/\n }, {\n key: \"name\",\n get: function get() {\n if (hasIntl()) {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n } else return \"local\";\n }\n /** @override **/\n }, {\n key: \"universal\",\n get: function get() {\n return false;\n }\n }, {\n key: \"isValid\",\n get: function get() {\n return true;\n }\n }], [{\n key: \"instance\",\n /**\n * Get a singleton instance of the local zone\n * @return {LocalZone}\n */\n get: function get() {\n if (singleton === null) {\n singleton = new LocalZone();\n }\n return singleton;\n }\n }]);\n return LocalZone;\n}(Zone);\nvar matchingRegex = RegExp(\"^\" + ianaRegex.source + \"$\");\nvar dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\"\n });\n }\n return dtfCache[zone];\n}\nvar typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5\n};\nfunction hackyOffset(dtf, date) {\n var formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n fMonth = parsed[1],\n fDay = parsed[2],\n fYear = parsed[3],\n fHour = parsed[4],\n fMinute = parsed[5],\n fSecond = parsed[6];\n return [fYear, fMonth, fDay, fHour, fMinute, fSecond];\n}\nfunction partsOffset(dtf, date) {\n var formatted = dtf.formatToParts(date),\n filled = [];\n for (var i = 0; i < formatted.length; i++) {\n var _formatted$i = formatted[i],\n type = _formatted$i.type,\n value = _formatted$i.value,\n pos = typeToPos[type];\n if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\nvar ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\n\nvar IANAZone = /*#__PURE__*/function (_Zone) {\n _inheritsLoose(IANAZone, _Zone);\n\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n IANAZone.create = function create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */;\n\n IANAZone.resetCache = function resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Fantasia/Castle\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */;\n\n IANAZone.isValidSpecifier = function isValidSpecifier(s) {\n return !!(s && s.match(matchingRegex));\n }\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */;\n\n IANAZone.isValidZone = function isValidZone(zone) {\n try {\n new Intl.DateTimeFormat(\"en-US\", {\n timeZone: zone\n }).format();\n return true;\n } catch (e) {\n return false;\n }\n } // Etc/GMT+8 -> -480\n\n /** @ignore */;\n\n IANAZone.parseGMTOffset = function parseGMTOffset(specifier) {\n if (specifier) {\n var match = specifier.match(/^Etc\\/GMT(0|[+-]\\d{1,2})$/i);\n if (match) {\n return -60 * parseInt(match[1]);\n }\n }\n return null;\n };\n function IANAZone(name) {\n var _this;\n _this = _Zone.call(this) || this;\n /** @private **/\n\n _this.zoneName = name;\n /** @private **/\n\n _this.valid = IANAZone.isValidZone(name);\n return _this;\n }\n /** @override **/\n\n var _proto = IANAZone.prototype;\n\n /** @override **/\n _proto.offsetName = function offsetName(ts, _ref) {\n var format = _ref.format,\n locale = _ref.locale;\n return parseZoneInfo(ts, format, locale, this.name);\n }\n /** @override **/;\n\n _proto.formatOffset = function formatOffset$1(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n /** @override **/;\n\n _proto.offset = function offset(ts) {\n var date = new Date(ts);\n if (isNaN(date)) return NaN;\n var dtf = makeDTF(this.name),\n _ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),\n year = _ref2[0],\n month = _ref2[1],\n day = _ref2[2],\n hour = _ref2[3],\n minute = _ref2[4],\n second = _ref2[5],\n adjustedHour = hour === 24 ? 0 : hour;\n var asUTC = objToLocalTS({\n year: year,\n month: month,\n day: day,\n hour: adjustedHour,\n minute: minute,\n second: second,\n millisecond: 0\n });\n var asTS = +date;\n var over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n /** @override **/;\n\n _proto.equals = function equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n /** @override **/;\n\n _createClass(IANAZone, [{\n key: \"type\",\n get: function get() {\n return \"iana\";\n }\n /** @override **/\n }, {\n key: \"name\",\n get: function get() {\n return this.zoneName;\n }\n /** @override **/\n }, {\n key: \"universal\",\n get: function get() {\n return false;\n }\n }, {\n key: \"isValid\",\n get: function get() {\n return this.valid;\n }\n }]);\n return IANAZone;\n}(Zone);\nvar singleton$1 = null;\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\n\nvar FixedOffsetZone = /*#__PURE__*/function (_Zone) {\n _inheritsLoose(FixedOffsetZone, _Zone);\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n FixedOffsetZone.instance = function instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */;\n\n FixedOffsetZone.parseSpecifier = function parseSpecifier(s) {\n if (s) {\n var r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n };\n _createClass(FixedOffsetZone, null, [{\n key: \"utcInstance\",\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n get: function get() {\n if (singleton$1 === null) {\n singleton$1 = new FixedOffsetZone(0);\n }\n return singleton$1;\n }\n }]);\n function FixedOffsetZone(offset) {\n var _this;\n _this = _Zone.call(this) || this;\n /** @private **/\n\n _this.fixed = offset;\n return _this;\n }\n /** @override **/\n\n var _proto = FixedOffsetZone.prototype;\n\n /** @override **/\n _proto.offsetName = function offsetName() {\n return this.name;\n }\n /** @override **/;\n\n _proto.formatOffset = function formatOffset$1(ts, format) {\n return formatOffset(this.fixed, format);\n }\n /** @override **/;\n\n /** @override **/\n _proto.offset = function offset() {\n return this.fixed;\n }\n /** @override **/;\n\n _proto.equals = function equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n /** @override **/;\n\n _createClass(FixedOffsetZone, [{\n key: \"type\",\n get: function get() {\n return \"fixed\";\n }\n /** @override **/\n }, {\n key: \"name\",\n get: function get() {\n return this.fixed === 0 ? \"UTC\" : \"UTC\" + formatOffset(this.fixed, \"narrow\");\n }\n }, {\n key: \"universal\",\n get: function get() {\n return true;\n }\n }, {\n key: \"isValid\",\n get: function get() {\n return true;\n }\n }]);\n return FixedOffsetZone;\n}(Zone);\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\n\nvar InvalidZone = /*#__PURE__*/function (_Zone) {\n _inheritsLoose(InvalidZone, _Zone);\n function InvalidZone(zoneName) {\n var _this;\n _this = _Zone.call(this) || this;\n /** @private */\n\n _this.zoneName = zoneName;\n return _this;\n }\n /** @override **/\n\n var _proto = InvalidZone.prototype;\n\n /** @override **/\n _proto.offsetName = function offsetName() {\n return null;\n }\n /** @override **/;\n\n _proto.formatOffset = function formatOffset() {\n return \"\";\n }\n /** @override **/;\n\n _proto.offset = function offset() {\n return NaN;\n }\n /** @override **/;\n\n _proto.equals = function equals() {\n return false;\n }\n /** @override **/;\n\n _createClass(InvalidZone, [{\n key: \"type\",\n get: function get() {\n return \"invalid\";\n }\n /** @override **/\n }, {\n key: \"name\",\n get: function get() {\n return this.zoneName;\n }\n /** @override **/\n }, {\n key: \"universal\",\n get: function get() {\n return false;\n }\n }, {\n key: \"isValid\",\n get: function get() {\n return false;\n }\n }]);\n return InvalidZone;\n}(Zone);\n\n/**\n * @private\n */\nfunction normalizeZone(input, defaultZone) {\n var offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n var lowered = input.toLowerCase();\n if (lowered === \"local\") return defaultZone;else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;else if ((offset = IANAZone.parseGMTOffset(input)) != null) {\n // handle Etc/GMT-4, which V8 chokes on\n return FixedOffsetZone.instance(offset);\n } else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && input.offset && typeof input.offset === \"number\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\nvar now = function now() {\n return Date.now();\n },\n defaultZone = null,\n // not setting this directly to LocalZone.instance bc loading order issues\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n throwOnInvalid = false;\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\n\nvar Settings = /*#__PURE__*/function () {\n function Settings() {}\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n Settings.resetCaches = function resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n };\n _createClass(Settings, null, [{\n key: \"now\",\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n get: function get() {\n return now;\n }\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */,\n\n set: function set(n) {\n now = n;\n }\n /**\n * Get the default time zone to create DateTimes in.\n * @type {string}\n */\n }, {\n key: \"defaultZoneName\",\n get: function get() {\n return Settings.defaultZone.name;\n }\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * @type {string}\n */,\n\n set: function set(z) {\n if (!z) {\n defaultZone = null;\n } else {\n defaultZone = normalizeZone(z);\n }\n }\n /**\n * Get the default time zone object to create DateTimes in. Does not affect existing instances.\n * @type {Zone}\n */\n }, {\n key: \"defaultZone\",\n get: function get() {\n return defaultZone || LocalZone.instance;\n }\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n }, {\n key: \"defaultLocale\",\n get: function get() {\n return defaultLocale;\n }\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */,\n\n set: function set(locale) {\n defaultLocale = locale;\n }\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n }, {\n key: \"defaultNumberingSystem\",\n get: function get() {\n return defaultNumberingSystem;\n }\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */,\n\n set: function set(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n }, {\n key: \"defaultOutputCalendar\",\n get: function get() {\n return defaultOutputCalendar;\n }\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */,\n\n set: function set(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n }, {\n key: \"throwOnInvalid\",\n get: function get() {\n return throwOnInvalid;\n }\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */,\n\n set: function set(t) {\n throwOnInvalid = t;\n }\n }]);\n return Settings;\n}();\nvar intlDTCache = {};\nfunction getCachedDTF(locString, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var key = JSON.stringify([locString, opts]);\n var dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\nvar intlNumCache = {};\nfunction getCachedINF(locString, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var key = JSON.stringify([locString, opts]);\n var inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\nvar intlRelCache = {};\nfunction getCachedRTF(locString, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var _opts = opts,\n base = _opts.base,\n cacheKeyOpts = _objectWithoutPropertiesLoose(_opts, [\"base\"]); // exclude `base` from the options\n\n var key = JSON.stringify([locString, cacheKeyOpts]);\n var inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\nvar sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else if (hasIntl()) {\n var computedSys = new Intl.DateTimeFormat().resolvedOptions().locale; // node sometimes defaults to \"und\". Override that because that is dumb\n\n sysLocaleCache = !computedSys || computedSys === \"und\" ? \"en-US\" : computedSys;\n return sysLocaleCache;\n } else {\n sysLocaleCache = \"en-US\";\n return sysLocaleCache;\n }\n}\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n var uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n var options;\n var smaller = localeStr.substring(0, uIndex);\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n } catch (e) {\n options = getCachedDTF(smaller).resolvedOptions();\n }\n var _options = options,\n numberingSystem = _options.numberingSystem,\n calendar = _options.calendar; // return the smaller one so that we can append the calendar and numbering overrides to it\n\n return [smaller, numberingSystem, calendar];\n }\n}\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (hasIntl()) {\n if (outputCalendar || numberingSystem) {\n localeStr += \"-u\";\n if (outputCalendar) {\n localeStr += \"-ca-\" + outputCalendar;\n }\n if (numberingSystem) {\n localeStr += \"-nu-\" + numberingSystem;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n } else {\n return [];\n }\n}\nfunction mapMonths(f) {\n var ms = [];\n for (var i = 1; i <= 12; i++) {\n var dt = DateTime.utc(2016, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\nfunction mapWeekdays(f) {\n var ms = [];\n for (var i = 1; i <= 7; i++) {\n var dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\nfunction listStuff(loc, length, defaultOK, englishFn, intlFn) {\n var mode = loc.listingMode(defaultOK);\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return loc.numberingSystem === \"latn\" || !loc.locale || loc.locale.startsWith(\"en\") || hasIntl() && new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\";\n }\n}\n/**\n * @private\n */\n\nvar PolyNumberFormatter = /*#__PURE__*/function () {\n function PolyNumberFormatter(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n if (!forceSimple && hasIntl()) {\n var intlOpts = {\n useGrouping: false\n };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n var _proto = PolyNumberFormatter.prototype;\n _proto.format = function format(i) {\n if (this.inf) {\n var fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n var _fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(_fixed, this.padTo);\n }\n };\n return PolyNumberFormatter;\n}();\n/**\n * @private\n */\n\nvar PolyDateFormatter = /*#__PURE__*/function () {\n function PolyDateFormatter(dt, intl, opts) {\n this.opts = opts;\n this.hasIntl = hasIntl();\n var z;\n if (dt.zone.universal && this.hasIntl) {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n var gmtOffset = -1 * (dt.offset / 60);\n var offsetZ = gmtOffset >= 0 ? \"Etc/GMT+\" + gmtOffset : \"Etc/GMT\" + gmtOffset;\n var isOffsetZoneSupported = IANAZone.isValidZone(offsetZ);\n if (dt.offset !== 0 && isOffsetZoneSupported) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata.\n // So we have to make do. Two cases:\n // 1. The format options tell us to show the zone. We can't do that, so the best\n // we can do is format the date in UTC.\n // 2. The format options don't tell us to show the zone. Then we can adjust them\n // the time and tell the formatter to show it to us in UTC, so that the time is right\n // and the bad zone doesn't show up.\n z = \"UTC\";\n if (opts.timeZoneName) {\n this.dt = dt;\n } else {\n this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1000);\n }\n }\n } else if (dt.zone.type === \"local\") {\n this.dt = dt;\n } else {\n this.dt = dt;\n z = dt.zone.name;\n }\n if (this.hasIntl) {\n var intlOpts = Object.assign({}, this.opts);\n if (z) {\n intlOpts.timeZone = z;\n }\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n }\n var _proto2 = PolyDateFormatter.prototype;\n _proto2.format = function format() {\n if (this.hasIntl) {\n return this.dtf.format(this.dt.toJSDate());\n } else {\n var tokenFormat = formatString(this.opts),\n loc = Locale.create(\"en-US\");\n return Formatter.create(loc).formatDateTimeFromString(this.dt, tokenFormat);\n }\n };\n _proto2.formatToParts = function formatToParts() {\n if (this.hasIntl && hasFormatToParts()) {\n return this.dtf.formatToParts(this.dt.toJSDate());\n } else {\n // This is kind of a cop out. We actually could do this for English. However, we couldn't do it for intl strings\n // and IMO it's too weird to have an uncanny valley like that\n return [];\n }\n };\n _proto2.resolvedOptions = function resolvedOptions() {\n if (this.hasIntl) {\n return this.dtf.resolvedOptions();\n } else {\n return {\n locale: \"en-US\",\n numberingSystem: \"latn\",\n outputCalendar: \"gregory\"\n };\n }\n };\n return PolyDateFormatter;\n}();\n/**\n * @private\n */\n\nvar PolyRelFormatter = /*#__PURE__*/function () {\n function PolyRelFormatter(intl, isEnglish, opts) {\n this.opts = Object.assign({\n style: \"long\"\n }, opts);\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n var _proto3 = PolyRelFormatter.prototype;\n _proto3.format = function format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n };\n _proto3.formatToParts = function formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n };\n return PolyRelFormatter;\n}();\n/**\n * @private\n */\n\nvar Locale = /*#__PURE__*/function () {\n Locale.fromOpts = function fromOpts(opts) {\n return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);\n };\n Locale.create = function create(locale, numberingSystem, outputCalendar, defaultToEN) {\n if (defaultToEN === void 0) {\n defaultToEN = false;\n }\n var specifiedLocale = locale || Settings.defaultLocale,\n // the system locale is useful for human readable strings but annoying for parsing/formatting known formats\n localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale()),\n numberingSystemR = numberingSystem || Settings.defaultNumberingSystem,\n outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);\n };\n Locale.resetCache = function resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n };\n Locale.fromObject = function fromObject(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n locale = _ref.locale,\n numberingSystem = _ref.numberingSystem,\n outputCalendar = _ref.outputCalendar;\n return Locale.create(locale, numberingSystem, outputCalendar);\n };\n function Locale(locale, numbering, outputCalendar, specifiedLocale) {\n var _parseLocaleString = parseLocaleString(locale),\n parsedLocale = _parseLocaleString[0],\n parsedNumberingSystem = _parseLocaleString[1],\n parsedOutputCalendar = _parseLocaleString[2];\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n this.weekdaysCache = {\n format: {},\n standalone: {}\n };\n this.monthsCache = {\n format: {},\n standalone: {}\n };\n this.meridiemCache = null;\n this.eraCache = {};\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n var _proto4 = Locale.prototype;\n _proto4.listingMode = function listingMode(defaultOK) {\n if (defaultOK === void 0) {\n defaultOK = true;\n }\n var intl = hasIntl(),\n hasFTP = intl && hasFormatToParts(),\n isActuallyEn = this.isEnglish(),\n hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === \"latn\") && (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n if (!hasFTP && !(isActuallyEn && hasNoWeirdness) && !defaultOK) {\n return \"error\";\n } else if (!hasFTP || isActuallyEn && hasNoWeirdness) {\n return \"en\";\n } else {\n return \"intl\";\n }\n };\n _proto4.clone = function clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(alts.locale || this.specifiedLocale, alts.numberingSystem || this.numberingSystem, alts.outputCalendar || this.outputCalendar, alts.defaultToEN || false);\n }\n };\n _proto4.redefaultToEN = function redefaultToEN(alts) {\n if (alts === void 0) {\n alts = {};\n }\n return this.clone(Object.assign({}, alts, {\n defaultToEN: true\n }));\n };\n _proto4.redefaultToSystem = function redefaultToSystem(alts) {\n if (alts === void 0) {\n alts = {};\n }\n return this.clone(Object.assign({}, alts, {\n defaultToEN: false\n }));\n };\n _proto4.months = function months$1(length, format, defaultOK) {\n var _this = this;\n if (format === void 0) {\n format = false;\n }\n if (defaultOK === void 0) {\n defaultOK = true;\n }\n return listStuff(this, length, defaultOK, months, function () {\n var intl = format ? {\n month: length,\n day: \"numeric\"\n } : {\n month: length\n },\n formatStr = format ? \"format\" : \"standalone\";\n if (!_this.monthsCache[formatStr][length]) {\n _this.monthsCache[formatStr][length] = mapMonths(function (dt) {\n return _this.extract(dt, intl, \"month\");\n });\n }\n return _this.monthsCache[formatStr][length];\n });\n };\n _proto4.weekdays = function weekdays$1(length, format, defaultOK) {\n var _this2 = this;\n if (format === void 0) {\n format = false;\n }\n if (defaultOK === void 0) {\n defaultOK = true;\n }\n return listStuff(this, length, defaultOK, weekdays, function () {\n var intl = format ? {\n weekday: length,\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\"\n } : {\n weekday: length\n },\n formatStr = format ? \"format\" : \"standalone\";\n if (!_this2.weekdaysCache[formatStr][length]) {\n _this2.weekdaysCache[formatStr][length] = mapWeekdays(function (dt) {\n return _this2.extract(dt, intl, \"weekday\");\n });\n }\n return _this2.weekdaysCache[formatStr][length];\n });\n };\n _proto4.meridiems = function meridiems$1(defaultOK) {\n var _this3 = this;\n if (defaultOK === void 0) {\n defaultOK = true;\n }\n return listStuff(this, undefined, defaultOK, function () {\n return meridiems;\n }, function () {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!_this3.meridiemCache) {\n var intl = {\n hour: \"numeric\",\n hour12: true\n };\n _this3.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(function (dt) {\n return _this3.extract(dt, intl, \"dayperiod\");\n });\n }\n return _this3.meridiemCache;\n });\n };\n _proto4.eras = function eras$1(length, defaultOK) {\n var _this4 = this;\n if (defaultOK === void 0) {\n defaultOK = true;\n }\n return listStuff(this, length, defaultOK, eras, function () {\n var intl = {\n era: length\n }; // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n\n if (!_this4.eraCache[length]) {\n _this4.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map(function (dt) {\n return _this4.extract(dt, intl, \"era\");\n });\n }\n return _this4.eraCache[length];\n });\n };\n _proto4.extract = function extract(dt, intlOpts, field) {\n var df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find(function (m) {\n return m.type.toLowerCase() === field;\n });\n return matching ? matching.value : null;\n };\n _proto4.numberFormatter = function numberFormatter(opts) {\n if (opts === void 0) {\n opts = {};\n }\n\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n };\n _proto4.dtFormatter = function dtFormatter(dt, intlOpts) {\n if (intlOpts === void 0) {\n intlOpts = {};\n }\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n };\n _proto4.relFormatter = function relFormatter(opts) {\n if (opts === void 0) {\n opts = {};\n }\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n };\n _proto4.isEnglish = function isEnglish() {\n return this.locale === \"en\" || this.locale.toLowerCase() === \"en-us\" || hasIntl() && new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\");\n };\n _proto4.equals = function equals(other) {\n return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar;\n };\n _createClass(Locale, [{\n key: \"fastNumbers\",\n get: function get() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n return this.fastNumbersCached;\n }\n }]);\n return Locale;\n}();\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nfunction combineRegexes() {\n for (var _len = arguments.length, regexes = new Array(_len), _key = 0; _key < _len; _key++) {\n regexes[_key] = arguments[_key];\n }\n var full = regexes.reduce(function (f, r) {\n return f + r.source;\n }, \"\");\n return RegExp(\"^\" + full + \"$\");\n}\nfunction combineExtractors() {\n for (var _len2 = arguments.length, extractors = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n extractors[_key2] = arguments[_key2];\n }\n return function (m) {\n return extractors.reduce(function (_ref, ex) {\n var mergedVals = _ref[0],\n mergedZone = _ref[1],\n cursor = _ref[2];\n var _ex = ex(m, cursor),\n val = _ex[0],\n zone = _ex[1],\n next = _ex[2];\n return [Object.assign(mergedVals, val), mergedZone || zone, next];\n }, [{}, null, 1]).slice(0, 2);\n };\n}\nfunction parse(s) {\n if (s == null) {\n return [null, null];\n }\n for (var _len3 = arguments.length, patterns = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n patterns[_key3 - 1] = arguments[_key3];\n }\n for (var _i = 0, _patterns = patterns; _i < _patterns.length; _i++) {\n var _patterns$_i = _patterns[_i],\n regex = _patterns$_i[0],\n extractor = _patterns$_i[1];\n var m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\nfunction simpleParse() {\n for (var _len4 = arguments.length, keys = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n keys[_key4] = arguments[_key4];\n }\n return function (match, cursor) {\n var ret = {};\n var i;\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n} // ISO and SQL parsing\n\nvar offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/,\n isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/,\n isoTimeRegex = RegExp(\"\" + isoTimeBaseRegex.source + offsetRegex.source + \"?\"),\n isoTimeExtensionRegex = RegExp(\"(?:T\" + isoTimeRegex.source + \")?\"),\n isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/,\n isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/,\n isoOrdinalRegex = /(\\d{4})-?(\\d{3})/,\n extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\"),\n extractISOOrdinalData = simpleParse(\"year\", \"ordinal\"),\n sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/,\n // dumbed-down version of the ISO one\n sqlTimeRegex = RegExp(isoTimeBaseRegex.source + \" ?(?:\" + offsetRegex.source + \"|(\" + ianaRegex.source + \"))?\"),\n sqlTimeExtensionRegex = RegExp(\"(?: \" + sqlTimeRegex.source + \")?\");\nfunction int(match, pos, fallback) {\n var m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\nfunction extractISOYmd(match, cursor) {\n var item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1)\n };\n return [item, null, cursor + 3];\n}\nfunction extractISOTime(match, cursor) {\n var item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3])\n };\n return [item, null, cursor + 4];\n}\nfunction extractISOOffset(match, cursor) {\n var local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\nfunction extractIANAZone(match, cursor) {\n var zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n} // ISO time parsing\n\nvar isoTimeOnly = RegExp(\"^T?\" + isoTimeBaseRegex.source + \"$\"); // ISO duration parsing\n\nvar isoDuration = /^-?P(?:(?:(-?\\d{1,9})Y)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})W)?(?:(-?\\d{1,9})D)?(?:T(?:(-?\\d{1,9})H)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,9}))?S)?)?)$/;\nfunction extractISODuration(match) {\n var s = match[0],\n yearStr = match[1],\n monthStr = match[2],\n weekStr = match[3],\n dayStr = match[4],\n hourStr = match[5],\n minuteStr = match[6],\n secondStr = match[7],\n millisecondsStr = match[8];\n var hasNegativePrefix = s[0] === \"-\";\n var negativeSeconds = secondStr && secondStr[0] === \"-\";\n var maybeNegate = function maybeNegate(num, force) {\n if (force === void 0) {\n force = false;\n }\n return num !== undefined && (force || num && hasNegativePrefix) ? -num : num;\n };\n return [{\n years: maybeNegate(parseInteger(yearStr)),\n months: maybeNegate(parseInteger(monthStr)),\n weeks: maybeNegate(parseInteger(weekStr)),\n days: maybeNegate(parseInteger(dayStr)),\n hours: maybeNegate(parseInteger(hourStr)),\n minutes: maybeNegate(parseInteger(minuteStr)),\n seconds: maybeNegate(parseInteger(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds)\n }];\n} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\n\nvar obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60\n};\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n var result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr)\n };\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1;\n }\n return result;\n} // RFC 2822/5322\n\nvar rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\nfunction extractRFC2822(match) {\n var weekdayStr = match[1],\n dayStr = match[2],\n monthStr = match[3],\n yearStr = match[4],\n hourStr = match[5],\n minuteStr = match[6],\n secondStr = match[7],\n obsOffset = match[8],\n milOffset = match[9],\n offHourStr = match[10],\n offMinuteStr = match[11],\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n var offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n return [result, new FixedOffsetZone(offset)];\n}\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s.replace(/\\([^()]*\\)|[\\n\\t]/g, \" \").replace(/(\\s\\s+)/g, \" \").trim();\n} // http date\n\nvar rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 = /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\nfunction extractRFC1123Or850(match) {\n var weekdayStr = match[1],\n dayStr = match[2],\n monthStr = match[3],\n yearStr = match[4],\n hourStr = match[5],\n minuteStr = match[6],\n secondStr = match[7],\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\nfunction extractASCII(match) {\n var weekdayStr = match[1],\n monthStr = match[2],\n dayStr = match[3],\n hourStr = match[4],\n minuteStr = match[5],\n secondStr = match[6],\n yearStr = match[7],\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\nvar isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nvar isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nvar isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nvar isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\nvar extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset);\nvar extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset);\nvar extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset);\nvar extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);\n/**\n * @private\n */\n\nfunction parseISODate(s) {\n return parse(s, [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], [isoTimeCombinedRegex, extractISOTimeAndOffset]);\n}\nfunction parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\nfunction parseHTTPDate(s) {\n return parse(s, [rfc1123, extractRFC1123Or850], [rfc850, extractRFC1123Or850], [ascii, extractASCII]);\n}\nfunction parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\nvar extractISOTimeOnly = combineExtractors(extractISOTime);\nfunction parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\nvar sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nvar sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\nvar extractISOYmdTimeOffsetAndIANAZone = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);\nvar extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);\nfunction parseSQL(s) {\n return parse(s, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeOffsetAndIANAZone], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]);\n}\nvar INVALID = \"Invalid Duration\"; // unit conversion constants\n\nvar lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000\n },\n hours: {\n minutes: 60,\n seconds: 60 * 60,\n milliseconds: 60 * 60 * 1000\n },\n minutes: {\n seconds: 60,\n milliseconds: 60 * 1000\n },\n seconds: {\n milliseconds: 1000\n }\n },\n casualMatrix = Object.assign({\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000\n }\n }, lowOrderMatrix),\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = Object.assign({\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: daysInYearAccurate * 24 / 4,\n minutes: daysInYearAccurate * 24 * 60 / 4,\n seconds: daysInYearAccurate * 24 * 60 * 60 / 4,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000 / 4\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000\n }\n }, lowOrderMatrix); // units ordered by size\n\nvar orderedUnits = [\"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\"];\nvar reverseUnits = orderedUnits.slice(0).reverse(); // clone really means \"create another instance just like this one, but with these changes\"\n\nfunction clone(dur, alts, clear) {\n if (clear === void 0) {\n clear = false;\n }\n\n // deep merge for vals\n var conf = {\n values: clear ? alts.values : Object.assign({}, dur.values, alts.values || {}),\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy\n };\n return new Duration(conf);\n}\nfunction antiTrunc(n) {\n return n < 0 ? Math.floor(n) : Math.ceil(n);\n} // NB: mutates parameters\n\nfunction convert(matrix, fromMap, fromUnit, toMap, toUnit) {\n var conv = matrix[toUnit][fromUnit],\n raw = fromMap[fromUnit] / conv,\n sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]),\n // ok, so this is wild, but see the matrix in the tests\n added = !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw);\n toMap[toUnit] += added;\n fromMap[fromUnit] -= added * conv;\n} // NB: mutates parameters\n\nfunction normalizeValues(matrix, vals) {\n reverseUnits.reduce(function (previous, current) {\n if (!isUndefined(vals[current])) {\n if (previous) {\n convert(matrix, vals, previous, vals, current);\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime.plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration.years}, {@link Duration.months}, {@link Duration.weeks}, {@link Duration.days}, {@link Duration.hours}, {@link Duration.minutes}, {@link Duration.seconds}, {@link Duration.milliseconds} accessors.\n * * **Configuration** See {@link Duration.locale} and {@link Duration.numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration.plus}, {@link Duration.minus}, {@link Duration.normalize}, {@link Duration.set}, {@link Duration.reconfigure}, {@link Duration.shiftTo}, and {@link Duration.negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration.as}, {@link Duration.toISO}, {@link Duration.toFormat}, and {@link Duration.toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\n\nvar Duration = /*#__PURE__*/function () {\n /**\n * @private\n */\n function Duration(config) {\n var accurate = config.conversionAccuracy === \"longterm\" || false;\n /**\n * @access private\n */\n\n this.values = config.values;\n /**\n * @access private\n */\n\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n\n this.matrix = accurate ? accurateMatrix : casualMatrix;\n /**\n * @access private\n */\n\n this.isLuxonDuration = true;\n }\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n\n Duration.fromMillis = function fromMillis(count, opts) {\n return Duration.fromObject(Object.assign({\n milliseconds: count\n }, opts));\n }\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {string} [obj.locale='en-US'] - the locale to use\n * @param {string} obj.numberingSystem - the numbering system to use\n * @param {string} [obj.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */;\n\n Duration.fromObject = function fromObject(obj) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\"Duration.fromObject: argument expected to be an object, got \" + (obj === null ? \"null\" : typeof obj));\n }\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit, [\"locale\", \"numberingSystem\", \"conversionAccuracy\", \"zone\" // a bit of debt; it's super inconvenient internally not to be able to blindly pass this\n ]),\n\n loc: Locale.fromObject(obj),\n conversionAccuracy: obj.conversionAccuracy\n });\n }\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */;\n\n Duration.fromISO = function fromISO(text, opts) {\n var _parseISODuration = parseISODuration(text),\n parsed = _parseISODuration[0];\n if (parsed) {\n var obj = Object.assign(parsed, opts);\n return Duration.fromObject(obj);\n } else {\n return Duration.invalid(\"unparsable\", \"the input \\\"\" + text + \"\\\" can't be parsed as ISO 8601\");\n }\n }\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */;\n\n Duration.fromISOTime = function fromISOTime(text, opts) {\n var _parseISOTimeOnly = parseISOTimeOnly(text),\n parsed = _parseISOTimeOnly[0];\n if (parsed) {\n var obj = Object.assign(parsed, opts);\n return Duration.fromObject(obj);\n } else {\n return Duration.invalid(\"unparsable\", \"the input \\\"\" + text + \"\\\" can't be parsed as ISO 8601\");\n }\n }\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */;\n\n Duration.invalid = function invalid(reason, explanation) {\n if (explanation === void 0) {\n explanation = null;\n }\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({\n invalid: invalid\n });\n }\n }\n /**\n * @private\n */;\n\n Duration.normalizeUnit = function normalizeUnit(unit) {\n var normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\"\n }[unit ? unit.toLowerCase() : unit];\n if (!normalized) throw new InvalidUnitError(unit);\n return normalized;\n }\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */;\n\n Duration.isDuration = function isDuration(o) {\n return o && o.isLuxonDuration || false;\n }\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */;\n\n var _proto = Duration.prototype;\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * The duration will be converted to the set of units in the format string using {@link Duration.shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n _proto.toFormat = function toFormat(fmt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n var fmtOpts = Object.assign({}, opts, {\n floor: opts.round !== false && opts.floor !== false\n });\n return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID;\n }\n /**\n * Returns a JavaScript object with this Duration's values.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */;\n\n _proto.toObject = function toObject(opts) {\n if (opts === void 0) {\n opts = {};\n }\n if (!this.isValid) return {};\n var base = Object.assign({}, this.values);\n if (opts.includeConfig) {\n base.conversionAccuracy = this.conversionAccuracy;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */;\n\n _proto.toISO = function toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n var s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */;\n\n _proto.toISOTime = function toISOTime(opts) {\n if (opts === void 0) {\n opts = {};\n }\n if (!this.isValid) return null;\n var millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n opts = Object.assign({\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\"\n }, opts);\n var value = this.shiftTo(\"hours\", \"minutes\", \"seconds\", \"milliseconds\");\n var fmt = opts.format === \"basic\" ? \"hhmm\" : \"hh:mm\";\n if (!opts.suppressSeconds || value.seconds !== 0 || value.milliseconds !== 0) {\n fmt += opts.format === \"basic\" ? \"ss\" : \":ss\";\n if (!opts.suppressMilliseconds || value.milliseconds !== 0) {\n fmt += \".SSS\";\n }\n }\n var str = value.toFormat(fmt);\n if (opts.includePrefix) {\n str = \"T\" + str;\n }\n return str;\n }\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */;\n\n _proto.toJSON = function toJSON() {\n return this.toISO();\n }\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */;\n\n _proto.toString = function toString() {\n return this.toISO();\n }\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */;\n\n _proto.toMillis = function toMillis() {\n return this.as(\"milliseconds\");\n }\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */;\n\n _proto.valueOf = function valueOf() {\n return this.toMillis();\n }\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */;\n\n _proto.plus = function plus(duration) {\n if (!this.isValid) return this;\n var dur = friendlyDuration(duration),\n result = {};\n for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done;) {\n var k = _step.value;\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n return clone(this, {\n values: result\n }, true);\n }\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */;\n\n _proto.minus = function minus(duration) {\n if (!this.isValid) return this;\n var dur = friendlyDuration(duration);\n return this.plus(dur.negate());\n }\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit((x, u) => u === \"hour\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */;\n\n _proto.mapUnits = function mapUnits(fn) {\n if (!this.isValid) return this;\n var result = {};\n for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, {\n values: result\n }, true);\n }\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */;\n\n _proto.get = function get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */;\n\n _proto.set = function set(values) {\n if (!this.isValid) return this;\n var mixed = Object.assign(this.values, normalizeObject(values, Duration.normalizeUnit, []));\n return clone(this, {\n values: mixed\n });\n }\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */;\n\n _proto.reconfigure = function reconfigure(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n locale = _ref.locale,\n numberingSystem = _ref.numberingSystem,\n conversionAccuracy = _ref.conversionAccuracy;\n var loc = this.loc.clone({\n locale: locale,\n numberingSystem: numberingSystem\n }),\n opts = {\n loc: loc\n };\n if (conversionAccuracy) {\n opts.conversionAccuracy = conversionAccuracy;\n }\n return clone(this, opts);\n }\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */;\n\n _proto.as = function as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @return {Duration}\n */;\n\n _proto.normalize = function normalize() {\n if (!this.isValid) return this;\n var vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, {\n values: vals\n }, true);\n }\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */;\n\n _proto.shiftTo = function shiftTo() {\n for (var _len = arguments.length, units = new Array(_len), _key = 0; _key < _len; _key++) {\n units[_key] = arguments[_key];\n }\n if (!this.isValid) return this;\n if (units.length === 0) {\n return this;\n }\n units = units.map(function (u) {\n return Duration.normalizeUnit(u);\n });\n var built = {},\n accumulated = {},\n vals = this.toObject();\n var lastUnit;\n for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits), _step2; !(_step2 = _iterator2()).done;) {\n var k = _step2.value;\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n var own = 0; // anything we haven't boiled down yet should get boiled to this unit\n\n for (var ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n } // plus anything that's already in this unit\n\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n var i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = own - i; // we'd like to absorb these fractions in another unit\n // plus anything further down the chain that should be rolled up in to this\n\n for (var down in vals) {\n if (orderedUnits.indexOf(down) > orderedUnits.indexOf(k)) {\n convert(this.matrix, vals, down, built, k);\n }\n } // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n } // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n\n for (var key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n return clone(this, {\n values: built\n }, true).normalize();\n }\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */;\n\n _proto.negate = function negate() {\n if (!this.isValid) return this;\n var negated = {};\n for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {\n var k = _Object$keys2[_i2];\n negated[k] = -this.values[k];\n }\n return clone(this, {\n values: negated\n }, true);\n }\n /**\n * Get the years.\n * @type {number}\n */;\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n _proto.equals = function equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits), _step3; !(_step3 = _iterator3()).done;) {\n var u = _step3.value;\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n };\n _createClass(Duration, [{\n key: \"locale\",\n get: function get() {\n return this.isValid ? this.loc.locale : null;\n }\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n }, {\n key: \"numberingSystem\",\n get: function get() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n }, {\n key: \"years\",\n get: function get() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n /**\n * Get the quarters.\n * @type {number}\n */\n }, {\n key: \"quarters\",\n get: function get() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n /**\n * Get the months.\n * @type {number}\n */\n }, {\n key: \"months\",\n get: function get() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n /**\n * Get the weeks\n * @type {number}\n */\n }, {\n key: \"weeks\",\n get: function get() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n /**\n * Get the days.\n * @type {number}\n */\n }, {\n key: \"days\",\n get: function get() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n /**\n * Get the hours.\n * @type {number}\n */\n }, {\n key: \"hours\",\n get: function get() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n /**\n * Get the minutes.\n * @type {number}\n */\n }, {\n key: \"minutes\",\n get: function get() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n /**\n * Get the seconds.\n * @return {number}\n */\n }, {\n key: \"seconds\",\n get: function get() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n /**\n * Get the milliseconds.\n * @return {number}\n */\n }, {\n key: \"milliseconds\",\n get: function get() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n }, {\n key: \"isValid\",\n get: function get() {\n return this.invalid === null;\n }\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n }, {\n key: \"invalidReason\",\n get: function get() {\n return this.invalid ? this.invalid.reason : null;\n }\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n }, {\n key: \"invalidExplanation\",\n get: function get() {\n return this.invalid ? this.invalid.explanation : null;\n }\n }]);\n return Duration;\n}();\nfunction friendlyDuration(durationish) {\n if (isNumber(durationish)) {\n return Duration.fromMillis(durationish);\n } else if (Duration.isDuration(durationish)) {\n return durationish;\n } else if (typeof durationish === \"object\") {\n return Duration.fromObject(durationish);\n } else {\n throw new InvalidArgumentError(\"Unknown duration argument \" + durationish + \" of type \" + typeof durationish);\n }\n}\nvar INVALID$1 = \"Invalid Interval\"; // checks if the start is equal to or before the end\n\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\"end before start\", \"The end of an interval must be after its start, but you had start=\" + start.toISO() + \" and end=\" + end.toISO());\n } else {\n return null;\n }\n}\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link fromDateTimes}, {@link after}, {@link before}, or {@link fromISO}.\n * * **Accessors** Use {@link start} and {@link end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link count}, {@link length}, {@link hasSame}, {@link contains}, {@link isAfter}, or {@link isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link set}, {@link splitAt}, {@link splitBy}, {@link divideEqually}, {@link merge}, {@link xor}, {@link union}, {@link intersection}, or {@link difference}.\n * * **Comparison** To compare this Interval to another one, use {@link equals}, {@link overlaps}, {@link abutsStart}, {@link abutsEnd}, {@link engulfs}.\n * * **Output** To convert the Interval into other representations, see {@link toString}, {@link toISO}, {@link toISODate}, {@link toISOTime}, {@link toFormat}, and {@link toDuration}.\n */\n\nvar Interval = /*#__PURE__*/function () {\n /**\n * @private\n */\n function Interval(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n\n this.e = config.end;\n /**\n * @access private\n */\n\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n\n this.isLuxonInterval = true;\n }\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n\n Interval.invalid = function invalid(reason, explanation) {\n if (explanation === void 0) {\n explanation = null;\n }\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({\n invalid: invalid\n });\n }\n }\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */;\n\n Interval.fromDateTimes = function fromDateTimes(start, end) {\n var builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n var validateError = validateStartEnd(builtStart, builtEnd);\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd\n });\n } else {\n return validateError;\n }\n }\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */;\n\n Interval.after = function after(start, duration) {\n var dur = friendlyDuration(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */;\n\n Interval.before = function before(end, duration) {\n var dur = friendlyDuration(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `/`, `/`, and `/` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime.fromISO} and optionally {@link Duration.fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */;\n\n Interval.fromISO = function fromISO(text, opts) {\n var _split = (text || \"\").split(\"/\", 2),\n s = _split[0],\n e = _split[1];\n if (s && e) {\n var start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n var end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n if (startIsValid) {\n var dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n var _dur = Duration.fromISO(s, opts);\n if (_dur.isValid) {\n return Interval.before(end, _dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", \"the input \\\"\" + text + \"\\\" can't be parsed as ISO 8601\");\n }\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */;\n\n Interval.isInterval = function isInterval(o) {\n return o && o.isLuxonInterval || false;\n }\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */;\n\n var _proto = Interval.prototype;\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n _proto.length = function length(unit) {\n if (unit === void 0) {\n unit = \"milliseconds\";\n }\n return this.isValid ? this.toDuration.apply(this, [unit]).get(unit) : NaN;\n }\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @return {number}\n */;\n\n _proto.count = function count(unit) {\n if (unit === void 0) {\n unit = \"milliseconds\";\n }\n if (!this.isValid) return NaN;\n var start = this.start.startOf(unit),\n end = this.end.startOf(unit);\n return Math.floor(end.diff(start, unit).get(unit)) + 1;\n }\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */;\n\n _proto.hasSame = function hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */;\n\n _proto.isEmpty = function isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */;\n\n _proto.isAfter = function isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */;\n\n _proto.isBefore = function isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */;\n\n _proto.contains = function contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */;\n\n _proto.set = function set(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n start = _ref.start,\n end = _ref.end;\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...[DateTime]} dateTimes - the unit of time to count.\n * @return {[Interval]}\n */;\n\n _proto.splitAt = function splitAt() {\n var _this = this;\n if (!this.isValid) return [];\n for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) {\n dateTimes[_key] = arguments[_key];\n }\n var sorted = dateTimes.map(friendlyDateTime).filter(function (d) {\n return _this.contains(d);\n }).sort(),\n results = [];\n var s = this.s,\n i = 0;\n while (s < this.e) {\n var added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n return results;\n }\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {[Interval]}\n */;\n\n _proto.splitBy = function splitBy(duration) {\n var dur = friendlyDuration(duration);\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n var s = this.s,\n idx = 1,\n next;\n var results = [];\n while (s < this.e) {\n var added = this.start.plus(dur.mapUnits(function (x) {\n return x * idx;\n }));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n return results;\n }\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {[Interval]}\n */;\n\n _proto.divideEqually = function divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */;\n\n _proto.overlaps = function overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */;\n\n _proto.abutsStart = function abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */;\n\n _proto.abutsEnd = function abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n /**\n * Return whether this Interval engulfs the start and end of the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */;\n\n _proto.engulfs = function engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */;\n\n _proto.equals = function equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */;\n\n _proto.intersection = function intersection(other) {\n if (!this.isValid) return this;\n var s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */;\n\n _proto.union = function union(other) {\n if (!this.isValid) return this;\n var s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {[Interval]} intervals\n * @return {[Interval]}\n */;\n\n Interval.merge = function merge(intervals) {\n var _intervals$sort$reduc = intervals.sort(function (a, b) {\n return a.s - b.s;\n }).reduce(function (_ref2, item) {\n var sofar = _ref2[0],\n current = _ref2[1];\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n }, [[], null]),\n found = _intervals$sort$reduc[0],\n final = _intervals$sort$reduc[1];\n if (final) {\n found.push(final);\n }\n return found;\n }\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {[Interval]} intervals\n * @return {[Interval]}\n */;\n\n Interval.xor = function xor(intervals) {\n var _Array$prototype;\n var start = null,\n currentCount = 0;\n var results = [],\n ends = intervals.map(function (i) {\n return [{\n time: i.s,\n type: \"s\"\n }, {\n time: i.e,\n type: \"e\"\n }];\n }),\n flattened = (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, ends),\n arr = flattened.sort(function (a, b) {\n return a.time - b.time;\n });\n for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done;) {\n var i = _step.value;\n currentCount += i.type === \"s\" ? 1 : -1;\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n start = null;\n }\n }\n return Interval.merge(results);\n }\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {[Interval]}\n */;\n\n _proto.difference = function difference() {\n var _this2 = this;\n for (var _len2 = arguments.length, intervals = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n intervals[_key2] = arguments[_key2];\n }\n return Interval.xor([this].concat(intervals)).map(function (i) {\n return _this2.intersection(i);\n }).filter(function (i) {\n return i && !i.isEmpty();\n });\n }\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */;\n\n _proto.toString = function toString() {\n if (!this.isValid) return INVALID$1;\n return \"[\" + this.s.toISO() + \" \\u2013 \" + this.e.toISO() + \")\";\n }\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime.toISO}\n * @return {string}\n */;\n\n _proto.toISO = function toISO(opts) {\n if (!this.isValid) return INVALID$1;\n return this.s.toISO(opts) + \"/\" + this.e.toISO(opts);\n }\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */;\n\n _proto.toISODate = function toISODate() {\n if (!this.isValid) return INVALID$1;\n return this.s.toISODate() + \"/\" + this.e.toISODate();\n }\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime.toISO}\n * @return {string}\n */;\n\n _proto.toISOTime = function toISOTime(opts) {\n if (!this.isValid) return INVALID$1;\n return this.s.toISOTime(opts) + \"/\" + this.e.toISOTime(opts);\n }\n /**\n * Returns a string representation of this Interval formatted according to the specified format string.\n * @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime.toFormat} for details.\n * @param {Object} opts - options\n * @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations\n * @return {string}\n */;\n\n _proto.toFormat = function toFormat(dateFormat, _temp2) {\n var _ref3 = _temp2 === void 0 ? {} : _temp2,\n _ref3$separator = _ref3.separator,\n separator = _ref3$separator === void 0 ? \" – \" : _ref3$separator;\n if (!this.isValid) return INVALID$1;\n return \"\" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);\n }\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */;\n\n _proto.toDuration = function toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */;\n\n _proto.mapEndpoints = function mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n };\n _createClass(Interval, [{\n key: \"start\",\n get: function get() {\n return this.isValid ? this.s : null;\n }\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n }, {\n key: \"end\",\n get: function get() {\n return this.isValid ? this.e : null;\n }\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n }, {\n key: \"isValid\",\n get: function get() {\n return this.invalidReason === null;\n }\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n }, {\n key: \"invalidReason\",\n get: function get() {\n return this.invalid ? this.invalid.reason : null;\n }\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n }, {\n key: \"invalidExplanation\",\n get: function get() {\n return this.invalid ? this.invalid.explanation : null;\n }\n }]);\n return Interval;\n}();\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\n\nvar Info = /*#__PURE__*/function () {\n function Info() {}\n\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n Info.hasDST = function hasDST(zone) {\n if (zone === void 0) {\n zone = Settings.defaultZone;\n }\n var proto = DateTime.now().setZone(zone).set({\n month: 12\n });\n return !zone.universal && proto.offset !== proto.set({\n month: 6\n }).offset;\n }\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */;\n\n Info.isValidIANAZone = function isValidIANAZone(zone) {\n return IANAZone.isValidSpecifier(zone) && IANAZone.isValidZone(zone);\n }\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone.isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */;\n\n Info.normalizeZone = function normalizeZone$1(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {[string]}\n */;\n\n Info.months = function months(length, _temp) {\n if (length === void 0) {\n length = \"long\";\n }\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$locale = _ref.locale,\n locale = _ref$locale === void 0 ? null : _ref$locale,\n _ref$numberingSystem = _ref.numberingSystem,\n numberingSystem = _ref$numberingSystem === void 0 ? null : _ref$numberingSystem,\n _ref$locObj = _ref.locObj,\n locObj = _ref$locObj === void 0 ? null : _ref$locObj,\n _ref$outputCalendar = _ref.outputCalendar,\n outputCalendar = _ref$outputCalendar === void 0 ? \"gregory\" : _ref$outputCalendar;\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {[string]}\n */;\n\n Info.monthsFormat = function monthsFormat(length, _temp2) {\n if (length === void 0) {\n length = \"long\";\n }\n var _ref2 = _temp2 === void 0 ? {} : _temp2,\n _ref2$locale = _ref2.locale,\n locale = _ref2$locale === void 0 ? null : _ref2$locale,\n _ref2$numberingSystem = _ref2.numberingSystem,\n numberingSystem = _ref2$numberingSystem === void 0 ? null : _ref2$numberingSystem,\n _ref2$locObj = _ref2.locObj,\n locObj = _ref2$locObj === void 0 ? null : _ref2$locObj,\n _ref2$outputCalendar = _ref2.outputCalendar,\n outputCalendar = _ref2$outputCalendar === void 0 ? \"gregory\" : _ref2$outputCalendar;\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {[string]}\n */;\n\n Info.weekdays = function weekdays(length, _temp3) {\n if (length === void 0) {\n length = \"long\";\n }\n var _ref3 = _temp3 === void 0 ? {} : _temp3,\n _ref3$locale = _ref3.locale,\n locale = _ref3$locale === void 0 ? null : _ref3$locale,\n _ref3$numberingSystem = _ref3.numberingSystem,\n numberingSystem = _ref3$numberingSystem === void 0 ? null : _ref3$numberingSystem,\n _ref3$locObj = _ref3.locObj,\n locObj = _ref3$locObj === void 0 ? null : _ref3$locObj;\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link weekdays}\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {[string]}\n */;\n\n Info.weekdaysFormat = function weekdaysFormat(length, _temp4) {\n if (length === void 0) {\n length = \"long\";\n }\n var _ref4 = _temp4 === void 0 ? {} : _temp4,\n _ref4$locale = _ref4.locale,\n locale = _ref4$locale === void 0 ? null : _ref4$locale,\n _ref4$numberingSystem = _ref4.numberingSystem,\n numberingSystem = _ref4$numberingSystem === void 0 ? null : _ref4$numberingSystem,\n _ref4$locObj = _ref4.locObj,\n locObj = _ref4$locObj === void 0 ? null : _ref4$locObj;\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {[string]}\n */;\n\n Info.meridiems = function meridiems(_temp5) {\n var _ref5 = _temp5 === void 0 ? {} : _temp5,\n _ref5$locale = _ref5.locale,\n locale = _ref5$locale === void 0 ? null : _ref5$locale;\n return Locale.create(locale).meridiems();\n }\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {[string]}\n */;\n\n Info.eras = function eras(length, _temp6) {\n if (length === void 0) {\n length = \"short\";\n }\n var _ref6 = _temp6 === void 0 ? {} : _temp6,\n _ref6$locale = _ref6.locale,\n locale = _ref6$locale === void 0 ? null : _ref6$locale;\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, timezone support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `zones`: whether this environment supports IANA timezones\n * * `intlTokens`: whether this environment supports internationalized token-based formatting/parsing\n * * `intl`: whether this environment supports general internationalization\n * * `relative`: whether this environment supports relative time formatting\n * @example Info.features() //=> { intl: true, intlTokens: false, zones: true, relative: false }\n * @return {Object}\n */;\n\n Info.features = function features() {\n var intl = false,\n intlTokens = false,\n zones = false,\n relative = false;\n if (hasIntl()) {\n intl = true;\n intlTokens = hasFormatToParts();\n relative = hasRelative();\n try {\n zones = new Intl.DateTimeFormat(\"en\", {\n timeZone: \"America/New_York\"\n }).resolvedOptions().timeZone === \"America/New_York\";\n } catch (e) {\n zones = false;\n }\n }\n return {\n intl: intl,\n intlTokens: intlTokens,\n zones: zones,\n relative: relative\n };\n };\n return Info;\n}();\nfunction dayDiff(earlier, later) {\n var utcDayStart = function utcDayStart(dt) {\n return dt.toUTC(0, {\n keepLocalTime: true\n }).startOf(\"day\").valueOf();\n },\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\nfunction highOrderDiffs(cursor, later, units) {\n var differs = [[\"years\", function (a, b) {\n return b.year - a.year;\n }], [\"quarters\", function (a, b) {\n return b.quarter - a.quarter;\n }], [\"months\", function (a, b) {\n return b.month - a.month + (b.year - a.year) * 12;\n }], [\"weeks\", function (a, b) {\n var days = dayDiff(a, b);\n return (days - days % 7) / 7;\n }], [\"days\", dayDiff]];\n var results = {};\n var lowestOrder, highWater;\n for (var _i = 0, _differs = differs; _i < _differs.length; _i++) {\n var _differs$_i = _differs[_i],\n unit = _differs$_i[0],\n differ = _differs$_i[1];\n if (units.indexOf(unit) >= 0) {\n var _cursor$plus;\n lowestOrder = unit;\n var delta = differ(cursor, later);\n highWater = cursor.plus((_cursor$plus = {}, _cursor$plus[unit] = delta, _cursor$plus));\n if (highWater > later) {\n var _cursor$plus2;\n cursor = cursor.plus((_cursor$plus2 = {}, _cursor$plus2[unit] = delta - 1, _cursor$plus2));\n delta -= 1;\n } else {\n cursor = highWater;\n }\n results[unit] = delta;\n }\n }\n return [cursor, results, highWater, lowestOrder];\n}\nfunction _diff(earlier, later, units, opts) {\n var _highOrderDiffs = highOrderDiffs(earlier, later, units),\n cursor = _highOrderDiffs[0],\n results = _highOrderDiffs[1],\n highWater = _highOrderDiffs[2],\n lowestOrder = _highOrderDiffs[3];\n var remainingMillis = later - cursor;\n var lowerOrderUnits = units.filter(function (u) {\n return [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0;\n });\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n var _cursor$plus3;\n highWater = cursor.plus((_cursor$plus3 = {}, _cursor$plus3[lowestOrder] = 1, _cursor$plus3));\n }\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n var duration = Duration.fromObject(Object.assign(results, opts));\n if (lowerOrderUnits.length > 0) {\n var _Duration$fromMillis;\n return (_Duration$fromMillis = Duration.fromMillis(remainingMillis, opts)).shiftTo.apply(_Duration$fromMillis, lowerOrderUnits).plus(duration);\n } else {\n return duration;\n }\n}\nvar numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\"\n};\nvar numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881]\n}; // eslint-disable-next-line\n\nvar hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\nfunction parseDigits(str) {\n var value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (var i = 0; i < str.length; i++) {\n var code = str.charCodeAt(i);\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (var key in numberingSystemsUTF16) {\n var _numberingSystemsUTF = numberingSystemsUTF16[key],\n min = _numberingSystemsUTF[0],\n max = _numberingSystemsUTF[1];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\nfunction digitRegex(_ref, append) {\n var numberingSystem = _ref.numberingSystem;\n if (append === void 0) {\n append = \"\";\n }\n return new RegExp(\"\" + numberingSystems[numberingSystem || \"latn\"] + append);\n}\nvar MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\nfunction intUnit(regex, post) {\n if (post === void 0) {\n post = function post(i) {\n return i;\n };\n }\n return {\n regex: regex,\n deser: function deser(_ref) {\n var s = _ref[0];\n return post(parseDigits(s));\n }\n };\n}\nvar NBSP = String.fromCharCode(160);\nvar spaceOrNBSP = \"( |\" + NBSP + \")\";\nvar spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\nfunction stripInsensitivities(s) {\n return s.replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: function deser(_ref2) {\n var s = _ref2[0];\n return strings.findIndex(function (i) {\n return stripInsensitivities(s) === stripInsensitivities(i);\n }) + startIndex;\n }\n };\n }\n}\nfunction offset(regex, groups) {\n return {\n regex: regex,\n deser: function deser(_ref3) {\n var h = _ref3[1],\n m = _ref3[2];\n return signedOffset(h, m);\n },\n groups: groups\n };\n}\nfunction simple(regex) {\n return {\n regex: regex,\n deser: function deser(_ref4) {\n var s = _ref4[0];\n return s;\n }\n };\n}\nfunction escapeToken(value) {\n // eslint-disable-next-line no-useless-escape\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\nfunction unitForToken(token, loc) {\n var one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = function literal(t) {\n return {\n regex: RegExp(escapeToken(t.val)),\n deser: function deser(_ref5) {\n var s = _ref5[0];\n return s;\n },\n literal: true\n };\n },\n unitate = function unitate(t) {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\", false), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\", false), 0);\n // years\n\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true, false), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true, false), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false, false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false, false), 1);\n // dates\n\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n // meridiem\n\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false, false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false, false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true, false), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true, false), 1);\n // offset/zone\n\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(\"([+-]\" + oneOrTwo.source + \")(?::(\" + two.source + \"))?\"), 2);\n case \"ZZZ\":\n return offset(new RegExp(\"([+-]\" + oneOrTwo.source + \")(\" + two.source + \")?\"), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n default:\n return literal(t);\n }\n };\n var unit = unitate(token) || {\n invalidReason: MISSING_FTP\n };\n unit.token = token;\n return unit;\n}\nvar partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\"\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\"\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\"\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\"\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour: {\n numeric: \"h\",\n \"2-digit\": \"hh\"\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\"\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\"\n }\n};\nfunction tokenForPart(part, locale, formatOpts) {\n var type = part.type,\n value = part.value;\n if (type === \"literal\") {\n return {\n literal: true,\n val: value\n };\n }\n var style = formatOpts[type];\n var val = partTypeStyleToTokenVal[type];\n if (typeof val === \"object\") {\n val = val[style];\n }\n if (val) {\n return {\n literal: false,\n val: val\n };\n }\n return undefined;\n}\nfunction buildRegex(units) {\n var re = units.map(function (u) {\n return u.regex;\n }).reduce(function (f, r) {\n return f + \"(\" + r.source + \")\";\n }, \"\");\n return [\"^\" + re + \"$\", units];\n}\nfunction match(input, regex, handlers) {\n var matches = input.match(regex);\n if (matches) {\n var all = {};\n var matchIndex = 1;\n for (var i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n var h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\nfunction dateTimeFromMatches(matches) {\n var toField = function toField(token) {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n var zone;\n if (!isUndefined(matches.Z)) {\n zone = new FixedOffsetZone(matches.Z);\n } else if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n } else {\n zone = null;\n }\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n var vals = Object.keys(matches).reduce(function (r, k) {\n var f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n return r;\n }, {});\n return [vals, zone];\n}\nvar dummyDateTimeCache = null;\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n return dummyDateTimeCache;\n}\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n var formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n if (!formatOpts) {\n return token;\n }\n var formatter = Formatter.create(locale, formatOpts);\n var parts = formatter.formatDateTimeParts(getDummyDateTime());\n var tokens = parts.map(function (p) {\n return tokenForPart(p, locale, formatOpts);\n });\n if (tokens.includes(undefined)) {\n return token;\n }\n return tokens;\n}\nfunction expandMacroTokens(tokens, locale) {\n var _Array$prototype;\n return (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, tokens.map(function (t) {\n return maybeExpandMacroToken(t, locale);\n }));\n}\n/**\n * @private\n */\n\nfunction explainFromTokens(locale, input, format) {\n var tokens = expandMacroTokens(Formatter.parseFormat(format), locale),\n units = tokens.map(function (t) {\n return unitForToken(t, locale);\n }),\n disqualifyingUnit = units.find(function (t) {\n return t.invalidReason;\n });\n if (disqualifyingUnit) {\n return {\n input: input,\n tokens: tokens,\n invalidReason: disqualifyingUnit.invalidReason\n };\n } else {\n var _buildRegex = buildRegex(units),\n regexString = _buildRegex[0],\n handlers = _buildRegex[1],\n regex = RegExp(regexString, \"i\"),\n _match = match(input, regex, handlers),\n rawMatches = _match[0],\n matches = _match[1],\n _ref6 = matches ? dateTimeFromMatches(matches) : [null, null],\n result = _ref6[0],\n zone = _ref6[1];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\"Can't include meridiem when specifying 24-hour format\");\n }\n return {\n input: input,\n tokens: tokens,\n regex: regex,\n rawMatches: rawMatches,\n matches: matches,\n result: result,\n zone: zone\n };\n }\n}\nfunction parseFromTokens(locale, input, format) {\n var _explainFromTokens = explainFromTokens(locale, input, format),\n result = _explainFromTokens.result,\n zone = _explainFromTokens.zone,\n invalidReason = _explainFromTokens.invalidReason;\n return [result, zone, invalidReason];\n}\nvar nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\"unit out of range\", \"you specified \" + value + \" (of type \" + typeof value + \") as a \" + unit + \", which is invalid\");\n}\nfunction dayOfWeek(year, month, day) {\n var js = new Date(Date.UTC(year, month - 1, day)).getUTCDay();\n return js === 0 ? 7 : js;\n}\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\nfunction uncomputeOrdinal(year, ordinal) {\n var table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex(function (i) {\n return i < ordinal;\n }),\n day = ordinal - table[month0];\n return {\n month: month0 + 1,\n day: day\n };\n}\n/**\n * @private\n */\n\nfunction gregorianToWeek(gregObj) {\n var year = gregObj.year,\n month = gregObj.month,\n day = gregObj.day,\n ordinal = computeOrdinal(year, month, day),\n weekday = dayOfWeek(year, month, day);\n var weekNumber = Math.floor((ordinal - weekday + 10) / 7),\n weekYear;\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear);\n } else if (weekNumber > weeksInWeekYear(year)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n return Object.assign({\n weekYear: weekYear,\n weekNumber: weekNumber,\n weekday: weekday\n }, timeObject(gregObj));\n}\nfunction weekToGregorian(weekData) {\n var weekYear = weekData.weekYear,\n weekNumber = weekData.weekNumber,\n weekday = weekData.weekday,\n weekdayOfJan4 = dayOfWeek(weekYear, 1, 4),\n yearInDays = daysInYear(weekYear);\n var ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3,\n year;\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal),\n month = _uncomputeOrdinal.month,\n day = _uncomputeOrdinal.day;\n return Object.assign({\n year: year,\n month: month,\n day: day\n }, timeObject(weekData));\n}\nfunction gregorianToOrdinal(gregData) {\n var year = gregData.year,\n month = gregData.month,\n day = gregData.day,\n ordinal = computeOrdinal(year, month, day);\n return Object.assign({\n year: year,\n ordinal: ordinal\n }, timeObject(gregData));\n}\nfunction ordinalToGregorian(ordinalData) {\n var year = ordinalData.year,\n ordinal = ordinalData.ordinal,\n _uncomputeOrdinal2 = uncomputeOrdinal(year, ordinal),\n month = _uncomputeOrdinal2.month,\n day = _uncomputeOrdinal2.day;\n return Object.assign({\n year: year,\n month: month,\n day: day\n }, timeObject(ordinalData));\n}\nfunction hasInvalidWeekData(obj) {\n var validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.week);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\nfunction hasInvalidOrdinalData(obj) {\n var validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\nfunction hasInvalidGregorianData(obj) {\n var validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\nfunction hasInvalidTimeData(obj) {\n var hour = obj.hour,\n minute = obj.minute,\n second = obj.second,\n millisecond = obj.millisecond;\n var validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0,\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\nvar INVALID$2 = \"Invalid DateTime\";\nvar MAX_DATE = 8.64e15;\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", \"the zone \\\"\" + zone.name + \"\\\" is not supported\");\n} // we cache week data on the DT object and this intermediates the cache\n\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n} // clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\n\nfunction clone$1(inst, alts) {\n var current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid\n };\n return new DateTime(Object.assign({}, current, alts, {\n old: current\n }));\n} // find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\n\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n var utcGuess = localTS - o * 60 * 1000; // Test whether the zone matches the offset for this ts\n\n var o2 = tz.offset(utcGuess); // If so, offset didn't change and we're done\n\n if (o === o2) {\n return [utcGuess, o];\n } // If not, change the ts by the difference in the offset\n\n utcGuess -= (o2 - o) * 60 * 1000; // If that gives us the local time we want, we're done\n\n var o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n } // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n} // convert an epoch timestamp into a calendar object with the given offset\n\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n var d = new Date(ts);\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds()\n };\n} // convert a calendar object to a epoch timestamp\n\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n} // create a new DT instance by adding a duration, adjusting for DSTs\n\nfunction adjustTime(inst, dur) {\n var oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = Object.assign({}, inst.c, {\n year: year,\n month: month,\n day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7\n }),\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n var _fixOffset = fixOffset(localTS, oPre, inst.zone),\n ts = _fixOffset[0],\n o = _fixOffset[1];\n if (millisToAdd !== 0) {\n ts += millisToAdd; // that could have changed the offset by going over a DST, but we want to keep the ts the same\n\n o = inst.zone.offset(ts);\n }\n return {\n ts: ts,\n o: o\n };\n} // helper useful in turning the results of parsing into real dates\n// by handling the zone options\n\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text) {\n var setZone = opts.setZone,\n zone = opts.zone;\n if (parsed && Object.keys(parsed).length !== 0) {\n var interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(Object.assign(parsed, opts, {\n zone: interpretationZone,\n // setZone is a valid option in the calling methods, but not in fromObject\n setZone: undefined\n }));\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(new Invalid(\"unparsable\", \"the input \\\"\" + text + \"\\\" can't be parsed as \" + format));\n }\n} // if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\n\nfunction toTechFormat(dt, format, allowZ) {\n if (allowZ === void 0) {\n allowZ = true;\n }\n return dt.isValid ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ: allowZ,\n forceSimple: true\n }).formatDateTimeFromString(dt, format) : null;\n} // technical time formats (e.g. the time part of ISO 8601), take some options\n// and this commonizes their handling\n\nfunction toTechTimeFormat(dt, _ref) {\n var _ref$suppressSeconds = _ref.suppressSeconds,\n suppressSeconds = _ref$suppressSeconds === void 0 ? false : _ref$suppressSeconds,\n _ref$suppressMillisec = _ref.suppressMilliseconds,\n suppressMilliseconds = _ref$suppressMillisec === void 0 ? false : _ref$suppressMillisec,\n includeOffset = _ref.includeOffset,\n _ref$includePrefix = _ref.includePrefix,\n includePrefix = _ref$includePrefix === void 0 ? false : _ref$includePrefix,\n _ref$includeZone = _ref.includeZone,\n includeZone = _ref$includeZone === void 0 ? false : _ref$includeZone,\n _ref$spaceZone = _ref.spaceZone,\n spaceZone = _ref$spaceZone === void 0 ? false : _ref$spaceZone,\n _ref$format = _ref.format,\n format = _ref$format === void 0 ? \"extended\" : _ref$format;\n var fmt = format === \"basic\" ? \"HHmm\" : \"HH:mm\";\n if (!suppressSeconds || dt.second !== 0 || dt.millisecond !== 0) {\n fmt += format === \"basic\" ? \"ss\" : \":ss\";\n if (!suppressMilliseconds || dt.millisecond !== 0) {\n fmt += \".SSS\";\n }\n }\n if ((includeZone || includeOffset) && spaceZone) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += format === \"basic\" ? \"ZZZ\" : \"ZZ\";\n }\n var str = toTechFormat(dt, fmt);\n if (includePrefix) {\n str = \"T\" + str;\n }\n return str;\n} // defaults for unspecified units in the supported calendars\n\nvar defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n }; // Units in the supported calendars, sorted by bigness\n\nvar orderedUnits$1 = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\"weekYear\", \"weekNumber\", \"weekday\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"]; // standardize case and plurality in units\n\nfunction normalizeUnit(unit) {\n var normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\"\n }[unit.toLowerCase()];\n if (!normalized) throw new InvalidUnitError(unit);\n return normalized;\n} // this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\n\nfunction quickDT(obj, zone) {\n // assume we have the higher-order units\n for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {\n var u = _step.value;\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n var invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n var tsNow = Settings.now(),\n offsetProvis = zone.offset(tsNow),\n _objToTS = objToTS(obj, offsetProvis, zone),\n ts = _objToTS[0],\n o = _objToTS[1];\n return new DateTime({\n ts: ts,\n zone: zone,\n o: o\n });\n}\nfunction diffRelative(start, end, opts) {\n var round = isUndefined(opts.round) ? true : opts.round,\n format = function format(c, unit) {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n var formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = function differ(unit) {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done;) {\n var unit = _step2.value;\n var count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link local}, {@link utc}, and (most flexibly) {@link fromObject}. To create one from a standard string format, use {@link fromISO}, {@link fromHTTP}, and {@link fromRFC2822}. To create one from a custom string format, use {@link fromFormat}. To create one from a native JS date, use {@link fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link toObject}), use the {@link year}, {@link month},\n * {@link day}, {@link hour}, {@link minute}, {@link second}, {@link millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link weekYear}, {@link weekNumber}, and {@link weekday} accessors.\n * * **Configuration** See the {@link locale} and {@link numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link set}, {@link reconfigure}, {@link setZone}, {@link setLocale}, {@link plus}, {@link minus}, {@link endOf}, {@link startOf}, {@link toUTC}, and {@link toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link toRelative}, {@link toRelativeCalendar}, {@link toJSON}, {@link toISO}, {@link toHTTP}, {@link toObject}, {@link toRFC2822}, {@link toString}, {@link toLocaleString}, {@link toFormat}, {@link toMillis} and {@link toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\n\nvar DateTime = /*#__PURE__*/function () {\n /**\n * @access private\n */\n function DateTime(config) {\n var zone = config.zone || Settings.defaultZone;\n var invalid = config.invalid || (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) || (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n var c = null,\n o = null;\n if (!invalid) {\n var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n if (unchanged) {\n var _ref2 = [config.old.c, config.old.o];\n c = _ref2[0];\n o = _ref2[1];\n } else {\n var ot = zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n /**\n * @access private\n */\n\n this._zone = zone;\n /**\n * @access private\n */\n\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n\n this.invalid = invalid;\n /**\n * @access private\n */\n\n this.weekData = null;\n /**\n * @access private\n */\n\n this.c = c;\n /**\n * @access private\n */\n\n this.o = o;\n /**\n * @access private\n */\n\n this.isLuxonDateTime = true;\n } // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n\n DateTime.now = function now() {\n return new DateTime({});\n }\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12) //~> 2017-03-12T00:00:00\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */;\n\n DateTime.local = function local(year, month, day, hour, minute, second, millisecond) {\n if (isUndefined(year)) {\n return DateTime.now();\n } else {\n return quickDT({\n year: year,\n month: month,\n day: day,\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond\n }, Settings.defaultZone);\n }\n }\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765Z\n * @return {DateTime}\n */;\n\n DateTime.utc = function utc(year, month, day, hour, minute, second, millisecond) {\n if (isUndefined(year)) {\n return new DateTime({\n ts: Settings.now(),\n zone: FixedOffsetZone.utcInstance\n });\n } else {\n return quickDT({\n year: year,\n month: month,\n day: day,\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond\n }, FixedOffsetZone.utcInstance);\n }\n }\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */;\n\n DateTime.fromJSDate = function fromJSDate(date, options) {\n if (options === void 0) {\n options = {};\n }\n var ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n var zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options)\n });\n }\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */;\n\n DateTime.fromMillis = function fromMillis(milliseconds, options) {\n if (options === void 0) {\n options = {};\n }\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\"fromMillis requires a numerical input, but received a \" + typeof milliseconds + \" with value \" + milliseconds);\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */;\n\n DateTime.fromSeconds = function fromSeconds(seconds, options) {\n if (options === void 0) {\n options = {};\n }\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {string|Zone} [obj.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [obj.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} obj.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} obj.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @return {DateTime}\n */;\n\n DateTime.fromObject = function fromObject(obj) {\n var zoneToUse = normalizeZone(obj.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n var tsNow = Settings.now(),\n offsetProvis = zoneToUse.offset(tsNow),\n normalized = normalizeObject(obj, normalizeUnit, [\"zone\", \"locale\", \"outputCalendar\", \"numberingSystem\"]),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber,\n loc = Locale.fromObject(obj); // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\"Can't mix weekYear/weekNumber units with year/month/day or ordinals\");\n }\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n var useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; // configure ourselves to deal with gregorian dates or week stuff\n\n var units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits$1;\n defaultValues = defaultUnitValues;\n } // set default values for missing stuff\n\n var foundFirst = false;\n for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done;) {\n var u = _step3.value;\n var v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n } // make sure the values we have are in range\n\n var higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n if (invalid) {\n return DateTime.invalid(invalid);\n } // compute the actual time\n\n var gregorian = useWeekData ? weekToGregorian(normalized) : containsOrdinal ? ordinalToGregorian(normalized) : normalized,\n _objToTS2 = objToTS(gregorian, offsetProvis, zoneToUse),\n tsFinal = _objToTS2[0],\n offsetFinal = _objToTS2[1],\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc: loc\n }); // gregorian data + weekday serves only to validate\n\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\"mismatched weekday\", \"you can't specify both a weekday of \" + normalized.weekday + \" and a date of \" + inst.toISO());\n }\n return inst;\n }\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */;\n\n DateTime.fromISO = function fromISO(text, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var _parseISODate = parseISODate(text),\n vals = _parseISODate[0],\n parsedZone = _parseISODate[1];\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */;\n\n DateTime.fromRFC2822 = function fromRFC2822(text, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var _parseRFC2822Date = parseRFC2822Date(text),\n vals = _parseRFC2822Date[0],\n parsedZone = _parseRFC2822Date[1];\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */;\n\n DateTime.fromHTTP = function fromHTTP(text, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var _parseHTTPDate = parseHTTPDate(text),\n vals = _parseHTTPDate[0],\n parsedZone = _parseHTTPDate[1];\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @see https://moment.github.io/luxon/docs/manual/parsing.html#table-of-tokens\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */;\n\n DateTime.fromFormat = function fromFormat(text, fmt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n var _opts = opts,\n _opts$locale = _opts.locale,\n locale = _opts$locale === void 0 ? null : _opts$locale,\n _opts$numberingSystem = _opts.numberingSystem,\n numberingSystem = _opts$numberingSystem === void 0 ? null : _opts$numberingSystem,\n localeToUse = Locale.fromOpts({\n locale: locale,\n numberingSystem: numberingSystem,\n defaultToEN: true\n }),\n _parseFromTokens = parseFromTokens(localeToUse, text, fmt),\n vals = _parseFromTokens[0],\n parsedZone = _parseFromTokens[1],\n invalid = _parseFromTokens[2];\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, \"format \" + fmt, text);\n }\n }\n /**\n * @deprecated use fromFormat instead\n */;\n\n DateTime.fromString = function fromString(text, fmt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return DateTime.fromFormat(text, fmt, opts);\n }\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */;\n\n DateTime.fromSQL = function fromSQL(text, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var _parseSQL = parseSQL(text),\n vals = _parseSQL[0],\n parsedZone = _parseSQL[1];\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */;\n\n DateTime.invalid = function invalid(reason, explanation) {\n if (explanation === void 0) {\n explanation = null;\n }\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({\n invalid: invalid\n });\n }\n }\n /**\n * Check if an object is a DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */;\n\n DateTime.isDateTime = function isDateTime(o) {\n return o && o.isLuxonDateTime || false;\n } // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */;\n\n var _proto = DateTime.prototype;\n _proto.get = function get(unit) {\n return this[unit];\n }\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */;\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n _proto.resolvedLocaleOpts = function resolvedLocaleOpts(opts) {\n if (opts === void 0) {\n opts = {};\n }\n var _Formatter$create$res = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this),\n locale = _Formatter$create$res.locale,\n numberingSystem = _Formatter$create$res.numberingSystem,\n calendar = _Formatter$create$res.calendar;\n return {\n locale: locale,\n numberingSystem: numberingSystem,\n outputCalendar: calendar\n };\n } // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */;\n\n _proto.toUTC = function toUTC(offset, opts) {\n if (offset === void 0) {\n offset = 0;\n }\n if (opts === void 0) {\n opts = {};\n }\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */;\n\n _proto.toLocal = function toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link plus}. You may wish to use {@link toLocal} and {@link toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */;\n\n _proto.setZone = function setZone(zone, _temp) {\n var _ref3 = _temp === void 0 ? {} : _temp,\n _ref3$keepLocalTime = _ref3.keepLocalTime,\n keepLocalTime = _ref3$keepLocalTime === void 0 ? false : _ref3$keepLocalTime,\n _ref3$keepCalendarTim = _ref3.keepCalendarTime,\n keepCalendarTime = _ref3$keepCalendarTim === void 0 ? false : _ref3$keepCalendarTim;\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n var newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n var offsetGuess = zone.offset(this.ts);\n var asObj = this.toObject();\n var _objToTS3 = objToTS(asObj, offsetGuess, zone);\n newTS = _objToTS3[0];\n }\n return clone$1(this, {\n ts: newTS,\n zone: zone\n });\n }\n }\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */;\n\n _proto.reconfigure = function reconfigure(_temp2) {\n var _ref4 = _temp2 === void 0 ? {} : _temp2,\n locale = _ref4.locale,\n numberingSystem = _ref4.numberingSystem,\n outputCalendar = _ref4.outputCalendar;\n var loc = this.loc.clone({\n locale: locale,\n numberingSystem: numberingSystem,\n outputCalendar: outputCalendar\n });\n return clone$1(this, {\n loc: loc\n });\n }\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */;\n\n _proto.setLocale = function setLocale(locale) {\n return this.reconfigure({\n locale: locale\n });\n }\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link reconfigure} and {@link setZone}.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */;\n\n _proto.set = function set(values) {\n if (!this.isValid) return this;\n var normalized = normalizeObject(values, normalizeUnit, []),\n settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\"Can't mix weekYear/weekNumber units with year/month/day or ordinals\");\n }\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n var mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(Object.assign(gregorianToWeek(this.c), normalized));\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c), normalized));\n } else {\n mixed = Object.assign(this.toObject(), normalized); // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n var _objToTS4 = objToTS(mixed, this.o, this.zone),\n ts = _objToTS4[0],\n o = _objToTS4[1];\n return clone$1(this, {\n ts: ts,\n o: o\n });\n }\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */;\n\n _proto.plus = function plus(duration) {\n if (!this.isValid) return this;\n var dur = friendlyDuration(duration);\n return clone$1(this, adjustTime(this, dur));\n }\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */;\n\n _proto.minus = function minus(duration) {\n if (!this.isValid) return this;\n var dur = friendlyDuration(duration).negate();\n return clone$1(this, adjustTime(this, dur));\n }\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */;\n\n _proto.startOf = function startOf(unit) {\n if (!this.isValid) return this;\n var o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n\n case \"hours\":\n o.minute = 0;\n // falls through\n\n case \"minutes\":\n o.second = 0;\n // falls through\n\n case \"seconds\":\n o.millisecond = 0;\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n o.weekday = 1;\n }\n if (normalizedUnit === \"quarters\") {\n var q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n return this.set(o);\n }\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */;\n\n _proto.endOf = function endOf(unit) {\n var _this$plus;\n return this.isValid ? this.plus((_this$plus = {}, _this$plus[unit] = 1, _this$plus)).startOf(unit).minus(1) : this;\n } // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @see https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */;\n\n _proto.toFormat = function toFormat(fmt, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID$2;\n }\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param opts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString({ locale: 'en-gb' }); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hour12: false }); //=> '11:32'\n * @return {string}\n */;\n\n _proto.toLocaleString = function toLocaleString(opts) {\n if (opts === void 0) {\n opts = DATE_SHORT;\n }\n return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTime(this) : INVALID$2;\n }\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */;\n\n _proto.toLocaleParts = function toLocaleParts(opts) {\n if (opts === void 0) {\n opts = {};\n }\n return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : [];\n }\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */;\n\n _proto.toISO = function toISO(opts) {\n if (opts === void 0) {\n opts = {};\n }\n if (!this.isValid) {\n return null;\n }\n return this.toISODate(opts) + \"T\" + this.toISOTime(opts);\n }\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */;\n\n _proto.toISODate = function toISODate(_temp3) {\n var _ref5 = _temp3 === void 0 ? {} : _temp3,\n _ref5$format = _ref5.format,\n format = _ref5$format === void 0 ? \"extended\" : _ref5$format;\n var fmt = format === \"basic\" ? \"yyyyMMdd\" : \"yyyy-MM-dd\";\n if (this.year > 9999) {\n fmt = \"+\" + fmt;\n }\n return toTechFormat(this, fmt);\n }\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */;\n\n _proto.toISOWeekDate = function toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @return {string}\n */;\n\n _proto.toISOTime = function toISOTime(_temp4) {\n var _ref6 = _temp4 === void 0 ? {} : _temp4,\n _ref6$suppressMillise = _ref6.suppressMilliseconds,\n suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,\n _ref6$suppressSeconds = _ref6.suppressSeconds,\n suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds,\n _ref6$includeOffset = _ref6.includeOffset,\n includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,\n _ref6$includePrefix = _ref6.includePrefix,\n includePrefix = _ref6$includePrefix === void 0 ? false : _ref6$includePrefix,\n _ref6$format = _ref6.format,\n format = _ref6$format === void 0 ? \"extended\" : _ref6$format;\n return toTechTimeFormat(this, {\n suppressSeconds: suppressSeconds,\n suppressMilliseconds: suppressMilliseconds,\n includeOffset: includeOffset,\n includePrefix: includePrefix,\n format: format\n });\n }\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime, always in UTC\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */;\n\n _proto.toRFC2822 = function toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */;\n\n _proto.toHTTP = function toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */;\n\n _proto.toSQLDate = function toSQLDate() {\n return toTechFormat(this, \"yyyy-MM-dd\");\n }\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */;\n\n _proto.toSQLTime = function toSQLTime(_temp5) {\n var _ref7 = _temp5 === void 0 ? {} : _temp5,\n _ref7$includeOffset = _ref7.includeOffset,\n includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,\n _ref7$includeZone = _ref7.includeZone,\n includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone;\n return toTechTimeFormat(this, {\n includeOffset: includeOffset,\n includeZone: includeZone,\n spaceZone: true\n });\n }\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */;\n\n _proto.toSQL = function toSQL(opts) {\n if (opts === void 0) {\n opts = {};\n }\n if (!this.isValid) {\n return null;\n }\n return this.toSQLDate() + \" \" + this.toSQLTime(opts);\n }\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */;\n\n _proto.toString = function toString() {\n return this.isValid ? this.toISO() : INVALID$2;\n }\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link toMillis}\n * @return {number}\n */;\n\n _proto.valueOf = function valueOf() {\n return this.toMillis();\n }\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */;\n\n _proto.toMillis = function toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */;\n\n _proto.toSeconds = function toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */;\n\n _proto.toJSON = function toJSON() {\n return this.toISO();\n }\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */;\n\n _proto.toBSON = function toBSON() {\n return this.toJSDate();\n }\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */;\n\n _proto.toObject = function toObject(opts) {\n if (opts === void 0) {\n opts = {};\n }\n if (!this.isValid) return {};\n var base = Object.assign({}, this.c);\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */;\n\n _proto.toJSDate = function toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n } // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */;\n\n _proto.diff = function diff(otherDateTime, unit, opts) {\n if (unit === void 0) {\n unit = \"milliseconds\";\n }\n if (opts === void 0) {\n opts = {};\n }\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(this.invalid || otherDateTime.invalid, \"created by diffing an invalid DateTime\");\n }\n var durOpts = Object.assign({\n locale: this.locale,\n numberingSystem: this.numberingSystem\n }, opts);\n var units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = _diff(earlier, later, units, durOpts);\n return otherIsLater ? diffed.negate() : diffed;\n }\n /**\n * Return the difference between this DateTime and right now.\n * See {@link diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */;\n\n _proto.diffNow = function diffNow(unit, opts) {\n if (unit === void 0) {\n unit = \"milliseconds\";\n }\n if (opts === void 0) {\n opts = {};\n }\n return this.diff(DateTime.now(), unit, opts);\n }\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */;\n\n _proto.until = function until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */;\n\n _proto.hasSame = function hasSame(otherDateTime, unit) {\n if (!this.isValid) return false;\n var inputMs = otherDateTime.valueOf();\n var otherZoneDateTime = this.setZone(otherDateTime.zone, {\n keepLocalTime: true\n });\n return otherZoneDateTime.startOf(unit) <= inputMs && inputMs <= otherZoneDateTime.endOf(unit);\n }\n /**\n * Equality check\n * Two DateTimes are equal iff they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */;\n\n _proto.equals = function equals(other) {\n return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc);\n }\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */;\n\n _proto.toRelative = function toRelative(options) {\n if (options === void 0) {\n options = {};\n }\n if (!this.isValid) return null;\n var base = options.base || DateTime.fromObject({\n zone: this.zone\n }),\n padding = options.padding ? this < base ? -options.padding : options.padding : 0;\n var units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n var unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), Object.assign(options, {\n numeric: \"always\",\n units: units,\n unit: unit\n }));\n }\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */;\n\n _proto.toRelativeCalendar = function toRelativeCalendar(options) {\n if (options === void 0) {\n options = {};\n }\n if (!this.isValid) return null;\n return diffRelative(options.base || DateTime.fromObject({\n zone: this.zone\n }), this, Object.assign(options, {\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true\n }));\n }\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */;\n\n DateTime.min = function min() {\n for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) {\n dateTimes[_key] = arguments[_key];\n }\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, function (i) {\n return i.valueOf();\n }, Math.min);\n }\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */;\n\n DateTime.max = function max() {\n for (var _len2 = arguments.length, dateTimes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n dateTimes[_key2] = arguments[_key2];\n }\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, function (i) {\n return i.valueOf();\n }, Math.max);\n } // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */;\n\n DateTime.fromFormatExplain = function fromFormatExplain(text, fmt, options) {\n if (options === void 0) {\n options = {};\n }\n var _options = options,\n _options$locale = _options.locale,\n locale = _options$locale === void 0 ? null : _options$locale,\n _options$numberingSys = _options.numberingSystem,\n numberingSystem = _options$numberingSys === void 0 ? null : _options$numberingSys,\n localeToUse = Locale.fromOpts({\n locale: locale,\n numberingSystem: numberingSystem,\n defaultToEN: true\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n /**\n * @deprecated use fromFormatExplain instead\n */;\n\n DateTime.fromStringExplain = function fromStringExplain(text, fmt, options) {\n if (options === void 0) {\n options = {};\n }\n return DateTime.fromFormatExplain(text, fmt, options);\n } // FORMAT PRESETS\n\n /**\n * {@link toLocaleString} format like 10/14/1983\n * @type {Object}\n */;\n\n _createClass(DateTime, [{\n key: \"isValid\",\n get: function get() {\n return this.invalid === null;\n }\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n }, {\n key: \"invalidReason\",\n get: function get() {\n return this.invalid ? this.invalid.reason : null;\n }\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n }, {\n key: \"invalidExplanation\",\n get: function get() {\n return this.invalid ? this.invalid.explanation : null;\n }\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n }, {\n key: \"locale\",\n get: function get() {\n return this.isValid ? this.loc.locale : null;\n }\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n }, {\n key: \"numberingSystem\",\n get: function get() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n }, {\n key: \"outputCalendar\",\n get: function get() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n }, {\n key: \"zone\",\n get: function get() {\n return this._zone;\n }\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n }, {\n key: \"zoneName\",\n get: function get() {\n return this.isValid ? this.zone.name : null;\n }\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n }, {\n key: \"year\",\n get: function get() {\n return this.isValid ? this.c.year : NaN;\n }\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n }, {\n key: \"quarter\",\n get: function get() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n }, {\n key: \"month\",\n get: function get() {\n return this.isValid ? this.c.month : NaN;\n }\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n }, {\n key: \"day\",\n get: function get() {\n return this.isValid ? this.c.day : NaN;\n }\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n }, {\n key: \"hour\",\n get: function get() {\n return this.isValid ? this.c.hour : NaN;\n }\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n }, {\n key: \"minute\",\n get: function get() {\n return this.isValid ? this.c.minute : NaN;\n }\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n }, {\n key: \"second\",\n get: function get() {\n return this.isValid ? this.c.second : NaN;\n }\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n }, {\n key: \"millisecond\",\n get: function get() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n }, {\n key: \"weekYear\",\n get: function get() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n }, {\n key: \"weekNumber\",\n get: function get() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n }, {\n key: \"weekday\",\n get: function get() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n }, {\n key: \"ordinal\",\n get: function get() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n }, {\n key: \"monthShort\",\n get: function get() {\n return this.isValid ? Info.months(\"short\", {\n locObj: this.loc\n })[this.month - 1] : null;\n }\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n }, {\n key: \"monthLong\",\n get: function get() {\n return this.isValid ? Info.months(\"long\", {\n locObj: this.loc\n })[this.month - 1] : null;\n }\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n }, {\n key: \"weekdayShort\",\n get: function get() {\n return this.isValid ? Info.weekdays(\"short\", {\n locObj: this.loc\n })[this.weekday - 1] : null;\n }\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n }, {\n key: \"weekdayLong\",\n get: function get() {\n return this.isValid ? Info.weekdays(\"long\", {\n locObj: this.loc\n })[this.weekday - 1] : null;\n }\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n }, {\n key: \"offset\",\n get: function get() {\n return this.isValid ? +this.o : NaN;\n }\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n }, {\n key: \"offsetNameShort\",\n get: function get() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n }, {\n key: \"offsetNameLong\",\n get: function get() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n }, {\n key: \"isOffsetFixed\",\n get: function get() {\n return this.isValid ? this.zone.universal : null;\n }\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n }, {\n key: \"isInDST\",\n get: function get() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return this.offset > this.set({\n month: 1\n }).offset || this.offset > this.set({\n month: 5\n }).offset;\n }\n }\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n }, {\n key: \"isInLeapYear\",\n get: function get() {\n return isLeapYear(this.year);\n }\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n }, {\n key: \"daysInMonth\",\n get: function get() {\n return daysInMonth(this.year, this.month);\n }\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n }, {\n key: \"daysInYear\",\n get: function get() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n }, {\n key: \"weeksInWeekYear\",\n get: function get() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n }], [{\n key: \"DATE_SHORT\",\n get: function get() {\n return DATE_SHORT;\n }\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n }, {\n key: \"DATE_MED\",\n get: function get() {\n return DATE_MED;\n }\n /**\n * {@link toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n }, {\n key: \"DATE_MED_WITH_WEEKDAY\",\n get: function get() {\n return DATE_MED_WITH_WEEKDAY;\n }\n /**\n * {@link toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n }, {\n key: \"DATE_FULL\",\n get: function get() {\n return DATE_FULL;\n }\n /**\n * {@link toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n }, {\n key: \"DATE_HUGE\",\n get: function get() {\n return DATE_HUGE;\n }\n /**\n * {@link toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"TIME_SIMPLE\",\n get: function get() {\n return TIME_SIMPLE;\n }\n /**\n * {@link toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"TIME_WITH_SECONDS\",\n get: function get() {\n return TIME_WITH_SECONDS;\n }\n /**\n * {@link toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"TIME_WITH_SHORT_OFFSET\",\n get: function get() {\n return TIME_WITH_SHORT_OFFSET;\n }\n /**\n * {@link toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"TIME_WITH_LONG_OFFSET\",\n get: function get() {\n return TIME_WITH_LONG_OFFSET;\n }\n /**\n * {@link toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n }, {\n key: \"TIME_24_SIMPLE\",\n get: function get() {\n return TIME_24_SIMPLE;\n }\n /**\n * {@link toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n }, {\n key: \"TIME_24_WITH_SECONDS\",\n get: function get() {\n return TIME_24_WITH_SECONDS;\n }\n /**\n * {@link toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n }, {\n key: \"TIME_24_WITH_SHORT_OFFSET\",\n get: function get() {\n return TIME_24_WITH_SHORT_OFFSET;\n }\n /**\n * {@link toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n }, {\n key: \"TIME_24_WITH_LONG_OFFSET\",\n get: function get() {\n return TIME_24_WITH_LONG_OFFSET;\n }\n /**\n * {@link toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_SHORT\",\n get: function get() {\n return DATETIME_SHORT;\n }\n /**\n * {@link toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_SHORT_WITH_SECONDS\",\n get: function get() {\n return DATETIME_SHORT_WITH_SECONDS;\n }\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_MED\",\n get: function get() {\n return DATETIME_MED;\n }\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_MED_WITH_SECONDS\",\n get: function get() {\n return DATETIME_MED_WITH_SECONDS;\n }\n /**\n * {@link toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_MED_WITH_WEEKDAY\",\n get: function get() {\n return DATETIME_MED_WITH_WEEKDAY;\n }\n /**\n * {@link toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_FULL\",\n get: function get() {\n return DATETIME_FULL;\n }\n /**\n * {@link toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_FULL_WITH_SECONDS\",\n get: function get() {\n return DATETIME_FULL_WITH_SECONDS;\n }\n /**\n * {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_HUGE\",\n get: function get() {\n return DATETIME_HUGE;\n }\n /**\n * {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n }, {\n key: \"DATETIME_HUGE_WITH_SECONDS\",\n get: function get() {\n return DATETIME_HUGE_WITH_SECONDS;\n }\n }]);\n return DateTime;\n}();\nfunction friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\"Unknown datetime argument: \" + dateTimeish + \", of type \" + typeof dateTimeish);\n }\n}\nvar VERSION = \"1.28.1\";\nexports.DateTime = DateTime;\nexports.Duration = Duration;\nexports.FixedOffsetZone = FixedOffsetZone;\nexports.IANAZone = IANAZone;\nexports.Info = Info;\nexports.Interval = Interval;\nexports.InvalidZone = InvalidZone;\nexports.LocalZone = LocalZone;\nexports.Settings = Settings;\nexports.VERSION = VERSION;\nexports.Zone = Zone;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AdminCandidate',[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.stepInitial)?_c('div',{staticClass:\"row p-0 m-0\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\",class:{ no_radius: _vm.mobile ? true : false }},[_c('div',{staticClass:\"row mr-0 ml-0 mt-5 mb-5\"},[_c('div',{staticClass:\"col-lg-1\"})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\",staticStyle:{\"margin-top\":\"-100px\",\"background-color\":\"#9381ff\",\"border-bottom-left-radius\":\"0\",\"border-bottom-right-radius\":\"0\"},style:({\n 'border-radius': _vm.mobile ? '0px' : '15px',\n })},[_c('div',{staticClass:\"row mr-0 ml-0 mb-3\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 center\"},[(this.videos.length == 1)?_c('div',[_c('h2',{staticClass:\"label-bold color-white mt-4 mb-3\",staticStyle:{\"font-size\":\"em\",\"text-align\":\"center\"}},[_vm._v(\"\\n Assista o vídeo que preparamos para você antes de continuar!\\n \")]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-white mb-3\"})]):_vm._e(),_vm._v(\" \"),(this.videos.length > 1)?_c('div',[_c('h2',{staticClass:\"label-bold color-white mt-4 mb-3\",staticStyle:{\"font-size\":\"em\",\"text-align\":\"center\"}},[_vm._v(\"\\n Assista os vídeos que preparamos para você antes de continuar!\\n \")]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-white mb-3\"})]):_vm._e(),_vm._v(\" \"),_c('div',[_c('h1',{staticClass:\"center mt-3 mb-3\",staticStyle:{\"color\":\"#44246b\"}},[_c('b',[_vm._v(_vm._s(_vm.job.title))])])]),_vm._v(\" \"),(_vm.videos.length > 0)?_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-1 d-flex align-items-center justify-content-start mb-1\",class:{ hide: _vm.mobile }},[(this.countVideo >= 1)?_c('span',{staticClass:\"d-flex align-items-center justify-content-center pointer\",on:{\"click\":_vm.decrementOne}},[_c('i',{staticClass:\"p-1 fas color-white fa-angle-left f50 btn-arrow-video\",staticStyle:{\"background-color\":\"#01b9f7\"}})]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\",staticStyle:{}},[(_vm.videos.length > 0)?_c('div',[_c('span',{staticClass:\"label-bold color-white\"},[_vm._v(\"\\n \"+_vm._s(_vm.videos[this.countVideo].name)+\"\\n \")]),_vm._v(\" \"),(_vm.videos[this.countVideo].iframe == '')?_c('div',{staticClass:\"center\"},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.videos[this.countVideo].video),expression:\"videos[this.countVideo].video\"}],staticStyle:{\"max-width\":\"100%\"},attrs:{\"controls\":\"\",\"controlslist\":\"nodonwload\",\"playsinlineatributo\":\"\",\"preload\":\"yes\",\"id\":\"buttonVideo\"}},[_c('source',{attrs:{\"src\":_vm.videos[this.countVideo].video,\"type\":\"video/mp4\"}})])]):_vm._e(),_vm._v(\" \"),(_vm.videos[this.countVideo].iframe != '')?_c('div',{staticClass:\"center\"},[_c('video-embed',{staticClass:\"full\",attrs:{\"src\":_vm.videos[this.countVideo].iframe}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"center\",class:{ hide: _vm.mobile }},[_c('span',{staticClass:\"f12 color-white\"},[_vm._v(_vm._s(this.countVideo + 1)+\" de\\n \"+_vm._s(this.videos.length))])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1 d-flex align-items-center justify-content-end\",class:{ hide: _vm.mobile }},[(_vm.countVideo != _vm.videos.length - 1)?_c('span',{staticClass:\"d-flex align-items-center justify-content-center pointer\",on:{\"click\":_vm.increaseOne}},[_c('i',{staticClass:\"p-1 fas color-white fa-angle-right f50 btn-arrow-video\",staticStyle:{\"background-color\":\"#01b9f7\"}})]):_vm._e()])]):_vm._e(),_vm._v(\" \"),(_vm.mobile == true)?_c('div',{staticClass:\"row mb-3 center\"},[_c('div',{staticClass:\"width48\"},[(this.countVideo >= 1)?_c('span',{staticClass:\"d-flex align-items-center justify-content-center pointer\",on:{\"click\":_vm.decrementOne}},[_c('i',{staticClass:\"p-1 fas color-white fa-angle-left f50 btn-arrow-video\",staticStyle:{\"background-color\":\"#01b9f7\"}})]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"width48\"},[(_vm.countVideo != _vm.videos.length - 1)?_c('span',{staticClass:\"d-flex align-items-center justify-content-center pointer\",on:{\"click\":_vm.increaseOne}},[_c('i',{staticClass:\"p-1 fas color-white fa-angle-right f50 btn-arrow-video\",staticStyle:{\"background-color\":\"#01b9f7\"}})]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"center width100\"},[_c('span',{staticClass:\"f12 color-gray\"},[_vm._v(_vm._s(this.countVideo + 1)+\" de \"+_vm._s(this.videos.length))])])]):_vm._e(),_vm._v(\" \"),(!_vm.is_credit_suisse)?_c('div',{staticClass:\"row mb-3 mt-3\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\"},[_c('div',[_c('h1',{staticClass:\"center mt-3 mb-3\",staticStyle:{\"color\":\"#44246b\"}},[_c('b',[_vm._v(\"Descrição:\")])])]),_vm._v(\" \"),_c('div',[_c('span',{staticClass:\"f18 color-white\",staticStyle:{\"text-align\":\"left\"},domProps:{\"innerHTML\":_vm._s(this.job.description)}},[_vm._v(\"\\n \"+_vm._s(this.job.description)+\"\\n \")])])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row text-left\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('div',{staticClass:\"row\"},[(_vm.job.skills != '')?_c('div',{staticClass:\"col-lg-12 col-xs-12 text-truncate\"},[_c('h4',{staticClass:\"mt-5 mb-3\",staticStyle:{\"color\":\"#44246b\"}},[_c('b',[_vm._v(\"Competências Técnicas:\")])]),_vm._v(\" \"),_vm._l((this.job.skills),function(item){return _c('span',{key:item.id,staticClass:\"f18 color-white p-0 m-0\"},[_vm._v(\"\\n \"+_vm._s(_vm.capitalizeFirstLetter(item))),_c('br')])})],2):_vm._e(),_vm._v(\" \"),(_vm.job.behavioral != '')?_c('div',{staticClass:\"col-lg-12 col-xs-12 text-truncate\"},[_c('h4',{staticClass:\"mt-5 mb-3\",staticStyle:{\"color\":\"#44246b\"}},[_c('b',[_vm._v(\"Competências Comportamentais:\")])]),_vm._v(\" \"),_vm._l((this.job.behavioral),function(item){return _c('span',{key:item.id,staticClass:\"f18 color-white p-0 m-0\"},[_vm._v(\"\\n \"+_vm._s(_vm.capitalizeFirstLetter(item))),_c('br')])})],2):_vm._e(),_vm._v(\" \"),(!_vm.is_credit_suisse)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[(\n !_vm.job.hide_remuneration &&\n _vm.job.minimum_remuneration != 0\n )?_c('div',{staticClass:\"mt-3 label-bold\",staticStyle:{\"text-align\":\"start\"}},[_c('h4',{staticClass:\"mt-5 mb-3\",staticStyle:{\"color\":\"#44246b\"}},[_c('b',[_vm._v(\"Salário:\")])]),_vm._v(\" \"),_c('span',{staticClass:\"f18 color-white p-0 m-0\"},[_vm._v(\"\\n R$\\n \"+_vm._s(_vm.formatCurrency(this.job.minimum_remuneration))+\"\\n \"+_vm._s(this.job.maximum_remuneration != 0\n ? \" até R$ \" +\n _vm.formatCurrency(this.job.maximum_remuneration)\n : \"\")+\"\\n \")])]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.job.benefits != '')?_c('div',{staticClass:\"col-lg-12 col-xs-12 hide text-truncate\"},[_c('h4',{staticClass:\"mt-5 mb-3\",staticStyle:{\"color\":\"#44246b\"}},[_c('b',[_vm._v(\"Benefícios:\")])]),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"20px\"}},_vm._l((this.job.benefits),function(item){return _c('span',{key:item,staticClass:\"f18 color-white p-0 m-0\"},[_vm._v(\"\\n \"+_vm._s(_vm.capitalizeFirstLetter(item))),_c('br')])}),0)]):_vm._e()])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12 bg-white\",staticStyle:{\"margin-top\":\"-10px\",\"border-radius\":\"15px\"}},[_c('div',{staticClass:\"row mt-5\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"extra-description\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(this.job.extra_description)}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"center mt-5\"},[_c('h2',{staticClass:\"color-primary label-bold\"},[_vm._v(\"\\n Está pronto? Vamos começar?\\n \")]),_vm._v(\" \"),_c('h5',{staticClass:\"color-primary mt-4\"},[_vm._v(\"\\n Faça seu login ou cadastro e boa sorte!\\n \")]),_vm._v(\" \"),_c('h5',{staticClass:\"color-primary mt-4\"},[_vm._v(\"\\n Esperamos te ver em breve na próxima etapa.\\n \")])]),_vm._v(\" \"),(!_vm.isJobConcluded)?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 p-5 col-xs-12\"},[_c('h4',{staticClass:\"color-primary mt-3 header_border\"},[_vm._v(\"\\n Crie sua \"),_c('b',[_vm._v(\"conta\")])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-4\"},[_c('div',{staticClass:\"col-lg-5 col-xs-12 bg-white mt-4\"},[_c('button',{staticClass:\"btn btn-lg width100 btn-primary\",staticStyle:{\"background-color\":\"#0076b5 !important\",\"border\":\"0px\",\"height\":\"40px\"},on:{\"click\":function($event){return _vm.loginLinkedin(false)}}},[_c('i',{staticClass:\"fab fa-linkedin\"}),_vm._v(\" Linkedin\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1 center py-1 mt-4 center\"},[_vm._v(\"ou\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 bg-white pt-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.name),expression:\"user.name\"}],staticClass:\"form-control width100 bg-input-candidate\",class:{\n 'is-invalid': _vm.$v.user.name.$error,\n 'is-valid': !_vm.$v.user.name.$invalid,\n },staticStyle:{\"float\":\"right\",\"height\":\"40px\",\"text-align\":\"center\",\"border\":\"none\"},attrs:{\"type\":\"text\",\"placeholder\":\"Nome completo*\"},domProps:{\"value\":(_vm.user.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"name\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[(_vm.job.candidates_uniques)?_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.cpf),expression:\"user.cpf\"},{name:\"mask\",rawName:\"v-mask\",value:('###.###.###-##'),expression:\"'###.###.###-##'\"}],staticClass:\"form-control width100 bg-input-candidate\",staticStyle:{\"text-align\":\"center\",\"border\":\"none\",\"height\":\"40px\"},attrs:{\"type\":\"text\",\"field\":_vm.$v.user.cpf,\"placeholder\":\"CPF*\"},domProps:{\"value\":(_vm.user.cpf)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"cpf\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.email),expression:\"user.email\"}],staticClass:\"form-control width100 bg-input-candidate\",class:{\n 'is-invalid': _vm.$v.user.email.$error,\n 'is-valid': !_vm.$v.user.email.$invalid,\n },staticStyle:{\"text-align\":\"center\",\"border\":\"none\",\"height\":\"40px\"},attrs:{\"type\":\"text\",\"placeholder\":\"Email*\"},domProps:{\"value\":(_vm.user.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"email\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.password),expression:\"user.password\"}],staticClass:\"form-control width100 bg-input-candidate\",class:{\n 'is-invalid': _vm.$v.user.password.$error,\n 'is-valid': !_vm.$v.user.password.$invalid,\n },staticStyle:{\"text-align\":\"center\",\"border\":\"none\",\"height\":\"40px\"},attrs:{\"type\":\"password\",\"placeholder\":\"Senha*\"},domProps:{\"value\":(_vm.user.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"password\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.confirm_password),expression:\"confirm_password\"}],staticClass:\"form-control width100 bg-input-candidate\",class:{\n 'is-invalid': _vm.$v.confirm_password.$error,\n 'is-valid': !_vm.$v.confirm_password.$invalid,\n },staticStyle:{\"text-align\":\"center\",\"border\":\"none\",\"height\":\"40px\"},attrs:{\"type\":\"password\",\"placeholder\":\"Confirme a senha*\"},domProps:{\"value\":(_vm.confirm_password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.confirm_password=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row pb-4 pt-4\"},[(_vm.disclaimers.length == 0)?_c('div',[(!_vm.is_credit_suisse && !_vm.extra_checkboxes.length > 0)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',{class:{\n seterror: !_vm.conditions && _vm.error_linkedin,\n }},[_c('input',{staticClass:\"mt-2\",attrs:{\"type\":\"checkbox\"},on:{\"change\":_vm.changeConditions}}),_vm._v(\" \"),_c('span',[_vm._v(\"Ao se candidatar a está vaga você Aceita e Concorda com\\n nossos\")]),_vm._v(\" \"),_c('a',{staticStyle:{\"color\":\"blue\"},attrs:{\"href\":\"/termos_de_uso\"}},[_vm._v(\"Termos de Uso\")]),_vm._v(\" \"),_c('span',[_vm._v(\"e\")]),_vm._v(\" \"),_c('a',{staticStyle:{\"color\":\"blue\"},attrs:{\"href\":\"/politicas_de_privacidade\"}},[_vm._v(\"Política de Privacidade\")])])]):_vm._e(),_vm._v(\" \"),(_vm.is_credit_suisse)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',{class:{\n seterror: !_vm.conditions && _vm.error_linkedin,\n }},[_c('input',{staticClass:\"mt-2\",attrs:{\"type\":\"checkbox\"},on:{\"change\":_vm.changeConditions}}),_vm._v(\" \"),_c('span',[_vm._v(\"Declaro que li e concordo com a \")]),_vm._v(\" \"),_c('a',{staticStyle:{\"color\":\"blue\"},attrs:{\"href\":\"/politicas_de_privacidade\"}},[_vm._v(\"Política de Privacidade\")]),_vm._v(\" \"),_c('span',[_vm._v(\"e\")]),_vm._v(\" \"),_c('a',{staticStyle:{\"color\":\"blue\"},attrs:{\"href\":\"/termos_de_uso\"}},[_vm._v(\"Termos de Uso\")]),_vm._v(\".\\n \")]),_vm._v(\" \"),_c('label',{class:{\n seterror: !_vm.conditions_credit_suisse && _vm.error_linkedin,\n }},[_c('input',{staticClass:\"mt-2\",attrs:{\"type\":\"checkbox\"},on:{\"change\":_vm.changeCreditSuisseConditions}}),_vm._v(\" \"),_c('span',[_vm._v(\"\\n Estou ciente de que não sou obrigado a preencher os campos que contenham os meus Dados Pessoais Sensíveis.\\n \"),_c('br'),_vm._v(\"\\n Li a Política de Privacidade e dou meu consentimento livre, informado e inequívoco de que os meus Dados Pessoais Sensíveis, caso sejam por mim preenchidos, poderão ser usados pela Mappit e Credit Suisse para oferta e preenchimento de vagas.\\n \")])])]):_vm._e(),_vm._v(\" \"),(_vm.extra_checkboxes)?_c('div',{staticClass:\"col-12\"},_vm._l((_vm.extra_checkboxes),function(checkbox,checkbox_index){return _c('div',{key:`checkbox-${checkbox_index}`},[_c('label',{class:{\n seterror: !_vm.extra_conditions || _vm.error_linkedin,\n }},[_c('input',{staticClass:\"mt-2\",attrs:{\"type\":\"checkbox\"},on:{\"change\":function($event){return _vm.changeExtraConditions(checkbox_index)}}}),_vm._v(\" \"),_c('span',{domProps:{\"innerHTML\":_vm._s(checkbox)}})])])}),0):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn full width100 normal-degrade btn-degrade btn-login-candidate\",attrs:{\"type\":\"button\",\"disabled\":_vm.load},on:{\"click\":_vm.goToQuestion}},[(!_vm.load)?_c('div',[_c('i',{staticClass:\"fa fa-check\"}),_vm._v(\"\\n Cadastrar\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 p-5 col-xs-12\"},[_c('h4',{staticClass:\"color-primary mt-3 header_border\"},[_vm._v(\"\\n Faça \"),_c('b',[_vm._v(\"login\")])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-4\"},[_c('div',{staticClass:\"col-lg-5 col-xs-12 bg-white mt-4\"},[_c('button',{staticClass:\"btn btn-lg width100 btn-primary\",staticStyle:{\"background-color\":\"#0076b5 !important\",\"border\":\"0px\",\"height\":\"40px\"},on:{\"click\":function($event){return _vm.loginLinkedin(true)}}},[_c('i',{staticClass:\"fab fa-linkedin\"}),_vm._v(\" Linkedin\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1 center py-1 mt-4 center\"},[_vm._v(\"ou\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 bg-white pt-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.login.email),expression:\"login.email\"}],staticClass:\"form-control width100 bg-input-candidate\",class:{\n 'is-invalid': _vm.$v.login.email.$error,\n 'is-valid': !_vm.$v.login.email.$invalid,\n },staticStyle:{\"float\":\"right\",\"height\":\"40px\",\"text-align\":\"center\",\"border\":\"none\"},attrs:{\"type\":\"text\",\"placeholder\":\"Email*\"},domProps:{\"value\":(_vm.login.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.login, \"email\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.login.password),expression:\"login.password\"}],staticClass:\"form-control width100 bg-input-candidate\",class:{\n 'is-invalid': _vm.$v.login.password.$error,\n 'is-valid': !_vm.$v.login.password.$invalid,\n },staticStyle:{\"text-align\":\"center\",\"border\":\"none\",\"height\":\"40px\"},attrs:{\"type\":\"password\",\"placeholder\":\"Senha*\"},domProps:{\"value\":(_vm.login.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.login, \"password\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row pb-4 pt-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn full width100 btn-degrade normal-degrade btn-login-candidate\",attrs:{\"type\":\"button\",\"disabled\":_vm.load_login},on:{\"click\":_vm.loginCandidate}},[(!_vm.load_login)?_c('div',[_vm._v(\"Entrar\")]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load_login),expression:\"load_login\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('a',{attrs:{\"href\":'/candidates/password/new?token=' + _vm.account_uid}},[_vm._v(\"\\n Esqueceu sua senha? clique aqui\\n \")])])])])])]):_vm._e(),_vm._v(\" \"),(_vm.isJobConcluded)?_c('div',{staticClass:\"col-lg-12 col-xs-12 bg-white\",staticStyle:{\"margin-top\":\"-10px\",\"border-radius\":\"15px\"}},[_c('div',{staticClass:\"center mt-5 mb-5\"},[_c('h2',{staticClass:\"color-primary label-bold\"},[_vm._v(\"\\n Esta vaga já foi encerrada!\\n \")])])]):_vm._e()])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row col-lg-12\",staticStyle:{\"height\":\"100px\"}}),_vm._v(\" \"),(_vm.stepMandatory)?_c('Mandatory',{attrs:{\"job\":_vm.job}}):_vm._e(),_vm._v(\" \"),(_vm.stepForm)?_c('FormQuestion'):_vm._e(),_vm._v(\" \"),(_vm.stepVideo)?_c('Questions',{attrs:{\"account_uid\":_vm.account_uid,\"job_questions\":_vm.job_questions}}):_vm._e(),_vm._v(\" \"),(_vm.stepBigfive)?_c('div',[_c('Bigfive',{attrs:{\"bigfive_uid\":_vm.bigfive.uid,\"candidate_uid\":_vm.user.uid != '' ? _vm.user.uid : _vm.candidate_uid,\"amount_itens\":_vm.bigfive.amount_itens,\"account_uid\":_vm.account_uid}})],1):_vm._e(),_vm._v(\" \"),(_vm.stepFinal)?_c('Congratulation',{attrs:{\"show\":!_vm.job.mandatory_cv}}):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DisclaimerDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DisclaimerDialog.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n ACEITE OS TERMOS ABAIXO PARA CONTINUAR\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n {{ checkbox }}\n
\n
\n
\n
\n
\n
\n \n CONTINUAR\n \n
\n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./DisclaimerDialog.vue?vue&type=template&id=36b8dcf6&scoped=true&\"\nimport script from \"./DisclaimerDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./DisclaimerDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DisclaimerDialog.vue?vue&type=style&index=0&id=36b8dcf6&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"36b8dcf6\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row ml-5 mt-5\"},[_c('ul',{staticClass:\"nav nav-tabs\"},_vm._l((_vm.disclaimers),function(disclaimer,index){return _c('li',{key:index,staticClass:\"nav-item\"},[_c('a',{class:`pointer nav-link ${ _vm.tab === disclaimer.tab ? 'active' : ''}`,attrs:{\"aria-current\":\"page\"},on:{\"click\":function($event){return _vm.setTab(disclaimer.tab)}}},[_vm._v(\"\\n \"+_vm._s(disclaimer.tab)+\"\\n \")])])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"row disclaimer_container\"},[_c('div',{staticClass:\"col-12\"},[_vm._l((_vm.disclaimers),function(disclaimer,index){return _c('div',{key:index,staticClass:\"container\"},[(_vm.tab === disclaimer.tab)?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 disclaimer-content\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(disclaimer.description)}})])]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_vm._l((disclaimer.checkboxes),function(checkbox,index_checkbox){return _c('div',{key:`checkbox_${index_checkbox}_${index}`,staticClass:\"row mb-5\"},[_c('div',{staticClass:\"col-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.disclaimers_value[index]),expression:\"disclaimers_value[index]\"}],staticClass:\"mr-1\",attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.disclaimers_value[index])?_vm._i(_vm.disclaimers_value[index],null)>-1:(_vm.disclaimers_value[index])},on:{\"change\":function($event){var $$a=_vm.disclaimers_value[index],$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.disclaimers_value, index, $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.disclaimers_value, index, $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.disclaimers_value, index, $$c)}}}}),_vm._v(\"\\n \"+_vm._s(checkbox)+\"\\n \")])])})],2):_vm._e()])}),_vm._v(\" \"),_c('div',{staticClass:\"row mb-5\"},[_c('div',{staticClass:\"col-12 px-5\"},[_c('button',{staticClass:\"btn bg-purple mb-1 w-100 px-5 text-white py-2\",on:{\"click\":_vm.setDisclaimersValue}},[_vm._v(\"\\n CONTINUAR\\n \")])])])],2)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row ml-5 mt-5\"},[_c('div',{staticClass:\"col-12\"},[_c('h3',[_vm._v(\"\\n ACEITE OS TERMOS ABAIXO PARA CONTINUAR\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","\n \n \n \n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n Assista o vídeo que preparamos para você antes de continuar!\n \n \n \n
1\">\n
\n Assista os vídeos que preparamos para você antes de continuar!\n \n \n \n
\n
\n {{ job.title }} \n \n \n
0\"\n >\n
\n = 1\"\n >\n \n \n
\n
\n
0\">\n
\n {{ videos[this.countVideo].name }}\n \n
\n \n \n \n
\n
\n \n
\n
\n
\n {{ this.countVideo + 1 }} de\n {{ this.videos.length }} \n
\n
\n
\n \n \n \n
\n
\n
\n
\n = 1\"\n >\n \n \n
\n
\n \n \n \n
\n
\n {{ this.countVideo + 1 }} de {{ this.videos.length }} \n
\n
\n\n
\n
\n
\n
\n
\n Descrição: \n \n \n
\n \n {{ this.job.description }}\n \n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n Competências Técnicas: \n \n \n {{ capitalizeFirstLetter(item) }} \n \n \n
\n
\n Competências Comportamentais: \n \n \n {{ capitalizeFirstLetter(item) }} \n \n \n
\n
\n
\n Salário: \n \n\n \n R$\n {{ formatCurrency(this.job.minimum_remuneration) }}\n {{\n this.job.maximum_remuneration != 0\n ? \" até R$ \" +\n formatCurrency(this.job.maximum_remuneration)\n : \"\"\n }}\n \n \n
\n
\n
\n Benefícios: \n \n
\n \n {{ capitalizeFirstLetter(item) }} \n \n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n Está pronto? Vamos começar?\n \n\n \n Faça seu login ou cadastro e boa sorte!\n \n \n Esperamos te ver em breve na próxima etapa.\n \n \n
\n
\n
\n
\n Crie sua conta \n \n
\n
\n \n Linkedin\n \n
\n
ou
\n
\n \n
\n
\n
\n
\n
\n\n
\n
\n \n \n Cadastrar\n
\n\n \n \n
\n \n
\n
\n
\n
\n
\n Faça login \n \n
\n
\n \n Linkedin\n \n
\n
ou
\n
\n \n
\n
\n
\n
\n
\n
\n Entrar
\n\n \n \n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n Esta vaga já foi encerrada!\n \n \n
\n
\n
\n
\n \n \n \n \n \n
\n \n \n \n \n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=2bd4ea23&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Show.vue?vue&type=style&index=0&id=2bd4ea23&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pl-4\"},[_c('div',{staticClass:\"row mt-4 mr-0 ml-0 mb-4\"},[_c('div',{staticClass:\"col-lg-7 col-xs-6\"},[_c('h2',{staticClass:\"f25\"},[_vm._v(_vm._s(_vm.institutional.name))])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-6\"},[_c('button',{staticClass:\"right btn btn-primary-dark btn-lg\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.openForm(false, _vm.institutional)}}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"plus\"}}),_vm._v(\"ADICIONAR VÍDEO\\n \")],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('div',{staticClass:\"container_gallery_mini\"},_vm._l((_vm.institutional.gallery_items),function(video){return _c('div',{key:video.id,staticClass:\"institucional_block_mini\"},[(video.video)?_c('SlideItem',{attrs:{\"item\":video,\"open\":() => {\n _vm.openForm(video, _vm.institutional, true);\n }}}):_vm._e(),_vm._v(\" \"),(video.iframe)?_c('video-embed',{attrs:{\"src\":video.iframe},on:{\"click\":function($event){return _vm.openForm(video, _vm.institutional, true)}}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"p-2\"},[_c('span',{staticClass:\"f18 crop_tex pb-0 pointer d-block\",on:{\"click\":function($event){return _vm.openForm(video, _vm.institutional, true)}}},[_vm._v(_vm._s(video.name))]),_vm._v(\" \"),_c('span',{staticClass:\"f12 text-truncate d-block\",staticStyle:{\"color\":\"#c0b3db\",\"max-width\":\"500px\"}},[_vm._v(_vm._s(video.description))])])],1)}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"row mr-0 ml-0\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('button',{staticClass:\"right btn btn-primary-dark btn-lg\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.openForm(false, _vm.general, true)}}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"plus\"}}),_vm._v(\"ADICIONAR VÍDEO\\n \")],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row mr-0 ml-0\"},[_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('div',{staticClass:\"container_gallery_mini\"},_vm._l((_vm.general.gallery_items),function(video){return _c('div',{key:video.id,staticClass:\"institucional_block_mini\"},[(video.video)?_c('SlideItem',{attrs:{\"item\":video,\"open\":() => {\n _vm.openForm(video, _vm.institutional, true);\n }}}):_vm._e(),_vm._v(\" \"),(video.iframe)?_c('video-embed',{attrs:{\"src\":video.iframe},on:{\"click\":function($event){return _vm.openForm(video, _vm.institutional, true)}}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"p-2\"},[_c('span',{staticClass:\"f15 pb-0 pointer d-block\",on:{\"click\":function($event){return _vm.openForm(video, _vm.institutional, true)}}},[_vm._v(_vm._s(video.name))]),_vm._v(\" \"),_c('span',{staticClass:\"f12 text-truncate d-block\",staticStyle:{\"color\":\"#c0b3db\",\"max-width\":\"500px\"}},[_vm._v(_vm._s(video.description))])])],1)}),0)])]),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_vm._l((_vm.jobs),function(job){return _c('div',{key:job.id,staticClass:\"row mr-0 ml-0\"},[_c('div',{staticClass:\"col-lg-12 mt-2\"},[(job.gallery_items.length > 0)?_c('p',{staticClass:\"f20 color_light_gallery\"},[_vm._v(\"\\n \"+_vm._s(job.name)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(job.gallery_items.length > 0)?_c('div',{staticClass:\"container_gallery_mini\"},_vm._l((job.gallery_items),function(video){return _c('div',{key:video.id,staticClass:\"institucional_block_mini\"},[(video.video)?_c('SlideItem',{staticClass:\"institucional_load_mini\",attrs:{\"item\":video,\"open\":() => {\n _vm.openForm(video, job, false);\n }}}):_vm._e(),_vm._v(\" \"),(video.iframe)?_c('video-embed',{attrs:{\"src\":video.iframe},on:{\"click\":function($event){return _vm.openForm(video, _vm.institutional, true)}}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"p-2\"},[_c('span',{staticClass:\"f15 pb-0 pointer\",on:{\"click\":function($event){return _vm.openForm(video, job, false)}}},[_vm._v(_vm._s(video.name))]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('span',{staticClass:\"f12\",staticStyle:{\"color\":\"#c0b3db\",\"display\":\"inline-flex\"}},[_vm._v(_vm._s(video.description))])])],1)}),0):_vm._e()])])})],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-7 col-xs-12\"},[_c('h2',{staticClass:\"f25\"},[_vm._v(\"VÍDEOS GERAIS\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mr-0 ml-0\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-4\"},[_c('h2',{staticClass:\"f25\"},[_vm._v(\"VÍDEOS DA VAGA\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SlideItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SlideItem.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n \n \n
\n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
{{ institutional.name }} \n \n\n
\n \n ADICIONAR VÍDEO\n \n
\n
\n
\n
\n
{\n openForm(video, institutional, true);\n }\n \"\n />\n \n\n \n {{ video.name }} \n {{ video.description }} \n
\n \n
\n
\n
\n
\n
\n
VÍDEOS GERAIS \n \n
\n \n ADICIONAR VÍDEO\n \n
\n
\n
\n
\n
\n
\n
{\n openForm(video, institutional, true);\n }\n \"\n />\n\n \n\n \n {{ video.name }} \n {{ video.description }} \n
\n \n
\n
\n
\n
\n
\n
VÍDEOS DA VAGA \n \n
\n
\n
\n
0\" class=\"f20 color_light_gallery\">\n {{ job.name }}\n
\n
0\" class=\"container_gallery_mini\">\n
\n
{\n openForm(video, job, false);\n }\n \"\n />\n\n \n\n \n {{ video.name }} \n \n {{\n video.description\n }} \n
\n \n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./SlideItem.vue?vue&type=template&id=7f82a4dc&\"\nimport script from \"./SlideItem.vue?vue&type=script&lang=js&\"\nexport * from \"./SlideItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pointer center\",on:{\"mouseenter\":_vm.selectVideo,\"mouseleave\":_vm.closeVideo,\"click\":_vm.open}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.play),expression:\"!play\"}]},[(_vm.item.video_id != 0)?_c('img',{staticStyle:{\"width\":\"100%\"},attrs:{\"src\":_vm.item.image}}):_vm._e(),_vm._v(\" \"),(_vm.item.video_id == 0)?_c('img',{staticClass:\"mt-3\",attrs:{\"src\":_vm.item.image,\"width\":\"120\"}}):_vm._e()]),_vm._v(\" \"),_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.play),expression:\"play\"}],ref:\"video\",attrs:{\"width\":\"100%\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.item.video}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=4f57d1e0&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('div',{staticClass:\"card mt-3 bg-white confirm-experience-card\"},[_c('div',[_c('div',{staticClass:\"card-body color-grey-primary\"},[_vm._m(0),_vm._v(\" \"),(_vm.candidate_search)?_c('Resume',{attrs:{\"resume\":_vm.candidate.curriculum_text,\"id\":_vm.candidate.id,\"is_candidate\":true}}):_vm._e(),_vm._v(\" \"),_c('Experiences',{staticClass:\"mb-4 mt-4\",attrs:{\"account_uid\":_vm.account_uid}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('Educations',{staticClass:\"mb-4 mt-4\",attrs:{\"account_uid\":_vm.account_uid,\"job\":_vm.job}}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('ExtraCourses',{staticClass:\"mb-4 mt-4\"}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('Certifications',{staticClass:\"mb-4 mt-4\"}),_vm._v(\" \"),_c('hr',{staticClass:\"mt-4 mb-4\"}),_vm._v(\" \"),_c('Skills',{staticClass:\"mt-4 mb-4\",attrs:{\"account_uid\":_vm.account_uid}}),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),(_vm.job.show_language)?_c('Languages',{attrs:{\"candidate_id\":_vm.candidate.id,\"url_custom\":\"/candidates/languages\"}}):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-degrade full normal-degrade\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.gotoQuestions}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_c('span',{staticClass:\"mr-3\"},[_vm._v(\"Salvar\")]),_vm._v(\" \"),_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-right\"}})],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}})])],1)])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('h3',{staticClass:\"color-primary header_border\"},[_vm._v(\"\\n CONFIRME SEU \"),_c('strong',[_vm._v(\"CURRÍCULO\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n
\n
\n
\n CONFIRME SEU CURRÍCULO \n \n
\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n\n
\n \n Salvar \n \n \n
\n \n
\n
\n
\n
\n
\n \n\n\n\n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmExperience.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmExperience.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConfirmExperience.vue?vue&type=template&id=da058ef6&scoped=true&\"\nimport script from \"./ConfirmExperience.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfirmExperience.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ConfirmExperience.vue?vue&type=style&index=0&id=da058ef6&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"da058ef6\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid pb-4 f14 color-black\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"CARGO\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',[_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":\"/occupations\",\"responseDataName\":\"occupations\",\"selectedEl\":_vm.occupation,\"whenSelected\":(item) => {\n _vm.occupation = item;\n },\"placeholder\":\"ENGENHEIRO, WEB DESIGNER, EDUCADOR, ETC....\",\"classes\":\"mt-1\"},model:{value:(_vm.occupation.name),callback:function ($$v) {_vm.$set(_vm.occupation, \"name\", $$v)},expression:\"occupation.name\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"CIDADE\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"whenSelected\":_vm.setCity,\"placeholder\":\"CIDADE ATUAL\",\"classes\":\"mt-1\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"EMPRESA\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":\"/companies\",\"responseDataName\":\"companies\",\"selectedEl\":_vm.company,\"whenSelected\":(item) => {\n _vm.company = item;\n },\"placeholder\":\"EMPRESA QUE VOCÊ TRABALHOU...\",\"classes\":\"mt-1\"},model:{value:(_vm.company.name),callback:function ($$v) {_vm.$set(_vm.company, \"name\", $$v)},expression:\"company.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\",class:{ 'text-danger': _vm.errors.start_date }},[_vm._v(\"\\n INÍCIO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.start_date),expression:\"start_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.start_date },attrs:{\"type\":\"text\",\"placeholder\":\"MÊS/ANO\",\"required\":\"\"},domProps:{\"value\":(_vm.start_date)},on:{\"focus\":function($event){_vm.errors.start_date = false},\"input\":function($event){if($event.target.composing)return;_vm.start_date=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-2 mb-2\",class:[\n _vm.current_job ? 'color-grey' : 'font-weight-bold',\n _vm.errors.end_date ? 'text-danger' : '',\n ]},[_vm._v(\"\\n FIM\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.end_date),expression:\"end_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.end_date },attrs:{\"type\":\"text\",\"disabled\":_vm.current_job,\"placeholder\":\"MÊS/ANO\",\"required\":_vm.current_job ? false : true},domProps:{\"value\":(_vm.end_date)},on:{\"focus\":function($event){_vm.errors.end_date = false},\"input\":function($event){if($event.target.composing)return;_vm.end_date=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.current_job,\"label\":\"AINDA TRABALHA AQUI?\"},model:{value:(_vm.current_job),callback:function ($$v) {_vm.current_job=$$v},expression:\"current_job\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"DESCRIÇÃO\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-1\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],staticClass:\"full form-control\",staticStyle:{\"height\":\"100px\",\"border-radius\":\"5px\"},attrs:{\"cols\":\"30\",\"rows\":\"10\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.description=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-2\"},[_c('button',{staticClass:\"btn-add-items-tb bg-purple color-white right\",staticStyle:{\"min-width\":\"300px\"},on:{\"click\":function($event){return _vm.createOrUpdate()}}},[_vm._v(\"\\n SALVAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h4',{staticClass:\"color-dark-purple mt-3\"},[_vm._v(\"ADICIONAR HISTÓRICO PROFISSIONAL\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
ADICIONAR HISTÓRICO PROFISSIONAL \n \n
\n
\n
\n
CARGO \n
* \n
\n {\n occupation = item;\n }\n \"\n placeholder=\"ENGENHEIRO, WEB DESIGNER, EDUCADOR, ETC....\"\n classes=\"mt-1\"\n />\n
\n
\n
\n CIDADE \n * \n \n
\n
\n
\n
\n EMPRESA \n * \n {\n company = item;\n }\n \"\n placeholder=\"EMPRESA QUE VOCÊ TRABALHOU...\"\n classes=\"mt-1\"\n />\n
\n\n
\n
\n INÍCIO\n \n
* \n
\n \n
\n
\n
\n
\n FIM\n \n
* \n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=5cae94d0&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid pb-4 f14 color-black\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"CURSO\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',[_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":\"/study_areas\",\"responseDataName\":\"study_areas\",\"selectedEl\":_vm.study_area,\"whenSelected\":(item) => {\n _vm.study_area = item;\n },\"placeholder\":\"ENGENHEIRO, WEB DESIGNER, EDUCADOR, ETC...\",\"classes\":\"mt-1\"},model:{value:(_vm.study_area.name),callback:function ($$v) {_vm.$set(_vm.study_area, \"name\", $$v)},expression:\"study_area.name\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"CIDADE\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"whenSelected\":_vm.setCity,\"disabled\":_vm.is_city_other_country,\"placeholder\":\"SELECIONE UMA CIDADE\",\"classes\":\"mt-1 mb-2\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.is_city_other_country),expression:\"is_city_other_country\"}],attrs:{\"type\":\"checkbox\",\"name\":\"selectCandidate\"},domProps:{\"value\":_vm.is_city_other_country,\"checked\":Array.isArray(_vm.is_city_other_country)?_vm._i(_vm.is_city_other_country,_vm.is_city_other_country)>-1:(_vm.is_city_other_country)},on:{\"change\":function($event){var $$a=_vm.is_city_other_country,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.is_city_other_country,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.is_city_other_country=$$a.concat([$$v]))}else{$$i>-1&&(_vm.is_city_other_country=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.is_city_other_country=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\" Exterior \")]),_vm._v(\" \"),(_vm.is_city_other_country)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.city_other_country),expression:\"city_other_country\"}],staticClass:\"vs__input mt-2\",class:{ 'is-invalid': _vm.errors.city_other_country },attrs:{\"type\":\"text\",\"placeholder\":\"CIDADE\"},domProps:{\"value\":(_vm.city_other_country)},on:{\"focus\":function($event){_vm.errors.city_other_country = false},\"input\":function($event){if($event.target.composing)return;_vm.city_other_country=$event.target.value}}}):_vm._e()],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"INSTITUIÇÃO DE ENSINO\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":\"/institutions\",\"responseDataName\":\"institutions\",\"selectedEl\":_vm.institution,\"whenSelected\":(item) => {\n _vm.institution = item;\n },\"placeholder\":\"INSTITUIÇÃO QUE VOCÊ ESTUDOU...\",\"classes\":\"mt-1\"},model:{value:(_vm.institution.name),callback:function ($$v) {_vm.$set(_vm.institution, \"name\", $$v)},expression:\"institution.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"FORMAÇÃO\")]),_vm._v(\" \"),(_vm.job.require_formation_type)?_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"\\n *\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"select nav-tabs mt-1 p-0 block_info_white d-flex align-items-center\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.formation),expression:\"formation\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.formation=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.formationsType),function(formation){return _c('option',{key:formation.value,domProps:{\"value\":formation.value}},[_vm._v(\"\\n \"+_vm._s(formation.text)+\"\\n \")])}),0)])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\",class:{ 'text-danger': _vm.errors.start_date }},[_vm._v(\"\\n DATA DE INÍCIO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.start_date),expression:\"start_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.start_date },attrs:{\"type\":\"text\",\"placeholder\":\"mês/ano\"},domProps:{\"value\":(_vm.start_date)},on:{\"focus\":function($event){_vm.errors.start_date = false},\"input\":function($event){if($event.target.composing)return;_vm.start_date=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold text-nowrap mt-2\",class:{ 'text-danger': _vm.errors.end_date }},[_vm._v(\"\\n DATA DE TÉRMINO OU PREVISÃO DE TÉRMINO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.end_date),expression:\"end_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.end_date },attrs:{\"type\":\"text\",\"placeholder\":\"mês/ano\"},domProps:{\"value\":(_vm.end_date)},on:{\"focus\":function($event){_vm.errors.end_date = false},\"input\":function($event){if($event.target.composing)return;_vm.end_date=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.studying_here,\"label\":\"AINDA ESTUDA NESSA INSTITUIÇÃO?\"},model:{value:(_vm.studying_here),callback:function ($$v) {_vm.studying_here=$$v},expression:\"studying_here\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('label',{staticClass:\"font-weight-bold\"},[_vm._v(\"\\n SUA MÉDIA NA INSTITUIÇÃO (ESCALA DE 0 A 10)\\n \")]),_vm._v(\" \"),(_vm.job.require_average_point)?_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"\\n *\\n \")]):_vm._e(),_vm._v(\" \"),(('number')==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.average_point),expression:\"average_point\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"0,0\",\"min\":\"0\",\"max\":\"10\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.average_point)?_vm._i(_vm.average_point,null)>-1:(_vm.average_point)},on:{\"change\":function($event){var $$a=_vm.average_point,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.average_point=$$a.concat([$$v]))}else{$$i>-1&&(_vm.average_point=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.average_point=$$c}}}}):(('number')==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.average_point),expression:\"average_point\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"0,0\",\"min\":\"0\",\"max\":\"10\",\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.average_point,null)},on:{\"change\":function($event){_vm.average_point=null}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.average_point),expression:\"average_point\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"0,0\",\"min\":\"0\",\"max\":\"10\",\"type\":'number'},domProps:{\"value\":(_vm.average_point)},on:{\"input\":function($event){if($event.target.composing)return;_vm.average_point=$event.target.value}}}),_vm._v(\" \"),_c('span',{staticClass:\"f12 color-grey-primary to_uppercase\"},[_vm._v(\"\\n (Esse dado será checado posteriormente mediante pedido de histórico escolar)\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('label',{staticClass:\"font-weight-bold\"},[_vm._v(\"\\n BOLSA DE ESTUDOS\\n \")]),_vm._v(\" \"),(_vm.job.require_scholarship)?_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"\\n *\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.has_scholarship),expression:\"has_scholarship\"}],staticStyle:{\"vertical-align\":\"super\"},attrs:{\"type\":\"radio\",\"name\":\"has_scholarship\"},domProps:{\"value\":0,\"checked\":_vm._q(_vm.has_scholarship,0)},on:{\"change\":function($event){_vm.has_scholarship=0}}}),_vm._v(\" \"),_c('label',{staticClass:\"mr-2\"},[_vm._v(\"\\n N/A\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.has_scholarship),expression:\"has_scholarship\"}],attrs:{\"type\":\"radio\",\"name\":\"has_scholarship\"},domProps:{\"value\":1,\"checked\":_vm._q(_vm.has_scholarship,1)},on:{\"change\":function($event){_vm.has_scholarship=1}}}),_vm._v(\" \"),_c('label',{staticClass:\"mr-2\"},[_vm._v(\"\\n Parcial\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.has_scholarship),expression:\"has_scholarship\"}],attrs:{\"type\":\"radio\",\"name\":\"has_scholarship\"},domProps:{\"value\":2,\"checked\":_vm._q(_vm.has_scholarship,2)},on:{\"change\":function($event){_vm.has_scholarship=2}}}),_vm._v(\" \"),_c('label',{staticClass:\"mr-2\"},[_vm._v(\"\\n Completa\\n \")])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"Comente sobre sua formação/bolsa, caso queira\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-1\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],staticClass:\"full form-control\",staticStyle:{\"height\":\"100px\",\"border-radius\":\"5px\"},attrs:{\"cols\":\"30\",\"rows\":\"10\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.description=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-2\"},[_c('button',{staticClass:\"btn-add-items-tb bg-purple color-white right\",staticStyle:{\"min-width\":\"300px\"},on:{\"click\":function($event){return _vm.createOrUpdate()}}},[_vm._v(\"\\n SALVAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h2',{staticClass:\"mt-3\"},[_vm._v(\"FORMAÇÃO ACADÊMICA\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
FORMAÇÃO ACADÊMICA \n \n
\n
\n
\n
CURSO \n
* \n
\n {\n study_area = item;\n }\n \"\n placeholder=\"ENGENHEIRO, WEB DESIGNER, EDUCADOR, ETC...\"\n classes=\"mt-1\"\n />\n
\n
\n
\n CIDADE \n * \n \n \n Exterior \n \n
\n
\n
\n
\n INSTITUIÇÃO DE ENSINO \n * \n {\n institution = item;\n }\n \"\n placeholder=\"INSTITUIÇÃO QUE VOCÊ ESTUDOU...\"\n classes=\"mt-1\"\n />\n
\n
\n
FORMAÇÃO \n
\n *\n \n
\n \n \n {{ formation.text }}\n \n \n
\n
\n
\n
\n
\n
\n DATA DE INÍCIO\n \n
* \n
\n \n
\n
\n
\n
\n DATA DE TÉRMINO OU PREVISÃO DE TÉRMINO\n \n
* \n
\n \n
\n
\n \n
\n
\n
\n
\n
\n \n SUA MÉDIA NA INSTITUIÇÃO (ESCALA DE 0 A 10)\n \n \n *\n \n \n \n (Esse dado será checado posteriormente mediante pedido de histórico escolar)\n \n
\n
\n
\n BOLSA DE ESTUDOS\n \n
\n *\n \n
\n
\n
\n \n \n Parcial\n \n
\n
\n
\n
\n \n \n Completa\n \n
\n
\n
\n
\n\n
\n
\n
Comente sobre sua formação/bolsa, caso queira \n
\n \n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=4cf34df2&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Form.vue?vue&type=style&index=0&id=4cf34df2&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid pb-4 f14 color-black\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"ATIVIDADE/CURSO\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',[_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":`${ _vm.candidate_id ?\n `/recruiters/talent_banks/${_vm.candidate_id}/extra_courses` :\n `/candidates/extra_courses/`\n }`,\"responseDataName\":\"extra_courses\",\"selectedEl\":_vm.extra_course,\"whenSelected\":(item) => {\n _vm.extra_course = item;\n },\"placeholder\":\"INFORME AQUI\",\"classes\":\"mt-1\"},model:{value:(_vm.extra_course.name),callback:function ($$v) {_vm.$set(_vm.extra_course, \"name\", $$v)},expression:\"extra_course.name\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"TIPO\")]),_vm._v(\" \"),_c('div',{staticClass:\"select nav-tabs mt-1 p-0 block_info_white d-flex align-items-center\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.type_activity),expression:\"type_activity\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.type_activity=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.activitiesType),function(activity){return _c('option',{key:activity.value,domProps:{\"value\":activity.value}},[_vm._v(\"\\n \"+_vm._s(activity.text)+\"\\n \")])}),0)])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"INSTITUIÇÃO (SE APLICÁVEL)\")]),_vm._v(\" \"),_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":\"/institutions\",\"responseDataName\":\"institutions\",\"selectedEl\":_vm.institution,\"clearOption\":true,\"whenSelected\":(item) => {\n _vm.institution = item;\n },\"placeholder\":\"INSTITUIÇÃO QUE VOCÊ ESTUDOU...\",\"classes\":\"mt-1\"},model:{value:(_vm.institution.name),callback:function ($$v) {_vm.$set(_vm.institution, \"name\", $$v)},expression:\"institution.name\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\",class:{ 'text-danger': _vm.errors.start_date }},[_vm._v(\"\\n DATA DE INÍCIO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.start_date),expression:\"start_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.start_date },attrs:{\"type\":\"text\",\"placeholder\":\"mês/ano\"},domProps:{\"value\":(_vm.start_date)},on:{\"focus\":function($event){_vm.errors.start_date = false},\"input\":function($event){if($event.target.composing)return;_vm.start_date=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold text-nowrap mt-2\",class:{ 'text-danger': _vm.errors.end_date }},[_vm._v(\"\\n DATA DE TÉRMINO OU PREVISÃO DE TERMINO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.end_date),expression:\"end_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.end_date },attrs:{\"type\":\"text\",\"placeholder\":\"mês/ano\"},domProps:{\"value\":(_vm.end_date)},on:{\"focus\":function($event){_vm.errors.end_date = false},\"input\":function($event){if($event.target.composing)return;_vm.end_date=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"DESCRIÇÃO\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-1\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],staticClass:\"full form-control\",staticStyle:{\"height\":\"100px\",\"border-radius\":\"5px\"},attrs:{\"cols\":\"30\",\"rows\":\"10\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.description=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-2\"},[_c('button',{staticClass:\"btn-add-items-tb bg-purple color-white right\",staticStyle:{\"min-width\":\"300px\"},on:{\"click\":function($event){return _vm.createOrUpdate()}}},[_vm._v(\"\\n SALVAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h2',{staticClass:\"mt-3\"},[_vm._v(\"ATIVIDADES/CURSOS EXTRA CURRICULARES\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
ATIVIDADES/CURSOS EXTRA CURRICULARES \n \n
\n
\n
\n
ATIVIDADE/CURSO \n
* \n
\n {\n extra_course = item;\n }\n \"\n placeholder=\"INFORME AQUI\"\n classes=\"mt-1\"\n />\n
\n
\n
\n
TIPO \n
\n \n \n {{ activity.text }}\n \n \n
\n
\n
\n
\n
\n INSTITUIÇÃO (SE APLICÁVEL) \n {\n institution = item;\n }\n \"\n placeholder=\"INSTITUIÇÃO QUE VOCÊ ESTUDOU...\"\n classes=\"mt-1\"\n />\n
\n
\n
\n
\n
\n DATA DE INÍCIO\n \n
* \n
\n \n
\n
\n
\n
\n DATA DE TÉRMINO OU PREVISÃO DE TERMINO\n \n
* \n
\n \n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=1741bd59&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid pb-4 f14 color-black\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"CERTIFICAÇÃO\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',[_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":`${ _vm.candidate_id ?\n `/recruiters/talent_banks/${_vm.candidate_id}/extra_courses/certifications` :\n `/candidates/extra_courses/certifications`\n }`,\"responseDataName\":\"extra_courses\",\"selectedEl\":_vm.extra_course,\"whenSelected\":(item) => {\n _vm.extra_course = item;\n },\"placeholder\":\"INFORME AQUI\",\"classes\":\"mt-1\"},model:{value:(_vm.extra_course.name),callback:function ($$v) {_vm.$set(_vm.extra_course, \"name\", $$v)},expression:\"extra_course.name\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold ml-2 mb-2\"},[_vm._v(\"INSTITUIÇÃO (SE APLICÁVEL)\")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('VueSuggestion',{staticStyle:{\"text-transform\":\"capitalize\"},attrs:{\"searchURL\":\"/institutions\",\"responseDataName\":\"institutions\",\"selectedEl\":_vm.institution,\"whenSelected\":(item) => {\n _vm.institution = item;\n },\"placeholder\":\"INSTITUIÇÃO QUE VOCÊ ESTUDOU...\",\"classes\":\"mt-1\"},model:{value:(_vm.institution.name),callback:function ($$v) {_vm.$set(_vm.institution, \"name\", $$v)},expression:\"institution.name\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\",class:{ 'text-danger': _vm.errors.start_date }},[_vm._v(\"\\n DATA DE INÍCIO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.start_date),expression:\"start_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.start_date },attrs:{\"type\":\"text\",\"placeholder\":\"mês/ano\"},domProps:{\"value\":(_vm.start_date)},on:{\"focus\":function($event){_vm.errors.start_date = false},\"input\":function($event){if($event.target.composing)return;_vm.start_date=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold text-nowrap mt-2\",class:{ 'text-danger': _vm.errors.end_date }},[_vm._v(\"\\n DATA DE TÉRMINO OU PREVISÃO DE TERMINO\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"color-red font-weight-bold\"},[_vm._v(\"*\")]),_vm._v(\" \"),_c('div',{staticClass:\"vs__input-group mt-1\"},[_c('input',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(['##/####']),expression:\"['##/####']\"},{name:\"model\",rawName:\"v-model\",value:(_vm.end_date),expression:\"end_date\"}],staticClass:\"vs__input\",class:{ 'is-invalid': _vm.errors.end_date },attrs:{\"type\":\"text\",\"placeholder\":\"mês/ano\"},domProps:{\"value\":(_vm.end_date)},on:{\"focus\":function($event){_vm.errors.end_date = false},\"input\":function($event){if($event.target.composing)return;_vm.end_date=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"DESCRIÇÃO\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-1\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],staticClass:\"full form-control\",staticStyle:{\"height\":\"100px\",\"border-radius\":\"5px\"},attrs:{\"cols\":\"30\",\"rows\":\"10\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.description=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-2\"},[_c('button',{staticClass:\"btn-add-items-tb bg-purple color-white right\",staticStyle:{\"min-width\":\"300px\"},on:{\"click\":function($event){return _vm.createOrUpdate()}}},[_vm._v(\"\\n SALVAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h2',{staticClass:\"mt-3\"},[_vm._v(\"CERTIFICAÇÃO\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
CERTIFICAÇÃO \n
* \n
\n {\n extra_course = item;\n }\n \"\n placeholder=\"INFORME AQUI\"\n classes=\"mt-1\"\n />\n
\n
\n
\n
\n
\n INSTITUIÇÃO (SE APLICÁVEL) \n * \n {\n institution = item;\n }\n \"\n placeholder=\"INSTITUIÇÃO QUE VOCÊ ESTUDOU...\"\n classes=\"mt-1\"\n />\n
\n
\n
\n
\n
\n DATA DE INÍCIO\n \n
* \n
\n \n
\n
\n
\n
\n DATA DE TÉRMINO OU PREVISÃO DE TERMINO\n \n
* \n
\n \n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=2d6e0624&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',[_vm._m(0),_vm._v(\" \"),_c('vue-tags-input',{staticClass:\"full mt-1\",attrs:{\"tags\":_vm.skills,\"autocomplete-items\":_vm.autocompleteItemsSkill},on:{\"before-deleting-tag\":_vm.deleteSkill,\"before-adding-tag\":function($event){return _vm.createSkill($event, 0)},\"tags-changed\":(newTags) => (_vm.skills = newTags)},model:{value:(_vm.skill),callback:function ($$v) {_vm.skill=$$v},expression:\"skill\"}}),_vm._v(\" \"),_vm._m(1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-flex align-items-center\"},[_c('span',{staticClass:\"ml-2 mb-3 label-bold color-dark-purple\"},[_vm._v(\"HABILIDADES TÉCNICAS\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"f12\"},[_vm._v(\"\\n CASO QUEIRA, ADICIONE HABILIDADES TÉCNICAS OU COMPORTAMENTAIS AO SEU PERFIL. PRESSIONE \"),_c('b',[_vm._v(\"ENTER\")]),_vm._v(\" PARA ADICIONAR.\\n \")])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
HABILIDADES TÉCNICAS
\n
(skills = newTags)\"\n />\n \n CASO QUEIRA, ADICIONE HABILIDADES TÉCNICAS OU COMPORTAMENTAIS AO SEU PERFIL. PRESSIONE ENTER PARA ADICIONAR.\n \n \n
\n \n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=15b7a325&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mt-3 d-flex align-items-center\"},[_c('div',{staticClass:\"pl-0 col-lg-6 col-xs-12\"},[_c('VueSuggestion',{attrs:{\"itemsArray\":_vm.languages,\"focusOut\":_vm.languagePresent,\"whenSelected\":(item) => (_vm.language.name = item.name),\"placeholder\":\"IDIOMA\"},model:{value:(_vm.language.name),callback:function ($$v) {_vm.$set(_vm.language, \"name\", $$v)},expression:\"language.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.language.level),expression:\"language.level\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.language, \"level\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((this.levels),function(level){return _c('option',{key:level.value,domProps:{\"value\":level.value}},[_vm._v(\"\\n \"+_vm._s(level.text)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12 d-flex justify-content-between\"},[_c('button',{staticClass:\"btn-add-items-tb bg-purple color-white right\",on:{\"click\":_vm.sendLanguage}},[_c('i',{staticClass:\"fas fa-check\"})]),_vm._v(\" \"),_c('button',{staticClass:\"ml-1 btn-add-items-tb bg-purple color-white right\",staticStyle:{\"background-color\":\"red\"},on:{\"click\":function($event){return _vm.cancelLanguage()}}},[_c('i',{staticClass:\"fas fa-times\"})])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n (language.name = item.name)\"\n placeholder=\"IDIOMA\"\n />\n
\n
\n \n \n {{ level.text }}\n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=1a1b5084&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('div',{staticClass:\"card mt-3 bg-white\"},[_c('div',{staticClass:\"card-body color-grey-primary\"},[(_vm.load)?_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}}):_vm._e(),_vm._v(\" \"),_vm._l((_vm.field_mapping),function(field,index){return _c('div',{key:field.id,staticClass:\"mt-3\"},[_c('label',[_vm._v(\"\\n \"+_vm._s(field.parameters.name)+\"\\n \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(field.parameters.value_field),expression:\"field.parameters.value_field\"}],class:{\n 'form-control': true\n },attrs:{\"type\":\"text\",\"id\":\"field\"+index},domProps:{\"value\":(field.parameters.value_field)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(field.parameters, \"value_field\", $event.target.value)}}})])}),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full mt-3\",attrs:{\"type\":\"\\n button\"},on:{\"click\":function($event){return _vm.save()}}},[_vm._v(\" Salvar \")])],2)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataCollect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataCollect.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n
\n\n
\n \n {{field.parameters.name}}\n \n \n
\n
Salvar \n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./DataCollect.vue?vue&type=template&id=8474628c&\"\nimport script from \"./DataCollect.vue?vue&type=script&lang=js&\"\nexport * from \"./DataCollect.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('div',{staticClass:\"card mt-3 bg-white\"},[_c('div',[_c('div',{staticClass:\"card-body color-grey-primary\",staticStyle:{\"height\":\"460px\",\"overflow\":\"scroll\",\"overflow-x\":\"hidden\"}},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[(_vm.job.ask_remuneration)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('label',{staticClass:\"f14\"},[_vm._v(\"PODERIA INFORMAR SEU ÚLTIMO SALÁRIO??\")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group mb-3\"},[_vm._m(1),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.candidate.remuneration),callback:function ($$v) {_vm.$set(_vm.candidate, \"remuneration\", $$v)},expression:\"candidate.remuneration\"}})],1)]):_vm._e(),_vm._v(\" \"),(!_vm.job.hide_upload_cv)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('label',[_vm._v(\"UPLOAD DO CURRICULO\")]),_vm._v(\" \"),_c('CurriculumUpload')],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"hide col-lg-12 col-12\"},[_c('span',{staticClass:\"help-block\"},[_vm._v(\"\\n Visualize seu currículo abaixo:\\n \")]),_vm._v(\" \"),(_vm.candidate_data.curriculum_text != '')?_c('Resume',{attrs:{\"resume\":_vm.candidate_data.curriculum_text,\"id\":_vm.candidate_data.id,\"is_candidate\":true}}):_vm._e()],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"pl-3 mb-3 pr-3\"},[_c('button',{staticClass:\"btn mt-2 full btn-success\",attrs:{\"disabled\":_vm.load,\"type\":\"button\"},on:{\"click\":_vm.save}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_c('span',{staticClass:\"mr-3\"},[_vm._v(\"SALVAR\")]),_vm._v(\" \"),_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-right\"}})],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('h3',{staticClass:\"color-primary\"},[_vm._v(\"\\n FAÇA UPLOAD DO SEU \"),_c('strong',[_vm._v(\"CURRÍCULO\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text\",attrs:{\"id\":\"basic-addon1\"}},[_vm._v(\"R$\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Experience.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Experience.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n
\n FAÇA UPLOAD DO SEU CURRÍCULO \n \n
\n
\n
PODERIA INFORMAR SEU ÚLTIMO SALÁRIO?? \n
\n
\n
\n UPLOAD DO CURRICULO \n \n
\n
\n \n Visualize seu currículo abaixo:\n \n \n
\n
\n
\n
\n
\n
\n \n SALVAR \n \n \n \n \n
\n \n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Experience.vue?vue&type=template&id=e6867d8c&\"\nimport script from \"./Experience.vue?vue&type=script&lang=js&\"\nexport * from \"./Experience.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('div',{staticClass:\"card mt-3 bg-white\"},[_c('div',{staticClass:\"card-body color-grey-primary\"},[_c('p',{staticClass:\"f16\"},[_vm._v(\"\\n VOCÊ ESTÁ SE CANDIDATANDO AO \"),_c('strong',[_vm._v(_vm._s(_vm.job.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('inputform',{attrs:{\"type\":'text',\"placeholder\":\"PERFIL LINKEDIN EX: https://www.linkedin.com/in/username/ \",\"field\":_vm.job.require_linkedin_url ? _vm.$v.candidate.linkedin_url : { $error: false, $invalid: true }},model:{value:(_vm.candidate.linkedin_url),callback:function ($$v) {_vm.$set(_vm.candidate, \"linkedin_url\", $$v)},expression:\"candidate.linkedin_url\"}}),_vm._v(\" \"),_c('label',{staticClass:\"mb-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.scrape_linkedin),expression:\"candidate.scrape_linkedin\"}],staticClass:\"mr-1 ml-1\",attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.candidate.scrape_linkedin)?_vm._i(_vm.candidate.scrape_linkedin,null)>-1:(_vm.candidate.scrape_linkedin)},on:{\"change\":function($event){var $$a=_vm.candidate.scrape_linkedin,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.candidate, \"scrape_linkedin\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.candidate, \"scrape_linkedin\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.candidate, \"scrape_linkedin\", $$c)}}}}),_vm._v(\" \"),_c('span',{staticClass:\"f15\"},[_vm._v(\"\\n AUTORIZO A JOVOOL A BUSCAR DADOS ATRAVÉS DO MEU PERFIL NO\\n LINKEDIN\\n \")])])],1),_vm._v(\" \"),(_vm.isNameValid)?_c('div',{staticClass:\"col-lg-12 col-12 mb-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.name),expression:\"candidate.name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"NOME COMPLETO*\",\"field\":{ $error: false, $invalid: true }},domProps:{\"value\":(_vm.candidate.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"name\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),(!_vm.candidate_data.cpf || !_vm.isValidCpf(_vm.candidate_data.cpf))?_c('div',{staticClass:\"col-lg-12 col-12 mb-3\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('###.###.###-##'),expression:\"'###.###.###-##'\"}],attrs:{\"type\":\"text\",\"field\":_vm.$v.candidate.cpf,\"placeholder\":\"CPF*\"},model:{value:(_vm.candidate.cpf),callback:function ($$v) {_vm.$set(_vm.candidate, \"cpf\", $$v)},expression:\"candidate.cpf\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.allow_rg)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('##.###.###-X'),expression:\"'##.###.###-X'\"}],attrs:{\"type\":\"text\",\"placeholder\":\"RG*\",\"field\":_vm.job.allow_rg ? _vm.$v.candidate.rg : { $error: false, $invalid: false }},model:{value:(_vm.candidate.rg),callback:function ($$v) {_vm.$set(_vm.candidate, \"rg\", $$v)},expression:\"candidate.rg\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.show_genre)?_c('div',{staticClass:\"col-lg-12 col-12 mb-3\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.gender),expression:\"candidate.gender\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"IDENTIDADE DE GENÊRO*\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.candidate, \"gender\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":-1}},[_vm._v(\"IDENTIDADE DE GENÊRO\")]),_vm._v(\" \"),_vm._l((_vm.genders),function(gender,gender_index){return _c('option',{key:`gender_${gender_index}`,attrs:{\"data-toggle\":gender.tooltip_text ? 'tooltip' : '',\"data-placement\":gender.tooltip_text ? 'top' : '',\"title\":gender.tooltip_text ? gender.tooltip_text : ''},domProps:{\"value\":gender.value}},[_vm._v(\"\\n \"+_vm._s(gender.label)+\"\\n \")])})],2)]):_vm._e(),_vm._v(\" \"),(_vm.job.mandatory_portfolio)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"https://site_pessoal.com.br(opcional)*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.personal_site),callback:function ($$v) {_vm.$set(_vm.candidate, \"personal_site\", $$v)},expression:\"candidate.personal_site\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.mandatory_portfolio)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"LINK PORTFÓLIO, EX: GITHUB*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.personal_portfolio),callback:function ($$v) {_vm.$set(_vm.candidate, \"personal_portfolio\", $$v)},expression:\"candidate.personal_portfolio\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.question_last_work)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"ÚLTIMO CARGO QUE TRABALHOU / OU ATUAL\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.last_role),callback:function ($$v) {_vm.$set(_vm.candidate, \"last_role\", $$v)},expression:\"candidate.last_role\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.question_last_work)?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"ÚLTIMA EMPRESA QUE TRABALHOU / OU ATUAL\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.last_business),callback:function ($$v) {_vm.$set(_vm.candidate, \"last_business\", $$v)},expression:\"candidate.last_business\"}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"type\":\"text\",\"placeholder\":\"DATA DE NASCIMENTO*\",\"field\":_vm.$v.candidate.date_birth},model:{value:(_vm.candidate.date_birth),callback:function ($$v) {_vm.$set(_vm.candidate, \"date_birth\", $$v)},expression:\"candidate.date_birth\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:( _vm.candidate.mobile_phone && _vm.candidate.mobile_phone.length > 18 ? '+## (##) #####-####' : '+## (##) ####-####'),expression:\" candidate.mobile_phone && candidate.mobile_phone.length > 18 ? '+## (##) #####-####' : '+## (##) ####-####'\"}],attrs:{\"type\":\"text\",\"placeholder\":\"CELULAR\",\"field\":_vm.$v.candidate.mobile_phone},model:{value:(_vm.candidate.mobile_phone),callback:function ($$v) {_vm.$set(_vm.candidate, \"mobile_phone\", $$v)},expression:\"candidate.mobile_phone\"}})],1),_vm._v(\" \"),(_vm.job.has_ethnicity)?_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.ethnicity),expression:\"candidate.ethnicity\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"ETNIA/RAÇA*\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.candidate, \"ethnicity\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":-1}},[_vm._v(\"ETNIA/RAÇA\")]),_vm._v(\" \"),_vm._l((_vm.ethnicities),function(ethnicity,ethnicity_index){return _c('option',{key:`ethinicity_${ethnicity_index}`,domProps:{\"value\":ethnicity.value}},[_vm._v(\"\\n \"+_vm._s(ethnicity.label)+\"\\n \")])})],2)]):_vm._e(),_vm._v(\" \"),(_vm.job.has_ethnicity)?_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.sexual_orientation),expression:\"candidate.sexual_orientation\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Orientação Sexual*\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.candidate, \"sexual_orientation\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":-1}},[_vm._v(\"ORIENTAÇÃO SEXUAL\")]),_vm._v(\" \"),_vm._l((_vm.sexual_orientations),function(sexual_orientation,sexual_orientation_index){return _c('option',{key:`sexual_orientation_${sexual_orientation_index}`,domProps:{\"value\":sexual_orientation.value}},[_vm._v(\"\\n \"+_vm._s(sexual_orientation.label)+\"\\n \")])})],2),_vm._v(\" \"),((\n _vm.candidate.sexual_orientation === 6 &&\n !_vm.extra_options.sexual_orientation.length > 0\n ))?_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"Defina aqui\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.sexual_orientation_description),callback:function ($$v) {_vm.$set(_vm.candidate, \"sexual_orientation_description\", $$v)},expression:\"candidate.sexual_orientation_description\"}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[(!_vm.is_exterior_city)?_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"whenSelected\":_vm.setCity,\"placeholder\":\"CIDADE DE RESIDÊNCIA ATUAL*\",\"classes\":\"mt-3\"},on:{\"blur\":_vm.cityChange}}):_vm._e(),_vm._v(\" \"),(_vm.is_exterior_city)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.exterior_city),expression:\"candidate.exterior_city\"}],staticClass:\"vs__input mt-2\",class:{ 'is-invalid': _vm.is_exterior_city && !(!!_vm.candidate.exterior_city) },attrs:{\"type\":\"text\",\"placeholder\":\"CIDADE(EXTERIOR)\"},domProps:{\"value\":(_vm.candidate.exterior_city)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"exterior_city\", $event.target.value)}}}):_vm._e(),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.is_exterior_city),expression:\"is_exterior_city\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.is_exterior_city)?_vm._i(_vm.is_exterior_city,null)>-1:(_vm.is_exterior_city)},on:{\"change\":function($event){var $$a=_vm.is_exterior_city,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.is_exterior_city=$$a.concat([$$v]))}else{$$i>-1&&(_vm.is_exterior_city=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.is_exterior_city=$$c}}}}),_vm._v(\" \"),_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\" Exterior \")])],1),_vm._v(\" \"),(_vm.job.has_hometown)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasHometown,\"selectedEl\":_vm.hometown,\"selectFirst\":true,\"whenSelected\":_vm.setHometown,\"placeholder\":\"CIDADE NATAL*\",\"classes\":\"mt-3\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.has_is_pcd)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('p',{staticClass:\"mt-3 mb-0 pb-0\"},[_vm._v(\"\\n PCD?\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"mr-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.is_pcd),expression:\"candidate.is_pcd\"}],attrs:{\"type\":\"radio\",\"name\":\"pcd\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.candidate.is_pcd,true)},on:{\"change\":function($event){return _vm.$set(_vm.candidate, \"is_pcd\", true)}}}),_vm._v(\" Sim\\n \")]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.is_pcd),expression:\"candidate.is_pcd\"}],attrs:{\"type\":\"radio\",\"name\":\"pcd\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.candidate.is_pcd,false)},on:{\"change\":function($event){return _vm.$set(_vm.candidate, \"is_pcd\", false)}}}),_vm._v(\" Não\\n \")]),_vm._v(\" \"),(_vm.candidate.is_pcd)?_c('div',{staticClass:\"mt-2\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"BREVE DESCRICAO SOBRE\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.pcd_description),callback:function ($$v) {_vm.$set(_vm.candidate, \"pcd_description\", $$v)},expression:\"candidate.pcd_description\"}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.job.allow_city_interest)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mb-3\"},[_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCityInterest,\"selectedEl\":_vm.city_interest,\"selectFirst\":true,\"whenSelected\":_vm.setCityInterest,\"placeholder\":\"LOCAL DE INTERESSE*\",\"classes\":\"mt-3\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.allow_address)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mb-3\"},[_c('hr'),_vm._v(\" \"),_c('p',{staticClass:\"mt-3 mb-0 pb-0 mb-2 font-weight-bold\"},[_vm._v(\"\\n ENDEREÇO:\\n \")]),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"CEP*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.address.cep),callback:function ($$v) {_vm.$set(_vm.candidate.address, \"cep\", $$v)},expression:\"candidate.address.cep\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"ENDEREÇO*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.address.address),callback:function ($$v) {_vm.$set(_vm.candidate.address, \"address\", $$v)},expression:\"candidate.address.address\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"NÚMERO*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.address.number),callback:function ($$v) {_vm.$set(_vm.candidate.address, \"number\", $$v)},expression:\"candidate.address.number\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"COMPLEMENTO\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.address.complement),callback:function ($$v) {_vm.$set(_vm.candidate.address, \"complement\", $$v)},expression:\"candidate.address.complement\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.job.allow_reference_contacts)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mb-3\"},[_c('hr'),_vm._v(\" \"),_c('p',{staticClass:\"mt-3 mb-0 pb-0 mb-2 font-weight-bold\"},[_vm._v(\"\\n CONTATOS DE REFERÊNCIA:\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-6\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"Nome do contato 1*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.first_contact_name),callback:function ($$v) {_vm.$set(_vm.candidate, \"first_contact_name\", $$v)},expression:\"candidate.first_contact_name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-6\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(_vm.candidate.first_contact_number && _vm.candidate.first_contact_number.length > 18 ? '+55 (##) #####-####' : '+55 (##) ####-####'),expression:\"candidate.first_contact_number && candidate.first_contact_number.length > 18 ? '+55 (##) #####-####' : '+55 (##) ####-####'\"}],attrs:{\"type\":\"text\",\"placeholder\":\"Número do contato 1*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.first_contact_number),callback:function ($$v) {_vm.$set(_vm.candidate, \"first_contact_number\", $$v)},expression:\"candidate.first_contact_number\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-6\"},[_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"Nome do contato 2*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.second_contact_name),callback:function ($$v) {_vm.$set(_vm.candidate, \"second_contact_name\", $$v)},expression:\"candidate.second_contact_name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-6\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:(_vm.candidate.second_contact_number && _vm.candidate.second_contact_number.length > 18 ? '+55 (##) #####-####' : '+55 (##) ####-####'),expression:\"candidate.second_contact_number && candidate.second_contact_number.length > 18 ? '+55 (##) #####-####' : '+55 (##) ####-####'\"}],attrs:{\"type\":\"text\",\"placeholder\":\"Número do contato 2*\",\"field\":{ $error: false, $invalid: true }},model:{value:(_vm.candidate.second_contact_number),callback:function ($$v) {_vm.$set(_vm.candidate, \"second_contact_number\", $$v)},expression:\"candidate.second_contact_number\"}})],1)])]):_vm._e(),_vm._v(\" \"),(_vm.job.uid == '3xw0ptkh')?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('p',{staticClass:\"mt-3 mb-0 pb-0\"},[_vm._v(\"\\n Já trabalhou no Credit Suisse?\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"mr-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.been_creditsuisse),expression:\"candidate.been_creditsuisse\"}],attrs:{\"type\":\"radio\",\"name\":\"been_creditsuisse\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.candidate.been_creditsuisse,true)},on:{\"change\":function($event){return _vm.$set(_vm.candidate, \"been_creditsuisse\", true)}}}),_vm._v(\" Sim\\n \")]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.been_creditsuisse),expression:\"candidate.been_creditsuisse\"}],attrs:{\"type\":\"radio\",\"name\":\"been_creditsuisse\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.candidate.been_creditsuisse,false)},on:{\"change\":function($event){return _vm.$set(_vm.candidate, \"been_creditsuisse\", false)}}}),_vm._v(\" Não\\n \")])]):_vm._e(),_vm._v(\" \"),(_vm.job.uid == '3xw0ptkh')?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('p',{staticClass:\"mt-3 mb-0 pb-0\"},[_vm._v(\"\\n Trabalha atualmente no Credit Suisse?\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"mr-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.current_creditsuisse),expression:\"candidate.current_creditsuisse\"}],attrs:{\"type\":\"radio\",\"name\":\"current_creditsuisse\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.candidate.current_creditsuisse,true)},on:{\"change\":function($event){return _vm.$set(_vm.candidate, \"current_creditsuisse\", true)}}}),_vm._v(\" Sim\\n \")]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.current_creditsuisse),expression:\"candidate.current_creditsuisse\"}],attrs:{\"type\":\"radio\",\"name\":\"current_creditsuisse\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.candidate.current_creditsuisse,false)},on:{\"change\":function($event){return _vm.$set(_vm.candidate, \"current_creditsuisse\", false)}}}),_vm._v(\" Não\\n \")])]):_vm._e(),_vm._v(\" \"),(_vm.job.uid == '3xw0ptkh')?_c('div',{staticClass:\"col-lg-12\"},[_c('p',{staticClass:\"mt-3 mb-0 pb-0\"},[_vm._v(\"\\n COMO FICOU SABENDO DO PROGRAMA DE TRAINEES?\\n \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.source),expression:\"candidate.source\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"COMO FICOU SABENDO DO PROGRAMA DE TRAINEES?\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.candidate, \"source\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":'Redes Sociais'}},[_vm._v(\"Redes Sociais\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":'Google'}},[_vm._v(\"Google\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":'Indicação'}},[_vm._v(\"Indicação\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":'Linkedin'}},[_vm._v(\"Linkedin\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":'Universidade'}},[_vm._v(\" Universidade\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":'Outros'}},[_vm._v(\"Outros\")])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-12 mt-3\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.additional_info),expression:\"candidate.additional_info\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"INFORMAÇÕES ADICIONAIS QUE DESEJA COMPARTILHAR\"},domProps:{\"value\":(_vm.candidate.additional_info)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"additional_info\", $event.target.value)}}})]),_vm._v(\" \"),(_vm.mandatory_questions.length > 0)?_c('div',{staticClass:\"col-12 mt-3 mb-3\"},[_c('hr'),_vm._v(\" \"),_vm._l((_vm.mandatory_questions),function(question,index){return _c('div',{key:`question_${index}`},[(question.response_type == _vm.video_type)?_c('div',{staticClass:\"videoPlay\"},[_c('div',{staticClass:\"f18\",staticStyle:{\"color\":\"#000 !important\"},domProps:{\"innerHTML\":_vm._s(question.title)}}),_vm._v(\" \"),_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('p',{staticClass:\"text-justify text-break\",staticStyle:{\"width\":\"70%\",\"text-align\":\"center !important\"}},[_vm._v(\"\\n \"+_vm._s(question.details)+\"\\n \")])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"center\",staticStyle:{\"color\":\"#000\"}},[_vm._m(0,true),_vm._v(\" \"),_c('p',{staticClass:\"f16\"},[_vm._v(\"\\n TENTE GRAVAR USANDO DIRETO AS CÂMERAS DE SEU CELULAR OU\\n FAZER UPLOAD DO SEU VÍDEO, CLICANDO NO BOTÃO A BAIXO\\n \")])]),_vm._v(\" \"),(_vm.video)?_c('div',[_vm._m(1,true),_vm._v(\" \"),(_vm.video)?_c('video',{staticStyle:{\"max-height\":\"500px\"},attrs:{\"width\":\"100%\",\"controls\":\"\",\"playsinlineatributo\":\"\",\"preload\":\"yes\",\"controlslist\":\"nodownload\",\"id\":\"video_answers\"}},[_c('source',{attrs:{\"src\":_vm.video,\"type\":\"video/mp4\"}})]):_vm._e(),_vm._v(\" \"),_c('hr')]):_vm._e(),_vm._v(\" \"),(_vm.video)?_c('p',{staticClass:\"f16\"},[_c('b',[_vm._v(\"Deseja gravar uma nova resposta?\")])]):_vm._e(),_vm._v(\" \"),(_vm.ios)?_c('VideoJSRecordMobile',{attrs:{\"question\":question,\"index\":index}}):_vm._e(),_vm._v(\" \"),(!_vm.ios)?_c('VideoJSRecord',{attrs:{\"question\":question,\"index\":index}}):_vm._e()],1):_vm._e()])}),_vm._v(\" \"),_c('hr')],2):_vm._e(),_vm._v(\" \"),(_vm.candidate.accept_terms == false)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-1\"},[_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.conditions),expression:\"conditions\"}],staticClass:\"mt-2 ml-1\",attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.conditions)?_vm._i(_vm.conditions,null)>-1:(_vm.conditions)},on:{\"change\":[function($event){var $$a=_vm.conditions,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.conditions=$$a.concat([$$v]))}else{$$i>-1&&(_vm.conditions=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.conditions=$$c}},_vm.changeConditions]}}),_vm._v(\" \"),_c('span',[_vm._v(\"Ao se candidatar a está vaga você Aceita e Concorda com\\n nossos\")]),_vm._v(\" \"),_c('a',{staticStyle:{\"color\":\"blue\"},attrs:{\"href\":\"/termos_de_uso\"}},[_vm._v(\"Termos de Uso\")]),_vm._v(\" \"),_c('span',[_vm._v(\"e\")]),_vm._v(\" \"),_c('a',{staticStyle:{\"color\":\"blue\"},attrs:{\"href\":\"/politicas_de_privacidade\"}},[_vm._v(\"Política de Privacidade\")])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('button',{staticClass:\"btn mt-2 full btn-success\",attrs:{\"disabled\":_vm.load,\"type\":\"button\"},on:{\"click\":_vm.register}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_c('span',{staticClass:\"mr-3\"},[_vm._v(\"SALVAR\")]),_vm._v(\" \"),_c('font-awesome-icon',{attrs:{\"icon\":\"chevron-right\"}})],1),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_c('b',[_vm._v(\"NÃO FOI POSSÍVEL ABRIR A CÂMERA\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"f16\"},[_c('b',[_vm._v(\"Resposta gravada:\")])])\n}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n
\n
\n VOCÊ ESTÁ SE CANDIDATANDO AO {{ job.title }} \n
\n
\n
\n \n \n \n \n AUTORIZO A JOVOOL A BUSCAR DADOS ATRAVÉS DO MEU PERFIL NO\n LINKEDIN\n \n \n
\n
\n \n
\n
\n \n
\n \n
\n \n
\n \n
\n \n IDENTIDADE DE GENÊRO \n \n {{ gender.label }}\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 18 ? '+## (##) #####-####' : '+## (##) ####-####'\"\n :field=\"$v.candidate.mobile_phone\"\n />\n
\n\n
\n \n ETNIA/RAÇA \n \n {{ ethnicity.label }}\n \n \n
\n
\n \n ORIENTAÇÃO SEXUAL \n \n {{ sexual_orientation.label }}\n \n \n 0\n )\"\n type=\"text\"\n v-model=\"candidate.sexual_orientation_description\"\n placeholder=\"Defina aqui\"\n :field=\"{ $error: false, $invalid: true }\"\n />\n
\n\n
\n \n \n \n Exterior \n
\n
\n \n
\n
\n
\n PCD?\n
\n
\n Sim\n \n\n
\n Não\n \n\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n ENDEREÇO:\n
\n
\n
\n
\n
\n
\n
\n
\n
\n CONTATOS DE REFERÊNCIA:\n
\n
\n
\n \n
\n
\n 18 ? '+55 (##) #####-####' : '+55 (##) ####-####'\"\n :field=\"{ $error: false, $invalid: true }\"\n />\n
\n
\n
\n
\n \n
\n
\n 18 ? '+55 (##) #####-####' : '+55 (##) ####-####'\"\n :field=\"{ $error: false, $invalid: true }\"\n />\n
\n
\n
\n
\n
\n
\n
\n COMO FICOU SABENDO DO PROGRAMA DE TRAINEES?\n
\n\n
\n Redes Sociais \n Google \n Indicação \n Linkedin \n Universidade \n Outros \n\n \n
\n
\n \n
\n
0\"\n class=\"col-12 mt-3 mb-3\"\n >\n
\n
\n
\n
\n
\n
\n {{ question.details }}\n
\n
\n
\n
\n NÃO FOI POSSÍVEL ABRIR A CÂMERA \n
\n
\n TENTE GRAVAR USANDO DIRETO AS CÂMERAS DE SEU CELULAR OU\n FAZER UPLOAD DO SEU VÍDEO, CLICANDO NO BOTÃO A BAIXO\n
\n
\n
\n
\n Resposta gravada: \n
\n
\n \n \n
\n
\n
\n Deseja gravar uma nova resposta? \n
\n
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n \n SALVAR \n \n \n \n \n
\n \n
\n
\n
\n
\n
\n
\n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Register.vue?vue&type=template&id=25c932bb&\"\nimport script from \"./Register.vue?vue&type=script&lang=js&\"\nexport * from \"./Register.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-6\"},[_c('div',{staticClass:\"card card-body\"},[_c('h1',{staticClass:\"color-primary\"},[_vm._v(\"Poderia informar seu salário atual?\")]),_vm._v(\" \"),_c('div',[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"Salário mensal\")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group mb-3\"},[_vm._m(0),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.apply.remuneration),callback:function ($$v) {_vm.$set(_vm.apply, \"remuneration\", $$v)},expression:\"apply.remuneration\"}})],1)]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-success\",attrs:{\"disabled\":_vm.load,\"type\":\"button\"},on:{\"click\":_vm.saveRemuneration}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})]),_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"Salvar\" : \"\")+\"\\n \")])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text\",attrs:{\"id\":\"basic-addon1\"}},[_vm._v(\"R$\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormQuestions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormQuestions.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
Poderia informar seu salário atual? \n
\n
\n \n \n
\n {{ !load ? \"Salvar\" : \"\" }}\n \n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./FormQuestions.vue?vue&type=template&id=318a3284&\"\nimport script from \"./FormQuestions.vue?vue&type=script&lang=js&\"\nexport * from \"./FormQuestions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-6\"},[_c('div',{staticClass:\"card card-body\"},[(_vm.job.mandatory_portfolio)?_c('div',[_c('label',[_vm._v(\" Portifólio (opcional) \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidates.personal_portfolio),expression:\"candidates.personal_portfolio\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Linkedin, Portifólio ou Github\"},domProps:{\"value\":(_vm.candidates.personal_portfolio)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidates, \"personal_portfolio\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),(_vm.job.mandatory_portfolio)?_c('div',{staticClass:\"mt-3\"},[_c('label',[_vm._v(\" Site pessoal (opcional)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidates.personal_site),expression:\"candidates.personal_site\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"https://seusite.com.br\"},domProps:{\"value\":(_vm.candidates.personal_site)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidates, \"personal_site\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),(_vm.job.mandatory_cv)?_c('div',{staticClass:\"mt-3\"},[_c('label',[_vm._v(\"Envie seu currículo\")]),_vm._v(\" \"),(_vm.job.mandatory_cv)?_c('CurriculumUpload'):_vm._e(),_vm._v(\" \"),_c('span',{staticClass:\"help-block\"},[_vm._v(\"\\n É necessário que você faça o upload do seu CV.\\n \")])],1):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-success mt-3 right\",attrs:{\"disabled\":_vm.load,\"type\":\"button\"},on:{\"click\":_vm.save}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})]),_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"Salvar\" : \"\")+\"\\n \")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Mandatory.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Mandatory.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n Portifólio (opcional) \n \n
\n
\n Site pessoal (opcional) \n \n
\n
\n Envie seu currículo \n \n \n É necessário que você faça o upload do seu CV.\n \n
\n
\n \n \n
\n {{ !load ? \"Salvar\" : \"\" }}\n \n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Mandatory.vue?vue&type=template&id=b8946376&\"\nimport script from \"./Mandatory.vue?vue&type=script&lang=js&\"\nexport * from \"./Mandatory.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"formLead bg-formLead iframehtml\"},[_c('div',{staticClass:\"container iframehtml pt-3 pb-2 mb-5\",attrs:{\"id\":\"contact\"}},[_c('h1',{staticClass:\"center\",staticStyle:{\"color\":\"#14b1ff\"}},[_vm._v(\"CONTATO\")]),_vm._v(\" \"),_c('div',{staticClass:\"row iframehtml\"},[_c('div',{staticClass:\"col-lg-7 iframehtml col-xs-12 d-flex flex-column\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lead.name),expression:\"lead.name\"}],staticClass:\"input_form_lead mt-2 mb-2\",attrs:{\"type\":\"text\",\"placeholder\":\"NOME\"},domProps:{\"value\":(_vm.lead.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.lead, \"name\", $event.target.value)}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lead.subject),expression:\"lead.subject\"}],staticClass:\"input_form_lead mt-2 mb-2\",attrs:{\"type\":\"text\",\"placeholder\":\"ASSUNTO\"},domProps:{\"value\":(_vm.lead.subject)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.lead, \"subject\", $event.target.value)}}}),_vm._v(\" \"),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lead.message),expression:\"lead.message\"}],staticClass:\"input_form_lead mt-1 mb-5\",attrs:{\"placeholder\":\"MENSAGEM\",\"rows\":\"8\"},domProps:{\"value\":(_vm.lead.message)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.lead, \"message\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs12 d-flex flex-column\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lead.email),expression:\"lead.email\"}],staticClass:\"input_form_lead mt-2 mb-2\",attrs:{\"type\":\"text\",\"placeholder\":\"EMAIL\"},domProps:{\"value\":(_vm.lead.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.lead, \"email\", $event.target.value)}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lead.mobile_phone),expression:\"lead.mobile_phone\"}],staticClass:\"input_form_lead mt-2 mb-2\",attrs:{\"type\":\"text\",\"placeholder\":\"TELEFONE\"},domProps:{\"value\":(_vm.lead.mobile_phone)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.lead, \"mobile_phone\", $event.target.value)}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lead.company),expression:\"lead.company\"}],staticClass:\"input_form_lead mt-2 mb-2\",attrs:{\"type\":\"text\",\"placeholder\":\"EMPRESA\"},domProps:{\"value\":(_vm.lead.company)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.lead, \"company\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"center pt-3\"},[_c('button',{staticClass:\"sendEmail mt-5\",on:{\"click\":_vm.sendLead}},[_vm._v(\"ENVIAR\")])])]),_vm._v(\" \"),(_vm.info)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_vm._m(0),_vm._v(\" \"),_c('inertia-link',{attrs:{\"href\":\"/recruiters/dashboard/choose\"}},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\"}},[_vm._v(\"VOLTAR\")])])],1):_vm._e()])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"color-white\"},[_vm._v(\"\\n Av. Eng. Luís Carlos Berrini, 1511 | 11 andar | Brooklin | São Paulo\\n \"),_vm._v(\"\\n contato@jovool.com\\n \")])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=393c1a14&scoped=true&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"393c1a14\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h4',[_vm._v(\"Perguntas desta etapa:\")]),_vm._v(\" \"),_vm._l((_vm.questions),function(question){return _c('div',{key:question.id,staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"tab-pane\"},[_c('div',[_c('span',{staticClass:\"color-primary d-inline-block\",class:{ pointer: question.video },domProps:{\"innerHTML\":_vm._s(question.title)},on:{\"click\":function($event){return _vm.show(question)}}},[_vm._v(_vm._s(question.title))]),_vm._v(\" \"),(question.video)?_c('font-awesome-icon',{staticClass:\"d-inline-block ml-1 color-primary\",attrs:{\"icon\":\"video\"}}):_vm._e()],1),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(question.active)?_c('div',[(question.video)?_c('video',{staticClass:\"mt-2\",attrs:{\"width\":\"100%\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":question.video}})]):_vm._e()]):_vm._e()])],1)])])})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Questions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Questions.vue?vue&type=script&lang=js&\"","\n \n
Perguntas desta etapa: \n
\n
\n
\n
\n {{ question.title }} \n \n
\n
\n \n \n \n \n
\n \n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./Questions.vue?vue&type=template&id=9296cd0c&\"\nimport script from \"./Questions.vue?vue&type=script&lang=js&\"\nexport * from \"./Questions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},_vm._l((_vm.colors),function(color){return _c('div',{key:color,staticClass:\"col-lg-3 col-xs-12\"},[_c('div',{staticClass:\"card mb-2 full pt-3 pb-2 pointer\",class:color === _vm.selected ? 'selectedDiv' : 'selectDiv',style:({ backgroundColor: `${color}`, height: '10px' }),on:{\"click\":function($event){return _vm.selectColor(color)}}})])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultColors.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultColors.vue?vue&type=script&lang=js&\"","\n \n \n\n","import { render, staticRenderFns } from \"./DefaultColors.vue?vue&type=template&id=e53948c2&\"\nimport script from \"./DefaultColors.vue?vue&type=script&lang=js&\"\nexport * from \"./DefaultColors.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 text-center\"},[_c('PercentageCircle',{attrs:{\"percentage\":_vm.percentages[0]}}),_vm._v(\" \"),_c('span',{staticClass:\"font-weight-bold d-block\"},[_vm._v(_vm._s(_vm.recruiter_name))]),_vm._v(\" \"),_vm._m(0)],1),_vm._v(\" \"),_c('hr',{staticClass:\"w-75\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 text-center\"},[_c('PercentageCircle',{attrs:{\"percentage\":_vm.percentages[1]}}),_vm._v(\" \"),_c('span',{staticClass:\"font-weight-bold d-block\"},[_vm._v(_vm._s(_vm.recruiter_name))]),_vm._v(\" \"),_vm._m(1)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"d-block\"},[_vm._v(\"TAXA DE CONCLUSÃO\"),_c('br'),_vm._v(\"\\n DE VAGAS\")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"d-block\"},[_vm._v(\"TAXA DE CONTRATAÇÃO\"),_c('br'),_vm._v(\" DE CANDIDATOS(AS)\")])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Percentages.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Percentages.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
{{ recruiter_name }} \n
TAXA DE CONCLUSÃO \n DE VAGAS \n
\n
\n
\n
\n
{{ recruiter_name }} \n
TAXA DE CONTRATAÇÃO DE CANDIDATOS(AS) \n
\n
\n \n\n","import { render, staticRenderFns } from \"./Percentages.vue?vue&type=template&id=4a2519aa&\"\nimport script from \"./Percentages.vue?vue&type=script&lang=js&\"\nexport * from \"./Percentages.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container_plan\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.show)?_c('FormLead',{attrs:{\"info\":true}}):_vm._e(),_vm._v(\" \"),(!_vm.show)?_c('div',[_c('div',[_c('span',{staticClass:\"right pointer process3 mt-2 block_process\",on:{\"click\":_vm.logout}},[_vm._v(\"Logout\")])]),_vm._v(\" \"),_c('div',{staticClass:\"panel pricing-table\"},[_vm._l((_vm.plans),function(plan){return _c('div',{key:plan.id,staticClass:\"pricing-plan\"},[_c('h2',{staticClass:\"pricing-header\"},[_vm._v(_vm._s(plan.name))]),_vm._v(\" \"),_c('div',{staticClass:\"pricing-features\"},[_c('li',{staticClass:\"pricing-features-item center\"},[_vm._v(_vm._s(plan.amount_jobs == 1 ? \"1 vaga\" : plan.amount_jobs+\" vagas\"))]),_vm._v(\" \"),_c('li',{staticClass:\"pricing-features-item center\"},[_vm._v(_vm._s(plan.amount_recruiters == 1 ? \"1 usuário\" : plan.amount_recruiters+\" usuários\"))])]),_vm._v(\" \"),(plan.price == 0)?_c('span',{staticClass:\"pricing-price\"},[_vm._v(\"Free\")]):_vm._e(),_vm._v(\" \"),(plan.price > 0)?_c('span',{staticClass:\"pricing-price\"},[_vm._v(\"\\n R$\\n \"+_vm._s(plan.price ? parseFloat(plan.price).toFixed(2).replace('.', ',') : \"0,00\")+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"btn mt-2 btn full btn-primary\",on:{\"click\":function($event){return _vm.choose(plan)}}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"Sign Up\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])]),_vm._v(\" \"),(plan.day_free > 0)?_c('span',[_vm._v(\"Free por \"+_vm._s(plan.day_free)+\" dias\")]):_vm._e()])}),_vm._v(\" \"),_c('div',{staticClass:\"pricing-plan\"},[_c('img',{staticClass:\"hide pricing-img\",attrs:{\"src\":\"https://s21.postimg.cc/tpm0cge4n/space-ship.png\",\"alt\":\"\"}}),_vm._v(\" \"),_c('h2',{staticClass:\"pricing-header\"},[_vm._v(\"Enterprise\")]),_vm._v(\" \"),_c('div',{staticClass:\"pricing-features\"},[_c('li',{staticClass:\"pricing-features-item\"},[_vm._v(\"x vagas\")]),_vm._v(\" \"),_c('li',{staticClass:\"pricing-features-item\"},[_vm._v(\"Candidatos Ilimitados\")])]),_vm._v(\" \"),_c('span',{staticClass:\"pricing-price\"},[_vm._v(\"Consultar\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn full mt-2 btn-secondary\",on:{\"click\":function($event){_vm.show = true}}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"Entre em contato\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])])],2)]):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n
\n Logout \n
\n
\n
\n \n
\n
{{plan.amount_jobs == 1 ? \"1 vaga\" : plan.amount_jobs+\" vagas\" }} \n {{plan.amount_recruiters == 1 ? \"1 usuário\" : plan.amount_recruiters+\" usuários\" }} \n \n
Free \n
0\">\n R$\n {{ plan.price ? parseFloat(plan.price).toFixed(2).replace('.', ',') : \"0,00\" }}\n \n
\n Sign Up \n \n \n
\n \n
0\">Free por {{plan.day_free}} dias \n
\n\n
\n
\n \n
\n
x vagas \n Candidatos Ilimitados \n \n
Consultar \n
\n Entre em contato \n \n \n
\n \n
\n
\n
\n \n
\n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=b4b5d836&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row formJov\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TÍTULO DA PROVA\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.evaluation_edit.name},model:{value:(_vm.evaluation_edit.name),callback:function ($$v) {_vm.$set(_vm.evaluation_edit, \"name\", $$v)},expression:\"evaluation_edit.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"DESCRIÇÃO\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",class:{\n 'is-invalid': _vm.$v.evaluation_edit.description.$error,\n 'is-valid': !_vm.$v.evaluation_edit.description.$invalid,\n },model:{value:(_vm.evaluation_edit.description),callback:function ($$v) {_vm.$set(_vm.evaluation_edit, \"description\", $$v)},expression:\"evaluation_edit.description\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"\\n EM QUAL ETAPA ESTÁ PERGUNTA IRÁ:\\n \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.evaluation_edit.selective_process_id),expression:\"evaluation_edit.selective_process_id\"}],staticClass:\"form-control col-xl-12\",staticStyle:{\"text-transform\":\"uppercase\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.evaluation_edit, \"selective_process_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.selective_processes),function(selective_process){return _c('option',{key:selective_process.id,staticClass:\"form-control\",domProps:{\"value\":selective_process.id}},[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('button',{staticClass:\"btn btn-primary full radius-0 f13 h-100\",on:{\"click\":_vm.save}},[_vm._v(\"\\n Salvar\\n \")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n TÍTULO DA PROVA \n \n
\n
\n DESCRIÇÃO \n \n
\n\n
\n \n EM QUAL ETAPA ESTÁ PERGUNTA IRÁ:\n \n \n \n {{ selective_process.name }}\n \n \n
\n\n
\n \n Salvar\n \n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=13219492&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[(!_vm.load)?_c('div',{staticClass:\"col-lg-12 center\"},[_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.load)?_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row\"},_vm._l((_vm.videos),function(video){return _c('div',{key:video.id,staticClass:\"col-lg-3 col-xs-12 mt-4\"},[_c('div',{staticClass:\"pointer\",on:{\"click\":function($event){return _vm.getVideo(video.id)}}},[_c('img',{staticClass:\"full\",attrs:{\"src\":video.image}}),_vm._v(\" \"),_c('p',{staticClass:\"mb-0\"},[_vm._v(_vm._s(video.name))]),_vm._v(\" \"),_c('span',{staticClass:\"color_light_gallery\"},[_vm._v(_vm._s(video.description))])])])}),0)]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Search.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Search.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n
\n
\n
\n
\n
\n
{{video.name}}
\n
{{video.description}} \n
\n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Search.vue?vue&type=template&id=6f1bbc12&\"\nimport script from \"./Search.vue?vue&type=script&lang=js&\"\nexport * from \"./Search.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('SwitchCheckbox',{attrs:{\"onClick\":_vm.jobSaved,\"value\":_vm.bigfive,\"label\":\"SOLICITAR PREENCHIMENTO DO ASSESSMENT BIGFIVE\"},model:{value:(_vm.bigfive),callback:function ($$v) {_vm.bigfive=$$v},expression:\"bigfive\"}}),_vm._v(\" \"),(_vm.bigfive)?_c('div',[_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"ml-4\"},[_c('span',[_vm._v(\"Em qual etapa deseja que o teste seja feito: \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selective_process_id),expression:\"selective_process_id\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selective_process_id=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},function($event){return _vm.saveBigfive(_vm.amount_itens)}]}},_vm._l((_vm.selective_processes),function(selective_process){return _c('option',{key:selective_process.id,domProps:{\"value\":selective_process.id}},[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")])}),0)])])]),_vm._v(\" \"),_c('div',{staticClass:\"ml-4 mt-3\"},[_c('label',{staticClass:\"d-block\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount_itens),expression:\"amount_itens\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":120,\"checked\":_vm._q(_vm.amount_itens,120)},on:{\"click\":function($event){return _vm.saveBigfive(120)},\"change\":function($event){_vm.amount_itens=120}}}),_vm._v(\"\\n Completo (Aproximadamente 12min)\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"d-block\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount_itens),expression:\"amount_itens\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":50,\"checked\":_vm._q(_vm.amount_itens,50)},on:{\"click\":function($event){return _vm.saveBigfive(50)},\"change\":function($event){_vm.amount_itens=50}}}),_vm._v(\"\\n Simplificado (Aproximadamente 6min)\\n \")])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Bigfive.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Bigfive.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n Em qual etapa deseja que o teste seja feito: \n \n \n {{ selective_process.name }}\n \n \n
\n
\n
\n
\n \n \n Completo (Aproximadamente 12min)\n \n \n \n Simplificado (Aproximadamente 6min)\n \n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./Bigfive.vue?vue&type=template&id=a2815146&\"\nimport script from \"./Bigfive.vue?vue&type=script&lang=js&\"\nexport * from \"./Bigfive.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12 pr-0\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 form-control-feedback color-primary\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Search\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchTemplates.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('button',{staticClass:\"btn btn-primary full\",attrs:{\"disabled\":!_vm.isSelected},on:{\"click\":_vm.useTemplate}},[_vm._v(\"\\n USAR TEMPLATE\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"home\",\"role\":\"tabpanel\",\"aria-labelledby\":\"home-tab\"}},[(_vm.isSelected)?_c('div',{staticClass:\"ml-3 d-flex flex-column\"},[_vm._m(0),_vm._v(\" \"),_vm._l((_vm.questions),function(question){return _c('div',{key:question.id},[_c('p',[_vm._v(_vm._s(question.title))])])})],2):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n NOME DO TEMPLATE\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"Template\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"Template\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"Template\",\"field\":\"recruiter_name\"}})],1)])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.templates),function(template,index){return _c('tr',{key:template.id,staticClass:\"pointer full\",class:_vm.template_selected.id === template.id\n ? 'selectedTr'\n : 'selectTemplateTr',on:{\"click\":function($event){return _vm.selectTemplate(index)}}},[_c('td',{staticStyle:{\"border-right\":\"none\"}},[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(template.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\",staticStyle:{\"border-right\":\"none\",\"border-left\":\"none\"}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(template.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey pr-4\",staticStyle:{\"border-left\":\"none\"}},[_vm._v(\"\\n \"+_vm._s(template.recruiter.name)+\"\\n \")])])}),0)])])])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_c('b',[_vm._v(\"PERGUNTAS DO TEMPLATE\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectTemplate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectTemplate.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n USAR TEMPLATE\n \n
\n
\n
\n
\n
\n
\n
\n
PERGUNTAS DO TEMPLATE
\n
\n
{{ question.title }}
\n
\n
\n
\n
\n
\n \n \n \n \n {{ template.name }} \n \n \n {{ template.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ template.recruiter.name }}\n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./SelectTemplate.vue?vue&type=template&id=6682e5de&\"\nimport script from \"./SelectTemplate.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectTemplate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full p-2 radius-0 f13\",on:{\"click\":function($event){_vm.edtOrCreate = !_vm.edtOrCreate}}},[_vm._v(\"\\n ADICIONAR ETAPA\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('draggable',_vm._b({staticClass:\"list-group\",attrs:{\"list\":_vm.selective_processes,\"disabled\":!_vm.can_dragg,\"ghost-class\":\"ghost\"},on:{\"change\":_vm.changeProcess}},'draggable',_vm.dragOptions,false),[_c('transition-group',{attrs:{\"type\":\"transition\",\"name\":\"flip-list\"}},_vm._l((_vm.selective_processes),function(selective_process,index){return _c('div',{key:selective_process.id,staticClass:\"list-group-item mb-1 mt-1 pointer d-flex full justify-content-between\"},[_c('div',[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")]),_vm._v(\" \"),_c('MenuKanban',{staticStyle:{\"margin-top\":\"-10px !important\"},attrs:{\"selective_process\":selective_process,\"index\":index,\"job_id\":_vm.job_id,\"gallery\":_vm.gallery,\"recruiter_id\":_vm.recruiter_id,\"total_in_column\":_vm.applies[_vm.selective_processes[index].position].length,\"questions\":_vm.questions[_vm.selective_processes[index].position]}})],1)}),0)],1)],1)]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.edtOrCreate)?_c('div',{staticClass:\"row mt-1\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 d-flex\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.nameProcess),expression:\"nameProcess\"}],staticClass:\"form-control input-kanbanForm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.nameProcess)},on:{\"input\":function($event){if($event.target.composing)return;_vm.nameProcess=$event.target.value}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn f16 color-white bg-primary2 btn-kanbanForm mx-2 radius-0\",on:{\"click\":_vm.createProcess}},[_c('i',{staticClass:\"fas fa-check\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger color-white f16 radius-0\",on:{\"click\":_vm.closeForm}},[_c('i',{staticClass:\"far fa-window-close\"})])])]):_vm._e()])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n ADICIONAR ETAPA\n \n
\n
\n
\n
\n
\n \n \n
\n {{ selective_process.name }}\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","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Kanban.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Kanban.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Kanban.vue?vue&type=template&id=16dc5f07&\"\nimport script from \"./Kanban.vue?vue&type=script&lang=js&\"\nexport * from \"./Kanban.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.edit),expression:\"!edit\"}],staticClass:\"header_column\",on:{\"mouseover\":function($event){_vm.pencil = true},\"mouseleave\":function($event){_vm.pencil = false},\"dblclick\":_vm.enableEditColumn}},[_c('b',{staticClass:\"color-grey-primary pointer\"},[_c('font-awesome-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pencil),expression:\"pencil\"}],staticClass:\"dark_grey\",attrs:{\"icon\":\"pencil-alt\"},on:{\"click\":function($event){_vm.edit = true}}})],1),_vm._v(\" \"),_c('div',{staticClass:\"nav menu_column nav-tabs right\",staticStyle:{\"border\":\"0px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"dropdown\",\"href\":\"#\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{staticClass:\"dark_grey\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\"},[(_vm.selective_process.status != 1)?_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.removeColumn}},[_vm._v(\"\\n DELETAR COLUNA\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.editFeedback}},[_vm._v(\"\\n EDITAR FEEDBACK\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.addData}},[_vm._v(\"\\n COLETAR DADOS\\n \")])])])]),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selective_process.feedback),expression:\"selective_process.feedback\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"video\"}})],1),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selective_process.field_mapping_ids.length > 0),expression:\"selective_process.field_mapping_ids.length > 0\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"database\"}})],1)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.edit),expression:\"edit\"}]},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.column_name),expression:\"column_name\"}],ref:\"column_name\",staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.column_name)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.changeName.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.column_name=$event.target.value}}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuKanban.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuKanban.vue?vue&type=script&lang=js&\"","\n \n\n
\n
\n \n \n
\n
\n \n \n\n
0\"\n class=\"mr-1 total_in_column icon_kanban_blue\"\n >\n \n \n
\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./MenuKanban.vue?vue&type=template&id=ef78c1d0&\"\nimport script from \"./MenuKanban.vue?vue&type=script&lang=js&\"\nexport * from \"./MenuKanban.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n \n
\n
\n Habilidades técnicas\n \n
\n
\n
\n
\n
\n Adicionar habilidade técnica\n \n
\n
\n
\n \n Adicionar\n \n \n Cancelar\n \n
\n
\n
\n
\n
\n
\n Nome \n
\n
\n Peso \n
\n
\n
\n
\n
\n
\n {{ skill.name }} \n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobSkills.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobSkills.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./JobSkills.vue?vue&type=template&id=9e811c0c&\"\nimport script from \"./JobSkills.vue?vue&type=script&lang=js&\"\nexport * from \"./JobSkills.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[(!_vm.showForm)?_c('button',{staticClass:\"btn btn-primary full p-2 radius-0 f13 text-uppercase\",attrs:{\"disabled\":!_vm.job_id},on:{\"click\":function($event){_vm.showForm = true}}},[_vm._v(\"\\n Adicionar habilidade técnica\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.showForm)?_c('div',[_c('VueSuggestion',{attrs:{\"searchURL\":\"/recruiters/skills/search\",\"responseDataName\":\"skills\",\"whenSelected\":_vm.createJobSkill,\"queryParamName\":\"term\",\"classes\":\"mt-1\",\"inputClasses\":\"radius-0 form-control\"},model:{value:(_vm.input),callback:function ($$v) {_vm.input=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"input\"}}),_vm._v(\" \"),_c('div',{staticClass:\"d-flex\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.createJobSkill}},[_vm._v(\"\\n Adicionar\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger full\",on:{\"click\":function($event){_vm.showForm = false}}},[_vm._v(\"\\n Cancelar\\n \")])])],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[(_vm.job_skills.length)?_c('div',{staticClass:\"row mb-3 font-weight-bold text-uppercase\"},[_vm._m(1),_vm._v(\" \"),_vm._m(2)]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.job_skills),function(skill,index){return _c('div',{key:skill.id,staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-7\"},[_c('div',{staticClass:\"d-table w-100 h-100\"},[_c('div',{staticClass:\"d-table-cell align-middle\"},[_c('span',[_vm._v(_vm._s(skill.name))])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(skill.weight),expression:\"skill.weight\",modifiers:{\"number\":true}}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"step\":\"0.5\",\"min\":\"1\",\"placeholder\":\"Peso\"},domProps:{\"value\":(skill.weight)},on:{\"change\":function($event){return _vm.updateJobSkill(skill)},\"input\":function($event){if($event.target.composing)return;_vm.$set(skill, \"weight\", _vm._n($event.target.value))},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"},[_c('div',{staticClass:\"d-table w-100 h-100\"},[_c('div',{staticClass:\"d-table-cell align-middle\"},[_c('font-awesome-icon',{staticClass:\"text-danger pointer\",attrs:{\"icon\":\"times\",\"title\":\"Deletar habilidade técnica\"},on:{\"click\":function($event){return _vm.deleteJobSkill(skill.id, index)}}})],1)])]),_vm._v(\" \"),_vm._m(3,true)])})],2)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold text-uppercase\"},[_vm._v(\"Habilidades técnicas\\n \")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-7\"},[_c('span',[_vm._v(\"Nome\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-5\"},[_c('span',[_vm._v(\"Peso\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('hr')])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-2 ml-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold mb-2\"},[_vm._v(\"DATA DE FORMAÇÃO MÍNIMA\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control bg-white\",\"language\":_vm.ptBR,\"format\":\"yyyy\",\"minimum-view\":\"year\"},on:{\"input\":_vm.save},model:{value:(_vm.job.trainee_start_date),callback:function ($$v) {_vm.$set(_vm.job, \"trainee_start_date\", $$v)},expression:\"job.trainee_start_date\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-2 ml-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold mb-2\"},[_vm._v(\"DATA DE FORMAÇÃO MÁXIMA\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control bg-white\",\"language\":_vm.ptBR,\"format\":\"yyyy\",\"minimum-view\":\"year\"},on:{\"input\":_vm.save},model:{value:(_vm.job.trainee_end_date),callback:function ($$v) {_vm.$set(_vm.job, \"trainee_end_date\", $$v)},expression:\"job.trainee_end_date\"}})],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TRAINEE - CONFIGURAÇÕES\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TraineeYears.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TraineeYears.vue?vue&type=script&lang=js&\"","\n \n
\n TRAINEE - CONFIGURAÇÕES \n
\n
\n DATA DE FORMAÇÃO MÍNIMA \n \n
\n
\n DATA DE FORMAÇÃO MÁXIMA \n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./TraineeYears.vue?vue&type=template&id=13ae3e70&\"\nimport script from \"./TraineeYears.vue?vue&type=script&lang=js&\"\nexport * from \"./TraineeYears.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"p-2\"},[_c('h2',{staticClass:\"mb-3\"},[_vm._v(\"\\n UMA MENSAGEM SERÁ ENVIADA \\n \")]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},_vm._l((_vm.candidatesCurrent),function(candidate,index){return _c('div',{key:candidate.id},[_c('div',{staticClass:\"candidate_list\"},[_c('div',{staticClass:\"row p-3\",class:{\n candidate_selected: _vm.feedback_candidates.includes(\n candidate.candidate_id\n ),\n }},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[(candidate.image == '')?_c('div',{staticClass:\"avatar_thumb bg-black\"}):_vm._e(),_vm._v(\" \"),(candidate.image != '')?_c('img',{staticClass:\"shadow_bar avatar_thumb\",attrs:{\"src\":candidate.image}}):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('div',{staticClass:\"close-alt\",on:{\"click\":function($event){return _vm.deleteCandidate(index)}}},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'trash-alt']}})],1),_vm._v(\" \"),_c('span',{staticClass:\"f25\"},[_c('b',[_vm._v(_vm._s(candidate.name.split(\" \")[0]))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('a',{staticClass:\"f12 color-primary\",attrs:{\"href\":`mailto:${candidate.email}`}},[_vm._v(_vm._s(candidate.email))]),_vm._v(\" \"),_c('p',{directives:[{name:\"show\",rawName:\"v-show\",value:(\n _vm.feedback_candidates.includes(candidate.candidate_id)\n ),expression:\"\\n feedback_candidates.includes(candidate.candidate_id)\\n \"}],staticClass:\"f12 color-black\"},[_vm._v(\"\\n FEEDBACK JÁ ENVIADO,\\n \"),_c('br'),_vm._v(\"SERÁ ENVIADO NOVAMENTE\\n \")])])])])])}),0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('h2',[_vm._v(_vm._s(_vm.feedback.title))]),_vm._v(\" \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.feedback.description)}}),_vm._v(\" \"),(_vm.feedback.gallery_item)?_c('div',[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.feedback.use_video),expression:\"feedback.use_video\"}],attrs:{\"width\":\"100%\",\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.feedback.gallery_item.video}})])]):_vm._e()])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 p-0 m-0 center\"},[_c('button',{staticClass:\"btn radius-0 full btn btn-info\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.sendFeedback}},[_vm._v(\"\\n OK ENVIAR FEEDBACK\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 p-0 m-0 center\"},[_c('button',{staticClass:\"radius-0 full btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"\\n CANCELAR ENVIO\\n \")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Confirm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Confirm.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n UMA MENSAGEM SERÁ ENVIADA \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n {{ candidate.name.split(\" \")[0] }} \n \n
\n
{{ candidate.email }} \n
\n FEEDBACK JÁ ENVIADO,\n SERÁ ENVIADO NOVAMENTE\n
\n
\n
\n
\n
\n
\n
\n
{{ feedback.title }} \n
\n
\n \n \n \n
\n
\n
\n
\n
\n
\n \n OK ENVIAR FEEDBACK\n \n
\n
\n \n CANCELAR ENVIO\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Confirm.vue?vue&type=template&id=7ba681b5&\"\nimport script from \"./Confirm.vue?vue&type=script&lang=js&\"\nexport * from \"./Confirm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('SwitchCheckbox',{attrs:{\"onClick\":_vm.jobSaved,\"value\":_vm.bigfive,\"label\":\"SOLICITAR PREENCHIMENTO DO ASSESSMENT BIGFIVE\"},model:{value:(_vm.bigfive),callback:function ($$v) {_vm.bigfive=$$v},expression:\"bigfive\"}}),_vm._v(\" \"),(_vm.bigfive)?_c('div',[_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"ml-4\"},[_c('span',[_vm._v(\"Em qual etapa deseja que o teste seja feito: \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selective_process_id),expression:\"selective_process_id\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selective_process_id=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},function($event){return _vm.saveBigfive(_vm.amount_itens)}]}},_vm._l((_vm.selective_processes),function(selective_process){return _c('option',{key:selective_process.id,domProps:{\"value\":selective_process.id}},[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")])}),0)])])]),_vm._v(\" \"),_c('div',{staticClass:\"ml-4 mt-3\"},[_c('label',{staticClass:\"d-block\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount_itens),expression:\"amount_itens\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":120,\"checked\":_vm._q(_vm.amount_itens,120)},on:{\"click\":function($event){return _vm.saveBigfive(120)},\"change\":function($event){_vm.amount_itens=120}}}),_vm._v(\"\\n Completo (Aproximadamente 12min)\\n \")]),_vm._v(\" \"),_c('label',{staticClass:\"d-block\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount_itens),expression:\"amount_itens\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":50,\"checked\":_vm._q(_vm.amount_itens,50)},on:{\"click\":function($event){return _vm.saveBigfive(50)},\"change\":function($event){_vm.amount_itens=50}}}),_vm._v(\"\\n Simplificado (Aproximadamente 6min)\\n \")])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Bigfive.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Bigfive.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Bigfive.vue?vue&type=template&id=aff4f9c2&\"\nimport script from \"./Bigfive.vue?vue&type=script&lang=js&\"\nexport * from \"./Bigfive.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12 pr-0\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 form-control-feedback color-primary\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Search\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchTemplates.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('button',{staticClass:\"btn btn-primary full\",attrs:{\"disabled\":!_vm.isSelected},on:{\"click\":_vm.useTemplate}},[_vm._v(\"\\n USAR TEMPLATE\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"home\",\"role\":\"tabpanel\",\"aria-labelledby\":\"home-tab\"}},[(_vm.isSelected)?_c('div',{staticClass:\"ml-3 d-flex flex-column\"},[_vm._m(0),_vm._v(\" \"),_vm._l((_vm.questions),function(question){return _c('div',{key:question.id},[_c('p',[_vm._v(_vm._s(question.title))])])})],2):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n NOME DO TEMPLATE\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"Template\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"Template\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"Template\",\"field\":\"recruiter_name\"}})],1)])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.templates),function(template,index){return _c('tr',{key:template.id,staticClass:\"pointer full\",class:_vm.template_selected.id === template.id\n ? 'selectedTr'\n : 'selectTemplateTr',on:{\"click\":function($event){return _vm.selectTemplate(index)}}},[_c('td',{staticStyle:{\"border-right\":\"none\"}},[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(template.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\",staticStyle:{\"border-right\":\"none\",\"border-left\":\"none\"}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(template.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey pr-4\",staticStyle:{\"border-left\":\"none\"}},[_vm._v(\"\\n \"+_vm._s(template.recruiter.name)+\"\\n \")])])}),0)])])])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_c('b',[_vm._v(\"PERGUNTAS DO TEMPLATE\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectTemplate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectTemplate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SelectTemplate.vue?vue&type=template&id=08d7105c&\"\nimport script from \"./SelectTemplate.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectTemplate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full p-2 radius-0 f13\",on:{\"click\":function($event){_vm.edtOrCreate = !_vm.edtOrCreate}}},[_vm._v(\"\\n ADICIONAR ETAPA\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('draggable',_vm._b({staticClass:\"list-group\",attrs:{\"list\":_vm.selective_processes,\"disabled\":!_vm.can_dragg,\"ghost-class\":\"ghost\"},on:{\"change\":_vm.changeProcess}},'draggable',_vm.dragOptions,false),[_c('transition-group',{attrs:{\"type\":\"transition\",\"name\":\"flip-list\"}},_vm._l((_vm.selective_processes),function(selective_process,index){return _c('div',{key:selective_process.id,staticClass:\"list-group-item mb-1 mt-1 pointer d-flex full justify-content-between\"},[_c('div',[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")]),_vm._v(\" \"),_c('MenuKanban',{staticStyle:{\"margin-top\":\"-10px !important\"},attrs:{\"selective_process\":selective_process,\"index\":index,\"job_id\":_vm.job_id,\"gallery\":_vm.gallery,\"recruiter_id\":_vm.recruiter_id,\"total_in_column\":_vm.applies[_vm.selective_processes[index].position].length,\"questions\":_vm.questions[_vm.selective_processes[index].position]}})],1)}),0)],1)],1)]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.edtOrCreate)?_c('div',{staticClass:\"row mt-1\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 d-flex\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.nameProcess),expression:\"nameProcess\"}],staticClass:\"form-control input-kanbanForm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.nameProcess)},on:{\"input\":function($event){if($event.target.composing)return;_vm.nameProcess=$event.target.value}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn f16 color-white bg-primary2 btn-kanbanForm mx-2 radius-0\",on:{\"click\":_vm.createProcess}},[_c('i',{staticClass:\"fas fa-check\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger color-white f16 radius-0\",on:{\"click\":_vm.closeForm}},[_c('i',{staticClass:\"far fa-window-close\"})])])]):_vm._e()])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Kanban.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Kanban.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Kanban.vue?vue&type=template&id=f94622f6&\"\nimport script from \"./Kanban.vue?vue&type=script&lang=js&\"\nexport * from \"./Kanban.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.edit),expression:\"!edit\"}],staticClass:\"header_column\",on:{\"mouseover\":function($event){_vm.pencil = true},\"mouseleave\":function($event){_vm.pencil = false},\"dblclick\":_vm.enableEditColumn}},[_c('b',{staticClass:\"color-grey-primary pointer\"},[_c('font-awesome-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pencil),expression:\"pencil\"}],staticClass:\"dark_grey\",attrs:{\"icon\":\"pencil-alt\"},on:{\"click\":function($event){_vm.edit = true}}})],1),_vm._v(\" \"),_c('div',{staticClass:\"nav menu_column nav-tabs right\",staticStyle:{\"border\":\"0px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"dropdown\",\"href\":\"#\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{staticClass:\"dark_grey\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\"},[(_vm.selective_process.status != 1)?_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.removeColumn}},[_vm._v(\"\\n DELETAR COLUNA\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.editFeedback}},[_vm._v(\"\\n EDITAR FEEDBACK\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.addData}},[_vm._v(\"\\n COLETAR DADOS\\n \")])])])]),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selective_process.feedback),expression:\"selective_process.feedback\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"video\"}})],1),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selective_process.field_mapping_ids.length > 0),expression:\"selective_process.field_mapping_ids.length > 0\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"database\"}})],1)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.edit),expression:\"edit\"}]},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.column_name),expression:\"column_name\"}],ref:\"column_name\",staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.column_name)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.changeName.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.column_name=$event.target.value}}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuKanban.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuKanban.vue?vue&type=script&lang=js&\"","\n \n\n
\n
\n \n \n
\n
\n \n \n\n
0\"\n class=\"mr-1 total_in_column icon_kanban_blue\"\n >\n \n \n
\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./MenuKanban.vue?vue&type=template&id=33433db4&\"\nimport script from \"./MenuKanban.vue?vue&type=script&lang=js&\"\nexport * from \"./MenuKanban.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobSkills.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobSkills.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./JobSkills.vue?vue&type=template&id=35726af8&\"\nimport script from \"./JobSkills.vue?vue&type=script&lang=js&\"\nexport * from \"./JobSkills.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[(!_vm.showForm)?_c('button',{staticClass:\"btn btn-primary full p-2 radius-0 f13 text-uppercase\",attrs:{\"disabled\":!_vm.job_id},on:{\"click\":function($event){_vm.showForm = true}}},[_vm._v(\"\\n Adicionar habilidade técnica\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.showForm)?_c('div',[_c('VueSuggestion',{attrs:{\"searchURL\":\"/recruiters/skills/search\",\"responseDataName\":\"skills\",\"whenSelected\":_vm.createJobSkill,\"queryParamName\":\"term\",\"classes\":\"mt-1\",\"inputClasses\":\"radius-0 form-control\"},model:{value:(_vm.input),callback:function ($$v) {_vm.input=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"input\"}}),_vm._v(\" \"),_c('div',{staticClass:\"d-flex\"},[_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":_vm.createJobSkill}},[_vm._v(\"\\n Adicionar\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger full\",on:{\"click\":function($event){_vm.showForm = false}}},[_vm._v(\"\\n Cancelar\\n \")])])],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[(_vm.job_skills.length)?_c('div',{staticClass:\"row mb-3 font-weight-bold text-uppercase\"},[_vm._m(1),_vm._v(\" \"),_vm._m(2)]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.job_skills),function(skill,index){return _c('div',{key:skill.id,staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-7\"},[_c('div',{staticClass:\"d-table w-100 h-100\"},[_c('div',{staticClass:\"d-table-cell align-middle\"},[_c('span',[_vm._v(_vm._s(skill.name))])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(skill.weight),expression:\"skill.weight\",modifiers:{\"number\":true}}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"step\":\"0.5\",\"min\":\"1\",\"placeholder\":\"Peso\"},domProps:{\"value\":(skill.weight)},on:{\"change\":function($event){return _vm.updateJobSkill(skill)},\"input\":function($event){if($event.target.composing)return;_vm.$set(skill, \"weight\", _vm._n($event.target.value))},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"},[_c('div',{staticClass:\"d-table w-100 h-100\"},[_c('div',{staticClass:\"d-table-cell align-middle\"},[_c('font-awesome-icon',{staticClass:\"text-danger pointer\",attrs:{\"icon\":\"times\",\"title\":\"Deletar habilidade técnica\"},on:{\"click\":function($event){return _vm.deleteJobSkill(skill.id, index)}}})],1)])]),_vm._v(\" \"),_vm._m(3,true)])})],2)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold text-uppercase\"},[_vm._v(\"Habilidades técnicas\\n \")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-7\"},[_c('span',[_vm._v(\"Nome\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-5\"},[_c('span',[_vm._v(\"Peso\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12\"},[_c('hr')])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 plr-7\"},[_c('h1',{staticClass:\"mt-2 mb-4 center color-primary\",staticStyle:{\"font-family\":\"Comfortaa-Bold\"}},[_vm._v(\"\\n Jovool\\n \")]),_vm._v(\" \"),_c('div',[_c('h3',[_vm._v(\"COMPLETE SEU CADASTRO\")]),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"label\":\"NOME COMPLETO\",\"field\":_vm.$v.recruiter.name},model:{value:(_vm.recruiter.name),callback:function ($$v) {_vm.$set(_vm.recruiter, \"name\", $$v)},expression:\"recruiter.name\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"label\":\"NOME DA SUA EMPRESA\",\"field\":_vm.$v.recruiter.business_name},model:{value:(_vm.recruiter.business_name),callback:function ($$v) {_vm.$set(_vm.recruiter, \"business_name\", $$v)},expression:\"recruiter.business_name\"}}),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('label',[_vm._v(\"CELULAR\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.mobile_phone),expression:\"recruiter.mobile_phone\"},{name:\"mask\",rawName:\"v-mask\",value:('+## (##) #####-####'),expression:\"'+## (##) #####-####'\"}],staticClass:\"form-control\",class:{\n 'is-invalid': _vm.$v.recruiter.mobile_phone.$error,\n 'is-valid': !_vm.$v.recruiter.mobile_phone.$invalid,\n },attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.recruiter.mobile_phone)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.recruiter, \"mobile_phone\", $event.target.value)}}})]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.accept_terms),expression:\"recruiter.accept_terms\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.recruiter.accept_terms)?_vm._i(_vm.recruiter.accept_terms,null)>-1:(_vm.recruiter.accept_terms)},on:{\"change\":function($event){var $$a=_vm.recruiter.accept_terms,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.recruiter, \"accept_terms\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.recruiter, \"accept_terms\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.recruiter, \"accept_terms\", $$c)}}}}),_vm._v(\"ACEITO OS\\n \"),_c('a',{attrs:{\"href\":\"#\"}},[_vm._v(\"TERMOS DE USO\")])]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.accept_marketing),expression:\"recruiter.accept_marketing\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.recruiter.accept_marketing)?_vm._i(_vm.recruiter.accept_marketing,null)>-1:(_vm.recruiter.accept_marketing)},on:{\"change\":function($event){var $$a=_vm.recruiter.accept_marketing,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.recruiter, \"accept_marketing\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.recruiter, \"accept_marketing\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.recruiter, \"accept_marketing\", $$c)}}}}),_vm._v(\"\\n GOSTARIA DE RECEBER AS NOVIDADES POR EMAIL\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-lg btn-success full mt-3\",attrs:{\"disabled\":_vm.load,\"type\":\"button\"},on:{\"click\":_vm.updateRecruiter}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"Salvar\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 center col-xs-12 p-7 loginPanel\",staticStyle:{\"min-height\":\"100vh\"}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CompleteRegister.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CompleteRegister.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n Jovool\n \n\n
\n
COMPLETE SEU CADASTRO \n
\n
\n\n
\n CELULAR \n \n
\n
\n ACEITO OS\n TERMOS DE USO \n \n
\n \n GOSTARIA DE RECEBER AS NOVIDADES POR EMAIL\n \n\n
\n Salvar \n \n \n
\n \n
\n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./CompleteRegister.vue?vue&type=template&id=3da5f9ff&\"\nimport script from \"./CompleteRegister.vue?vue&type=script&lang=js&\"\nexport * from \"./CompleteRegister.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.show)?_c('div',[_c('h2',{staticStyle:{\"color\":\"#515151\"}},[_vm._v(\"CRIE SUA CONTA E COMECE A ENTREVISTAR\")]),_vm._v(\" \"),_c('p',[_vm._v(\"VOCÊ ESTÁ A DOIS CLIQUES DE CRIAR SUA PRIMEIRA ENTREVISTA\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-lg full center btn-primary\",staticStyle:{\"background-color\":\"#0076b5 !important\"},on:{\"click\":_vm.redirectLinkedin}},[_c('i',{staticClass:\"fab fa-linkedin\"}),_vm._v(\" LINKEDIN\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"center mt-2 full\",staticStyle:{\"display\":\"block\"}},[_vm._v(\"OU\")]),_vm._v(\" \"),(_vm.show)?_c('div',[_c('label',[_vm._v(\"EMAIL\")]),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.email),expression:\"user.email\"}],staticClass:\"form-control\",class:{\n 'is-invalid': _vm.$v.user.email.$error,\n 'is-valid': !_vm.$v.user.email.$invalid,\n },attrs:{\"autofocus\":\"\",\"type\":\"email\",\"placeholder\":\"EMAIL\"},domProps:{\"value\":(_vm.user.email)},on:{\"blur\":function($event){return _vm.validateField(_vm.$v.user.email)},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"email\", $event.target.value)}}})])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"mb-4\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"SENHA\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.password),expression:\"user.password\"}],staticClass:\"form-control\",class:{ 'is-valid': _vm.password_valid },attrs:{\"type\":\"password\",\"placeholder\":\"SENHA\"},domProps:{\"value\":(_vm.user.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"password\", $event.target.value)}}}),_vm._v(\" \"),_c('Password',{attrs:{\"strength-meter-only\":true},on:{\"score\":_vm.showScore},model:{value:(_vm.user.password),callback:function ($$v) {_vm.$set(_vm.user, \"password\", $$v)},expression:\"user.password\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('div',{staticClass:\"mb-4\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"CONFIRMAR SENHA\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.password_confirme),expression:\"password_confirme\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"SENHA\"},domProps:{\"value\":(_vm.password_confirme)},on:{\"input\":function($event){if($event.target.composing)return;_vm.password_confirme=$event.target.value}}})])]),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"label\":\"NOME COMPLETO\",\"field\":_vm.$v.user.name},model:{value:(_vm.user.name),callback:function ($$v) {_vm.$set(_vm.user, \"name\", $$v)},expression:\"user.name\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"label\":\"NOME DA SUA EMPRESA\",\"field\":_vm.$v.user.business_name},model:{value:(_vm.user.business_name),callback:function ($$v) {_vm.$set(_vm.user, \"business_name\", $$v)},expression:\"user.business_name\"}}),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('label',[_vm._v(\"CELULAR\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.mobile_phone),expression:\"user.mobile_phone\"},{name:\"mask\",rawName:\"v-mask\",value:('+## (##) #####-####'),expression:\"'+## (##) #####-####'\"}],staticClass:\"form-control\",class:{\n 'is-invalid': _vm.$v.user.mobile_phone.$error,\n 'is-valid': !_vm.$v.user.mobile_phone.$invalid,\n },attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.user.mobile_phone)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"mobile_phone\", $event.target.value)}}})]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.accept_terms),expression:\"user.accept_terms\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.user.accept_terms)?_vm._i(_vm.user.accept_terms,null)>-1:(_vm.user.accept_terms)},on:{\"change\":function($event){var $$a=_vm.user.accept_terms,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.user, \"accept_terms\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.user, \"accept_terms\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.user, \"accept_terms\", $$c)}}}}),_vm._v(\"ACEITO OS\\n \"),_c('a',{attrs:{\"target\":\"_blank\",\"href\":\"/termos_de_uso\"}},[_vm._v(\"TERMOS DE USO\")])]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.accept_marketing),expression:\"user.accept_marketing\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.user.accept_marketing)?_vm._i(_vm.user.accept_marketing,null)>-1:(_vm.user.accept_marketing)},on:{\"change\":function($event){var $$a=_vm.user.accept_marketing,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.user, \"accept_marketing\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.user, \"accept_marketing\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.user, \"accept_marketing\", $$c)}}}}),_vm._v(\" GOSTARIA DE\\n RECEBER NOVIDADE POR EMAIL\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-lg btn-success full mt-3\",attrs:{\"disabled\":_vm.load,\"type\":\"button\"},on:{\"click\":_vm.submitForm}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"SALVAR\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])]),_vm._v(\" \"),_c('div',{staticClass:\"center mt-5\"},[_c('a',{attrs:{\"href\":\"/recruiters/sign_in\"}},[_vm._v(\"JÁ TEM CONTA? \"+_vm._s(_vm.showScore()))])])],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
CRIE SUA CONTA E COMECE A ENTREVISTAR \n
VOCÊ ESTÁ A DOIS CLIQUES DE CRIAR SUA PRIMEIRA ENTREVISTA
\n\n
\n LINKEDIN\n \n
OU \n
\n\n
\n
\n
\n CONFIRMAR SENHA \n \n
\n
\n
\n
\n\n
\n CELULAR \n \n
\n
\n ACEITO OS\n TERMOS DE USO \n \n
\n GOSTARIA DE\n RECEBER NOVIDADE POR EMAIL\n \n
\n SALVAR \n \n \n
\n \n
\n
\n
\n \n\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SignUp.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SignUp.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SignUp.vue?vue&type=template&id=379568fa&\"\nimport script from \"./SignUp.vue?vue&type=script&lang=js&\"\nexport * from \"./SignUp.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"color-dark-purple\"},[_c('h3',[_vm._v(\"DETALHE DO CANDIDATO(A) \"),(this.candidate.is_deleted)?_c('b',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"Removido\")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 border-dark-purple\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"menu_column nav nav-tabs mt-2 mr-2\",staticStyle:{\"margin-right\":\"10px !important\",\"float\":\"right\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu drop-down-tb\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\" EDITAR \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-4 fa fa-pencil-alt scale_1\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('span',{staticClass:\"mt-0 mb-0\",on:{\"click\":function($event){return _vm.removeCandidate()}}},[_vm._v(\" REMOVER CANDIDATO \")]),_vm._v(\" \"),_c('i',{staticClass:\"ml-4 fa fa-trash-alt scale_1\"})])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_c('div',{staticClass:\"w-100 h-100 d-table\"},[_c('img',{staticClass:\"thumb-box mt-3 mb-2 d-table-cell align-middle\",attrs:{\"src\":_vm.apply ? _vm.apply.image : '/images/avatar.png'}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row mt-1 mb-2\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.name))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-2\"},[_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.email))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-2\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.mobile_phone))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-2\"},[_vm._m(3),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.remuneration, true))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-2\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.personal_portfolio))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_vm._m(5),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.personal_portfolio))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(6),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.showField(_vm.candidate_data.linkedin_url))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(7),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_data.hometown_attributes ? \n `${_vm.candidate_data.hometown_attributes.name}/${_vm.candidate_data.hometown_state_attributes.name}`:\n `Não Informado`)+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(8),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.getEthnicity(_vm.candidate_data.ethnicity) || \"Não Informado\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1\"},[_vm._m(9),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.getSexualOrientation(_vm.candidate_data.sexual_orientation) || \"Não Informado\")+\" \\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-3\"},[_vm._m(10),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_data.is_pcd ? _vm.candidate_data.pcd_description : \"Não\")+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-1 mb-1\"},[_vm._m(11),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},_vm._l((_vm.skills),function(skill){return _c('div',{key:skill.id,staticClass:\"skill_uni\"},[_vm._v(\"\\n \"+_vm._s(skill.name)+\"\\n \")])}),0)])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"NOME\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"EMAIL\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"TELEFONE\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"SALARIO\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"PORTFÓLIO\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"SITE PESSOAL\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"LINKEDIN\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"CIDADE NATAL\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"ETNIA\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"ORIENTAÇÃO SEXUAL\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('span',[_vm._v(\"PCD\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 hide col-xs-12\"},[_c('span',[_vm._v(\"COMPETENCIAS\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Header.vue?vue&type=script&lang=js&\"","\n \n
\n
DETALHE DO CANDIDATO(A) Removido \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n NOME \n
\n
\n \n {{ showField(candidate_data.name) }}\n \n
\n
\n
\n
\n EMAIL \n
\n
\n \n {{ showField(candidate_data.email) }}\n \n
\n
\n
\n
\n TELEFONE \n
\n
\n \n {{ showField(candidate_data.mobile_phone) }}\n \n
\n
\n
\n
\n SALARIO \n
\n
\n \n {{ showField(candidate_data.remuneration, true) }}\n \n
\n
\n
\n
\n PORTFÓLIO \n
\n
\n \n {{ showField(candidate_data.personal_portfolio) }}\n \n
\n
\n
\n
\n SITE PESSOAL \n
\n
\n \n {{ showField(candidate_data.personal_portfolio) }}\n \n
\n
\n
\n
\n LINKEDIN \n
\n
\n \n {{ showField(candidate_data.linkedin_url) }}\n \n
\n
\n
\n
\n CIDADE NATAL \n
\n
\n \n {{ candidate_data.hometown_attributes ? \n `${candidate_data.hometown_attributes.name}/${candidate_data.hometown_state_attributes.name}`:\n `Não Informado`\n }}\n \n
\n
\n
\n
\n ETNIA \n
\n
\n \n {{ getEthnicity(candidate_data.ethnicity) || \"Não Informado\" }}\n \n
\n
\n
\n
\n ORIENTAÇÃO SEXUAL \n
\n
\n \n {{ getSexualOrientation(candidate_data.sexual_orientation) || \"Não Informado\" }} \n \n
\n
\n
\n
\n PCD \n
\n
\n \n {{ candidate_data.is_pcd ? candidate_data.pcd_description : \"Não\" }}\n \n
\n
\n
\n
\n COMPETENCIAS \n
\n
\n
\n {{ skill.name }}\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Header.vue?vue&type=template&id=d7514dea&\"\nimport script from \"./Header.vue?vue&type=script&lang=js&\"\nexport * from \"./Header.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid pb-4 f14\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"NOME\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.name),expression:\"candidate.name\"}],staticClass:\"form-control form__input\",attrs:{\"type\":\"text\",\"minlength\":\"4\",\"required\":\"\"},domProps:{\"value\":(_vm.candidate.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"name\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CELULAR\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.mobile_phone),expression:\"candidate.mobile_phone\"},{name:\"mask\",rawName:\"v-mask\",value:('+## (##) #####-####'),expression:\"'+## (##) #####-####'\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.candidate.mobile_phone)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"mobile_phone\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"PORTFÓLIO\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.personal_portfolio),expression:\"candidate.personal_portfolio\"}],staticClass:\"form-control form__input\",attrs:{\"type\":\"text\",\"placeholder\":\"Não informado\",\"minlength\":\"4\",\"required\":\"\"},domProps:{\"value\":(_vm.candidate.personal_portfolio)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"personal_portfolio\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"SITE PESSOAL\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.personal_site),expression:\"candidate.personal_site\"}],staticClass:\"form-control form__input\",attrs:{\"type\":\"text\",\"placeholder\":\"Não informado\",\"minlength\":\"4\",\"required\":\"\"},domProps:{\"value\":(_vm.candidate.personal_site)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"personal_site\", $event.target.value)}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"EMAIL\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.email),expression:\"candidate.email\"}],staticClass:\"form-control\",attrs:{\"type\":\"email\",\"minlength\":\"10\",\"required\":\"\"},domProps:{\"value\":(_vm.candidate.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"email\", $event.target.value)}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"SALÁRIO\")]),_vm._v(\" \"),_c('div',{staticClass:\"mt-2\"},[_c('currency-input',{staticClass:\"form-control\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.candidate.remuneration),callback:function ($$v) {_vm.$set(_vm.candidate, \"remuneration\", $$v)},expression:\"candidate.remuneration\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"mb-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CIDADE DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"selectFirst\":true,\"clearOption\":true,\"placeholder\":\"CIDADE\",\"classes\":\"mt-2\",\"inputClasses\":\"radius-0 form-control\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"mb-3 mt-1\"},[_c('CandidateSkills',{attrs:{\"candidate_id\":_vm.candidate_edit.id,\"inputClasses\":\"mt-2\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-2\"},[_c('button',{staticClass:\"btn-add-items-tb bg-purple color-white right\",staticStyle:{\"min-width\":\"300px\"},on:{\"click\":_vm.handleUpdate}},[_vm._v(\"\\n SALVAR\\n \")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h4',{staticClass:\"color-dark-purple mt-3\"},[_vm._v(\"EDITAR DADOS CANDIDATO(A)\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
EDITAR DADOS CANDIDATO(A) \n \n
\n
\n
\n
\n
\n
\n
\n
SITE PESSOAL \n
\n \n
\n
\n
\n
\n
\n
\n
\n CIDADE DO(A) CANDIDATO(A) \n \n
\n
\n \n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=2c3d4b60&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn-blue-light pb-3\",on:{\"click\":_vm.getData}},[_c('i',{staticClass:\"fas fa-headset f20 mt-1\",staticStyle:{\"float\":\"left\"}}),_vm._v(\"\\n ENTREVISTAS\\n \")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n ENTREVISTAS\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3c2fe230&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-card-grey mt-3\"},[_c('div',{staticClass:\"cardy-body-noBorder\"},[_vm._m(0),_vm._v(\" \"),_vm._l((_vm.comments),function(item){return _c('div',{key:item.id},[_c('div',[_c('span',{staticClass:\"color-dark-purple\"},[_c('strong',[_vm._v(_vm._s(item.description))])])]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(\"\\n \"+_vm._s(item.recruiter ? \"RECRUTADOR(A)\" : \"GESTOR(A)\")+\":\\n \"),_c('span',{staticClass:\"color-black\"},[_vm._v(\"\\n \"+_vm._s(item.recruiter ? item.recruiter.name : item.manager.name)+\"\\n \")])])]),_vm._v(\" \"),_vm._m(1,true)])})],2),_vm._v(\" \"),(_vm.comments.length == 0)?_c('div',{staticClass:\"pl-3 pr-3 pb-3\"},[_c('span',[_vm._v(\"SEM COMENTÁRIOS ATÉ O MOMENTO\")])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-card-grey\"},[_c('h4',{staticClass:\"color-dark-purple mb-3\"},[_vm._v(\"COMENTÁRIOS\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('hr')])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
COMENTÁRIOS \n \n
\n
\n \n {{ item.description }} \n \n
\n
\n \n {{ item.recruiter ? \"RECRUTADOR(A)\" : \"GESTOR(A)\" }}:\n \n {{ item.recruiter ? item.recruiter.name : item.manager.name }}\n \n \n
\n
\n
\n \n
\n
\n
\n SEM COMENTÁRIOS ATÉ O MOMENTO \n
\n
\n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=f37511b0&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-card-grey mt-3\"},[_c('div',{staticClass:\"cardy-body-noBorder\"},[_vm._m(0),_vm._v(\" \"),_vm._l((_vm.notes_candidate),function(item){return _c('div',{key:item.id},[_c('div',[_c('div',{staticClass:\"icon-flutuant-close-tb pointer\",on:{\"click\":function($event){return _vm.deleteNote(item.id)}}},[_c('i',{staticClass:\"fas fa-times color-purple\"})]),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(item.note))])]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(\" Recrutador(a): \"+_vm._s(item.recruiter.name))])]),_vm._v(\" \"),_vm._m(1,true)])}),_vm._v(\" \"),_c('div',[(!_vm.showForm)?_c('button',{staticClass:\"color-white btn-add-items-tb bg-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":function($event){_vm.showForm = true}}},[_vm._v(\"\\n ADICIONAR ANOTAÇÃO\\n \")]):_vm._e()]),_vm._v(\" \"),(_vm.showForm)?_c('div',[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.notes.note),expression:\"notes.note\"}],staticClass:\"full form-control mt-3 mb-3\",class:{\n 'is-invalid': _vm.notes.note.length !== 0 && _vm.notes.note.length <= 3,\n },staticStyle:{\"height\":\"100px\",\"border-radius\":\"5px\"},attrs:{\"cols\":\"30\",\"rows\":\"10\"},domProps:{\"value\":(_vm.notes.note)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.notes, \"note\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"d-flex\"},[_c('button',{staticClass:\"btn btn-danger to_uppercase full\",on:{\"click\":function($event){_vm.showForm = false}}},[_vm._v(\"\\n Cancelar\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full\",on:{\"click\":function($event){return _vm.sendNote()}}},[_vm._v(\"\\n SALVAR\\n \")])])]):_vm._e()],2)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h4',{staticClass:\"color-dark-purple mb-3\"},[_vm._v(\"ANOTAÇÕES\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('hr')])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
ANOTAÇÕES \n \n
\n
\n
\n \n
\n
{{ item.note }} \n
\n
\n Recrutador(a): {{ item.recruiter.name }} \n
\n
\n
\n \n
\n
\n \n ADICIONAR ANOTAÇÃO\n \n
\n\n
\n
\n
\n \n Cancelar\n \n \n SALVAR\n \n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=002c435e&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-card-grey mt-3\"},[_c('div',{staticClass:\"cardy-body-noBorder\"},[_vm._m(0),_vm._v(\" \"),_vm._l((_vm.archives),function(item){return _c('div',{key:item.id},[_c('div',[_c('div',{staticClass:\"icon-flutuant-close-tb\"},[_c('a',{attrs:{\"href\":item.url,\"target\":\"_blank\",\"download\":item.name}},[_c('font-awesome-icon',{staticClass:\"color-purple mr-2 pointer\",attrs:{\"icon\":\"cloud-download-alt\",\"title\":\"Baixar arquivo\"}})],1),_vm._v(\" \"),_c('font-awesome-icon',{staticClass:\"color-purple pointer\",attrs:{\"icon\":\"times\",\"title\":\"Deletar arquivo\"},on:{\"click\":function($event){return _vm.deleteFile(item.id)}}})],1),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(item.name))])]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(\" Recrutador(a): \"+_vm._s(item.recruiter.name))])]),_vm._v(\" \"),_vm._m(1,true)])}),_vm._v(\" \"),_c('div',[_c('button',{staticClass:\"color-white btn-add-items-tb bg-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":function($event){return _vm.openForm()}}},[_vm._v(\"\\n ADICIONAR ARQUIVOS\\n \")])])],2)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h4',{staticClass:\"color-dark-purple mb-3\"},[_vm._v(\"ARQUIVOS\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('hr')])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
ARQUIVOS \n \n
\n
\n
\n Recrutador(a): {{ item.recruiter.name }} \n
\n
\n
\n \n
\n
\n \n ADICIONAR ARQUIVOS\n \n
\n
\n
\n\n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=e11af074&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-card-grey mt-3 mb-3\"},[_c('div',{staticClass:\"cardy-body-noBorder\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-lg-12 mt-1 mb-2\"},[_c('button',{staticClass:\"color-white btn-add-items-tb bg-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":_vm.handleUpdate}},[_vm._v(\"\\n SALVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-12 mt-1 mb-2\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.status),expression:\"status\"}],staticClass:\"form-control full\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.status=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.avaiableStatus),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-12 mt-1 mb-2\"},[_c('button',{staticClass:\"color-white btn-add-items-tb bg-light-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":function($event){return _vm.openResume()}}},[_c('i',{staticClass:\"far fa-file-alt f25 color-white\",staticStyle:{\"float\":\"left\"}}),_vm._v(\"\\n CURRÍCULO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-12 mt-1 mb-1\"},[_c('button',{staticClass:\"color-white btn-add-items-tb bg-light-purple\",staticStyle:{\"width\":\"100%\"},on:{\"click\":function($event){return _vm.openVideo()}}},[_c('i',{staticClass:\"fas fa-video color-white f25\",staticStyle:{\"float\":\"left\"}}),_vm._v(\"\\n VIDEOS DO CANDIDATO(A)\\n \")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n SALVAR\n \n
\n
\n \n \n {{ status.text }}\n \n \n
\n
\n \n \n CURRÍCULO\n \n
\n
\n \n \n VIDEOS DO CANDIDATO(A)\n \n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=1e27c14b&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1e27c14b\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(this.videos.length !== 0)?_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{},[_c('div',{staticClass:\"card-body-noBorder\"},_vm._l((this.videos),function(video){return _c('div',{key:video.id,staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"avatar_thumb_large\",on:{\"click\":function($event){return _vm.showVideo(video.video)}}},[_c('img',{staticClass:\"pointer\",attrs:{\"src\":video.thumbnail,\"alt\":\"\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12 m-0 p-0\"},[_c('h5',{staticClass:\"color-primary mt-3 pointer\",domProps:{\"innerHTML\":_vm._s(video.title)},on:{\"click\":function($event){return _vm.showVideo(video.video)}}},[_vm._v(\"\\n \"+_vm._s(video.title)+\"\\n \")])]),_vm._v(\" \"),_c('hr')])}),0)])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[(this.videos.length === 0)?_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-2\"},[_vm._m(0)]):_vm._e()])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"card-body-noBorder\"},[_c('h3',{staticClass:\"center\"},[_vm._v(\"NÃO HÁ VÍDEOS PARA MOSTRAR\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n {{ video.title }}\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
NÃO HÁ VÍDEOS PARA MOSTRAR \n \n
\n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=28f5e74d&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('video',{attrs:{\"width\":\"100%\",\"height\":\"100%\",\"controls\":\"controls\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.url}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n \n \n \n
\n \n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=7192a290&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3 mb-3\"},_vm._l((_vm.talent_banks),function(talent_bank){return _c('div',{key:talent_bank.id,staticClass:\"row border-bottom mb-4 text-capitalize mb-3\"},[_c('div',{staticClass:\"col-lg-1 ml-0\"},[_c('div',{staticClass:\"h-100 w-100 d-table\"},[_c('div',{staticClass:\"d-table-cell align-middle center\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidates_selected),expression:\"candidates_selected\"}],attrs:{\"type\":\"checkbox\",\"name\":\"selectCandidate\"},domProps:{\"value\":_vm.checkboxValue(talent_bank),\"checked\":Array.isArray(_vm.candidates_selected)?_vm._i(_vm.candidates_selected,_vm.checkboxValue(talent_bank))>-1:(_vm.candidates_selected)},on:{\"change\":function($event){var $$a=_vm.candidates_selected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.checkboxValue(talent_bank),$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.candidates_selected=$$a.concat([$$v]))}else{$$i>-1&&(_vm.candidates_selected=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.candidates_selected=$$c}}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-11 col-xs-12\"},[_c('ItemPreview',{attrs:{\"talent_bank\":talent_bank}})],1)])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndexInBlock.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndexInBlock.vue?vue&type=script&lang=js&\"","\n \n \n\n\n","import { render, staticRenderFns } from \"./IndexInBlock.vue?vue&type=template&id=2164412e&\"\nimport script from \"./IndexInBlock.vue?vue&type=script&lang=js&\"\nexport * from \"./IndexInBlock.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"mr-0 col-lg-2 col-xs-12 center\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/talent_banks/${_vm.talent_bank.id}/candidate/`}},[_c('img',{staticClass:\"thumb-box mt-3 mb-2\",staticStyle:{\"border\":\"none\"},attrs:{\"src\":_vm.talent_bank.image ? _vm.talent_bank.image : '/images/avatar.png'}})])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12 mt-3 pt-2\"},[_c('div',{staticClass:\"mb-2\"},[_c('span',{staticClass:\"label-bold\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/talent_banks/${_vm.talent_bank.id}/candidate/`}},[_vm._v(\"\\n \"+_vm._s(_vm.talent_bank.candidate_name)+\"\\n \")])],1)]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false\n ? \"\"\n : _vm.talent_bank.experiences[0].occupation.name)+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"text-lower\"},[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false ? \"\" : \"em\")+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"label-bold color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false\n ? \"\"\n : _vm.talent_bank.experiences[0].company.name)+\"\\n \")])]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false\n ? \"\"\n : _vm.format(\n new Date(_vm.talent_bank.experiences[0].start_work),\n \"MM/dd/yyyy\"\n ))+\"\\n \")]),_vm._v(\" \"),(!_vm.showEndWork)?_c('span',{staticClass:\"text-lower\"},[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false\n ? \"\"\n : _vm.verifyCurrentJob(_vm.talent_bank.experiences[0]))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.showEndWork)?_c('span',{staticClass:\"text-lower\"},[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false\n ? \"\"\n : _vm.verifyCurrentJob(_vm.talent_bank.experiences[0]))+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('span',{staticStyle:{\"font-size\":\"14px\",\"color\":\"grey\"}},[_vm._v(\"\\n \"+_vm._s(_vm.checkData(_vm.talent_bank.experiences[0]) == false\n ? \"\"\n : \"(\" + _vm.showExperienceTiming(_vm.talent_bank.experiences[0]) + \")\")+\"\\n \")])]),_vm._v(\" \"),_c('div',[(_vm.talent_bank.skills_names)?_c('p',{staticClass:\"color-grey mt-0 mb-0 text-truncate\"},[_vm._v(\"Habilidades técnicas: \"+_vm._s(_vm.talent_bank.skills_names))]):_vm._e(),_vm._v(\" \"),(_vm.talent_bank.study_areas_names)?_c('p',{staticClass:\"color-grey text-truncate\"},[_vm._v(\"Educação: \"+_vm._s(_vm.talent_bank.study_areas_names))]):_vm._e()]),_vm._v(\" \"),_c('div',[(\n _vm.nullOrVoid(_vm.talent_bank.city_name) ||\n _vm.nullOrVoid(_vm.talent_bank.state_name) != ''\n )?_c('span',{staticClass:\"pt-2\"},[_c('i',{staticClass:\"fas fa-map-marker-alt color-dark-purple\"}),_vm._v(\"\\n \"+_vm._s(_vm.nullOrVoid(_vm.talent_bank.city_name))+\"\\n \"+_vm._s(_vm.nullOrVoid(_vm.talent_bank.state_name))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(_vm.talent_bank.experiences.length > 1)?_c('div',{staticClass:\"extended-infos mt-2 mb-3 pointer\"},[_c('div',[_c('div',{staticClass:\"center pointer d-flex\",on:{\"click\":function($event){_vm.showMoreInfo = !_vm.showMoreInfo}}},[_vm._m(0),_vm._v(\" \"),_c('span',[_vm._v(\" VER \"+_vm._s(_vm.showMoreInfo ? 'MENOS' : 'MAIS'))])])]),_vm._v(\" \"),(_vm.showMoreInfo)?_c('div',{staticClass:\"row\"},[_vm._m(1),_vm._v(\" \"),_vm._l((_vm.talent_bank.experiences),function(experience,index){return _c('div',{key:experience.id,staticClass:\"col-lg-12 col-xs-12 mb-2 mt-1\"},[(index > 0)?_c('div',[_c('div',[_c('span',[_vm._v(\"\\n \"+_vm._s(experience.occupation.name)+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"text-lower\"},[_vm._v(\" em \")]),_vm._v(\" \"),_c('span',{staticClass:\"label-bold color-dark-purple\"},[_vm._v(_vm._s(experience.company.name))])]),_vm._v(\" \"),_c('div',[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.format(new Date(experience.start_work), \"MM/dd/yyyy\"))+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"text-lower\"},[_vm._v(\" até \")]),_vm._v(\" \"),_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.verifyCurrentJob(experience))+\"\\n \")]),_vm._v(\" \"),_c('span',{staticStyle:{\"font-size\":\"14px\",\"color\":\"grey\"}},[_vm._v(\"\\n \"+_vm._s(\"(\" + _vm.showExperienceTiming(experience) + \")\")+\"\\n \")])])]):_vm._e()])})],2):_vm._e()]):_vm._e()])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"icon-see-more\"},[_c('i',{staticClass:\"fas fa-chevron-circle-down color-dark-purple\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('span',{staticClass:\"label-bold\"},[_vm._v(\"HISTÓRICO PROFISSIONAL\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemPreview.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemPreview.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n \n
\n
\n
\n \n \n {{ talent_bank.candidate_name }}\n \n \n
\n\n
\n \n {{\n checkData(talent_bank.experiences[0]) == false\n ? \"\"\n : talent_bank.experiences[0].occupation.name\n }}\n \n \n {{ checkData(talent_bank.experiences[0]) == false ? \"\" : \"em\" }}\n \n \n {{\n checkData(talent_bank.experiences[0]) == false\n ? \"\"\n : talent_bank.experiences[0].company.name\n }}\n \n
\n
\n \n {{\n checkData(talent_bank.experiences[0]) == false\n ? \"\"\n : format(\n new Date(talent_bank.experiences[0].start_work),\n \"MM/dd/yyyy\"\n )\n }}\n \n \n {{\n checkData(talent_bank.experiences[0]) == false\n ? \"\"\n : verifyCurrentJob(talent_bank.experiences[0])\n }}\n \n \n {{\n checkData(talent_bank.experiences[0]) == false\n ? \"\"\n : verifyCurrentJob(talent_bank.experiences[0])\n }}\n \n \n {{\n checkData(talent_bank.experiences[0]) == false\n ? \"\"\n : \"(\" + showExperienceTiming(talent_bank.experiences[0]) + \")\"\n }}\n \n
\n
\n
Habilidades técnicas: {{talent_bank.skills_names}}
\n
Educação: {{talent_bank.study_areas_names}}
\n
\n
\n \n \n {{ nullOrVoid(talent_bank.city_name) }}\n {{ nullOrVoid(talent_bank.state_name) }}\n \n
\n\n
1\"\n >\n
\n
\n
\n \n
\n
VER {{ showMoreInfo ? 'MENOS' : 'MAIS'}} \n
\n
\n\n
\n
\n HISTÓRICO PROFISSIONAL \n
\n
\n
0\">\n
\n \n {{ experience.occupation.name }}\n \n em \n {{\n experience.company.name\n }} \n
\n
\n \n {{ format(new Date(experience.start_work), \"MM/dd/yyyy\") }}\n \n até \n \n {{ verifyCurrentJob(experience) }}\n \n \n {{ \"(\" + showExperienceTiming(experience) + \")\" }}\n \n
\n
\n
\n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./ItemPreview.vue?vue&type=template&id=19dbec23&\"\nimport script from \"./ItemPreview.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemPreview.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table\"},[_c('thead',{staticClass:\"bg-dark-purple\"},[_c('tr',[_c('td'),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Nome\",\"entity\":\"Candidates\",\"field\":\"candidate_name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Email\",\"entity\":\"Candidates\",\"field\":\"candidate_email\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Salário\",\"entity\":\"Candidates\",\"field\":\"remuneration\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Portfólio\",\"entity\":\"Candidates\",\"field\":\"personal_portfolio\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Site Pessoal\",\"entity\":\"Candidates\",\"field\":\"personal_site\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Linkedin\",\"entity\":\"Candidates\",\"field\":\"linkedin_url\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Celular\",\"entity\":\"Candidates\",\"field\":\"mobile_phone\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Cidade\",\"entity\":\"Candidates\",\"field\":\"city\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Estado\",\"entity\":\"Candidates\",\"field\":\"state\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Data criação\",\"entity\":\"Candidates\",\"field\":\"created_at\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Atualização\",\"entity\":\"Candidates\",\"field\":\"updated_at\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Idade\",\"entity\":\"Candidates\",\"field\":\"date_birth\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Gênero\",\"entity\":\"Candidates\",\"field\":\"gender\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Cidade Natal\",\"entity\":\"Candidates\",\"field\":\"hometown\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Etnia\",\"entity\":\"Candidates\",\"field\":\"ethnicity\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_c('Header',{attrs:{\"name\":\"Orientação Sexual\",\"entity\":\"Candidates\",\"field\":\"sexual_orientation\",\"width\":\"300px\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"PCD\",\"entity\":\"Candidates\",\"field\":\"pcd_description\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('Header',{attrs:{\"name\":\"Currículo\",\"entity\":\"Candidates\",\"field\":\"curriculum_text\"}})],1)])]),_vm._v(\" \"),_c('tbody',[_vm._l((_vm.talent_banks),function(talent_bank){return _c('tr',{key:talent_bank.id},[_c('td',{staticClass:\"center\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidates_selected),expression:\"candidates_selected\"}],attrs:{\"type\":\"checkbox\",\"name\":\"selectCandidate\"},domProps:{\"value\":_vm.checkboxValue(talent_bank),\"checked\":Array.isArray(_vm.candidates_selected)?_vm._i(_vm.candidates_selected,_vm.checkboxValue(talent_bank))>-1:(_vm.candidates_selected)},on:{\"change\":function($event){var $$a=_vm.candidates_selected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.checkboxValue(talent_bank),$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.candidates_selected=$$a.concat([$$v]))}else{$$i>-1&&(_vm.candidates_selected=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.candidates_selected=$$c}}}})]),_vm._v(\" \"),_c('td',{},[_c('inertia-link',{attrs:{\"href\":`${talent_bank.id}/candidate/`}},[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(talent_bank.candidate_name))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"color-grey\"},[_vm._v(\"\\n \"+_vm._s(talent_bank.candidate_email)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[(talent_bank.remuneration)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(talent_bank.remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n }))+\"\\n \")]):_c('span',[_vm._v(\" NÃO INFORMADO \")])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[(talent_bank.portifolio != '')?_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${talent_bank.portifolio}`}},[_c('i',{staticClass:\"fas f20 color-dark-purple fa-external-link-alt\"})]):_vm._e(),_vm._v(\" \"),(talent_bank.portifolio == '')?_c('span',[_c('i',{staticClass:\"fas f20 color-grey fa-external-link-alt\"})]):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[(talent_bank.personal_site != '')?_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${talent_bank.personal_site}`}},[_c('i',{staticClass:\"fas f20 color-dark-purple fa-external-link-alt\"})]):_vm._e(),_vm._v(\" \"),(talent_bank.personal_site == '')?_c('span',[_c('i',{staticClass:\"fas f20 color-grey fa-external-link-alt\"})]):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[(talent_bank.linkedin_url != null)?_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${talent_bank.linkedin_url}`}},[_c('i',{staticClass:\"fas f20 color-dark-purple fa-external-link-alt\"})]):_vm._e(),_vm._v(\" \"),(talent_bank.linkedin_url == null)?_c('span',[_c('i',{staticClass:\"fas f20 color-grey fa-external-link-alt\"})]):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(_vm._s(talent_bank.mobile_phone))]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(_vm._s(talent_bank.exterior_city || talent_bank.city_name)+\" \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(_vm._s(talent_bank.state_name))]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"date\")(new Date(talent_bank.created_at),\"dd/M/yyyy hh:mm\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"date\")(new Date(talent_bank.updated_at),\"dd/M/yyyy hh:mm\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm.formatDistanceStrict(\n new Date(talent_bank.date_birth),\n new Date(),\n {\n locale: _vm.ptBR,\n addSuffix: false,\n }\n ))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm.genders[talent_bank.gender]\n ? _vm.genders[talent_bank.gender]\n : 'Não definido')+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(talent_bank.hometown_attributes ? \n `${talent_bank.hometown_attributes.name}/${talent_bank.hometown_state_attributes.name}`:\n `Não definido`)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm.getEthnicity(talent_bank.ethnicity) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm.getSexualOrientation(talent_bank.sexual_orientation) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(talent_bank.is_pcd ? talent_bank.pcd_description : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{staticClass:\"pt-4 pointer color-dark-purple\",attrs:{\"href\":`${talent_bank.id}/candidate/`}},[_c('i',{staticClass:\"fas f25 fa-file-alt\"})])],1)])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndexInTable.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IndexInTable.vue?vue&type=script&lang=js&\"","\n \n \n\n","import { render, staticRenderFns } from \"./IndexInTable.vue?vue&type=template&id=5e171d73&\"\nimport script from \"./IndexInTable.vue?vue&type=script&lang=js&\"\nexport * from \"./IndexInTable.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (!_vm.loading)?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',[_vm._v(\"Qual vaga será avaliada?\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"selectedEl\":_vm.job,\"searchURL\":\"/recruiters/jobs_search\",\"responseDataName\":\"jobs\",\"clearOption\":true,\"whenSelected\":_vm.JobSelected}})],1)]),_vm._v(\" \"),(_vm.job && _vm.job.id)?_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',[_vm._v(\"Qual processo será avaliado?\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"selectedEl\":_vm.selective_process,\"searchURL\":`/recruiters/jobs/${_vm.job.id}/kanban.json`,\"responseDataName\":\"selective_processes\",\"clearOption\":true,\"whenSelected\":_vm.SelectiveProcessSelected}})],1)]):_vm._e()]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobEvaluation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JobEvaluation.vue?vue&type=script&lang=js&\"","\n \n
\n
\n Qual vaga será avaliada? \n \n
\n
\n
\n
\n Qual processo será avaliado? \n \n
\n
\n
\n \n\n","import { render, staticRenderFns } from \"./JobEvaluation.vue?vue&type=template&id=4b4df2da&\"\nimport script from \"./JobEvaluation.vue?vue&type=script&lang=js&\"\nexport * from \"./JobEvaluation.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('draggable',_vm._b({attrs:{\"list\":_vm.questions,\"disabled\":!_vm.UD_permissions,\"ghost-class\":\"ghost\"},on:{\"change\":_vm.changeColumn}},'draggable',_vm.dragOptions,false),[_vm._l((_vm.questions),function(question,index){return _c('div',{key:index,staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"position-relative\"},[(_vm.UD_permissions)?_c('div',{staticClass:\"close radius-0\",staticStyle:{\"right\":\"0px\"},on:{\"click\":function($event){return _vm.deleteQuestion(index)}}},[_c('i',{staticClass:\"fa fa-times f10\",staticStyle:{\"margin-bottom\":\"7px\"}})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"formJov\"},[(_vm.UD_permissions)?_c('div',{staticClass:\"pt-3\",staticStyle:{\"text-align\":\"left\"}},[_c('label',{staticClass:\"label-bold\"},[_vm._v(\"Pergunta por:\")]),_vm._v(\" \"),_c('ul',{staticClass:\"nav nav-tabs\"},_vm._l((_vm.questions[index].tabs),function(tab){return _c('li',{key:tab.name,staticClass:\"nav-item\"},[_c('button',{staticClass:\"pointer btn py-2 px-5 radius-0\",class:tab.active ? 'btn-primary' : 'btn-light bg-white',on:{\"click\":function($event){return _vm.showTab(tab, index)}}},[_vm._v(\"\\n \"+_vm._s(tab.name)+\"\\n \")])])}),0)]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-body p-0 mt-2\"},[(question.tabs[0].active)?_c('div',{staticClass:\"tab-pane\",class:{\n active: question.tabs[0].active,\n show: question.tabs[0].active,\n fade: !question.tabs[0].active,\n },attrs:{\"id\":question.tabs[0].name,\"aria-labelledby\":`${question.tabs[0].name}-tab`}},[_c('label',[_vm._v(\"TÍTULO DA PERGUNTA\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"config\":_vm.configCkeditor,\"readOnly\":!_vm.UD_permissions,\"placeholder\":\"ADICIONE O TÍTULO DA PERGUNTA\"},on:{\"input\":function($event){return _vm.updateQuestions()}},model:{value:(_vm.questions[index].title),callback:function ($$v) {_vm.$set(_vm.questions[index], \"title\", $$v)},expression:\"questions[index].title\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].details),expression:\"questions[index].details\"}],staticClass:\"mt-3 form-control\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"type\":\"text\",\"placeholder\":\"ADICIONE DETALHES (OPCIONAL)\"},domProps:{\"value\":(_vm.questions[index].details)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.$set(_vm.questions[index], \"details\", $event.target.value)},function($event){return _vm.updateQuestions()}]}})],1):_vm._e(),_vm._v(\" \"),(question.tabs[1].active)?_c('div',{staticClass:\"tab-pane\",class:{\n active: question.tabs[1].active,\n show: question.tabs[1].active,\n fade: !question.tabs[1].active,\n },attrs:{\"id\":question.tabs[1].name,\"aria-labelledby\":`${question.tabs[1].name}-tab`}},[(\n question.tabs[1].options.record_now == false &&\n question.tabs[1].options.upload_video == false\n )?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',[_vm._v(\"TÍTULO DA PERGUNTA\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"readOnly\":!_vm.UD_permissions,\"config\":_vm.configCkeditor,\"placeholder\":\"ADICIONE O TÍTULO DA PERGUNTA\"},on:{\"input\":function($event){return _vm.updateQuestions()}},model:{value:(_vm.questions[index].title),callback:function ($$v) {_vm.$set(_vm.questions[index], \"title\", $$v)},expression:\"questions[index].title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"mb-2 col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"hide\",attrs:{\"id\":`canvas${index}`}}),_vm._v(\" \"),_c('div',{staticClass:\"videoPlayCurrent\"},[_c('video',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.questions[index].video),expression:\"questions[index].video\"}],staticClass:\"mt-2\",attrs:{\"width\":\"100%\",\"id\":`videoQuestion${index}`,\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.questions[index].video}})])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1)],1),_vm._v(\" \"),(_vm.UD_permissions)?_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn full f13 radius-0 p-2 btn-primary btn-rezise-ask\",on:{\"click\":function($event){return _vm.canVideo(index)}}},[_vm._v(\"\\n GRAVAR\\n \")])]):_vm._e(),_vm._v(\" \"),(_vm.UD_permissions)?_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"btn f13 p-2 radius-0 full btn-success btn-default btn-file btn-rezise-ask\",attrs:{\"disabled\":question.title == ''}},[_vm._v(\"\\n UPLOAD\\n \"),_c('input',{ref:`file${index}`,refInFor:true,attrs:{\"type\":\"file\",\"accept\":\"video/*\",\"id\":`capture${index}`,\"capture\":\"camcorder\"},on:{\"click\":function($event){return _vm.canUpload(index, $event)},\"change\":function($event){return _vm.sendMovieUpload(index)}}})])]):_vm._e(),_vm._v(\" \"),(_vm.UD_permissions)?_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn f13 p-2 radius-0 btn-info full btn-rezise-ask\",attrs:{\"disabled\":_vm.load},on:{\"click\":function($event){return _vm.showSelectVideo(index)}}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"GALERIA\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]):_vm._e()]):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.questions[index].tabs[1].options.record_now == true)?_c('div',{staticClass:\"videoPlayCurrent\"},[(_vm.record)?_c('VideoJSRecordGallery',{attrs:{\"name\":_vm.questions[index].title,\"question\":_vm.questions[index],\"video\":_vm.video_current,\"gallery\":_vm.gallery,\"item\":_vm.has_gallery_item(index),\"index\":index}}):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"mt-3 btn-primary btn-sm\",on:{\"click\":function($event){return _vm.backMenuVideo(index)}}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"VOLTAR\\n \")],1)],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('label',[_vm._v(\"Deseja que a resposta do candidato(a) seja por:\\n \")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].response_type),expression:\"questions[index].response_type\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"response_type\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateQuestions(index)}]}},_vm._l((_vm.response_types),function(response){return _c('option',{key:response.value,domProps:{\"value\":response.type}},[_vm._v(\"\\n \"+_vm._s(response.value)+\"\\n \")])}),0)])]),_vm._v(\" \"),(_vm.questions[index].response_type == 2)?_c('div',{staticClass:\"row mt-3\"},[_c('MultipleChoices',{attrs:{\"index\":index},model:{value:(_vm.questions[index].choices),callback:function ($$v) {_vm.$set(_vm.questions[index], \"choices\", $$v)},expression:\"questions[index].choices\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.questions[index].response_type == 3)?_c('div',{staticClass:\"row mt-3\"},[_c('YesOrNo',{attrs:{\"index\":index},model:{value:(_vm.questions[index].choices),callback:function ($$v) {_vm.$set(_vm.questions[index], \"choices\", $$v)},expression:\"questions[index].choices\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.questions[index].response_type == 4)?_c('div',{staticClass:\"mt-3\"},[_c('Monetary',{attrs:{\"index\":index},model:{value:(_vm.questions[index].choices),callback:function ($$v) {_vm.$set(_vm.questions[index], \"choices\", $$v)},expression:\"questions[index].choices\"}})],1):_vm._e(),_vm._v(\" \"),(_vm.questions[index].response_type == 0)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"NÚMERO DE TENTATIVAS\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].number_retakers),expression:\"questions[index].number_retakers\"}],staticClass:\"form-control\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"readonly\":!_vm.UD_permissions},on:{\"input\":function($event){return _vm.updateQuestions()},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"number_retakers\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"TEMPO LIMITE\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].time),expression:\"questions[index].time\"}],staticClass:\"form-control\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"readonly\":!_vm.UD_permissions},on:{\"input\":function($event){return _vm.updateQuestions()},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.questions[index], \"time\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"30\"}},[_vm._v(\"30 SEGUNDOS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"60\"}},[_vm._v(\"60 SEGUNDOS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"90\"}},[_vm._v(\"90 SEGUNDOS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"120\"}},[_vm._v(\"120 segundos\")])])])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.questions[index].description),expression:\"questions[index].description\"}],staticClass:\"form-control mt-3 mb-3 border-radius-pattern\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"disabled\":!_vm.UD_permissions,\"placeholder\":\"DESCRIÇÃO DA PERGUNTA (USO APENAS PARA O RECRUTADOR(A))\",\"rows\":\"3\"},domProps:{\"value\":(_vm.questions[index].description)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.$set(_vm.questions[index], \"description\", $event.target.value)},function($event){return _vm.updateQuestions()}]}})])])])])])])}),_vm._v(\" \"),(_vm.UD_permissions)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"pr-0 pl-0 col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn mt-3 mb-5 full bg-primary2\",attrs:{\"type\":\"buttom\"},on:{\"click\":_vm.addQuestion}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"\\n ADICIONAR A PRÓXIMA PERGUNTA\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"})]):_vm._e()],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n \n
\n \n \n ADICIONAR A PRÓXIMA PERGUNTA\n \n
\n
\n
\n \n
\n \n ","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=37ce1fa7&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var Clipboard = require('clipboard/dist/clipboard.min.js'); // FIXME: workaround for browserify\n\nvar VueClipboardConfig = {\n autoSetContainer: false,\n appendToBody: true // This fixes IE, see #50\n};\n\nvar VueClipboard = {\n install: function (Vue) {\n var globalPrototype = Vue.version.slice(0, 2) === '3.' ? Vue.config.globalProperties : Vue.prototype;\n globalPrototype.$clipboardConfig = VueClipboardConfig;\n globalPrototype.$copyText = function (text, container) {\n return new Promise(function (resolve, reject) {\n var fakeElement = document.createElement('button');\n var clipboard = new Clipboard(fakeElement, {\n text: function () {\n return text;\n },\n action: function () {\n return 'copy';\n },\n container: typeof container === 'object' ? container : document.body\n });\n clipboard.on('success', function (e) {\n clipboard.destroy();\n resolve(e);\n });\n clipboard.on('error', function (e) {\n clipboard.destroy();\n reject(e);\n });\n if (VueClipboardConfig.appendToBody) document.body.appendChild(fakeElement);\n fakeElement.click();\n if (VueClipboardConfig.appendToBody) document.body.removeChild(fakeElement);\n });\n };\n Vue.directive('clipboard', {\n bind: function (el, binding, vnode) {\n if (binding.arg === 'success') {\n el._vClipboard_success = binding.value;\n } else if (binding.arg === 'error') {\n el._vClipboard_error = binding.value;\n } else {\n var clipboard = new Clipboard(el, {\n text: function () {\n return binding.value;\n },\n action: function () {\n return binding.arg === 'cut' ? 'cut' : 'copy';\n },\n container: VueClipboardConfig.autoSetContainer ? el : undefined\n });\n clipboard.on('success', function (e) {\n var callback = el._vClipboard_success;\n callback && callback(e);\n });\n clipboard.on('error', function (e) {\n var callback = el._vClipboard_error;\n callback && callback(e);\n });\n el._vClipboard = clipboard;\n }\n },\n update: function (el, binding) {\n if (binding.arg === 'success') {\n el._vClipboard_success = binding.value;\n } else if (binding.arg === 'error') {\n el._vClipboard_error = binding.value;\n } else {\n el._vClipboard.text = function () {\n return binding.value;\n };\n el._vClipboard.action = function () {\n return binding.arg === 'cut' ? 'cut' : 'copy';\n };\n }\n },\n unbind: function (el, binding) {\n // FIXME: investigate why $element._vClipboard was missing\n if (!el._vClipboard) return;\n if (binding.arg === 'success') {\n delete el._vClipboard_success;\n } else if (binding.arg === 'error') {\n delete el._vClipboard_error;\n } else {\n el._vClipboard.destroy();\n delete el._vClipboard;\n }\n }\n });\n },\n config: VueClipboardConfig\n};\nif (typeof exports === 'object') {\n module.exports = VueClipboard;\n} else if (typeof define === 'function' && define.amd) {\n define([], function () {\n return VueClipboard;\n });\n}","module.exports = function (e) {\n var r = {};\n function t(n) {\n if (r[n]) return r[n].exports;\n var a = r[n] = {\n i: n,\n l: !1,\n exports: {}\n };\n return e[n].call(a.exports, a, a.exports, t), a.l = !0, a.exports;\n }\n return t.m = e, t.c = r, t.d = function (e, r, n) {\n t.o(e, r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get: n\n });\n }, t.r = function (e) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(e, \"__esModule\", {\n value: !0\n });\n }, t.t = function (e, r) {\n if (1 & r && (e = t(e)), 8 & r) return e;\n if (4 & r && \"object\" == typeof e && e && e.__esModule) return e;\n var n = Object.create(null);\n if (t.r(n), Object.defineProperty(n, \"default\", {\n enumerable: !0,\n value: e\n }), 2 & r && \"string\" != typeof e) for (var a in e) t.d(n, a, function (r) {\n return e[r];\n }.bind(null, a));\n return n;\n }, t.n = function (e) {\n var r = e && e.__esModule ? function () {\n return e.default;\n } : function () {\n return e;\n };\n return t.d(r, \"a\", r), r;\n }, t.o = function (e, r) {\n return Object.prototype.hasOwnProperty.call(e, r);\n }, t.p = \"\", t(t.s = 0);\n}([function (e, r, t) {\n \"use strict\";\n\n t.r(r), t.d(r, \"validateHTMLColorName\", function () {\n return l;\n }), t.d(r, \"validateHTMLColorSpecialName\", function () {\n return i;\n }), t.d(r, \"validateHTMLColorHex\", function () {\n return u;\n }), t.d(r, \"validateHTMLColorRgb\", function () {\n return g;\n }), t.d(r, \"validateHTMLColorHsl\", function () {\n return y;\n }), t.d(r, \"validateHTMLColorHwb\", function () {\n return L;\n }), t.d(r, \"validateHTMLColorLab\", function () {\n return S;\n }), t.d(r, \"validateHTMLColorLch\", function () {\n return m;\n }), t.d(r, \"validateHTMLColor\", function () {\n return G;\n });\n const n = e => e && \"string\" == typeof e,\n a = [\"AliceBlue\", \"AntiqueWhite\", \"Aqua\", \"Aquamarine\", \"Azure\", \"Beige\", \"Bisque\", \"Black\", \"BlanchedAlmond\", \"Blue\", \"BlueViolet\", \"Brown\", \"BurlyWood\", \"CadetBlue\", \"Chartreuse\", \"Chocolate\", \"Coral\", \"CornflowerBlue\", \"Cornsilk\", \"Crimson\", \"Cyan\", \"DarkBlue\", \"DarkCyan\", \"DarkGoldenrod\", \"DarkGray\", \"DarkGrey\", \"DarkGreen\", \"DarkKhaki\", \"DarkMagenta\", \"DarkOliveGreen\", \"DarkOrange\", \"DarkOrchid\", \"DarkRed\", \"DarkSalmon\", \"DarkSeaGreen\", \"DarkSlateBlue\", \"DarkSlateGray\", \"DarkSlateGrey\", \"DarkTurquoise\", \"DarkViolet\", \"DeepPink\", \"DeepSkyBlue\", \"DimGray\", \"DimGrey\", \"DodgerBlue\", \"FireBrick\", \"FloralWhite\", \"ForestGreen\", \"Fuchsia\", \"Gainsboro\", \"GhostWhite\", \"Gold\", \"Goldenrod\", \"Gray\", \"Grey\", \"Green\", \"GreenYellow\", \"HoneyDew\", \"HotPink\", \"IndianRed\", \"Indigo\", \"Ivory\", \"Khaki\", \"Lavender\", \"LavenderBlush\", \"LawnGreen\", \"LemonChiffon\", \"LightBlue\", \"LightCoral\", \"LightCyan\", \"LightGoldenrodYellow\", \"LightGray\", \"LightGrey\", \"LightGreen\", \"LightPink\", \"LightSalmon\", \"LightSalmon\", \"LightSeaGreen\", \"LightSkyBlue\", \"LightSlateGray\", \"LightSlateGrey\", \"LightSteelBlue\", \"LightYellow\", \"Lime\", \"LimeGreen\", \"Linen\", \"Magenta\", \"Maroon\", \"MediumAquamarine\", \"MediumBlue\", \"MediumOrchid\", \"MediumPurple\", \"MediumSeaGreen\", \"MediumSlateBlue\", \"MediumSlateBlue\", \"MediumSpringGreen\", \"MediumTurquoise\", \"MediumVioletRed\", \"MidnightBlue\", \"MintCream\", \"MistyRose\", \"Moccasin\", \"NavajoWhite\", \"Navy\", \"OldLace\", \"Olive\", \"OliveDrab\", \"Orange\", \"OrangeRed\", \"Orchid\", \"PaleGoldenrod\", \"PaleGreen\", \"PaleTurquoise\", \"PaleVioletRed\", \"PapayaWhip\", \"PeachPuff\", \"Peru\", \"Pink\", \"Plum\", \"PowderBlue\", \"Purple\", \"RebeccaPurple\", \"Red\", \"RosyBrown\", \"RoyalBlue\", \"SaddleBrown\", \"Salmon\", \"SandyBrown\", \"SeaGreen\", \"SeaShell\", \"Sienna\", \"Silver\", \"SkyBlue\", \"SlateBlue\", \"SlateGray\", \"SlateGrey\", \"Snow\", \"SpringGreen\", \"SteelBlue\", \"Tan\", \"Teal\", \"Thistle\", \"Tomato\", \"Turquoise\", \"Violet\", \"Wheat\", \"White\", \"WhiteSmoke\", \"Yellow\", \"YellowGreen\"],\n o = [\"currentColor\", \"inherit\", \"transparent\"],\n l = e => {\n let r = !1;\n return n(e) && a.map(t => (e.toLowerCase() === t.toLowerCase() && (r = !0), null)), r;\n },\n i = e => {\n let r = !1;\n return n(e) && o.map(t => (e.toLowerCase() === t.toLowerCase() && (r = !0), null)), r;\n },\n u = e => {\n if (n(e)) {\n const r = /^#([\\da-f]{3}){1,2}$|^#([\\da-f]{4}){1,2}$/i;\n return e && r.test(e);\n }\n return !1;\n },\n d = \"(([\\\\d]{0,5})((\\\\.([\\\\d]{1,5}))?))\",\n s = `(${d}%)`,\n c = \"(([0-9]|[1-9][0-9]|100)%)\",\n f = `(${c}|(0?((\\\\.([\\\\d]{1,5}))?))|1)`,\n h = `([\\\\s]{0,5})\\\\)?)(([\\\\s]{0,5})(\\\\/?)([\\\\s]{1,5})${`(((${c}))|(0?((\\\\.([\\\\d]{1,5}))?))|1))?`}([\\\\s]{0,5})\\\\)`,\n $ = \"(-?(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9])((\\\\.([\\\\d]{1,5}))?)|360)(deg)?)\",\n g = e => {\n if (n(e)) {\n const r = \"([\\\\s]{0,5})([\\\\d]{1,5})%?([\\\\s]{0,5}),?\",\n t = \"((([\\\\s]{0,5}),?([\\\\s]{0,5}))|(([\\\\s]{1,5})))\",\n n = new RegExp(`^(rgb)a?\\\\(${`${r}${t}`}${`${r}${t}`}${`${r}${t}`}(${\"(\\\\/?([\\\\s]{0,5})(0?\\\\.?([\\\\d]{1,5})%?([\\\\s]{0,5}))?|1|0)\"})?\\\\)$`);\n return e && n.test(e);\n }\n return !1;\n },\n y = e => {\n if (n(e)) {\n const r = new RegExp(`^(hsl)a?\\\\((([\\\\s]{0,5})(${$}|${\"(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-9][0-9]|400)grad)\"}|${\"((([0-5])?\\\\.([\\\\d]{1,5})|6\\\\.([0-9]|1[0-9]|2[0-8])|[0-6])rad)\"}|${\"((0?((\\\\.([\\\\d]{1,5}))?)|1)turn)\"})((([\\\\s]{0,5}),([\\\\s]{0,5}))|(([\\\\s]{1,5}))))(([\\\\s]{0,5})(0|${c})((([\\\\s]{0,5}),([\\\\s]{0,5}))|(([\\\\s]{1,5}))))(([\\\\s]{0,5})(0|${c})([\\\\s]{0,5})\\\\)?)(([\\\\s]{0,5})(\\\\/?|,?)([\\\\s]{0,5})(((${c}))|(0?((\\\\.([\\\\d]{1,5}))?))|1))?\\\\)$`);\n return e && r.test(e);\n }\n return !1;\n },\n L = e => {\n if (n(e)) {\n const r = new RegExp(`^(hwb\\\\(([\\\\s]{0,5})${$}([\\\\s]{1,5}))((0|${c})([\\\\s]{1,5}))((0|${c})${h}$`);\n return e && r.test(e);\n }\n return !1;\n },\n S = e => {\n if (n(e)) {\n const r = \"(-?(([0-9]|[1-9][0-9]|1[0-5][0-9])((\\\\.([\\\\d]{1,5}))?)?|160))\",\n t = new RegExp(`^(lab\\\\(([\\\\s]{0,5})${s}([\\\\s]{1,5})${r}([\\\\s]{1,5})${r}${h}$`);\n return e && t.test(e);\n }\n return !1;\n },\n m = e => {\n if (n(e)) {\n const r = \"((([0-9]|[1-9][0-9])?((\\\\.([\\\\d]{1,5}))?)|100)(%)?)\",\n t = \"\" + d,\n n = `((${$})|(0|${f})|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9])((\\\\.([\\\\d]{1,5}))?)|360))`,\n a = `(\\\\/([\\\\s]{0,5})${f})`,\n o = new RegExp(`^lch\\\\(${`(([\\\\s]{0,5})${r}([\\\\s]{1,5})${t}([\\\\s]{1,5})${n}([\\\\s]{0,5})(${a})?)`}\\\\)$`);\n return e && o.test(e);\n }\n return !1;\n },\n G = e => !!(e && u(e) || g(e) || y(e) || L(e) || S(e) || m(e));\n r.default = e => !!(e && u(e) || l(e) || i(e) || g(e) || y(e) || L(e) || S(e) || m(e));\n}]);","var e = require(\"@inertiajs/inertia\"),\n t = {\n functional: !0,\n props: {\n data: {\n type: Object,\n default: function () {\n return {};\n }\n },\n href: {\n type: String,\n required: !0\n },\n method: {\n type: String,\n default: \"get\"\n },\n replace: {\n type: Boolean,\n default: !1\n },\n preserveScroll: {\n type: Boolean,\n default: !1\n },\n preserveState: {\n type: Boolean,\n default: !1\n },\n only: {\n type: Array,\n default: function () {\n return [];\n }\n }\n },\n render: function (t, r) {\n var n = r.props,\n o = r.data,\n i = r.children;\n return t(\"a\", Object.assign({}, o, {\n attrs: Object.assign({}, o.attrs, {\n href: n.href\n }),\n on: Object.assign({}, o.on || {}, {\n click: function (t) {\n o.on && o.on.click && o.on.click(t), e.shouldIntercept(t) && (t.preventDefault(), e.Inertia.visit(n.href, {\n data: n.data,\n method: n.method,\n replace: n.replace,\n preserveScroll: n.preserveScroll,\n preserveState: n.preserveState,\n only: n.only\n }));\n }\n })\n }), i);\n }\n },\n r = {\n created: function () {\n var t = this;\n if (this.$options.remember) {\n Array.isArray(this.$options.remember) && (this.$options.remember = {\n data: this.$options.remember\n }), \"string\" == typeof this.$options.remember && (this.$options.remember = {\n data: [this.$options.remember]\n }), \"string\" == typeof this.$options.remember.data && (this.$options.remember = {\n data: [this.$options.remember.data]\n });\n var r = this.$options.remember.key instanceof Function ? this.$options.remember.key() : this.$options.remember.key,\n n = e.Inertia.restore(r);\n this.$options.remember.data.forEach(function (o) {\n void 0 !== n && void 0 !== n[o] && (t[o] = n[o]), t.$watch(o, function () {\n e.Inertia.remember(t.$options.remember.data.reduce(function (e, r) {\n var n;\n return Object.assign({}, e, ((n = {})[r] = t[r], n));\n }, {}), r);\n }, {\n immediate: !0,\n deep: !0\n });\n });\n }\n }\n },\n n = {},\n o = {\n name: \"Inertia\",\n props: {\n initialPage: {\n type: Object,\n required: !0\n },\n resolveComponent: {\n type: Function,\n required: !0\n },\n transformProps: {\n type: Function,\n default: function (e) {\n return e;\n }\n }\n },\n data: function () {\n return {\n component: null,\n props: {},\n key: null\n };\n },\n created: function () {\n var t = this;\n n = this, e.Inertia.init({\n initialPage: this.initialPage,\n resolveComponent: this.resolveComponent,\n updatePage: function (e, r, n) {\n var o = n.preserveState;\n t.component = e, t.props = t.transformProps(r), t.key = o ? t.key : Date.now();\n }\n });\n },\n render: function (e) {\n if (this.component) {\n var t = e(this.component, {\n key: this.key,\n props: this.props\n });\n return this.component.layout ? \"function\" == typeof this.component.layout ? this.component.layout(e, t) : e(this.component.layout, [t]) : t;\n }\n },\n install: function (o) {\n Object.defineProperty(o.prototype, \"$inertia\", {\n get: function () {\n return e.Inertia;\n }\n }), Object.defineProperty(o.prototype, \"$page\", {\n get: function () {\n return n.props;\n }\n }), o.mixin(r), o.component(\"InertiaLink\", t);\n }\n };\nexports.InertiaApp = o, exports.InertiaLink = t;","/**\n * html2pdf.js v0.9.3\n * Copyright (c) 2021 Erik Koopmans\n * Released under the MIT License.\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jspdf'), require('html2canvas')) : typeof define === 'function' && define.amd ? define(['jspdf', 'html2canvas'], factory) : global.html2pdf = factory(global.jsPDF, global.html2canvas);\n})(this, function (jsPDF, html2canvas) {\n 'use strict';\n\n jsPDF = jsPDF && jsPDF.hasOwnProperty('default') ? jsPDF['default'] : jsPDF;\n html2canvas = html2canvas && html2canvas.hasOwnProperty('default') ? html2canvas['default'] : html2canvas;\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n var _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n\n // Determine the type of a variable/object.\n var objType = function objType(obj) {\n var type = typeof obj === 'undefined' ? 'undefined' : _typeof(obj);\n if (type === 'undefined') return 'undefined';else if (type === 'string' || obj instanceof String) return 'string';else if (type === 'number' || obj instanceof Number) return 'number';else if (type === 'function' || obj instanceof Function) return 'function';else if (!!obj && obj.constructor === Array) return 'array';else if (obj && obj.nodeType === 1) return 'element';else if (type === 'object') return 'object';else return 'unknown';\n };\n\n // Create an HTML element with optional className, innerHTML, and style.\n var createElement = function createElement(tagName, opt) {\n var el = document.createElement(tagName);\n if (opt.className) el.className = opt.className;\n if (opt.innerHTML) {\n el.innerHTML = opt.innerHTML;\n var scripts = el.getElementsByTagName('script');\n for (var i = scripts.length; i-- > 0; null) {\n scripts[i].parentNode.removeChild(scripts[i]);\n }\n }\n for (var key in opt.style) {\n el.style[key] = opt.style[key];\n }\n return el;\n };\n\n // Deep-clone a node and preserve contents/properties.\n var cloneNode = function cloneNode(node, javascriptEnabled) {\n // Recursively clone the node.\n var clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false);\n for (var child = node.firstChild; child; child = child.nextSibling) {\n if (javascriptEnabled === true || child.nodeType !== 1 || child.nodeName !== 'SCRIPT') {\n clone.appendChild(cloneNode(child, javascriptEnabled));\n }\n }\n if (node.nodeType === 1) {\n // Preserve contents/properties of special nodes.\n if (node.nodeName === 'CANVAS') {\n clone.width = node.width;\n clone.height = node.height;\n clone.getContext('2d').drawImage(node, 0, 0);\n } else if (node.nodeName === 'TEXTAREA' || node.nodeName === 'SELECT') {\n clone.value = node.value;\n }\n\n // Preserve the node's scroll position when it loads.\n clone.addEventListener('load', function () {\n clone.scrollTop = node.scrollTop;\n clone.scrollLeft = node.scrollLeft;\n }, true);\n }\n\n // Return the cloned node.\n return clone;\n };\n\n // Convert units from px using the conversion value 'k' from jsPDF.\n var unitConvert = function unitConvert(obj, k) {\n if (objType(obj) === 'number') {\n return obj * 72 / 96 / k;\n } else {\n var newObj = {};\n for (var key in obj) {\n newObj[key] = obj[key] * 72 / 96 / k;\n }\n return newObj;\n }\n };\n\n // Convert units to px using the conversion value 'k' from jsPDF.\n var toPx = function toPx(val, k) {\n return Math.floor(val * k / 72 * 96);\n };\n var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n function commonjsRequire() {\n throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n }\n function createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n }\n var es6Promise = createCommonjsModule(function (module, exports) {\n /*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version v4.2.5+7f2b526d\n */\n\n (function (global, factory) {\n module.exports = factory();\n })(commonjsGlobal, function () {\n function objectOrFunction(x) {\n var type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n }\n function isFunction(x) {\n return typeof x === 'function';\n }\n var _isArray = void 0;\n if (Array.isArray) {\n _isArray = Array.isArray;\n } else {\n _isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n }\n var isArray = _isArray;\n var len = 0;\n var vertxNext = void 0;\n var customSchedulerFn = void 0;\n var asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n };\n function setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n }\n function setAsap(asapFn) {\n asap = asapFn;\n }\n var browserWindow = typeof window !== 'undefined' ? window : undefined;\n var browserGlobal = browserWindow || {};\n var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n // test for web worker but not in IE10\n var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n // node\n function useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n }\n\n // vertx\n function useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function () {\n vertxNext(flush);\n };\n }\n return useSetTimeout();\n }\n function useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return function () {\n node.data = iterations = ++iterations % 2;\n };\n }\n\n // web worker\n function useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function () {\n return channel.port2.postMessage(0);\n };\n }\n function useSetTimeout() {\n // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n }\n var queue = new Array(1000);\n function flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n callback(arg);\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n len = 0;\n }\n function attemptVertx() {\n try {\n var vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n }\n var scheduleFlush = void 0;\n // Decide what async method to use to triggering processing of queued callbacks:\n if (isNode) {\n scheduleFlush = useNextTick();\n } else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n } else if (isWorker) {\n scheduleFlush = useMessageChannel();\n } else if (browserWindow === undefined && typeof commonjsRequire === 'function') {\n scheduleFlush = attemptVertx();\n } else {\n scheduleFlush = useSetTimeout();\n }\n function then(onFulfillment, onRejection) {\n var parent = this;\n var child = new this.constructor(noop);\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n var _state = parent._state;\n if (_state) {\n var callback = arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n return child;\n }\n\n /**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n \n ```javascript\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n \n promise.then(function(value){\n // value === 1\n });\n ```\n \n Instead of writing the above, your code now simply becomes the following:\n \n ```javascript\n let promise = Promise.resolve(1);\n \n promise.then(function(value){\n // value === 1\n });\n ```\n \n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n */\n function resolve$1(object) {\n /*jshint validthis:true */\n var Constructor = this;\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n var promise = new Constructor(noop);\n resolve(promise, object);\n return promise;\n }\n var PROMISE_ID = Math.random().toString(36).substring(2);\n function noop() {}\n var PENDING = void 0;\n var FULFILLED = 1;\n var REJECTED = 2;\n var TRY_CATCH_ERROR = {\n error: null\n };\n function selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n }\n function cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n function getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n TRY_CATCH_ERROR.error = error;\n return TRY_CATCH_ERROR;\n }\n }\n function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n try {\n then$$1.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n }\n function handleForeignThenable(promise, thenable, then$$1) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then$$1, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n resolve(promise, value);\n } else {\n fulfill(promise, value);\n }\n }, function (reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n if (!sealed && error) {\n sealed = true;\n reject(promise, error);\n }\n }, promise);\n }\n function handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return resolve(promise, value);\n }, function (reason) {\n return reject(promise, reason);\n });\n }\n }\n function handleMaybeThenable(promise, maybeThenable, then$$1) {\n if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$1 === TRY_CATCH_ERROR) {\n reject(promise, TRY_CATCH_ERROR.error);\n TRY_CATCH_ERROR.error = null;\n } else if (then$$1 === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$1)) {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n }\n function resolve(promise, value) {\n if (promise === value) {\n reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n handleMaybeThenable(promise, value, getThen(value));\n } else {\n fulfill(promise, value);\n }\n }\n function publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n publish(promise);\n }\n function fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._result = value;\n promise._state = FULFILLED;\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n }\n function reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n asap(publishRejection, promise);\n }\n function subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n parent._onerror = null;\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n }\n function publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n if (subscribers.length === 0) {\n return;\n }\n var child = void 0,\n callback = void 0,\n detail = promise._result;\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n promise._subscribers.length = 0;\n }\n function tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch (e) {\n TRY_CATCH_ERROR.error = e;\n return TRY_CATCH_ERROR;\n }\n }\n function invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = void 0,\n error = void 0,\n succeeded = void 0,\n failed = void 0;\n if (hasCallback) {\n value = tryCatch(callback, detail);\n if (value === TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value.error = null;\n } else {\n succeeded = true;\n }\n if (promise === value) {\n reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n }\n function initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n resolve(promise, value);\n }, function rejectPromise(reason) {\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n }\n var id = 0;\n function nextId() {\n return id++;\n }\n function makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n }\n function validationError() {\n return new Error('Array Methods must be provided an Array');\n }\n var Enumerator = function () {\n function Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n if (isArray(input)) {\n this.length = input.length;\n this._remaining = input.length;\n this._result = new Array(this.length);\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate(input);\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n reject(this.promise, validationError());\n }\n }\n Enumerator.prototype._enumerate = function _enumerate(input) {\n for (var i = 0; this._state === PENDING && i < input.length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {\n var c = this._instanceConstructor;\n var resolve$$1 = c.resolve;\n if (resolve$$1 === resolve$1) {\n var _then = getThen(entry);\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise$1) {\n var promise = new c(noop);\n handleMaybeThenable(promise, entry, _then);\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$1) {\n return resolve$$1(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$1(entry), i);\n }\n };\n Enumerator.prototype._settledAt = function _settledAt(state, i, value) {\n var promise = this.promise;\n if (promise._state === PENDING) {\n this._remaining--;\n if (state === REJECTED) {\n reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n };\n Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {\n var enumerator = this;\n subscribe(promise, undefined, function (value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function (reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n };\n return Enumerator;\n }();\n\n /**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n \n Example:\n \n ```javascript\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n \n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n \n If any of the `promises` given to `all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n \n Example:\n \n ```javascript\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n \n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n \n @method all\n @static\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n */\n function all(entries) {\n return new Enumerator(this, entries).promise;\n }\n\n /**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n \n Example:\n \n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n \n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n \n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n \n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n \n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n \n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n \n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n \n An example real-world use case is implementing timeouts:\n \n ```javascript\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n \n @method race\n @static\n @param {Array} promises array of promises to observe\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n */\n function race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n }\n\n /**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n \n ```javascript\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n \n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n \n Instead of writing the above, your code now simply becomes the following:\n \n ```javascript\n let promise = Promise.reject(new Error('WHOOPS'));\n \n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n \n @method reject\n @static\n @param {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n */\n function reject$1(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n reject(promise, reason);\n return promise;\n }\n function needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n function needsNew() {\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 /**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n \n Terminology\n -----------\n \n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n \n A promise can be in one of three states: pending, fulfilled, or rejected.\n \n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n \n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n \n \n Basic Usage:\n ------------\n \n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n \n // on failure\n reject(reason);\n });\n \n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n \n Advanced Usage:\n ---------------\n \n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n \n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n \n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n \n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n \n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n \n Unlike callbacks, promises are great composable primitives.\n \n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n \n return values;\n });\n ```\n \n @class Promise\n @param {Function} resolver\n Useful for tooling.\n @constructor\n */\n\n var Promise$1 = function () {\n function Promise(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n }\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n Chaining\n --------\n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n Assimilation\n ------------\n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n If the assimliated promise rejects, then the downstream promise will also reject.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n Simple Example\n --------------\n Synchronous Example\n ```javascript\n let result;\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n Advanced Example\n --------------\n Synchronous Example\n ```javascript\n let author, books;\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n function foundBooks(books) {\n }\n function failure(reason) {\n }\n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n\n Promise.prototype.catch = function _catch(onRejection) {\n return this.then(null, onRejection);\n };\n\n /**\n `finally` will be invoked regardless of the promise's fate just as native\n try/catch/finally behaves\n \n Synchronous example:\n \n ```js\n findAuthor() {\n if (Math.random() > 0.5) {\n throw new Error();\n }\n return new Author();\n }\n \n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuther();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n \n Asynchronous example:\n \n ```js\n findAuthor().catch(function(reason){\n return findOtherAuther();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n \n @method finally\n @param {Function} callback\n @return {Promise}\n */\n\n Promise.prototype.finally = function _finally(callback) {\n var promise = this;\n var constructor = promise.constructor;\n if (isFunction(callback)) {\n return promise.then(function (value) {\n return constructor.resolve(callback()).then(function () {\n return value;\n });\n }, function (reason) {\n return constructor.resolve(callback()).then(function () {\n throw reason;\n });\n });\n }\n return promise.then(callback, callback);\n };\n return Promise;\n }();\n Promise$1.prototype.then = then;\n Promise$1.all = all;\n Promise$1.race = race;\n Promise$1.resolve = resolve$1;\n Promise$1.reject = reject$1;\n Promise$1._setScheduler = setScheduler;\n Promise$1._setAsap = setAsap;\n Promise$1._asap = asap;\n\n /*global self*/\n function polyfill() {\n var local = void 0;\n if (typeof commonjsGlobal !== 'undefined') {\n local = commonjsGlobal;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n var P = local.Promise;\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n local.Promise = Promise$1;\n }\n\n // Strange compat..\n Promise$1.polyfill = polyfill;\n Promise$1.Promise = Promise$1;\n return Promise$1;\n });\n });\n var Promise$1 = es6Promise.Promise;\n\n /* ----- CONSTRUCTOR ----- */\n\n var Worker = function Worker(opt) {\n // Create the root parent for the proto chain, and the starting Worker.\n var root = _extends(Worker.convert(Promise$1.resolve()), JSON.parse(JSON.stringify(Worker.template)));\n var self = Worker.convert(Promise$1.resolve(), root);\n\n // Set progress, optional settings, and return.\n self = self.setProgress(1, Worker, 1, [Worker]);\n self = self.set(opt);\n return self;\n };\n\n // Boilerplate for subclassing Promise.\n Worker.prototype = Object.create(Promise$1.prototype);\n Worker.prototype.constructor = Worker;\n\n // Converts/casts promises into Workers.\n Worker.convert = function convert(promise, inherit) {\n // Uses prototypal inheritance to receive changes made to ancestors' properties.\n promise.__proto__ = inherit || Worker.prototype;\n return promise;\n };\n Worker.template = {\n prop: {\n src: null,\n container: null,\n overlay: null,\n canvas: null,\n img: null,\n pdf: null,\n pageSize: null\n },\n progress: {\n val: 0,\n state: null,\n n: 0,\n stack: []\n },\n opt: {\n filename: 'file.pdf',\n margin: [0, 0, 0, 0],\n image: {\n type: 'jpeg',\n quality: 0.95\n },\n enableLinks: true,\n html2canvas: {},\n jsPDF: {}\n }\n };\n\n /* ----- FROM / TO ----- */\n\n Worker.prototype.from = function from(src, type) {\n function getType(src) {\n switch (objType(src)) {\n case 'string':\n return 'string';\n case 'element':\n return src.nodeName.toLowerCase === 'canvas' ? 'canvas' : 'element';\n default:\n return 'unknown';\n }\n }\n return this.then(function from_main() {\n type = type || getType(src);\n switch (type) {\n case 'string':\n return this.set({\n src: createElement('div', {\n innerHTML: src\n })\n });\n case 'element':\n return this.set({\n src: src\n });\n case 'canvas':\n return this.set({\n canvas: src\n });\n case 'img':\n return this.set({\n img: src\n });\n default:\n return this.error('Unknown source type.');\n }\n });\n };\n Worker.prototype.to = function to(target) {\n // Route the 'to' request to the appropriate method.\n switch (target) {\n case 'container':\n return this.toContainer();\n case 'canvas':\n return this.toCanvas();\n case 'img':\n return this.toImg();\n case 'pdf':\n return this.toPdf();\n default:\n return this.error('Invalid target.');\n }\n };\n Worker.prototype.toContainer = function toContainer() {\n // Set up function prerequisites.\n var prereqs = [function checkSrc() {\n return this.prop.src || this.error('Cannot duplicate - no source HTML.');\n }, function checkPageSize() {\n return this.prop.pageSize || this.setPageSize();\n }];\n return this.thenList(prereqs).then(function toContainer_main() {\n // Define the CSS styles for the container and its overlay parent.\n var overlayCSS = {\n position: 'fixed',\n overflow: 'hidden',\n zIndex: 1000,\n left: 0,\n right: 0,\n bottom: 0,\n top: 0,\n backgroundColor: 'rgba(0,0,0,0.8)'\n };\n var containerCSS = {\n position: 'absolute',\n width: this.prop.pageSize.inner.width + this.prop.pageSize.unit,\n left: 0,\n right: 0,\n top: 0,\n height: 'auto',\n margin: 'auto',\n backgroundColor: 'white'\n };\n\n // Set the overlay to hidden (could be changed in the future to provide a print preview).\n overlayCSS.opacity = 0;\n\n // Create and attach the elements.\n var source = cloneNode(this.prop.src, this.opt.html2canvas.javascriptEnabled);\n this.prop.overlay = createElement('div', {\n className: 'html2pdf__overlay',\n style: overlayCSS\n });\n this.prop.container = createElement('div', {\n className: 'html2pdf__container',\n style: containerCSS\n });\n this.prop.container.appendChild(source);\n this.prop.overlay.appendChild(this.prop.container);\n document.body.appendChild(this.prop.overlay);\n });\n };\n Worker.prototype.toCanvas = function toCanvas() {\n // Set up function prerequisites.\n var prereqs = [function checkContainer() {\n return document.body.contains(this.prop.container) || this.toContainer();\n }];\n\n // Fulfill prereqs then create the canvas.\n return this.thenList(prereqs).then(function toCanvas_main() {\n // Handle old-fashioned 'onrendered' argument.\n var options = _extends({}, this.opt.html2canvas);\n delete options.onrendered;\n return html2canvas(this.prop.container, options);\n }).then(function toCanvas_post(canvas) {\n // Handle old-fashioned 'onrendered' argument.\n var onRendered = this.opt.html2canvas.onrendered || function () {};\n onRendered(canvas);\n this.prop.canvas = canvas;\n document.body.removeChild(this.prop.overlay);\n });\n };\n Worker.prototype.toImg = function toImg() {\n // Set up function prerequisites.\n var prereqs = [function checkCanvas() {\n return this.prop.canvas || this.toCanvas();\n }];\n\n // Fulfill prereqs then create the image.\n return this.thenList(prereqs).then(function toImg_main() {\n var imgData = this.prop.canvas.toDataURL('image/' + this.opt.image.type, this.opt.image.quality);\n this.prop.img = document.createElement('img');\n this.prop.img.src = imgData;\n });\n };\n Worker.prototype.toPdf = function toPdf() {\n // Set up function prerequisites.\n var prereqs = [function checkCanvas() {\n return this.prop.canvas || this.toCanvas();\n }];\n\n // Fulfill prereqs then create the image.\n return this.thenList(prereqs).then(function toPdf_main() {\n // Create local copies of frequently used properties.\n var canvas = this.prop.canvas;\n var opt = this.opt;\n\n // Calculate the number of pages.\n var pxFullHeight = canvas.height;\n var pxPageHeight = Math.floor(canvas.width * this.prop.pageSize.inner.ratio);\n var nPages = Math.ceil(pxFullHeight / pxPageHeight);\n\n // Define pageHeight separately so it can be trimmed on the final page.\n var pageHeight = this.prop.pageSize.inner.height;\n\n // Create a one-page canvas to split up the full image.\n var pageCanvas = document.createElement('canvas');\n var pageCtx = pageCanvas.getContext('2d');\n pageCanvas.width = canvas.width;\n pageCanvas.height = pxPageHeight;\n\n // Initialize the PDF.\n this.prop.pdf = this.prop.pdf || new jsPDF(opt.jsPDF);\n for (var page = 0; page < nPages; page++) {\n // Trim the final page to reduce file size.\n if (page === nPages - 1 && pxFullHeight % pxPageHeight !== 0) {\n pageCanvas.height = pxFullHeight % pxPageHeight;\n pageHeight = pageCanvas.height * this.prop.pageSize.inner.width / pageCanvas.width;\n }\n\n // Display the page.\n var w = pageCanvas.width;\n var h = pageCanvas.height;\n pageCtx.fillStyle = 'white';\n pageCtx.fillRect(0, 0, w, h);\n pageCtx.drawImage(canvas, 0, page * pxPageHeight, w, h, 0, 0, w, h);\n\n // Add the page to the PDF.\n if (page) this.prop.pdf.addPage();\n var imgData = pageCanvas.toDataURL('image/' + opt.image.type, opt.image.quality);\n this.prop.pdf.addImage(imgData, opt.image.type, opt.margin[1], opt.margin[0], this.prop.pageSize.inner.width, pageHeight);\n }\n });\n };\n\n /* ----- OUTPUT / SAVE ----- */\n\n Worker.prototype.output = function output(type, options, src) {\n // Redirect requests to the correct function (outputPdf / outputImg).\n src = src || 'pdf';\n if (src.toLowerCase() === 'img' || src.toLowerCase() === 'image') {\n return this.outputImg(type, options);\n } else {\n return this.outputPdf(type, options);\n }\n };\n Worker.prototype.outputPdf = function outputPdf(type, options) {\n // Set up function prerequisites.\n var prereqs = [function checkPdf() {\n return this.prop.pdf || this.toPdf();\n }];\n\n // Fulfill prereqs then perform the appropriate output.\n return this.thenList(prereqs).then(function outputPdf_main() {\n /* Currently implemented output types:\n * https://rawgit.com/MrRio/jsPDF/master/docs/jspdf.js.html#line992\n * save(options), arraybuffer, blob, bloburi/bloburl,\n * datauristring/dataurlstring, dataurlnewwindow, datauri/dataurl\n */\n return this.prop.pdf.output(type, options);\n });\n };\n Worker.prototype.outputImg = function outputImg(type, options) {\n // Set up function prerequisites.\n var prereqs = [function checkImg() {\n return this.prop.img || this.toImg();\n }];\n\n // Fulfill prereqs then perform the appropriate output.\n return this.thenList(prereqs).then(function outputImg_main() {\n switch (type) {\n case undefined:\n case 'img':\n return this.prop.img;\n case 'datauristring':\n case 'dataurlstring':\n return this.prop.img.src;\n case 'datauri':\n case 'dataurl':\n return document.location.href = this.prop.img.src;\n default:\n throw 'Image output type \"' + type + '\" is not supported.';\n }\n });\n };\n Worker.prototype.save = function save(filename) {\n // Set up function prerequisites.\n var prereqs = [function checkPdf() {\n return this.prop.pdf || this.toPdf();\n }];\n\n // Fulfill prereqs, update the filename (if provided), and save the PDF.\n return this.thenList(prereqs).set(filename ? {\n filename: filename\n } : null).then(function save_main() {\n this.prop.pdf.save(this.opt.filename);\n });\n };\n\n /* ----- SET / GET ----- */\n\n Worker.prototype.set = function set$$1(opt) {\n // TODO: Implement ordered pairs?\n\n // Silently ignore invalid or empty input.\n if (objType(opt) !== 'object') {\n return this;\n }\n\n // Build an array of setter functions to queue.\n var fns = Object.keys(opt || {}).map(function (key) {\n if (key in Worker.template.prop) {\n // Set pre-defined properties.\n return function set_prop() {\n this.prop[key] = opt[key];\n };\n } else {\n switch (key) {\n case 'margin':\n return this.setMargin.bind(this, opt.margin);\n case 'jsPDF':\n return function set_jsPDF() {\n this.opt.jsPDF = opt.jsPDF;\n return this.setPageSize();\n };\n case 'pageSize':\n return this.setPageSize.bind(this, opt.pageSize);\n default:\n // Set any other properties in opt.\n return function set_opt() {\n this.opt[key] = opt[key];\n };\n }\n }\n }, this);\n\n // Set properties within the promise chain.\n return this.then(function set_main() {\n return this.thenList(fns);\n });\n };\n Worker.prototype.get = function get$$1(key, cbk) {\n return this.then(function get_main() {\n // Fetch the requested property, either as a predefined prop or in opt.\n var val = key in Worker.template.prop ? this.prop[key] : this.opt[key];\n return cbk ? cbk(val) : val;\n });\n };\n Worker.prototype.setMargin = function setMargin(margin) {\n return this.then(function setMargin_main() {\n // Parse the margin property: [top, left, bottom, right].\n switch (objType(margin)) {\n case 'number':\n margin = [margin, margin, margin, margin];\n case 'array':\n if (margin.length === 2) {\n margin = [margin[0], margin[1], margin[0], margin[1]];\n }\n if (margin.length === 4) {\n break;\n }\n default:\n return this.error('Invalid margin array.');\n }\n\n // Set the margin property, then update pageSize.\n this.opt.margin = margin;\n }).then(this.setPageSize);\n };\n Worker.prototype.setPageSize = function setPageSize(pageSize) {\n return this.then(function setPageSize_main() {\n // Retrieve page-size based on jsPDF settings, if not explicitly provided.\n pageSize = pageSize || jsPDF.getPageSize(this.opt.jsPDF);\n\n // Add 'inner' field if not present.\n if (!pageSize.hasOwnProperty('inner')) {\n pageSize.inner = {\n width: pageSize.width - this.opt.margin[1] - this.opt.margin[3],\n height: pageSize.height - this.opt.margin[0] - this.opt.margin[2]\n };\n pageSize.inner.px = {\n width: toPx(pageSize.inner.width, pageSize.k),\n height: toPx(pageSize.inner.height, pageSize.k)\n };\n pageSize.inner.ratio = pageSize.inner.height / pageSize.inner.width;\n }\n\n // Attach pageSize to this.\n this.prop.pageSize = pageSize;\n });\n };\n Worker.prototype.setProgress = function setProgress(val, state, n, stack) {\n // Immediately update all progress values.\n if (val != null) this.progress.val = val;\n if (state != null) this.progress.state = state;\n if (n != null) this.progress.n = n;\n if (stack != null) this.progress.stack = stack;\n this.progress.ratio = this.progress.val / this.progress.state;\n\n // Return this for command chaining.\n return this;\n };\n Worker.prototype.updateProgress = function updateProgress(val, state, n, stack) {\n // Immediately update all progress values, using setProgress.\n return this.setProgress(val ? this.progress.val + val : null, state ? state : null, n ? this.progress.n + n : null, stack ? this.progress.stack.concat(stack) : null);\n };\n\n /* ----- PROMISE MAPPING ----- */\n\n Worker.prototype.then = function then(onFulfilled, onRejected) {\n // Wrap `this` for encapsulation.\n var self = this;\n return this.thenCore(onFulfilled, onRejected, function then_main(onFulfilled, onRejected) {\n // Update progress while queuing, calling, and resolving `then`.\n self.updateProgress(null, null, 1, [onFulfilled]);\n return Promise$1.prototype.then.call(this, function then_pre(val) {\n self.updateProgress(null, onFulfilled);\n return val;\n }).then(onFulfilled, onRejected).then(function then_post(val) {\n self.updateProgress(1);\n return val;\n });\n });\n };\n Worker.prototype.thenCore = function thenCore(onFulfilled, onRejected, thenBase) {\n // Handle optional thenBase parameter.\n thenBase = thenBase || Promise$1.prototype.then;\n\n // Wrap `this` for encapsulation and bind it to the promise handlers.\n var self = this;\n if (onFulfilled) {\n onFulfilled = onFulfilled.bind(self);\n }\n if (onRejected) {\n onRejected = onRejected.bind(self);\n }\n\n // Cast self into a Promise to avoid polyfills recursively defining `then`.\n var isNative = Promise$1.toString().indexOf('[native code]') !== -1 && Promise$1.name === 'Promise';\n var selfPromise = isNative ? self : Worker.convert(_extends({}, self), Promise$1.prototype);\n\n // Return the promise, after casting it into a Worker and preserving props.\n var returnVal = thenBase.call(selfPromise, onFulfilled, onRejected);\n return Worker.convert(returnVal, self.__proto__);\n };\n Worker.prototype.thenExternal = function thenExternal(onFulfilled, onRejected) {\n // Call `then` and return a standard promise (exits the Worker chain).\n return Promise$1.prototype.then.call(this, onFulfilled, onRejected);\n };\n Worker.prototype.thenList = function thenList(fns) {\n // Queue a series of promise 'factories' into the promise chain.\n var self = this;\n fns.forEach(function thenList_forEach(fn) {\n self = self.thenCore(fn);\n });\n return self;\n };\n Worker.prototype['catch'] = function (onRejected) {\n // Bind `this` to the promise handler, call `catch`, and return a Worker.\n if (onRejected) {\n onRejected = onRejected.bind(this);\n }\n var returnVal = Promise$1.prototype['catch'].call(this, onRejected);\n return Worker.convert(returnVal, this);\n };\n Worker.prototype.catchExternal = function catchExternal(onRejected) {\n // Call `catch` and return a standard promise (exits the Worker chain).\n return Promise$1.prototype['catch'].call(this, onRejected);\n };\n Worker.prototype.error = function error(msg) {\n // Throw the error in the Promise chain.\n return this.then(function error_main() {\n throw new Error(msg);\n });\n };\n\n /* ----- ALIASES ----- */\n\n Worker.prototype.using = Worker.prototype.set;\n Worker.prototype.saveAs = Worker.prototype.save;\n Worker.prototype.export = Worker.prototype.output;\n Worker.prototype.run = Worker.prototype.then;\n\n // Import dependencies.\n // Get dimensions of a PDF page, as determined by jsPDF.\n jsPDF.getPageSize = function (orientation, unit, format) {\n // Decode options object\n if ((typeof orientation === 'undefined' ? 'undefined' : _typeof(orientation)) === 'object') {\n var options = orientation;\n orientation = options.orientation;\n unit = options.unit || unit;\n format = options.format || format;\n }\n\n // Default options\n unit = unit || 'mm';\n format = format || 'a4';\n orientation = ('' + (orientation || 'P')).toLowerCase();\n var format_as_string = ('' + format).toLowerCase();\n\n // Size in pt of various paper formats\n var pageFormats = {\n 'a0': [2383.94, 3370.39],\n 'a1': [1683.78, 2383.94],\n 'a2': [1190.55, 1683.78],\n 'a3': [841.89, 1190.55],\n 'a4': [595.28, 841.89],\n 'a5': [419.53, 595.28],\n 'a6': [297.64, 419.53],\n 'a7': [209.76, 297.64],\n 'a8': [147.40, 209.76],\n 'a9': [104.88, 147.40],\n 'a10': [73.70, 104.88],\n 'b0': [2834.65, 4008.19],\n 'b1': [2004.09, 2834.65],\n 'b2': [1417.32, 2004.09],\n 'b3': [1000.63, 1417.32],\n 'b4': [708.66, 1000.63],\n 'b5': [498.90, 708.66],\n 'b6': [354.33, 498.90],\n 'b7': [249.45, 354.33],\n 'b8': [175.75, 249.45],\n 'b9': [124.72, 175.75],\n 'b10': [87.87, 124.72],\n 'c0': [2599.37, 3676.54],\n 'c1': [1836.85, 2599.37],\n 'c2': [1298.27, 1836.85],\n 'c3': [918.43, 1298.27],\n 'c4': [649.13, 918.43],\n 'c5': [459.21, 649.13],\n 'c6': [323.15, 459.21],\n 'c7': [229.61, 323.15],\n 'c8': [161.57, 229.61],\n 'c9': [113.39, 161.57],\n 'c10': [79.37, 113.39],\n 'dl': [311.81, 623.62],\n 'letter': [612, 792],\n 'government-letter': [576, 756],\n 'legal': [612, 1008],\n 'junior-legal': [576, 360],\n 'ledger': [1224, 792],\n 'tabloid': [792, 1224],\n 'credit-card': [153, 243]\n };\n\n // Unit conversion\n switch (unit) {\n case 'pt':\n var k = 1;\n break;\n case 'mm':\n var k = 72 / 25.4;\n break;\n case 'cm':\n var k = 72 / 2.54;\n break;\n case 'in':\n var k = 72;\n break;\n case 'px':\n var k = 72 / 96;\n break;\n case 'pc':\n var k = 12;\n break;\n case 'em':\n var k = 12;\n break;\n case 'ex':\n var k = 6;\n break;\n default:\n throw 'Invalid unit: ' + unit;\n }\n\n // Dimensions are stored as user units and converted to points on output\n if (pageFormats.hasOwnProperty(format_as_string)) {\n var pageHeight = pageFormats[format_as_string][1] / k;\n var pageWidth = pageFormats[format_as_string][0] / k;\n } else {\n try {\n var pageHeight = format[1];\n var pageWidth = format[0];\n } catch (err) {\n throw new Error('Invalid format: ' + format);\n }\n }\n\n // Handle page orientation\n if (orientation === 'p' || orientation === 'portrait') {\n orientation = 'p';\n if (pageWidth > pageHeight) {\n var tmp = pageWidth;\n pageWidth = pageHeight;\n pageHeight = tmp;\n }\n } else if (orientation === 'l' || orientation === 'landscape') {\n orientation = 'l';\n if (pageHeight > pageWidth) {\n var tmp = pageWidth;\n pageWidth = pageHeight;\n pageHeight = tmp;\n }\n } else {\n throw 'Invalid orientation: ' + orientation;\n }\n\n // Return information (k is the unit conversion ratio from pts)\n var info = {\n 'width': pageWidth,\n 'height': pageHeight,\n 'unit': unit,\n 'k': k\n };\n return info;\n };\n\n /* Pagebreak plugin:\n \n Adds page-break functionality to the html2pdf library. Page-breaks can be\n enabled by CSS styles, set on individual elements using selectors, or\n avoided from breaking inside all elements.\n \n Options on the `opt.pagebreak` object:\n \n mode: String or array of strings: 'avoid-all', 'css', and/or 'legacy'\n Default: ['css', 'legacy']\n \n before: String or array of CSS selectors for which to add page-breaks\n before each element. Can be a specific element with an ID\n ('#myID'), all elements of a type (e.g. 'img'), all of a class\n ('.myClass'), or even '*' to match every element.\n \n after: Like 'before', but adds a page-break immediately after the element.\n \n avoid: Like 'before', but avoids page-breaks on these elements. You can\n enable this feature on every element using the 'avoid-all' mode.\n */\n\n // Refs to original functions.\n var orig = {\n toContainer: Worker.prototype.toContainer\n };\n\n // Add pagebreak default options to the Worker template.\n Worker.template.opt.pagebreak = {\n mode: ['css', 'legacy'],\n before: [],\n after: [],\n avoid: []\n };\n Worker.prototype.toContainer = function toContainer() {\n return orig.toContainer.call(this).then(function toContainer_pagebreak() {\n // Setup root element and inner page height.\n var root = this.prop.container;\n var pxPageHeight = this.prop.pageSize.inner.px.height;\n\n // Check all requested modes.\n var modeSrc = [].concat(this.opt.pagebreak.mode);\n var mode = {\n avoidAll: modeSrc.indexOf('avoid-all') !== -1,\n css: modeSrc.indexOf('css') !== -1,\n legacy: modeSrc.indexOf('legacy') !== -1\n };\n\n // Get arrays of all explicitly requested elements.\n var select = {};\n var self = this;\n ['before', 'after', 'avoid'].forEach(function (key) {\n var all = mode.avoidAll && key === 'avoid';\n select[key] = all ? [] : [].concat(self.opt.pagebreak[key] || []);\n if (select[key].length > 0) {\n select[key] = Array.prototype.slice.call(root.querySelectorAll(select[key].join(', ')));\n }\n });\n\n // Get all legacy page-break elements.\n var legacyEls = root.querySelectorAll('.html2pdf__page-break');\n legacyEls = Array.prototype.slice.call(legacyEls);\n\n // Loop through all elements.\n var els = root.querySelectorAll('*');\n Array.prototype.forEach.call(els, function pagebreak_loop(el) {\n // Setup pagebreak rules based on legacy and avoidAll modes.\n var rules = {\n before: false,\n after: mode.legacy && legacyEls.indexOf(el) !== -1,\n avoid: mode.avoidAll\n };\n\n // Add rules for css mode.\n if (mode.css) {\n // TODO: Check if this is valid with iFrames.\n var style = window.getComputedStyle(el);\n // TODO: Handle 'left' and 'right' correctly.\n // TODO: Add support for 'avoid' on breakBefore/After.\n var breakOpt = ['always', 'page', 'left', 'right'];\n var avoidOpt = ['avoid', 'avoid-page'];\n rules = {\n before: rules.before || breakOpt.indexOf(style.breakBefore || style.pageBreakBefore) !== -1,\n after: rules.after || breakOpt.indexOf(style.breakAfter || style.pageBreakAfter) !== -1,\n avoid: rules.avoid || avoidOpt.indexOf(style.breakInside || style.pageBreakInside) !== -1\n };\n }\n\n // Add rules for explicit requests.\n Object.keys(rules).forEach(function (key) {\n rules[key] = rules[key] || select[key].indexOf(el) !== -1;\n });\n\n // Get element position on the screen.\n // TODO: Subtract the top of the container from clientRect.top/bottom?\n var clientRect = el.getBoundingClientRect();\n\n // Avoid: Check if a break happens mid-element.\n if (rules.avoid && !rules.before) {\n var startPage = Math.floor(clientRect.top / pxPageHeight);\n var endPage = Math.floor(clientRect.bottom / pxPageHeight);\n var nPages = Math.abs(clientRect.bottom - clientRect.top) / pxPageHeight;\n\n // Turn on rules.before if the el is broken and is at most one page long.\n if (endPage !== startPage && nPages <= 1) {\n rules.before = true;\n }\n }\n\n // Before: Create a padding div to push the element to the next page.\n if (rules.before) {\n var pad = createElement('div', {\n style: {\n display: 'block',\n height: pxPageHeight - clientRect.top % pxPageHeight + 'px'\n }\n });\n el.parentNode.insertBefore(pad, el);\n }\n\n // After: Create a padding div to fill the remaining page.\n if (rules.after) {\n var pad = createElement('div', {\n style: {\n display: 'block',\n height: pxPageHeight - clientRect.bottom % pxPageHeight + 'px'\n }\n });\n el.parentNode.insertBefore(pad, el.nextSibling);\n }\n });\n });\n };\n\n // Add hyperlink functionality to the PDF creation.\n\n // Main link array, and refs to original functions.\n var linkInfo = [];\n var orig$1 = {\n toContainer: Worker.prototype.toContainer,\n toPdf: Worker.prototype.toPdf\n };\n Worker.prototype.toContainer = function toContainer() {\n return orig$1.toContainer.call(this).then(function toContainer_hyperlink() {\n // Retrieve hyperlink info if the option is enabled.\n if (this.opt.enableLinks) {\n // Find all anchor tags and get the container's bounds for reference.\n var container = this.prop.container;\n var links = container.querySelectorAll('a');\n var containerRect = unitConvert(container.getBoundingClientRect(), this.prop.pageSize.k);\n linkInfo = [];\n\n // Loop through each anchor tag.\n Array.prototype.forEach.call(links, function (link) {\n // Treat each client rect as a separate link (for text-wrapping).\n var clientRects = link.getClientRects();\n for (var i = 0; i < clientRects.length; i++) {\n var clientRect = unitConvert(clientRects[i], this.prop.pageSize.k);\n clientRect.left -= containerRect.left;\n clientRect.top -= containerRect.top;\n var page = Math.floor(clientRect.top / this.prop.pageSize.inner.height) + 1;\n var top = this.opt.margin[0] + clientRect.top % this.prop.pageSize.inner.height;\n var left = this.opt.margin[1] + clientRect.left;\n linkInfo.push({\n page: page,\n top: top,\n left: left,\n clientRect: clientRect,\n link: link\n });\n }\n }, this);\n }\n });\n };\n Worker.prototype.toPdf = function toPdf() {\n return orig$1.toPdf.call(this).then(function toPdf_hyperlink() {\n // Add hyperlinks if the option is enabled.\n if (this.opt.enableLinks) {\n // Attach each anchor tag based on info from toContainer().\n linkInfo.forEach(function (l) {\n this.prop.pdf.setPage(l.page);\n this.prop.pdf.link(l.left, l.top, l.clientRect.width, l.clientRect.height, {\n url: l.link.href\n });\n }, this);\n\n // Reset the active page of the PDF to the final page.\n var nPages = this.prop.pdf.internal.getNumberOfPages();\n this.prop.pdf.setPage(nPages);\n }\n });\n };\n\n /**\n * Generate a PDF from an HTML element or string using html2canvas and jsPDF.\n *\n * @param {Element|string} source The source element or HTML string.\n * @param {Object=} opt An object of optional settings: 'margin', 'filename',\n * 'image' ('type' and 'quality'), and 'html2canvas' / 'jspdf', which are\n * sent as settings to their corresponding functions.\n */\n var html2pdf = function html2pdf(src, opt) {\n // Create a new worker with the given options.\n var worker = new html2pdf.Worker(opt);\n if (src) {\n // If src is specified, perform the traditional 'simple' operation.\n return worker.from(src).save();\n } else {\n // Otherwise, return the worker for new Promise-based operation.\n return worker;\n }\n };\n html2pdf.Worker = Worker;\n return html2pdf;\n});","\"use strict\";\n\nvar window = require(\"global/window\");\nvar _extends = require(\"@babel/runtime/helpers/extends\");\nvar isFunction = require('is-function');\ncreateXHR.httpHandler = require('./http-handler.js');\n/**\n * @license\n * slighly modified parse-headers 2.0.2 \n * Copyright (c) 2014 David Björklund\n * Available under the MIT license\n * \n */\n\nvar parseHeaders = function parseHeaders(headers) {\n var result = {};\n if (!headers) {\n return result;\n }\n headers.trim().split('\\n').forEach(function (row) {\n var index = row.indexOf(':');\n var key = row.slice(0, index).trim().toLowerCase();\n var value = row.slice(index + 1).trim();\n if (typeof result[key] === 'undefined') {\n result[key] = value;\n } else if (Array.isArray(result[key])) {\n result[key].push(value);\n } else {\n result[key] = [result[key], value];\n }\n });\n return result;\n};\nmodule.exports = createXHR; // Allow use of default import syntax in TypeScript\n\nmodule.exports.default = createXHR;\ncreateXHR.XMLHttpRequest = window.XMLHttpRequest || noop;\ncreateXHR.XDomainRequest = \"withCredentials\" in new createXHR.XMLHttpRequest() ? createXHR.XMLHttpRequest : window.XDomainRequest;\nforEachArray([\"get\", \"put\", \"post\", \"patch\", \"head\", \"delete\"], function (method) {\n createXHR[method === \"delete\" ? \"del\" : method] = function (uri, options, callback) {\n options = initParams(uri, options, callback);\n options.method = method.toUpperCase();\n return _createXHR(options);\n };\n});\nfunction forEachArray(array, iterator) {\n for (var i = 0; i < array.length; i++) {\n iterator(array[i]);\n }\n}\nfunction isEmpty(obj) {\n for (var i in obj) {\n if (obj.hasOwnProperty(i)) return false;\n }\n return true;\n}\nfunction initParams(uri, options, callback) {\n var params = uri;\n if (isFunction(options)) {\n callback = options;\n if (typeof uri === \"string\") {\n params = {\n uri: uri\n };\n }\n } else {\n params = _extends({}, options, {\n uri: uri\n });\n }\n params.callback = callback;\n return params;\n}\nfunction createXHR(uri, options, callback) {\n options = initParams(uri, options, callback);\n return _createXHR(options);\n}\nfunction _createXHR(options) {\n if (typeof options.callback === \"undefined\") {\n throw new Error(\"callback argument missing\");\n }\n var called = false;\n var callback = function cbOnce(err, response, body) {\n if (!called) {\n called = true;\n options.callback(err, response, body);\n }\n };\n function readystatechange() {\n if (xhr.readyState === 4) {\n setTimeout(loadFunc, 0);\n }\n }\n function getBody() {\n // Chrome with requestType=blob throws errors arround when even testing access to responseText\n var body = undefined;\n if (xhr.response) {\n body = xhr.response;\n } else {\n body = xhr.responseText || getXml(xhr);\n }\n if (isJson) {\n try {\n body = JSON.parse(body);\n } catch (e) {}\n }\n return body;\n }\n function errorFunc(evt) {\n clearTimeout(timeoutTimer);\n if (!(evt instanceof Error)) {\n evt = new Error(\"\" + (evt || \"Unknown XMLHttpRequest Error\"));\n }\n evt.statusCode = 0;\n return callback(evt, failureResponse);\n } // will load the data & process the response in a special response object\n\n function loadFunc() {\n if (aborted) return;\n var status;\n clearTimeout(timeoutTimer);\n if (options.useXDR && xhr.status === undefined) {\n //IE8 CORS GET successful response doesn't have a status field, but body is fine\n status = 200;\n } else {\n status = xhr.status === 1223 ? 204 : xhr.status;\n }\n var response = failureResponse;\n var err = null;\n if (status !== 0) {\n response = {\n body: getBody(),\n statusCode: status,\n method: method,\n headers: {},\n url: uri,\n rawRequest: xhr\n };\n if (xhr.getAllResponseHeaders) {\n //remember xhr can in fact be XDR for CORS in IE\n response.headers = parseHeaders(xhr.getAllResponseHeaders());\n }\n } else {\n err = new Error(\"Internal XMLHttpRequest Error\");\n }\n return callback(err, response, response.body);\n }\n var xhr = options.xhr || null;\n if (!xhr) {\n if (options.cors || options.useXDR) {\n xhr = new createXHR.XDomainRequest();\n } else {\n xhr = new createXHR.XMLHttpRequest();\n }\n }\n var key;\n var aborted;\n var uri = xhr.url = options.uri || options.url;\n var method = xhr.method = options.method || \"GET\";\n var body = options.body || options.data;\n var headers = xhr.headers = options.headers || {};\n var sync = !!options.sync;\n var isJson = false;\n var timeoutTimer;\n var failureResponse = {\n body: undefined,\n headers: {},\n statusCode: 0,\n method: method,\n url: uri,\n rawRequest: xhr\n };\n if (\"json\" in options && options.json !== false) {\n isJson = true;\n headers[\"accept\"] || headers[\"Accept\"] || (headers[\"Accept\"] = \"application/json\"); //Don't override existing accept header declared by user\n\n if (method !== \"GET\" && method !== \"HEAD\") {\n headers[\"content-type\"] || headers[\"Content-Type\"] || (headers[\"Content-Type\"] = \"application/json\"); //Don't override existing accept header declared by user\n\n body = JSON.stringify(options.json === true ? body : options.json);\n }\n }\n xhr.onreadystatechange = readystatechange;\n xhr.onload = loadFunc;\n xhr.onerror = errorFunc; // IE9 must have onprogress be set to a unique function.\n\n xhr.onprogress = function () {// IE must die\n };\n xhr.onabort = function () {\n aborted = true;\n };\n xhr.ontimeout = errorFunc;\n xhr.open(method, uri, !sync, options.username, options.password); //has to be after open\n\n if (!sync) {\n xhr.withCredentials = !!options.withCredentials;\n } // Cannot set timeout with sync request\n // not setting timeout on the xhr object, because of old webkits etc. not handling that correctly\n // both npm's request and jquery 1.x use this kind of timeout, so this is being consistent\n\n if (!sync && options.timeout > 0) {\n timeoutTimer = setTimeout(function () {\n if (aborted) return;\n aborted = true; //IE9 may still call readystatechange\n\n xhr.abort(\"timeout\");\n var e = new Error(\"XMLHttpRequest timeout\");\n e.code = \"ETIMEDOUT\";\n errorFunc(e);\n }, options.timeout);\n }\n if (xhr.setRequestHeader) {\n for (key in headers) {\n if (headers.hasOwnProperty(key)) {\n xhr.setRequestHeader(key, headers[key]);\n }\n }\n } else if (options.headers && !isEmpty(options.headers)) {\n throw new Error(\"Headers cannot be set on an XDomainRequest object\");\n }\n if (\"responseType\" in options) {\n xhr.responseType = options.responseType;\n }\n if (\"beforeSend\" in options && typeof options.beforeSend === \"function\") {\n options.beforeSend(xhr);\n } // Microsoft Edge browser sends \"undefined\" when send is called with undefined value.\n // XMLHttpRequest spec says to pass null as body to indicate no body\n // See https://github.com/naugtur/xhr/issues/100.\n\n xhr.send(body || null);\n return xhr;\n}\nfunction getXml(xhr) {\n // xhr.responseXML will throw Exception \"InvalidStateError\" or \"DOMException\"\n // See https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML.\n try {\n if (xhr.responseType === \"document\") {\n return xhr.responseXML;\n }\n var firefoxBugTakenEffect = xhr.responseXML && xhr.responseXML.documentElement.nodeName === \"parsererror\";\n if (xhr.responseType === \"\" && !firefoxBugTakenEffect) {\n return xhr.responseXML;\n }\n } catch (e) {}\n return null;\n}\nfunction noop() {}","/**\n * Copyright 2013 vtt.js Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Default exports for Node. Export the extended versions of VTTCue and\n// VTTRegion in Node since we likely want the capability to convert back and\n// forth between JSON. If we don't then it's not that big of a deal since we're\n// off browser.\n\nvar window = require('global/window');\nvar vttjs = module.exports = {\n WebVTT: require(\"./vtt.js\"),\n VTTCue: require(\"./vttcue.js\"),\n VTTRegion: require(\"./vttregion.js\")\n};\nwindow.vttjs = vttjs;\nwindow.WebVTT = vttjs.WebVTT;\nvar cueShim = vttjs.VTTCue;\nvar regionShim = vttjs.VTTRegion;\nvar nativeVTTCue = window.VTTCue;\nvar nativeVTTRegion = window.VTTRegion;\nvttjs.shim = function () {\n window.VTTCue = cueShim;\n window.VTTRegion = regionShim;\n};\nvttjs.restore = function () {\n window.VTTCue = nativeVTTCue;\n window.VTTRegion = nativeVTTRegion;\n};\nif (!window.VTTCue) {\n vttjs.shim();\n}","var MPEGURL_REGEX = /^(audio|video|application)\\/(x-|vnd\\.apple\\.)?mpegurl/i;\nvar DASH_REGEX = /^application\\/dash\\+xml/i;\n/**\n * Returns a string that describes the type of source based on a video source object's\n * media type.\n *\n * @see {@link https://dev.w3.org/html5/pf-summary/video.html#dom-source-type|Source Type}\n *\n * @param {string} type\n * Video source object media type\n * @return {('hls'|'dash'|'vhs-json'|null)}\n * VHS source type string\n */\n\nexport var simpleTypeFromSourceType = function simpleTypeFromSourceType(type) {\n if (MPEGURL_REGEX.test(type)) {\n return 'hls';\n }\n if (DASH_REGEX.test(type)) {\n return 'dash';\n } // Denotes the special case of a manifest object passed to http-streaming instead of a\n // source URL.\n //\n // See https://en.wikipedia.org/wiki/Media_type for details on specifying media types.\n //\n // In this case, vnd stands for vendor, video.js for the organization, VHS for this\n // project, and the +json suffix identifies the structure of the media type.\n\n if (type === 'application/vnd.videojs.vhs+json') {\n return 'vhs-json';\n }\n return null;\n};","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};","'use strict';\n\nvar utils = require('./../utils');\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n serializedParams = parts.join('&');\n }\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n return url;\n};","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\nvar defaults = {\n adapter: getDefaultAdapter(),\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) {/* Ignore */}\n }\n return data;\n }],\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n maxContentLength: -1,\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\nmodule.exports = defaults;","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined;\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = ['baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath'];\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys);\n var otherKeys = Object.keys(config2).filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n return config;\n};","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\nCancel.prototype.__CANCEL__ = true;\nmodule.exports = Cancel;","//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var af = moment.defineLocale('af', {\n months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),\n monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),\n weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n meridiemParse: /vm|nm/i,\n isPM: function (input) {\n return /^nm$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'vm' : 'VM';\n } else {\n return isLower ? 'nm' : 'NM';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Vandag om] LT',\n nextDay: '[Môre om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[Gister om] LT',\n lastWeek: '[Laas] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'oor %s',\n past: '%s gelede',\n s: \"'n paar sekondes\",\n ss: '%d sekondes',\n m: \"'n minuut\",\n mm: '%d minute',\n h: \"'n uur\",\n hh: '%d ure',\n d: \"'n dag\",\n dd: '%d dae',\n M: \"'n maand\",\n MM: '%d maande',\n y: \"'n jaar\",\n yy: '%d jaar'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter\n },\n\n week: {\n dow: 1,\n // Maandag is die eerste dag van die week.\n doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n }\n });\n\n return af;\n});","//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '١',\n 2: '٢',\n 3: '٣',\n 4: '٤',\n 5: '٥',\n 6: '٦',\n 7: '٧',\n 8: '٨',\n 9: '٩',\n 0: '٠'\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0'\n },\n pluralForm = function (n) {\n return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n },\n plurals = {\n s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];\n var ar = moment.defineLocale('ar', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y')\n },\n preparse: function (string) {\n return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return ar;\n});","//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Amine Roukh: https://github.com/Amine27\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var pluralForm = function (n) {\n return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n },\n plurals = {\n s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];\n var arDz = moment.defineLocale('ar-dz', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y')\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return arDz;\n});","//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var arKw = moment.defineLocale('ar-kw', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return arKw;\n});","//! moment.js locale configuration\n//! locale : Arabic (Libya) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '1',\n 2: '2',\n 3: '3',\n 4: '4',\n 5: '5',\n 6: '6',\n 7: '7',\n 8: '8',\n 9: '9',\n 0: '0'\n },\n pluralForm = function (n) {\n return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n },\n plurals = {\n s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];\n var arLy = moment.defineLocale('ar-ly', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y')\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return arLy;\n});","//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var arMa = moment.defineLocale('ar-ma', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return arMa;\n});","//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '١',\n 2: '٢',\n 3: '٣',\n 4: '٤',\n 5: '٥',\n 6: '٦',\n 7: '٧',\n 8: '٨',\n 9: '٩',\n 0: '٠'\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0'\n };\n var arSa = moment.defineLocale('ar-sa', {\n months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n preparse: function (string) {\n return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return arSa;\n});","//! moment.js locale configuration\n//! locale : Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var arTn = moment.defineLocale('ar-tn', {\n months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return arTn;\n});","//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var suffixes = {\n 1: '-inci',\n 5: '-inci',\n 8: '-inci',\n 70: '-inci',\n 80: '-inci',\n 2: '-nci',\n 7: '-nci',\n 20: '-nci',\n 50: '-nci',\n 3: '-üncü',\n 4: '-üncü',\n 100: '-üncü',\n 6: '-ncı',\n 9: '-uncu',\n 10: '-uncu',\n 30: '-uncu',\n 60: '-ıncı',\n 90: '-ıncı'\n };\n var az = moment.defineLocale('az', {\n months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),\n monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),\n weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[sabah saat] LT',\n nextWeek: '[gələn həftə] dddd [saat] LT',\n lastDay: '[dünən] LT',\n lastWeek: '[keçən həftə] dddd [saat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s əvvəl',\n s: 'bir neçə saniyə',\n ss: '%d saniyə',\n m: 'bir dəqiqə',\n mm: '%d dəqiqə',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir il',\n yy: '%d il'\n },\n meridiemParse: /gecə|səhər|gündüz|axşam/,\n isPM: function (input) {\n return /^(gündüz|axşam)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'gecə';\n } else if (hour < 12) {\n return 'səhər';\n } else if (hour < 17) {\n return 'gündüz';\n } else {\n return 'axşam';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n ordinal: function (number) {\n if (number === 0) {\n // special case for zero\n return number + '-ıncı';\n }\n var a = number % 10,\n b = number % 100 - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return az;\n});","//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n dd: 'дзень_дні_дзён',\n MM: 'месяц_месяцы_месяцаў',\n yy: 'год_гады_гадоў'\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвіліна' : 'хвіліну';\n } else if (key === 'h') {\n return withoutSuffix ? 'гадзіна' : 'гадзіну';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n var be = moment.defineLocale('be', {\n months: {\n format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),\n standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')\n },\n monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),\n weekdays: {\n format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),\n standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),\n isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/\n },\n weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., HH:mm',\n LLLL: 'dddd, D MMMM YYYY г., HH:mm'\n },\n calendar: {\n sameDay: '[Сёння ў] LT',\n nextDay: '[Заўтра ў] LT',\n lastDay: '[Учора ў] LT',\n nextWeek: function () {\n return '[У] dddd [ў] LT';\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return '[У мінулую] dddd [ў] LT';\n case 1:\n case 2:\n case 4:\n return '[У мінулы] dddd [ў] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'праз %s',\n past: '%s таму',\n s: 'некалькі секунд',\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithPlural,\n hh: relativeTimeWithPlural,\n d: 'дзень',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural\n },\n meridiemParse: /ночы|раніцы|дня|вечара/,\n isPM: function (input) {\n return /^(дня|вечара)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночы';\n } else if (hour < 12) {\n return 'раніцы';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечара';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';\n case 'D':\n return number + '-га';\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return be;\n});","//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var bg = moment.defineLocale('bg', {\n months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),\n monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),\n weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[Днес в] LT',\n nextDay: '[Утре в] LT',\n nextWeek: 'dddd [в] LT',\n lastDay: '[Вчера в] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Миналата] dddd [в] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Миналия] dddd [в] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'след %s',\n past: 'преди %s',\n s: 'няколко секунди',\n ss: '%d секунди',\n m: 'минута',\n mm: '%d минути',\n h: 'час',\n hh: '%d часа',\n d: 'ден',\n dd: '%d дена',\n w: 'седмица',\n ww: '%d седмици',\n M: 'месец',\n MM: '%d месеца',\n y: 'година',\n yy: '%d години'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return bg;\n});","//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var bm = moment.defineLocale('bm', {\n months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),\n monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'MMMM [tile] D [san] YYYY',\n LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'\n },\n calendar: {\n sameDay: '[Bi lɛrɛ] LT',\n nextDay: '[Sini lɛrɛ] LT',\n nextWeek: 'dddd [don lɛrɛ] LT',\n lastDay: '[Kunu lɛrɛ] LT',\n lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s kɔnɔ',\n past: 'a bɛ %s bɔ',\n s: 'sanga dama dama',\n ss: 'sekondi %d',\n m: 'miniti kelen',\n mm: 'miniti %d',\n h: 'lɛrɛ kelen',\n hh: 'lɛrɛ %d',\n d: 'tile kelen',\n dd: 'tile %d',\n M: 'kalo kelen',\n MM: 'kalo %d',\n y: 'san kelen',\n yy: 'san %d'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return bm;\n});","//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '১',\n 2: '২',\n 3: '৩',\n 4: '৪',\n 5: '৫',\n 6: '৬',\n 7: '৭',\n 8: '৮',\n 9: '৯',\n 0: '০'\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0'\n };\n var bn = moment.defineLocale('bn', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর'\n },\n preparse: function (string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 10) {\n return 'সকাল';\n } else if (hour < 17) {\n return 'দুপুর';\n } else if (hour < 20) {\n return 'বিকাল';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return bn;\n});","//! moment.js locale configuration\n//! locale : Bengali (Bangladesh) [bn-bd]\n//! author : Asraf Hossain Patoary : https://github.com/ashwoolford\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '১',\n 2: '২',\n 3: '৩',\n 4: '৪',\n 5: '৫',\n 6: '৬',\n 7: '৭',\n 8: '৮',\n 9: '৯',\n 0: '০'\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0'\n };\n var bnBd = moment.defineLocale('bn-bd', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর'\n },\n preparse: function (string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'রাত') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ভোর') {\n return hour;\n } else if (meridiem === 'সকাল') {\n return hour;\n } else if (meridiem === 'দুপুর') {\n return hour >= 3 ? hour : hour + 12;\n } else if (meridiem === 'বিকাল') {\n return hour + 12;\n } else if (meridiem === 'সন্ধ্যা') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 6) {\n return 'ভোর';\n } else if (hour < 12) {\n return 'সকাল';\n } else if (hour < 15) {\n return 'দুপুর';\n } else if (hour < 18) {\n return 'বিকাল';\n } else if (hour < 20) {\n return 'সন্ধ্যা';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return bnBd;\n});","//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '༡',\n 2: '༢',\n 3: '༣',\n 4: '༤',\n 5: '༥',\n 6: '༦',\n 7: '༧',\n 8: '༨',\n 9: '༩',\n 0: '༠'\n },\n numberMap = {\n '༡': '1',\n '༢': '2',\n '༣': '3',\n '༤': '4',\n '༥': '5',\n '༦': '6',\n '༧': '7',\n '༨': '8',\n '༩': '9',\n '༠': '0'\n };\n var bo = moment.defineLocale('bo', {\n months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),\n monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),\n monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n monthsParseExact: true,\n weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),\n weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),\n weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm'\n },\n calendar: {\n sameDay: '[དི་རིང] LT',\n nextDay: '[སང་ཉིན] LT',\n nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n lastDay: '[ཁ་སང] LT',\n lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ལ་',\n past: '%s སྔན་ལ',\n s: 'ལམ་སང',\n ss: '%d སྐར་ཆ།',\n m: 'སྐར་མ་གཅིག',\n mm: '%d སྐར་མ',\n h: 'ཆུ་ཚོད་གཅིག',\n hh: '%d ཆུ་ཚོད',\n d: 'ཉིན་གཅིག',\n dd: '%d ཉིན་',\n M: 'ཟླ་བ་གཅིག',\n MM: '%d ཟླ་བ',\n y: 'ལོ་གཅིག',\n yy: '%d ལོ'\n },\n preparse: function (string) {\n return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'མཚན་མོ';\n } else if (hour < 10) {\n return 'ཞོགས་ཀས';\n } else if (hour < 17) {\n return 'ཉིན་གུང';\n } else if (hour < 20) {\n return 'དགོང་དག';\n } else {\n return 'མཚན་མོ';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return bo;\n});","//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function relativeTimeWithMutation(number, withoutSuffix, key) {\n var format = {\n mm: 'munutenn',\n MM: 'miz',\n dd: 'devezh'\n };\n return number + ' ' + mutation(format[key], number);\n }\n function specialMutationForYears(number) {\n switch (lastNumber(number)) {\n case 1:\n case 3:\n case 4:\n case 5:\n case 9:\n return number + ' bloaz';\n default:\n return number + ' vloaz';\n }\n }\n function lastNumber(number) {\n if (number > 9) {\n return lastNumber(number % 10);\n }\n return number;\n }\n function mutation(text, number) {\n if (number === 2) {\n return softMutation(text);\n }\n return text;\n }\n function softMutation(text) {\n var mutationTable = {\n m: 'v',\n b: 'v',\n d: 'z'\n };\n if (mutationTable[text.charAt(0)] === undefined) {\n return text;\n }\n return mutationTable[text.charAt(0)] + text.substring(1);\n }\n var monthsParse = [/^gen/i, /^c[ʼ\\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],\n monthsRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n monthsStrictRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,\n monthsShortStrictRegex = /^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],\n shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],\n minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];\n var br = moment.defineLocale('br', {\n months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),\n monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),\n weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n weekdaysParse: minWeekdaysParse,\n fullWeekdaysParse: fullWeekdaysParse,\n shortWeekdaysParse: shortWeekdaysParse,\n minWeekdaysParse: minWeekdaysParse,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [a viz] MMMM YYYY',\n LLL: 'D [a viz] MMMM YYYY HH:mm',\n LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Hiziv da] LT',\n nextDay: '[Warcʼhoazh da] LT',\n nextWeek: 'dddd [da] LT',\n lastDay: '[Decʼh da] LT',\n lastWeek: 'dddd [paset da] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'a-benn %s',\n past: '%s ʼzo',\n s: 'un nebeud segondennoù',\n ss: '%d eilenn',\n m: 'ur vunutenn',\n mm: relativeTimeWithMutation,\n h: 'un eur',\n hh: '%d eur',\n d: 'un devezh',\n dd: relativeTimeWithMutation,\n M: 'ur miz',\n MM: relativeTimeWithMutation,\n y: 'ur bloaz',\n yy: specialMutationForYears\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n ordinal: function (number) {\n var output = number === 1 ? 'añ' : 'vet';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n },\n\n meridiemParse: /a.m.|g.m./,\n // goude merenn | a-raok merenn\n isPM: function (token) {\n return token === 'g.m.';\n },\n meridiem: function (hour, minute, isLower) {\n return hour < 12 ? 'a.m.' : 'g.m.';\n }\n });\n return br;\n});","//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n var bs = moment.defineLocale('bs', {\n months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n return '[prošlu] dddd [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return bs;\n});","//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ca = moment.defineLocale('ca', {\n months: {\n standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),\n format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split('_'),\n isFormat: /D[oD]?(\\s)+MMMM/\n },\n monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),\n monthsParseExact: true,\n weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),\n weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a les] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n llll: 'ddd D MMM YYYY, H:mm'\n },\n calendar: {\n sameDay: function () {\n return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextDay: function () {\n return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastDay: function () {\n return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastWeek: function () {\n return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'uns segons',\n ss: '%d segons',\n m: 'un minut',\n mm: '%d minuts',\n h: 'una hora',\n hh: '%d hores',\n d: 'un dia',\n dd: '%d dies',\n M: 'un mes',\n MM: '%d mesos',\n y: 'un any',\n yy: '%d anys'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return ca;\n});","//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = {\n format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),\n standalone: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split('_')\n },\n monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n function plural(n) {\n return n > 1 && n < 5 && ~~(n / 10) !== 1;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n case 'ss':\n // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekund');\n } else {\n return result + 'sekundami';\n }\n case 'm':\n // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n case 'mm':\n // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minuty' : 'minut');\n } else {\n return result + 'minutami';\n }\n case 'h':\n // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh':\n // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodin');\n } else {\n return result + 'hodinami';\n }\n case 'd':\n // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'den' : 'dnem';\n case 'dd':\n // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dny' : 'dní');\n } else {\n return result + 'dny';\n }\n case 'M':\n // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n case 'MM':\n // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'měsíce' : 'měsíců');\n } else {\n return result + 'měsíci';\n }\n case 'y':\n // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokem';\n case 'yy':\n // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'let');\n } else {\n return result + 'lety';\n }\n }\n }\n var cs = moment.defineLocale('cs', {\n months: months,\n monthsShort: monthsShort,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n l: 'D. M. YYYY'\n },\n calendar: {\n sameDay: '[dnes v] LT',\n nextDay: '[zítra v] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v neděli v] LT';\n case 1:\n case 2:\n return '[v] dddd [v] LT';\n case 3:\n return '[ve středu v] LT';\n case 4:\n return '[ve čtvrtek v] LT';\n case 5:\n return '[v pátek v] LT';\n case 6:\n return '[v sobotu v] LT';\n }\n },\n lastDay: '[včera v] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulou neděli v] LT';\n case 1:\n case 2:\n return '[minulé] dddd [v] LT';\n case 3:\n return '[minulou středu v] LT';\n case 4:\n case 5:\n return '[minulý] dddd [v] LT';\n case 6:\n return '[minulou sobotu v] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'před %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return cs;\n});","//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var cv = moment.defineLocale('cv', {\n months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),\n monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),\n weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'\n },\n calendar: {\n sameDay: '[Паян] LT [сехетре]',\n nextDay: '[Ыран] LT [сехетре]',\n lastDay: '[Ӗнер] LT [сехетре]',\n nextWeek: '[Ҫитес] dddd LT [сехетре]',\n lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n sameElse: 'L'\n },\n relativeTime: {\n future: function (output) {\n var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';\n return output + affix;\n },\n past: '%s каялла',\n s: 'пӗр-ик ҫеккунт',\n ss: '%d ҫеккунт',\n m: 'пӗр минут',\n mm: '%d минут',\n h: 'пӗр сехет',\n hh: '%d сехет',\n d: 'пӗр кун',\n dd: '%d кун',\n M: 'пӗр уйӑх',\n MM: '%d уйӑх',\n y: 'пӗр ҫул',\n yy: '%d ҫул'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n ordinal: '%d-мӗш',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return cv;\n});","//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var cy = moment.defineLocale('cy', {\n months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),\n monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),\n weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),\n weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n weekdaysParseExact: true,\n // time formats are the same as en-gb\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Heddiw am] LT',\n nextDay: '[Yfory am] LT',\n nextWeek: 'dddd [am] LT',\n lastDay: '[Ddoe am] LT',\n lastWeek: 'dddd [diwethaf am] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'mewn %s',\n past: '%s yn ôl',\n s: 'ychydig eiliadau',\n ss: '%d eiliad',\n m: 'munud',\n mm: '%d munud',\n h: 'awr',\n hh: '%d awr',\n d: 'diwrnod',\n dd: '%d diwrnod',\n M: 'mis',\n MM: '%d mis',\n y: 'blwyddyn',\n yy: '%d flynedd'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n ordinal: function (number) {\n var b = number,\n output = '',\n lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed',\n // 1af to 10fed\n 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed\n ];\n\n if (b > 20) {\n if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n output = 'fed'; // not 30ain, 70ain or 90ain\n } else {\n output = 'ain';\n }\n } else if (b > 0) {\n output = lookup[b];\n }\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return cy;\n});","//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var da = moment.defineLocale('da', {\n months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'på dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[i] dddd[s kl.] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'få sekunder',\n ss: '%d sekunder',\n m: 'et minut',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dage',\n M: 'en måned',\n MM: '%d måneder',\n y: 'et år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return da;\n});","//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n var de = moment.defineLocale('de', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]'\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return de;\n});","//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n var deAt = moment.defineLocale('de-at', {\n months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]'\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return deAt;\n});","//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n var deCh = moment.defineLocale('de-ch', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]'\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return deCh;\n});","//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],\n weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];\n var dv = moment.defineLocale('dv', {\n months: months,\n monthsShort: months,\n weekdays: weekdays,\n weekdaysShort: weekdays,\n weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/M/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /މކ|މފ/,\n isPM: function (input) {\n return 'މފ' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'މކ';\n } else {\n return 'މފ';\n }\n },\n calendar: {\n sameDay: '[މިއަދު] LT',\n nextDay: '[މާދަމާ] LT',\n nextWeek: 'dddd LT',\n lastDay: '[އިއްޔެ] LT',\n lastWeek: '[ފާއިތުވި] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ތެރޭގައި %s',\n past: 'ކުރިން %s',\n s: 'ސިކުންތުކޮޅެއް',\n ss: 'd% ސިކުންތު',\n m: 'މިނިޓެއް',\n mm: 'މިނިޓު %d',\n h: 'ގަޑިއިރެއް',\n hh: 'ގަޑިއިރު %d',\n d: 'ދުވަހެއް',\n dd: 'ދުވަސް %d',\n M: 'މަހެއް',\n MM: 'މަސް %d',\n y: 'އަހަރެއް',\n yy: 'އަހަރު %d'\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 7,\n // Sunday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return dv;\n});","//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function isFunction(input) {\n return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\n }\n var el = moment.defineLocale('el', {\n monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),\n monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return this._monthsNominativeEl;\n } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {\n // if there is a day number before 'MMMM'\n return this._monthsGenitiveEl[momentToFormat.month()];\n } else {\n return this._monthsNominativeEl[momentToFormat.month()];\n }\n },\n monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),\n weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'μμ' : 'ΜΜ';\n } else {\n return isLower ? 'πμ' : 'ΠΜ';\n }\n },\n isPM: function (input) {\n return (input + '').toLowerCase()[0] === 'μ';\n },\n meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendarEl: {\n sameDay: '[Σήμερα {}] LT',\n nextDay: '[Αύριο {}] LT',\n nextWeek: 'dddd [{}] LT',\n lastDay: '[Χθες {}] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 6:\n return '[το προηγούμενο] dddd [{}] LT';\n default:\n return '[την προηγούμενη] dddd [{}] LT';\n }\n },\n sameElse: 'L'\n },\n calendar: function (key, mom) {\n var output = this._calendarEl[key],\n hours = mom && mom.hours();\n if (isFunction(output)) {\n output = output.apply(mom);\n }\n return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n },\n relativeTime: {\n future: 'σε %s',\n past: '%s πριν',\n s: 'λίγα δευτερόλεπτα',\n ss: '%d δευτερόλεπτα',\n m: 'ένα λεπτό',\n mm: '%d λεπτά',\n h: 'μία ώρα',\n hh: '%d ώρες',\n d: 'μία μέρα',\n dd: '%d μέρες',\n M: 'ένας μήνας',\n MM: '%d μήνες',\n y: 'ένας χρόνος',\n yy: '%d χρόνια'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}η/,\n ordinal: '%dη',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4st is the first week of the year.\n }\n });\n\n return el;\n});","//! moment.js locale configuration\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n var enSG = moment.defineLocale('en-SG', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return enSG;\n});","//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enAu = moment.defineLocale('en-au', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return enAu;\n});","//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enCa = moment.defineLocale('en-ca', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'YYYY-MM-DD',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n }\n });\n return enCa;\n});","//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enGb = moment.defineLocale('en-gb', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return enGb;\n});","//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enIe = moment.defineLocale('en-ie', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return enIe;\n});","//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enIl = moment.defineLocale('en-il', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n }\n });\n return enIl;\n});","//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enIn = moment.defineLocale('en-in', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 1st is the first week of the year.\n }\n });\n\n return enIn;\n});","//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enNz = moment.defineLocale('en-nz', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return enNz;\n});","//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var enSg = moment.defineLocale('en-sg', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return enSg;\n});","//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var eo = moment.defineLocale('eo', {\n months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),\n monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: '[la] D[-an de] MMMM, YYYY',\n LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'\n },\n meridiemParse: /[ap]\\.t\\.m/i,\n isPM: function (input) {\n return input.charAt(0).toLowerCase() === 'p';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'p.t.m.' : 'P.T.M.';\n } else {\n return isLower ? 'a.t.m.' : 'A.T.M.';\n }\n },\n calendar: {\n sameDay: '[Hodiaŭ je] LT',\n nextDay: '[Morgaŭ je] LT',\n nextWeek: 'dddd[n je] LT',\n lastDay: '[Hieraŭ je] LT',\n lastWeek: '[pasintan] dddd[n je] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'post %s',\n past: 'antaŭ %s',\n s: 'kelkaj sekundoj',\n ss: '%d sekundoj',\n m: 'unu minuto',\n mm: '%d minutoj',\n h: 'unu horo',\n hh: '%d horoj',\n d: 'unu tago',\n //ne 'diurno', ĉar estas uzita por proksimumo\n dd: '%d tagoj',\n M: 'unu monato',\n MM: '%d monatoj',\n y: 'unu jaro',\n yy: '%d jaroj'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}a/,\n ordinal: '%da',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return eo;\n});","//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n var es = moment.defineLocale('es', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n },\n\n invalidDate: 'Fecha inválida'\n });\n return es;\n});","//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n var esDo = moment.defineLocale('es-do', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return esDo;\n});","//! moment.js locale configuration\n//! locale : Spanish (Mexico) [es-mx]\n//! author : JC Franco : https://github.com/jcfranco\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n var esMx = moment.defineLocale('es-mx', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n },\n\n invalidDate: 'Fecha inválida'\n });\n return esMx;\n});","//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n var esUs = moment.defineLocale('es-us', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'MM/DD/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return esUs;\n});","//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n ss: [number + 'sekundi', number + 'sekundit'],\n m: ['ühe minuti', 'üks minut'],\n mm: [number + ' minuti', number + ' minutit'],\n h: ['ühe tunni', 'tund aega', 'üks tund'],\n hh: [number + ' tunni', number + ' tundi'],\n d: ['ühe päeva', 'üks päev'],\n M: ['kuu aja', 'kuu aega', 'üks kuu'],\n MM: [number + ' kuu', number + ' kuud'],\n y: ['ühe aasta', 'aasta', 'üks aasta'],\n yy: [number + ' aasta', number + ' aastat']\n };\n if (withoutSuffix) {\n return format[key][2] ? format[key][2] : format[key][1];\n }\n return isFuture ? format[key][0] : format[key][1];\n }\n var et = moment.defineLocale('et', {\n months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),\n monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),\n weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),\n weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[Täna,] LT',\n nextDay: '[Homme,] LT',\n nextWeek: '[Järgmine] dddd LT',\n lastDay: '[Eile,] LT',\n lastWeek: '[Eelmine] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s pärast',\n past: '%s tagasi',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: '%d päeva',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return et;\n});","//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var eu = moment.defineLocale('eu', {\n months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),\n monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),\n monthsParseExact: true,\n weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),\n weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY[ko] MMMM[ren] D[a]',\n LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n l: 'YYYY-M-D',\n ll: 'YYYY[ko] MMM D[a]',\n lll: 'YYYY[ko] MMM D[a] HH:mm',\n llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'\n },\n calendar: {\n sameDay: '[gaur] LT[etan]',\n nextDay: '[bihar] LT[etan]',\n nextWeek: 'dddd LT[etan]',\n lastDay: '[atzo] LT[etan]',\n lastWeek: '[aurreko] dddd LT[etan]',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s barru',\n past: 'duela %s',\n s: 'segundo batzuk',\n ss: '%d segundo',\n m: 'minutu bat',\n mm: '%d minutu',\n h: 'ordu bat',\n hh: '%d ordu',\n d: 'egun bat',\n dd: '%d egun',\n M: 'hilabete bat',\n MM: '%d hilabete',\n y: 'urte bat',\n yy: '%d urte'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return eu;\n});","//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '۱',\n 2: '۲',\n 3: '۳',\n 4: '۴',\n 5: '۵',\n 6: '۶',\n 7: '۷',\n 8: '۸',\n 9: '۹',\n 0: '۰'\n },\n numberMap = {\n '۱': '1',\n '۲': '2',\n '۳': '3',\n '۴': '4',\n '۵': '5',\n '۶': '6',\n '۷': '7',\n '۸': '8',\n '۹': '9',\n '۰': '0'\n };\n var fa = moment.defineLocale('fa', {\n months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\n monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\n weekdays: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split('_'),\n weekdaysShort: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split('_'),\n weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n meridiemParse: /قبل از ظهر|بعد از ظهر/,\n isPM: function (input) {\n return /بعد از ظهر/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'قبل از ظهر';\n } else {\n return 'بعد از ظهر';\n }\n },\n calendar: {\n sameDay: '[امروز ساعت] LT',\n nextDay: '[فردا ساعت] LT',\n nextWeek: 'dddd [ساعت] LT',\n lastDay: '[دیروز ساعت] LT',\n lastWeek: 'dddd [پیش] [ساعت] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'در %s',\n past: '%s پیش',\n s: 'چند ثانیه',\n ss: '%d ثانیه',\n m: 'یک دقیقه',\n mm: '%d دقیقه',\n h: 'یک ساعت',\n hh: '%d ساعت',\n d: 'یک روز',\n dd: '%d روز',\n M: 'یک ماه',\n MM: '%d ماه',\n y: 'یک سال',\n yy: '%d سال'\n },\n preparse: function (string) {\n return string.replace(/[۰-۹]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n dayOfMonthOrdinalParse: /\\d{1,2}م/,\n ordinal: '%dم',\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return fa;\n});","//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),\n numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];\n function translate(number, withoutSuffix, key, isFuture) {\n var result = '';\n switch (key) {\n case 's':\n return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n case 'ss':\n result = isFuture ? 'sekunnin' : 'sekuntia';\n break;\n case 'm':\n return isFuture ? 'minuutin' : 'minuutti';\n case 'mm':\n result = isFuture ? 'minuutin' : 'minuuttia';\n break;\n case 'h':\n return isFuture ? 'tunnin' : 'tunti';\n case 'hh':\n result = isFuture ? 'tunnin' : 'tuntia';\n break;\n case 'd':\n return isFuture ? 'päivän' : 'päivä';\n case 'dd':\n result = isFuture ? 'päivän' : 'päivää';\n break;\n case 'M':\n return isFuture ? 'kuukauden' : 'kuukausi';\n case 'MM':\n result = isFuture ? 'kuukauden' : 'kuukautta';\n break;\n case 'y':\n return isFuture ? 'vuoden' : 'vuosi';\n case 'yy':\n result = isFuture ? 'vuoden' : 'vuotta';\n break;\n }\n result = verbalNumber(number, isFuture) + ' ' + result;\n return result;\n }\n function verbalNumber(number, isFuture) {\n return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;\n }\n var fi = moment.defineLocale('fi', {\n months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),\n monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),\n weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),\n weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM[ta] YYYY',\n LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n l: 'D.M.YYYY',\n ll: 'Do MMM YYYY',\n lll: 'Do MMM YYYY, [klo] HH.mm',\n llll: 'ddd, Do MMM YYYY, [klo] HH.mm'\n },\n calendar: {\n sameDay: '[tänään] [klo] LT',\n nextDay: '[huomenna] [klo] LT',\n nextWeek: 'dddd [klo] LT',\n lastDay: '[eilen] [klo] LT',\n lastWeek: '[viime] dddd[na] [klo] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s päästä',\n past: '%s sitten',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return fi;\n});","//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var fil = moment.defineLocale('fil', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm'\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return fil;\n});","//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var fo = moment.defineLocale('fo', {\n months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),\n weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D. MMMM, YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Í dag kl.] LT',\n nextDay: '[Í morgin kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[Í gjár kl.] LT',\n lastWeek: '[síðstu] dddd [kl] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'um %s',\n past: '%s síðani',\n s: 'fá sekund',\n ss: '%d sekundir',\n m: 'ein minuttur',\n mm: '%d minuttir',\n h: 'ein tími',\n hh: '%d tímar',\n d: 'ein dagur',\n dd: '%d dagar',\n M: 'ein mánaður',\n MM: '%d mánaðir',\n y: 'eitt ár',\n yy: '%d ár'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return fo;\n});","//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsShortStrictRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,\n monthsRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];\n var fr = moment.defineLocale('fr', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n w: 'une semaine',\n ww: '%d semaines',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n ordinal: function (number, period) {\n switch (period) {\n // TODO: Return 'e' when day of month > 1. Move this case inside\n // block for masculine words below.\n // See https://github.com/moment/moment/issues/3375\n case 'D':\n return number + (number === 1 ? 'er' : '');\n\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return fr;\n});","//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var frCa = moment.defineLocale('fr-ca', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n }\n });\n return frCa;\n});","//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var frCh = moment.defineLocale('fr-ch', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return frCh;\n});","//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');\n var fy = moment.defineLocale('fy', {\n months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsParseExact: true,\n weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),\n weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[hjoed om] LT',\n nextDay: '[moarn om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[juster om] LT',\n lastWeek: '[ôfrûne] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'oer %s',\n past: '%s lyn',\n s: 'in pear sekonden',\n ss: '%d sekonden',\n m: 'ien minút',\n mm: '%d minuten',\n h: 'ien oere',\n hh: '%d oeren',\n d: 'ien dei',\n dd: '%d dagen',\n M: 'ien moanne',\n MM: '%d moannen',\n y: 'ien jier',\n yy: '%d jierren'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return fy;\n});","//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],\n monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],\n weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],\n weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n var ga = moment.defineLocale('ga', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Inniu ag] LT',\n nextDay: '[Amárach ag] LT',\n nextWeek: 'dddd [ag] LT',\n lastDay: '[Inné ag] LT',\n lastWeek: 'dddd [seo caite] [ag] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'i %s',\n past: '%s ó shin',\n s: 'cúpla soicind',\n ss: '%d soicind',\n m: 'nóiméad',\n mm: '%d nóiméad',\n h: 'uair an chloig',\n hh: '%d uair an chloig',\n d: 'lá',\n dd: '%d lá',\n M: 'mí',\n MM: '%d míonna',\n y: 'bliain',\n yy: '%d bliain'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return ga;\n});","//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],\n monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],\n weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],\n weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n var gd = moment.defineLocale('gd', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[An-diugh aig] LT',\n nextDay: '[A-màireach aig] LT',\n nextWeek: 'dddd [aig] LT',\n lastDay: '[An-dè aig] LT',\n lastWeek: 'dddd [seo chaidh] [aig] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ann an %s',\n past: 'bho chionn %s',\n s: 'beagan diogan',\n ss: '%d diogan',\n m: 'mionaid',\n mm: '%d mionaidean',\n h: 'uair',\n hh: '%d uairean',\n d: 'latha',\n dd: '%d latha',\n M: 'mìos',\n MM: '%d mìosan',\n y: 'bliadhna',\n yy: '%d bliadhna'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return gd;\n});","//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var gl = moment.defineLocale('gl', {\n months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),\n monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'\n },\n calendar: {\n sameDay: function () {\n return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextDay: function () {\n return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n lastDay: function () {\n return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n },\n lastWeek: function () {\n return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: function (str) {\n if (str.indexOf('un') === 0) {\n return 'n' + str;\n }\n return 'en ' + str;\n },\n past: 'hai %s',\n s: 'uns segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'unha hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un ano',\n yy: '%d anos'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return gl;\n});","//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n m: ['एका मिणटान', 'एक मिनूट'],\n mm: [number + ' मिणटांनी', number + ' मिणटां'],\n h: ['एका वरान', 'एक वर'],\n hh: [number + ' वरांनी', number + ' वरां'],\n d: ['एका दिसान', 'एक दीस'],\n dd: [number + ' दिसांनी', number + ' दीस'],\n M: ['एका म्हयन्यान', 'एक म्हयनो'],\n MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n y: ['एका वर्सान', 'एक वर्स'],\n yy: [number + ' वर्सांनी', number + ' वर्सां']\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n var gomDeva = moment.defineLocale('gom-deva', {\n months: {\n standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),\n format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),\n isFormat: /MMMM(\\s)+D[oD]?/\n },\n monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),\n monthsParseExact: true,\n weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [वाजतां]',\n LTS: 'A h:mm:ss [वाजतां]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'\n },\n calendar: {\n sameDay: '[आयज] LT',\n nextDay: '[फाल्यां] LT',\n nextWeek: '[फुडलो] dddd[,] LT',\n lastDay: '[काल] LT',\n lastWeek: '[फाटलो] dddd[,] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s',\n past: '%s आदीं',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'वेर' only applies to day of the month\n case 'D':\n return number + 'वेर';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week\n doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n },\n\n meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राती') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सकाळीं') {\n return hour;\n } else if (meridiem === 'दनपारां') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'सांजे') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'राती';\n } else if (hour < 12) {\n return 'सकाळीं';\n } else if (hour < 16) {\n return 'दनपारां';\n } else if (hour < 20) {\n return 'सांजे';\n } else {\n return 'राती';\n }\n }\n });\n return gomDeva;\n});","//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['thoddea sekondamni', 'thodde sekond'],\n ss: [number + ' sekondamni', number + ' sekond'],\n m: ['eka mintan', 'ek minut'],\n mm: [number + ' mintamni', number + ' mintam'],\n h: ['eka voran', 'ek vor'],\n hh: [number + ' voramni', number + ' voram'],\n d: ['eka disan', 'ek dis'],\n dd: [number + ' disamni', number + ' dis'],\n M: ['eka mhoinean', 'ek mhoino'],\n MM: [number + ' mhoineamni', number + ' mhoine'],\n y: ['eka vorsan', 'ek voros'],\n yy: [number + ' vorsamni', number + ' vorsam']\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n var gomLatn = moment.defineLocale('gom-latn', {\n months: {\n standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),\n format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),\n isFormat: /MMMM(\\s)+D[oD]?/\n },\n monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [vazta]',\n LTS: 'A h:mm:ss [vazta]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [vazta]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n llll: 'ddd, D MMM YYYY, A h:mm [vazta]'\n },\n calendar: {\n sameDay: '[Aiz] LT',\n nextDay: '[Faleam] LT',\n nextWeek: '[Fuddlo] dddd[,] LT',\n lastDay: '[Kal] LT',\n lastWeek: '[Fattlo] dddd[,] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s',\n past: '%s adim',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'er' only applies to day of the month\n case 'D':\n return number + 'er';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week\n doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n },\n\n meridiemParse: /rati|sokallim|donparam|sanje/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'rati') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'sokallim') {\n return hour;\n } else if (meridiem === 'donparam') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'sanje') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'rati';\n } else if (hour < 12) {\n return 'sokallim';\n } else if (hour < 16) {\n return 'donparam';\n } else if (hour < 20) {\n return 'sanje';\n } else {\n return 'rati';\n }\n }\n });\n return gomLatn;\n});","//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '૧',\n 2: '૨',\n 3: '૩',\n 4: '૪',\n 5: '૫',\n 6: '૬',\n 7: '૭',\n 8: '૮',\n 9: '૯',\n 0: '૦'\n },\n numberMap = {\n '૧': '1',\n '૨': '2',\n '૩': '3',\n '૪': '4',\n '૫': '5',\n '૬': '6',\n '૭': '7',\n '૮': '8',\n '૯': '9',\n '૦': '0'\n };\n var gu = moment.defineLocale('gu', {\n months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),\n monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),\n monthsParseExact: true,\n weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),\n weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm વાગ્યે',\n LTS: 'A h:mm:ss વાગ્યે',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'\n },\n calendar: {\n sameDay: '[આજ] LT',\n nextDay: '[કાલે] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ગઇકાલે] LT',\n lastWeek: '[પાછલા] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s મા',\n past: '%s પહેલા',\n s: 'અમુક પળો',\n ss: '%d સેકંડ',\n m: 'એક મિનિટ',\n mm: '%d મિનિટ',\n h: 'એક કલાક',\n hh: '%d કલાક',\n d: 'એક દિવસ',\n dd: '%d દિવસ',\n M: 'એક મહિનો',\n MM: '%d મહિનો',\n y: 'એક વર્ષ',\n yy: '%d વર્ષ'\n },\n preparse: function (string) {\n return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'રાત') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'સવાર') {\n return hour;\n } else if (meridiem === 'બપોર') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'સાંજ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'રાત';\n } else if (hour < 10) {\n return 'સવાર';\n } else if (hour < 17) {\n return 'બપોર';\n } else if (hour < 20) {\n return 'સાંજ';\n } else {\n return 'રાત';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return gu;\n});","//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var he = moment.defineLocale('he', {\n months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),\n monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),\n weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [ב]MMMM YYYY',\n LLL: 'D [ב]MMMM YYYY HH:mm',\n LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n l: 'D/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[היום ב־]LT',\n nextDay: '[מחר ב־]LT',\n nextWeek: 'dddd [בשעה] LT',\n lastDay: '[אתמול ב־]LT',\n lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'בעוד %s',\n past: 'לפני %s',\n s: 'מספר שניות',\n ss: '%d שניות',\n m: 'דקה',\n mm: '%d דקות',\n h: 'שעה',\n hh: function (number) {\n if (number === 2) {\n return 'שעתיים';\n }\n return number + ' שעות';\n },\n d: 'יום',\n dd: function (number) {\n if (number === 2) {\n return 'יומיים';\n }\n return number + ' ימים';\n },\n M: 'חודש',\n MM: function (number) {\n if (number === 2) {\n return 'חודשיים';\n }\n return number + ' חודשים';\n },\n y: 'שנה',\n yy: function (number) {\n if (number === 2) {\n return 'שנתיים';\n } else if (number % 10 === 0 && number !== 10) {\n return number + ' שנה';\n }\n return number + ' שנים';\n }\n },\n meridiemParse: /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n isPM: function (input) {\n return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 5) {\n return 'לפנות בוקר';\n } else if (hour < 10) {\n return 'בבוקר';\n } else if (hour < 12) {\n return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n } else if (hour < 18) {\n return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n } else {\n return 'בערב';\n }\n }\n });\n return he;\n});","//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '१',\n 2: '२',\n 3: '३',\n 4: '४',\n 5: '५',\n 6: '६',\n 7: '७',\n 8: '८',\n 9: '९',\n 0: '०'\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0'\n },\n monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],\n shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];\n var hi = moment.defineLocale('hi', {\n months: {\n format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),\n standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')\n },\n monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),\n weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm बजे',\n LTS: 'A h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'\n },\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: shortMonthsParse,\n monthsRegex: /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n monthsShortRegex: /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,\n monthsShortStrictRegex: /^(जन\\.?|फ़र\\.?|मार्च?|अप्रै\\.?|मई?|जून?|जुल\\.?|अग\\.?|सित\\.?|अक्टू\\.?|नव\\.?|दिस\\.?)/i,\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[कल] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[कल] LT',\n lastWeek: '[पिछले] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s में',\n past: '%s पहले',\n s: 'कुछ ही क्षण',\n ss: '%d सेकंड',\n m: 'एक मिनट',\n mm: '%d मिनट',\n h: 'एक घंटा',\n hh: '%d घंटे',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महीने',\n MM: '%d महीने',\n y: 'एक वर्ष',\n yy: '%d वर्ष'\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n meridiemParse: /रात|सुबह|दोपहर|शाम/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'रात') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सुबह') {\n return hour;\n } else if (meridiem === 'दोपहर') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'शाम') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'रात';\n } else if (hour < 10) {\n return 'सुबह';\n } else if (hour < 17) {\n return 'दोपहर';\n } else if (hour < 20) {\n return 'शाम';\n } else {\n return 'रात';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return hi;\n});","//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n var hr = moment.defineLocale('hr', {\n months: {\n format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),\n standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')\n },\n monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM YYYY',\n LLL: 'Do MMMM YYYY H:mm',\n LLLL: 'dddd, Do MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prošlu] [nedjelju] [u] LT';\n case 3:\n return '[prošlu] [srijedu] [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return hr;\n});","//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n//! author : Peter Viszt : https://github.com/passatgt\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');\n function translate(number, withoutSuffix, key, isFuture) {\n var num = number;\n switch (key) {\n case 's':\n return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';\n case 'ss':\n return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';\n case 'm':\n return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'mm':\n return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'h':\n return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'hh':\n return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'd':\n return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'dd':\n return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'M':\n return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'MM':\n return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'y':\n return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n case 'yy':\n return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n }\n return '';\n }\n function week(isFuture) {\n return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';\n }\n var hu = moment.defineLocale('hu', {\n months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),\n monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY. MMMM D.',\n LLL: 'YYYY. MMMM D. H:mm',\n LLLL: 'YYYY. MMMM D., dddd H:mm'\n },\n meridiemParse: /de|du/i,\n isPM: function (input) {\n return input.charAt(1).toLowerCase() === 'u';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower === true ? 'de' : 'DE';\n } else {\n return isLower === true ? 'du' : 'DU';\n }\n },\n calendar: {\n sameDay: '[ma] LT[-kor]',\n nextDay: '[holnap] LT[-kor]',\n nextWeek: function () {\n return week.call(this, true);\n },\n lastDay: '[tegnap] LT[-kor]',\n lastWeek: function () {\n return week.call(this, false);\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s múlva',\n past: '%s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return hu;\n});","//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var hyAm = moment.defineLocale('hy-am', {\n months: {\n format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),\n standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')\n },\n monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),\n weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY թ.',\n LLL: 'D MMMM YYYY թ., HH:mm',\n LLLL: 'dddd, D MMMM YYYY թ., HH:mm'\n },\n calendar: {\n sameDay: '[այսօր] LT',\n nextDay: '[վաղը] LT',\n lastDay: '[երեկ] LT',\n nextWeek: function () {\n return 'dddd [օրը ժամը] LT';\n },\n lastWeek: function () {\n return '[անցած] dddd [օրը ժամը] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s հետո',\n past: '%s առաջ',\n s: 'մի քանի վայրկյան',\n ss: '%d վայրկյան',\n m: 'րոպե',\n mm: '%d րոպե',\n h: 'ժամ',\n hh: '%d ժամ',\n d: 'օր',\n dd: '%d օր',\n M: 'ամիս',\n MM: '%d ամիս',\n y: 'տարի',\n yy: '%d տարի'\n },\n meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n isPM: function (input) {\n return /^(ցերեկվա|երեկոյան)$/.test(input);\n },\n meridiem: function (hour) {\n if (hour < 4) {\n return 'գիշերվա';\n } else if (hour < 12) {\n return 'առավոտվա';\n } else if (hour < 17) {\n return 'ցերեկվա';\n } else {\n return 'երեկոյան';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'DDD':\n case 'w':\n case 'W':\n case 'DDDo':\n if (number === 1) {\n return number + '-ին';\n }\n return number + '-րդ';\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return hyAm;\n});","//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var id = moment.defineLocale('id', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /pagi|siang|sore|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'siang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sore' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'siang';\n } else if (hours < 19) {\n return 'sore';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Besok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kemarin pukul] LT',\n lastWeek: 'dddd [lalu pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lalu',\n s: 'beberapa detik',\n ss: '%d detik',\n m: 'semenit',\n mm: '%d menit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun'\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return id;\n});","//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function plural(n) {\n if (n % 100 === 11) {\n return true;\n } else if (n % 10 === 1) {\n return false;\n }\n return true;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';\n case 'ss':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');\n }\n return result + 'sekúnda';\n case 'm':\n return withoutSuffix ? 'mínúta' : 'mínútu';\n case 'mm':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');\n } else if (withoutSuffix) {\n return result + 'mínúta';\n }\n return result + 'mínútu';\n case 'hh':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');\n }\n return result + 'klukkustund';\n case 'd':\n if (withoutSuffix) {\n return 'dagur';\n }\n return isFuture ? 'dag' : 'degi';\n case 'dd':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'dagar';\n }\n return result + (isFuture ? 'daga' : 'dögum');\n } else if (withoutSuffix) {\n return result + 'dagur';\n }\n return result + (isFuture ? 'dag' : 'degi');\n case 'M':\n if (withoutSuffix) {\n return 'mánuður';\n }\n return isFuture ? 'mánuð' : 'mánuði';\n case 'MM':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'mánuðir';\n }\n return result + (isFuture ? 'mánuði' : 'mánuðum');\n } else if (withoutSuffix) {\n return result + 'mánuður';\n }\n return result + (isFuture ? 'mánuð' : 'mánuði');\n case 'y':\n return withoutSuffix || isFuture ? 'ár' : 'ári';\n case 'yy':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n }\n return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n }\n }\n var is = moment.defineLocale('is', {\n months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),\n monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),\n weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'\n },\n calendar: {\n sameDay: '[í dag kl.] LT',\n nextDay: '[á morgun kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[í gær kl.] LT',\n lastWeek: '[síðasta] dddd [kl.] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'eftir %s',\n past: 'fyrir %s síðan',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: 'klukkustund',\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return is;\n});","//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var it = moment.defineLocale('it', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: function () {\n return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n nextDay: function () {\n return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n nextWeek: function () {\n return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n lastDay: function () {\n return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n default:\n return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'tra %s',\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n w: 'una settimana',\n ww: '%d settimane',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return it;\n});","//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var itCh = moment.defineLocale('it-ch', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Oggi alle] LT',\n nextDay: '[Domani alle] LT',\n nextWeek: 'dddd [alle] LT',\n lastDay: '[Ieri alle] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[la scorsa] dddd [alle] LT';\n default:\n return '[lo scorso] dddd [alle] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: function (s) {\n return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n },\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return itCh;\n});","//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ja = moment.defineLocale('ja', {\n eras: [{\n since: '2019-05-01',\n offset: 1,\n name: '令和',\n narrow: '㋿',\n abbr: 'R'\n }, {\n since: '1989-01-08',\n until: '2019-04-30',\n offset: 1,\n name: '平成',\n narrow: '㍻',\n abbr: 'H'\n }, {\n since: '1926-12-25',\n until: '1989-01-07',\n offset: 1,\n name: '昭和',\n narrow: '㍼',\n abbr: 'S'\n }, {\n since: '1912-07-30',\n until: '1926-12-24',\n offset: 1,\n name: '大正',\n narrow: '㍽',\n abbr: 'T'\n }, {\n since: '1873-01-01',\n until: '1912-07-29',\n offset: 6,\n name: '明治',\n narrow: '㍾',\n abbr: 'M'\n }, {\n since: '0001-01-01',\n until: '1873-12-31',\n offset: 1,\n name: '西暦',\n narrow: 'AD',\n abbr: 'AD'\n }, {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: '紀元前',\n narrow: 'BC',\n abbr: 'BC'\n }],\n eraYearOrdinalRegex: /(元|\\d+)年/,\n eraYearOrdinalParse: function (input, match) {\n return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n },\n months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日 dddd HH:mm',\n l: 'YYYY/MM/DD',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日(ddd) HH:mm'\n },\n meridiemParse: /午前|午後/i,\n isPM: function (input) {\n return input === '午後';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return '午前';\n } else {\n return '午後';\n }\n },\n calendar: {\n sameDay: '[今日] LT',\n nextDay: '[明日] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[来週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n lastDay: '[昨日] LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[先週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}日/,\n ordinal: function (number, period) {\n switch (period) {\n case 'y':\n return number === 1 ? '元年' : number + '年';\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '数秒',\n ss: '%d秒',\n m: '1分',\n mm: '%d分',\n h: '1時間',\n hh: '%d時間',\n d: '1日',\n dd: '%d日',\n M: '1ヶ月',\n MM: '%dヶ月',\n y: '1年',\n yy: '%d年'\n }\n });\n return ja;\n});","//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var jv = moment.defineLocale('jv', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /enjing|siyang|sonten|ndalu/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'enjing') {\n return hour;\n } else if (meridiem === 'siyang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'enjing';\n } else if (hours < 15) {\n return 'siyang';\n } else if (hours < 19) {\n return 'sonten';\n } else {\n return 'ndalu';\n }\n },\n calendar: {\n sameDay: '[Dinten puniko pukul] LT',\n nextDay: '[Mbenjang pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kala wingi pukul] LT',\n lastWeek: 'dddd [kepengker pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'wonten ing %s',\n past: '%s ingkang kepengker',\n s: 'sawetawis detik',\n ss: '%d detik',\n m: 'setunggal menit',\n mm: '%d menit',\n h: 'setunggal jam',\n hh: '%d jam',\n d: 'sedinten',\n dd: '%d dinten',\n M: 'sewulan',\n MM: '%d wulan',\n y: 'setaun',\n yy: '%d taun'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return jv;\n});","//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ka = moment.defineLocale('ka', {\n months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),\n monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n weekdays: {\n standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),\n format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),\n isFormat: /(წინა|შემდეგ)/\n },\n weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[დღეს] LT[-ზე]',\n nextDay: '[ხვალ] LT[-ზე]',\n lastDay: '[გუშინ] LT[-ზე]',\n nextWeek: '[შემდეგ] dddd LT[-ზე]',\n lastWeek: '[წინა] dddd LT-ზე',\n sameElse: 'L'\n },\n relativeTime: {\n future: function (s) {\n return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {\n return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n });\n },\n past: function (s) {\n if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n return s.replace(/(ი|ე)$/, 'ის წინ');\n }\n if (/წელი/.test(s)) {\n return s.replace(/წელი$/, 'წლის წინ');\n }\n return s;\n },\n s: 'რამდენიმე წამი',\n ss: '%d წამი',\n m: 'წუთი',\n mm: '%d წუთი',\n h: 'საათი',\n hh: '%d საათი',\n d: 'დღე',\n dd: '%d დღე',\n M: 'თვე',\n MM: '%d თვე',\n y: 'წელი',\n yy: '%d წელი'\n },\n dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n ordinal: function (number) {\n if (number === 0) {\n return number;\n }\n if (number === 1) {\n return number + '-ლი';\n }\n if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {\n return 'მე-' + number;\n }\n return number + '-ე';\n },\n week: {\n dow: 1,\n doy: 7\n }\n });\n return ka;\n});","//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var suffixes = {\n 0: '-ші',\n 1: '-ші',\n 2: '-ші',\n 3: '-ші',\n 4: '-ші',\n 5: '-ші',\n 6: '-шы',\n 7: '-ші',\n 8: '-ші',\n 9: '-шы',\n 10: '-шы',\n 20: '-шы',\n 30: '-шы',\n 40: '-шы',\n 50: '-ші',\n 60: '-шы',\n 70: '-ші',\n 80: '-ші',\n 90: '-шы',\n 100: '-ші'\n };\n var kk = moment.defineLocale('kk', {\n months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),\n monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),\n weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Бүгін сағат] LT',\n nextDay: '[Ертең сағат] LT',\n nextWeek: 'dddd [сағат] LT',\n lastDay: '[Кеше сағат] LT',\n lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ішінде',\n past: '%s бұрын',\n s: 'бірнеше секунд',\n ss: '%d секунд',\n m: 'бір минут',\n mm: '%d минут',\n h: 'бір сағат',\n hh: '%d сағат',\n d: 'бір күн',\n dd: '%d күн',\n M: 'бір ай',\n MM: '%d ай',\n y: 'бір жыл',\n yy: '%d жыл'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return kk;\n});","//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '១',\n 2: '២',\n 3: '៣',\n 4: '៤',\n 5: '៥',\n 6: '៦',\n 7: '៧',\n 8: '៨',\n 9: '៩',\n 0: '០'\n },\n numberMap = {\n '១': '1',\n '២': '2',\n '៣': '3',\n '៤': '4',\n '៥': '5',\n '៦': '6',\n '៧': '7',\n '៨': '8',\n '៩': '9',\n '០': '0'\n };\n var km = moment.defineLocale('km', {\n months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\n monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\n weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n meridiemParse: /ព្រឹក|ល្ងាច/,\n isPM: function (input) {\n return input === 'ល្ងាច';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ព្រឹក';\n } else {\n return 'ល្ងាច';\n }\n },\n calendar: {\n sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n nextDay: '[ស្អែក ម៉ោង] LT',\n nextWeek: 'dddd [ម៉ោង] LT',\n lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sទៀត',\n past: '%sមុន',\n s: 'ប៉ុន្មានវិនាទី',\n ss: '%d វិនាទី',\n m: 'មួយនាទី',\n mm: '%d នាទី',\n h: 'មួយម៉ោង',\n hh: '%d ម៉ោង',\n d: 'មួយថ្ងៃ',\n dd: '%d ថ្ងៃ',\n M: 'មួយខែ',\n MM: '%d ខែ',\n y: 'មួយឆ្នាំ',\n yy: '%d ឆ្នាំ'\n },\n dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n ordinal: 'ទី%d',\n preparse: function (string) {\n return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return km;\n});","//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '೧',\n 2: '೨',\n 3: '೩',\n 4: '೪',\n 5: '೫',\n 6: '೬',\n 7: '೭',\n 8: '೮',\n 9: '೯',\n 0: '೦'\n },\n numberMap = {\n '೧': '1',\n '೨': '2',\n '೩': '3',\n '೪': '4',\n '೫': '5',\n '೬': '6',\n '೭': '7',\n '೮': '8',\n '೯': '9',\n '೦': '0'\n };\n var kn = moment.defineLocale('kn', {\n months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),\n monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),\n monthsParseExact: true,\n weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),\n weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm'\n },\n calendar: {\n sameDay: '[ಇಂದು] LT',\n nextDay: '[ನಾಳೆ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ನಿನ್ನೆ] LT',\n lastWeek: '[ಕೊನೆಯ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ನಂತರ',\n past: '%s ಹಿಂದೆ',\n s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n ss: '%d ಸೆಕೆಂಡುಗಳು',\n m: 'ಒಂದು ನಿಮಿಷ',\n mm: '%d ನಿಮಿಷ',\n h: 'ಒಂದು ಗಂಟೆ',\n hh: '%d ಗಂಟೆ',\n d: 'ಒಂದು ದಿನ',\n dd: '%d ದಿನ',\n M: 'ಒಂದು ತಿಂಗಳು',\n MM: '%d ತಿಂಗಳು',\n y: 'ಒಂದು ವರ್ಷ',\n yy: '%d ವರ್ಷ'\n },\n preparse: function (string) {\n return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ರಾತ್ರಿ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n return hour;\n } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ಸಂಜೆ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ರಾತ್ರಿ';\n } else if (hour < 10) {\n return 'ಬೆಳಿಗ್ಗೆ';\n } else if (hour < 17) {\n return 'ಮಧ್ಯಾಹ್ನ';\n } else if (hour < 20) {\n return 'ಸಂಜೆ';\n } else {\n return 'ರಾತ್ರಿ';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n ordinal: function (number) {\n return number + 'ನೇ';\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return kn;\n});","//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee \n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ko = moment.defineLocale('ko', {\n months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY년 MMMM D일',\n LLL: 'YYYY년 MMMM D일 A h:mm',\n LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n l: 'YYYY.MM.DD.',\n ll: 'YYYY년 MMMM D일',\n lll: 'YYYY년 MMMM D일 A h:mm',\n llll: 'YYYY년 MMMM D일 dddd A h:mm'\n },\n calendar: {\n sameDay: '오늘 LT',\n nextDay: '내일 LT',\n nextWeek: 'dddd LT',\n lastDay: '어제 LT',\n lastWeek: '지난주 dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s 후',\n past: '%s 전',\n s: '몇 초',\n ss: '%d초',\n m: '1분',\n mm: '%d분',\n h: '한 시간',\n hh: '%d시간',\n d: '하루',\n dd: '%d일',\n M: '한 달',\n MM: '%d달',\n y: '일 년',\n yy: '%d년'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '일';\n case 'M':\n return number + '월';\n case 'w':\n case 'W':\n return number + '주';\n default:\n return number;\n }\n },\n meridiemParse: /오전|오후/,\n isPM: function (token) {\n return token === '오후';\n },\n meridiem: function (hour, minute, isUpper) {\n return hour < 12 ? '오전' : '오후';\n }\n });\n return ko;\n});","//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '١',\n 2: '٢',\n 3: '٣',\n 4: '٤',\n 5: '٥',\n 6: '٦',\n 7: '٧',\n 8: '٨',\n 9: '٩',\n 0: '٠'\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0'\n },\n months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];\n var ku = moment.defineLocale('ku', {\n months: months,\n monthsShort: months,\n weekdays: 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split('_'),\n weekdaysShort: 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split('_'),\n weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n meridiemParse: /ئێواره|بهیانی/,\n isPM: function (input) {\n return /ئێواره/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'بهیانی';\n } else {\n return 'ئێواره';\n }\n },\n calendar: {\n sameDay: '[ئهمرۆ كاتژمێر] LT',\n nextDay: '[بهیانی كاتژمێر] LT',\n nextWeek: 'dddd [كاتژمێر] LT',\n lastDay: '[دوێنێ كاتژمێر] LT',\n lastWeek: 'dddd [كاتژمێر] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'له %s',\n past: '%s',\n s: 'چهند چركهیهك',\n ss: 'چركه %d',\n m: 'یهك خولهك',\n mm: '%d خولهك',\n h: 'یهك كاتژمێر',\n hh: '%d كاتژمێر',\n d: 'یهك ڕۆژ',\n dd: '%d ڕۆژ',\n M: 'یهك مانگ',\n MM: '%d مانگ',\n y: 'یهك ساڵ',\n yy: '%d ساڵ'\n },\n preparse: function (string) {\n return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return ku;\n});","//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var suffixes = {\n 0: '-чү',\n 1: '-чи',\n 2: '-чи',\n 3: '-чү',\n 4: '-чү',\n 5: '-чи',\n 6: '-чы',\n 7: '-чи',\n 8: '-чи',\n 9: '-чу',\n 10: '-чу',\n 20: '-чы',\n 30: '-чу',\n 40: '-чы',\n 50: '-чү',\n 60: '-чы',\n 70: '-чи',\n 80: '-чи',\n 90: '-чу',\n 100: '-чү'\n };\n var ky = moment.defineLocale('ky', {\n months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),\n monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),\n weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Бүгүн саат] LT',\n nextDay: '[Эртең саат] LT',\n nextWeek: 'dddd [саат] LT',\n lastDay: '[Кечээ саат] LT',\n lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ичинде',\n past: '%s мурун',\n s: 'бирнече секунд',\n ss: '%d секунд',\n m: 'бир мүнөт',\n mm: '%d мүнөт',\n h: 'бир саат',\n hh: '%d саат',\n d: 'бир күн',\n dd: '%d күн',\n M: 'бир ай',\n MM: '%d ай',\n y: 'бир жыл',\n yy: '%d жыл'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return ky;\n});","//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eng Minutt', 'enger Minutt'],\n h: ['eng Stonn', 'enger Stonn'],\n d: ['een Dag', 'engem Dag'],\n M: ['ee Mount', 'engem Mount'],\n y: ['ee Joer', 'engem Joer']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n function processFutureTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'a ' + string;\n }\n return 'an ' + string;\n }\n function processPastTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'viru ' + string;\n }\n return 'virun ' + string;\n }\n /**\n * Returns true if the word before the given number loses the '-n' ending.\n * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n *\n * @param number {integer}\n * @returns {boolean}\n */\n function eifelerRegelAppliesToNumber(number) {\n number = parseInt(number, 10);\n if (isNaN(number)) {\n return false;\n }\n if (number < 0) {\n // Negative Number --> always true\n return true;\n } else if (number < 10) {\n // Only 1 digit\n if (4 <= number && number <= 7) {\n return true;\n }\n return false;\n } else if (number < 100) {\n // 2 digits\n var lastDigit = number % 10,\n firstDigit = number / 10;\n if (lastDigit === 0) {\n return eifelerRegelAppliesToNumber(firstDigit);\n }\n return eifelerRegelAppliesToNumber(lastDigit);\n } else if (number < 10000) {\n // 3 or 4 digits --> recursively check first digit\n while (number >= 10) {\n number = number / 10;\n }\n return eifelerRegelAppliesToNumber(number);\n } else {\n // Anything larger than 4 digits: recursively check first n-3 digits\n number = number / 1000;\n return eifelerRegelAppliesToNumber(number);\n }\n }\n var lb = moment.defineLocale('lb', {\n months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),\n weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm [Auer]',\n LTS: 'H:mm:ss [Auer]',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm [Auer]',\n LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'\n },\n calendar: {\n sameDay: '[Haut um] LT',\n sameElse: 'L',\n nextDay: '[Muer um] LT',\n nextWeek: 'dddd [um] LT',\n lastDay: '[Gëschter um] LT',\n lastWeek: function () {\n // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n switch (this.day()) {\n case 2:\n case 4:\n return '[Leschten] dddd [um] LT';\n default:\n return '[Leschte] dddd [um] LT';\n }\n }\n },\n relativeTime: {\n future: processFutureTime,\n past: processPastTime,\n s: 'e puer Sekonnen',\n ss: '%d Sekonnen',\n m: processRelativeTime,\n mm: '%d Minutten',\n h: processRelativeTime,\n hh: '%d Stonnen',\n d: processRelativeTime,\n dd: '%d Deeg',\n M: processRelativeTime,\n MM: '%d Méint',\n y: processRelativeTime,\n yy: '%d Joer'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return lb;\n});","//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var lo = moment.defineLocale('lo', {\n months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\n monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\n weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'ວັນdddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n isPM: function (input) {\n return input === 'ຕອນແລງ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ຕອນເຊົ້າ';\n } else {\n return 'ຕອນແລງ';\n }\n },\n calendar: {\n sameDay: '[ມື້ນີ້ເວລາ] LT',\n nextDay: '[ມື້ອື່ນເວລາ] LT',\n nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ອີກ %s',\n past: '%sຜ່ານມາ',\n s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n ss: '%d ວິນາທີ',\n m: '1 ນາທີ',\n mm: '%d ນາທີ',\n h: '1 ຊົ່ວໂມງ',\n hh: '%d ຊົ່ວໂມງ',\n d: '1 ມື້',\n dd: '%d ມື້',\n M: '1 ເດືອນ',\n MM: '%d ເດືອນ',\n y: '1 ປີ',\n yy: '%d ປີ'\n },\n dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n ordinal: function (number) {\n return 'ທີ່' + number;\n }\n });\n return lo;\n});","//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var units = {\n ss: 'sekundė_sekundžių_sekundes',\n m: 'minutė_minutės_minutę',\n mm: 'minutės_minučių_minutes',\n h: 'valanda_valandos_valandą',\n hh: 'valandos_valandų_valandas',\n d: 'diena_dienos_dieną',\n dd: 'dienos_dienų_dienas',\n M: 'mėnuo_mėnesio_mėnesį',\n MM: 'mėnesiai_mėnesių_mėnesius',\n y: 'metai_metų_metus',\n yy: 'metai_metų_metus'\n };\n function translateSeconds(number, withoutSuffix, key, isFuture) {\n if (withoutSuffix) {\n return 'kelios sekundės';\n } else {\n return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n }\n }\n function translateSingular(number, withoutSuffix, key, isFuture) {\n return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];\n }\n function special(number) {\n return number % 10 === 0 || number > 10 && number < 20;\n }\n function forms(key) {\n return units[key].split('_');\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n if (number === 1) {\n return result + translateSingular(number, withoutSuffix, key[0], isFuture);\n } else if (withoutSuffix) {\n return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n } else {\n if (isFuture) {\n return result + forms(key)[1];\n } else {\n return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n }\n }\n }\n var lt = moment.defineLocale('lt', {\n months: {\n format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),\n standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),\n isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/\n },\n monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n weekdays: {\n format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),\n standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),\n isFormat: /dddd HH:mm/\n },\n weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY [m.] MMMM D [d.]',\n LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n l: 'YYYY-MM-DD',\n ll: 'YYYY [m.] MMMM D [d.]',\n lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'\n },\n calendar: {\n sameDay: '[Šiandien] LT',\n nextDay: '[Rytoj] LT',\n nextWeek: 'dddd LT',\n lastDay: '[Vakar] LT',\n lastWeek: '[Praėjusį] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'po %s',\n past: 'prieš %s',\n s: translateSeconds,\n ss: translate,\n m: translateSingular,\n mm: translate,\n h: translateSingular,\n hh: translate,\n d: translateSingular,\n dd: translate,\n M: translateSingular,\n MM: translate,\n y: translateSingular,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n ordinal: function (number) {\n return number + '-oji';\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return lt;\n});","//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var units = {\n ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n h: 'stundas_stundām_stunda_stundas'.split('_'),\n hh: 'stundas_stundām_stunda_stundas'.split('_'),\n d: 'dienas_dienām_diena_dienas'.split('_'),\n dd: 'dienas_dienām_diena_dienas'.split('_'),\n M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n y: 'gada_gadiem_gads_gadi'.split('_'),\n yy: 'gada_gadiem_gads_gadi'.split('_')\n };\n /**\n * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n */\n function format(forms, number, withoutSuffix) {\n if (withoutSuffix) {\n // E.g. \"21 minūte\", \"3 minūtes\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n } else {\n // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n }\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n return number + ' ' + format(units[key], number, withoutSuffix);\n }\n function relativeTimeWithSingular(number, withoutSuffix, key) {\n return format(units[key], number, withoutSuffix);\n }\n function relativeSeconds(number, withoutSuffix) {\n return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n }\n var lv = moment.defineLocale('lv', {\n months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),\n monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),\n weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY.',\n LL: 'YYYY. [gada] D. MMMM',\n LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'\n },\n calendar: {\n sameDay: '[Šodien pulksten] LT',\n nextDay: '[Rīt pulksten] LT',\n nextWeek: 'dddd [pulksten] LT',\n lastDay: '[Vakar pulksten] LT',\n lastWeek: '[Pagājušā] dddd [pulksten] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'pēc %s',\n past: 'pirms %s',\n s: relativeSeconds,\n ss: relativeTimeWithPlural,\n m: relativeTimeWithSingular,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithSingular,\n hh: relativeTimeWithPlural,\n d: relativeTimeWithSingular,\n dd: relativeTimeWithPlural,\n M: relativeTimeWithSingular,\n MM: relativeTimeWithPlural,\n y: relativeTimeWithSingular,\n yy: relativeTimeWithPlural\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return lv;\n});","//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač : https://github.com/miodragnikac\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekund', 'sekunda', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mjesec', 'mjeseca', 'mjeseci'],\n yy: ['godina', 'godine', 'godina']\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\n }\n }\n };\n var me = moment.defineLocale('me', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sjutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mjesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return me;\n});","//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan : https://github.com/johnideal\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var mi = moment.defineLocale('mi', {\n months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),\n monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),\n monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [i] HH:mm',\n LLLL: 'dddd, D MMMM YYYY [i] HH:mm'\n },\n calendar: {\n sameDay: '[i teie mahana, i] LT',\n nextDay: '[apopo i] LT',\n nextWeek: 'dddd [i] LT',\n lastDay: '[inanahi i] LT',\n lastWeek: 'dddd [whakamutunga i] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'i roto i %s',\n past: '%s i mua',\n s: 'te hēkona ruarua',\n ss: '%d hēkona',\n m: 'he meneti',\n mm: '%d meneti',\n h: 'te haora',\n hh: '%d haora',\n d: 'he ra',\n dd: '%d ra',\n M: 'he marama',\n MM: '%d marama',\n y: 'he tau',\n yy: '%d tau'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return mi;\n});","//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var mk = moment.defineLocale('mk', {\n months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),\n monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),\n weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[Денес во] LT',\n nextDay: '[Утре во] LT',\n nextWeek: '[Во] dddd [во] LT',\n lastDay: '[Вчера во] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Изминатата] dddd [во] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Изминатиот] dddd [во] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'за %s',\n past: 'пред %s',\n s: 'неколку секунди',\n ss: '%d секунди',\n m: 'една минута',\n mm: '%d минути',\n h: 'еден час',\n hh: '%d часа',\n d: 'еден ден',\n dd: '%d дена',\n M: 'еден месец',\n MM: '%d месеци',\n y: 'една година',\n yy: '%d години'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return mk;\n});","//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ml = moment.defineLocale('ml', {\n months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),\n monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),\n monthsParseExact: true,\n weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),\n weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm -നു',\n LTS: 'A h:mm:ss -നു',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm -നു',\n LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'\n },\n calendar: {\n sameDay: '[ഇന്ന്] LT',\n nextDay: '[നാളെ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ഇന്നലെ] LT',\n lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s കഴിഞ്ഞ്',\n past: '%s മുൻപ്',\n s: 'അൽപ നിമിഷങ്ങൾ',\n ss: '%d സെക്കൻഡ്',\n m: 'ഒരു മിനിറ്റ്',\n mm: '%d മിനിറ്റ്',\n h: 'ഒരു മണിക്കൂർ',\n hh: '%d മണിക്കൂർ',\n d: 'ഒരു ദിവസം',\n dd: '%d ദിവസം',\n M: 'ഒരു മാസം',\n MM: '%d മാസം',\n y: 'ഒരു വർഷം',\n yy: '%d വർഷം'\n },\n meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'രാത്രി';\n } else if (hour < 12) {\n return 'രാവിലെ';\n } else if (hour < 17) {\n return 'ഉച്ച കഴിഞ്ഞ്';\n } else if (hour < 20) {\n return 'വൈകുന്നേരം';\n } else {\n return 'രാത്രി';\n }\n }\n });\n return ml;\n});","//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function translate(number, withoutSuffix, key, isFuture) {\n switch (key) {\n case 's':\n return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n case 'ss':\n return number + (withoutSuffix ? ' секунд' : ' секундын');\n case 'm':\n case 'mm':\n return number + (withoutSuffix ? ' минут' : ' минутын');\n case 'h':\n case 'hh':\n return number + (withoutSuffix ? ' цаг' : ' цагийн');\n case 'd':\n case 'dd':\n return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n case 'M':\n case 'MM':\n return number + (withoutSuffix ? ' сар' : ' сарын');\n case 'y':\n case 'yy':\n return number + (withoutSuffix ? ' жил' : ' жилийн');\n default:\n return number;\n }\n }\n var mn = moment.defineLocale('mn', {\n months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),\n monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),\n monthsParseExact: true,\n weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY оны MMMMын D',\n LLL: 'YYYY оны MMMMын D HH:mm',\n LLLL: 'dddd, YYYY оны MMMMын D HH:mm'\n },\n meridiemParse: /ҮӨ|ҮХ/i,\n isPM: function (input) {\n return input === 'ҮХ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ҮӨ';\n } else {\n return 'ҮХ';\n }\n },\n calendar: {\n sameDay: '[Өнөөдөр] LT',\n nextDay: '[Маргааш] LT',\n nextWeek: '[Ирэх] dddd LT',\n lastDay: '[Өчигдөр] LT',\n lastWeek: '[Өнгөрсөн] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s дараа',\n past: '%s өмнө',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + ' өдөр';\n default:\n return number;\n }\n }\n });\n return mn;\n});","//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '१',\n 2: '२',\n 3: '३',\n 4: '४',\n 5: '५',\n 6: '६',\n 7: '७',\n 8: '८',\n 9: '९',\n 0: '०'\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0'\n };\n function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n var output = '';\n if (withoutSuffix) {\n switch (string) {\n case 's':\n output = 'काही सेकंद';\n break;\n case 'ss':\n output = '%d सेकंद';\n break;\n case 'm':\n output = 'एक मिनिट';\n break;\n case 'mm':\n output = '%d मिनिटे';\n break;\n case 'h':\n output = 'एक तास';\n break;\n case 'hh':\n output = '%d तास';\n break;\n case 'd':\n output = 'एक दिवस';\n break;\n case 'dd':\n output = '%d दिवस';\n break;\n case 'M':\n output = 'एक महिना';\n break;\n case 'MM':\n output = '%d महिने';\n break;\n case 'y':\n output = 'एक वर्ष';\n break;\n case 'yy':\n output = '%d वर्षे';\n break;\n }\n } else {\n switch (string) {\n case 's':\n output = 'काही सेकंदां';\n break;\n case 'ss':\n output = '%d सेकंदां';\n break;\n case 'm':\n output = 'एका मिनिटा';\n break;\n case 'mm':\n output = '%d मिनिटां';\n break;\n case 'h':\n output = 'एका तासा';\n break;\n case 'hh':\n output = '%d तासां';\n break;\n case 'd':\n output = 'एका दिवसा';\n break;\n case 'dd':\n output = '%d दिवसां';\n break;\n case 'M':\n output = 'एका महिन्या';\n break;\n case 'MM':\n output = '%d महिन्यां';\n break;\n case 'y':\n output = 'एका वर्षा';\n break;\n case 'yy':\n output = '%d वर्षां';\n break;\n }\n }\n return output.replace(/%d/i, number);\n }\n var mr = moment.defineLocale('mr', {\n months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),\n monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm वाजता',\n LTS: 'A h:mm:ss वाजता',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm वाजता',\n LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[उद्या] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[काल] LT',\n lastWeek: '[मागील] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sमध्ये',\n past: '%sपूर्वी',\n s: relativeTimeMr,\n ss: relativeTimeMr,\n m: relativeTimeMr,\n mm: relativeTimeMr,\n h: relativeTimeMr,\n hh: relativeTimeMr,\n d: relativeTimeMr,\n dd: relativeTimeMr,\n M: relativeTimeMr,\n MM: relativeTimeMr,\n y: relativeTimeMr,\n yy: relativeTimeMr\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n return hour;\n } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {\n return hour >= 12 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour >= 0 && hour < 6) {\n return 'पहाटे';\n } else if (hour < 12) {\n return 'सकाळी';\n } else if (hour < 17) {\n return 'दुपारी';\n } else if (hour < 20) {\n return 'सायंकाळी';\n } else {\n return 'रात्री';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return mr;\n});","//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ms = moment.defineLocale('ms', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return ms;\n});","//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var msMy = moment.defineLocale('ms-my', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return msMy;\n});","//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var mt = moment.defineLocale('mt', {\n months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),\n monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),\n weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Illum fil-]LT',\n nextDay: '[Għada fil-]LT',\n nextWeek: 'dddd [fil-]LT',\n lastDay: '[Il-bieraħ fil-]LT',\n lastWeek: 'dddd [li għadda] [fil-]LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'f’ %s',\n past: '%s ilu',\n s: 'ftit sekondi',\n ss: '%d sekondi',\n m: 'minuta',\n mm: '%d minuti',\n h: 'siegħa',\n hh: '%d siegħat',\n d: 'ġurnata',\n dd: '%d ġranet',\n M: 'xahar',\n MM: '%d xhur',\n y: 'sena',\n yy: '%d sni'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return mt;\n});","//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '၁',\n 2: '၂',\n 3: '၃',\n 4: '၄',\n 5: '၅',\n 6: '၆',\n 7: '၇',\n 8: '၈',\n 9: '၉',\n 0: '၀'\n },\n numberMap = {\n '၁': '1',\n '၂': '2',\n '၃': '3',\n '၄': '4',\n '၅': '5',\n '၆': '6',\n '၇': '7',\n '၈': '8',\n '၉': '9',\n '၀': '0'\n };\n var my = moment.defineLocale('my', {\n months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),\n monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),\n weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[ယနေ.] LT [မှာ]',\n nextDay: '[မနက်ဖြန်] LT [မှာ]',\n nextWeek: 'dddd LT [မှာ]',\n lastDay: '[မနေ.က] LT [မှာ]',\n lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'လာမည့် %s မှာ',\n past: 'လွန်ခဲ့သော %s က',\n s: 'စက္ကန်.အနည်းငယ်',\n ss: '%d စက္ကန့်',\n m: 'တစ်မိနစ်',\n mm: '%d မိနစ်',\n h: 'တစ်နာရီ',\n hh: '%d နာရီ',\n d: 'တစ်ရက်',\n dd: '%d ရက်',\n M: 'တစ်လ',\n MM: '%d လ',\n y: 'တစ်နှစ်',\n yy: '%d နှစ်'\n },\n preparse: function (string) {\n return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return my;\n});","//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//! Sigurd Gartmann : https://github.com/sigurdga\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var nb = moment.defineLocale('nb', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n monthsParseExact: true,\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[forrige] dddd [kl.] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'noen sekunder',\n ss: '%d sekunder',\n m: 'ett minutt',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dager',\n w: 'en uke',\n ww: '%d uker',\n M: 'en måned',\n MM: '%d måneder',\n y: 'ett år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return nb;\n});","//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '१',\n 2: '२',\n 3: '३',\n 4: '४',\n 5: '५',\n 6: '६',\n 7: '७',\n 8: '८',\n 9: '९',\n 0: '०'\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0'\n };\n var ne = moment.defineLocale('ne', {\n months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),\n monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),\n monthsParseExact: true,\n weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),\n weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'Aको h:mm बजे',\n LTS: 'Aको h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, Aको h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राति') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'बिहान') {\n return hour;\n } else if (meridiem === 'दिउँसो') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'साँझ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 3) {\n return 'राति';\n } else if (hour < 12) {\n return 'बिहान';\n } else if (hour < 16) {\n return 'दिउँसो';\n } else if (hour < 20) {\n return 'साँझ';\n } else {\n return 'राति';\n }\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[भोलि] LT',\n nextWeek: '[आउँदो] dddd[,] LT',\n lastDay: '[हिजो] LT',\n lastWeek: '[गएको] dddd[,] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sमा',\n past: '%s अगाडि',\n s: 'केही क्षण',\n ss: '%d सेकेण्ड',\n m: 'एक मिनेट',\n mm: '%d मिनेट',\n h: 'एक घण्टा',\n hh: '%d घण्टा',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महिना',\n MM: '%d महिना',\n y: 'एक बर्ष',\n yy: '%d बर्ष'\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return ne;\n});","//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n var nl = moment.defineLocale('nl', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n w: 'één week',\n ww: '%d weken',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return nl;\n});","//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n var nlBe = moment.defineLocale('nl-be', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return nlBe;\n});","//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var nn = moment.defineLocale('nn', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n monthsParseExact: true,\n weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'\n },\n calendar: {\n sameDay: '[I dag klokka] LT',\n nextDay: '[I morgon klokka] LT',\n nextWeek: 'dddd [klokka] LT',\n lastDay: '[I går klokka] LT',\n lastWeek: '[Føregåande] dddd [klokka] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: '%s sidan',\n s: 'nokre sekund',\n ss: '%d sekund',\n m: 'eit minutt',\n mm: '%d minutt',\n h: 'ein time',\n hh: '%d timar',\n d: 'ein dag',\n dd: '%d dagar',\n w: 'ei veke',\n ww: '%d veker',\n M: 'ein månad',\n MM: '%d månader',\n y: 'eit år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return nn;\n});","//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ocLnc = moment.defineLocale('oc-lnc', {\n months: {\n standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),\n format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split('_'),\n isFormat: /D[oD]?(\\s)+MMMM/\n },\n monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),\n weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n llll: 'ddd D MMM YYYY, H:mm'\n },\n calendar: {\n sameDay: '[uèi a] LT',\n nextDay: '[deman a] LT',\n nextWeek: 'dddd [a] LT',\n lastDay: '[ièr a] LT',\n lastWeek: 'dddd [passat a] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'unas segondas',\n ss: '%d segondas',\n m: 'una minuta',\n mm: '%d minutas',\n h: 'una ora',\n hh: '%d oras',\n d: 'un jorn',\n dd: '%d jorns',\n M: 'un mes',\n MM: '%d meses',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4\n }\n });\n return ocLnc;\n});","//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '੧',\n 2: '੨',\n 3: '੩',\n 4: '੪',\n 5: '੫',\n 6: '੬',\n 7: '੭',\n 8: '੮',\n 9: '੯',\n 0: '੦'\n },\n numberMap = {\n '੧': '1',\n '੨': '2',\n '੩': '3',\n '੪': '4',\n '੫': '5',\n '੬': '6',\n '੭': '7',\n '੮': '8',\n '੯': '9',\n '੦': '0'\n };\n var paIn = moment.defineLocale('pa-in', {\n // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),\n monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),\n weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),\n weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm ਵਜੇ',\n LTS: 'A h:mm:ss ਵਜੇ',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'\n },\n calendar: {\n sameDay: '[ਅਜ] LT',\n nextDay: '[ਕਲ] LT',\n nextWeek: '[ਅਗਲਾ] dddd, LT',\n lastDay: '[ਕਲ] LT',\n lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ਵਿੱਚ',\n past: '%s ਪਿਛਲੇ',\n s: 'ਕੁਝ ਸਕਿੰਟ',\n ss: '%d ਸਕਿੰਟ',\n m: 'ਇਕ ਮਿੰਟ',\n mm: '%d ਮਿੰਟ',\n h: 'ਇੱਕ ਘੰਟਾ',\n hh: '%d ਘੰਟੇ',\n d: 'ਇੱਕ ਦਿਨ',\n dd: '%d ਦਿਨ',\n M: 'ਇੱਕ ਮਹੀਨਾ',\n MM: '%d ਮਹੀਨੇ',\n y: 'ਇੱਕ ਸਾਲ',\n yy: '%d ਸਾਲ'\n },\n preparse: function (string) {\n return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ਰਾਤ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ਸਵੇਰ') {\n return hour;\n } else if (meridiem === 'ਦੁਪਹਿਰ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ਸ਼ਾਮ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ਰਾਤ';\n } else if (hour < 10) {\n return 'ਸਵੇਰ';\n } else if (hour < 17) {\n return 'ਦੁਪਹਿਰ';\n } else if (hour < 20) {\n return 'ਸ਼ਾਮ';\n } else {\n return 'ਰਾਤ';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return paIn;\n});","//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),\n monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),\n monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];\n function plural(n) {\n return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n }\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n return result + (plural(number) ? 'sekundy' : 'sekund');\n case 'm':\n return withoutSuffix ? 'minuta' : 'minutę';\n case 'mm':\n return result + (plural(number) ? 'minuty' : 'minut');\n case 'h':\n return withoutSuffix ? 'godzina' : 'godzinę';\n case 'hh':\n return result + (plural(number) ? 'godziny' : 'godzin');\n case 'ww':\n return result + (plural(number) ? 'tygodnie' : 'tygodni');\n case 'MM':\n return result + (plural(number) ? 'miesiące' : 'miesięcy');\n case 'yy':\n return result + (plural(number) ? 'lata' : 'lat');\n }\n }\n var pl = moment.defineLocale('pl', {\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return monthsNominative;\n } else if (/D MMMM/.test(format)) {\n return monthsSubjective[momentToFormat.month()];\n } else {\n return monthsNominative[momentToFormat.month()];\n }\n },\n monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),\n weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Dziś o] LT',\n nextDay: '[Jutro o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W niedzielę o] LT';\n case 2:\n return '[We wtorek o] LT';\n case 3:\n return '[W środę o] LT';\n case 6:\n return '[W sobotę o] LT';\n default:\n return '[W] dddd [o] LT';\n }\n },\n lastDay: '[Wczoraj o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W zeszłą niedzielę o] LT';\n case 3:\n return '[W zeszłą środę o] LT';\n case 6:\n return '[W zeszłą sobotę o] LT';\n default:\n return '[W zeszły] dddd [o] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: '%s temu',\n s: 'kilka sekund',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: '1 dzień',\n dd: '%d dni',\n w: 'tydzień',\n ww: translate,\n M: 'miesiąc',\n MM: translate,\n y: 'rok',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return pl;\n});","//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var pt = moment.defineLocale('pt', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),\n weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n\n sameElse: 'L'\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n w: 'uma semana',\n ww: '%d semanas',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return pt;\n});","//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: 'secunde',\n mm: 'minute',\n hh: 'ore',\n dd: 'zile',\n ww: 'săptămâni',\n MM: 'luni',\n yy: 'ani'\n },\n separator = ' ';\n if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {\n separator = ' de ';\n }\n return number + separator + format[key];\n }\n var ro = moment.defineLocale('ro', {\n months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),\n monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[azi la] LT',\n nextDay: '[mâine la] LT',\n nextWeek: 'dddd [la] LT',\n lastDay: '[ieri la] LT',\n lastWeek: '[fosta] dddd [la] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'peste %s',\n past: '%s în urmă',\n s: 'câteva secunde',\n ss: relativeTimeWithPlural,\n m: 'un minut',\n mm: relativeTimeWithPlural,\n h: 'o oră',\n hh: relativeTimeWithPlural,\n d: 'o zi',\n dd: relativeTimeWithPlural,\n w: 'o săptămână',\n ww: relativeTimeWithPlural,\n M: 'o lună',\n MM: relativeTimeWithPlural,\n y: 'un an',\n yy: relativeTimeWithPlural\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return ro;\n});","//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n hh: 'час_часа_часов',\n dd: 'день_дня_дней',\n ww: 'неделя_недели_недель',\n MM: 'месяц_месяца_месяцев',\n yy: 'год_года_лет'\n };\n if (key === 'm') {\n return withoutSuffix ? 'минута' : 'минуту';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];\n\n // http://new.gramota.ru/spravka/rules/139-prop : § 103\n // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n var ru = moment.defineLocale('ru', {\n months: {\n format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),\n standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')\n },\n monthsShort: {\n // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку?\n format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),\n standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')\n },\n weekdays: {\n standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),\n format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),\n isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/\n },\n weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n monthsRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n // копия предыдущего\n monthsShortRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n // полные названия с падежами\n monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n // Выражение, которое соответствует только сокращённым формам\n monthsShortStrictRegex: /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., H:mm',\n LLLL: 'dddd, D MMMM YYYY г., H:mm'\n },\n calendar: {\n sameDay: '[Сегодня, в] LT',\n nextDay: '[Завтра, в] LT',\n lastDay: '[Вчера, в] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В следующее] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В следующий] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В следующую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n lastWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В прошлое] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В прошлый] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В прошлую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'через %s',\n past: '%s назад',\n s: 'несколько секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'час',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n w: 'неделя',\n ww: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural\n },\n meridiemParse: /ночи|утра|дня|вечера/i,\n isPM: function (input) {\n return /^(дня|вечера)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночи';\n } else if (hour < 12) {\n return 'утра';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечера';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n return number + '-й';\n case 'D':\n return number + '-го';\n case 'w':\n case 'W':\n return number + '-я';\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return ru;\n});","//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],\n days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n var sd = moment.defineLocale('sd', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm'\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[اڄ] LT',\n nextDay: '[سڀاڻي] LT',\n nextWeek: 'dddd [اڳين هفتي تي] LT',\n lastDay: '[ڪالهه] LT',\n lastWeek: '[گزريل هفتي] dddd [تي] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s پوء',\n past: '%s اڳ',\n s: 'چند سيڪنڊ',\n ss: '%d سيڪنڊ',\n m: 'هڪ منٽ',\n mm: '%d منٽ',\n h: 'هڪ ڪلاڪ',\n hh: '%d ڪلاڪ',\n d: 'هڪ ڏينهن',\n dd: '%d ڏينهن',\n M: 'هڪ مهينو',\n MM: '%d مهينا',\n y: 'هڪ سال',\n yy: '%d سال'\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return sd;\n});","//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var se = moment.defineLocale('se', {\n months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),\n monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),\n weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),\n weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'MMMM D. [b.] YYYY',\n LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'\n },\n calendar: {\n sameDay: '[otne ti] LT',\n nextDay: '[ihttin ti] LT',\n nextWeek: 'dddd [ti] LT',\n lastDay: '[ikte ti] LT',\n lastWeek: '[ovddit] dddd [ti] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s geažes',\n past: 'maŋit %s',\n s: 'moadde sekunddat',\n ss: '%d sekunddat',\n m: 'okta minuhta',\n mm: '%d minuhtat',\n h: 'okta diimmu',\n hh: '%d diimmut',\n d: 'okta beaivi',\n dd: '%d beaivvit',\n M: 'okta mánnu',\n MM: '%d mánut',\n y: 'okta jahki',\n yy: '%d jagit'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return se;\n});","//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n\n /*jshint -W100*/\n var si = moment.defineLocale('si', {\n months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),\n monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),\n weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),\n weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),\n weekdaysMin: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'a h:mm',\n LTS: 'a h:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY MMMM D',\n LLL: 'YYYY MMMM D, a h:mm',\n LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'\n },\n calendar: {\n sameDay: '[අද] LT[ට]',\n nextDay: '[හෙට] LT[ට]',\n nextWeek: 'dddd LT[ට]',\n lastDay: '[ඊයේ] LT[ට]',\n lastWeek: '[පසුගිය] dddd LT[ට]',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sකින්',\n past: '%sකට පෙර',\n s: 'තත්පර කිහිපය',\n ss: 'තත්පර %d',\n m: 'මිනිත්තුව',\n mm: 'මිනිත්තු %d',\n h: 'පැය',\n hh: 'පැය %d',\n d: 'දිනය',\n dd: 'දින %d',\n M: 'මාසය',\n MM: 'මාස %d',\n y: 'වසර',\n yy: 'වසර %d'\n },\n dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n ordinal: function (number) {\n return number + ' වැනි';\n },\n meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n isPM: function (input) {\n return input === 'ප.ව.' || input === 'පස් වරු';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'ප.ව.' : 'පස් වරු';\n } else {\n return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n }\n }\n });\n return si;\n});","//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),\n monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n function plural(n) {\n return n > 1 && n < 5;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n case 'ss':\n // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekúnd');\n } else {\n return result + 'sekundami';\n }\n case 'm':\n // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n case 'mm':\n // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minúty' : 'minút');\n } else {\n return result + 'minútami';\n }\n case 'h':\n // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh':\n // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodín');\n } else {\n return result + 'hodinami';\n }\n case 'd':\n // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'deň' : 'dňom';\n case 'dd':\n // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dni' : 'dní');\n } else {\n return result + 'dňami';\n }\n case 'M':\n // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n case 'MM':\n // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'mesiace' : 'mesiacov');\n } else {\n return result + 'mesiacmi';\n }\n case 'y':\n // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokom';\n case 'yy':\n // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'rokov');\n } else {\n return result + 'rokmi';\n }\n }\n }\n var sk = moment.defineLocale('sk', {\n months: months,\n monthsShort: monthsShort,\n weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[dnes o] LT',\n nextDay: '[zajtra o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v nedeľu o] LT';\n case 1:\n case 2:\n return '[v] dddd [o] LT';\n case 3:\n return '[v stredu o] LT';\n case 4:\n return '[vo štvrtok o] LT';\n case 5:\n return '[v piatok o] LT';\n case 6:\n return '[v sobotu o] LT';\n }\n },\n lastDay: '[včera o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulú nedeľu o] LT';\n case 1:\n case 2:\n return '[minulý] dddd [o] LT';\n case 3:\n return '[minulú stredu o] LT';\n case 4:\n case 5:\n return '[minulý] dddd [o] LT';\n case 6:\n return '[minulú sobotu o] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'pred %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return sk;\n});","//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';\n case 'ss':\n if (number === 1) {\n result += withoutSuffix ? 'sekundo' : 'sekundi';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n } else {\n result += 'sekund';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'ena minuta' : 'eno minuto';\n case 'mm':\n if (number === 1) {\n result += withoutSuffix ? 'minuta' : 'minuto';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n } else {\n result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'ena ura' : 'eno uro';\n case 'hh':\n if (number === 1) {\n result += withoutSuffix ? 'ura' : 'uro';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'uri' : 'urama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'ure' : 'urami';\n } else {\n result += withoutSuffix || isFuture ? 'ur' : 'urami';\n }\n return result;\n case 'd':\n return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n case 'dd':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n } else {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n }\n return result;\n case 'M':\n return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n case 'MM':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n } else {\n result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n }\n return result;\n case 'y':\n return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n case 'yy':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'leto' : 'letom';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'leta' : 'leti';\n } else {\n result += withoutSuffix || isFuture ? 'let' : 'leti';\n }\n return result;\n }\n }\n var sl = moment.defineLocale('sl', {\n months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD. MM. YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danes ob] LT',\n nextDay: '[jutri ob] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v] [nedeljo] [ob] LT';\n case 3:\n return '[v] [sredo] [ob] LT';\n case 6:\n return '[v] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[v] dddd [ob] LT';\n }\n },\n lastDay: '[včeraj ob] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prejšnjo] [nedeljo] [ob] LT';\n case 3:\n return '[prejšnjo] [sredo] [ob] LT';\n case 6:\n return '[prejšnjo] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prejšnji] dddd [ob] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'čez %s',\n past: 'pred %s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return sl;\n});","//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var sq = moment.defineLocale('sq', {\n months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),\n monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),\n weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /PD|MD/,\n isPM: function (input) {\n return input.charAt(0) === 'M';\n },\n meridiem: function (hours, minutes, isLower) {\n return hours < 12 ? 'PD' : 'MD';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Sot në] LT',\n nextDay: '[Nesër në] LT',\n nextWeek: 'dddd [në] LT',\n lastDay: '[Dje në] LT',\n lastWeek: 'dddd [e kaluar në] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'në %s',\n past: '%s më parë',\n s: 'disa sekonda',\n ss: '%d sekonda',\n m: 'një minutë',\n mm: '%d minuta',\n h: 'një orë',\n hh: '%d orë',\n d: 'një ditë',\n dd: '%d ditë',\n M: 'një muaj',\n MM: '%d muaj',\n y: 'një vit',\n yy: '%d vite'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return sq;\n});","//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković : https://github.com/milan-j\n//! author : Stefan Crnjaković : https://github.com/crnjakovic\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekunda', 'sekunde', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n d: ['jedan dan', 'jednog dana'],\n dd: ['dan', 'dana', 'dana'],\n M: ['jedan mesec', 'jednog meseca'],\n MM: ['mesec', 'meseca', 'meseci'],\n y: ['jednu godinu', 'jedne godine'],\n yy: ['godinu', 'godine', 'godina']\n },\n correctGrammaticalCase: function (number, wordKey) {\n if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {\n return number % 10 === 1 ? wordKey[0] : wordKey[1];\n }\n return wordKey[2];\n },\n translate: function (number, withoutSuffix, key, isFuture) {\n var wordKey = translator.words[key],\n word;\n if (key.length === 1) {\n // Nominativ\n if (key === 'y' && withoutSuffix) return 'jedna godina';\n return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n }\n word = translator.correctGrammaticalCase(number, wordKey);\n // Nominativ\n if (key === 'yy' && withoutSuffix && word === 'godinu') {\n return number + ' godina';\n }\n return number + ' ' + word;\n }\n };\n var sr = moment.defineLocale('sr', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D. M. YYYY.',\n LL: 'D. MMMM YYYY.',\n LLL: 'D. MMMM YYYY. H:mm',\n LLLL: 'dddd, D. MMMM YYYY. H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedelju] [u] LT';\n case 3:\n return '[u] [sredu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'pre %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: translator.translate,\n dd: translator.translate,\n M: translator.translate,\n MM: translator.translate,\n y: translator.translate,\n yy: translator.translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return sr;\n});","//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković : https://github.com/milan-j\n//! author : Stefan Crnjaković : https://github.com/crnjakovic\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['секунда', 'секунде', 'секунди'],\n m: ['један минут', 'једног минута'],\n mm: ['минут', 'минута', 'минута'],\n h: ['један сат', 'једног сата'],\n hh: ['сат', 'сата', 'сати'],\n d: ['један дан', 'једног дана'],\n dd: ['дан', 'дана', 'дана'],\n M: ['један месец', 'једног месеца'],\n MM: ['месец', 'месеца', 'месеци'],\n y: ['једну годину', 'једне године'],\n yy: ['годину', 'године', 'година']\n },\n correctGrammaticalCase: function (number, wordKey) {\n if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {\n return number % 10 === 1 ? wordKey[0] : wordKey[1];\n }\n return wordKey[2];\n },\n translate: function (number, withoutSuffix, key, isFuture) {\n var wordKey = translator.words[key],\n word;\n if (key.length === 1) {\n // Nominativ\n if (key === 'y' && withoutSuffix) return 'једна година';\n return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n }\n word = translator.correctGrammaticalCase(number, wordKey);\n // Nominativ\n if (key === 'yy' && withoutSuffix && word === 'годину') {\n return number + ' година';\n }\n return number + ' ' + word;\n }\n };\n var srCyrl = moment.defineLocale('sr-cyrl', {\n months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),\n monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),\n monthsParseExact: true,\n weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D. M. YYYY.',\n LL: 'D. MMMM YYYY.',\n LLL: 'D. MMMM YYYY. H:mm',\n LLLL: 'dddd, D. MMMM YYYY. H:mm'\n },\n calendar: {\n sameDay: '[данас у] LT',\n nextDay: '[сутра у] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[у] [недељу] [у] LT';\n case 3:\n return '[у] [среду] [у] LT';\n case 6:\n return '[у] [суботу] [у] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[у] dddd [у] LT';\n }\n },\n lastDay: '[јуче у] LT',\n lastWeek: function () {\n var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'за %s',\n past: 'пре %s',\n s: 'неколико секунди',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: translator.translate,\n dd: translator.translate,\n M: translator.translate,\n MM: translator.translate,\n y: translator.translate,\n yy: translator.translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 1st is the first week of the year.\n }\n });\n\n return srCyrl;\n});","//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies : https://github.com/nicolaidavies\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ss = moment.defineLocale('ss', {\n months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split('_'),\n monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),\n weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Namuhla nga] LT',\n nextDay: '[Kusasa nga] LT',\n nextWeek: 'dddd [nga] LT',\n lastDay: '[Itolo nga] LT',\n lastWeek: 'dddd [leliphelile] [nga] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'nga %s',\n past: 'wenteka nga %s',\n s: 'emizuzwana lomcane',\n ss: '%d mzuzwana',\n m: 'umzuzu',\n mm: '%d emizuzu',\n h: 'lihora',\n hh: '%d emahora',\n d: 'lilanga',\n dd: '%d emalanga',\n M: 'inyanga',\n MM: '%d tinyanga',\n y: 'umnyaka',\n yy: '%d iminyaka'\n },\n meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'ekuseni';\n } else if (hours < 15) {\n return 'emini';\n } else if (hours < 19) {\n return 'entsambama';\n } else {\n return 'ebusuku';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ekuseni') {\n return hour;\n } else if (meridiem === 'emini') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n if (hour === 0) {\n return 0;\n }\n return hour + 12;\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: '%d',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return ss;\n});","//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var sv = moment.defineLocale('sv', {\n months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd D MMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Idag] LT',\n nextDay: '[Imorgon] LT',\n lastDay: '[Igår] LT',\n nextWeek: '[På] dddd LT',\n lastWeek: '[I] dddd[s] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: 'för %s sedan',\n s: 'några sekunder',\n ss: '%d sekunder',\n m: 'en minut',\n mm: '%d minuter',\n h: 'en timme',\n hh: '%d timmar',\n d: 'en dag',\n dd: '%d dagar',\n M: 'en månad',\n MM: '%d månader',\n y: 'ett år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return sv;\n});","//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var sw = moment.defineLocale('sw', {\n months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),\n weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'hh:mm A',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[leo saa] LT',\n nextDay: '[kesho saa] LT',\n nextWeek: '[wiki ijayo] dddd [saat] LT',\n lastDay: '[jana] LT',\n lastWeek: '[wiki iliyopita] dddd [saat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s baadaye',\n past: 'tokea %s',\n s: 'hivi punde',\n ss: 'sekunde %d',\n m: 'dakika moja',\n mm: 'dakika %d',\n h: 'saa limoja',\n hh: 'masaa %d',\n d: 'siku moja',\n dd: 'siku %d',\n M: 'mwezi mmoja',\n MM: 'miezi %d',\n y: 'mwaka mmoja',\n yy: 'miaka %d'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return sw;\n});","//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var symbolMap = {\n 1: '௧',\n 2: '௨',\n 3: '௩',\n 4: '௪',\n 5: '௫',\n 6: '௬',\n 7: '௭',\n 8: '௮',\n 9: '௯',\n 0: '௦'\n },\n numberMap = {\n '௧': '1',\n '௨': '2',\n '௩': '3',\n '௪': '4',\n '௫': '5',\n '௬': '6',\n '௭': '7',\n '௮': '8',\n '௯': '9',\n '௦': '0'\n };\n var ta = moment.defineLocale('ta', {\n months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\n monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\n weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),\n weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),\n weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, HH:mm',\n LLLL: 'dddd, D MMMM YYYY, HH:mm'\n },\n calendar: {\n sameDay: '[இன்று] LT',\n nextDay: '[நாளை] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[நேற்று] LT',\n lastWeek: '[கடந்த வாரம்] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s இல்',\n past: '%s முன்',\n s: 'ஒரு சில விநாடிகள்',\n ss: '%d விநாடிகள்',\n m: 'ஒரு நிமிடம்',\n mm: '%d நிமிடங்கள்',\n h: 'ஒரு மணி நேரம்',\n hh: '%d மணி நேரம்',\n d: 'ஒரு நாள்',\n dd: '%d நாட்கள்',\n M: 'ஒரு மாதம்',\n MM: '%d மாதங்கள்',\n y: 'ஒரு வருடம்',\n yy: '%d ஆண்டுகள்'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n ordinal: function (number) {\n return number + 'வது';\n },\n preparse: function (string) {\n return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // refer http://ta.wikipedia.org/s/1er1\n meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n meridiem: function (hour, minute, isLower) {\n if (hour < 2) {\n return ' யாமம்';\n } else if (hour < 6) {\n return ' வைகறை'; // வைகறை\n } else if (hour < 10) {\n return ' காலை'; // காலை\n } else if (hour < 14) {\n return ' நண்பகல்'; // நண்பகல்\n } else if (hour < 18) {\n return ' எற்பாடு'; // எற்பாடு\n } else if (hour < 22) {\n return ' மாலை'; // மாலை\n } else {\n return ' யாமம்';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'யாமம்') {\n return hour < 2 ? hour : hour + 12;\n } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n return hour;\n } else if (meridiem === 'நண்பகல்') {\n return hour >= 10 ? hour : hour + 12;\n } else {\n return hour + 12;\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return ta;\n});","//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var te = moment.defineLocale('te', {\n months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),\n monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),\n monthsParseExact: true,\n weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),\n weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm'\n },\n calendar: {\n sameDay: '[నేడు] LT',\n nextDay: '[రేపు] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[నిన్న] LT',\n lastWeek: '[గత] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s లో',\n past: '%s క్రితం',\n s: 'కొన్ని క్షణాలు',\n ss: '%d సెకన్లు',\n m: 'ఒక నిమిషం',\n mm: '%d నిమిషాలు',\n h: 'ఒక గంట',\n hh: '%d గంటలు',\n d: 'ఒక రోజు',\n dd: '%d రోజులు',\n M: 'ఒక నెల',\n MM: '%d నెలలు',\n y: 'ఒక సంవత్సరం',\n yy: '%d సంవత్సరాలు'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n ordinal: '%dవ',\n meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'రాత్రి') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ఉదయం') {\n return hour;\n } else if (meridiem === 'మధ్యాహ్నం') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'సాయంత్రం') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'రాత్రి';\n } else if (hour < 10) {\n return 'ఉదయం';\n } else if (hour < 17) {\n return 'మధ్యాహ్నం';\n } else if (hour < 20) {\n return 'సాయంత్రం';\n } else {\n return 'రాత్రి';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n }\n });\n\n return te;\n});","//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var tet = moment.defineLocale('tet', {\n months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),\n monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Ohin iha] LT',\n nextDay: '[Aban iha] LT',\n nextWeek: 'dddd [iha] LT',\n lastDay: '[Horiseik iha] LT',\n lastWeek: 'dddd [semana kotuk] [iha] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'iha %s',\n past: '%s liuba',\n s: 'segundu balun',\n ss: 'segundu %d',\n m: 'minutu ida',\n mm: 'minutu %d',\n h: 'oras ida',\n hh: 'oras %d',\n d: 'loron ida',\n dd: 'loron %d',\n M: 'fulan ida',\n MM: 'fulan %d',\n y: 'tinan ida',\n yy: 'tinan %d'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return tet;\n});","//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var suffixes = {\n 0: '-ум',\n 1: '-ум',\n 2: '-юм',\n 3: '-юм',\n 4: '-ум',\n 5: '-ум',\n 6: '-ум',\n 7: '-ум',\n 8: '-ум',\n 9: '-ум',\n 10: '-ум',\n 12: '-ум',\n 13: '-ум',\n 20: '-ум',\n 30: '-юм',\n 40: '-ум',\n 50: '-ум',\n 60: '-ум',\n 70: '-ум',\n 80: '-ум',\n 90: '-ум',\n 100: '-ум'\n };\n var tg = moment.defineLocale('tg', {\n months: {\n format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),\n standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')\n },\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),\n weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Имрӯз соати] LT',\n nextDay: '[Фардо соати] LT',\n lastDay: '[Дирӯз соати] LT',\n nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'баъди %s',\n past: '%s пеш',\n s: 'якчанд сония',\n m: 'як дақиқа',\n mm: '%d дақиқа',\n h: 'як соат',\n hh: '%d соат',\n d: 'як рӯз',\n dd: '%d рӯз',\n M: 'як моҳ',\n MM: '%d моҳ',\n y: 'як сол',\n yy: '%d сол'\n },\n meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'шаб') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'субҳ') {\n return hour;\n } else if (meridiem === 'рӯз') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'бегоҳ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'шаб';\n } else if (hour < 11) {\n return 'субҳ';\n } else if (hour < 16) {\n return 'рӯз';\n } else if (hour < 19) {\n return 'бегоҳ';\n } else {\n return 'шаб';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 1th is the first week of the year.\n }\n });\n\n return tg;\n});","//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var th = moment.defineLocale('th', {\n months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),\n monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),\n monthsParseExact: true,\n weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),\n // yes, three characters difference\n weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY เวลา H:mm',\n LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'\n },\n meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n isPM: function (input) {\n return input === 'หลังเที่ยง';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ก่อนเที่ยง';\n } else {\n return 'หลังเที่ยง';\n }\n },\n calendar: {\n sameDay: '[วันนี้ เวลา] LT',\n nextDay: '[พรุ่งนี้ เวลา] LT',\n nextWeek: 'dddd[หน้า เวลา] LT',\n lastDay: '[เมื่อวานนี้ เวลา] LT',\n lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'อีก %s',\n past: '%sที่แล้ว',\n s: 'ไม่กี่วินาที',\n ss: '%d วินาที',\n m: '1 นาที',\n mm: '%d นาที',\n h: '1 ชั่วโมง',\n hh: '%d ชั่วโมง',\n d: '1 วัน',\n dd: '%d วัน',\n w: '1 สัปดาห์',\n ww: '%d สัปดาห์',\n M: '1 เดือน',\n MM: '%d เดือน',\n y: '1 ปี',\n yy: '%d ปี'\n }\n });\n return th;\n});","//! moment.js locale configuration\n//! locale : Turkmen [tk]\n//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var suffixes = {\n 1: \"'inji\",\n 5: \"'inji\",\n 8: \"'inji\",\n 70: \"'inji\",\n 80: \"'inji\",\n 2: \"'nji\",\n 7: \"'nji\",\n 20: \"'nji\",\n 50: \"'nji\",\n 3: \"'ünji\",\n 4: \"'ünji\",\n 100: \"'ünji\",\n 6: \"'njy\",\n 9: \"'unjy\",\n 10: \"'unjy\",\n 30: \"'unjy\",\n 60: \"'ynjy\",\n 90: \"'ynjy\"\n };\n var tk = moment.defineLocale('tk', {\n months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),\n monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),\n weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),\n weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),\n weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[bugün sagat] LT',\n nextDay: '[ertir sagat] LT',\n nextWeek: '[indiki] dddd [sagat] LT',\n lastDay: '[düýn] LT',\n lastWeek: '[geçen] dddd [sagat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s soň',\n past: '%s öň',\n s: 'birnäçe sekunt',\n m: 'bir minut',\n mm: '%d minut',\n h: 'bir sagat',\n hh: '%d sagat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir aý',\n MM: '%d aý',\n y: 'bir ýyl',\n yy: '%d ýyl'\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'unjy\";\n }\n var a = number % 10,\n b = number % 100 - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return tk;\n});","//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var tlPh = moment.defineLocale('tl-ph', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm'\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return tlPh;\n});","//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n function translateFuture(output) {\n var time = output;\n time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';\n return time;\n }\n function translatePast(output) {\n var time = output;\n time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';\n return time;\n }\n function translate(number, withoutSuffix, string, isFuture) {\n var numberNoun = numberAsNoun(number);\n switch (string) {\n case 'ss':\n return numberNoun + ' lup';\n case 'mm':\n return numberNoun + ' tup';\n case 'hh':\n return numberNoun + ' rep';\n case 'dd':\n return numberNoun + ' jaj';\n case 'MM':\n return numberNoun + ' jar';\n case 'yy':\n return numberNoun + ' DIS';\n }\n }\n function numberAsNoun(number) {\n var hundred = Math.floor(number % 1000 / 100),\n ten = Math.floor(number % 100 / 10),\n one = number % 10,\n word = '';\n if (hundred > 0) {\n word += numbersNouns[hundred] + 'vatlh';\n }\n if (ten > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n }\n if (one > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[one];\n }\n return word === '' ? 'pagh' : word;\n }\n var tlh = moment.defineLocale('tlh', {\n months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),\n monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),\n monthsParseExact: true,\n weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[DaHjaj] LT',\n nextDay: '[wa’leS] LT',\n nextWeek: 'LLL',\n lastDay: '[wa’Hu’] LT',\n lastWeek: 'LLL',\n sameElse: 'L'\n },\n relativeTime: {\n future: translateFuture,\n past: translatePast,\n s: 'puS lup',\n ss: translate,\n m: 'wa’ tup',\n mm: translate,\n h: 'wa’ rep',\n hh: translate,\n d: 'wa’ jaj',\n dd: translate,\n M: 'wa’ jar',\n MM: translate,\n y: 'wa’ DIS',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return tlh;\n});","//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//! Burak Yiğit Kaya: https://github.com/BYK\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var suffixes = {\n 1: \"'inci\",\n 5: \"'inci\",\n 8: \"'inci\",\n 70: \"'inci\",\n 80: \"'inci\",\n 2: \"'nci\",\n 7: \"'nci\",\n 20: \"'nci\",\n 50: \"'nci\",\n 3: \"'üncü\",\n 4: \"'üncü\",\n 100: \"'üncü\",\n 6: \"'ncı\",\n 9: \"'uncu\",\n 10: \"'uncu\",\n 30: \"'uncu\",\n 60: \"'ıncı\",\n 90: \"'ıncı\"\n };\n var tr = moment.defineLocale('tr', {\n months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),\n monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),\n weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),\n weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'öö' : 'ÖÖ';\n } else {\n return isLower ? 'ös' : 'ÖS';\n }\n },\n meridiemParse: /öö|ÖÖ|ös|ÖS/,\n isPM: function (input) {\n return input === 'ös' || input === 'ÖS';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[yarın saat] LT',\n nextWeek: '[gelecek] dddd [saat] LT',\n lastDay: '[dün] LT',\n lastWeek: '[geçen] dddd [saat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s önce',\n s: 'birkaç saniye',\n ss: '%d saniye',\n m: 'bir dakika',\n mm: '%d dakika',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n w: 'bir hafta',\n ww: '%d hafta',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir yıl',\n yy: '%d yıl'\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'ıncı\";\n }\n var a = number % 10,\n b = number % 100 - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return tr;\n});","//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n\n // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n // This is currently too difficult (maybe even impossible) to add.\n var tzl = moment.defineLocale('tzl', {\n months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),\n monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM [dallas] YYYY',\n LLL: 'D. MMMM [dallas] YYYY HH.mm',\n LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'\n },\n meridiemParse: /d\\'o|d\\'a/i,\n isPM: function (input) {\n return \"d'o\" === input.toLowerCase();\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? \"d'o\" : \"D'O\";\n } else {\n return isLower ? \"d'a\" : \"D'A\";\n }\n },\n calendar: {\n sameDay: '[oxhi à] LT',\n nextDay: '[demà à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[ieiri à] LT',\n lastWeek: '[sür el] dddd [lasteu à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'osprei %s',\n past: 'ja%s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['viensas secunds', \"'iensas secunds\"],\n ss: [number + ' secunds', '' + number + ' secunds'],\n m: [\"'n míut\", \"'iens míut\"],\n mm: [number + ' míuts', '' + number + ' míuts'],\n h: [\"'n þora\", \"'iensa þora\"],\n hh: [number + ' þoras', '' + number + ' þoras'],\n d: [\"'n ziua\", \"'iensa ziua\"],\n dd: [number + ' ziuas', '' + number + ' ziuas'],\n M: [\"'n mes\", \"'iens mes\"],\n MM: [number + ' mesen', '' + number + ' mesen'],\n y: [\"'n ar\", \"'iens ar\"],\n yy: [number + ' ars', '' + number + ' ars']\n };\n return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];\n }\n return tzl;\n});","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var tzm = moment.defineLocale('tzm', {\n months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\n monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\n weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n nextWeek: 'dddd [ⴴ] LT',\n lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n lastWeek: 'dddd [ⴴ] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n past: 'ⵢⴰⵏ %s',\n s: 'ⵉⵎⵉⴽ',\n ss: '%d ⵉⵎⵉⴽ',\n m: 'ⵎⵉⵏⵓⴺ',\n mm: '%d ⵎⵉⵏⵓⴺ',\n h: 'ⵙⴰⵄⴰ',\n hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n d: 'ⴰⵙⵙ',\n dd: '%d oⵙⵙⴰⵏ',\n M: 'ⴰⵢoⵓⵔ',\n MM: '%d ⵉⵢⵢⵉⵔⵏ',\n y: 'ⴰⵙⴳⴰⵙ',\n yy: '%d ⵉⵙⴳⴰⵙⵏ'\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return tzm;\n});","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var tzmLatn = moment.defineLocale('tzm-latn', {\n months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\n monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\n weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[asdkh g] LT',\n nextDay: '[aska g] LT',\n nextWeek: 'dddd [g] LT',\n lastDay: '[assant g] LT',\n lastWeek: 'dddd [g] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dadkh s yan %s',\n past: 'yan %s',\n s: 'imik',\n ss: '%d imik',\n m: 'minuḍ',\n mm: '%d minuḍ',\n h: 'saɛa',\n hh: '%d tassaɛin',\n d: 'ass',\n dd: '%d ossan',\n M: 'ayowr',\n MM: '%d iyyirn',\n y: 'asgas',\n yy: '%d isgasn'\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n }\n });\n\n return tzmLatn;\n});","//! moment.js locale configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var ugCn = moment.defineLocale('ug-cn', {\n months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),\n monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),\n weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),\n weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'\n },\n meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {\n return hour;\n } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n return hour + 12;\n } else {\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return 'يېرىم كېچە';\n } else if (hm < 900) {\n return 'سەھەر';\n } else if (hm < 1130) {\n return 'چۈشتىن بۇرۇن';\n } else if (hm < 1230) {\n return 'چۈش';\n } else if (hm < 1800) {\n return 'چۈشتىن كېيىن';\n } else {\n return 'كەچ';\n }\n },\n calendar: {\n sameDay: '[بۈگۈن سائەت] LT',\n nextDay: '[ئەتە سائەت] LT',\n nextWeek: '[كېلەركى] dddd [سائەت] LT',\n lastDay: '[تۆنۈگۈن] LT',\n lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s كېيىن',\n past: '%s بۇرۇن',\n s: 'نەچچە سېكونت',\n ss: '%d سېكونت',\n m: 'بىر مىنۇت',\n mm: '%d مىنۇت',\n h: 'بىر سائەت',\n hh: '%d سائەت',\n d: 'بىر كۈن',\n dd: '%d كۈن',\n M: 'بىر ئاي',\n MM: '%d ئاي',\n y: 'بىر يىل',\n yy: '%d يىل'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '-كۈنى';\n case 'w':\n case 'W':\n return number + '-ھەپتە';\n default:\n return number;\n }\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 1st is the first week of the year.\n }\n });\n\n return ugCn;\n});","//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n dd: 'день_дні_днів',\n MM: 'місяць_місяці_місяців',\n yy: 'рік_роки_років'\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвилина' : 'хвилину';\n } else if (key === 'h') {\n return withoutSuffix ? 'година' : 'годину';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n function weekdaysCaseReplace(m, format) {\n var weekdays = {\n nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),\n accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),\n genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')\n },\n nounCase;\n if (m === true) {\n return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));\n }\n if (!m) {\n return weekdays['nominative'];\n }\n nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format) ? 'accusative' : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format) ? 'genitive' : 'nominative';\n return weekdays[nounCase][m.day()];\n }\n function processHoursFunction(str) {\n return function () {\n return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n };\n }\n var uk = moment.defineLocale('uk', {\n months: {\n format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),\n standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')\n },\n monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),\n weekdays: weekdaysCaseReplace,\n weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY р.',\n LLL: 'D MMMM YYYY р., HH:mm',\n LLLL: 'dddd, D MMMM YYYY р., HH:mm'\n },\n calendar: {\n sameDay: processHoursFunction('[Сьогодні '),\n nextDay: processHoursFunction('[Завтра '),\n lastDay: processHoursFunction('[Вчора '),\n nextWeek: processHoursFunction('[У] dddd ['),\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return processHoursFunction('[Минулої] dddd [').call(this);\n case 1:\n case 2:\n case 4:\n return processHoursFunction('[Минулого] dddd [').call(this);\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'за %s',\n past: '%s тому',\n s: 'декілька секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'годину',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'місяць',\n MM: relativeTimeWithPlural,\n y: 'рік',\n yy: relativeTimeWithPlural\n },\n // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n meridiemParse: /ночі|ранку|дня|вечора/,\n isPM: function (input) {\n return /^(дня|вечора)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночі';\n } else if (hour < 12) {\n return 'ранку';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечора';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return number + '-й';\n case 'D':\n return number + '-го';\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return uk;\n});","//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],\n days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n var ur = moment.defineLocale('ur', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm'\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[آج بوقت] LT',\n nextDay: '[کل بوقت] LT',\n nextWeek: 'dddd [بوقت] LT',\n lastDay: '[گذشتہ روز بوقت] LT',\n lastWeek: '[گذشتہ] dddd [بوقت] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s بعد',\n past: '%s قبل',\n s: 'چند سیکنڈ',\n ss: '%d سیکنڈ',\n m: 'ایک منٹ',\n mm: '%d منٹ',\n h: 'ایک گھنٹہ',\n hh: '%d گھنٹے',\n d: 'ایک دن',\n dd: '%d دن',\n M: 'ایک ماہ',\n MM: '%d ماہ',\n y: 'ایک سال',\n yy: '%d سال'\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return ur;\n});","//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var uz = moment.defineLocale('uz', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm'\n },\n calendar: {\n sameDay: '[Бугун соат] LT [да]',\n nextDay: '[Эртага] LT [да]',\n nextWeek: 'dddd [куни соат] LT [да]',\n lastDay: '[Кеча соат] LT [да]',\n lastWeek: '[Утган] dddd [куни соат] LT [да]',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'Якин %s ичида',\n past: 'Бир неча %s олдин',\n s: 'фурсат',\n ss: '%d фурсат',\n m: 'бир дакика',\n mm: '%d дакика',\n h: 'бир соат',\n hh: '%d соат',\n d: 'бир кун',\n dd: '%d кун',\n M: 'бир ой',\n MM: '%d ой',\n y: 'бир йил',\n yy: '%d йил'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return uz;\n});","//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var uzLatn = moment.defineLocale('uz-latn', {\n months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),\n monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),\n weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm'\n },\n calendar: {\n sameDay: '[Bugun soat] LT [da]',\n nextDay: '[Ertaga] LT [da]',\n nextWeek: 'dddd [kuni soat] LT [da]',\n lastDay: '[Kecha soat] LT [da]',\n lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n sameElse: 'L'\n },\n relativeTime: {\n future: 'Yaqin %s ichida',\n past: 'Bir necha %s oldin',\n s: 'soniya',\n ss: '%d soniya',\n m: 'bir daqiqa',\n mm: '%d daqiqa',\n h: 'bir soat',\n hh: '%d soat',\n d: 'bir kun',\n dd: '%d kun',\n M: 'bir oy',\n MM: '%d oy',\n y: 'bir yil',\n yy: '%d yil'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n }\n });\n\n return uzLatn;\n});","//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var vi = moment.defineLocale('vi', {\n months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),\n monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),\n monthsParseExact: true,\n weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),\n weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /sa|ch/i,\n isPM: function (input) {\n return /^ch$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'sa' : 'SA';\n } else {\n return isLower ? 'ch' : 'CH';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [năm] YYYY',\n LLL: 'D MMMM [năm] YYYY HH:mm',\n LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n l: 'DD/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Hôm nay lúc] LT',\n nextDay: '[Ngày mai lúc] LT',\n nextWeek: 'dddd [tuần tới lúc] LT',\n lastDay: '[Hôm qua lúc] LT',\n lastWeek: 'dddd [tuần trước lúc] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s tới',\n past: '%s trước',\n s: 'vài giây',\n ss: '%d giây',\n m: 'một phút',\n mm: '%d phút',\n h: 'một giờ',\n hh: '%d giờ',\n d: 'một ngày',\n dd: '%d ngày',\n w: 'một tuần',\n ww: '%d tuần',\n M: 'một tháng',\n MM: '%d tháng',\n y: 'một năm',\n yy: '%d năm'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return vi;\n});","//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var xPseudo = moment.defineLocale('x-pseudo', {\n months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),\n monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),\n monthsParseExact: true,\n weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),\n weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[T~ódá~ý át] LT',\n nextDay: '[T~ómó~rró~w át] LT',\n nextWeek: 'dddd [át] LT',\n lastDay: '[Ý~ést~érdá~ý át] LT',\n lastWeek: '[L~ást] dddd [át] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'í~ñ %s',\n past: '%s á~gó',\n s: 'á ~féw ~sécó~ñds',\n ss: '%d s~écóñ~ds',\n m: 'á ~míñ~úté',\n mm: '%d m~íñú~tés',\n h: 'á~ñ hó~úr',\n hh: '%d h~óúrs',\n d: 'á ~dáý',\n dd: '%d d~áýs',\n M: 'á ~móñ~th',\n MM: '%d m~óñt~hs',\n y: 'á ~ýéár',\n yy: '%d ý~éárs'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return xPseudo;\n});","//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var yo = moment.defineLocale('yo', {\n months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),\n monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Ònì ni] LT',\n nextDay: '[Ọ̀la ni] LT',\n nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n lastDay: '[Àna ni] LT',\n lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ní %s',\n past: '%s kọjá',\n s: 'ìsẹjú aayá die',\n ss: 'aayá %d',\n m: 'ìsẹjú kan',\n mm: 'ìsẹjú %d',\n h: 'wákati kan',\n hh: 'wákati %d',\n d: 'ọjọ́ kan',\n dd: 'ọjọ́ %d',\n M: 'osù kan',\n MM: 'osù %d',\n y: 'ọdún kan',\n yy: 'ọdún %d'\n },\n dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n ordinal: 'ọjọ́ %d',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return yo;\n});","//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n//! author : uu109 : https://github.com/uu109\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var zhCn = moment.defineLocale('zh-cn', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日Ah点mm分',\n LLLL: 'YYYY年M月D日ddddAh点mm分',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[下]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n lastDay: '[昨天]LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[上]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s后',\n past: '%s前',\n s: '几秒',\n ss: '%d 秒',\n m: '1 分钟',\n mm: '%d 分钟',\n h: '1 小时',\n hh: '%d 小时',\n d: '1 天',\n dd: '%d 天',\n w: '1 周',\n ww: '%d 周',\n M: '1 个月',\n MM: '%d 个月',\n y: '1 年',\n yy: '%d 年'\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n });\n\n return zhCn;\n});","//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var zhHk = moment.defineLocale('zh-hk', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1200) {\n return '上午';\n } else if (hm === 1200) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年'\n }\n });\n return zhHk;\n});","//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var zhMo = moment.defineLocale('zh-mo', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'D/M/YYYY',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s內',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年'\n }\n });\n return zhMo;\n});","//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict';\n\n //! moment.js locale configuration\n var zhTw = moment.defineLocale('zh-tw', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年'\n }\n });\n return zhTw;\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports._setTarget = void 0;\nexports.popParams = popParams;\nexports.pushParams = pushParams;\nexports.target = void 0;\nexports.withParams = withParams;\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nvar stack = [];\nvar target = null;\nexports.target = target;\nvar _setTarget = function _setTarget(x) {\n exports.target = target = x;\n};\nexports._setTarget = _setTarget;\nfunction pushParams() {\n if (target !== null) {\n stack.push(target);\n }\n exports.target = target = {};\n}\nfunction popParams() {\n var lastTarget = target;\n var newTarget = exports.target = target = stack.pop() || null;\n if (newTarget) {\n if (!Array.isArray(newTarget.$sub)) {\n newTarget.$sub = [];\n }\n newTarget.$sub.push(lastTarget);\n }\n return lastTarget;\n}\nfunction addParams(params) {\n if (_typeof(params) === 'object' && !Array.isArray(params)) {\n exports.target = target = _objectSpread(_objectSpread({}, target), params);\n } else {\n throw new Error('params must be an object');\n }\n}\nfunction withParamsDirect(params, validator) {\n return withParamsClosure(function (add) {\n return function () {\n add(params);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return validator.apply(this, args);\n };\n });\n}\nfunction withParamsClosure(closure) {\n var validator = closure(addParams);\n return function () {\n pushParams();\n try {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return validator.apply(this, args);\n } finally {\n popParams();\n }\n };\n}\nfunction withParams(paramsOrClosure, maybeValidator) {\n if (_typeof(paramsOrClosure) === 'object' && maybeValidator !== undefined) {\n return withParamsDirect(paramsOrClosure, maybeValidator);\n }\n return withParamsClosure(paramsOrClosure);\n}","/* MIT license */\nvar cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nvar reverseKeywords = {};\nfor (var key in cssKeywords) {\n if (cssKeywords.hasOwnProperty(key)) {\n reverseKeywords[cssKeywords[key]] = key;\n }\n}\nvar convert = module.exports = {\n rgb: {\n channels: 3,\n labels: 'rgb'\n },\n hsl: {\n channels: 3,\n labels: 'hsl'\n },\n hsv: {\n channels: 3,\n labels: 'hsv'\n },\n hwb: {\n channels: 3,\n labels: 'hwb'\n },\n cmyk: {\n channels: 4,\n labels: 'cmyk'\n },\n xyz: {\n channels: 3,\n labels: 'xyz'\n },\n lab: {\n channels: 3,\n labels: 'lab'\n },\n lch: {\n channels: 3,\n labels: 'lch'\n },\n hex: {\n channels: 1,\n labels: ['hex']\n },\n keyword: {\n channels: 1,\n labels: ['keyword']\n },\n ansi16: {\n channels: 1,\n labels: ['ansi16']\n },\n ansi256: {\n channels: 1,\n labels: ['ansi256']\n },\n hcg: {\n channels: 3,\n labels: ['h', 'c', 'g']\n },\n apple: {\n channels: 3,\n labels: ['r16', 'g16', 'b16']\n },\n gray: {\n channels: 1,\n labels: ['gray']\n }\n};\n\n// hide .channels and .labels properties\nfor (var model in convert) {\n if (convert.hasOwnProperty(model)) {\n if (!('channels' in convert[model])) {\n throw new Error('missing channels property: ' + model);\n }\n if (!('labels' in convert[model])) {\n throw new Error('missing channel labels property: ' + model);\n }\n if (convert[model].labels.length !== convert[model].channels) {\n throw new Error('channel and label counts mismatch: ' + model);\n }\n var channels = convert[model].channels;\n var labels = convert[model].labels;\n delete convert[model].channels;\n delete convert[model].labels;\n Object.defineProperty(convert[model], 'channels', {\n value: channels\n });\n Object.defineProperty(convert[model], 'labels', {\n value: labels\n });\n }\n}\nconvert.rgb.hsl = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var delta = max - min;\n var h;\n var s;\n var l;\n if (max === min) {\n h = 0;\n } else if (r === max) {\n h = (g - b) / delta;\n } else if (g === max) {\n h = 2 + (b - r) / delta;\n } else if (b === max) {\n h = 4 + (r - g) / delta;\n }\n h = Math.min(h * 60, 360);\n if (h < 0) {\n h += 360;\n }\n l = (min + max) / 2;\n if (max === min) {\n s = 0;\n } else if (l <= 0.5) {\n s = delta / (max + min);\n } else {\n s = delta / (2 - max - min);\n }\n return [h, s * 100, l * 100];\n};\nconvert.rgb.hsv = function (rgb) {\n var rdif;\n var gdif;\n var bdif;\n var h;\n var s;\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var v = Math.max(r, g, b);\n var diff = v - Math.min(r, g, b);\n var diffc = function (c) {\n return (v - c) / 6 / diff + 1 / 2;\n };\n if (diff === 0) {\n h = s = 0;\n } else {\n s = diff / v;\n rdif = diffc(r);\n gdif = diffc(g);\n bdif = diffc(b);\n if (r === v) {\n h = bdif - gdif;\n } else if (g === v) {\n h = 1 / 3 + rdif - bdif;\n } else if (b === v) {\n h = 2 / 3 + gdif - rdif;\n }\n if (h < 0) {\n h += 1;\n } else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n};\nconvert.rgb.hwb = function (rgb) {\n var r = rgb[0];\n var g = rgb[1];\n var b = rgb[2];\n var h = convert.rgb.hsl(rgb)[0];\n var w = 1 / 255 * Math.min(r, Math.min(g, b));\n b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n return [h, w * 100, b * 100];\n};\nconvert.rgb.cmyk = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var c;\n var m;\n var y;\n var k;\n k = Math.min(1 - r, 1 - g, 1 - b);\n c = (1 - r - k) / (1 - k) || 0;\n m = (1 - g - k) / (1 - k) || 0;\n y = (1 - b - k) / (1 - k) || 0;\n return [c * 100, m * 100, y * 100, k * 100];\n};\n\n/**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\nfunction comparativeDistance(x, y) {\n return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2);\n}\nconvert.rgb.keyword = function (rgb) {\n var reversed = reverseKeywords[rgb];\n if (reversed) {\n return reversed;\n }\n var currentClosestDistance = Infinity;\n var currentClosestKeyword;\n for (var keyword in cssKeywords) {\n if (cssKeywords.hasOwnProperty(keyword)) {\n var value = cssKeywords[keyword];\n\n // Compute comparative distance\n var distance = comparativeDistance(rgb, value);\n\n // Check if its less, if so set as closest\n if (distance < currentClosestDistance) {\n currentClosestDistance = distance;\n currentClosestKeyword = keyword;\n }\n }\n }\n return currentClosestKeyword;\n};\nconvert.keyword.rgb = function (keyword) {\n return cssKeywords[keyword];\n};\nconvert.rgb.xyz = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n\n // assume sRGB\n r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92;\n g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;\n b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;\n var x = r * 0.4124 + g * 0.3576 + b * 0.1805;\n var y = r * 0.2126 + g * 0.7152 + b * 0.0722;\n var z = r * 0.0193 + g * 0.1192 + b * 0.9505;\n return [x * 100, y * 100, z * 100];\n};\nconvert.rgb.lab = function (rgb) {\n var xyz = convert.rgb.xyz(rgb);\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n};\nconvert.hsl.rgb = function (hsl) {\n var h = hsl[0] / 360;\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var t1;\n var t2;\n var t3;\n var rgb;\n var val;\n if (s === 0) {\n val = l * 255;\n return [val, val, val];\n }\n if (l < 0.5) {\n t2 = l * (1 + s);\n } else {\n t2 = l + s - l * s;\n }\n t1 = 2 * l - t2;\n rgb = [0, 0, 0];\n for (var i = 0; i < 3; i++) {\n t3 = h + 1 / 3 * -(i - 1);\n if (t3 < 0) {\n t3++;\n }\n if (t3 > 1) {\n t3--;\n }\n if (6 * t3 < 1) {\n val = t1 + (t2 - t1) * 6 * t3;\n } else if (2 * t3 < 1) {\n val = t2;\n } else if (3 * t3 < 2) {\n val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n } else {\n val = t1;\n }\n rgb[i] = val * 255;\n }\n return rgb;\n};\nconvert.hsl.hsv = function (hsl) {\n var h = hsl[0];\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var smin = s;\n var lmin = Math.max(l, 0.01);\n var sv;\n var v;\n l *= 2;\n s *= l <= 1 ? l : 2 - l;\n smin *= lmin <= 1 ? lmin : 2 - lmin;\n v = (l + s) / 2;\n sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);\n return [h, sv * 100, v * 100];\n};\nconvert.hsv.rgb = function (hsv) {\n var h = hsv[0] / 60;\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var hi = Math.floor(h) % 6;\n var f = h - Math.floor(h);\n var p = 255 * v * (1 - s);\n var q = 255 * v * (1 - s * f);\n var t = 255 * v * (1 - s * (1 - f));\n v *= 255;\n switch (hi) {\n case 0:\n return [v, t, p];\n case 1:\n return [q, v, p];\n case 2:\n return [p, v, t];\n case 3:\n return [p, q, v];\n case 4:\n return [t, p, v];\n case 5:\n return [v, p, q];\n }\n};\nconvert.hsv.hsl = function (hsv) {\n var h = hsv[0];\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var vmin = Math.max(v, 0.01);\n var lmin;\n var sl;\n var l;\n l = (2 - s) * v;\n lmin = (2 - s) * vmin;\n sl = s * vmin;\n sl /= lmin <= 1 ? lmin : 2 - lmin;\n sl = sl || 0;\n l /= 2;\n return [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n var h = hwb[0] / 360;\n var wh = hwb[1] / 100;\n var bl = hwb[2] / 100;\n var ratio = wh + bl;\n var i;\n var v;\n var f;\n var n;\n\n // wh + bl cant be > 1\n if (ratio > 1) {\n wh /= ratio;\n bl /= ratio;\n }\n i = Math.floor(6 * h);\n v = 1 - bl;\n f = 6 * h - i;\n if ((i & 0x01) !== 0) {\n f = 1 - f;\n }\n n = wh + f * (v - wh); // linear interpolation\n\n var r;\n var g;\n var b;\n switch (i) {\n default:\n case 6:\n case 0:\n r = v;\n g = n;\n b = wh;\n break;\n case 1:\n r = n;\n g = v;\n b = wh;\n break;\n case 2:\n r = wh;\n g = v;\n b = n;\n break;\n case 3:\n r = wh;\n g = n;\n b = v;\n break;\n case 4:\n r = n;\n g = wh;\n b = v;\n break;\n case 5:\n r = v;\n g = wh;\n b = n;\n break;\n }\n return [r * 255, g * 255, b * 255];\n};\nconvert.cmyk.rgb = function (cmyk) {\n var c = cmyk[0] / 100;\n var m = cmyk[1] / 100;\n var y = cmyk[2] / 100;\n var k = cmyk[3] / 100;\n var r;\n var g;\n var b;\n r = 1 - Math.min(1, c * (1 - k) + k);\n g = 1 - Math.min(1, m * (1 - k) + k);\n b = 1 - Math.min(1, y * (1 - k) + k);\n return [r * 255, g * 255, b * 255];\n};\nconvert.xyz.rgb = function (xyz) {\n var x = xyz[0] / 100;\n var y = xyz[1] / 100;\n var z = xyz[2] / 100;\n var r;\n var g;\n var b;\n r = x * 3.2406 + y * -1.5372 + z * -0.4986;\n g = x * -0.9689 + y * 1.8758 + z * 0.0415;\n b = x * 0.0557 + y * -0.2040 + z * 1.0570;\n\n // assume sRGB\n r = r > 0.0031308 ? 1.055 * Math.pow(r, 1.0 / 2.4) - 0.055 : r * 12.92;\n g = g > 0.0031308 ? 1.055 * Math.pow(g, 1.0 / 2.4) - 0.055 : g * 12.92;\n b = b > 0.0031308 ? 1.055 * Math.pow(b, 1.0 / 2.4) - 0.055 : b * 12.92;\n r = Math.min(Math.max(0, r), 1);\n g = Math.min(Math.max(0, g), 1);\n b = Math.min(Math.max(0, b), 1);\n return [r * 255, g * 255, b * 255];\n};\nconvert.xyz.lab = function (xyz) {\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n};\nconvert.lab.xyz = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var x;\n var y;\n var z;\n y = (l + 16) / 116;\n x = a / 500 + y;\n z = y - b / 200;\n var y2 = Math.pow(y, 3);\n var x2 = Math.pow(x, 3);\n var z2 = Math.pow(z, 3);\n y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n x *= 95.047;\n y *= 100;\n z *= 108.883;\n return [x, y, z];\n};\nconvert.lab.lch = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var hr;\n var h;\n var c;\n hr = Math.atan2(b, a);\n h = hr * 360 / 2 / Math.PI;\n if (h < 0) {\n h += 360;\n }\n c = Math.sqrt(a * a + b * b);\n return [l, c, h];\n};\nconvert.lch.lab = function (lch) {\n var l = lch[0];\n var c = lch[1];\n var h = lch[2];\n var a;\n var b;\n var hr;\n hr = h / 360 * 2 * Math.PI;\n a = c * Math.cos(hr);\n b = c * Math.sin(hr);\n return [l, a, b];\n};\nconvert.rgb.ansi16 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2];\n var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n value = Math.round(value / 50);\n if (value === 0) {\n return 30;\n }\n var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));\n if (value === 2) {\n ansi += 60;\n }\n return ansi;\n};\nconvert.hsv.ansi16 = function (args) {\n // optimization here; we already know the value and don't need to get\n // it converted for us.\n return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\nconvert.rgb.ansi256 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2];\n\n // we use the extended greyscale palette here, with the exception of\n // black and white. normal palette only has 4 greyscale shades.\n if (r === g && g === b) {\n if (r < 8) {\n return 16;\n }\n if (r > 248) {\n return 231;\n }\n return Math.round((r - 8) / 247 * 24) + 232;\n }\n var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);\n return ansi;\n};\nconvert.ansi16.rgb = function (args) {\n var color = args % 10;\n\n // handle greyscale\n if (color === 0 || color === 7) {\n if (args > 50) {\n color += 3.5;\n }\n color = color / 10.5 * 255;\n return [color, color, color];\n }\n var mult = (~~(args > 50) + 1) * 0.5;\n var r = (color & 1) * mult * 255;\n var g = (color >> 1 & 1) * mult * 255;\n var b = (color >> 2 & 1) * mult * 255;\n return [r, g, b];\n};\nconvert.ansi256.rgb = function (args) {\n // handle greyscale\n if (args >= 232) {\n var c = (args - 232) * 10 + 8;\n return [c, c, c];\n }\n args -= 16;\n var rem;\n var r = Math.floor(args / 36) / 5 * 255;\n var g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n var b = rem % 6 / 5 * 255;\n return [r, g, b];\n};\nconvert.rgb.hex = function (args) {\n var integer = ((Math.round(args[0]) & 0xFF) << 16) + ((Math.round(args[1]) & 0xFF) << 8) + (Math.round(args[2]) & 0xFF);\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n};\nconvert.hex.rgb = function (args) {\n var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n if (!match) {\n return [0, 0, 0];\n }\n var colorString = match[0];\n if (match[0].length === 3) {\n colorString = colorString.split('').map(function (char) {\n return char + char;\n }).join('');\n }\n var integer = parseInt(colorString, 16);\n var r = integer >> 16 & 0xFF;\n var g = integer >> 8 & 0xFF;\n var b = integer & 0xFF;\n return [r, g, b];\n};\nconvert.rgb.hcg = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var max = Math.max(Math.max(r, g), b);\n var min = Math.min(Math.min(r, g), b);\n var chroma = max - min;\n var grayscale;\n var hue;\n if (chroma < 1) {\n grayscale = min / (1 - chroma);\n } else {\n grayscale = 0;\n }\n if (chroma <= 0) {\n hue = 0;\n } else if (max === r) {\n hue = (g - b) / chroma % 6;\n } else if (max === g) {\n hue = 2 + (b - r) / chroma;\n } else {\n hue = 4 + (r - g) / chroma + 4;\n }\n hue /= 6;\n hue %= 1;\n return [hue * 360, chroma * 100, grayscale * 100];\n};\nconvert.hsl.hcg = function (hsl) {\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var c = 1;\n var f = 0;\n if (l < 0.5) {\n c = 2.0 * s * l;\n } else {\n c = 2.0 * s * (1.0 - l);\n }\n if (c < 1.0) {\n f = (l - 0.5 * c) / (1.0 - c);\n }\n return [hsl[0], c * 100, f * 100];\n};\nconvert.hsv.hcg = function (hsv) {\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var c = s * v;\n var f = 0;\n if (c < 1.0) {\n f = (v - c) / (1 - c);\n }\n return [hsv[0], c * 100, f * 100];\n};\nconvert.hcg.rgb = function (hcg) {\n var h = hcg[0] / 360;\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n if (c === 0.0) {\n return [g * 255, g * 255, g * 255];\n }\n var pure = [0, 0, 0];\n var hi = h % 1 * 6;\n var v = hi % 1;\n var w = 1 - v;\n var mg = 0;\n switch (Math.floor(hi)) {\n case 0:\n pure[0] = 1;\n pure[1] = v;\n pure[2] = 0;\n break;\n case 1:\n pure[0] = w;\n pure[1] = 1;\n pure[2] = 0;\n break;\n case 2:\n pure[0] = 0;\n pure[1] = 1;\n pure[2] = v;\n break;\n case 3:\n pure[0] = 0;\n pure[1] = w;\n pure[2] = 1;\n break;\n case 4:\n pure[0] = v;\n pure[1] = 0;\n pure[2] = 1;\n break;\n default:\n pure[0] = 1;\n pure[1] = 0;\n pure[2] = w;\n }\n mg = (1.0 - c) * g;\n return [(c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255];\n};\nconvert.hcg.hsv = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n var f = 0;\n if (v > 0.0) {\n f = c / v;\n }\n return [hcg[0], f * 100, v * 100];\n};\nconvert.hcg.hsl = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var l = g * (1.0 - c) + 0.5 * c;\n var s = 0;\n if (l > 0.0 && l < 0.5) {\n s = c / (2 * l);\n } else if (l >= 0.5 && l < 1.0) {\n s = c / (2 * (1 - l));\n }\n return [hcg[0], s * 100, l * 100];\n};\nconvert.hcg.hwb = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n return [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\nconvert.hwb.hcg = function (hwb) {\n var w = hwb[1] / 100;\n var b = hwb[2] / 100;\n var v = 1 - b;\n var c = v - w;\n var g = 0;\n if (c < 1) {\n g = (v - c) / (1 - c);\n }\n return [hwb[0], c * 100, g * 100];\n};\nconvert.apple.rgb = function (apple) {\n return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];\n};\nconvert.rgb.apple = function (rgb) {\n return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];\n};\nconvert.gray.rgb = function (args) {\n return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\nconvert.gray.hsl = convert.gray.hsv = function (args) {\n return [0, 0, args[0]];\n};\nconvert.gray.hwb = function (gray) {\n return [0, 100, gray[0]];\n};\nconvert.gray.cmyk = function (gray) {\n return [0, 0, 0, gray[0]];\n};\nconvert.gray.lab = function (gray) {\n return [gray[0], 0, 0];\n};\nconvert.gray.hex = function (gray) {\n var val = Math.round(gray[0] / 100 * 255) & 0xFF;\n var integer = (val << 16) + (val << 8) + val;\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n};\nconvert.rgb.gray = function (rgb) {\n var val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n return [val / 255 * 100];\n};","import { millisecondsInHour, millisecondsInMinute } from \"../constants/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name parseISO\n * @category Common Helpers\n * @summary Parse ISO string\n *\n * @description\n * Parse the given string in ISO 8601 format and return an instance of Date.\n *\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If the argument isn't a string, the function cannot parse the string or\n * the values are invalid, it returns Invalid Date.\n *\n * @param {String} argument - the value to convert\n * @param {Object} [options] - an object with options.\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * const result = parseISO('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * const result = parseISO('+02014101', { additionalDigits: 1 })\n * //=> Fri Apr 11 2014 00:00:00\n */\nexport default function parseISO(argument, options) {\n var _options$additionalDi;\n requiredArgs(1, arguments);\n var additionalDigits = toInteger((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2);\n if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n throw new RangeError('additionalDigits must be 0, 1 or 2');\n }\n if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {\n return new Date(NaN);\n }\n var dateStrings = splitDateString(argument);\n var date;\n if (dateStrings.date) {\n var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n date = parseDate(parseYearResult.restDateString, parseYearResult.year);\n }\n if (!date || isNaN(date.getTime())) {\n return new Date(NaN);\n }\n var timestamp = date.getTime();\n var time = 0;\n var offset;\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n if (isNaN(time)) {\n return new Date(NaN);\n }\n }\n if (dateStrings.timezone) {\n offset = parseTimezone(dateStrings.timezone);\n if (isNaN(offset)) {\n return new Date(NaN);\n }\n } else {\n var dirtyDate = new Date(timestamp + time);\n // js parsed string assuming it's in UTC timezone\n // but we need it to be parsed in our timezone\n // so we use utc values to build date in our timezone.\n // Year values from 0 to 99 map to the years 1900 to 1999\n // so set year explicitly with setFullYear.\n var result = new Date(0);\n result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate());\n result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds());\n return result;\n }\n return new Date(timestamp + time + offset);\n}\nvar patterns = {\n dateTimeDelimiter: /[T ]/,\n timeZoneDelimiter: /[Z ]/i,\n timezone: /([Z+-].*)$/\n};\nvar dateRegex = /^-?(?:(\\d{3})|(\\d{2})(?:-?(\\d{2}))?|W(\\d{2})(?:-?(\\d{1}))?|)$/;\nvar timeRegex = /^(\\d{2}(?:[.,]\\d*)?)(?::?(\\d{2}(?:[.,]\\d*)?))?(?::?(\\d{2}(?:[.,]\\d*)?))?$/;\nvar timezoneRegex = /^([+-])(\\d{2})(?::?(\\d{2}))?$/;\nfunction splitDateString(dateString) {\n var dateStrings = {};\n var array = dateString.split(patterns.dateTimeDelimiter);\n var timeString;\n\n // The regex match should only return at maximum two array elements.\n // [date], [time], or [date, time].\n if (array.length > 2) {\n return dateStrings;\n }\n if (/:/.test(array[0])) {\n timeString = array[0];\n } else {\n dateStrings.date = array[0];\n timeString = array[1];\n if (patterns.timeZoneDelimiter.test(dateStrings.date)) {\n dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];\n timeString = dateString.substr(dateStrings.date.length, dateString.length);\n }\n }\n if (timeString) {\n var token = patterns.timezone.exec(timeString);\n if (token) {\n dateStrings.time = timeString.replace(token[1], '');\n dateStrings.timezone = token[1];\n } else {\n dateStrings.time = timeString;\n }\n }\n return dateStrings;\n}\nfunction parseYear(dateString, additionalDigits) {\n var regex = new RegExp('^(?:(\\\\d{4}|[+-]\\\\d{' + (4 + additionalDigits) + '})|(\\\\d{2}|[+-]\\\\d{' + (2 + additionalDigits) + '})$)');\n var captures = dateString.match(regex);\n // Invalid ISO-formatted year\n if (!captures) return {\n year: NaN,\n restDateString: ''\n };\n var year = captures[1] ? parseInt(captures[1]) : null;\n var century = captures[2] ? parseInt(captures[2]) : null;\n\n // either year or century is null, not both\n return {\n year: century === null ? year : century * 100,\n restDateString: dateString.slice((captures[1] || captures[2]).length)\n };\n}\nfunction parseDate(dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) return new Date(NaN);\n var captures = dateString.match(dateRegex);\n // Invalid ISO-formatted string\n if (!captures) return new Date(NaN);\n var isWeekDate = !!captures[4];\n var dayOfYear = parseDateUnit(captures[1]);\n var month = parseDateUnit(captures[2]) - 1;\n var day = parseDateUnit(captures[3]);\n var week = parseDateUnit(captures[4]);\n var dayOfWeek = parseDateUnit(captures[5]) - 1;\n if (isWeekDate) {\n if (!validateWeekDate(year, week, dayOfWeek)) {\n return new Date(NaN);\n }\n return dayOfISOWeekYear(year, week, dayOfWeek);\n } else {\n var date = new Date(0);\n if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) {\n return new Date(NaN);\n }\n date.setUTCFullYear(year, month, Math.max(dayOfYear, day));\n return date;\n }\n}\nfunction parseDateUnit(value) {\n return value ? parseInt(value) : 1;\n}\nfunction parseTime(timeString) {\n var captures = timeString.match(timeRegex);\n if (!captures) return NaN; // Invalid ISO-formatted time\n\n var hours = parseTimeUnit(captures[1]);\n var minutes = parseTimeUnit(captures[2]);\n var seconds = parseTimeUnit(captures[3]);\n if (!validateTime(hours, minutes, seconds)) {\n return NaN;\n }\n return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000;\n}\nfunction parseTimeUnit(value) {\n return value && parseFloat(value.replace(',', '.')) || 0;\n}\nfunction parseTimezone(timezoneString) {\n if (timezoneString === 'Z') return 0;\n var captures = timezoneString.match(timezoneRegex);\n if (!captures) return 0;\n var sign = captures[1] === '+' ? -1 : 1;\n var hours = parseInt(captures[2]);\n var minutes = captures[3] && parseInt(captures[3]) || 0;\n if (!validateTimezone(hours, minutes)) {\n return NaN;\n }\n return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute);\n}\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n var date = new Date(0);\n date.setUTCFullYear(isoWeekYear, 0, 4);\n var fourthOfJanuaryDay = date.getUTCDay() || 7;\n var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}\n\n// Validation functions\n\n// February is null to handle the leap year (using ||)\nvar daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\nfunction validateDate(year, month, date) {\n return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28));\n}\nfunction validateDayOfYearDate(year, dayOfYear) {\n return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);\n}\nfunction validateWeekDate(_year, week, day) {\n return week >= 1 && week <= 53 && day >= 0 && day <= 6;\n}\nfunction validateTime(hours, minutes, seconds) {\n if (hours === 24) {\n return minutes === 0 && seconds === 0;\n }\n return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25;\n}\nfunction validateTimezone(_hours, minutes) {\n return minutes >= 0 && minutes <= 59;\n}","import toDate from \"../toDate/index.js\";\nimport addLeadingZeros from \"../_lib/addLeadingZeros/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatISO\n * @category Common Helpers\n * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).\n *\n * @description\n * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.\n * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both.\n * @returns {String} the formatted date string (in local time zone)\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.format` must be 'extended' or 'basic'\n * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918T190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, date only:\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52Z'\n */\nexport default function formatISO(date, options) {\n var _options$format, _options$representati;\n requiredArgs(1, arguments);\n var originalDate = toDate(date);\n if (isNaN(originalDate.getTime())) {\n throw new RangeError('Invalid time value');\n }\n var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended');\n var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete');\n if (format !== 'extended' && format !== 'basic') {\n throw new RangeError(\"format must be 'extended' or 'basic'\");\n }\n if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {\n throw new RangeError(\"representation must be 'date', 'time', or 'complete'\");\n }\n var result = '';\n var tzOffset = '';\n var dateDelimiter = format === 'extended' ? '-' : '';\n var timeDelimiter = format === 'extended' ? ':' : '';\n\n // Representation is either 'date' or 'complete'\n if (representation !== 'time') {\n var day = addLeadingZeros(originalDate.getDate(), 2);\n var month = addLeadingZeros(originalDate.getMonth() + 1, 2);\n var year = addLeadingZeros(originalDate.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = \"\".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== 'date') {\n // Add the timezone.\n var offset = originalDate.getTimezoneOffset();\n if (offset !== 0) {\n var absoluteOffset = Math.abs(offset);\n var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2);\n var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n var sign = offset < 0 ? '+' : '-';\n tzOffset = \"\".concat(sign).concat(hourOffset, \":\").concat(minuteOffset);\n } else {\n tzOffset = 'Z';\n }\n var hour = addLeadingZeros(originalDate.getHours(), 2);\n var minute = addLeadingZeros(originalDate.getMinutes(), 2);\n var second = addLeadingZeros(originalDate.getSeconds(), 2);\n\n // If there's also date, separate it with time with 'T'\n var separator = result === '' ? '' : 'T';\n\n // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined.\n var time = [hour, minute, second].join(timeDelimiter);\n\n // HHmmss or HH:mm:ss.\n result = \"\".concat(result).concat(separator).concat(time).concat(tzOffset);\n }\n return result;\n}","/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress\n * @license MIT */\n\n;\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define(factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.NProgress = factory();\n }\n})(this, function () {\n var NProgress = {};\n NProgress.version = '0.2.0';\n var Settings = NProgress.settings = {\n minimum: 0.08,\n easing: 'ease',\n positionUsing: '',\n speed: 200,\n trickle: true,\n trickleRate: 0.02,\n trickleSpeed: 800,\n showSpinner: true,\n barSelector: '[role=\"bar\"]',\n spinnerSelector: '[role=\"spinner\"]',\n parent: 'body',\n template: ''\n };\n\n /**\n * Updates configuration.\n *\n * NProgress.configure({\n * minimum: 0.1\n * });\n */\n NProgress.configure = function (options) {\n var key, value;\n for (key in options) {\n value = options[key];\n if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;\n }\n return this;\n };\n\n /**\n * Last number.\n */\n\n NProgress.status = null;\n\n /**\n * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.\n *\n * NProgress.set(0.4);\n * NProgress.set(1.0);\n */\n\n NProgress.set = function (n) {\n var started = NProgress.isStarted();\n n = clamp(n, Settings.minimum, 1);\n NProgress.status = n === 1 ? null : n;\n var progress = NProgress.render(!started),\n bar = progress.querySelector(Settings.barSelector),\n speed = Settings.speed,\n ease = Settings.easing;\n progress.offsetWidth; /* Repaint */\n\n queue(function (next) {\n // Set positionUsing if it hasn't already been set\n if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();\n\n // Add transition\n css(bar, barPositionCSS(n, speed, ease));\n if (n === 1) {\n // Fade out\n css(progress, {\n transition: 'none',\n opacity: 1\n });\n progress.offsetWidth; /* Repaint */\n\n setTimeout(function () {\n css(progress, {\n transition: 'all ' + speed + 'ms linear',\n opacity: 0\n });\n setTimeout(function () {\n NProgress.remove();\n next();\n }, speed);\n }, speed);\n } else {\n setTimeout(next, speed);\n }\n });\n return this;\n };\n NProgress.isStarted = function () {\n return typeof NProgress.status === 'number';\n };\n\n /**\n * Shows the progress bar.\n * This is the same as setting the status to 0%, except that it doesn't go backwards.\n *\n * NProgress.start();\n *\n */\n NProgress.start = function () {\n if (!NProgress.status) NProgress.set(0);\n var work = function () {\n setTimeout(function () {\n if (!NProgress.status) return;\n NProgress.trickle();\n work();\n }, Settings.trickleSpeed);\n };\n if (Settings.trickle) work();\n return this;\n };\n\n /**\n * Hides the progress bar.\n * This is the *sort of* the same as setting the status to 100%, with the\n * difference being `done()` makes some placebo effect of some realistic motion.\n *\n * NProgress.done();\n *\n * If `true` is passed, it will show the progress bar even if its hidden.\n *\n * NProgress.done(true);\n */\n\n NProgress.done = function (force) {\n if (!force && !NProgress.status) return this;\n return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);\n };\n\n /**\n * Increments by a random amount.\n */\n\n NProgress.inc = function (amount) {\n var n = NProgress.status;\n if (!n) {\n return NProgress.start();\n } else {\n if (typeof amount !== 'number') {\n amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);\n }\n n = clamp(n + amount, 0, 0.994);\n return NProgress.set(n);\n }\n };\n NProgress.trickle = function () {\n return NProgress.inc(Math.random() * Settings.trickleRate);\n };\n\n /**\n * Waits for all supplied jQuery promises and\n * increases the progress as the promises resolve.\n *\n * @param $promise jQUery Promise\n */\n (function () {\n var initial = 0,\n current = 0;\n NProgress.promise = function ($promise) {\n if (!$promise || $promise.state() === \"resolved\") {\n return this;\n }\n if (current === 0) {\n NProgress.start();\n }\n initial++;\n current++;\n $promise.always(function () {\n current--;\n if (current === 0) {\n initial = 0;\n NProgress.done();\n } else {\n NProgress.set((initial - current) / initial);\n }\n });\n return this;\n };\n })();\n\n /**\n * (Internal) renders the progress bar markup based on the `template`\n * setting.\n */\n\n NProgress.render = function (fromStart) {\n if (NProgress.isRendered()) return document.getElementById('nprogress');\n addClass(document.documentElement, 'nprogress-busy');\n var progress = document.createElement('div');\n progress.id = 'nprogress';\n progress.innerHTML = Settings.template;\n var bar = progress.querySelector(Settings.barSelector),\n perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),\n parent = document.querySelector(Settings.parent),\n spinner;\n css(bar, {\n transition: 'all 0 linear',\n transform: 'translate3d(' + perc + '%,0,0)'\n });\n if (!Settings.showSpinner) {\n spinner = progress.querySelector(Settings.spinnerSelector);\n spinner && removeElement(spinner);\n }\n if (parent != document.body) {\n addClass(parent, 'nprogress-custom-parent');\n }\n parent.appendChild(progress);\n return progress;\n };\n\n /**\n * Removes the element. Opposite of render().\n */\n\n NProgress.remove = function () {\n removeClass(document.documentElement, 'nprogress-busy');\n removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');\n var progress = document.getElementById('nprogress');\n progress && removeElement(progress);\n };\n\n /**\n * Checks if the progress bar is rendered.\n */\n\n NProgress.isRendered = function () {\n return !!document.getElementById('nprogress');\n };\n\n /**\n * Determine which positioning CSS rule to use.\n */\n\n NProgress.getPositioningCSS = function () {\n // Sniff on document.body.style\n var bodyStyle = document.body.style;\n\n // Sniff prefixes\n var vendorPrefix = 'WebkitTransform' in bodyStyle ? 'Webkit' : 'MozTransform' in bodyStyle ? 'Moz' : 'msTransform' in bodyStyle ? 'ms' : 'OTransform' in bodyStyle ? 'O' : '';\n if (vendorPrefix + 'Perspective' in bodyStyle) {\n // Modern browsers with 3D support, e.g. Webkit, IE10\n return 'translate3d';\n } else if (vendorPrefix + 'Transform' in bodyStyle) {\n // Browsers without 3D support, e.g. IE9\n return 'translate';\n } else {\n // Browsers without translate() support, e.g. IE7-8\n return 'margin';\n }\n };\n\n /**\n * Helpers\n */\n\n function clamp(n, min, max) {\n if (n < min) return min;\n if (n > max) return max;\n return n;\n }\n\n /**\n * (Internal) converts a percentage (`0..1`) to a bar translateX\n * percentage (`-100%..0%`).\n */\n\n function toBarPerc(n) {\n return (-1 + n) * 100;\n }\n\n /**\n * (Internal) returns the correct CSS for changing the bar's\n * position given an n percentage, and speed and ease from Settings\n */\n\n function barPositionCSS(n, speed, ease) {\n var barCSS;\n if (Settings.positionUsing === 'translate3d') {\n barCSS = {\n transform: 'translate3d(' + toBarPerc(n) + '%,0,0)'\n };\n } else if (Settings.positionUsing === 'translate') {\n barCSS = {\n transform: 'translate(' + toBarPerc(n) + '%,0)'\n };\n } else {\n barCSS = {\n 'margin-left': toBarPerc(n) + '%'\n };\n }\n barCSS.transition = 'all ' + speed + 'ms ' + ease;\n return barCSS;\n }\n\n /**\n * (Internal) Queues a function to be executed.\n */\n\n var queue = function () {\n var pending = [];\n function next() {\n var fn = pending.shift();\n if (fn) {\n fn(next);\n }\n }\n return function (fn) {\n pending.push(fn);\n if (pending.length == 1) next();\n };\n }();\n\n /**\n * (Internal) Applies css properties to an element, similar to the jQuery \n * css method.\n *\n * While this helper does assist with vendor prefixed property names, it \n * does not perform any manipulation of values prior to setting styles.\n */\n\n var css = function () {\n var cssPrefixes = ['Webkit', 'O', 'Moz', 'ms'],\n cssProps = {};\n function camelCase(string) {\n return string.replace(/^-ms-/, 'ms-').replace(/-([\\da-z])/gi, function (match, letter) {\n return letter.toUpperCase();\n });\n }\n function getVendorProp(name) {\n var style = document.body.style;\n if (name in style) return name;\n var i = cssPrefixes.length,\n capName = name.charAt(0).toUpperCase() + name.slice(1),\n vendorName;\n while (i--) {\n vendorName = cssPrefixes[i] + capName;\n if (vendorName in style) return vendorName;\n }\n return name;\n }\n function getStyleProp(name) {\n name = camelCase(name);\n return cssProps[name] || (cssProps[name] = getVendorProp(name));\n }\n function applyCss(element, prop, value) {\n prop = getStyleProp(prop);\n element.style[prop] = value;\n }\n return function (element, properties) {\n var args = arguments,\n prop,\n value;\n if (args.length == 2) {\n for (prop in properties) {\n value = properties[prop];\n if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);\n }\n } else {\n applyCss(element, args[1], args[2]);\n }\n };\n }();\n\n /**\n * (Internal) Determines if an element or space separated list of class names contains a class name.\n */\n\n function hasClass(element, name) {\n var list = typeof element == 'string' ? element : classList(element);\n return list.indexOf(' ' + name + ' ') >= 0;\n }\n\n /**\n * (Internal) Adds a class to an element.\n */\n\n function addClass(element, name) {\n var oldList = classList(element),\n newList = oldList + name;\n if (hasClass(oldList, name)) return;\n\n // Trim the opening space.\n element.className = newList.substring(1);\n }\n\n /**\n * (Internal) Removes a class from an element.\n */\n\n function removeClass(element, name) {\n var oldList = classList(element),\n newList;\n if (!hasClass(element, name)) return;\n\n // Replace the class name.\n newList = oldList.replace(' ' + name + ' ', ' ');\n\n // Trim the opening and closing spaces.\n element.className = newList.substring(1, newList.length - 1);\n }\n\n /**\n * (Internal) Gets a space separated list of the class names on the element. \n * The list is wrapped with a single space on each end to facilitate finding \n * matches within the list.\n */\n\n function classList(element) {\n return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n }\n\n /**\n * (Internal) Removes an element from the DOM.\n */\n\n function removeElement(element) {\n element && element.parentNode && element.parentNode.removeChild(element);\n }\n return NProgress;\n});","module.exports = lang => {\n try {\n const template = require(`./data/${lang}`);\n return template;\n } catch (error) {\n const template = require('./data/en');\n return template;\n }\n};","const getTemplate = require('./get-template');\nmodule.exports = options => {\n if (!options) {\n throw new Error('Missing required input: options');\n }\n if (!options.language) {\n throw new Error('Missing required input: options.language');\n }\n if (!options.domain) {\n throw new Error('Missing required input: options.domain');\n }\n const template = getTemplate(options.language);\n if (!template) {\n throw new Error('Template not found');\n }\n const domainId = options.domain.toLowerCase();\n const filtered = template.find(item => item.domain.toLowerCase() === domainId);\n return filtered;\n};","/*jshint -W054 */\n(function (exports) {\n 'use strict';\n\n // http://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array\n function shuffle(array) {\n var currentIndex = array.length,\n temporaryValue,\n randomIndex;\n\n // While there remain elements to shuffle...\n while (0 !== currentIndex) {\n // Pick a remaining element...\n randomIndex = Math.floor(Math.random() * currentIndex);\n currentIndex -= 1;\n\n // And swap it with the current element.\n temporaryValue = array[currentIndex];\n array[currentIndex] = array[randomIndex];\n array[randomIndex] = temporaryValue;\n }\n return array;\n }\n exports.knuthShuffle = shuffle;\n})('undefined' !== typeof exports && exports || 'undefined' !== typeof window && window || global);","var map = {\n\t\"./ar/choices\": 602,\n\t\"./da/choices\": 603,\n\t\"./de/choices\": 604,\n\t\"./en/choices\": 605,\n\t\"./es/choices\": 606,\n\t\"./et/choices\": 607,\n\t\"./fi/choices\": 608,\n\t\"./fr/choices\": 609,\n\t\"./he/choices\": 610,\n\t\"./hi/choices\": 611,\n\t\"./hr/choices\": 612,\n\t\"./id/choices\": 613,\n\t\"./is/choices\": 614,\n\t\"./it/choices\": 615,\n\t\"./ja/choices\": 616,\n\t\"./ko/choices\": 617,\n\t\"./nl/choices\": 618,\n\t\"./no/choices\": 619,\n\t\"./pl/choices\": 620,\n\t\"./pt-br/choices\": 621,\n\t\"./ro/choices\": 622,\n\t\"./ru/choices\": 623,\n\t\"./sq/choices\": 624,\n\t\"./sv/choices\": 625,\n\t\"./th/choices\": 626,\n\t\"./uk/choices\": 627,\n\t\"./ur/choices\": 628,\n\t\"./zh-cn/choices\": 629\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 454;","var map = {\n\t\"./en/choices\": 636,\n\t\"./pt-br/choices\": 637\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 455;","var conventions = require(\"./conventions\");\nvar find = conventions.find;\nvar NAMESPACE = conventions.NAMESPACE;\n\n/**\n * A prerequisite for `[].filter`, to drop elements that are empty\n * @param {string} input\n * @returns {boolean}\n */\nfunction notEmptyString(input) {\n return input !== '';\n}\n/**\n * @see https://infra.spec.whatwg.org/#split-on-ascii-whitespace\n * @see https://infra.spec.whatwg.org/#ascii-whitespace\n *\n * @param {string} input\n * @returns {string[]} (can be empty)\n */\nfunction splitOnASCIIWhitespace(input) {\n // U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, U+0020 SPACE\n return input ? input.split(/[\\t\\n\\f\\r ]+/).filter(notEmptyString) : [];\n}\n\n/**\n * Adds element as a key to current if it is not already present.\n *\n * @param {Record} current\n * @param {string} element\n * @returns {Record}\n */\nfunction orderedSetReducer(current, element) {\n if (!current.hasOwnProperty(element)) {\n current[element] = true;\n }\n return current;\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#ordered-set\n * @param {string} input\n * @returns {string[]}\n */\nfunction toOrderedSet(input) {\n if (!input) return [];\n var list = splitOnASCIIWhitespace(input);\n return Object.keys(list.reduce(orderedSetReducer, {}));\n}\n\n/**\n * Uses `list.indexOf` to implement something like `Array.prototype.includes`,\n * which we can not rely on being available.\n *\n * @param {any[]} list\n * @returns {function(any): boolean}\n */\nfunction arrayIncludes(list) {\n return function (element) {\n return list && list.indexOf(element) !== -1;\n };\n}\nfunction copy(src, dest) {\n for (var p in src) {\n if (Object.prototype.hasOwnProperty.call(src, p)) {\n dest[p] = src[p];\n }\n }\n}\n\n/**\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*((?:.*\\{\\s*?[\\r\\n][\\s\\S]*?^})|\\S.*?(?=[;\\r\\n]));?\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*(\\S.*?(?=[;\\r\\n]));?\n */\nfunction _extends(Class, Super) {\n var pt = Class.prototype;\n if (!(pt instanceof Super)) {\n function t() {}\n ;\n t.prototype = Super.prototype;\n t = new t();\n copy(pt, t);\n Class.prototype = pt = t;\n }\n if (pt.constructor != Class) {\n if (typeof Class != 'function') {\n console.error(\"unknown Class:\" + Class);\n }\n pt.constructor = Class;\n }\n}\n\n// Node Types\nvar NodeType = {};\nvar ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;\nvar ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;\nvar TEXT_NODE = NodeType.TEXT_NODE = 3;\nvar CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;\nvar ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;\nvar ENTITY_NODE = NodeType.ENTITY_NODE = 6;\nvar PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;\nvar COMMENT_NODE = NodeType.COMMENT_NODE = 8;\nvar DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;\nvar DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;\nvar DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;\nvar NOTATION_NODE = NodeType.NOTATION_NODE = 12;\n\n// ExceptionCode\nvar ExceptionCode = {};\nvar ExceptionMessage = {};\nvar INDEX_SIZE_ERR = ExceptionCode.INDEX_SIZE_ERR = (ExceptionMessage[1] = \"Index size error\", 1);\nvar DOMSTRING_SIZE_ERR = ExceptionCode.DOMSTRING_SIZE_ERR = (ExceptionMessage[2] = \"DOMString size error\", 2);\nvar HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = (ExceptionMessage[3] = \"Hierarchy request error\", 3);\nvar WRONG_DOCUMENT_ERR = ExceptionCode.WRONG_DOCUMENT_ERR = (ExceptionMessage[4] = \"Wrong document\", 4);\nvar INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = (ExceptionMessage[5] = \"Invalid character\", 5);\nvar NO_DATA_ALLOWED_ERR = ExceptionCode.NO_DATA_ALLOWED_ERR = (ExceptionMessage[6] = \"No data allowed\", 6);\nvar NO_MODIFICATION_ALLOWED_ERR = ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = (ExceptionMessage[7] = \"No modification allowed\", 7);\nvar NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = (ExceptionMessage[8] = \"Not found\", 8);\nvar NOT_SUPPORTED_ERR = ExceptionCode.NOT_SUPPORTED_ERR = (ExceptionMessage[9] = \"Not supported\", 9);\nvar INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = (ExceptionMessage[10] = \"Attribute in use\", 10);\n//level2\nvar INVALID_STATE_ERR = ExceptionCode.INVALID_STATE_ERR = (ExceptionMessage[11] = \"Invalid state\", 11);\nvar SYNTAX_ERR = ExceptionCode.SYNTAX_ERR = (ExceptionMessage[12] = \"Syntax error\", 12);\nvar INVALID_MODIFICATION_ERR = ExceptionCode.INVALID_MODIFICATION_ERR = (ExceptionMessage[13] = \"Invalid modification\", 13);\nvar NAMESPACE_ERR = ExceptionCode.NAMESPACE_ERR = (ExceptionMessage[14] = \"Invalid namespace\", 14);\nvar INVALID_ACCESS_ERR = ExceptionCode.INVALID_ACCESS_ERR = (ExceptionMessage[15] = \"Invalid access\", 15);\n\n/**\n * DOM Level 2\n * Object DOMException\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html\n * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html\n */\nfunction DOMException(code, message) {\n if (message instanceof Error) {\n var error = message;\n } else {\n error = this;\n Error.call(this, ExceptionMessage[code]);\n this.message = ExceptionMessage[code];\n if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);\n }\n error.code = code;\n if (message) this.message = this.message + \": \" + message;\n return error;\n}\n;\nDOMException.prototype = Error.prototype;\ncopy(ExceptionCode, DOMException);\n\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177\n * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.\n * The items in the NodeList are accessible via an integral index, starting from 0.\n */\nfunction NodeList() {}\n;\nNodeList.prototype = {\n /**\n * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.\n * @standard level1\n */\n length: 0,\n /**\n * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.\n * @standard level1\n * @param index unsigned long\n * Index into the collection.\n * @return Node\n * \tThe node at the indexth position in the NodeList, or null if that is not a valid index.\n */\n item: function (index) {\n return index >= 0 && index < this.length ? this[index] : null;\n },\n toString: function (isHTML, nodeFilter) {\n for (var buf = [], i = 0; i < this.length; i++) {\n serializeToString(this[i], buf, isHTML, nodeFilter);\n }\n return buf.join('');\n },\n /**\n * @private\n * @param {function (Node):boolean} predicate\n * @returns {Node[]}\n */\n filter: function (predicate) {\n return Array.prototype.filter.call(this, predicate);\n },\n /**\n * @private\n * @param {Node} item\n * @returns {number}\n */\n indexOf: function (item) {\n return Array.prototype.indexOf.call(this, item);\n }\n};\nfunction LiveNodeList(node, refresh) {\n this._node = node;\n this._refresh = refresh;\n _updateLiveList(this);\n}\nfunction _updateLiveList(list) {\n var inc = list._node._inc || list._node.ownerDocument._inc;\n if (list._inc !== inc) {\n var ls = list._refresh(list._node);\n __set__(list, 'length', ls.length);\n if (!list.$$length || ls.length < list.$$length) {\n for (var i = ls.length; (i in list); i++) {\n if (Object.prototype.hasOwnProperty.call(list, i)) {\n delete list[i];\n }\n }\n }\n copy(ls, list);\n list._inc = inc;\n }\n}\nLiveNodeList.prototype.item = function (i) {\n _updateLiveList(this);\n return this[i] || null;\n};\n_extends(LiveNodeList, NodeList);\n\n/**\n * Objects implementing the NamedNodeMap interface are used\n * to represent collections of nodes that can be accessed by name.\n * Note that NamedNodeMap does not inherit from NodeList;\n * NamedNodeMaps are not maintained in any particular order.\n * Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index,\n * but this is simply to allow convenient enumeration of the contents of a NamedNodeMap,\n * and does not imply that the DOM specifies an order to these Nodes.\n * NamedNodeMap objects in the DOM are live.\n * used for attributes or DocumentType entities\n */\nfunction NamedNodeMap() {}\n;\nfunction _findNodeIndex(list, node) {\n var i = list.length;\n while (i--) {\n if (list[i] === node) {\n return i;\n }\n }\n}\nfunction _addNamedNode(el, list, newAttr, oldAttr) {\n if (oldAttr) {\n list[_findNodeIndex(list, oldAttr)] = newAttr;\n } else {\n list[list.length++] = newAttr;\n }\n if (el) {\n newAttr.ownerElement = el;\n var doc = el.ownerDocument;\n if (doc) {\n oldAttr && _onRemoveAttribute(doc, el, oldAttr);\n _onAddAttribute(doc, el, newAttr);\n }\n }\n}\nfunction _removeNamedNode(el, list, attr) {\n //console.log('remove attr:'+attr)\n var i = _findNodeIndex(list, attr);\n if (i >= 0) {\n var lastIndex = list.length - 1;\n while (i < lastIndex) {\n list[i] = list[++i];\n }\n list.length = lastIndex;\n if (el) {\n var doc = el.ownerDocument;\n if (doc) {\n _onRemoveAttribute(doc, el, attr);\n attr.ownerElement = null;\n }\n }\n } else {\n throw new DOMException(NOT_FOUND_ERR, new Error(el.tagName + '@' + attr));\n }\n}\nNamedNodeMap.prototype = {\n length: 0,\n item: NodeList.prototype.item,\n getNamedItem: function (key) {\n //\t\tif(key.indexOf(':')>0 || key == 'xmlns'){\n //\t\t\treturn null;\n //\t\t}\n //console.log()\n var i = this.length;\n while (i--) {\n var attr = this[i];\n //console.log(attr.nodeName,key)\n if (attr.nodeName == key) {\n return attr;\n }\n }\n },\n setNamedItem: function (attr) {\n var el = attr.ownerElement;\n if (el && el != this._ownerElement) {\n throw new DOMException(INUSE_ATTRIBUTE_ERR);\n }\n var oldAttr = this.getNamedItem(attr.nodeName);\n _addNamedNode(this._ownerElement, this, attr, oldAttr);\n return oldAttr;\n },\n /* returns Node */\n setNamedItemNS: function (attr) {\n // raises: WRONG_DOCUMENT_ERR,NO_MODIFICATION_ALLOWED_ERR,INUSE_ATTRIBUTE_ERR\n var el = attr.ownerElement,\n oldAttr;\n if (el && el != this._ownerElement) {\n throw new DOMException(INUSE_ATTRIBUTE_ERR);\n }\n oldAttr = this.getNamedItemNS(attr.namespaceURI, attr.localName);\n _addNamedNode(this._ownerElement, this, attr, oldAttr);\n return oldAttr;\n },\n /* returns Node */\n removeNamedItem: function (key) {\n var attr = this.getNamedItem(key);\n _removeNamedNode(this._ownerElement, this, attr);\n return attr;\n },\n // raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR\n\n //for level2\n removeNamedItemNS: function (namespaceURI, localName) {\n var attr = this.getNamedItemNS(namespaceURI, localName);\n _removeNamedNode(this._ownerElement, this, attr);\n return attr;\n },\n getNamedItemNS: function (namespaceURI, localName) {\n var i = this.length;\n while (i--) {\n var node = this[i];\n if (node.localName == localName && node.namespaceURI == namespaceURI) {\n return node;\n }\n }\n return null;\n }\n};\n\n/**\n * The DOMImplementation interface represents an object providing methods\n * which are not dependent on any particular document.\n * Such an object is returned by the `Document.implementation` property.\n *\n * __The individual methods describe the differences compared to the specs.__\n *\n * @constructor\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN\n * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core (Initial)\n * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core\n * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core\n * @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard\n */\nfunction DOMImplementation() {}\nDOMImplementation.prototype = {\n /**\n * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.\n * The different implementations fairly diverged in what kind of features were reported.\n * The latest version of the spec settled to force this method to always return true, where the functionality was accurate and in use.\n *\n * @deprecated It is deprecated and modern browsers return true in all cases.\n *\n * @param {string} feature\n * @param {string} [version]\n * @returns {boolean} always true\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature MDN\n * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core\n * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard\n */\n hasFeature: function (feature, version) {\n return true;\n },\n /**\n * Creates an XML Document object of the specified type with its document element.\n *\n * __It behaves slightly different from the description in the living standard__:\n * - There is no interface/class `XMLDocument`, it returns a `Document` instance.\n * - `contentType`, `encoding`, `mode`, `origin`, `url` fields are currently not declared.\n * - this implementation is not validating names or qualified names\n * (when parsing XML strings, the SAX parser takes care of that)\n *\n * @param {string|null} namespaceURI\n * @param {string} qualifiedName\n * @param {DocumentType=null} doctype\n * @returns {Document}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument MDN\n * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocument DOM Level 2 Core (initial)\n * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOM Level 2 Core\n *\n * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract\n * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names\n * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names\n */\n createDocument: function (namespaceURI, qualifiedName, doctype) {\n var doc = new Document();\n doc.implementation = this;\n doc.childNodes = new NodeList();\n doc.doctype = doctype || null;\n if (doctype) {\n doc.appendChild(doctype);\n }\n if (qualifiedName) {\n var root = doc.createElementNS(namespaceURI, qualifiedName);\n doc.appendChild(root);\n }\n return doc;\n },\n /**\n * Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`.\n *\n * __This behavior is slightly different from the in the specs__:\n * - this implementation is not validating names or qualified names\n * (when parsing XML strings, the SAX parser takes care of that)\n *\n * @param {string} qualifiedName\n * @param {string} [publicId]\n * @param {string} [systemId]\n * @returns {DocumentType} which can either be used with `DOMImplementation.createDocument` upon document creation\n * \t\t\t\t or can be put into the document via methods like `Node.insertBefore()` or `Node.replaceChild()`\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType MDN\n * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocType DOM Level 2 Core\n * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype DOM Living Standard\n *\n * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract\n * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names\n * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names\n */\n createDocumentType: function (qualifiedName, publicId, systemId) {\n var node = new DocumentType();\n node.name = qualifiedName;\n node.nodeName = qualifiedName;\n node.publicId = publicId || '';\n node.systemId = systemId || '';\n return node;\n }\n};\n\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247\n */\n\nfunction Node() {}\n;\nNode.prototype = {\n firstChild: null,\n lastChild: null,\n previousSibling: null,\n nextSibling: null,\n attributes: null,\n parentNode: null,\n childNodes: null,\n ownerDocument: null,\n nodeValue: null,\n namespaceURI: null,\n prefix: null,\n localName: null,\n // Modified in DOM Level 2:\n insertBefore: function (newChild, refChild) {\n //raises\n return _insertBefore(this, newChild, refChild);\n },\n replaceChild: function (newChild, oldChild) {\n //raises\n _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);\n if (oldChild) {\n this.removeChild(oldChild);\n }\n },\n removeChild: function (oldChild) {\n return _removeChild(this, oldChild);\n },\n appendChild: function (newChild) {\n return this.insertBefore(newChild, null);\n },\n hasChildNodes: function () {\n return this.firstChild != null;\n },\n cloneNode: function (deep) {\n return cloneNode(this.ownerDocument || this, this, deep);\n },\n // Modified in DOM Level 2:\n normalize: function () {\n var child = this.firstChild;\n while (child) {\n var next = child.nextSibling;\n if (next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE) {\n this.removeChild(next);\n child.appendData(next.data);\n } else {\n child.normalize();\n child = next;\n }\n }\n },\n // Introduced in DOM Level 2:\n isSupported: function (feature, version) {\n return this.ownerDocument.implementation.hasFeature(feature, version);\n },\n // Introduced in DOM Level 2:\n hasAttributes: function () {\n return this.attributes.length > 0;\n },\n /**\n * Look up the prefix associated to the given namespace URI, starting from this node.\n * **The default namespace declarations are ignored by this method.**\n * See Namespace Prefix Lookup for details on the algorithm used by this method.\n *\n * _Note: The implementation seems to be incomplete when compared to the algorithm described in the specs._\n *\n * @param {string | null} namespaceURI\n * @returns {string | null}\n * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix\n * @see https://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#lookupNamespacePrefixAlgo\n * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix\n * @see https://github.com/xmldom/xmldom/issues/322\n */\n lookupPrefix: function (namespaceURI) {\n var el = this;\n while (el) {\n var map = el._nsMap;\n //console.dir(map)\n if (map) {\n for (var n in map) {\n if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) {\n return n;\n }\n }\n }\n el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;\n }\n return null;\n },\n // Introduced in DOM Level 3:\n lookupNamespaceURI: function (prefix) {\n var el = this;\n while (el) {\n var map = el._nsMap;\n //console.dir(map)\n if (map) {\n if (Object.prototype.hasOwnProperty.call(map, prefix)) {\n return map[prefix];\n }\n }\n el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;\n }\n return null;\n },\n // Introduced in DOM Level 3:\n isDefaultNamespace: function (namespaceURI) {\n var prefix = this.lookupPrefix(namespaceURI);\n return prefix == null;\n }\n};\nfunction _xmlEncoder(c) {\n return c == '<' && '<' || c == '>' && '>' || c == '&' && '&' || c == '\"' && '"' || '' + c.charCodeAt() + ';';\n}\ncopy(NodeType, Node);\ncopy(NodeType, Node.prototype);\n\n/**\n * @param callback return true for continue,false for break\n * @return boolean true: break visit;\n */\nfunction _visitNode(node, callback) {\n if (callback(node)) {\n return true;\n }\n if (node = node.firstChild) {\n do {\n if (_visitNode(node, callback)) {\n return true;\n }\n } while (node = node.nextSibling);\n }\n}\nfunction Document() {\n this.ownerDocument = this;\n}\nfunction _onAddAttribute(doc, el, newAttr) {\n doc && doc._inc++;\n var ns = newAttr.namespaceURI;\n if (ns === NAMESPACE.XMLNS) {\n //update namespace\n el._nsMap[newAttr.prefix ? newAttr.localName : ''] = newAttr.value;\n }\n}\nfunction _onRemoveAttribute(doc, el, newAttr, remove) {\n doc && doc._inc++;\n var ns = newAttr.namespaceURI;\n if (ns === NAMESPACE.XMLNS) {\n //update namespace\n delete el._nsMap[newAttr.prefix ? newAttr.localName : ''];\n }\n}\n\n/**\n * Updates `el.childNodes`, updating the indexed items and it's `length`.\n * Passing `newChild` means it will be appended.\n * Otherwise it's assumed that an item has been removed,\n * and `el.firstNode` and it's `.nextSibling` are used\n * to walk the current list of child nodes.\n *\n * @param {Document} doc\n * @param {Node} el\n * @param {Node} [newChild]\n * @private\n */\nfunction _onUpdateChild(doc, el, newChild) {\n if (doc && doc._inc) {\n doc._inc++;\n //update childNodes\n var cs = el.childNodes;\n if (newChild) {\n cs[cs.length++] = newChild;\n } else {\n var child = el.firstChild;\n var i = 0;\n while (child) {\n cs[i++] = child;\n child = child.nextSibling;\n }\n cs.length = i;\n delete cs[cs.length];\n }\n }\n}\n\n/**\n * Removes the connections between `parentNode` and `child`\n * and any existing `child.previousSibling` or `child.nextSibling`.\n *\n * @see https://github.com/xmldom/xmldom/issues/135\n * @see https://github.com/xmldom/xmldom/issues/145\n *\n * @param {Node} parentNode\n * @param {Node} child\n * @returns {Node} the child that was removed.\n * @private\n */\nfunction _removeChild(parentNode, child) {\n var previous = child.previousSibling;\n var next = child.nextSibling;\n if (previous) {\n previous.nextSibling = next;\n } else {\n parentNode.firstChild = next;\n }\n if (next) {\n next.previousSibling = previous;\n } else {\n parentNode.lastChild = previous;\n }\n child.parentNode = null;\n child.previousSibling = null;\n child.nextSibling = null;\n _onUpdateChild(parentNode.ownerDocument, parentNode);\n return child;\n}\n\n/**\n * Returns `true` if `node` can be a parent for insertion.\n * @param {Node} node\n * @returns {boolean}\n */\nfunction hasValidParentNodeType(node) {\n return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);\n}\n\n/**\n * Returns `true` if `node` can be inserted according to it's `nodeType`.\n * @param {Node} node\n * @returns {boolean}\n */\nfunction hasInsertableNodeType(node) {\n return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);\n}\n\n/**\n * Returns true if `node` is a DOCTYPE node\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isDocTypeNode(node) {\n return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;\n}\n\n/**\n * Returns true if the node is an element\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isElementNode(node) {\n return node && node.nodeType === Node.ELEMENT_NODE;\n}\n/**\n * Returns true if `node` is a text node\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isTextNode(node) {\n return node && node.nodeType === Node.TEXT_NODE;\n}\n\n/**\n * Check if en element node can be inserted before `child`, or at the end if child is falsy,\n * according to the presence and position of a doctype node on the same level.\n *\n * @param {Document} doc The document node\n * @param {Node} child the node that would become the nextSibling if the element would be inserted\n * @returns {boolean} `true` if an element can be inserted before child\n * @private\n * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction isElementInsertionPossible(doc, child) {\n var parentChildNodes = doc.childNodes || [];\n if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {\n return false;\n }\n var docTypeNode = find(parentChildNodes, isDocTypeNode);\n return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));\n}\n\n/**\n * Check if en element node can be inserted before `child`, or at the end if child is falsy,\n * according to the presence and position of a doctype node on the same level.\n *\n * @param {Node} doc The document node\n * @param {Node} child the node that would become the nextSibling if the element would be inserted\n * @returns {boolean} `true` if an element can be inserted before child\n * @private\n * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction isElementReplacementPossible(doc, child) {\n var parentChildNodes = doc.childNodes || [];\n function hasElementChildThatIsNotChild(node) {\n return isElementNode(node) && node !== child;\n }\n if (find(parentChildNodes, hasElementChildThatIsNotChild)) {\n return false;\n }\n var docTypeNode = find(parentChildNodes, isDocTypeNode);\n return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));\n}\n\n/**\n * @private\n * Steps 1-5 of the checks before inserting and before replacing a child are the same.\n *\n * @param {Node} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node=} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreInsertionValidity1to5(parent, node, child) {\n // 1. If `parent` is not a Document, DocumentFragment, or Element node, then throw a \"HierarchyRequestError\" DOMException.\n if (!hasValidParentNodeType(parent)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Unexpected parent node type ' + parent.nodeType);\n }\n // 2. If `node` is a host-including inclusive ancestor of `parent`, then throw a \"HierarchyRequestError\" DOMException.\n // not implemented!\n // 3. If `child` is non-null and its parent is not `parent`, then throw a \"NotFoundError\" DOMException.\n if (child && child.parentNode !== parent) {\n throw new DOMException(NOT_FOUND_ERR, 'child not in parent');\n }\n if (\n // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a \"HierarchyRequestError\" DOMException.\n !hasInsertableNodeType(node) ||\n // 5. If either `node` is a Text node and `parent` is a document,\n // the sax parser currently adds top level text nodes, this will be fixed in 0.9.0\n // || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)\n // or `node` is a doctype and `parent` is not a document, then throw a \"HierarchyRequestError\" DOMException.\n isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Unexpected node type ' + node.nodeType + ' for parent node type ' + parent.nodeType);\n }\n}\n\n/**\n * @private\n * Step 6 of the checks before inserting and before replacing a child are different.\n *\n * @param {Document} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node | undefined} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreInsertionValidityInDocument(parent, node, child) {\n var parentChildNodes = parent.childNodes || [];\n var nodeChildNodes = node.childNodes || [];\n\n // DocumentFragment\n if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n var nodeChildElements = nodeChildNodes.filter(isElementNode);\n // If node has more than one element child or has a Text node child.\n if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment');\n }\n // Otherwise, if `node` has one element child and either `parent` has an element child,\n // `child` is a doctype, or `child` is non-null and a doctype is following `child`.\n if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype');\n }\n }\n // Element\n if (isElementNode(node)) {\n // `parent` has an element child, `child` is a doctype,\n // or `child` is non-null and a doctype is following `child`.\n if (!isElementInsertionPossible(parent, child)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype');\n }\n }\n // DocumentType\n if (isDocTypeNode(node)) {\n // `parent` has a doctype child,\n if (find(parentChildNodes, isDocTypeNode)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed');\n }\n var parentElementChild = find(parentChildNodes, isElementNode);\n // `child` is non-null and an element is preceding `child`,\n if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element');\n }\n // or `child` is null and `parent` has an element child.\n if (!child && parentElementChild) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can not be appended since element is present');\n }\n }\n}\n\n/**\n * @private\n * Step 6 of the checks before inserting and before replacing a child are different.\n *\n * @param {Document} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node | undefined} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreReplacementValidityInDocument(parent, node, child) {\n var parentChildNodes = parent.childNodes || [];\n var nodeChildNodes = node.childNodes || [];\n\n // DocumentFragment\n if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n var nodeChildElements = nodeChildNodes.filter(isElementNode);\n // If `node` has more than one element child or has a Text node child.\n if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment');\n }\n // Otherwise, if `node` has one element child and either `parent` has an element child that is not `child` or a doctype is following `child`.\n if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype');\n }\n }\n // Element\n if (isElementNode(node)) {\n // `parent` has an element child that is not `child` or a doctype is following `child`.\n if (!isElementReplacementPossible(parent, child)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype');\n }\n }\n // DocumentType\n if (isDocTypeNode(node)) {\n function hasDoctypeChildThatIsNotChild(node) {\n return isDocTypeNode(node) && node !== child;\n }\n\n // `parent` has a doctype child that is not `child`,\n if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed');\n }\n var parentElementChild = find(parentChildNodes, isElementNode);\n // or an element is preceding `child`.\n if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {\n throw new DOMException(HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element');\n }\n }\n}\n\n/**\n * @private\n * @param {Node} parent the parent node to insert `node` into\n * @param {Node} node the node to insert\n * @param {Node=} child the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws DOMException for several node combinations that would create a DOM that is not well-formed.\n * @throws DOMException if `child` is provided but is not a child of `parent`.\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction _insertBefore(parent, node, child, _inDocumentAssertion) {\n // To ensure pre-insertion validity of a node into a parent before a child, run these steps:\n assertPreInsertionValidity1to5(parent, node, child);\n\n // If parent is a document, and any of the statements below, switched on the interface node implements,\n // are true, then throw a \"HierarchyRequestError\" DOMException.\n if (parent.nodeType === Node.DOCUMENT_NODE) {\n (_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);\n }\n var cp = node.parentNode;\n if (cp) {\n cp.removeChild(node); //remove and update\n }\n\n if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {\n var newFirst = node.firstChild;\n if (newFirst == null) {\n return node;\n }\n var newLast = node.lastChild;\n } else {\n newFirst = newLast = node;\n }\n var pre = child ? child.previousSibling : parent.lastChild;\n newFirst.previousSibling = pre;\n newLast.nextSibling = child;\n if (pre) {\n pre.nextSibling = newFirst;\n } else {\n parent.firstChild = newFirst;\n }\n if (child == null) {\n parent.lastChild = newLast;\n } else {\n child.previousSibling = newLast;\n }\n do {\n newFirst.parentNode = parent;\n } while (newFirst !== newLast && (newFirst = newFirst.nextSibling));\n _onUpdateChild(parent.ownerDocument || parent, parent);\n //console.log(parent.lastChild.nextSibling == null)\n if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {\n node.firstChild = node.lastChild = null;\n }\n return node;\n}\n\n/**\n * Appends `newChild` to `parentNode`.\n * If `newChild` is already connected to a `parentNode` it is first removed from it.\n *\n * @see https://github.com/xmldom/xmldom/issues/135\n * @see https://github.com/xmldom/xmldom/issues/145\n * @param {Node} parentNode\n * @param {Node} newChild\n * @returns {Node}\n * @private\n */\nfunction _appendSingleChild(parentNode, newChild) {\n if (newChild.parentNode) {\n newChild.parentNode.removeChild(newChild);\n }\n newChild.parentNode = parentNode;\n newChild.previousSibling = parentNode.lastChild;\n newChild.nextSibling = null;\n if (newChild.previousSibling) {\n newChild.previousSibling.nextSibling = newChild;\n } else {\n parentNode.firstChild = newChild;\n }\n parentNode.lastChild = newChild;\n _onUpdateChild(parentNode.ownerDocument, parentNode, newChild);\n return newChild;\n}\nDocument.prototype = {\n //implementation : null,\n nodeName: '#document',\n nodeType: DOCUMENT_NODE,\n /**\n * The DocumentType node of the document.\n *\n * @readonly\n * @type DocumentType\n */\n doctype: null,\n documentElement: null,\n _inc: 1,\n insertBefore: function (newChild, refChild) {\n //raises\n if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {\n var child = newChild.firstChild;\n while (child) {\n var next = child.nextSibling;\n this.insertBefore(child, refChild);\n child = next;\n }\n return newChild;\n }\n _insertBefore(this, newChild, refChild);\n newChild.ownerDocument = this;\n if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {\n this.documentElement = newChild;\n }\n return newChild;\n },\n removeChild: function (oldChild) {\n if (this.documentElement == oldChild) {\n this.documentElement = null;\n }\n return _removeChild(this, oldChild);\n },\n replaceChild: function (newChild, oldChild) {\n //raises\n _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);\n newChild.ownerDocument = this;\n if (oldChild) {\n this.removeChild(oldChild);\n }\n if (isElementNode(newChild)) {\n this.documentElement = newChild;\n }\n },\n // Introduced in DOM Level 2:\n importNode: function (importedNode, deep) {\n return importNode(this, importedNode, deep);\n },\n // Introduced in DOM Level 2:\n getElementById: function (id) {\n var rtv = null;\n _visitNode(this.documentElement, function (node) {\n if (node.nodeType == ELEMENT_NODE) {\n if (node.getAttribute('id') == id) {\n rtv = node;\n return true;\n }\n }\n });\n return rtv;\n },\n /**\n * The `getElementsByClassName` method of `Document` interface returns an array-like object\n * of all child elements which have **all** of the given class name(s).\n *\n * Returns an empty list if `classeNames` is an empty string or only contains HTML white space characters.\n *\n *\n * Warning: This is a live LiveNodeList.\n * Changes in the DOM will reflect in the array as the changes occur.\n * If an element selected by this array no longer qualifies for the selector,\n * it will automatically be removed. Be aware of this for iteration purposes.\n *\n * @param {string} classNames is a string representing the class name(s) to match; multiple class names are separated by (ASCII-)whitespace\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName\n * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname\n */\n getElementsByClassName: function (classNames) {\n var classNamesSet = toOrderedSet(classNames);\n return new LiveNodeList(this, function (base) {\n var ls = [];\n if (classNamesSet.length > 0) {\n _visitNode(base.documentElement, function (node) {\n if (node !== base && node.nodeType === ELEMENT_NODE) {\n var nodeClassNames = node.getAttribute('class');\n // can be null if the attribute does not exist\n if (nodeClassNames) {\n // before splitting and iterating just compare them for the most common case\n var matches = classNames === nodeClassNames;\n if (!matches) {\n var nodeClassNamesSet = toOrderedSet(nodeClassNames);\n matches = classNamesSet.every(arrayIncludes(nodeClassNamesSet));\n }\n if (matches) {\n ls.push(node);\n }\n }\n }\n });\n }\n return ls;\n });\n },\n //document factory method:\n createElement: function (tagName) {\n var node = new Element();\n node.ownerDocument = this;\n node.nodeName = tagName;\n node.tagName = tagName;\n node.localName = tagName;\n node.childNodes = new NodeList();\n var attrs = node.attributes = new NamedNodeMap();\n attrs._ownerElement = node;\n return node;\n },\n createDocumentFragment: function () {\n var node = new DocumentFragment();\n node.ownerDocument = this;\n node.childNodes = new NodeList();\n return node;\n },\n createTextNode: function (data) {\n var node = new Text();\n node.ownerDocument = this;\n node.appendData(data);\n return node;\n },\n createComment: function (data) {\n var node = new Comment();\n node.ownerDocument = this;\n node.appendData(data);\n return node;\n },\n createCDATASection: function (data) {\n var node = new CDATASection();\n node.ownerDocument = this;\n node.appendData(data);\n return node;\n },\n createProcessingInstruction: function (target, data) {\n var node = new ProcessingInstruction();\n node.ownerDocument = this;\n node.tagName = node.nodeName = node.target = target;\n node.nodeValue = node.data = data;\n return node;\n },\n createAttribute: function (name) {\n var node = new Attr();\n node.ownerDocument = this;\n node.name = name;\n node.nodeName = name;\n node.localName = name;\n node.specified = true;\n return node;\n },\n createEntityReference: function (name) {\n var node = new EntityReference();\n node.ownerDocument = this;\n node.nodeName = name;\n return node;\n },\n // Introduced in DOM Level 2:\n createElementNS: function (namespaceURI, qualifiedName) {\n var node = new Element();\n var pl = qualifiedName.split(':');\n var attrs = node.attributes = new NamedNodeMap();\n node.childNodes = new NodeList();\n node.ownerDocument = this;\n node.nodeName = qualifiedName;\n node.tagName = qualifiedName;\n node.namespaceURI = namespaceURI;\n if (pl.length == 2) {\n node.prefix = pl[0];\n node.localName = pl[1];\n } else {\n //el.prefix = null;\n node.localName = qualifiedName;\n }\n attrs._ownerElement = node;\n return node;\n },\n // Introduced in DOM Level 2:\n createAttributeNS: function (namespaceURI, qualifiedName) {\n var node = new Attr();\n var pl = qualifiedName.split(':');\n node.ownerDocument = this;\n node.nodeName = qualifiedName;\n node.name = qualifiedName;\n node.namespaceURI = namespaceURI;\n node.specified = true;\n if (pl.length == 2) {\n node.prefix = pl[0];\n node.localName = pl[1];\n } else {\n //el.prefix = null;\n node.localName = qualifiedName;\n }\n return node;\n }\n};\n_extends(Document, Node);\nfunction Element() {\n this._nsMap = {};\n}\n;\nElement.prototype = {\n nodeType: ELEMENT_NODE,\n hasAttribute: function (name) {\n return this.getAttributeNode(name) != null;\n },\n getAttribute: function (name) {\n var attr = this.getAttributeNode(name);\n return attr && attr.value || '';\n },\n getAttributeNode: function (name) {\n return this.attributes.getNamedItem(name);\n },\n setAttribute: function (name, value) {\n var attr = this.ownerDocument.createAttribute(name);\n attr.value = attr.nodeValue = \"\" + value;\n this.setAttributeNode(attr);\n },\n removeAttribute: function (name) {\n var attr = this.getAttributeNode(name);\n attr && this.removeAttributeNode(attr);\n },\n //four real opeartion method\n appendChild: function (newChild) {\n if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) {\n return this.insertBefore(newChild, null);\n } else {\n return _appendSingleChild(this, newChild);\n }\n },\n setAttributeNode: function (newAttr) {\n return this.attributes.setNamedItem(newAttr);\n },\n setAttributeNodeNS: function (newAttr) {\n return this.attributes.setNamedItemNS(newAttr);\n },\n removeAttributeNode: function (oldAttr) {\n //console.log(this == oldAttr.ownerElement)\n return this.attributes.removeNamedItem(oldAttr.nodeName);\n },\n //get real attribute name,and remove it by removeAttributeNode\n removeAttributeNS: function (namespaceURI, localName) {\n var old = this.getAttributeNodeNS(namespaceURI, localName);\n old && this.removeAttributeNode(old);\n },\n hasAttributeNS: function (namespaceURI, localName) {\n return this.getAttributeNodeNS(namespaceURI, localName) != null;\n },\n getAttributeNS: function (namespaceURI, localName) {\n var attr = this.getAttributeNodeNS(namespaceURI, localName);\n return attr && attr.value || '';\n },\n setAttributeNS: function (namespaceURI, qualifiedName, value) {\n var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);\n attr.value = attr.nodeValue = \"\" + value;\n this.setAttributeNode(attr);\n },\n getAttributeNodeNS: function (namespaceURI, localName) {\n return this.attributes.getNamedItemNS(namespaceURI, localName);\n },\n getElementsByTagName: function (tagName) {\n return new LiveNodeList(this, function (base) {\n var ls = [];\n _visitNode(base, function (node) {\n if (node !== base && node.nodeType == ELEMENT_NODE && (tagName === '*' || node.tagName == tagName)) {\n ls.push(node);\n }\n });\n return ls;\n });\n },\n getElementsByTagNameNS: function (namespaceURI, localName) {\n return new LiveNodeList(this, function (base) {\n var ls = [];\n _visitNode(base, function (node) {\n if (node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === '*' || node.namespaceURI === namespaceURI) && (localName === '*' || node.localName == localName)) {\n ls.push(node);\n }\n });\n return ls;\n });\n }\n};\nDocument.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;\nDocument.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;\n_extends(Element, Node);\nfunction Attr() {}\n;\nAttr.prototype.nodeType = ATTRIBUTE_NODE;\n_extends(Attr, Node);\nfunction CharacterData() {}\n;\nCharacterData.prototype = {\n data: '',\n substringData: function (offset, count) {\n return this.data.substring(offset, offset + count);\n },\n appendData: function (text) {\n text = this.data + text;\n this.nodeValue = this.data = text;\n this.length = text.length;\n },\n insertData: function (offset, text) {\n this.replaceData(offset, 0, text);\n },\n appendChild: function (newChild) {\n throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);\n },\n deleteData: function (offset, count) {\n this.replaceData(offset, count, \"\");\n },\n replaceData: function (offset, count, text) {\n var start = this.data.substring(0, offset);\n var end = this.data.substring(offset + count);\n text = start + text + end;\n this.nodeValue = this.data = text;\n this.length = text.length;\n }\n};\n_extends(CharacterData, Node);\nfunction Text() {}\n;\nText.prototype = {\n nodeName: \"#text\",\n nodeType: TEXT_NODE,\n splitText: function (offset) {\n var text = this.data;\n var newText = text.substring(offset);\n text = text.substring(0, offset);\n this.data = this.nodeValue = text;\n this.length = text.length;\n var newNode = this.ownerDocument.createTextNode(newText);\n if (this.parentNode) {\n this.parentNode.insertBefore(newNode, this.nextSibling);\n }\n return newNode;\n }\n};\n_extends(Text, CharacterData);\nfunction Comment() {}\n;\nComment.prototype = {\n nodeName: \"#comment\",\n nodeType: COMMENT_NODE\n};\n_extends(Comment, CharacterData);\nfunction CDATASection() {}\n;\nCDATASection.prototype = {\n nodeName: \"#cdata-section\",\n nodeType: CDATA_SECTION_NODE\n};\n_extends(CDATASection, CharacterData);\nfunction DocumentType() {}\n;\nDocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;\n_extends(DocumentType, Node);\nfunction Notation() {}\n;\nNotation.prototype.nodeType = NOTATION_NODE;\n_extends(Notation, Node);\nfunction Entity() {}\n;\nEntity.prototype.nodeType = ENTITY_NODE;\n_extends(Entity, Node);\nfunction EntityReference() {}\n;\nEntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;\n_extends(EntityReference, Node);\nfunction DocumentFragment() {}\n;\nDocumentFragment.prototype.nodeName = \"#document-fragment\";\nDocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE;\n_extends(DocumentFragment, Node);\nfunction ProcessingInstruction() {}\nProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;\n_extends(ProcessingInstruction, Node);\nfunction XMLSerializer() {}\nXMLSerializer.prototype.serializeToString = function (node, isHtml, nodeFilter) {\n return nodeSerializeToString.call(node, isHtml, nodeFilter);\n};\nNode.prototype.toString = nodeSerializeToString;\nfunction nodeSerializeToString(isHtml, nodeFilter) {\n var buf = [];\n var refNode = this.nodeType == 9 && this.documentElement || this;\n var prefix = refNode.prefix;\n var uri = refNode.namespaceURI;\n if (uri && prefix == null) {\n //console.log(prefix)\n var prefix = refNode.lookupPrefix(uri);\n if (prefix == null) {\n //isHTML = true;\n var visibleNamespaces = [{\n namespace: uri,\n prefix: null\n }\n //{namespace:uri,prefix:''}\n ];\n }\n }\n\n serializeToString(this, buf, isHtml, nodeFilter, visibleNamespaces);\n //console.log('###',this.nodeType,uri,prefix,buf.join(''))\n return buf.join('');\n}\nfunction needNamespaceDefine(node, isHTML, visibleNamespaces) {\n var prefix = node.prefix || '';\n var uri = node.namespaceURI;\n // According to [Namespaces in XML 1.0](https://www.w3.org/TR/REC-xml-names/#ns-using) ,\n // and more specifically https://www.w3.org/TR/REC-xml-names/#nsc-NoPrefixUndecl :\n // > In a namespace declaration for a prefix [...], the attribute value MUST NOT be empty.\n // in a similar manner [Namespaces in XML 1.1](https://www.w3.org/TR/xml-names11/#ns-using)\n // and more specifically https://www.w3.org/TR/xml-names11/#nsc-NSDeclared :\n // > [...] Furthermore, the attribute value [...] must not be an empty string.\n // so serializing empty namespace value like xmlns:ds=\"\" would produce an invalid XML document.\n if (!uri) {\n return false;\n }\n if (prefix === \"xml\" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) {\n return false;\n }\n var i = visibleNamespaces.length;\n while (i--) {\n var ns = visibleNamespaces[i];\n // get namespace prefix\n if (ns.prefix === prefix) {\n return ns.namespace !== uri;\n }\n }\n return true;\n}\n/**\n * Well-formed constraint: No < in Attribute Values\n * > The replacement text of any entity referred to directly or indirectly\n * > in an attribute value must not contain a <.\n * @see https://www.w3.org/TR/xml11/#CleanAttrVals\n * @see https://www.w3.org/TR/xml11/#NT-AttValue\n *\n * Literal whitespace other than space that appear in attribute values\n * are serialized as their entity references, so they will be preserved.\n * (In contrast to whitespace literals in the input which are normalized to spaces)\n * @see https://www.w3.org/TR/xml11/#AVNormalize\n * @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes\n */\nfunction addSerializedAttribute(buf, qualifiedName, value) {\n buf.push(' ', qualifiedName, '=\"', value.replace(/[<>&\"\\t\\n\\r]/g, _xmlEncoder), '\"');\n}\nfunction serializeToString(node, buf, isHTML, nodeFilter, visibleNamespaces) {\n if (!visibleNamespaces) {\n visibleNamespaces = [];\n }\n if (nodeFilter) {\n node = nodeFilter(node);\n if (node) {\n if (typeof node == 'string') {\n buf.push(node);\n return;\n }\n } else {\n return;\n }\n //buf.sort.apply(attrs, attributeSorter);\n }\n\n switch (node.nodeType) {\n case ELEMENT_NODE:\n var attrs = node.attributes;\n var len = attrs.length;\n var child = node.firstChild;\n var nodeName = node.tagName;\n isHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML;\n var prefixedNodeName = nodeName;\n if (!isHTML && !node.prefix && node.namespaceURI) {\n var defaultNS;\n // lookup current default ns from `xmlns` attribute\n for (var ai = 0; ai < attrs.length; ai++) {\n if (attrs.item(ai).name === 'xmlns') {\n defaultNS = attrs.item(ai).value;\n break;\n }\n }\n if (!defaultNS) {\n // lookup current default ns in visibleNamespaces\n for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {\n var namespace = visibleNamespaces[nsi];\n if (namespace.prefix === '' && namespace.namespace === node.namespaceURI) {\n defaultNS = namespace.namespace;\n break;\n }\n }\n }\n if (defaultNS !== node.namespaceURI) {\n for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {\n var namespace = visibleNamespaces[nsi];\n if (namespace.namespace === node.namespaceURI) {\n if (namespace.prefix) {\n prefixedNodeName = namespace.prefix + ':' + nodeName;\n }\n break;\n }\n }\n }\n }\n buf.push('<', prefixedNodeName);\n for (var i = 0; i < len; i++) {\n // add namespaces for attributes\n var attr = attrs.item(i);\n if (attr.prefix == 'xmlns') {\n visibleNamespaces.push({\n prefix: attr.localName,\n namespace: attr.value\n });\n } else if (attr.nodeName == 'xmlns') {\n visibleNamespaces.push({\n prefix: '',\n namespace: attr.value\n });\n }\n }\n for (var i = 0; i < len; i++) {\n var attr = attrs.item(i);\n if (needNamespaceDefine(attr, isHTML, visibleNamespaces)) {\n var prefix = attr.prefix || '';\n var uri = attr.namespaceURI;\n addSerializedAttribute(buf, prefix ? 'xmlns:' + prefix : \"xmlns\", uri);\n visibleNamespaces.push({\n prefix: prefix,\n namespace: uri\n });\n }\n serializeToString(attr, buf, isHTML, nodeFilter, visibleNamespaces);\n }\n\n // add namespace for current node\n if (nodeName === prefixedNodeName && needNamespaceDefine(node, isHTML, visibleNamespaces)) {\n var prefix = node.prefix || '';\n var uri = node.namespaceURI;\n addSerializedAttribute(buf, prefix ? 'xmlns:' + prefix : \"xmlns\", uri);\n visibleNamespaces.push({\n prefix: prefix,\n namespace: uri\n });\n }\n if (child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)) {\n buf.push('>');\n //if is cdata child node\n if (isHTML && /^script$/i.test(nodeName)) {\n while (child) {\n if (child.data) {\n buf.push(child.data);\n } else {\n serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());\n }\n child = child.nextSibling;\n }\n } else {\n while (child) {\n serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());\n child = child.nextSibling;\n }\n }\n buf.push('', prefixedNodeName, '>');\n } else {\n buf.push('/>');\n }\n // remove added visible namespaces\n //visibleNamespaces.length = startVisibleNamespaces;\n return;\n case DOCUMENT_NODE:\n case DOCUMENT_FRAGMENT_NODE:\n var child = node.firstChild;\n while (child) {\n serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());\n child = child.nextSibling;\n }\n return;\n case ATTRIBUTE_NODE:\n return addSerializedAttribute(buf, node.name, node.value);\n case TEXT_NODE:\n /**\n * The ampersand character (&) and the left angle bracket (<) must not appear in their literal form,\n * except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.\n * If they are needed elsewhere, they must be escaped using either numeric character references or the strings\n * `&` and `<` respectively.\n * The right angle bracket (>) may be represented using the string \" > \", and must, for compatibility,\n * be escaped using either `>` or a character reference when it appears in the string `]]>` in content,\n * when that string is not marking the end of a CDATA section.\n *\n * In the content of elements, character data is any string of characters\n * which does not contain the start-delimiter of any markup\n * and does not include the CDATA-section-close delimiter, `]]>`.\n *\n * @see https://www.w3.org/TR/xml/#NT-CharData\n * @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node\n */\n return buf.push(node.data.replace(/[<&>]/g, _xmlEncoder));\n case CDATA_SECTION_NODE:\n return buf.push('');\n case COMMENT_NODE:\n return buf.push(\"\");\n case DOCUMENT_TYPE_NODE:\n var pubid = node.publicId;\n var sysid = node.systemId;\n buf.push('');\n } else if (sysid && sysid != '.') {\n buf.push(' SYSTEM ', sysid, '>');\n } else {\n var sub = node.internalSubset;\n if (sub) {\n buf.push(\" [\", sub, \"]\");\n }\n buf.push(\">\");\n }\n return;\n case PROCESSING_INSTRUCTION_NODE:\n return buf.push(\"\", node.target, \" \", node.data, \"?>\");\n case ENTITY_REFERENCE_NODE:\n return buf.push('&', node.nodeName, ';');\n //case ENTITY_NODE:\n //case NOTATION_NODE:\n default:\n buf.push('??', node.nodeName);\n }\n}\nfunction importNode(doc, node, deep) {\n var node2;\n switch (node.nodeType) {\n case ELEMENT_NODE:\n node2 = node.cloneNode(false);\n node2.ownerDocument = doc;\n //var attrs = node2.attributes;\n //var len = attrs.length;\n //for(var i=0;i {\n return (/******/(() => {\n // webpackBootstrap\n /******/\n var __webpack_modules__ = {\n /***/\"./node_modules/add-zero/index.js\":\n /*!****************************************!*\\\n !*** ./node_modules/add-zero/index.js ***!\n \\****************************************/\n /***/\n function (module, exports, __webpack_require__) {\n var __WEBPACK_AMD_DEFINE_RESULT__;\n (function (exports) {\n 'use strict';\n\n function addZero(value, digits) {\n digits = digits || 2;\n var isNegative = Number(value) < 0;\n var buffer = value.toString();\n var size = 0;\n\n // Strip minus sign if number is negative\n if (isNegative) {\n buffer = buffer.slice(1);\n }\n size = digits - buffer.length + 1;\n buffer = new Array(size).join('0').concat(buffer);\n\n // Adds back minus sign if needed\n return (isNegative ? '-' : '') + buffer;\n }\n if (true) {\n !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n return addZero;\n }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n })(this);\n\n /***/\n },\n\n /***/\"./src/js/controls/animation-display.js\":\n /*!**********************************************!*\\\n !*** ./src/js/controls/animation-display.js ***!\n \\**********************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Component = _video.default.getComponent('Component');\n var AnimationDisplay = function (_Component) {\n function AnimationDisplay() {\n (0, _classCallCheck2.default)(this, AnimationDisplay);\n return _callSuper(this, AnimationDisplay, arguments);\n }\n (0, _inherits2.default)(AnimationDisplay, _Component);\n return (0, _createClass2.default)(AnimationDisplay, [{\n key: \"createEl\",\n value: function createEl() {\n var imgElement = _video.default.dom.createEl('img');\n var el = (0, _get2.default)((0, _getPrototypeOf2.default)(AnimationDisplay.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-animation-display',\n dir: 'ltr'\n });\n el.appendChild(imgElement);\n return el;\n }\n }]);\n }(Component);\n Component.registerComponent('AnimationDisplay', AnimationDisplay);\n var _default = exports[\"default\"] = AnimationDisplay;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/controls/camera-button.js\":\n /*!******************************************!*\\\n !*** ./src/js/controls/camera-button.js ***!\n \\******************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ../event */\"./src/js/event.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Button = _video.default.getComponent('Button');\n var Component = _video.default.getComponent('Component');\n var CameraButton = function (_Button) {\n function CameraButton() {\n (0, _classCallCheck2.default)(this, CameraButton);\n return _callSuper(this, CameraButton, arguments);\n }\n (0, _inherits2.default)(CameraButton, _Button);\n return (0, _createClass2.default)(CameraButton, [{\n key: \"buildCSSClass\",\n value: function buildCSSClass() {\n return 'vjs-camera-button vjs-control vjs-button vjs-icon-photo-camera';\n }\n }, {\n key: \"enable\",\n value: function enable() {\n (0, _get2.default)((0, _getPrototypeOf2.default)(CameraButton.prototype), \"enable\", this).call(this);\n this.on(this.player_, _event.default.START_RECORD, this.onStart);\n this.on(this.player_, _event.default.STOP_RECORD, this.onStop);\n }\n }, {\n key: \"disable\",\n value: function disable() {\n (0, _get2.default)((0, _getPrototypeOf2.default)(CameraButton.prototype), \"disable\", this).call(this);\n this.off(this.player_, _event.default.START_RECORD, this.onStart);\n this.off(this.player_, _event.default.STOP_RECORD, this.onStop);\n }\n }, {\n key: \"show\",\n value: function show() {\n if (this.layoutExclude && this.layoutExclude === true) {\n return;\n }\n (0, _get2.default)((0, _getPrototypeOf2.default)(CameraButton.prototype), \"show\", this).call(this);\n }\n }, {\n key: \"handleClick\",\n value: function handleClick(event) {\n var recorder = this.player_.record();\n if (!recorder.isProcessing()) {\n recorder.start();\n } else {\n recorder.retrySnapshot();\n this.onStop();\n this.player_.trigger(_event.default.RETRY);\n }\n }\n }, {\n key: \"onStart\",\n value: function onStart(event) {\n this.removeClass('vjs-icon-photo-camera');\n this.addClass('vjs-icon-replay');\n this.controlText('Retry');\n }\n }, {\n key: \"onStop\",\n value: function onStop(event) {\n this.removeClass('vjs-icon-replay');\n this.addClass('vjs-icon-photo-camera');\n this.controlText('Image');\n }\n }]);\n }(Button);\n CameraButton.prototype.controlText_ = 'Image';\n Component.registerComponent('CameraButton', CameraButton);\n var _default = exports[\"default\"] = CameraButton;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/controls/device-button.js\":\n /*!******************************************!*\\\n !*** ./src/js/controls/device-button.js ***!\n \\******************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Button = _video.default.getComponent('Button');\n var Component = _video.default.getComponent('Component');\n var DeviceButton = function (_Button) {\n function DeviceButton() {\n (0, _classCallCheck2.default)(this, DeviceButton);\n return _callSuper(this, DeviceButton, arguments);\n }\n (0, _inherits2.default)(DeviceButton, _Button);\n return (0, _createClass2.default)(DeviceButton, [{\n key: \"handleClick\",\n value: function handleClick(event) {\n this.player_.record().getDevice();\n }\n }, {\n key: \"show\",\n value: function show() {\n if (this.layoutExclude && this.layoutExclude === true) {\n return;\n }\n (0, _get2.default)((0, _getPrototypeOf2.default)(DeviceButton.prototype), \"show\", this).call(this);\n }\n }]);\n }(Button);\n DeviceButton.prototype.controlText_ = 'Device';\n Component.registerComponent('DeviceButton', DeviceButton);\n var _default = exports[\"default\"] = DeviceButton;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/controls/picture-in-picture-toggle.js\":\n /*!******************************************************!*\\\n !*** ./src/js/controls/picture-in-picture-toggle.js ***!\n \\******************************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _regenerator = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/regenerator */\"./node_modules/@babel/runtime/regenerator/index.js\"));\n var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/asyncToGenerator */\"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\"));\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ../event */\"./src/js/event.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Button = _video.default.getComponent('Button');\n var Component = _video.default.getComponent('Component');\n var PictureInPictureToggle = function (_Button) {\n function PictureInPictureToggle(player, options) {\n var _this;\n (0, _classCallCheck2.default)(this, PictureInPictureToggle);\n _this = _callSuper(this, PictureInPictureToggle, [player, options]);\n _this.on(_this.player_, _event.default.ENTER_PIP, _this.onStart);\n _this.on(_this.player_, _event.default.LEAVE_PIP, _this.onStop);\n return _this;\n }\n (0, _inherits2.default)(PictureInPictureToggle, _Button);\n return (0, _createClass2.default)(PictureInPictureToggle, [{\n key: \"buildCSSClass\",\n value: function buildCSSClass() {\n return 'vjs-pip-button vjs-control vjs-button vjs-icon-picture-in-picture-start';\n }\n }, {\n key: \"show\",\n value: function show() {\n if (this.layoutExclude && this.layoutExclude === true) {\n return;\n }\n (0, _get2.default)((0, _getPrototypeOf2.default)(PictureInPictureToggle.prototype), \"show\", this).call(this);\n }\n }, {\n key: \"handleClick\",\n value: function () {\n var _handleClick = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(event) {\n var recorder;\n return _regenerator.default.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n recorder = this.player_.record();\n this.disable();\n _context.prev = 2;\n if (!(recorder.mediaElement !== document.pictureInPictureElement)) {\n _context.next = 8;\n break;\n }\n _context.next = 6;\n return recorder.mediaElement.requestPictureInPicture();\n case 6:\n _context.next = 10;\n break;\n case 8:\n _context.next = 10;\n return document.exitPictureInPicture();\n case 10:\n _context.next = 15;\n break;\n case 12:\n _context.prev = 12;\n _context.t0 = _context[\"catch\"](2);\n this.player_.trigger(_event.default.ERROR, _context.t0);\n case 15:\n _context.prev = 15;\n this.enable();\n return _context.finish(15);\n case 18:\n case \"end\":\n return _context.stop();\n }\n }, _callee, this, [[2, 12, 15, 18]]);\n }));\n function handleClick(_x) {\n return _handleClick.apply(this, arguments);\n }\n return handleClick;\n }()\n }, {\n key: \"onStart\",\n value: function onStart(event) {\n this.removeClass('vjs-icon-picture-in-picture-start');\n this.addClass('vjs-icon-picture-in-picture-stop');\n }\n }, {\n key: \"onStop\",\n value: function onStop(event) {\n this.removeClass('vjs-icon-picture-in-picture-stop');\n this.addClass('vjs-icon-picture-in-picture-start');\n }\n }]);\n }(Button);\n PictureInPictureToggle.prototype.controlText_ = 'Picture in Picture';\n Component.registerComponent('PictureInPictureToggle', PictureInPictureToggle);\n var _default = exports[\"default\"] = PictureInPictureToggle;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/controls/record-canvas.js\":\n /*!******************************************!*\\\n !*** ./src/js/controls/record-canvas.js ***!\n \\******************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Component = _video.default.getComponent('Component');\n var RecordCanvas = function (_Component) {\n function RecordCanvas() {\n (0, _classCallCheck2.default)(this, RecordCanvas);\n return _callSuper(this, RecordCanvas, arguments);\n }\n (0, _inherits2.default)(RecordCanvas, _Component);\n return (0, _createClass2.default)(RecordCanvas, [{\n key: \"createEl\",\n value: function createEl() {\n var canvasElement = _video.default.dom.createEl('canvas');\n var el = (0, _get2.default)((0, _getPrototypeOf2.default)(RecordCanvas.prototype), \"createEl\", this).call(this, 'div', {\n className: 'vjs-record-canvas',\n dir: 'ltr'\n });\n el.appendChild(canvasElement);\n return el;\n }\n }]);\n }(Component);\n Component.registerComponent('RecordCanvas', RecordCanvas);\n var _default = exports[\"default\"] = RecordCanvas;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/controls/record-indicator.js\":\n /*!*********************************************!*\\\n !*** ./src/js/controls/record-indicator.js ***!\n \\*********************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ../event */\"./src/js/event.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Component = _video.default.getComponent('Component');\n var RecordIndicator = function (_Component) {\n function RecordIndicator(player, options) {\n var _this;\n (0, _classCallCheck2.default)(this, RecordIndicator);\n _this = _callSuper(this, RecordIndicator, [player, options]);\n _this.enable();\n return _this;\n }\n (0, _inherits2.default)(RecordIndicator, _Component);\n return (0, _createClass2.default)(RecordIndicator, [{\n key: \"createEl\",\n value: function createEl() {\n var props = {\n className: 'vjs-record-indicator vjs-control',\n dir: 'ltr'\n };\n var attr = {\n 'data-label': this.localize('REC')\n };\n return (0, _get2.default)((0, _getPrototypeOf2.default)(RecordIndicator.prototype), \"createEl\", this).call(this, 'div', props, attr);\n }\n }, {\n key: \"enable\",\n value: function enable() {\n this.on(this.player_, _event.default.START_RECORD, this.show);\n this.on(this.player_, _event.default.STOP_RECORD, this.hide);\n }\n }, {\n key: \"disable\",\n value: function disable() {\n this.off(this.player_, _event.default.START_RECORD, this.show);\n this.off(this.player_, _event.default.STOP_RECORD, this.hide);\n }\n }, {\n key: \"show\",\n value: function show() {\n if (this.layoutExclude && this.layoutExclude === true) {\n return;\n }\n (0, _get2.default)((0, _getPrototypeOf2.default)(RecordIndicator.prototype), \"show\", this).call(this);\n }\n }]);\n }(Component);\n Component.registerComponent('RecordIndicator', RecordIndicator);\n var _default = exports[\"default\"] = RecordIndicator;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/controls/record-toggle.js\":\n /*!******************************************!*\\\n !*** ./src/js/controls/record-toggle.js ***!\n \\******************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ../event */\"./src/js/event.js\"));\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Button = _video.default.getComponent('Button');\n var Component = _video.default.getComponent('Component');\n var RecordToggle = function (_Button) {\n function RecordToggle() {\n (0, _classCallCheck2.default)(this, RecordToggle);\n return _callSuper(this, RecordToggle, arguments);\n }\n (0, _inherits2.default)(RecordToggle, _Button);\n return (0, _createClass2.default)(RecordToggle, [{\n key: \"buildCSSClass\",\n value: function buildCSSClass() {\n return 'vjs-record-button vjs-control vjs-button vjs-icon-record-start';\n }\n }, {\n key: \"enable\",\n value: function enable() {\n (0, _get2.default)((0, _getPrototypeOf2.default)(RecordToggle.prototype), \"enable\", this).call(this);\n this.on(this.player_, _event.default.START_RECORD, this.onStart);\n this.on(this.player_, _event.default.STOP_RECORD, this.onStop);\n }\n }, {\n key: \"disable\",\n value: function disable() {\n (0, _get2.default)((0, _getPrototypeOf2.default)(RecordToggle.prototype), \"disable\", this).call(this);\n this.off(this.player_, _event.default.START_RECORD, this.onStart);\n this.off(this.player_, _event.default.STOP_RECORD, this.onStop);\n }\n }, {\n key: \"show\",\n value: function show() {\n if (this.layoutExclude && this.layoutExclude === true) {\n return;\n }\n (0, _get2.default)((0, _getPrototypeOf2.default)(RecordToggle.prototype), \"show\", this).call(this);\n }\n }, {\n key: \"handleClick\",\n value: function handleClick(event) {\n var recorder = this.player_.record();\n if (!recorder.isRecording()) {\n recorder.start();\n } else {\n recorder.stop();\n }\n }\n }, {\n key: \"onStart\",\n value: function onStart(event) {\n this.removeClass('vjs-icon-record-start');\n this.addClass('vjs-icon-record-stop');\n this.controlText('Stop');\n }\n }, {\n key: \"onStop\",\n value: function onStop(event) {\n this.removeClass('vjs-icon-record-stop');\n this.addClass('vjs-icon-record-start');\n this.controlText('Record');\n }\n }]);\n }(Button);\n RecordToggle.prototype.controlText_ = 'Record';\n Component.registerComponent('RecordToggle', RecordToggle);\n var _default = exports[\"default\"] = RecordToggle;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/defaults.js\":\n /*!****************************!*\\\n !*** ./src/js/defaults.js ***!\n \\****************************/\n /***/\n (module, exports) => {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var pluginDefaultOptions = {\n image: false,\n audio: false,\n video: false,\n animation: false,\n screen: false,\n maxLength: 10,\n maxFileSize: 0,\n displayMilliseconds: false,\n formatTime: undefined,\n frameWidth: 320,\n frameHeight: 240,\n debug: false,\n pip: false,\n autoMuteDevice: false,\n videoBitRate: 1200,\n videoEngine: 'recordrtc',\n videoFrameRate: 30,\n videoMimeType: 'video/webm',\n videoRecorderType: 'auto',\n videoWorkerURL: '',\n videoWebAssemblyURL: '',\n audioEngine: 'recordrtc',\n audioRecorderType: 'auto',\n audioMimeType: 'auto',\n audioBufferSize: 4096,\n audioSampleRate: 44100,\n audioBitRate: 128,\n audioChannels: 2,\n audioWorkerURL: '',\n audioWebAssemblyURL: '',\n audioBufferUpdate: false,\n animationFrameRate: 200,\n animationQuality: 10,\n imageOutputType: 'dataURL',\n imageOutputFormat: 'image/png',\n imageOutputQuality: 0.92,\n timeSlice: 0,\n convertEngine: '',\n convertWorkerURL: '',\n convertOptions: [],\n convertAuto: true,\n hotKeys: false,\n pluginLibraryOptions: {}\n };\n var _default = exports[\"default\"] = pluginDefaultOptions;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/engine/convert-engine.js\":\n /*!*****************************************!*\\\n !*** ./src/js/engine/convert-engine.js ***!\n \\*****************************************/\n /***/\n (__unused_webpack_module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.TSEBML = exports.FFMPEGWASM = exports.FFMPEGJS = exports.ConvertEngine = exports.CONVERT_PLUGINS = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _fileUtil = __webpack_require__( /*! ../utils/file-util */\"./src/js/utils/file-util.js\");\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Component = _video.default.getComponent('Component');\n var TSEBML = exports.TSEBML = 'ts-ebml';\n var FFMPEGJS = exports.FFMPEGJS = 'ffmpeg.js';\n var FFMPEGWASM = exports.FFMPEGWASM = 'ffmpeg.wasm';\n var CONVERT_PLUGINS = exports.CONVERT_PLUGINS = [TSEBML, FFMPEGJS, FFMPEGWASM];\n var ConvertEngine = exports.ConvertEngine = function (_Component) {\n function ConvertEngine(player, options) {\n (0, _classCallCheck2.default)(this, ConvertEngine);\n options.evented = true;\n return _callSuper(this, ConvertEngine, [player, options]);\n }\n (0, _inherits2.default)(ConvertEngine, _Component);\n return (0, _createClass2.default)(ConvertEngine, [{\n key: \"setup\",\n value: function setup(mediaType, debug) {\n this.mediaType = mediaType;\n this.debug = debug;\n }\n }, {\n key: \"loadBlob\",\n value: function loadBlob(data) {\n return (0, _fileUtil.blobToArrayBuffer)(data);\n }\n }, {\n key: \"addFileInfo\",\n value: function addFileInfo(fileObj, now) {\n (0, _fileUtil.addFileInfo)(fileObj, now);\n }\n }, {\n key: \"saveAs\",\n value: function saveAs(name) {\n var fileName = name[Object.keys(name)[0]];\n (0, _fileUtil.downloadBlob)(fileName, this.player().convertedData);\n }\n }]);\n }(Component);\n _video.default.ConvertEngine = ConvertEngine;\n Component.registerComponent('ConvertEngine', ConvertEngine);\n\n /***/\n },\n\n /***/\"./src/js/engine/engine-loader.js\":\n /*!****************************************!*\\\n !*** ./src/js/engine/engine-loader.js ***!\n \\****************************************/\n /***/\n (__unused_webpack_module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.isAudioPluginActive = exports.getVideoEngine = exports.getConvertEngine = exports.getAudioEngine = void 0;\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _recordRtc = _interopRequireDefault(__webpack_require__( /*! ./record-rtc */\"./src/js/engine/record-rtc.js\"));\n var _convertEngine = __webpack_require__( /*! ./convert-engine */\"./src/js/engine/convert-engine.js\");\n var _recordEngine = __webpack_require__( /*! ./record-engine */\"./src/js/engine/record-engine.js\");\n var getAudioEngine = exports.getAudioEngine = function getAudioEngine(audioEngine) {\n var AudioEngineClass;\n switch (audioEngine) {\n case _recordEngine.RECORDRTC:\n AudioEngineClass = _recordRtc.default;\n break;\n case _recordEngine.LIBVORBISJS:\n AudioEngineClass = _video.default.LibVorbisEngine;\n break;\n case _recordEngine.RECORDERJS:\n AudioEngineClass = _video.default.RecorderjsEngine;\n break;\n case _recordEngine.LAMEJS:\n AudioEngineClass = _video.default.LamejsEngine;\n break;\n case _recordEngine.OPUSRECORDER:\n AudioEngineClass = _video.default.OpusRecorderEngine;\n break;\n case _recordEngine.OPUSMEDIARECORDER:\n AudioEngineClass = _video.default.OpusMediaRecorderEngine;\n break;\n case _recordEngine.VMSG:\n AudioEngineClass = _video.default.VmsgEngine;\n break;\n default:\n throw new Error('Unknown audioEngine: ' + audioEngine);\n }\n return AudioEngineClass;\n };\n var getVideoEngine = exports.getVideoEngine = function getVideoEngine(videoEngine) {\n var VideoEngineClass;\n switch (videoEngine) {\n case _recordEngine.RECORDRTC:\n VideoEngineClass = _recordRtc.default;\n break;\n case _recordEngine.WEBMWASM:\n VideoEngineClass = _video.default.WebmWasmEngine;\n break;\n default:\n throw new Error('Unknown videoEngine: ' + videoEngine);\n }\n return VideoEngineClass;\n };\n var isAudioPluginActive = exports.isAudioPluginActive = function isAudioPluginActive(audioEngine) {\n return _recordEngine.AUDIO_PLUGINS.indexOf(audioEngine) > -1;\n };\n var getConvertEngine = exports.getConvertEngine = function getConvertEngine(convertEngine) {\n var ConvertEngineClass;\n switch (convertEngine) {\n case '':\n break;\n case _convertEngine.TSEBML:\n ConvertEngineClass = _video.default.TsEBMLEngine;\n break;\n case _convertEngine.FFMPEGJS:\n ConvertEngineClass = _video.default.FFmpegjsEngine;\n break;\n case _convertEngine.FFMPEGWASM:\n ConvertEngineClass = _video.default.FFmpegWasmEngine;\n break;\n default:\n throw new Error('Unknown convertEngine: ' + convertEngine);\n }\n return ConvertEngineClass;\n };\n\n /***/\n },\n\n /***/\"./src/js/engine/record-engine.js\":\n /*!****************************************!*\\\n !*** ./src/js/engine/record-engine.js ***!\n \\****************************************/\n /***/\n (__unused_webpack_module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.WEBMWASM = exports.VMSG = exports.VIDEO_PLUGINS = exports.RecordEngine = exports.RECORD_PLUGINS = exports.RECORDRTC = exports.RECORDERJS = exports.OPUSRECORDER = exports.OPUSMEDIARECORDER = exports.LIBVORBISJS = exports.LAMEJS = exports.AUDIO_PLUGINS = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ../event */\"./src/js/event.js\"));\n var _fileUtil = __webpack_require__( /*! ../utils/file-util */\"./src/js/utils/file-util.js\");\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Component = _video.default.getComponent('Component');\n var RECORDRTC = exports.RECORDRTC = 'recordrtc';\n var LIBVORBISJS = exports.LIBVORBISJS = 'libvorbis.js';\n var RECORDERJS = exports.RECORDERJS = 'recorder.js';\n var LAMEJS = exports.LAMEJS = 'lamejs';\n var OPUSRECORDER = exports.OPUSRECORDER = 'opus-recorder';\n var OPUSMEDIARECORDER = exports.OPUSMEDIARECORDER = 'opus-media-recorder';\n var VMSG = exports.VMSG = 'vmsg';\n var WEBMWASM = exports.WEBMWASM = 'webm-wasm';\n var AUDIO_PLUGINS = exports.AUDIO_PLUGINS = [LIBVORBISJS, RECORDERJS, LAMEJS, OPUSRECORDER, OPUSMEDIARECORDER, VMSG];\n var VIDEO_PLUGINS = exports.VIDEO_PLUGINS = [WEBMWASM];\n var RECORD_PLUGINS = exports.RECORD_PLUGINS = AUDIO_PLUGINS.concat(VIDEO_PLUGINS);\n var RecordEngine = exports.RecordEngine = function (_Component) {\n function RecordEngine(player, options) {\n (0, _classCallCheck2.default)(this, RecordEngine);\n options.evented = true;\n return _callSuper(this, RecordEngine, [player, options]);\n }\n (0, _inherits2.default)(RecordEngine, _Component);\n return (0, _createClass2.default)(RecordEngine, [{\n key: \"dispose\",\n value: function dispose() {\n if (this.recordedData !== undefined) {\n URL.revokeObjectURL(this.recordedData);\n }\n }\n }, {\n key: \"destroy\",\n value: function destroy() {}\n }, {\n key: \"addFileInfo\",\n value: function addFileInfo(fileObj) {\n (0, _fileUtil.addFileInfo)(fileObj);\n }\n }, {\n key: \"onStopRecording\",\n value: function onStopRecording(data) {\n this.recordedData = data;\n this.addFileInfo(this.recordedData);\n this.dispose();\n this.trigger(_event.default.RECORD_COMPLETE);\n }\n }, {\n key: \"saveAs\",\n value: function saveAs(name) {\n var fileName = name[Object.keys(name)[0]];\n (0, _fileUtil.downloadBlob)(fileName, this.recordedData);\n }\n }]);\n }(Component);\n _video.default.RecordEngine = RecordEngine;\n Component.registerComponent('RecordEngine', RecordEngine);\n\n /***/\n },\n\n /***/\"./src/js/engine/record-mode.js\":\n /*!**************************************!*\\\n !*** ./src/js/engine/record-mode.js ***!\n \\**************************************/\n /***/\n (__unused_webpack_module, exports) => {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.getRecorderMode = exports.VIDEO_ONLY = exports.SCREEN_ONLY = exports.IMAGE_ONLY = exports.AUDIO_VIDEO = exports.AUDIO_SCREEN = exports.AUDIO_ONLY = exports.ANIMATION = void 0;\n var IMAGE_ONLY = exports.IMAGE_ONLY = 'image_only';\n var AUDIO_ONLY = exports.AUDIO_ONLY = 'audio_only';\n var VIDEO_ONLY = exports.VIDEO_ONLY = 'video_only';\n var AUDIO_VIDEO = exports.AUDIO_VIDEO = 'audio_video';\n var AUDIO_SCREEN = exports.AUDIO_SCREEN = 'audio_screen';\n var ANIMATION = exports.ANIMATION = 'animation';\n var SCREEN_ONLY = exports.SCREEN_ONLY = 'screen_only';\n var getRecorderMode = exports.getRecorderMode = function getRecorderMode(image, audio, video, animation, screen) {\n if (isModeEnabled(image)) {\n return IMAGE_ONLY;\n } else if (isModeEnabled(animation)) {\n return ANIMATION;\n } else if (isModeEnabled(audio) && isModeEnabled(video)) {\n return AUDIO_VIDEO;\n } else if (isModeEnabled(audio) && isModeEnabled(screen)) {\n return AUDIO_SCREEN;\n } else if (!isModeEnabled(audio) && isModeEnabled(screen)) {\n return SCREEN_ONLY;\n } else if (isModeEnabled(audio) && !isModeEnabled(video)) {\n return AUDIO_ONLY;\n } else if (!isModeEnabled(audio) && isModeEnabled(video)) {\n return VIDEO_ONLY;\n }\n };\n var isModeEnabled = function isModeEnabled(mode) {\n return mode === Object(mode) || mode === true;\n };\n\n /***/\n },\n\n /***/\"./src/js/engine/record-rtc.js\":\n /*!*************************************!*\\\n !*** ./src/js/engine/record-rtc.js ***!\n \\*************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _recordrtc = _interopRequireDefault(__webpack_require__( /*! recordrtc */\"recordrtc\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ../event */\"./src/js/event.js\"));\n var _recordEngine = __webpack_require__( /*! ./record-engine */\"./src/js/engine/record-engine.js\");\n var _detectBrowser = __webpack_require__( /*! ../utils/detect-browser */\"./src/js/utils/detect-browser.js\");\n var _recordMode = __webpack_require__( /*! ./record-mode */\"./src/js/engine/record-mode.js\");\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Component = _video.default.getComponent('Component');\n var RecordRTCEngine = function (_RecordEngine) {\n function RecordRTCEngine() {\n (0, _classCallCheck2.default)(this, RecordRTCEngine);\n return _callSuper(this, RecordRTCEngine, arguments);\n }\n (0, _inherits2.default)(RecordRTCEngine, _RecordEngine);\n return (0, _createClass2.default)(RecordRTCEngine, [{\n key: \"setup\",\n value: function setup(stream, mediaType, debug) {\n this.inputStream = stream;\n this.mediaType = mediaType;\n this.debug = debug;\n if ('screen' in this.mediaType) {\n this.mediaType.video = true;\n }\n if (this.recorderType !== undefined) {\n this.mediaType.video = this.recorderType;\n }\n this.engine = new _recordrtc.default.MRecordRTC();\n this.engine.mediaType = this.mediaType;\n this.engine.disableLogs = !this.debug;\n this.engine.mimeType = this.mimeType;\n this.engine.bufferSize = this.bufferSize;\n this.engine.sampleRate = this.sampleRate;\n this.engine.numberOfAudioChannels = this.audioChannels;\n this.engine.video = this.video;\n this.engine.canvas = this.canvas;\n this.engine.bitrate = this.bitRate;\n this.engine.quality = this.quality;\n this.engine.frameRate = this.frameRate;\n if (this.timeSlice !== undefined) {\n this.engine.timeSlice = this.timeSlice;\n this.engine.onTimeStamp = this.onTimeStamp.bind(this);\n }\n this.engine.workerPath = this.workerPath;\n this.engine.webAssemblyPath = this.videoWebAssemblyURL;\n this.engine.addStream(this.inputStream);\n }\n }, {\n key: \"dispose\",\n value: function dispose() {\n (0, _get2.default)((0, _getPrototypeOf2.default)(RecordRTCEngine.prototype), \"dispose\", this).call(this);\n this.destroy();\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n if (this.engine && typeof this.engine.destroy === 'function') {\n this.engine.destroy();\n }\n }\n }, {\n key: \"start\",\n value: function start() {\n this.engine.startRecording();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.engine.stopRecording(this.onStopRecording.bind(this));\n }\n }, {\n key: \"pause\",\n value: function pause() {\n this.engine.pauseRecording();\n }\n }, {\n key: \"resume\",\n value: function resume() {\n this.engine.resumeRecording();\n }\n }, {\n key: \"saveAs\",\n value: function saveAs(name) {\n if (this.engine && name !== undefined) {\n this.engine.save(name);\n }\n }\n }, {\n key: \"onStopRecording\",\n value: function onStopRecording(audioVideoURL, type) {\n var _this = this;\n URL.revokeObjectURL(audioVideoURL);\n var recordType = this.player().record().getRecordType();\n this.engine.getBlob(function (recording) {\n switch (recordType) {\n case _recordMode.AUDIO_ONLY:\n if (recording.audio !== undefined) {\n _this.recordedData = recording.audio;\n }\n break;\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.SCREEN_ONLY:\n if (recording.video !== undefined) {\n _this.recordedData = recording.video;\n }\n break;\n case _recordMode.ANIMATION:\n if (recording.gif !== undefined) {\n _this.recordedData = recording.gif;\n }\n break;\n }\n _this.addFileInfo(_this.recordedData);\n _this.trigger(_event.default.RECORD_COMPLETE);\n });\n }\n }, {\n key: \"onTimeStamp\",\n value: function onTimeStamp(current, all) {\n this.player().currentTimestamp = current;\n this.player().allTimestamps = all;\n var internal;\n switch (this.player().record().getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n internal = this.engine.audioRecorder;\n break;\n case _recordMode.ANIMATION:\n internal = this.engine.gifRecorder;\n break;\n default:\n internal = this.engine.videoRecorder;\n }\n var maxFileSizeReached = false;\n if (internal) {\n internal = internal.getInternalRecorder();\n }\n if (internal instanceof _recordrtc.default.MediaStreamRecorder === true) {\n this.player().recordedData = internal.getArrayOfBlobs();\n this.addFileInfo(this.player().recordedData[this.player_.recordedData.length - 1]);\n if (this.maxFileSize > 0) {\n var currentSize = new Blob(this.player().recordedData).size;\n if (currentSize >= this.maxFileSize) {\n maxFileSizeReached = true;\n }\n }\n }\n this.player().trigger(_event.default.TIMESTAMP);\n if (maxFileSizeReached) {\n this.player().record().stop();\n }\n }\n }]);\n }(_recordEngine.RecordEngine);\n _video.default.RecordRTCEngine = RecordRTCEngine;\n Component.registerComponent('RecordRTCEngine', RecordRTCEngine);\n var _default = exports[\"default\"] = RecordRTCEngine;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/event.js\":\n /*!*************************!*\\\n !*** ./src/js/event.js ***!\n \\*************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var Event = (0, _createClass2.default)(function Event() {\n (0, _classCallCheck2.default)(this, Event);\n });\n Event.READY = 'ready';\n Event.ERROR = 'error';\n Event.PLAYING = 'playing';\n Event.LOADEDMETADATA = 'loadedmetadata';\n Event.LOADSTART = 'loadstart';\n Event.USERINACTIVE = 'userinactive';\n Event.TIMEUPDATE = 'timeupdate';\n Event.DURATIONCHANGE = 'durationchange';\n Event.ENDED = 'ended';\n Event.PAUSE = 'pause';\n Event.PLAY = 'play';\n Event.DEVICE_READY = 'deviceReady';\n Event.DEVICE_ERROR = 'deviceError';\n Event.START_RECORD = 'startRecord';\n Event.STOP_RECORD = 'stopRecord';\n Event.FINISH_RECORD = 'finishRecord';\n Event.RECORD_COMPLETE = 'recordComplete';\n Event.PROGRESS_RECORD = 'progressRecord';\n Event.TIMESTAMP = 'timestamp';\n Event.ENUMERATE_READY = 'enumerateReady';\n Event.ENUMERATE_ERROR = 'enumerateError';\n Event.AUDIO_BUFFER_UPDATE = 'audioBufferUpdate';\n Event.AUDIO_OUTPUT_READY = 'audioOutputReady';\n Event.START_CONVERT = 'startConvert';\n Event.FINISH_CONVERT = 'finishConvert';\n Event.ENTER_PIP = 'enterPIP';\n Event.LEAVE_PIP = 'leavePIP';\n Event.RETRY = 'retry';\n Event.ENTERPICTUREINPICTURE = 'enterpictureinpicture';\n Event.LEAVEPICTUREINPICTURE = 'leavepictureinpicture';\n Object.freeze(Event);\n var _default = exports[\"default\"] = Event;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/hot-keys.js\":\n /*!****************************!*\\\n !*** ./src/js/hot-keys.js ***!\n \\****************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _recordMode = __webpack_require__( /*! ./engine/record-mode */\"./src/js/engine/record-mode.js\");\n var X_KEY = 88;\n var P_KEY = 80;\n var C_KEY = 67;\n var defaultKeyHandler = function defaultKeyHandler(event) {\n switch (event.which) {\n case X_KEY:\n switch (this.player_.record().getRecordType()) {\n case _recordMode.IMAGE_ONLY:\n this.player_.cameraButton.trigger('click');\n break;\n default:\n this.player_.recordToggle.trigger('click');\n }\n break;\n case P_KEY:\n if (this.player_.record().pictureInPicture === true) {\n this.player_.pipToggle.trigger('click');\n }\n break;\n case C_KEY:\n if (this.player_.controlBar.playToggle && this.player_.controlBar.playToggle.contentEl()) {\n player.controlBar.playToggle.trigger('click');\n }\n break;\n }\n };\n var _default = exports[\"default\"] = defaultKeyHandler;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/utils/browser-shim.js\":\n /*!**************************************!*\\\n !*** ./src/js/utils/browser-shim.js ***!\n \\**************************************/\n /***/\n (module, exports) => {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var setSrcObject = function setSrcObject(stream, element) {\n if ('srcObject' in element) {\n element.srcObject = stream;\n } else if ('mozSrcObject' in element) {\n element.mozSrcObject = stream;\n } else {\n element.srcObject = stream;\n }\n };\n var _default = exports[\"default\"] = setSrcObject;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/utils/compare-version.js\":\n /*!*****************************************!*\\\n !*** ./src/js/utils/compare-version.js ***!\n \\*****************************************/\n /***/\n (module, exports) => {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var compareVersion = function compareVersion(v1, v2) {\n if (typeof v1 !== 'string') return false;\n if (typeof v2 !== 'string') return false;\n v1 = v1.split('.');\n v2 = v2.split('.');\n var k = Math.min(v1.length, v2.length);\n var i = 0;\n for (i; i < k; ++i) {\n v1[i] = parseInt(v1[i], 10);\n v2[i] = parseInt(v2[i], 10);\n if (v1[i] > v2[i]) return 1;\n if (v1[i] < v2[i]) return -1;\n }\n return v1.length === v2.length ? 0 : v1.length < v2.length ? -1 : 1;\n };\n var _default = exports[\"default\"] = compareVersion;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/utils/detect-browser.js\":\n /*!****************************************!*\\\n !*** ./src/js/utils/detect-browser.js ***!\n \\****************************************/\n /***/\n (__unused_webpack_module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.isSafari = exports.isOpera = exports.isFirefox = exports.isEdge = exports.isChrome = exports.detectBrowser = void 0;\n var _window = _interopRequireDefault(__webpack_require__( /*! global/window */\"./node_modules/global/window.js\"));\n var detectBrowser = exports.detectBrowser = function detectBrowser() {\n var result = {};\n result.browser = null;\n result.version = null;\n result.minVersion = null;\n if (typeof _window.default === 'undefined' || !_window.default.navigator) {\n result.browser = 'Not a supported browser.';\n return result;\n }\n if (navigator.mozGetUserMedia) {\n result.browser = 'firefox';\n result.version = extractVersion(navigator.userAgent, /Firefox\\/(\\d+)\\./, 1);\n result.minVersion = 31;\n } else if (navigator.webkitGetUserMedia) {\n result.browser = 'chrome';\n result.version = extractVersion(navigator.userAgent, /Chrom(e|ium)\\/(\\d+)\\./, 2);\n result.minVersion = 38;\n } else if (navigator.mediaDevices && navigator.userAgent.match(/Edge\\/(\\d+).(\\d+)$/)) {\n result.browser = 'edge';\n result.version = extractVersion(navigator.userAgent, /Edge\\/(\\d+).(\\d+)$/, 2);\n result.minVersion = 10547;\n } else if (_window.default.RTCPeerConnection && navigator.userAgent.match(/AppleWebKit\\/(\\d+)\\./)) {\n result.browser = 'safari';\n result.version = extractVersion(navigator.userAgent, /AppleWebKit\\/(\\d+)\\./, 1);\n } else {\n result.browser = 'Not a supported browser.';\n return result;\n }\n return result;\n };\n var extractVersion = function extractVersion(uastring, expr, pos) {\n var match = uastring.match(expr);\n return match && match.length >= pos && parseInt(match[pos], 10);\n };\n var isEdge = exports.isEdge = function isEdge() {\n return detectBrowser().browser === 'edge';\n };\n var isSafari = exports.isSafari = function isSafari() {\n return detectBrowser().browser === 'safari';\n };\n var isOpera = exports.isOpera = function isOpera() {\n return !!_window.default.opera || navigator.userAgent.indexOf('OPR/') !== -1;\n };\n var isChrome = exports.isChrome = function isChrome() {\n return detectBrowser().browser === 'chrome';\n };\n var isFirefox = exports.isFirefox = function isFirefox() {\n return detectBrowser().browser === 'firefox';\n };\n\n /***/\n },\n\n /***/\"./src/js/utils/file-util.js\":\n /*!***********************************!*\\\n !*** ./src/js/utils/file-util.js ***!\n \\***********************************/\n /***/\n (__unused_webpack_module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.downloadBlob = exports.blobToArrayBuffer = exports.addFileInfo = void 0;\n var _mime = _interopRequireDefault(__webpack_require__( /*! ./mime */\"./src/js/utils/mime.js\"));\n var downloadBlob = exports.downloadBlob = function downloadBlob(fileName, data) {\n if (typeof navigator.msSaveOrOpenBlob !== 'undefined') {\n return navigator.msSaveOrOpenBlob(data, fileName);\n } else if (typeof navigator.msSaveBlob !== 'undefined') {\n return navigator.msSaveBlob(data, fileName);\n }\n var hyperlink = document.createElement('a');\n hyperlink.href = URL.createObjectURL(data);\n hyperlink.download = fileName;\n hyperlink.style = 'display:none;opacity:0;color:transparent;';\n (document.body || document.documentElement).appendChild(hyperlink);\n if (typeof hyperlink.click === 'function') {\n hyperlink.click();\n } else {\n hyperlink.target = '_blank';\n hyperlink.dispatchEvent(new MouseEvent('click', {\n view: window,\n bubbles: true,\n cancelable: true\n }));\n }\n URL.revokeObjectURL(hyperlink.href);\n };\n var blobToArrayBuffer = exports.blobToArrayBuffer = function blobToArrayBuffer(fileObj) {\n return new Promise(function (resolve, reject) {\n var reader = new FileReader();\n reader.onloadend = function () {\n resolve(reader.result);\n };\n reader.onerror = function (ev) {\n reject(ev.error);\n };\n reader.readAsArrayBuffer(fileObj);\n });\n };\n var addFileInfo = exports.addFileInfo = function addFileInfo(fileObj, dateObj, fileExtension) {\n if (fileObj instanceof Blob || fileObj instanceof File) {\n if (dateObj === undefined) {\n dateObj = new Date();\n }\n try {\n fileObj.lastModified = dateObj.getTime();\n fileObj.lastModifiedDate = dateObj;\n } catch (e) {\n if (e instanceof TypeError) {} else {\n throw e;\n }\n }\n if (fileExtension === undefined) {\n fileExtension = '.' + (0, _mime.default)(fileObj.type);\n }\n try {\n fileObj.name = dateObj.getTime() + fileExtension;\n } catch (e) {\n if (e instanceof TypeError) {} else {\n throw e;\n }\n }\n }\n };\n\n /***/\n },\n\n /***/\"./src/js/utils/format-time.js\":\n /*!*************************************!*\\\n !*** ./src/js/utils/format-time.js ***!\n \\*************************************/\n /***/\n (module, exports, __webpack_require__) => {\n \"use strict\";\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var _parseMs = _interopRequireDefault(__webpack_require__( /*! parse-ms */\"./node_modules/parse-ms/index.js\"));\n var _addZero = _interopRequireDefault(__webpack_require__( /*! add-zero */\"./node_modules/add-zero/index.js\"));\n var formatTime = function formatTime(seconds, guide) {\n var displayMilliseconds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n seconds = seconds < 0 ? 0 : seconds;\n if (isNaN(seconds) || seconds === Infinity) {\n seconds = 0;\n }\n var inputTime = (0, _parseMs.default)(seconds * 1000);\n var guideTime = inputTime;\n if (guide !== undefined) {\n guideTime = (0, _parseMs.default)(guide * 1000);\n }\n var hr = (0, _addZero.default)(inputTime.hours);\n var min = (0, _addZero.default)(inputTime.minutes);\n var sec = (0, _addZero.default)(inputTime.seconds);\n var ms = (0, _addZero.default)(inputTime.milliseconds, 3);\n if (inputTime.days > 0 || guideTime.days > 0) {\n var day = (0, _addZero.default)(inputTime.days);\n return \"\".concat(day, \":\").concat(hr, \":\").concat(min, \":\").concat(sec);\n }\n if (inputTime.hours > 0 || guideTime.hours > 0) {\n return \"\".concat(hr, \":\").concat(min, \":\").concat(sec);\n }\n if (displayMilliseconds) {\n return \"\".concat(min, \":\").concat(sec, \":\").concat(ms);\n }\n return \"\".concat(min, \":\").concat(sec);\n };\n var _default = exports[\"default\"] = formatTime;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./src/js/utils/mime.js\":\n /*!******************************!*\\\n !*** ./src/js/utils/mime.js ***!\n \\******************************/\n /***/\n (module, exports) => {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports[\"default\"] = void 0;\n var EXTRACT_TYPE_REGEXP = /^\\s*([^;\\s]*)(?:;|\\s|$)/;\n var Mimetypes = {\n 'video/ogg': 'ogv',\n 'video/mp4': 'mp4',\n 'video/x-matroska': 'mkv',\n 'video/webm': 'webm',\n 'audio/mp4': 'm4a',\n 'audio/mpeg': 'mp3',\n 'audio/aac': 'aac',\n 'audio/flac': 'flac',\n 'audio/ogg': 'oga',\n 'audio/wav': 'wav',\n 'audio/webm': 'webm',\n 'application/x-mpegURL': 'm3u8',\n 'image/jpeg': 'jpg',\n 'image/gif': 'gif',\n 'image/png': 'png',\n 'image/svg+xml': 'svg',\n 'image/webp': 'webp'\n };\n var getExtension = function getExtension(mimeType) {\n var match = EXTRACT_TYPE_REGEXP.exec(mimeType);\n var result = match && match[1].toLowerCase();\n return Mimetypes[result];\n };\n var _default = exports[\"default\"] = getExtension;\n module.exports = exports.default;\n\n /***/\n },\n\n /***/\"./node_modules/global/window.js\":\n /*!***************************************!*\\\n !*** ./node_modules/global/window.js ***!\n \\***************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var win;\n if (typeof window !== \"undefined\") {\n win = window;\n } else if (typeof __webpack_require__.g !== \"undefined\") {\n win = __webpack_require__.g;\n } else if (typeof self !== \"undefined\") {\n win = self;\n } else {\n win = {};\n }\n module.exports = win;\n\n /***/\n },\n\n /***/\"recordrtc\":\n /*!******************************************************************************************************!*\\\n !*** external {\"commonjs\":\"recordrtc\",\"commonjs2\":\"recordrtc\",\"amd\":\"recordrtc\",\"root\":\"RecordRTC\"} ***!\n \\******************************************************************************************************/\n /***/\n module => {\n \"use strict\";\n\n module.exports = __WEBPACK_EXTERNAL_MODULE_recordrtc__;\n\n /***/\n },\n\n /***/\"video.js\":\n /*!*************************************************************************************************!*\\\n !*** external {\"commonjs\":\"video.js\",\"commonjs2\":\"video.js\",\"amd\":\"video.js\",\"root\":\"videojs\"} ***!\n \\*************************************************************************************************/\n /***/\n module => {\n \"use strict\";\n\n module.exports = __WEBPACK_EXTERNAL_MODULE_video_js__;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\":\n /*!**********************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!\n \\**********************************************************************/\n /***/\n module => {\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n }\n module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\":\n /*!*****************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!\n \\*****************************************************************/\n /***/\n module => {\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n }\n function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n }\n module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/classCallCheck.js\":\n /*!***************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!\n \\***************************************************************/\n /***/\n module => {\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n module.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/createClass.js\":\n /*!************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!\n \\************************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var toPropertyKey = __webpack_require__( /*! ./toPropertyKey.js */\"./node_modules/@babel/runtime/helpers/toPropertyKey.js\");\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n }\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n }\n module.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/get.js\":\n /*!****************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/get.js ***!\n \\****************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var superPropBase = __webpack_require__( /*! ./superPropBase.js */\"./node_modules/@babel/runtime/helpers/superPropBase.js\");\n function _get() {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n return desc.value;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n }\n return _get.apply(this, arguments);\n }\n module.exports = _get, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\":\n /*!***************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!\n \\***************************************************************/\n /***/\n module => {\n function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n }\n module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/inherits.js\":\n /*!*********************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!\n \\*********************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var setPrototypeOf = __webpack_require__( /*! ./setPrototypeOf.js */\"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n }\n module.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\":\n /*!**********************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!\n \\**********************************************************************/\n /***/\n module => {\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n }\n module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\":\n /*!**************************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!\n \\**************************************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var _typeof = __webpack_require__( /*! ./typeof.js */\"./node_modules/@babel/runtime/helpers/typeof.js\")[\"default\"];\n var assertThisInitialized = __webpack_require__( /*! ./assertThisInitialized.js */\"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n }\n module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js\":\n /*!*******************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!\n \\*******************************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var _typeof = __webpack_require__( /*! ./typeof.js */\"./node_modules/@babel/runtime/helpers/typeof.js\")[\"default\"];\n function _regeneratorRuntime() {\n \"use strict\";\n\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return e;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n i = \"function\" == typeof Symbol ? Symbol : {},\n a = i.iterator || \"@@iterator\",\n c = i.asyncIterator || \"@@asyncIterator\",\n u = i.toStringTag || \"@@toStringTag\";\n function define(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n define({}, \"\");\n } catch (t) {\n define = function define(t, e, r) {\n return t[e] = r;\n };\n }\n function wrap(t, e, r, n) {\n var i = e && e.prototype instanceof Generator ? e : Generator,\n a = Object.create(i.prototype),\n c = new Context(n || []);\n return o(a, \"_invoke\", {\n value: makeInvokeMethod(t, r, c)\n }), a;\n }\n function tryCatch(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = wrap;\n var h = \"suspendedStart\",\n l = \"suspendedYield\",\n f = \"executing\",\n s = \"completed\",\n y = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var p = {};\n define(p, a, function () {\n return this;\n });\n var d = Object.getPrototypeOf,\n v = d && d(d(values([])));\n v && v !== r && n.call(v, a) && (p = v);\n var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);\n function defineIteratorMethods(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n define(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function AsyncIterator(t, e) {\n function invoke(r, o, i, a) {\n var c = tryCatch(t[r], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n h = u.value;\n return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n invoke(\"next\", t, i, a);\n }, function (t) {\n invoke(\"throw\", t, i, a);\n }) : e.resolve(h).then(function (t) {\n u.value = t, i(u);\n }, function (t) {\n return invoke(\"throw\", t, i, a);\n });\n }\n a(c.arg);\n }\n var r;\n o(this, \"_invoke\", {\n value: function value(t, n) {\n function callInvokeWithMethodAndArg() {\n return new e(function (e, r) {\n invoke(t, n, e, r);\n });\n }\n return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(e, r, n) {\n var o = h;\n return function (i, a) {\n if (o === f) throw new Error(\"Generator is already running\");\n if (o === s) {\n if (\"throw\" === i) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = i, n.arg = a;;) {\n var c = n.delegate;\n if (c) {\n var u = maybeInvokeDelegate(c, n);\n if (u) {\n if (u === y) continue;\n return u;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (o === h) throw o = s, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n o = f;\n var p = tryCatch(e, r, n);\n if (\"normal\" === p.type) {\n if (o = n.done ? s : l, p.arg === y) continue;\n return {\n value: p.arg,\n done: n.done\n };\n }\n \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n }\n };\n }\n function maybeInvokeDelegate(e, r) {\n var n = r.method,\n o = e.iterator[n];\n if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n var i = tryCatch(o, e.iterator, r.arg);\n if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n var a = i.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n }\n function pushTryEntry(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function resetTryEntry(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function Context(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var o = -1,\n i = function next() {\n for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n return next.value = t, next.done = !0, next;\n };\n return i.next = i;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), o(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n return this;\n }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n void 0 === i && (i = Promise);\n var a = new AsyncIterator(wrap(t, r, n, o), i);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n return this;\n }), define(g, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function next() {\n for (; r.length;) {\n var t = r.pop();\n if (t in e) return next.value = t, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, e.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function stop() {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var r = this;\n function handle(n, o) {\n return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var i = this.tryEntries[o],\n a = i.completion;\n if (\"root\" === i.tryLoc) return handle(\"end\");\n if (i.tryLoc <= this.prev) {\n var c = n.call(i, \"catchLoc\"),\n u = n.call(i, \"finallyLoc\");\n if (c && u) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n } else if (c) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var o = this.tryEntries[r];\n if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n var i = o;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n },\n complete: function complete(t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n },\n finish: function finish(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n }\n },\n \"catch\": function _catch(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var o = n.arg;\n resetTryEntry(r);\n }\n return o;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, r, n) {\n return this.delegate = {\n iterator: values(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), y;\n }\n }, e;\n }\n module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\":\n /*!***************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!\n \\***************************************************************/\n /***/\n module => {\n function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n }\n module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/superPropBase.js\":\n /*!**************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/superPropBase.js ***!\n \\**************************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var getPrototypeOf = __webpack_require__( /*! ./getPrototypeOf.js */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n return object;\n }\n module.exports = _superPropBase, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/toPrimitive.js\":\n /*!************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!\n \\************************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var _typeof = __webpack_require__( /*! ./typeof.js */\"./node_modules/@babel/runtime/helpers/typeof.js\")[\"default\"];\n function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n }\n module.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/toPropertyKey.js\":\n /*!**************************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!\n \\**************************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n var _typeof = __webpack_require__( /*! ./typeof.js */\"./node_modules/@babel/runtime/helpers/typeof.js\")[\"default\"];\n var toPrimitive = __webpack_require__( /*! ./toPrimitive.js */\"./node_modules/@babel/runtime/helpers/toPrimitive.js\");\n function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n }\n module.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/helpers/typeof.js\":\n /*!*******************************************************!*\\\n !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!\n \\*******************************************************/\n /***/\n module => {\n function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n }\n module.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n /***/\n },\n\n /***/\"./node_modules/@babel/runtime/regenerator/index.js\":\n /*!**********************************************************!*\\\n !*** ./node_modules/@babel/runtime/regenerator/index.js ***!\n \\**********************************************************/\n /***/\n (module, __unused_webpack_exports, __webpack_require__) => {\n // TODO(Babel 8): Remove this file.\n\n var runtime = __webpack_require__( /*! ../helpers/regeneratorRuntime */\"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js\")();\n module.exports = runtime;\n\n // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\n try {\n regeneratorRuntime = runtime;\n } catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n }\n\n /***/\n },\n\n /***/\"./node_modules/parse-ms/index.js\":\n /*!****************************************!*\\\n !*** ./node_modules/parse-ms/index.js ***!\n \\****************************************/\n /***/\n (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {\n \"use strict\";\n\n __webpack_require__.r(__webpack_exports__);\n /* harmony export */\n __webpack_require__.d(__webpack_exports__, {\n /* harmony export */\"default\": () => /* binding */parseMilliseconds\n /* harmony export */\n });\n function parseMilliseconds(milliseconds) {\n if (typeof milliseconds !== 'number') {\n throw new TypeError('Expected a number');\n }\n const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;\n return {\n days: roundTowardsZero(milliseconds / 86400000),\n hours: roundTowardsZero(milliseconds / 3600000) % 24,\n minutes: roundTowardsZero(milliseconds / 60000) % 60,\n seconds: roundTowardsZero(milliseconds / 1000) % 60,\n milliseconds: roundTowardsZero(milliseconds) % 1000,\n microseconds: roundTowardsZero(milliseconds * 1000) % 1000,\n nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1000\n };\n }\n\n /***/\n }\n\n /******/\n };\n /************************************************************************/\n /******/ // The module cache\n /******/\n var __webpack_module_cache__ = {};\n /******/\n /******/ // The require function\n /******/\n function __webpack_require__(moduleId) {\n /******/ // Check if module is in cache\n /******/var cachedModule = __webpack_module_cache__[moduleId];\n /******/\n if (cachedModule !== undefined) {\n /******/return cachedModule.exports;\n /******/\n }\n /******/ // Create a new module (and put it into the cache)\n /******/\n var module = __webpack_module_cache__[moduleId] = {\n /******/ // no module.id needed\n /******/ // no module.loaded needed\n /******/exports: {}\n /******/\n };\n /******/\n /******/ // Execute the module function\n /******/\n __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n /******/ // Return the exports of the module\n /******/\n return module.exports;\n /******/\n }\n /******/\n /************************************************************************/\n /******/ /* webpack/runtime/define property getters */\n /******/\n (() => {\n /******/ // define getter functions for harmony exports\n /******/__webpack_require__.d = (exports, definition) => {\n /******/for (var key in definition) {\n /******/if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n /******/Object.defineProperty(exports, key, {\n enumerable: true,\n get: definition[key]\n });\n /******/\n }\n /******/\n }\n /******/\n };\n /******/\n })();\n /******/\n /******/ /* webpack/runtime/global */\n /******/\n (() => {\n /******/__webpack_require__.g = function () {\n /******/if (typeof globalThis === 'object') return globalThis;\n /******/\n try {\n /******/return this || new Function('return this')();\n /******/\n } catch (e) {\n /******/if (typeof window === 'object') return window;\n /******/\n }\n /******/\n }();\n /******/\n })();\n /******/\n /******/ /* webpack/runtime/hasOwnProperty shorthand */\n /******/\n (() => {\n /******/__webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n /******/\n })();\n /******/\n /******/ /* webpack/runtime/make namespace object */\n /******/\n (() => {\n /******/ // define __esModule on exports\n /******/__webpack_require__.r = exports => {\n /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/Object.defineProperty(exports, Symbol.toStringTag, {\n value: 'Module'\n });\n /******/\n }\n /******/\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n /******/\n };\n /******/\n })();\n /******/\n /************************************************************************/\n var __webpack_exports__ = {};\n // This entry need to be wrapped in an IIFE because it need to be in strict mode.\n (() => {\n \"use strict\";\n\n var exports = __webpack_exports__;\n /*!**********************************!*\\\n !*** ./src/js/videojs.record.js ***!\n \\**********************************/\n\n var _interopRequireDefault = __webpack_require__( /*! @babel/runtime/helpers/interopRequireDefault */\"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.Record = void 0;\n var _typeof2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/typeof */\"./node_modules/@babel/runtime/helpers/typeof.js\"));\n var _classCallCheck2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/classCallCheck */\"./node_modules/@babel/runtime/helpers/classCallCheck.js\"));\n var _createClass2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/createClass */\"./node_modules/@babel/runtime/helpers/createClass.js\"));\n var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/possibleConstructorReturn */\"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\"));\n var _get2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/get */\"./node_modules/@babel/runtime/helpers/get.js\"));\n var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/getPrototypeOf */\"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\"));\n var _inherits2 = _interopRequireDefault(__webpack_require__( /*! @babel/runtime/helpers/inherits */\"./node_modules/@babel/runtime/helpers/inherits.js\"));\n var _video = _interopRequireDefault(__webpack_require__( /*! video.js */\"video.js\"));\n var _animationDisplay = _interopRequireDefault(__webpack_require__( /*! ./controls/animation-display */\"./src/js/controls/animation-display.js\"));\n var _recordCanvas = _interopRequireDefault(__webpack_require__( /*! ./controls/record-canvas */\"./src/js/controls/record-canvas.js\"));\n var _deviceButton = _interopRequireDefault(__webpack_require__( /*! ./controls/device-button */\"./src/js/controls/device-button.js\"));\n var _cameraButton = _interopRequireDefault(__webpack_require__( /*! ./controls/camera-button */\"./src/js/controls/camera-button.js\"));\n var _recordToggle = _interopRequireDefault(__webpack_require__( /*! ./controls/record-toggle */\"./src/js/controls/record-toggle.js\"));\n var _recordIndicator = _interopRequireDefault(__webpack_require__( /*! ./controls/record-indicator */\"./src/js/controls/record-indicator.js\"));\n var _pictureInPictureToggle = _interopRequireDefault(__webpack_require__( /*! ./controls/picture-in-picture-toggle */\"./src/js/controls/picture-in-picture-toggle.js\"));\n var _event = _interopRequireDefault(__webpack_require__( /*! ./event */\"./src/js/event.js\"));\n var _hotKeys = _interopRequireDefault(__webpack_require__( /*! ./hot-keys */\"./src/js/hot-keys.js\"));\n var _defaults = _interopRequireDefault(__webpack_require__( /*! ./defaults */\"./src/js/defaults.js\"));\n var _formatTime = _interopRequireDefault(__webpack_require__( /*! ./utils/format-time */\"./src/js/utils/format-time.js\"));\n var _browserShim = _interopRequireDefault(__webpack_require__( /*! ./utils/browser-shim */\"./src/js/utils/browser-shim.js\"));\n var _compareVersion = _interopRequireDefault(__webpack_require__( /*! ./utils/compare-version */\"./src/js/utils/compare-version.js\"));\n var _detectBrowser = __webpack_require__( /*! ./utils/detect-browser */\"./src/js/utils/detect-browser.js\");\n var _engineLoader = __webpack_require__( /*! ./engine/engine-loader */\"./src/js/engine/engine-loader.js\");\n var _recordMode = __webpack_require__( /*! ./engine/record-mode */\"./src/js/engine/record-mode.js\");\n function _callSuper(t, o, e) {\n return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));\n }\n function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n }\n var Plugin = _video.default.getPlugin('plugin');\n var Player = _video.default.getComponent('Player');\n var AUTO = 'auto';\n var Record = exports.Record = function (_Plugin) {\n function Record(player, options) {\n var _this;\n (0, _classCallCheck2.default)(this, Record);\n _this = _callSuper(this, Record, [player, options]);\n Player.prototype.play = function play() {\n var retval = this.techGet_('play');\n if (retval !== undefined && typeof retval.then === 'function') {\n retval.then(null, function (e) {});\n }\n return retval;\n };\n player.addClass('vjs-record');\n _this.loadOptions();\n _this.resetState();\n if (options.formatTime && typeof options.formatTime === 'function') {\n _this.setFormatTime(options.formatTime);\n } else {\n _this.setFormatTime(function (seconds, guide) {\n return (0, _formatTime.default)(seconds, guide, _this.displayMilliseconds);\n });\n }\n var deviceIcon = 'av-perm';\n switch (_this.getRecordType()) {\n case _recordMode.IMAGE_ONLY:\n case _recordMode.VIDEO_ONLY:\n case _recordMode.ANIMATION:\n deviceIcon = 'video-perm';\n break;\n case _recordMode.AUDIO_ONLY:\n deviceIcon = 'audio-perm';\n break;\n case _recordMode.SCREEN_ONLY:\n deviceIcon = 'screen-perm';\n break;\n case _recordMode.AUDIO_SCREEN:\n deviceIcon = 'sv-perm';\n break;\n }\n _deviceButton.default.prototype.buildCSSClass = function () {\n return 'vjs-record vjs-device-button vjs-control vjs-icon-' + deviceIcon;\n };\n player.deviceButton = new _deviceButton.default(player, options);\n player.addChild(player.deviceButton);\n player.recordIndicator = new _recordIndicator.default(player, options);\n player.recordIndicator.hide();\n player.addChild(player.recordIndicator);\n player.recordCanvas = new _recordCanvas.default(player, options);\n player.recordCanvas.hide();\n player.addChild(player.recordCanvas);\n player.animationDisplay = new _animationDisplay.default(player, options);\n player.animationDisplay.hide();\n player.addChild(player.animationDisplay);\n player.cameraButton = new _cameraButton.default(player, options);\n player.cameraButton.hide();\n player.recordToggle = new _recordToggle.default(player, options);\n player.recordToggle.hide();\n var oldVideoJS = _video.default.VERSION === undefined || (0, _compareVersion.default)(_video.default.VERSION, '7.6.0') === -1;\n if (!('pictureInPictureEnabled' in document)) {\n _this.pictureInPicture = false;\n }\n if (_this.pictureInPicture === true) {\n if (oldVideoJS) {\n player.pipToggle = new _pictureInPictureToggle.default(player, options);\n player.pipToggle.hide();\n }\n _this.onEnterPiPHandler = _this.onEnterPiP.bind(_this);\n _this.onLeavePiPHandler = _this.onLeavePiP.bind(_this);\n }\n if (_this.player.options_.controlBar) {\n var customUIElements = ['deviceButton', 'recordIndicator', 'cameraButton', 'recordToggle'];\n if (player.pipToggle) {\n customUIElements.push('pipToggle');\n }\n customUIElements.forEach(function (element) {\n if (_this.player.options_.controlBar[element] !== undefined) {\n _this.player[element].layoutExclude = true;\n _this.player[element].hide();\n }\n });\n }\n _this.player.one(_event.default.READY, _this.setupUI.bind(_this));\n return _this;\n }\n (0, _inherits2.default)(Record, _Plugin);\n return (0, _createClass2.default)(Record, [{\n key: \"loadOptions\",\n value: function loadOptions() {\n var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var merge;\n if (_video.default.obj !== undefined) {\n merge = _video.default.obj.merge;\n } else {\n merge = _video.default.mergeOptions;\n }\n var recordOptions = merge(_defaults.default, this.player.options_.plugins.record, newOptions);\n this.recordImage = recordOptions.image;\n this.recordAudio = recordOptions.audio;\n this.recordVideo = recordOptions.video;\n this.recordAnimation = recordOptions.animation;\n this.recordScreen = recordOptions.screen;\n this.maxLength = recordOptions.maxLength;\n this.maxFileSize = recordOptions.maxFileSize;\n this.displayMilliseconds = recordOptions.displayMilliseconds;\n this.debug = recordOptions.debug;\n this.pictureInPicture = recordOptions.pip;\n this.recordTimeSlice = recordOptions.timeSlice;\n this.autoMuteDevice = recordOptions.autoMuteDevice;\n this.pluginLibraryOptions = recordOptions.pluginLibraryOptions;\n this.videoFrameWidth = recordOptions.frameWidth;\n this.videoFrameHeight = recordOptions.frameHeight;\n this.videoFrameRate = recordOptions.videoFrameRate;\n this.videoBitRate = recordOptions.videoBitRate;\n this.videoEngine = recordOptions.videoEngine;\n this.videoRecorderType = recordOptions.videoRecorderType;\n this.videoMimeType = recordOptions.videoMimeType;\n this.videoWorkerURL = recordOptions.videoWorkerURL;\n this.videoWebAssemblyURL = recordOptions.videoWebAssemblyURL;\n this.convertEngine = recordOptions.convertEngine;\n this.convertAuto = recordOptions.convertAuto;\n this.convertWorkerURL = recordOptions.convertWorkerURL;\n this.convertOptions = recordOptions.convertOptions;\n this.audioEngine = recordOptions.audioEngine;\n this.audioRecorderType = recordOptions.audioRecorderType;\n this.audioWorkerURL = recordOptions.audioWorkerURL;\n this.audioWebAssemblyURL = recordOptions.audioWebAssemblyURL;\n this.audioBufferSize = recordOptions.audioBufferSize;\n this.audioSampleRate = recordOptions.audioSampleRate;\n this.audioBitRate = recordOptions.audioBitRate;\n this.audioChannels = recordOptions.audioChannels;\n this.audioMimeType = recordOptions.audioMimeType;\n this.audioBufferUpdate = recordOptions.audioBufferUpdate;\n this.imageOutputType = recordOptions.imageOutputType;\n this.imageOutputFormat = recordOptions.imageOutputFormat;\n this.imageOutputQuality = recordOptions.imageOutputQuality;\n this.animationFrameRate = recordOptions.animationFrameRate;\n this.animationQuality = recordOptions.animationQuality;\n }\n }, {\n key: \"setupUI\",\n value: function setupUI() {\n var _this2 = this;\n this.player.controlBar.addChild(this.player.cameraButton);\n this.player.controlBar.el().insertBefore(this.player.cameraButton.el(), this.player.controlBar.el().firstChild);\n this.player.controlBar.el().insertBefore(this.player.recordToggle.el(), this.player.controlBar.el().firstChild);\n if (this.pictureInPicture === true) {\n if (this.player.controlBar.pictureInPictureToggle === undefined && this.player.pipToggle !== undefined) {\n this.player.controlBar.addChild(this.player.pipToggle);\n } else if (this.player.controlBar.pictureInPictureToggle !== undefined) {\n this.player.pipToggle = this.player.controlBar.pictureInPictureToggle;\n this.player.pipToggle.hide();\n }\n } else if (this.pictureInPicture === false && this.player.controlBar.pictureInPictureToggle !== undefined) {\n this.player.controlBar.pictureInPictureToggle.hide();\n }\n if (this.player.controlBar.remainingTimeDisplay !== undefined) {\n this.player.controlBar.remainingTimeDisplay.el().style.display = 'none';\n }\n if (this.player.controlBar.liveDisplay !== undefined) {\n this.player.controlBar.liveDisplay.el().style.display = 'none';\n }\n this.player.loop(false);\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer = this.player.wavesurfer();\n this.surfer.setFormatTime(this._formatTime);\n break;\n case _recordMode.IMAGE_ONLY:\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.ANIMATION:\n case _recordMode.SCREEN_ONLY:\n case _recordMode.AUDIO_SCREEN:\n if (this.player.bigPlayButton !== undefined) {\n this.player.bigPlayButton.hide();\n }\n this.player.one(_event.default.LOADEDMETADATA, function () {\n _this2.setDuration(_this2.maxLength);\n });\n this.player.one(_event.default.LOADSTART, function () {\n _this2.setDuration(_this2.maxLength);\n });\n if (this.player.usingNativeControls_ === true) {\n if (this.player.tech_.el_ !== undefined) {\n this.player.tech_.el_.controls = false;\n }\n }\n this.player.removeTechControlsListeners_();\n if (this.player.options_.controls) {\n if (this.player.controlBar.progressControl !== undefined) {\n this.player.controlBar.progressControl.hide();\n }\n this.player.on(_event.default.USERINACTIVE, function (event) {\n _this2.player.userActive(true);\n });\n this.player.controlBar.show();\n this.player.controlBar.el().style.display = 'flex';\n }\n break;\n }\n this.player.off(_event.default.TIMEUPDATE);\n this.player.off(_event.default.DURATIONCHANGE);\n this.player.off(_event.default.LOADEDMETADATA);\n this.player.off(_event.default.LOADSTART);\n this.player.off(_event.default.ENDED);\n this.setDuration(this.maxLength);\n if (this.player.options_.plugins.record && this.player.options_.plugins.record.hotKeys && this.player.options_.plugins.record.hotKeys !== false) {\n var handler = this.player.options_.plugins.record.hotKeys;\n if (handler === true) {\n handler = _hotKeys.default;\n }\n this.player.options_.userActions = {\n hotkeys: handler\n };\n }\n if (this.player.controlBar.playToggle !== undefined) {\n this.player.controlBar.playToggle.hide();\n }\n }\n }, {\n key: \"isRecording\",\n value: function isRecording() {\n return this._recording;\n }\n }, {\n key: \"isProcessing\",\n value: function isProcessing() {\n return this._processing;\n }\n }, {\n key: \"isDestroyed\",\n value: function isDestroyed() {\n var destroyed = this.player === null;\n if (destroyed === false) {\n destroyed = this.player.children() === null;\n }\n return destroyed;\n }\n }, {\n key: \"getDevice\",\n value: function getDevice() {\n var _this3 = this;\n if (this.deviceReadyCallback === undefined) {\n this.deviceReadyCallback = this.onDeviceReady.bind(this);\n }\n if (this.deviceErrorCallback === undefined) {\n this.deviceErrorCallback = this.onDeviceError.bind(this);\n }\n if (this.engineStopCallback === undefined) {\n this.engineStopCallback = this.onRecordComplete.bind(this);\n }\n if (this.streamVisibleCallback === undefined) {\n this.streamVisibleCallback = this.onStreamVisible.bind(this);\n }\n if (this.getRecordType() === _recordMode.SCREEN_ONLY || this.getRecordType() === _recordMode.AUDIO_SCREEN) {\n if (navigator.mediaDevices === undefined || navigator.mediaDevices.getDisplayMedia === undefined) {\n this.player.trigger(_event.default.ERROR, 'This browser does not support navigator.mediaDevices.getDisplayMedia');\n return;\n }\n } else {\n if (navigator.mediaDevices === undefined || navigator.mediaDevices.getUserMedia === undefined) {\n this.player.trigger(_event.default.ERROR, 'This browser does not support navigator.mediaDevices.getUserMedia');\n return;\n }\n }\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.mediaType = {\n audio: this.audioRecorderType === AUTO ? true : this.audioRecorderType,\n video: false\n };\n this.surfer.surfer.microphone.un(_event.default.DEVICE_READY, this.deviceReadyCallback);\n this.surfer.surfer.microphone.un(_event.default.DEVICE_ERROR, this.deviceErrorCallback);\n this.surfer.surfer.microphone.on(_event.default.DEVICE_READY, this.deviceReadyCallback);\n this.surfer.surfer.microphone.on(_event.default.DEVICE_ERROR, this.deviceErrorCallback);\n this.surfer.setupPlaybackEvents(false);\n this.surfer.liveMode = true;\n this.surfer.surfer.microphone.paused = false;\n if (this.surfer.surfer.backend.ac.state === 'suspended') {\n this.surfer.surfer.backend.ac.resume();\n }\n if (this.audioBufferUpdate === true) {\n this.surfer.surfer.microphone.reloadBufferFunction = function (event) {\n if (!_this3.surfer.surfer.microphone.paused) {\n _this3.surfer.surfer.empty();\n _this3.surfer.surfer.loadDecodedBuffer(event.inputBuffer);\n _this3.player.recordedData = event.inputBuffer;\n _this3.player.trigger(_event.default.AUDIO_BUFFER_UPDATE);\n }\n };\n }\n this.surfer.surfer.microphone.start();\n break;\n case _recordMode.IMAGE_ONLY:\n case _recordMode.VIDEO_ONLY:\n if (this.getRecordType() === _recordMode.IMAGE_ONLY) {\n this.player.el().firstChild.addEventListener(_event.default.PLAYING, this.streamVisibleCallback);\n }\n this.mediaType = {\n audio: false,\n video: this.videoRecorderType === AUTO ? true : this.videoRecorderType\n };\n navigator.mediaDevices.getUserMedia({\n audio: false,\n video: this.getRecordType() === _recordMode.IMAGE_ONLY ? this.recordImage : this.recordVideo\n }).then(this.onDeviceReady.bind(this)).catch(this.onDeviceError.bind(this));\n break;\n case _recordMode.AUDIO_SCREEN:\n this.mediaType = {\n audio: this.audioRecorderType === AUTO ? true : this.audioRecorderType,\n video: this.videoRecorderType === AUTO ? true : this.videoRecorderType\n };\n var audioScreenConstraints = {};\n if (this.recordScreen === true) {\n audioScreenConstraints = {\n video: true\n };\n } else if ((0, _typeof2.default)(this.recordScreen) === 'object' && this.recordScreen.constructor === Object) {\n audioScreenConstraints = this.recordScreen;\n }\n navigator.mediaDevices.getDisplayMedia(audioScreenConstraints).then(function (screenStream) {\n navigator.mediaDevices.getUserMedia({\n audio: _this3.recordAudio\n }).then(function (mic) {\n screenStream.addTrack(mic.getTracks()[0]);\n _this3.onDeviceReady.bind(_this3)(screenStream);\n }).catch(function (code) {\n if (screenStream.active) {\n screenStream.stop();\n }\n _this3.onDeviceError(code);\n });\n }).catch(this.onDeviceError.bind(this));\n break;\n case _recordMode.AUDIO_VIDEO:\n this.mediaType = {\n audio: this.audioRecorderType === AUTO ? true : this.audioRecorderType,\n video: this.videoRecorderType === AUTO ? true : this.videoRecorderType\n };\n navigator.mediaDevices.getUserMedia({\n audio: this.recordAudio,\n video: this.recordVideo\n }).then(this.onDeviceReady.bind(this)).catch(this.onDeviceError.bind(this));\n break;\n case _recordMode.ANIMATION:\n this.mediaType = {\n audio: false,\n video: false,\n gif: true\n };\n navigator.mediaDevices.getUserMedia({\n audio: false,\n video: this.recordAnimation\n }).then(this.onDeviceReady.bind(this)).catch(this.onDeviceError.bind(this));\n break;\n case _recordMode.SCREEN_ONLY:\n this.mediaType = {\n audio: false,\n video: false,\n screen: true,\n gif: false\n };\n var screenOnlyConstraints = {};\n if (this.recordScreen === true) {\n screenOnlyConstraints = {\n video: true\n };\n } else if ((0, _typeof2.default)(this.recordScreen) === 'object' && this.recordScreen.constructor === Object) {\n screenOnlyConstraints = this.recordScreen;\n }\n navigator.mediaDevices.getDisplayMedia(screenOnlyConstraints).then(this.onDeviceReady.bind(this)).catch(this.onDeviceError.bind(this));\n break;\n }\n }\n }, {\n key: \"onDeviceReady\",\n value: function onDeviceReady(stream) {\n var _this4 = this;\n this._deviceActive = true;\n if (this.stream !== undefined && this.stream.active) {\n this.stream.stop();\n }\n this.stream = stream;\n this.player.deviceButton.hide();\n this.setDuration(this.maxLength);\n this.setCurrentTime(0);\n if (this.player.controlBar.playToggle !== undefined) {\n this.player.controlBar.playToggle.hide();\n }\n this.off(this.player, _event.default.TIMEUPDATE, this.playbackTimeUpdate);\n this.off(this.player, _event.default.ENDED, this.playbackTimeUpdate);\n if (this.getRecordType() !== _recordMode.IMAGE_ONLY) {\n if (this.getRecordType() !== _recordMode.AUDIO_ONLY && (0, _engineLoader.isAudioPluginActive)(this.audioEngine)) {\n throw new Error('Currently ' + this.audioEngine + ' is only supported in audio-only mode.');\n }\n var EngineClass, engineType;\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n EngineClass = (0, _engineLoader.getAudioEngine)(this.audioEngine);\n engineType = this.audioEngine;\n break;\n default:\n EngineClass = (0, _engineLoader.getVideoEngine)(this.videoEngine);\n engineType = this.videoEngine;\n }\n try {\n this.engine = new EngineClass(this.player, this.player.options_);\n } catch (err) {\n throw new Error('Could not load ' + engineType + ' plugin');\n }\n this.engine.on(_event.default.RECORD_COMPLETE, this.engineStopCallback);\n this.engine.bufferSize = this.audioBufferSize;\n this.engine.sampleRate = this.audioSampleRate;\n this.engine.bitRate = this.audioBitRate;\n this.engine.audioChannels = this.audioChannels;\n this.engine.audioWorkerURL = this.audioWorkerURL;\n this.engine.audioWebAssemblyURL = this.audioWebAssemblyURL;\n this.engine.mimeType = {\n video: this.videoMimeType,\n gif: 'image/gif'\n };\n if (this.audioMimeType !== null && this.audioMimeType !== AUTO) {\n this.engine.mimeType.audio = this.audioMimeType;\n }\n this.engine.videoWorkerURL = this.videoWorkerURL;\n this.engine.videoWebAssemblyURL = this.videoWebAssemblyURL;\n this.engine.videoBitRate = this.videoBitRate;\n this.engine.videoFrameRate = this.videoFrameRate;\n this.engine.video = {\n width: this.videoFrameWidth,\n height: this.videoFrameHeight\n };\n this.engine.canvas = {\n width: this.videoFrameWidth,\n height: this.videoFrameHeight\n };\n this.engine.quality = this.animationQuality;\n this.engine.frameRate = this.animationFrameRate;\n if (this.recordTimeSlice && this.recordTimeSlice > 0) {\n this.engine.timeSlice = this.recordTimeSlice;\n this.engine.maxFileSize = this.maxFileSize;\n }\n this.engine.pluginLibraryOptions = this.pluginLibraryOptions;\n this.engine.setup(this.stream, this.mediaType, this.debug);\n if (this.convertEngine !== '') {\n var ConvertEngineClass = (0, _engineLoader.getConvertEngine)(this.convertEngine);\n try {\n this.converter = new ConvertEngineClass(this.player, this.player.options_);\n } catch (err) {\n throw new Error('Could not load ' + this.convertEngine + ' plugin');\n }\n this.converter.convertAuto = this.convertAuto;\n this.converter.convertWorkerURL = this.convertWorkerURL;\n this.converter.convertOptions = this.convertOptions;\n this.converter.pluginLibraryOptions = this.pluginLibraryOptions;\n this.converter.setup(this.mediaType, this.debug);\n }\n var uiElements = ['currentTimeDisplay', 'timeDivider', 'durationDisplay'];\n uiElements.forEach(function (element) {\n element = _this4.player.controlBar[element];\n if (element !== undefined) {\n element.el().style.display = 'block';\n element.show();\n }\n });\n this.player.recordToggle.show();\n } else {\n this.player.recordIndicator.disable();\n this.retrySnapshot();\n }\n if (this.getRecordType() !== _recordMode.AUDIO_ONLY) {\n this.mediaElement = this.player.el().firstChild;\n this.mediaElement.controls = false;\n this.mediaElement.muted = true;\n this.displayVolumeControl(false);\n if (this.pictureInPicture === true) {\n this.player.pipToggle.show();\n this.mediaElement.removeEventListener(_event.default.ENTERPICTUREINPICTURE, this.onEnterPiPHandler);\n this.mediaElement.removeEventListener(_event.default.LEAVEPICTUREINPICTURE, this.onLeavePiPHandler);\n this.mediaElement.addEventListener(_event.default.ENTERPICTUREINPICTURE, this.onEnterPiPHandler);\n this.mediaElement.addEventListener(_event.default.LEAVEPICTUREINPICTURE, this.onLeavePiPHandler);\n }\n this.load(this.stream);\n this.player.one(_event.default.LOADEDMETADATA, function () {\n _this4.mediaElement.play();\n _this4.player.trigger(_event.default.DEVICE_READY);\n });\n } else {\n this.player.trigger(_event.default.DEVICE_READY);\n }\n }\n }, {\n key: \"onDeviceError\",\n value: function onDeviceError(code) {\n this._deviceActive = false;\n if (!this.isDestroyed()) {\n this.player.deviceErrorCode = code;\n this.player.trigger(_event.default.DEVICE_ERROR);\n }\n }\n }, {\n key: \"start\",\n value: function start() {\n var _this5 = this;\n if (!this.isProcessing()) {\n if (this.stream && this.stream.active === false) {\n this.getDevice();\n return;\n }\n this._recording = true;\n if (this.player.controlBar.playToggle !== undefined) {\n this.player.controlBar.playToggle.hide();\n }\n this.off(this.player, _event.default.TIMEUPDATE, this.playbackTimeUpdate);\n this.off(this.player, _event.default.ENDED, this.playbackTimeUpdate);\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.setupPlaybackEvents(false);\n this.surfer.surfer.microphone.paused = false;\n this.surfer.liveMode = true;\n this.surfer.surfer.microphone.play();\n break;\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.SCREEN_ONLY:\n this.startVideoPreview();\n break;\n case _recordMode.ANIMATION:\n this.player.recordCanvas.hide();\n this.player.animationDisplay.hide();\n this.mediaElement.style.display = 'block';\n this.captureFrame().then(function (result) {\n _this5.startVideoPreview();\n });\n break;\n }\n if (this.autoMuteDevice) {\n this.muteTracks(false);\n }\n switch (this.getRecordType()) {\n case _recordMode.IMAGE_ONLY:\n this.createSnapshot();\n this.player.trigger(_event.default.START_RECORD);\n break;\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.ANIMATION:\n case _recordMode.SCREEN_ONLY:\n this.player.one(_event.default.LOADEDMETADATA, function () {\n _this5.startRecording();\n });\n break;\n default:\n this.startRecording();\n }\n }\n }\n }, {\n key: \"startRecording\",\n value: function startRecording() {\n this.paused = false;\n this.pauseTime = this.pausedTime = 0;\n this.startTime = performance.now();\n var COUNTDOWN_SPEED = 100;\n this.countDown = this.player.setInterval(this.onCountDown.bind(this), COUNTDOWN_SPEED);\n if (this.engine !== undefined) {\n this.engine.dispose();\n }\n this.engine.start();\n this.player.trigger(_event.default.START_RECORD);\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (!this.isProcessing()) {\n this._recording = false;\n this._processing = true;\n if (this.getRecordType() !== _recordMode.IMAGE_ONLY) {\n this.player.trigger(_event.default.STOP_RECORD);\n this.player.clearInterval(this.countDown);\n if (this.engine) {\n this.engine.stop();\n }\n if (this.autoMuteDevice) {\n this.muteTracks(true);\n }\n } else {\n if (this.player.recordedData) {\n this.player.trigger(_event.default.FINISH_RECORD);\n }\n }\n }\n }\n }, {\n key: \"stopDevice\",\n value: function stopDevice() {\n if (this.isRecording()) {\n this.player.one(_event.default.FINISH_RECORD, this.stopStream.bind(this));\n this.stop();\n } else {\n this.stopStream();\n }\n }\n }, {\n key: \"stopStream\",\n value: function stopStream() {\n if (this.stream) {\n this._deviceActive = false;\n if (this.getRecordType() === _recordMode.AUDIO_ONLY) {\n this.surfer.surfer.microphone.stopDevice();\n return;\n }\n this.stream.getTracks().forEach(function (stream) {\n stream.stop();\n });\n }\n }\n }, {\n key: \"pause\",\n value: function pause() {\n if (!this.paused) {\n this.pauseTime = performance.now();\n this.paused = true;\n this.engine.pause();\n }\n }\n }, {\n key: \"resume\",\n value: function resume() {\n if (this.paused) {\n this.pausedTime += performance.now() - this.pauseTime;\n this.engine.resume();\n this.paused = false;\n }\n }\n }, {\n key: \"onRecordComplete\",\n value: function onRecordComplete() {\n var _this6 = this;\n this.player.recordedData = this.engine.recordedData;\n if (this.player.controlBar.playToggle !== undefined) {\n this.player.controlBar.playToggle.removeClass('vjs-ended');\n this.player.controlBar.playToggle.show();\n }\n if (this.convertAuto === true) {\n this.convert();\n }\n this.player.trigger(_event.default.FINISH_RECORD);\n if (this.isDestroyed()) {\n return;\n }\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.pause();\n this.surfer.setupPlaybackEvents(true);\n this.player.loadingSpinner.show();\n this.surfer.surfer.once(_event.default.READY, function () {\n _this6._processing = false;\n });\n this.load(this.player.recordedData);\n break;\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.SCREEN_ONLY:\n this.player.one(_event.default.PAUSE, function () {\n _this6._processing = false;\n _this6.player.loadingSpinner.hide();\n _this6.setDuration(_this6.streamDuration);\n _this6.on(_this6.player, _event.default.TIMEUPDATE, _this6.playbackTimeUpdate);\n _this6.on(_this6.player, _event.default.ENDED, _this6.playbackTimeUpdate);\n if (_this6.getRecordType() === _recordMode.AUDIO_VIDEO || _this6.getRecordType() === _recordMode.AUDIO_SCREEN) {\n _this6.mediaElement.muted = false;\n _this6.displayVolumeControl(true);\n }\n _this6.load(_this6.player.recordedData);\n });\n this.player.pause();\n break;\n case _recordMode.ANIMATION:\n this._processing = false;\n this.player.loadingSpinner.hide();\n this.setDuration(this.streamDuration);\n this.mediaElement.style.display = 'none';\n this.player.recordCanvas.show();\n this.player.pause();\n this.on(this.player, _event.default.PLAY, this.showAnimation);\n this.on(this.player, _event.default.PAUSE, this.hideAnimation);\n break;\n }\n }\n }, {\n key: \"onCountDown\",\n value: function onCountDown() {\n if (!this.paused) {\n var now = performance.now();\n var duration = this.maxLength;\n var currentTime = (now - (this.startTime + this.pausedTime)) / 1000;\n this.streamDuration = currentTime;\n if (currentTime >= duration) {\n currentTime = duration;\n this.stop();\n }\n this.setDuration(duration);\n this.setCurrentTime(currentTime, duration);\n this.player.trigger(_event.default.PROGRESS_RECORD);\n }\n }\n }, {\n key: \"getCurrentTime\",\n value: function getCurrentTime() {\n var currentTime = isNaN(this.streamCurrentTime) ? 0 : this.streamCurrentTime;\n if (this.getRecordType() === _recordMode.AUDIO_ONLY) {\n currentTime = this.surfer.getCurrentTime();\n }\n return currentTime;\n }\n }, {\n key: \"setCurrentTime\",\n value: function setCurrentTime(currentTime, duration) {\n currentTime = isNaN(currentTime) ? 0 : currentTime;\n duration = isNaN(duration) ? 0 : duration;\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.setCurrentTime(currentTime, duration);\n break;\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.ANIMATION:\n case _recordMode.SCREEN_ONLY:\n if (this.player.controlBar.currentTimeDisplay && this.player.controlBar.currentTimeDisplay.contentEl() && this.player.controlBar.currentTimeDisplay.contentEl().lastChild) {\n this.streamCurrentTime = Math.min(currentTime, duration);\n this.player.controlBar.currentTimeDisplay.formattedTime_ = this.player.controlBar.currentTimeDisplay.contentEl().lastChild.textContent = this._formatTime(this.streamCurrentTime, duration, this.displayMilliseconds);\n }\n break;\n }\n }\n }, {\n key: \"getDuration\",\n value: function getDuration() {\n var duration = isNaN(this.streamDuration) ? 0 : this.streamDuration;\n return duration;\n }\n }, {\n key: \"setDuration\",\n value: function setDuration(duration) {\n duration = isNaN(duration) ? 0 : duration;\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.setDuration(duration);\n break;\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.ANIMATION:\n case _recordMode.SCREEN_ONLY:\n if (this.player.controlBar.durationDisplay && this.player.controlBar.durationDisplay.contentEl() && this.player.controlBar.durationDisplay.contentEl().lastChild) {\n this.player.controlBar.durationDisplay.formattedTime_ = this.player.controlBar.durationDisplay.contentEl().lastChild.textContent = this._formatTime(duration, duration, this.displayMilliseconds);\n }\n break;\n }\n }\n }, {\n key: \"load\",\n value: function load(url) {\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.load(url);\n break;\n case _recordMode.IMAGE_ONLY:\n case _recordMode.VIDEO_ONLY:\n case _recordMode.AUDIO_VIDEO:\n case _recordMode.AUDIO_SCREEN:\n case _recordMode.ANIMATION:\n case _recordMode.SCREEN_ONLY:\n if (url instanceof Blob || url instanceof File) {\n this.mediaElement.srcObject = null;\n this.mediaElement.src = URL.createObjectURL(url);\n } else {\n (0, _browserShim.default)(url, this.mediaElement);\n }\n break;\n }\n }\n }, {\n key: \"saveAs\",\n value: function saveAs(name) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'record';\n if (type === 'record') {\n if (this.engine && name !== undefined) {\n this.engine.saveAs(name);\n }\n } else if (type === 'convert') {\n if (this.converter && name !== undefined) {\n this.converter.saveAs(name);\n }\n }\n }\n }, {\n key: \"dispose\",\n value: function dispose() {\n this.player.off(_event.default.READY);\n this.player.off(_event.default.USERINACTIVE);\n this.player.off(_event.default.LOADEDMETADATA);\n if (this.engine) {\n this.engine.dispose();\n this.engine.destroy();\n this.engine.off(_event.default.RECORD_COMPLETE, this.engineStopCallback);\n }\n this.stop();\n this.stopDevice();\n this.removeRecording();\n this.player.clearInterval(this.countDown);\n if (this.getRecordType() === _recordMode.AUDIO_ONLY) {\n if (this.surfer) {\n this.surfer.destroy();\n }\n } else if (this.getRecordType() === _recordMode.IMAGE_ONLY) {\n if (this.mediaElement && this.streamVisibleCallback) {\n this.mediaElement.removeEventListener(_event.default.PLAYING, this.streamVisibleCallback);\n }\n }\n this.resetState();\n (0, _get2.default)((0, _getPrototypeOf2.default)(Record.prototype), \"dispose\", this).call(this);\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n this.player.dispose();\n }\n }, {\n key: \"reset\",\n value: function reset() {\n var _this7 = this;\n if (this.engine) {\n this.engine.dispose();\n this.engine.off(_event.default.RECORD_COMPLETE, this.engineStopCallback);\n }\n this.stop();\n this.stopDevice();\n this.player.clearInterval(this.countDown);\n this.removeRecording();\n this.loadOptions();\n this.resetState();\n this.setDuration(this.maxLength);\n this.setCurrentTime(0);\n this.player.reset();\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n if (this.surfer && this.surfer.surfer) {\n this.surfer.surfer.empty();\n }\n break;\n case _recordMode.IMAGE_ONLY:\n case _recordMode.ANIMATION:\n this.player.recordCanvas.hide();\n this.player.cameraButton.hide();\n break;\n }\n if (this.player.controlBar.playToggle !== undefined) {\n this.player.controlBar.playToggle.hide();\n }\n this.player.deviceButton.show();\n this.player.recordToggle.hide();\n this.player.one(_event.default.LOADEDMETADATA, function () {\n _this7.setDuration(_this7.maxLength);\n });\n }\n }, {\n key: \"resetState\",\n value: function resetState() {\n this._recording = false;\n this._processing = false;\n this._deviceActive = false;\n this.devices = [];\n }\n }, {\n key: \"removeRecording\",\n value: function removeRecording() {\n if (this.mediaElement && this.mediaElement.src && this.mediaElement.src.startsWith('blob:') === true) {\n URL.revokeObjectURL(this.mediaElement.src);\n this.mediaElement.src = '';\n }\n }\n }, {\n key: \"exportImage\",\n value: function exportImage() {\n var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/png';\n var quality = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n if (this.getRecordType() === _recordMode.AUDIO_ONLY) {\n return this.surfer.surfer.exportImage(format, quality, 'blob');\n } else {\n var recordCanvas = this.player.recordCanvas.el().firstChild;\n this.drawCanvas(recordCanvas, this.mediaElement);\n return new Promise(function (resolve) {\n recordCanvas.toBlob(resolve, format, quality);\n });\n }\n }\n }, {\n key: \"muteTracks\",\n value: function muteTracks(mute) {\n if ((this.getRecordType() === _recordMode.AUDIO_ONLY || this.getRecordType() === _recordMode.AUDIO_SCREEN || this.getRecordType() === _recordMode.AUDIO_VIDEO) && this.stream.getAudioTracks().length > 0) {\n this.stream.getAudioTracks()[0].enabled = !mute;\n }\n if (this.getRecordType() !== _recordMode.AUDIO_ONLY && this.stream.getVideoTracks().length > 0) {\n this.stream.getVideoTracks()[0].enabled = !mute;\n }\n }\n }, {\n key: \"getRecordType\",\n value: function getRecordType() {\n return (0, _recordMode.getRecorderMode)(this.recordImage, this.recordAudio, this.recordVideo, this.recordAnimation, this.recordScreen);\n }\n }, {\n key: \"convert\",\n value: function convert() {\n if (this.converter !== undefined) {\n this.converter.convert(this.player.recordedData);\n }\n }\n }, {\n key: \"createSnapshot\",\n value: function createSnapshot() {\n var _this8 = this;\n this.captureFrame().then(function (result) {\n if (_this8.imageOutputType === 'blob') {\n result.toBlob(function (blob) {\n _this8.player.recordedData = blob;\n _this8.displaySnapshot();\n });\n } else if (_this8.imageOutputType === 'dataURL') {\n _this8.player.recordedData = result.toDataURL(_this8.imageOutputFormat, _this8.imageOutputQuality);\n _this8.displaySnapshot();\n }\n }, this.imageOutputFormat, this.imageOutputQuality);\n }\n }, {\n key: \"displaySnapshot\",\n value: function displaySnapshot() {\n this.mediaElement.style.display = 'none';\n this.player.recordCanvas.show();\n this.stop();\n }\n }, {\n key: \"retrySnapshot\",\n value: function retrySnapshot() {\n this._processing = false;\n this.player.recordCanvas.hide();\n this.player.el().firstChild.style.display = 'block';\n }\n }, {\n key: \"captureFrame\",\n value: function captureFrame() {\n var _this9 = this;\n var detected = (0, _detectBrowser.detectBrowser)();\n var recordCanvas = this.player.recordCanvas.el().firstChild;\n var track = this.stream.getVideoTracks()[0];\n var settings = track.getSettings();\n recordCanvas.width = settings.width;\n recordCanvas.height = settings.height;\n return new Promise(function (resolve, reject) {\n var cameraAspectRatio = settings.width / settings.height;\n var playerAspectRatio = _this9.player.width() / _this9.player.height();\n var imagePreviewHeight = 0;\n var imagePreviewWidth = 0;\n var imageXPosition = 0;\n var imageYPosition = 0;\n if (cameraAspectRatio >= playerAspectRatio) {\n imagePreviewHeight = settings.height * (_this9.player.width() / settings.width);\n imagePreviewWidth = _this9.player.width();\n imageYPosition = _this9.player.height() / 2 - imagePreviewHeight / 2;\n } else {\n imagePreviewHeight = _this9.player.height();\n imagePreviewWidth = settings.width * (_this9.player.height() / settings.height);\n imageXPosition = _this9.player.width() / 2 - imagePreviewWidth / 2;\n }\n if (detected.browser === 'chrome' && detected.version >= 60 && (typeof ImageCapture === \"undefined\" ? \"undefined\" : (0, _typeof2.default)(ImageCapture)) === (typeof Function === \"undefined\" ? \"undefined\" : (0, _typeof2.default)(Function))) {\n try {\n var imageCapture = new ImageCapture(track);\n imageCapture.grabFrame().then(function (imageBitmap) {\n _this9.drawCanvas(recordCanvas, imageBitmap, imagePreviewWidth, imagePreviewHeight, imageXPosition, imageYPosition);\n resolve(recordCanvas);\n }).catch(function (error) {});\n } catch (err) {}\n }\n _this9.drawCanvas(recordCanvas, _this9.mediaElement, imagePreviewWidth, imagePreviewHeight, imageXPosition, imageYPosition);\n resolve(recordCanvas);\n });\n }\n }, {\n key: \"drawCanvas\",\n value: function drawCanvas(canvas, element, width, height) {\n var x = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n var y = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n if (width === undefined) {\n width = canvas.width;\n }\n if (height === undefined) {\n height = canvas.height;\n }\n canvas.getContext('2d').drawImage(element, x, y, width, height);\n }\n }, {\n key: \"startVideoPreview\",\n value: function startVideoPreview() {\n this.off(_event.default.TIMEUPDATE);\n this.off(_event.default.DURATIONCHANGE);\n this.off(_event.default.LOADEDMETADATA);\n this.off(_event.default.PLAY);\n this.mediaElement.muted = true;\n this.displayVolumeControl(false);\n this.removeRecording();\n this.load(this.stream);\n this.mediaElement.play();\n }\n }, {\n key: \"showAnimation\",\n value: function showAnimation() {\n var animationDisplay = this.player.animationDisplay.el().firstChild;\n animationDisplay.width = this.player.width();\n animationDisplay.height = this.player.height();\n this.player.recordCanvas.hide();\n (0, _browserShim.default)(this.player.recordedData, animationDisplay);\n this.player.animationDisplay.show();\n }\n }, {\n key: \"hideAnimation\",\n value: function hideAnimation() {\n this.player.recordCanvas.show();\n this.player.animationDisplay.hide();\n }\n }, {\n key: \"playbackTimeUpdate\",\n value: function playbackTimeUpdate() {\n this.setCurrentTime(this.player.currentTime(), this.streamDuration);\n }\n }, {\n key: \"enumerateDevices\",\n value: function enumerateDevices() {\n var _this10 = this;\n if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices) {\n this.player.enumerateErrorCode = 'enumerateDevices() not supported.';\n this.player.trigger(_event.default.ENUMERATE_ERROR);\n return;\n }\n navigator.mediaDevices.enumerateDevices(this).then(function (devices) {\n _this10.devices = [];\n devices.forEach(function (device) {\n _this10.devices.push(device);\n });\n _this10.player.trigger(_event.default.ENUMERATE_READY);\n }).catch(function (err) {\n _this10.player.enumerateErrorCode = err;\n _this10.player.trigger(_event.default.ENUMERATE_ERROR);\n });\n }\n }, {\n key: \"setVideoInput\",\n value: function setVideoInput(deviceId) {\n if (this.recordVideo === Object(this.recordVideo)) {\n this.recordVideo.deviceId = {\n exact: deviceId\n };\n } else if (this.recordVideo === true) {\n this.recordVideo = {\n deviceId: {\n exact: deviceId\n }\n };\n }\n this.stopDevice();\n this.getDevice();\n }\n }, {\n key: \"setAudioInput\",\n value: function setAudioInput(deviceId) {\n if (this.recordAudio === Object(this.recordAudio)) {\n this.recordAudio.deviceId = {\n exact: deviceId\n };\n } else if (this.recordAudio === true) {\n this.recordAudio = {\n deviceId: {\n exact: deviceId\n }\n };\n }\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.surfer.microphone.constraints = {\n video: false,\n audio: this.recordAudio\n };\n break;\n }\n this.stopDevice();\n this.getDevice();\n }\n }, {\n key: \"setAudioOutput\",\n value: function setAudioOutput(deviceId) {\n var _this11 = this;\n var errorMessage;\n switch (this.getRecordType()) {\n case _recordMode.AUDIO_ONLY:\n this.surfer.surfer.setSinkId(deviceId).then(function (result) {\n _this11.player.trigger(_event.default.AUDIO_OUTPUT_READY);\n return;\n }).catch(function (err) {\n errorMessage = err;\n });\n break;\n default:\n var element = player.tech_.el_;\n if (deviceId) {\n if (typeof element.sinkId !== 'undefined') {\n element.setSinkId(deviceId).then(function (result) {\n _this11.player.trigger(_event.default.AUDIO_OUTPUT_READY);\n return;\n }).catch(function (err) {\n errorMessage = err;\n });\n } else {\n errorMessage = 'Browser does not support audio output device selection.';\n }\n } else {\n errorMessage = \"Invalid deviceId: \".concat(deviceId);\n }\n break;\n }\n this.player.trigger(_event.default.ERROR, errorMessage);\n }\n }, {\n key: \"setFormatTime\",\n value: function setFormatTime(customImplementation) {\n this._formatTime = customImplementation;\n if (_video.default.time !== undefined) {\n _video.default.time.setFormatTime(this._formatTime);\n } else {\n _video.default.setFormatTime(this._formatTime);\n }\n if (this.surfer) {\n this.surfer.setFormatTime(this._formatTime);\n }\n }\n }, {\n key: \"displayVolumeControl\",\n value: function displayVolumeControl(display) {\n if (this.player.controlBar.volumePanel !== undefined) {\n if (display === true) {\n display = 'flex';\n } else {\n display = 'none';\n }\n this.player.controlBar.volumePanel.el().style.display = display;\n }\n }\n }, {\n key: \"onStreamVisible\",\n value: function onStreamVisible(event) {\n this.mediaElement.removeEventListener(_event.default.PLAYING, this.streamVisibleCallback);\n this.player.cameraButton.onStop();\n this.player.cameraButton.show();\n }\n }, {\n key: \"onEnterPiP\",\n value: function onEnterPiP(event) {\n this.player.trigger(_event.default.ENTER_PIP, event);\n }\n }, {\n key: \"onLeavePiP\",\n value: function onLeavePiP(event) {\n this.player.trigger(_event.default.LEAVE_PIP);\n }\n }]);\n }(Plugin);\n Record.VERSION = \"4.8.0\";\n _video.default.Record = Record;\n if (_video.default.getPlugin('record') === undefined) {\n _video.default.registerPlugin('record', Record);\n }\n })();\n\n /******/\n return __webpack_exports__;\n /******/\n })()\n );\n});","// Generated by CoffeeScript 1.10.0\nvar adjacency_graphs;\nadjacency_graphs = {\n qwerty: {\n \"!\": [\"`~\", null, null, \"2@\", \"qQ\", null],\n \"\\\"\": [\";:\", \"[{\", \"]}\", null, null, \"/?\"],\n \"#\": [\"2@\", null, null, \"4$\", \"eE\", \"wW\"],\n \"$\": [\"3#\", null, null, \"5%\", \"rR\", \"eE\"],\n \"%\": [\"4$\", null, null, \"6^\", \"tT\", \"rR\"],\n \"&\": [\"6^\", null, null, \"8*\", \"uU\", \"yY\"],\n \"'\": [\";:\", \"[{\", \"]}\", null, null, \"/?\"],\n \"(\": [\"8*\", null, null, \"0)\", \"oO\", \"iI\"],\n \")\": [\"9(\", null, null, \"-_\", \"pP\", \"oO\"],\n \"*\": [\"7&\", null, null, \"9(\", \"iI\", \"uU\"],\n \"+\": [\"-_\", null, null, null, \"]}\", \"[{\"],\n \",\": [\"mM\", \"kK\", \"lL\", \".>\", null, null],\n \"-\": [\"0)\", null, null, \"=+\", \"[{\", \"pP\"],\n \".\": [\",<\", \"lL\", \";:\", \"/?\", null, null],\n \"/\": [\".>\", \";:\", \"'\\\"\", null, null, null],\n \"0\": [\"9(\", null, null, \"-_\", \"pP\", \"oO\"],\n \"1\": [\"`~\", null, null, \"2@\", \"qQ\", null],\n \"2\": [\"1!\", null, null, \"3#\", \"wW\", \"qQ\"],\n \"3\": [\"2@\", null, null, \"4$\", \"eE\", \"wW\"],\n \"4\": [\"3#\", null, null, \"5%\", \"rR\", \"eE\"],\n \"5\": [\"4$\", null, null, \"6^\", \"tT\", \"rR\"],\n \"6\": [\"5%\", null, null, \"7&\", \"yY\", \"tT\"],\n \"7\": [\"6^\", null, null, \"8*\", \"uU\", \"yY\"],\n \"8\": [\"7&\", null, null, \"9(\", \"iI\", \"uU\"],\n \"9\": [\"8*\", null, null, \"0)\", \"oO\", \"iI\"],\n \":\": [\"lL\", \"pP\", \"[{\", \"'\\\"\", \"/?\", \".>\"],\n \";\": [\"lL\", \"pP\", \"[{\", \"'\\\"\", \"/?\", \".>\"],\n \"<\": [\"mM\", \"kK\", \"lL\", \".>\", null, null],\n \"=\": [\"-_\", null, null, null, \"]}\", \"[{\"],\n \">\": [\",<\", \"lL\", \";:\", \"/?\", null, null],\n \"?\": [\".>\", \";:\", \"'\\\"\", null, null, null],\n \"@\": [\"1!\", null, null, \"3#\", \"wW\", \"qQ\"],\n \"A\": [null, \"qQ\", \"wW\", \"sS\", \"zZ\", null],\n \"B\": [\"vV\", \"gG\", \"hH\", \"nN\", null, null],\n \"C\": [\"xX\", \"dD\", \"fF\", \"vV\", null, null],\n \"D\": [\"sS\", \"eE\", \"rR\", \"fF\", \"cC\", \"xX\"],\n \"E\": [\"wW\", \"3#\", \"4$\", \"rR\", \"dD\", \"sS\"],\n \"F\": [\"dD\", \"rR\", \"tT\", \"gG\", \"vV\", \"cC\"],\n \"G\": [\"fF\", \"tT\", \"yY\", \"hH\", \"bB\", \"vV\"],\n \"H\": [\"gG\", \"yY\", \"uU\", \"jJ\", \"nN\", \"bB\"],\n \"I\": [\"uU\", \"8*\", \"9(\", \"oO\", \"kK\", \"jJ\"],\n \"J\": [\"hH\", \"uU\", \"iI\", \"kK\", \"mM\", \"nN\"],\n \"K\": [\"jJ\", \"iI\", \"oO\", \"lL\", \",<\", \"mM\"],\n \"L\": [\"kK\", \"oO\", \"pP\", \";:\", \".>\", \",<\"],\n \"M\": [\"nN\", \"jJ\", \"kK\", \",<\", null, null],\n \"N\": [\"bB\", \"hH\", \"jJ\", \"mM\", null, null],\n \"O\": [\"iI\", \"9(\", \"0)\", \"pP\", \"lL\", \"kK\"],\n \"P\": [\"oO\", \"0)\", \"-_\", \"[{\", \";:\", \"lL\"],\n \"Q\": [null, \"1!\", \"2@\", \"wW\", \"aA\", null],\n \"R\": [\"eE\", \"4$\", \"5%\", \"tT\", \"fF\", \"dD\"],\n \"S\": [\"aA\", \"wW\", \"eE\", \"dD\", \"xX\", \"zZ\"],\n \"T\": [\"rR\", \"5%\", \"6^\", \"yY\", \"gG\", \"fF\"],\n \"U\": [\"yY\", \"7&\", \"8*\", \"iI\", \"jJ\", \"hH\"],\n \"V\": [\"cC\", \"fF\", \"gG\", \"bB\", null, null],\n \"W\": [\"qQ\", \"2@\", \"3#\", \"eE\", \"sS\", \"aA\"],\n \"X\": [\"zZ\", \"sS\", \"dD\", \"cC\", null, null],\n \"Y\": [\"tT\", \"6^\", \"7&\", \"uU\", \"hH\", \"gG\"],\n \"Z\": [null, \"aA\", \"sS\", \"xX\", null, null],\n \"[\": [\"pP\", \"-_\", \"=+\", \"]}\", \"'\\\"\", \";:\"],\n \"\\\\\": [\"]}\", null, null, null, null, null],\n \"]\": [\"[{\", \"=+\", null, \"\\\\|\", null, \"'\\\"\"],\n \"^\": [\"5%\", null, null, \"7&\", \"yY\", \"tT\"],\n \"_\": [\"0)\", null, null, \"=+\", \"[{\", \"pP\"],\n \"`\": [null, null, null, \"1!\", null, null],\n \"a\": [null, \"qQ\", \"wW\", \"sS\", \"zZ\", null],\n \"b\": [\"vV\", \"gG\", \"hH\", \"nN\", null, null],\n \"c\": [\"xX\", \"dD\", \"fF\", \"vV\", null, null],\n \"d\": [\"sS\", \"eE\", \"rR\", \"fF\", \"cC\", \"xX\"],\n \"e\": [\"wW\", \"3#\", \"4$\", \"rR\", \"dD\", \"sS\"],\n \"f\": [\"dD\", \"rR\", \"tT\", \"gG\", \"vV\", \"cC\"],\n \"g\": [\"fF\", \"tT\", \"yY\", \"hH\", \"bB\", \"vV\"],\n \"h\": [\"gG\", \"yY\", \"uU\", \"jJ\", \"nN\", \"bB\"],\n \"i\": [\"uU\", \"8*\", \"9(\", \"oO\", \"kK\", \"jJ\"],\n \"j\": [\"hH\", \"uU\", \"iI\", \"kK\", \"mM\", \"nN\"],\n \"k\": [\"jJ\", \"iI\", \"oO\", \"lL\", \",<\", \"mM\"],\n \"l\": [\"kK\", \"oO\", \"pP\", \";:\", \".>\", \",<\"],\n \"m\": [\"nN\", \"jJ\", \"kK\", \",<\", null, null],\n \"n\": [\"bB\", \"hH\", \"jJ\", \"mM\", null, null],\n \"o\": [\"iI\", \"9(\", \"0)\", \"pP\", \"lL\", \"kK\"],\n \"p\": [\"oO\", \"0)\", \"-_\", \"[{\", \";:\", \"lL\"],\n \"q\": [null, \"1!\", \"2@\", \"wW\", \"aA\", null],\n \"r\": [\"eE\", \"4$\", \"5%\", \"tT\", \"fF\", \"dD\"],\n \"s\": [\"aA\", \"wW\", \"eE\", \"dD\", \"xX\", \"zZ\"],\n \"t\": [\"rR\", \"5%\", \"6^\", \"yY\", \"gG\", \"fF\"],\n \"u\": [\"yY\", \"7&\", \"8*\", \"iI\", \"jJ\", \"hH\"],\n \"v\": [\"cC\", \"fF\", \"gG\", \"bB\", null, null],\n \"w\": [\"qQ\", \"2@\", \"3#\", \"eE\", \"sS\", \"aA\"],\n \"x\": [\"zZ\", \"sS\", \"dD\", \"cC\", null, null],\n \"y\": [\"tT\", \"6^\", \"7&\", \"uU\", \"hH\", \"gG\"],\n \"z\": [null, \"aA\", \"sS\", \"xX\", null, null],\n \"{\": [\"pP\", \"-_\", \"=+\", \"]}\", \"'\\\"\", \";:\"],\n \"|\": [\"]}\", null, null, null, null, null],\n \"}\": [\"[{\", \"=+\", null, \"\\\\|\", null, \"'\\\"\"],\n \"~\": [null, null, null, \"1!\", null, null]\n },\n dvorak: {\n \"!\": [\"`~\", null, null, \"2@\", \"'\\\"\", null],\n \"\\\"\": [null, \"1!\", \"2@\", \",<\", \"aA\", null],\n \"#\": [\"2@\", null, null, \"4$\", \".>\", \",<\"],\n \"$\": [\"3#\", null, null, \"5%\", \"pP\", \".>\"],\n \"%\": [\"4$\", null, null, \"6^\", \"yY\", \"pP\"],\n \"&\": [\"6^\", null, null, \"8*\", \"gG\", \"fF\"],\n \"'\": [null, \"1!\", \"2@\", \",<\", \"aA\", null],\n \"(\": [\"8*\", null, null, \"0)\", \"rR\", \"cC\"],\n \")\": [\"9(\", null, null, \"[{\", \"lL\", \"rR\"],\n \"*\": [\"7&\", null, null, \"9(\", \"cC\", \"gG\"],\n \"+\": [\"/?\", \"]}\", null, \"\\\\|\", null, \"-_\"],\n \",\": [\"'\\\"\", \"2@\", \"3#\", \".>\", \"oO\", \"aA\"],\n \"-\": [\"sS\", \"/?\", \"=+\", null, null, \"zZ\"],\n \".\": [\",<\", \"3#\", \"4$\", \"pP\", \"eE\", \"oO\"],\n \"/\": [\"lL\", \"[{\", \"]}\", \"=+\", \"-_\", \"sS\"],\n \"0\": [\"9(\", null, null, \"[{\", \"lL\", \"rR\"],\n \"1\": [\"`~\", null, null, \"2@\", \"'\\\"\", null],\n \"2\": [\"1!\", null, null, \"3#\", \",<\", \"'\\\"\"],\n \"3\": [\"2@\", null, null, \"4$\", \".>\", \",<\"],\n \"4\": [\"3#\", null, null, \"5%\", \"pP\", \".>\"],\n \"5\": [\"4$\", null, null, \"6^\", \"yY\", \"pP\"],\n \"6\": [\"5%\", null, null, \"7&\", \"fF\", \"yY\"],\n \"7\": [\"6^\", null, null, \"8*\", \"gG\", \"fF\"],\n \"8\": [\"7&\", null, null, \"9(\", \"cC\", \"gG\"],\n \"9\": [\"8*\", null, null, \"0)\", \"rR\", \"cC\"],\n \":\": [null, \"aA\", \"oO\", \"qQ\", null, null],\n \";\": [null, \"aA\", \"oO\", \"qQ\", null, null],\n \"<\": [\"'\\\"\", \"2@\", \"3#\", \".>\", \"oO\", \"aA\"],\n \"=\": [\"/?\", \"]}\", null, \"\\\\|\", null, \"-_\"],\n \">\": [\",<\", \"3#\", \"4$\", \"pP\", \"eE\", \"oO\"],\n \"?\": [\"lL\", \"[{\", \"]}\", \"=+\", \"-_\", \"sS\"],\n \"@\": [\"1!\", null, null, \"3#\", \",<\", \"'\\\"\"],\n \"A\": [null, \"'\\\"\", \",<\", \"oO\", \";:\", null],\n \"B\": [\"xX\", \"dD\", \"hH\", \"mM\", null, null],\n \"C\": [\"gG\", \"8*\", \"9(\", \"rR\", \"tT\", \"hH\"],\n \"D\": [\"iI\", \"fF\", \"gG\", \"hH\", \"bB\", \"xX\"],\n \"E\": [\"oO\", \".>\", \"pP\", \"uU\", \"jJ\", \"qQ\"],\n \"F\": [\"yY\", \"6^\", \"7&\", \"gG\", \"dD\", \"iI\"],\n \"G\": [\"fF\", \"7&\", \"8*\", \"cC\", \"hH\", \"dD\"],\n \"H\": [\"dD\", \"gG\", \"cC\", \"tT\", \"mM\", \"bB\"],\n \"I\": [\"uU\", \"yY\", \"fF\", \"dD\", \"xX\", \"kK\"],\n \"J\": [\"qQ\", \"eE\", \"uU\", \"kK\", null, null],\n \"K\": [\"jJ\", \"uU\", \"iI\", \"xX\", null, null],\n \"L\": [\"rR\", \"0)\", \"[{\", \"/?\", \"sS\", \"nN\"],\n \"M\": [\"bB\", \"hH\", \"tT\", \"wW\", null, null],\n \"N\": [\"tT\", \"rR\", \"lL\", \"sS\", \"vV\", \"wW\"],\n \"O\": [\"aA\", \",<\", \".>\", \"eE\", \"qQ\", \";:\"],\n \"P\": [\".>\", \"4$\", \"5%\", \"yY\", \"uU\", \"eE\"],\n \"Q\": [\";:\", \"oO\", \"eE\", \"jJ\", null, null],\n \"R\": [\"cC\", \"9(\", \"0)\", \"lL\", \"nN\", \"tT\"],\n \"S\": [\"nN\", \"lL\", \"/?\", \"-_\", \"zZ\", \"vV\"],\n \"T\": [\"hH\", \"cC\", \"rR\", \"nN\", \"wW\", \"mM\"],\n \"U\": [\"eE\", \"pP\", \"yY\", \"iI\", \"kK\", \"jJ\"],\n \"V\": [\"wW\", \"nN\", \"sS\", \"zZ\", null, null],\n \"W\": [\"mM\", \"tT\", \"nN\", \"vV\", null, null],\n \"X\": [\"kK\", \"iI\", \"dD\", \"bB\", null, null],\n \"Y\": [\"pP\", \"5%\", \"6^\", \"fF\", \"iI\", \"uU\"],\n \"Z\": [\"vV\", \"sS\", \"-_\", null, null, null],\n \"[\": [\"0)\", null, null, \"]}\", \"/?\", \"lL\"],\n \"\\\\\": [\"=+\", null, null, null, null, null],\n \"]\": [\"[{\", null, null, null, \"=+\", \"/?\"],\n \"^\": [\"5%\", null, null, \"7&\", \"fF\", \"yY\"],\n \"_\": [\"sS\", \"/?\", \"=+\", null, null, \"zZ\"],\n \"`\": [null, null, null, \"1!\", null, null],\n \"a\": [null, \"'\\\"\", \",<\", \"oO\", \";:\", null],\n \"b\": [\"xX\", \"dD\", \"hH\", \"mM\", null, null],\n \"c\": [\"gG\", \"8*\", \"9(\", \"rR\", \"tT\", \"hH\"],\n \"d\": [\"iI\", \"fF\", \"gG\", \"hH\", \"bB\", \"xX\"],\n \"e\": [\"oO\", \".>\", \"pP\", \"uU\", \"jJ\", \"qQ\"],\n \"f\": [\"yY\", \"6^\", \"7&\", \"gG\", \"dD\", \"iI\"],\n \"g\": [\"fF\", \"7&\", \"8*\", \"cC\", \"hH\", \"dD\"],\n \"h\": [\"dD\", \"gG\", \"cC\", \"tT\", \"mM\", \"bB\"],\n \"i\": [\"uU\", \"yY\", \"fF\", \"dD\", \"xX\", \"kK\"],\n \"j\": [\"qQ\", \"eE\", \"uU\", \"kK\", null, null],\n \"k\": [\"jJ\", \"uU\", \"iI\", \"xX\", null, null],\n \"l\": [\"rR\", \"0)\", \"[{\", \"/?\", \"sS\", \"nN\"],\n \"m\": [\"bB\", \"hH\", \"tT\", \"wW\", null, null],\n \"n\": [\"tT\", \"rR\", \"lL\", \"sS\", \"vV\", \"wW\"],\n \"o\": [\"aA\", \",<\", \".>\", \"eE\", \"qQ\", \";:\"],\n \"p\": [\".>\", \"4$\", \"5%\", \"yY\", \"uU\", \"eE\"],\n \"q\": [\";:\", \"oO\", \"eE\", \"jJ\", null, null],\n \"r\": [\"cC\", \"9(\", \"0)\", \"lL\", \"nN\", \"tT\"],\n \"s\": [\"nN\", \"lL\", \"/?\", \"-_\", \"zZ\", \"vV\"],\n \"t\": [\"hH\", \"cC\", \"rR\", \"nN\", \"wW\", \"mM\"],\n \"u\": [\"eE\", \"pP\", \"yY\", \"iI\", \"kK\", \"jJ\"],\n \"v\": [\"wW\", \"nN\", \"sS\", \"zZ\", null, null],\n \"w\": [\"mM\", \"tT\", \"nN\", \"vV\", null, null],\n \"x\": [\"kK\", \"iI\", \"dD\", \"bB\", null, null],\n \"y\": [\"pP\", \"5%\", \"6^\", \"fF\", \"iI\", \"uU\"],\n \"z\": [\"vV\", \"sS\", \"-_\", null, null, null],\n \"{\": [\"0)\", null, null, \"]}\", \"/?\", \"lL\"],\n \"|\": [\"=+\", null, null, null, null, null],\n \"}\": [\"[{\", null, null, null, \"=+\", \"/?\"],\n \"~\": [null, null, null, \"1!\", null, null]\n },\n keypad: {\n \"*\": [\"/\", null, null, null, \"-\", \"+\", \"9\", \"8\"],\n \"+\": [\"9\", \"*\", \"-\", null, null, null, null, \"6\"],\n \"-\": [\"*\", null, null, null, null, null, \"+\", \"9\"],\n \".\": [\"0\", \"2\", \"3\", null, null, null, null, null],\n \"/\": [null, null, null, null, \"*\", \"9\", \"8\", \"7\"],\n \"0\": [null, \"1\", \"2\", \"3\", \".\", null, null, null],\n \"1\": [null, null, \"4\", \"5\", \"2\", \"0\", null, null],\n \"2\": [\"1\", \"4\", \"5\", \"6\", \"3\", \".\", \"0\", null],\n \"3\": [\"2\", \"5\", \"6\", null, null, null, \".\", \"0\"],\n \"4\": [null, null, \"7\", \"8\", \"5\", \"2\", \"1\", null],\n \"5\": [\"4\", \"7\", \"8\", \"9\", \"6\", \"3\", \"2\", \"1\"],\n \"6\": [\"5\", \"8\", \"9\", \"+\", null, null, \"3\", \"2\"],\n \"7\": [null, null, null, \"/\", \"8\", \"5\", \"4\", null],\n \"8\": [\"7\", null, \"/\", \"*\", \"9\", \"6\", \"5\", \"4\"],\n \"9\": [\"8\", \"/\", \"*\", \"-\", \"+\", null, \"6\", \"5\"]\n },\n mac_keypad: {\n \"*\": [\"/\", null, null, null, null, null, \"-\", \"9\"],\n \"+\": [\"6\", \"9\", \"-\", null, null, null, null, \"3\"],\n \"-\": [\"9\", \"/\", \"*\", null, null, null, \"+\", \"6\"],\n \".\": [\"0\", \"2\", \"3\", null, null, null, null, null],\n \"/\": [\"=\", null, null, null, \"*\", \"-\", \"9\", \"8\"],\n \"0\": [null, \"1\", \"2\", \"3\", \".\", null, null, null],\n \"1\": [null, null, \"4\", \"5\", \"2\", \"0\", null, null],\n \"2\": [\"1\", \"4\", \"5\", \"6\", \"3\", \".\", \"0\", null],\n \"3\": [\"2\", \"5\", \"6\", \"+\", null, null, \".\", \"0\"],\n \"4\": [null, null, \"7\", \"8\", \"5\", \"2\", \"1\", null],\n \"5\": [\"4\", \"7\", \"8\", \"9\", \"6\", \"3\", \"2\", \"1\"],\n \"6\": [\"5\", \"8\", \"9\", \"-\", \"+\", null, \"3\", \"2\"],\n \"7\": [null, null, null, \"=\", \"8\", \"5\", \"4\", null],\n \"8\": [\"7\", null, \"=\", \"/\", \"9\", \"6\", \"5\", \"4\"],\n \"9\": [\"8\", \"=\", \"/\", \"*\", \"-\", \"+\", \"6\", \"5\"],\n \"=\": [null, null, null, null, \"/\", \"9\", \"8\", \"7\"]\n }\n};\nmodule.exports = adjacency_graphs;","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nlet logDisabled_ = true;\nlet deprecationWarnings_ = true;\n\n/**\n * Extract browser version out of the provided user agent string.\n *\n * @param {!string} uastring userAgent string.\n * @param {!string} expr Regular expression used as match criteria.\n * @param {!number} pos position in the version string to be returned.\n * @return {!number} browser version.\n */\nexport function extractVersion(uastring, expr, pos) {\n const match = uastring.match(expr);\n return match && match.length >= pos && parseInt(match[pos], 10);\n}\n\n// Wraps the peerconnection event eventNameToWrap in a function\n// which returns the modified event object (or false to prevent\n// the event).\nexport function wrapPeerConnectionEvent(window, eventNameToWrap, wrapper) {\n if (!window.RTCPeerConnection) {\n return;\n }\n const proto = window.RTCPeerConnection.prototype;\n const nativeAddEventListener = proto.addEventListener;\n proto.addEventListener = function (nativeEventName, cb) {\n if (nativeEventName !== eventNameToWrap) {\n return nativeAddEventListener.apply(this, arguments);\n }\n const wrappedCallback = e => {\n const modifiedEvent = wrapper(e);\n if (modifiedEvent) {\n if (cb.handleEvent) {\n cb.handleEvent(modifiedEvent);\n } else {\n cb(modifiedEvent);\n }\n }\n };\n this._eventMap = this._eventMap || {};\n if (!this._eventMap[eventNameToWrap]) {\n this._eventMap[eventNameToWrap] = new Map();\n }\n this._eventMap[eventNameToWrap].set(cb, wrappedCallback);\n return nativeAddEventListener.apply(this, [nativeEventName, wrappedCallback]);\n };\n const nativeRemoveEventListener = proto.removeEventListener;\n proto.removeEventListener = function (nativeEventName, cb) {\n if (nativeEventName !== eventNameToWrap || !this._eventMap || !this._eventMap[eventNameToWrap]) {\n return nativeRemoveEventListener.apply(this, arguments);\n }\n if (!this._eventMap[eventNameToWrap].has(cb)) {\n return nativeRemoveEventListener.apply(this, arguments);\n }\n const unwrappedCb = this._eventMap[eventNameToWrap].get(cb);\n this._eventMap[eventNameToWrap].delete(cb);\n if (this._eventMap[eventNameToWrap].size === 0) {\n delete this._eventMap[eventNameToWrap];\n }\n if (Object.keys(this._eventMap).length === 0) {\n delete this._eventMap;\n }\n return nativeRemoveEventListener.apply(this, [nativeEventName, unwrappedCb]);\n };\n Object.defineProperty(proto, 'on' + eventNameToWrap, {\n get() {\n return this['_on' + eventNameToWrap];\n },\n set(cb) {\n if (this['_on' + eventNameToWrap]) {\n this.removeEventListener(eventNameToWrap, this['_on' + eventNameToWrap]);\n delete this['_on' + eventNameToWrap];\n }\n if (cb) {\n this.addEventListener(eventNameToWrap, this['_on' + eventNameToWrap] = cb);\n }\n },\n enumerable: true,\n configurable: true\n });\n}\nexport function disableLog(bool) {\n if (typeof bool !== 'boolean') {\n return new Error('Argument type: ' + typeof bool + '. Please use a boolean.');\n }\n logDisabled_ = bool;\n return bool ? 'adapter.js logging disabled' : 'adapter.js logging enabled';\n}\n\n/**\n * Disable or enable deprecation warnings\n * @param {!boolean} bool set to true to disable warnings.\n */\nexport function disableWarnings(bool) {\n if (typeof bool !== 'boolean') {\n return new Error('Argument type: ' + typeof bool + '. Please use a boolean.');\n }\n deprecationWarnings_ = !bool;\n return 'adapter.js deprecation warnings ' + (bool ? 'disabled' : 'enabled');\n}\nexport function log() {\n if (typeof window === 'object') {\n if (logDisabled_) {\n return;\n }\n if (typeof console !== 'undefined' && typeof console.log === 'function') {\n console.log.apply(console, arguments);\n }\n }\n}\n\n/**\n * Shows a deprecation warning suggesting the modern and spec-compatible API.\n */\nexport function deprecated(oldMethod, newMethod) {\n if (!deprecationWarnings_) {\n return;\n }\n console.warn(oldMethod + ' is deprecated, please use ' + newMethod + ' instead.');\n}\n\n/**\n * Browser detector.\n *\n * @return {object} result containing browser and version\n * properties.\n */\nexport function detectBrowser(window) {\n // Returned result object.\n const result = {\n browser: null,\n version: null\n };\n\n // Fail early if it's not a browser\n if (typeof window === 'undefined' || !window.navigator || !window.navigator.userAgent) {\n result.browser = 'Not a browser.';\n return result;\n }\n const navigator = window.navigator;\n if (navigator.mozGetUserMedia) {\n // Firefox.\n result.browser = 'firefox';\n result.version = extractVersion(navigator.userAgent, /Firefox\\/(\\d+)\\./, 1);\n } else if (navigator.webkitGetUserMedia || window.isSecureContext === false && window.webkitRTCPeerConnection) {\n // Chrome, Chromium, Webview, Opera.\n // Version matches Chrome/WebRTC version.\n // Chrome 74 removed webkitGetUserMedia on http as well so we need the\n // more complicated fallback to webkitRTCPeerConnection.\n result.browser = 'chrome';\n result.version = extractVersion(navigator.userAgent, /Chrom(e|ium)\\/(\\d+)\\./, 2);\n } else if (window.RTCPeerConnection && navigator.userAgent.match(/AppleWebKit\\/(\\d+)\\./)) {\n // Safari.\n result.browser = 'safari';\n result.version = extractVersion(navigator.userAgent, /AppleWebKit\\/(\\d+)\\./, 1);\n result.supportsUnifiedPlan = window.RTCRtpTransceiver && 'currentDirection' in window.RTCRtpTransceiver.prototype;\n } else {\n // Default fallthrough: not supported.\n result.browser = 'Not a supported browser.';\n return result;\n }\n return result;\n}\n\n/**\n * Checks if something is an object.\n *\n * @param {*} val The something you want to check.\n * @return true if val is an object, false otherwise.\n */\nfunction isObject(val) {\n return Object.prototype.toString.call(val) === '[object Object]';\n}\n\n/**\n * Remove all empty objects and undefined values\n * from a nested object -- an enhanced and vanilla version\n * of Lodash's `compact`.\n */\nexport function compactObject(data) {\n if (!isObject(data)) {\n return data;\n }\n return Object.keys(data).reduce(function (accumulator, key) {\n const isObj = isObject(data[key]);\n const value = isObj ? compactObject(data[key]) : data[key];\n const isEmptyObject = isObj && !Object.keys(value).length;\n if (value === undefined || isEmptyObject) {\n return accumulator;\n }\n return Object.assign(accumulator, {\n [key]: value\n });\n }, {});\n}\n\n/* iterates the stats graph recursively. */\nexport function walkStats(stats, base, resultSet) {\n if (!base || resultSet.has(base.id)) {\n return;\n }\n resultSet.set(base.id, base);\n Object.keys(base).forEach(name => {\n if (name.endsWith('Id')) {\n walkStats(stats, stats.get(base[name]), resultSet);\n } else if (name.endsWith('Ids')) {\n base[name].forEach(id => {\n walkStats(stats, stats.get(id), resultSet);\n });\n }\n });\n}\n\n/* filter getStats for a sender/receiver track. */\nexport function filterStats(result, track, outbound) {\n const streamStatsType = outbound ? 'outbound-rtp' : 'inbound-rtp';\n const filteredResult = new Map();\n if (track === null) {\n return filteredResult;\n }\n const trackStats = [];\n result.forEach(value => {\n if (value.type === 'track' && value.trackIdentifier === track.id) {\n trackStats.push(value);\n }\n });\n trackStats.forEach(trackStat => {\n result.forEach(stats => {\n if (stats.type === streamStatsType && stats.trackId === trackStat.id) {\n walkStats(result, stats, filteredResult);\n }\n });\n });\n return filteredResult;\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nimport * as utils from '../utils.js';\nconst logging = utils.log;\nexport function shimGetUserMedia(window, browserDetails) {\n const navigator = window && window.navigator;\n if (!navigator.mediaDevices) {\n return;\n }\n const constraintsToChrome_ = function (c) {\n if (typeof c !== 'object' || c.mandatory || c.optional) {\n return c;\n }\n const cc = {};\n Object.keys(c).forEach(key => {\n if (key === 'require' || key === 'advanced' || key === 'mediaSource') {\n return;\n }\n const r = typeof c[key] === 'object' ? c[key] : {\n ideal: c[key]\n };\n if (r.exact !== undefined && typeof r.exact === 'number') {\n r.min = r.max = r.exact;\n }\n const oldname_ = function (prefix, name) {\n if (prefix) {\n return prefix + name.charAt(0).toUpperCase() + name.slice(1);\n }\n return name === 'deviceId' ? 'sourceId' : name;\n };\n if (r.ideal !== undefined) {\n cc.optional = cc.optional || [];\n let oc = {};\n if (typeof r.ideal === 'number') {\n oc[oldname_('min', key)] = r.ideal;\n cc.optional.push(oc);\n oc = {};\n oc[oldname_('max', key)] = r.ideal;\n cc.optional.push(oc);\n } else {\n oc[oldname_('', key)] = r.ideal;\n cc.optional.push(oc);\n }\n }\n if (r.exact !== undefined && typeof r.exact !== 'number') {\n cc.mandatory = cc.mandatory || {};\n cc.mandatory[oldname_('', key)] = r.exact;\n } else {\n ['min', 'max'].forEach(mix => {\n if (r[mix] !== undefined) {\n cc.mandatory = cc.mandatory || {};\n cc.mandatory[oldname_(mix, key)] = r[mix];\n }\n });\n }\n });\n if (c.advanced) {\n cc.optional = (cc.optional || []).concat(c.advanced);\n }\n return cc;\n };\n const shimConstraints_ = function (constraints, func) {\n if (browserDetails.version >= 61) {\n return func(constraints);\n }\n constraints = JSON.parse(JSON.stringify(constraints));\n if (constraints && typeof constraints.audio === 'object') {\n const remap = function (obj, a, b) {\n if (a in obj && !(b in obj)) {\n obj[b] = obj[a];\n delete obj[a];\n }\n };\n constraints = JSON.parse(JSON.stringify(constraints));\n remap(constraints.audio, 'autoGainControl', 'googAutoGainControl');\n remap(constraints.audio, 'noiseSuppression', 'googNoiseSuppression');\n constraints.audio = constraintsToChrome_(constraints.audio);\n }\n if (constraints && typeof constraints.video === 'object') {\n // Shim facingMode for mobile & surface pro.\n let face = constraints.video.facingMode;\n face = face && (typeof face === 'object' ? face : {\n ideal: face\n });\n const getSupportedFacingModeLies = browserDetails.version < 66;\n if (face && (face.exact === 'user' || face.exact === 'environment' || face.ideal === 'user' || face.ideal === 'environment') && !(navigator.mediaDevices.getSupportedConstraints && navigator.mediaDevices.getSupportedConstraints().facingMode && !getSupportedFacingModeLies)) {\n delete constraints.video.facingMode;\n let matches;\n if (face.exact === 'environment' || face.ideal === 'environment') {\n matches = ['back', 'rear'];\n } else if (face.exact === 'user' || face.ideal === 'user') {\n matches = ['front'];\n }\n if (matches) {\n // Look for matches in label, or use last cam for back (typical).\n return navigator.mediaDevices.enumerateDevices().then(devices => {\n devices = devices.filter(d => d.kind === 'videoinput');\n let dev = devices.find(d => matches.some(match => d.label.toLowerCase().includes(match)));\n if (!dev && devices.length && matches.includes('back')) {\n dev = devices[devices.length - 1]; // more likely the back cam\n }\n\n if (dev) {\n constraints.video.deviceId = face.exact ? {\n exact: dev.deviceId\n } : {\n ideal: dev.deviceId\n };\n }\n constraints.video = constraintsToChrome_(constraints.video);\n logging('chrome: ' + JSON.stringify(constraints));\n return func(constraints);\n });\n }\n }\n constraints.video = constraintsToChrome_(constraints.video);\n }\n logging('chrome: ' + JSON.stringify(constraints));\n return func(constraints);\n };\n const shimError_ = function (e) {\n if (browserDetails.version >= 64) {\n return e;\n }\n return {\n name: {\n PermissionDeniedError: 'NotAllowedError',\n PermissionDismissedError: 'NotAllowedError',\n InvalidStateError: 'NotAllowedError',\n DevicesNotFoundError: 'NotFoundError',\n ConstraintNotSatisfiedError: 'OverconstrainedError',\n TrackStartError: 'NotReadableError',\n MediaDeviceFailedDueToShutdown: 'NotAllowedError',\n MediaDeviceKillSwitchOn: 'NotAllowedError',\n TabCaptureError: 'AbortError',\n ScreenCaptureError: 'AbortError',\n DeviceCaptureError: 'AbortError'\n }[e.name] || e.name,\n message: e.message,\n constraint: e.constraint || e.constraintName,\n toString() {\n return this.name + (this.message && ': ') + this.message;\n }\n };\n };\n const getUserMedia_ = function (constraints, onSuccess, onError) {\n shimConstraints_(constraints, c => {\n navigator.webkitGetUserMedia(c, onSuccess, e => {\n if (onError) {\n onError(shimError_(e));\n }\n });\n });\n };\n navigator.getUserMedia = getUserMedia_.bind(navigator);\n\n // Even though Chrome 45 has navigator.mediaDevices and a getUserMedia\n // function which returns a Promise, it does not accept spec-style\n // constraints.\n if (navigator.mediaDevices.getUserMedia) {\n const origGetUserMedia = navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);\n navigator.mediaDevices.getUserMedia = function (cs) {\n return shimConstraints_(cs, c => origGetUserMedia(c).then(stream => {\n if (c.audio && !stream.getAudioTracks().length || c.video && !stream.getVideoTracks().length) {\n stream.getTracks().forEach(track => {\n track.stop();\n });\n throw new DOMException('', 'NotFoundError');\n }\n return stream;\n }, e => Promise.reject(shimError_(e))));\n };\n }\n}","/*\n * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nexport function shimGetDisplayMedia(window, getSourceId) {\n if (window.navigator.mediaDevices && 'getDisplayMedia' in window.navigator.mediaDevices) {\n return;\n }\n if (!window.navigator.mediaDevices) {\n return;\n }\n // getSourceId is a function that returns a promise resolving with\n // the sourceId of the screen/window/tab to be shared.\n if (typeof getSourceId !== 'function') {\n console.error('shimGetDisplayMedia: getSourceId argument is not ' + 'a function');\n return;\n }\n window.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {\n return getSourceId(constraints).then(sourceId => {\n const widthSpecified = constraints.video && constraints.video.width;\n const heightSpecified = constraints.video && constraints.video.height;\n const frameRateSpecified = constraints.video && constraints.video.frameRate;\n constraints.video = {\n mandatory: {\n chromeMediaSource: 'desktop',\n chromeMediaSourceId: sourceId,\n maxFrameRate: frameRateSpecified || 3\n }\n };\n if (widthSpecified) {\n constraints.video.mandatory.maxWidth = widthSpecified;\n }\n if (heightSpecified) {\n constraints.video.mandatory.maxHeight = heightSpecified;\n }\n return window.navigator.mediaDevices.getUserMedia(constraints);\n });\n };\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nimport * as utils from '../utils.js';\nexport { shimGetUserMedia } from './getusermedia';\nexport { shimGetDisplayMedia } from './getdisplaymedia';\nexport function shimMediaStream(window) {\n window.MediaStream = window.MediaStream || window.webkitMediaStream;\n}\nexport function shimOnTrack(window) {\n if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in window.RTCPeerConnection.prototype)) {\n Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', {\n get() {\n return this._ontrack;\n },\n set(f) {\n if (this._ontrack) {\n this.removeEventListener('track', this._ontrack);\n }\n this.addEventListener('track', this._ontrack = f);\n },\n enumerable: true,\n configurable: true\n });\n const origSetRemoteDescription = window.RTCPeerConnection.prototype.setRemoteDescription;\n window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {\n if (!this._ontrackpoly) {\n this._ontrackpoly = e => {\n // onaddstream does not fire when a track is added to an existing\n // stream. But stream.onaddtrack is implemented so we use that.\n e.stream.addEventListener('addtrack', te => {\n let receiver;\n if (window.RTCPeerConnection.prototype.getReceivers) {\n receiver = this.getReceivers().find(r => r.track && r.track.id === te.track.id);\n } else {\n receiver = {\n track: te.track\n };\n }\n const event = new Event('track');\n event.track = te.track;\n event.receiver = receiver;\n event.transceiver = {\n receiver\n };\n event.streams = [e.stream];\n this.dispatchEvent(event);\n });\n e.stream.getTracks().forEach(track => {\n let receiver;\n if (window.RTCPeerConnection.prototype.getReceivers) {\n receiver = this.getReceivers().find(r => r.track && r.track.id === track.id);\n } else {\n receiver = {\n track\n };\n }\n const event = new Event('track');\n event.track = track;\n event.receiver = receiver;\n event.transceiver = {\n receiver\n };\n event.streams = [e.stream];\n this.dispatchEvent(event);\n });\n };\n this.addEventListener('addstream', this._ontrackpoly);\n }\n return origSetRemoteDescription.apply(this, arguments);\n };\n } else {\n // even if RTCRtpTransceiver is in window, it is only used and\n // emitted in unified-plan. Unfortunately this means we need\n // to unconditionally wrap the event.\n utils.wrapPeerConnectionEvent(window, 'track', e => {\n if (!e.transceiver) {\n Object.defineProperty(e, 'transceiver', {\n value: {\n receiver: e.receiver\n }\n });\n }\n return e;\n });\n }\n}\nexport function shimGetSendersWithDtmf(window) {\n // Overrides addTrack/removeTrack, depends on shimAddTrackRemoveTrack.\n if (typeof window === 'object' && window.RTCPeerConnection && !('getSenders' in window.RTCPeerConnection.prototype) && 'createDTMFSender' in window.RTCPeerConnection.prototype) {\n const shimSenderWithDtmf = function (pc, track) {\n return {\n track,\n get dtmf() {\n if (this._dtmf === undefined) {\n if (track.kind === 'audio') {\n this._dtmf = pc.createDTMFSender(track);\n } else {\n this._dtmf = null;\n }\n }\n return this._dtmf;\n },\n _pc: pc\n };\n };\n\n // augment addTrack when getSenders is not available.\n if (!window.RTCPeerConnection.prototype.getSenders) {\n window.RTCPeerConnection.prototype.getSenders = function getSenders() {\n this._senders = this._senders || [];\n return this._senders.slice(); // return a copy of the internal state.\n };\n\n const origAddTrack = window.RTCPeerConnection.prototype.addTrack;\n window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) {\n let sender = origAddTrack.apply(this, arguments);\n if (!sender) {\n sender = shimSenderWithDtmf(this, track);\n this._senders.push(sender);\n }\n return sender;\n };\n const origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack;\n window.RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {\n origRemoveTrack.apply(this, arguments);\n const idx = this._senders.indexOf(sender);\n if (idx !== -1) {\n this._senders.splice(idx, 1);\n }\n };\n }\n const origAddStream = window.RTCPeerConnection.prototype.addStream;\n window.RTCPeerConnection.prototype.addStream = function addStream(stream) {\n this._senders = this._senders || [];\n origAddStream.apply(this, [stream]);\n stream.getTracks().forEach(track => {\n this._senders.push(shimSenderWithDtmf(this, track));\n });\n };\n const origRemoveStream = window.RTCPeerConnection.prototype.removeStream;\n window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {\n this._senders = this._senders || [];\n origRemoveStream.apply(this, [stream]);\n stream.getTracks().forEach(track => {\n const sender = this._senders.find(s => s.track === track);\n if (sender) {\n // remove sender\n this._senders.splice(this._senders.indexOf(sender), 1);\n }\n });\n };\n } else if (typeof window === 'object' && window.RTCPeerConnection && 'getSenders' in window.RTCPeerConnection.prototype && 'createDTMFSender' in window.RTCPeerConnection.prototype && window.RTCRtpSender && !('dtmf' in window.RTCRtpSender.prototype)) {\n const origGetSenders = window.RTCPeerConnection.prototype.getSenders;\n window.RTCPeerConnection.prototype.getSenders = function getSenders() {\n const senders = origGetSenders.apply(this, []);\n senders.forEach(sender => sender._pc = this);\n return senders;\n };\n Object.defineProperty(window.RTCRtpSender.prototype, 'dtmf', {\n get() {\n if (this._dtmf === undefined) {\n if (this.track.kind === 'audio') {\n this._dtmf = this._pc.createDTMFSender(this.track);\n } else {\n this._dtmf = null;\n }\n }\n return this._dtmf;\n }\n });\n }\n}\nexport function shimGetStats(window) {\n if (!window.RTCPeerConnection) {\n return;\n }\n const origGetStats = window.RTCPeerConnection.prototype.getStats;\n window.RTCPeerConnection.prototype.getStats = function getStats() {\n const _arguments = Array.prototype.slice.call(arguments),\n selector = _arguments[0],\n onSucc = _arguments[1],\n onErr = _arguments[2];\n\n // If selector is a function then we are in the old style stats so just\n // pass back the original getStats format to avoid breaking old users.\n if (arguments.length > 0 && typeof selector === 'function') {\n return origGetStats.apply(this, arguments);\n }\n\n // When spec-style getStats is supported, return those when called with\n // either no arguments or the selector argument is null.\n if (origGetStats.length === 0 && (arguments.length === 0 || typeof selector !== 'function')) {\n return origGetStats.apply(this, []);\n }\n const fixChromeStats_ = function (response) {\n const standardReport = {};\n const reports = response.result();\n reports.forEach(report => {\n const standardStats = {\n id: report.id,\n timestamp: report.timestamp,\n type: {\n localcandidate: 'local-candidate',\n remotecandidate: 'remote-candidate'\n }[report.type] || report.type\n };\n report.names().forEach(name => {\n standardStats[name] = report.stat(name);\n });\n standardReport[standardStats.id] = standardStats;\n });\n return standardReport;\n };\n\n // shim getStats with maplike support\n const makeMapStats = function (stats) {\n return new Map(Object.keys(stats).map(key => [key, stats[key]]));\n };\n if (arguments.length >= 2) {\n const successCallbackWrapper_ = function (response) {\n onSucc(makeMapStats(fixChromeStats_(response)));\n };\n return origGetStats.apply(this, [successCallbackWrapper_, selector]);\n }\n\n // promise-support\n return new Promise((resolve, reject) => {\n origGetStats.apply(this, [function (response) {\n resolve(makeMapStats(fixChromeStats_(response)));\n }, reject]);\n }).then(onSucc, onErr);\n };\n}\nexport function shimSenderReceiverGetStats(window) {\n if (!(typeof window === 'object' && window.RTCPeerConnection && window.RTCRtpSender && window.RTCRtpReceiver)) {\n return;\n }\n\n // shim sender stats.\n if (!('getStats' in window.RTCRtpSender.prototype)) {\n const origGetSenders = window.RTCPeerConnection.prototype.getSenders;\n if (origGetSenders) {\n window.RTCPeerConnection.prototype.getSenders = function getSenders() {\n const senders = origGetSenders.apply(this, []);\n senders.forEach(sender => sender._pc = this);\n return senders;\n };\n }\n const origAddTrack = window.RTCPeerConnection.prototype.addTrack;\n if (origAddTrack) {\n window.RTCPeerConnection.prototype.addTrack = function addTrack() {\n const sender = origAddTrack.apply(this, arguments);\n sender._pc = this;\n return sender;\n };\n }\n window.RTCRtpSender.prototype.getStats = function getStats() {\n const sender = this;\n return this._pc.getStats().then(result =>\n /* Note: this will include stats of all senders that\n * send a track with the same id as sender.track as\n * it is not possible to identify the RTCRtpSender.\n */\n utils.filterStats(result, sender.track, true));\n };\n }\n\n // shim receiver stats.\n if (!('getStats' in window.RTCRtpReceiver.prototype)) {\n const origGetReceivers = window.RTCPeerConnection.prototype.getReceivers;\n if (origGetReceivers) {\n window.RTCPeerConnection.prototype.getReceivers = function getReceivers() {\n const receivers = origGetReceivers.apply(this, []);\n receivers.forEach(receiver => receiver._pc = this);\n return receivers;\n };\n }\n utils.wrapPeerConnectionEvent(window, 'track', e => {\n e.receiver._pc = e.srcElement;\n return e;\n });\n window.RTCRtpReceiver.prototype.getStats = function getStats() {\n const receiver = this;\n return this._pc.getStats().then(result => utils.filterStats(result, receiver.track, false));\n };\n }\n if (!('getStats' in window.RTCRtpSender.prototype && 'getStats' in window.RTCRtpReceiver.prototype)) {\n return;\n }\n\n // shim RTCPeerConnection.getStats(track).\n const origGetStats = window.RTCPeerConnection.prototype.getStats;\n window.RTCPeerConnection.prototype.getStats = function getStats() {\n if (arguments.length > 0 && arguments[0] instanceof window.MediaStreamTrack) {\n const track = arguments[0];\n let sender;\n let receiver;\n let err;\n this.getSenders().forEach(s => {\n if (s.track === track) {\n if (sender) {\n err = true;\n } else {\n sender = s;\n }\n }\n });\n this.getReceivers().forEach(r => {\n if (r.track === track) {\n if (receiver) {\n err = true;\n } else {\n receiver = r;\n }\n }\n return r.track === track;\n });\n if (err || sender && receiver) {\n return Promise.reject(new DOMException('There are more than one sender or receiver for the track.', 'InvalidAccessError'));\n } else if (sender) {\n return sender.getStats();\n } else if (receiver) {\n return receiver.getStats();\n }\n return Promise.reject(new DOMException('There is no sender or receiver for the track.', 'InvalidAccessError'));\n }\n return origGetStats.apply(this, arguments);\n };\n}\nexport function shimAddTrackRemoveTrackWithNative(window) {\n // shim addTrack/removeTrack with native variants in order to make\n // the interactions with legacy getLocalStreams behave as in other browsers.\n // Keeps a mapping stream.id => [stream, rtpsenders...]\n window.RTCPeerConnection.prototype.getLocalStreams = function getLocalStreams() {\n this._shimmedLocalStreams = this._shimmedLocalStreams || {};\n return Object.keys(this._shimmedLocalStreams).map(streamId => this._shimmedLocalStreams[streamId][0]);\n };\n const origAddTrack = window.RTCPeerConnection.prototype.addTrack;\n window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) {\n if (!stream) {\n return origAddTrack.apply(this, arguments);\n }\n this._shimmedLocalStreams = this._shimmedLocalStreams || {};\n const sender = origAddTrack.apply(this, arguments);\n if (!this._shimmedLocalStreams[stream.id]) {\n this._shimmedLocalStreams[stream.id] = [stream, sender];\n } else if (this._shimmedLocalStreams[stream.id].indexOf(sender) === -1) {\n this._shimmedLocalStreams[stream.id].push(sender);\n }\n return sender;\n };\n const origAddStream = window.RTCPeerConnection.prototype.addStream;\n window.RTCPeerConnection.prototype.addStream = function addStream(stream) {\n this._shimmedLocalStreams = this._shimmedLocalStreams || {};\n stream.getTracks().forEach(track => {\n const alreadyExists = this.getSenders().find(s => s.track === track);\n if (alreadyExists) {\n throw new DOMException('Track already exists.', 'InvalidAccessError');\n }\n });\n const existingSenders = this.getSenders();\n origAddStream.apply(this, arguments);\n const newSenders = this.getSenders().filter(newSender => existingSenders.indexOf(newSender) === -1);\n this._shimmedLocalStreams[stream.id] = [stream].concat(newSenders);\n };\n const origRemoveStream = window.RTCPeerConnection.prototype.removeStream;\n window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {\n this._shimmedLocalStreams = this._shimmedLocalStreams || {};\n delete this._shimmedLocalStreams[stream.id];\n return origRemoveStream.apply(this, arguments);\n };\n const origRemoveTrack = window.RTCPeerConnection.prototype.removeTrack;\n window.RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {\n this._shimmedLocalStreams = this._shimmedLocalStreams || {};\n if (sender) {\n Object.keys(this._shimmedLocalStreams).forEach(streamId => {\n const idx = this._shimmedLocalStreams[streamId].indexOf(sender);\n if (idx !== -1) {\n this._shimmedLocalStreams[streamId].splice(idx, 1);\n }\n if (this._shimmedLocalStreams[streamId].length === 1) {\n delete this._shimmedLocalStreams[streamId];\n }\n });\n }\n return origRemoveTrack.apply(this, arguments);\n };\n}\nexport function shimAddTrackRemoveTrack(window, browserDetails) {\n if (!window.RTCPeerConnection) {\n return;\n }\n // shim addTrack and removeTrack.\n if (window.RTCPeerConnection.prototype.addTrack && browserDetails.version >= 65) {\n return shimAddTrackRemoveTrackWithNative(window);\n }\n\n // also shim pc.getLocalStreams when addTrack is shimmed\n // to return the original streams.\n const origGetLocalStreams = window.RTCPeerConnection.prototype.getLocalStreams;\n window.RTCPeerConnection.prototype.getLocalStreams = function getLocalStreams() {\n const nativeStreams = origGetLocalStreams.apply(this);\n this._reverseStreams = this._reverseStreams || {};\n return nativeStreams.map(stream => this._reverseStreams[stream.id]);\n };\n const origAddStream = window.RTCPeerConnection.prototype.addStream;\n window.RTCPeerConnection.prototype.addStream = function addStream(stream) {\n this._streams = this._streams || {};\n this._reverseStreams = this._reverseStreams || {};\n stream.getTracks().forEach(track => {\n const alreadyExists = this.getSenders().find(s => s.track === track);\n if (alreadyExists) {\n throw new DOMException('Track already exists.', 'InvalidAccessError');\n }\n });\n // Add identity mapping for consistency with addTrack.\n // Unless this is being used with a stream from addTrack.\n if (!this._reverseStreams[stream.id]) {\n const newStream = new window.MediaStream(stream.getTracks());\n this._streams[stream.id] = newStream;\n this._reverseStreams[newStream.id] = stream;\n stream = newStream;\n }\n origAddStream.apply(this, [stream]);\n };\n const origRemoveStream = window.RTCPeerConnection.prototype.removeStream;\n window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {\n this._streams = this._streams || {};\n this._reverseStreams = this._reverseStreams || {};\n origRemoveStream.apply(this, [this._streams[stream.id] || stream]);\n delete this._reverseStreams[this._streams[stream.id] ? this._streams[stream.id].id : stream.id];\n delete this._streams[stream.id];\n };\n window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) {\n if (this.signalingState === 'closed') {\n throw new DOMException('The RTCPeerConnection\\'s signalingState is \\'closed\\'.', 'InvalidStateError');\n }\n const streams = [].slice.call(arguments, 1);\n if (streams.length !== 1 || !streams[0].getTracks().find(t => t === track)) {\n // this is not fully correct but all we can manage without\n // [[associated MediaStreams]] internal slot.\n throw new DOMException('The adapter.js addTrack polyfill only supports a single ' + ' stream which is associated with the specified track.', 'NotSupportedError');\n }\n const alreadyExists = this.getSenders().find(s => s.track === track);\n if (alreadyExists) {\n throw new DOMException('Track already exists.', 'InvalidAccessError');\n }\n this._streams = this._streams || {};\n this._reverseStreams = this._reverseStreams || {};\n const oldStream = this._streams[stream.id];\n if (oldStream) {\n // this is using odd Chrome behaviour, use with caution:\n // https://bugs.chromium.org/p/webrtc/issues/detail?id=7815\n // Note: we rely on the high-level addTrack/dtmf shim to\n // create the sender with a dtmf sender.\n oldStream.addTrack(track);\n\n // Trigger ONN async.\n Promise.resolve().then(() => {\n this.dispatchEvent(new Event('negotiationneeded'));\n });\n } else {\n const newStream = new window.MediaStream([track]);\n this._streams[stream.id] = newStream;\n this._reverseStreams[newStream.id] = stream;\n this.addStream(newStream);\n }\n return this.getSenders().find(s => s.track === track);\n };\n\n // replace the internal stream id with the external one and\n // vice versa.\n function replaceInternalStreamId(pc, description) {\n let sdp = description.sdp;\n Object.keys(pc._reverseStreams || []).forEach(internalId => {\n const externalStream = pc._reverseStreams[internalId];\n const internalStream = pc._streams[externalStream.id];\n sdp = sdp.replace(new RegExp(internalStream.id, 'g'), externalStream.id);\n });\n return new RTCSessionDescription({\n type: description.type,\n sdp\n });\n }\n function replaceExternalStreamId(pc, description) {\n let sdp = description.sdp;\n Object.keys(pc._reverseStreams || []).forEach(internalId => {\n const externalStream = pc._reverseStreams[internalId];\n const internalStream = pc._streams[externalStream.id];\n sdp = sdp.replace(new RegExp(externalStream.id, 'g'), internalStream.id);\n });\n return new RTCSessionDescription({\n type: description.type,\n sdp\n });\n }\n ['createOffer', 'createAnswer'].forEach(function (method) {\n const nativeMethod = window.RTCPeerConnection.prototype[method];\n const methodObj = {\n [method]() {\n const args = arguments;\n const isLegacyCall = arguments.length && typeof arguments[0] === 'function';\n if (isLegacyCall) {\n return nativeMethod.apply(this, [description => {\n const desc = replaceInternalStreamId(this, description);\n args[0].apply(null, [desc]);\n }, err => {\n if (args[1]) {\n args[1].apply(null, err);\n }\n }, arguments[2]]);\n }\n return nativeMethod.apply(this, arguments).then(description => replaceInternalStreamId(this, description));\n }\n };\n window.RTCPeerConnection.prototype[method] = methodObj[method];\n });\n const origSetLocalDescription = window.RTCPeerConnection.prototype.setLocalDescription;\n window.RTCPeerConnection.prototype.setLocalDescription = function setLocalDescription() {\n if (!arguments.length || !arguments[0].type) {\n return origSetLocalDescription.apply(this, arguments);\n }\n arguments[0] = replaceExternalStreamId(this, arguments[0]);\n return origSetLocalDescription.apply(this, arguments);\n };\n\n // TODO: mangle getStats: https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamstats-streamidentifier\n\n const origLocalDescription = Object.getOwnPropertyDescriptor(window.RTCPeerConnection.prototype, 'localDescription');\n Object.defineProperty(window.RTCPeerConnection.prototype, 'localDescription', {\n get() {\n const description = origLocalDescription.get.apply(this);\n if (description.type === '') {\n return description;\n }\n return replaceInternalStreamId(this, description);\n }\n });\n window.RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {\n if (this.signalingState === 'closed') {\n throw new DOMException('The RTCPeerConnection\\'s signalingState is \\'closed\\'.', 'InvalidStateError');\n }\n // We can not yet check for sender instanceof RTCRtpSender\n // since we shim RTPSender. So we check if sender._pc is set.\n if (!sender._pc) {\n throw new DOMException('Argument 1 of RTCPeerConnection.removeTrack ' + 'does not implement interface RTCRtpSender.', 'TypeError');\n }\n const isLocal = sender._pc === this;\n if (!isLocal) {\n throw new DOMException('Sender was not created by this connection.', 'InvalidAccessError');\n }\n\n // Search for the native stream the senders track belongs to.\n this._streams = this._streams || {};\n let stream;\n Object.keys(this._streams).forEach(streamid => {\n const hasTrack = this._streams[streamid].getTracks().find(track => sender.track === track);\n if (hasTrack) {\n stream = this._streams[streamid];\n }\n });\n if (stream) {\n if (stream.getTracks().length === 1) {\n // if this is the last track of the stream, remove the stream. This\n // takes care of any shimmed _senders.\n this.removeStream(this._reverseStreams[stream.id]);\n } else {\n // relying on the same odd chrome behaviour as above.\n stream.removeTrack(sender.track);\n }\n this.dispatchEvent(new Event('negotiationneeded'));\n }\n };\n}\nexport function shimPeerConnection(window, browserDetails) {\n if (!window.RTCPeerConnection && window.webkitRTCPeerConnection) {\n // very basic support for old versions.\n window.RTCPeerConnection = window.webkitRTCPeerConnection;\n }\n if (!window.RTCPeerConnection) {\n return;\n }\n\n // shim implicit creation of RTCSessionDescription/RTCIceCandidate\n if (browserDetails.version < 53) {\n ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'].forEach(function (method) {\n const nativeMethod = window.RTCPeerConnection.prototype[method];\n const methodObj = {\n [method]() {\n arguments[0] = new (method === 'addIceCandidate' ? window.RTCIceCandidate : window.RTCSessionDescription)(arguments[0]);\n return nativeMethod.apply(this, arguments);\n }\n };\n window.RTCPeerConnection.prototype[method] = methodObj[method];\n });\n }\n}\n\n// Attempt to fix ONN in plan-b mode.\nexport function fixNegotiationNeeded(window, browserDetails) {\n utils.wrapPeerConnectionEvent(window, 'negotiationneeded', e => {\n const pc = e.target;\n if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === 'plan-b') {\n if (pc.signalingState !== 'stable') {\n return;\n }\n }\n return e;\n });\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nimport * as utils from '../utils';\nexport function shimGetUserMedia(window, browserDetails) {\n const navigator = window && window.navigator;\n const MediaStreamTrack = window && window.MediaStreamTrack;\n navigator.getUserMedia = function (constraints, onSuccess, onError) {\n // Replace Firefox 44+'s deprecation warning with unprefixed version.\n utils.deprecated('navigator.getUserMedia', 'navigator.mediaDevices.getUserMedia');\n navigator.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);\n };\n if (!(browserDetails.version > 55 && 'autoGainControl' in navigator.mediaDevices.getSupportedConstraints())) {\n const remap = function (obj, a, b) {\n if (a in obj && !(b in obj)) {\n obj[b] = obj[a];\n delete obj[a];\n }\n };\n const nativeGetUserMedia = navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);\n navigator.mediaDevices.getUserMedia = function (c) {\n if (typeof c === 'object' && typeof c.audio === 'object') {\n c = JSON.parse(JSON.stringify(c));\n remap(c.audio, 'autoGainControl', 'mozAutoGainControl');\n remap(c.audio, 'noiseSuppression', 'mozNoiseSuppression');\n }\n return nativeGetUserMedia(c);\n };\n if (MediaStreamTrack && MediaStreamTrack.prototype.getSettings) {\n const nativeGetSettings = MediaStreamTrack.prototype.getSettings;\n MediaStreamTrack.prototype.getSettings = function () {\n const obj = nativeGetSettings.apply(this, arguments);\n remap(obj, 'mozAutoGainControl', 'autoGainControl');\n remap(obj, 'mozNoiseSuppression', 'noiseSuppression');\n return obj;\n };\n }\n if (MediaStreamTrack && MediaStreamTrack.prototype.applyConstraints) {\n const nativeApplyConstraints = MediaStreamTrack.prototype.applyConstraints;\n MediaStreamTrack.prototype.applyConstraints = function (c) {\n if (this.kind === 'audio' && typeof c === 'object') {\n c = JSON.parse(JSON.stringify(c));\n remap(c, 'autoGainControl', 'mozAutoGainControl');\n remap(c, 'noiseSuppression', 'mozNoiseSuppression');\n }\n return nativeApplyConstraints.apply(this, [c]);\n };\n }\n }\n}","/*\n * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nexport function shimGetDisplayMedia(window, preferredMediaSource) {\n if (window.navigator.mediaDevices && 'getDisplayMedia' in window.navigator.mediaDevices) {\n return;\n }\n if (!window.navigator.mediaDevices) {\n return;\n }\n window.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {\n if (!(constraints && constraints.video)) {\n const err = new DOMException('getDisplayMedia without video ' + 'constraints is undefined');\n err.name = 'NotFoundError';\n // from https://heycam.github.io/webidl/#idl-DOMException-error-names\n err.code = 8;\n return Promise.reject(err);\n }\n if (constraints.video === true) {\n constraints.video = {\n mediaSource: preferredMediaSource\n };\n } else {\n constraints.video.mediaSource = preferredMediaSource;\n }\n return window.navigator.mediaDevices.getUserMedia(constraints);\n };\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nimport * as utils from '../utils';\nexport { shimGetUserMedia } from './getusermedia';\nexport { shimGetDisplayMedia } from './getdisplaymedia';\nexport function shimOnTrack(window) {\n if (typeof window === 'object' && window.RTCTrackEvent && 'receiver' in window.RTCTrackEvent.prototype && !('transceiver' in window.RTCTrackEvent.prototype)) {\n Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', {\n get() {\n return {\n receiver: this.receiver\n };\n }\n });\n }\n}\nexport function shimPeerConnection(window, browserDetails) {\n if (typeof window !== 'object' || !(window.RTCPeerConnection || window.mozRTCPeerConnection)) {\n return; // probably media.peerconnection.enabled=false in about:config\n }\n\n if (!window.RTCPeerConnection && window.mozRTCPeerConnection) {\n // very basic support for old versions.\n window.RTCPeerConnection = window.mozRTCPeerConnection;\n }\n if (browserDetails.version < 53) {\n // shim away need for obsolete RTCIceCandidate/RTCSessionDescription.\n ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate'].forEach(function (method) {\n const nativeMethod = window.RTCPeerConnection.prototype[method];\n const methodObj = {\n [method]() {\n arguments[0] = new (method === 'addIceCandidate' ? window.RTCIceCandidate : window.RTCSessionDescription)(arguments[0]);\n return nativeMethod.apply(this, arguments);\n }\n };\n window.RTCPeerConnection.prototype[method] = methodObj[method];\n });\n }\n const modernStatsTypes = {\n inboundrtp: 'inbound-rtp',\n outboundrtp: 'outbound-rtp',\n candidatepair: 'candidate-pair',\n localcandidate: 'local-candidate',\n remotecandidate: 'remote-candidate'\n };\n const nativeGetStats = window.RTCPeerConnection.prototype.getStats;\n window.RTCPeerConnection.prototype.getStats = function getStats() {\n const _arguments = Array.prototype.slice.call(arguments),\n selector = _arguments[0],\n onSucc = _arguments[1],\n onErr = _arguments[2];\n return nativeGetStats.apply(this, [selector || null]).then(stats => {\n if (browserDetails.version < 53 && !onSucc) {\n // Shim only promise getStats with spec-hyphens in type names\n // Leave callback version alone; misc old uses of forEach before Map\n try {\n stats.forEach(stat => {\n stat.type = modernStatsTypes[stat.type] || stat.type;\n });\n } catch (e) {\n if (e.name !== 'TypeError') {\n throw e;\n }\n // Avoid TypeError: \"type\" is read-only, in old versions. 34-43ish\n stats.forEach((stat, i) => {\n stats.set(i, Object.assign({}, stat, {\n type: modernStatsTypes[stat.type] || stat.type\n }));\n });\n }\n }\n return stats;\n }).then(onSucc, onErr);\n };\n}\nexport function shimSenderGetStats(window) {\n if (!(typeof window === 'object' && window.RTCPeerConnection && window.RTCRtpSender)) {\n return;\n }\n if (window.RTCRtpSender && 'getStats' in window.RTCRtpSender.prototype) {\n return;\n }\n const origGetSenders = window.RTCPeerConnection.prototype.getSenders;\n if (origGetSenders) {\n window.RTCPeerConnection.prototype.getSenders = function getSenders() {\n const senders = origGetSenders.apply(this, []);\n senders.forEach(sender => sender._pc = this);\n return senders;\n };\n }\n const origAddTrack = window.RTCPeerConnection.prototype.addTrack;\n if (origAddTrack) {\n window.RTCPeerConnection.prototype.addTrack = function addTrack() {\n const sender = origAddTrack.apply(this, arguments);\n sender._pc = this;\n return sender;\n };\n }\n window.RTCRtpSender.prototype.getStats = function getStats() {\n return this.track ? this._pc.getStats(this.track) : Promise.resolve(new Map());\n };\n}\nexport function shimReceiverGetStats(window) {\n if (!(typeof window === 'object' && window.RTCPeerConnection && window.RTCRtpSender)) {\n return;\n }\n if (window.RTCRtpSender && 'getStats' in window.RTCRtpReceiver.prototype) {\n return;\n }\n const origGetReceivers = window.RTCPeerConnection.prototype.getReceivers;\n if (origGetReceivers) {\n window.RTCPeerConnection.prototype.getReceivers = function getReceivers() {\n const receivers = origGetReceivers.apply(this, []);\n receivers.forEach(receiver => receiver._pc = this);\n return receivers;\n };\n }\n utils.wrapPeerConnectionEvent(window, 'track', e => {\n e.receiver._pc = e.srcElement;\n return e;\n });\n window.RTCRtpReceiver.prototype.getStats = function getStats() {\n return this._pc.getStats(this.track);\n };\n}\nexport function shimRemoveStream(window) {\n if (!window.RTCPeerConnection || 'removeStream' in window.RTCPeerConnection.prototype) {\n return;\n }\n window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {\n utils.deprecated('removeStream', 'removeTrack');\n this.getSenders().forEach(sender => {\n if (sender.track && stream.getTracks().includes(sender.track)) {\n this.removeTrack(sender);\n }\n });\n };\n}\nexport function shimRTCDataChannel(window) {\n // rename DataChannel to RTCDataChannel (native fix in FF60):\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1173851\n if (window.DataChannel && !window.RTCDataChannel) {\n window.RTCDataChannel = window.DataChannel;\n }\n}\nexport function shimAddTransceiver(window) {\n // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647\n // Firefox ignores the init sendEncodings options passed to addTransceiver\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918\n if (!(typeof window === 'object' && window.RTCPeerConnection)) {\n return;\n }\n const origAddTransceiver = window.RTCPeerConnection.prototype.addTransceiver;\n if (origAddTransceiver) {\n window.RTCPeerConnection.prototype.addTransceiver = function addTransceiver() {\n this.setParametersPromises = [];\n // WebIDL input coercion and validation\n let sendEncodings = arguments[1] && arguments[1].sendEncodings;\n if (sendEncodings === undefined) {\n sendEncodings = [];\n }\n sendEncodings = [...sendEncodings];\n const shouldPerformCheck = sendEncodings.length > 0;\n if (shouldPerformCheck) {\n // If sendEncodings params are provided, validate grammar\n sendEncodings.forEach(encodingParam => {\n if ('rid' in encodingParam) {\n const ridRegex = /^[a-z0-9]{0,16}$/i;\n if (!ridRegex.test(encodingParam.rid)) {\n throw new TypeError('Invalid RID value provided.');\n }\n }\n if ('scaleResolutionDownBy' in encodingParam) {\n if (!(parseFloat(encodingParam.scaleResolutionDownBy) >= 1.0)) {\n throw new RangeError('scale_resolution_down_by must be >= 1.0');\n }\n }\n if ('maxFramerate' in encodingParam) {\n if (!(parseFloat(encodingParam.maxFramerate) >= 0)) {\n throw new RangeError('max_framerate must be >= 0.0');\n }\n }\n });\n }\n const transceiver = origAddTransceiver.apply(this, arguments);\n if (shouldPerformCheck) {\n // Check if the init options were applied. If not we do this in an\n // asynchronous way and save the promise reference in a global object.\n // This is an ugly hack, but at the same time is way more robust than\n // checking the sender parameters before and after the createOffer\n // Also note that after the createoffer we are not 100% sure that\n // the params were asynchronously applied so we might miss the\n // opportunity to recreate offer.\n const sender = transceiver.sender;\n const params = sender.getParameters();\n if (!('encodings' in params) ||\n // Avoid being fooled by patched getParameters() below.\n params.encodings.length === 1 && Object.keys(params.encodings[0]).length === 0) {\n params.encodings = sendEncodings;\n sender.sendEncodings = sendEncodings;\n this.setParametersPromises.push(sender.setParameters(params).then(() => {\n delete sender.sendEncodings;\n }).catch(() => {\n delete sender.sendEncodings;\n }));\n }\n }\n return transceiver;\n };\n }\n}\nexport function shimGetParameters(window) {\n if (!(typeof window === 'object' && window.RTCRtpSender)) {\n return;\n }\n const origGetParameters = window.RTCRtpSender.prototype.getParameters;\n if (origGetParameters) {\n window.RTCRtpSender.prototype.getParameters = function getParameters() {\n const params = origGetParameters.apply(this, arguments);\n if (!('encodings' in params)) {\n params.encodings = [].concat(this.sendEncodings || [{}]);\n }\n return params;\n };\n }\n}\nexport function shimCreateOffer(window) {\n // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647\n // Firefox ignores the init sendEncodings options passed to addTransceiver\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918\n if (!(typeof window === 'object' && window.RTCPeerConnection)) {\n return;\n }\n const origCreateOffer = window.RTCPeerConnection.prototype.createOffer;\n window.RTCPeerConnection.prototype.createOffer = function createOffer() {\n if (this.setParametersPromises && this.setParametersPromises.length) {\n return Promise.all(this.setParametersPromises).then(() => {\n return origCreateOffer.apply(this, arguments);\n }).finally(() => {\n this.setParametersPromises = [];\n });\n }\n return origCreateOffer.apply(this, arguments);\n };\n}\nexport function shimCreateAnswer(window) {\n // https://github.com/webrtcHacks/adapter/issues/998#issuecomment-516921647\n // Firefox ignores the init sendEncodings options passed to addTransceiver\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1396918\n if (!(typeof window === 'object' && window.RTCPeerConnection)) {\n return;\n }\n const origCreateAnswer = window.RTCPeerConnection.prototype.createAnswer;\n window.RTCPeerConnection.prototype.createAnswer = function createAnswer() {\n if (this.setParametersPromises && this.setParametersPromises.length) {\n return Promise.all(this.setParametersPromises).then(() => {\n return origCreateAnswer.apply(this, arguments);\n }).finally(() => {\n this.setParametersPromises = [];\n });\n }\n return origCreateAnswer.apply(this, arguments);\n };\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n'use strict';\n\nimport * as utils from '../utils';\nexport function shimLocalStreamsAPI(window) {\n if (typeof window !== 'object' || !window.RTCPeerConnection) {\n return;\n }\n if (!('getLocalStreams' in window.RTCPeerConnection.prototype)) {\n window.RTCPeerConnection.prototype.getLocalStreams = function getLocalStreams() {\n if (!this._localStreams) {\n this._localStreams = [];\n }\n return this._localStreams;\n };\n }\n if (!('addStream' in window.RTCPeerConnection.prototype)) {\n const _addTrack = window.RTCPeerConnection.prototype.addTrack;\n window.RTCPeerConnection.prototype.addStream = function addStream(stream) {\n if (!this._localStreams) {\n this._localStreams = [];\n }\n if (!this._localStreams.includes(stream)) {\n this._localStreams.push(stream);\n }\n // Try to emulate Chrome's behaviour of adding in audio-video order.\n // Safari orders by track id.\n stream.getAudioTracks().forEach(track => _addTrack.call(this, track, stream));\n stream.getVideoTracks().forEach(track => _addTrack.call(this, track, stream));\n };\n window.RTCPeerConnection.prototype.addTrack = function addTrack(track) {\n for (var _len = arguments.length, streams = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n streams[_key - 1] = arguments[_key];\n }\n if (streams) {\n streams.forEach(stream => {\n if (!this._localStreams) {\n this._localStreams = [stream];\n } else if (!this._localStreams.includes(stream)) {\n this._localStreams.push(stream);\n }\n });\n }\n return _addTrack.apply(this, arguments);\n };\n }\n if (!('removeStream' in window.RTCPeerConnection.prototype)) {\n window.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {\n if (!this._localStreams) {\n this._localStreams = [];\n }\n const index = this._localStreams.indexOf(stream);\n if (index === -1) {\n return;\n }\n this._localStreams.splice(index, 1);\n const tracks = stream.getTracks();\n this.getSenders().forEach(sender => {\n if (tracks.includes(sender.track)) {\n this.removeTrack(sender);\n }\n });\n };\n }\n}\nexport function shimRemoteStreamsAPI(window) {\n if (typeof window !== 'object' || !window.RTCPeerConnection) {\n return;\n }\n if (!('getRemoteStreams' in window.RTCPeerConnection.prototype)) {\n window.RTCPeerConnection.prototype.getRemoteStreams = function getRemoteStreams() {\n return this._remoteStreams ? this._remoteStreams : [];\n };\n }\n if (!('onaddstream' in window.RTCPeerConnection.prototype)) {\n Object.defineProperty(window.RTCPeerConnection.prototype, 'onaddstream', {\n get() {\n return this._onaddstream;\n },\n set(f) {\n if (this._onaddstream) {\n this.removeEventListener('addstream', this._onaddstream);\n this.removeEventListener('track', this._onaddstreampoly);\n }\n this.addEventListener('addstream', this._onaddstream = f);\n this.addEventListener('track', this._onaddstreampoly = e => {\n e.streams.forEach(stream => {\n if (!this._remoteStreams) {\n this._remoteStreams = [];\n }\n if (this._remoteStreams.includes(stream)) {\n return;\n }\n this._remoteStreams.push(stream);\n const event = new Event('addstream');\n event.stream = stream;\n this.dispatchEvent(event);\n });\n });\n }\n });\n const origSetRemoteDescription = window.RTCPeerConnection.prototype.setRemoteDescription;\n window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {\n const pc = this;\n if (!this._onaddstreampoly) {\n this.addEventListener('track', this._onaddstreampoly = function (e) {\n e.streams.forEach(stream => {\n if (!pc._remoteStreams) {\n pc._remoteStreams = [];\n }\n if (pc._remoteStreams.indexOf(stream) >= 0) {\n return;\n }\n pc._remoteStreams.push(stream);\n const event = new Event('addstream');\n event.stream = stream;\n pc.dispatchEvent(event);\n });\n });\n }\n return origSetRemoteDescription.apply(pc, arguments);\n };\n }\n}\nexport function shimCallbacksAPI(window) {\n if (typeof window !== 'object' || !window.RTCPeerConnection) {\n return;\n }\n const prototype = window.RTCPeerConnection.prototype;\n const origCreateOffer = prototype.createOffer;\n const origCreateAnswer = prototype.createAnswer;\n const setLocalDescription = prototype.setLocalDescription;\n const setRemoteDescription = prototype.setRemoteDescription;\n const addIceCandidate = prototype.addIceCandidate;\n prototype.createOffer = function createOffer(successCallback, failureCallback) {\n const options = arguments.length >= 2 ? arguments[2] : arguments[0];\n const promise = origCreateOffer.apply(this, [options]);\n if (!failureCallback) {\n return promise;\n }\n promise.then(successCallback, failureCallback);\n return Promise.resolve();\n };\n prototype.createAnswer = function createAnswer(successCallback, failureCallback) {\n const options = arguments.length >= 2 ? arguments[2] : arguments[0];\n const promise = origCreateAnswer.apply(this, [options]);\n if (!failureCallback) {\n return promise;\n }\n promise.then(successCallback, failureCallback);\n return Promise.resolve();\n };\n let withCallback = function (description, successCallback, failureCallback) {\n const promise = setLocalDescription.apply(this, [description]);\n if (!failureCallback) {\n return promise;\n }\n promise.then(successCallback, failureCallback);\n return Promise.resolve();\n };\n prototype.setLocalDescription = withCallback;\n withCallback = function (description, successCallback, failureCallback) {\n const promise = setRemoteDescription.apply(this, [description]);\n if (!failureCallback) {\n return promise;\n }\n promise.then(successCallback, failureCallback);\n return Promise.resolve();\n };\n prototype.setRemoteDescription = withCallback;\n withCallback = function (candidate, successCallback, failureCallback) {\n const promise = addIceCandidate.apply(this, [candidate]);\n if (!failureCallback) {\n return promise;\n }\n promise.then(successCallback, failureCallback);\n return Promise.resolve();\n };\n prototype.addIceCandidate = withCallback;\n}\nexport function shimGetUserMedia(window) {\n const navigator = window && window.navigator;\n if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {\n // shim not needed in Safari 12.1\n const mediaDevices = navigator.mediaDevices;\n const _getUserMedia = mediaDevices.getUserMedia.bind(mediaDevices);\n navigator.mediaDevices.getUserMedia = constraints => {\n return _getUserMedia(shimConstraints(constraints));\n };\n }\n if (!navigator.getUserMedia && navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {\n navigator.getUserMedia = function getUserMedia(constraints, cb, errcb) {\n navigator.mediaDevices.getUserMedia(constraints).then(cb, errcb);\n }.bind(navigator);\n }\n}\nexport function shimConstraints(constraints) {\n if (constraints && constraints.video !== undefined) {\n return Object.assign({}, constraints, {\n video: utils.compactObject(constraints.video)\n });\n }\n return constraints;\n}\nexport function shimRTCIceServerUrls(window) {\n if (!window.RTCPeerConnection) {\n return;\n }\n // migrate from non-spec RTCIceServer.url to RTCIceServer.urls\n const OrigPeerConnection = window.RTCPeerConnection;\n window.RTCPeerConnection = function RTCPeerConnection(pcConfig, pcConstraints) {\n if (pcConfig && pcConfig.iceServers) {\n const newIceServers = [];\n for (let i = 0; i < pcConfig.iceServers.length; i++) {\n let server = pcConfig.iceServers[i];\n if (server.urls === undefined && server.url) {\n utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls');\n server = JSON.parse(JSON.stringify(server));\n server.urls = server.url;\n delete server.url;\n newIceServers.push(server);\n } else {\n newIceServers.push(pcConfig.iceServers[i]);\n }\n }\n pcConfig.iceServers = newIceServers;\n }\n return new OrigPeerConnection(pcConfig, pcConstraints);\n };\n window.RTCPeerConnection.prototype = OrigPeerConnection.prototype;\n // wrap static methods. Currently just generateCertificate.\n if ('generateCertificate' in OrigPeerConnection) {\n Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {\n get() {\n return OrigPeerConnection.generateCertificate;\n }\n });\n }\n}\nexport function shimTrackEventTransceiver(window) {\n // Add event.transceiver member over deprecated event.receiver\n if (typeof window === 'object' && window.RTCTrackEvent && 'receiver' in window.RTCTrackEvent.prototype && !('transceiver' in window.RTCTrackEvent.prototype)) {\n Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', {\n get() {\n return {\n receiver: this.receiver\n };\n }\n });\n }\n}\nexport function shimCreateOfferLegacy(window) {\n const origCreateOffer = window.RTCPeerConnection.prototype.createOffer;\n window.RTCPeerConnection.prototype.createOffer = function createOffer(offerOptions) {\n if (offerOptions) {\n if (typeof offerOptions.offerToReceiveAudio !== 'undefined') {\n // support bit values\n offerOptions.offerToReceiveAudio = !!offerOptions.offerToReceiveAudio;\n }\n const audioTransceiver = this.getTransceivers().find(transceiver => transceiver.receiver.track.kind === 'audio');\n if (offerOptions.offerToReceiveAudio === false && audioTransceiver) {\n if (audioTransceiver.direction === 'sendrecv') {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection('sendonly');\n } else {\n audioTransceiver.direction = 'sendonly';\n }\n } else if (audioTransceiver.direction === 'recvonly') {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection('inactive');\n } else {\n audioTransceiver.direction = 'inactive';\n }\n }\n } else if (offerOptions.offerToReceiveAudio === true && !audioTransceiver) {\n this.addTransceiver('audio', {\n direction: 'recvonly'\n });\n }\n if (typeof offerOptions.offerToReceiveVideo !== 'undefined') {\n // support bit values\n offerOptions.offerToReceiveVideo = !!offerOptions.offerToReceiveVideo;\n }\n const videoTransceiver = this.getTransceivers().find(transceiver => transceiver.receiver.track.kind === 'video');\n if (offerOptions.offerToReceiveVideo === false && videoTransceiver) {\n if (videoTransceiver.direction === 'sendrecv') {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection('sendonly');\n } else {\n videoTransceiver.direction = 'sendonly';\n }\n } else if (videoTransceiver.direction === 'recvonly') {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection('inactive');\n } else {\n videoTransceiver.direction = 'inactive';\n }\n }\n } else if (offerOptions.offerToReceiveVideo === true && !videoTransceiver) {\n this.addTransceiver('video', {\n direction: 'recvonly'\n });\n }\n }\n return origCreateOffer.apply(this, arguments);\n };\n}\nexport function shimAudioContext(window) {\n if (typeof window !== 'object' || window.AudioContext) {\n return;\n }\n window.AudioContext = window.webkitAudioContext;\n}","/*\n * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n'use strict';\n\nimport SDPUtils from 'sdp';\nimport * as utils from './utils';\nexport function shimRTCIceCandidate(window) {\n // foundation is arbitrarily chosen as an indicator for full support for\n // https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface\n if (!window.RTCIceCandidate || window.RTCIceCandidate && 'foundation' in window.RTCIceCandidate.prototype) {\n return;\n }\n const NativeRTCIceCandidate = window.RTCIceCandidate;\n window.RTCIceCandidate = function RTCIceCandidate(args) {\n // Remove the a= which shouldn't be part of the candidate string.\n if (typeof args === 'object' && args.candidate && args.candidate.indexOf('a=') === 0) {\n args = JSON.parse(JSON.stringify(args));\n args.candidate = args.candidate.substring(2);\n }\n if (args.candidate && args.candidate.length) {\n // Augment the native candidate with the parsed fields.\n const nativeCandidate = new NativeRTCIceCandidate(args);\n const parsedCandidate = SDPUtils.parseCandidate(args.candidate);\n for (const key in parsedCandidate) {\n if (!(key in nativeCandidate)) {\n Object.defineProperty(nativeCandidate, key, {\n value: parsedCandidate[key]\n });\n }\n }\n\n // Override serializer to not serialize the extra attributes.\n nativeCandidate.toJSON = function toJSON() {\n return {\n candidate: nativeCandidate.candidate,\n sdpMid: nativeCandidate.sdpMid,\n sdpMLineIndex: nativeCandidate.sdpMLineIndex,\n usernameFragment: nativeCandidate.usernameFragment\n };\n };\n return nativeCandidate;\n }\n return new NativeRTCIceCandidate(args);\n };\n window.RTCIceCandidate.prototype = NativeRTCIceCandidate.prototype;\n\n // Hook up the augmented candidate in onicecandidate and\n // addEventListener('icecandidate', ...)\n utils.wrapPeerConnectionEvent(window, 'icecandidate', e => {\n if (e.candidate) {\n Object.defineProperty(e, 'candidate', {\n value: new window.RTCIceCandidate(e.candidate),\n writable: 'false'\n });\n }\n return e;\n });\n}\nexport function shimRTCIceCandidateRelayProtocol(window) {\n if (!window.RTCIceCandidate || window.RTCIceCandidate && 'relayProtocol' in window.RTCIceCandidate.prototype) {\n return;\n }\n\n // Hook up the augmented candidate in onicecandidate and\n // addEventListener('icecandidate', ...)\n utils.wrapPeerConnectionEvent(window, 'icecandidate', e => {\n if (e.candidate) {\n const parsedCandidate = SDPUtils.parseCandidate(e.candidate.candidate);\n if (parsedCandidate.type === 'relay') {\n // This is a libwebrtc-specific mapping of local type preference\n // to relayProtocol.\n e.candidate.relayProtocol = {\n 0: 'tls',\n 1: 'tcp',\n 2: 'udp'\n }[parsedCandidate.priority >> 24];\n }\n }\n return e;\n });\n}\nexport function shimMaxMessageSize(window, browserDetails) {\n if (!window.RTCPeerConnection) {\n return;\n }\n if (!('sctp' in window.RTCPeerConnection.prototype)) {\n Object.defineProperty(window.RTCPeerConnection.prototype, 'sctp', {\n get() {\n return typeof this._sctp === 'undefined' ? null : this._sctp;\n }\n });\n }\n const sctpInDescription = function (description) {\n if (!description || !description.sdp) {\n return false;\n }\n const sections = SDPUtils.splitSections(description.sdp);\n sections.shift();\n return sections.some(mediaSection => {\n const mLine = SDPUtils.parseMLine(mediaSection);\n return mLine && mLine.kind === 'application' && mLine.protocol.indexOf('SCTP') !== -1;\n });\n };\n const getRemoteFirefoxVersion = function (description) {\n // TODO: Is there a better solution for detecting Firefox?\n const match = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\\d+)/);\n if (match === null || match.length < 2) {\n return -1;\n }\n const version = parseInt(match[1], 10);\n // Test for NaN (yes, this is ugly)\n return version !== version ? -1 : version;\n };\n const getCanSendMaxMessageSize = function (remoteIsFirefox) {\n // Every implementation we know can send at least 64 KiB.\n // Note: Although Chrome is technically able to send up to 256 KiB, the\n // data does not reach the other peer reliably.\n // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=8419\n let canSendMaxMessageSize = 65536;\n if (browserDetails.browser === 'firefox') {\n if (browserDetails.version < 57) {\n if (remoteIsFirefox === -1) {\n // FF < 57 will send in 16 KiB chunks using the deprecated PPID\n // fragmentation.\n canSendMaxMessageSize = 16384;\n } else {\n // However, other FF (and RAWRTC) can reassemble PPID-fragmented\n // messages. Thus, supporting ~2 GiB when sending.\n canSendMaxMessageSize = 2147483637;\n }\n } else if (browserDetails.version < 60) {\n // Currently, all FF >= 57 will reset the remote maximum message size\n // to the default value when a data channel is created at a later\n // stage. :(\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831\n canSendMaxMessageSize = browserDetails.version === 57 ? 65535 : 65536;\n } else {\n // FF >= 60 supports sending ~2 GiB\n canSendMaxMessageSize = 2147483637;\n }\n }\n return canSendMaxMessageSize;\n };\n const getMaxMessageSize = function (description, remoteIsFirefox) {\n // Note: 65536 bytes is the default value from the SDP spec. Also,\n // every implementation we know supports receiving 65536 bytes.\n let maxMessageSize = 65536;\n\n // FF 57 has a slightly incorrect default remote max message size, so\n // we need to adjust it here to avoid a failure when sending.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1425697\n if (browserDetails.browser === 'firefox' && browserDetails.version === 57) {\n maxMessageSize = 65535;\n }\n const match = SDPUtils.matchPrefix(description.sdp, 'a=max-message-size:');\n if (match.length > 0) {\n maxMessageSize = parseInt(match[0].substring(19), 10);\n } else if (browserDetails.browser === 'firefox' && remoteIsFirefox !== -1) {\n // If the maximum message size is not present in the remote SDP and\n // both local and remote are Firefox, the remote peer can receive\n // ~2 GiB.\n maxMessageSize = 2147483637;\n }\n return maxMessageSize;\n };\n const origSetRemoteDescription = window.RTCPeerConnection.prototype.setRemoteDescription;\n window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {\n this._sctp = null;\n // Chrome decided to not expose .sctp in plan-b mode.\n // As usual, adapter.js has to do an 'ugly worakaround'\n // to cover up the mess.\n if (browserDetails.browser === 'chrome' && browserDetails.version >= 76) {\n const _this$getConfiguratio = this.getConfiguration(),\n sdpSemantics = _this$getConfiguratio.sdpSemantics;\n if (sdpSemantics === 'plan-b') {\n Object.defineProperty(this, 'sctp', {\n get() {\n return typeof this._sctp === 'undefined' ? null : this._sctp;\n },\n enumerable: true,\n configurable: true\n });\n }\n }\n if (sctpInDescription(arguments[0])) {\n // Check if the remote is FF.\n const isFirefox = getRemoteFirefoxVersion(arguments[0]);\n\n // Get the maximum message size the local peer is capable of sending\n const canSendMMS = getCanSendMaxMessageSize(isFirefox);\n\n // Get the maximum message size of the remote peer.\n const remoteMMS = getMaxMessageSize(arguments[0], isFirefox);\n\n // Determine final maximum message size\n let maxMessageSize;\n if (canSendMMS === 0 && remoteMMS === 0) {\n maxMessageSize = Number.POSITIVE_INFINITY;\n } else if (canSendMMS === 0 || remoteMMS === 0) {\n maxMessageSize = Math.max(canSendMMS, remoteMMS);\n } else {\n maxMessageSize = Math.min(canSendMMS, remoteMMS);\n }\n\n // Create a dummy RTCSctpTransport object and the 'maxMessageSize'\n // attribute.\n const sctp = {};\n Object.defineProperty(sctp, 'maxMessageSize', {\n get() {\n return maxMessageSize;\n }\n });\n this._sctp = sctp;\n }\n return origSetRemoteDescription.apply(this, arguments);\n };\n}\nexport function shimSendThrowTypeError(window) {\n if (!(window.RTCPeerConnection && 'createDataChannel' in window.RTCPeerConnection.prototype)) {\n return;\n }\n\n // Note: Although Firefox >= 57 has a native implementation, the maximum\n // message size can be reset for all data channels at a later stage.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1426831\n\n function wrapDcSend(dc, pc) {\n const origDataChannelSend = dc.send;\n dc.send = function send() {\n const data = arguments[0];\n const length = data.length || data.size || data.byteLength;\n if (dc.readyState === 'open' && pc.sctp && length > pc.sctp.maxMessageSize) {\n throw new TypeError('Message too large (can send a maximum of ' + pc.sctp.maxMessageSize + ' bytes)');\n }\n return origDataChannelSend.apply(dc, arguments);\n };\n }\n const origCreateDataChannel = window.RTCPeerConnection.prototype.createDataChannel;\n window.RTCPeerConnection.prototype.createDataChannel = function createDataChannel() {\n const dataChannel = origCreateDataChannel.apply(this, arguments);\n wrapDcSend(dataChannel, this);\n return dataChannel;\n };\n utils.wrapPeerConnectionEvent(window, 'datachannel', e => {\n wrapDcSend(e.channel, e.target);\n return e;\n });\n}\n\n/* shims RTCConnectionState by pretending it is the same as iceConnectionState.\n * See https://bugs.chromium.org/p/webrtc/issues/detail?id=6145#c12\n * for why this is a valid hack in Chrome. In Firefox it is slightly incorrect\n * since DTLS failures would be hidden. See\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1265827\n * for the Firefox tracking bug.\n */\nexport function shimConnectionState(window) {\n if (!window.RTCPeerConnection || 'connectionState' in window.RTCPeerConnection.prototype) {\n return;\n }\n const proto = window.RTCPeerConnection.prototype;\n Object.defineProperty(proto, 'connectionState', {\n get() {\n return {\n completed: 'connected',\n checking: 'connecting'\n }[this.iceConnectionState] || this.iceConnectionState;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(proto, 'onconnectionstatechange', {\n get() {\n return this._onconnectionstatechange || null;\n },\n set(cb) {\n if (this._onconnectionstatechange) {\n this.removeEventListener('connectionstatechange', this._onconnectionstatechange);\n delete this._onconnectionstatechange;\n }\n if (cb) {\n this.addEventListener('connectionstatechange', this._onconnectionstatechange = cb);\n }\n },\n enumerable: true,\n configurable: true\n });\n ['setLocalDescription', 'setRemoteDescription'].forEach(method => {\n const origMethod = proto[method];\n proto[method] = function () {\n if (!this._connectionstatechangepoly) {\n this._connectionstatechangepoly = e => {\n const pc = e.target;\n if (pc._lastConnectionState !== pc.connectionState) {\n pc._lastConnectionState = pc.connectionState;\n const newEvent = new Event('connectionstatechange', e);\n pc.dispatchEvent(newEvent);\n }\n return e;\n };\n this.addEventListener('iceconnectionstatechange', this._connectionstatechangepoly);\n }\n return origMethod.apply(this, arguments);\n };\n });\n}\nexport function removeExtmapAllowMixed(window, browserDetails) {\n /* remove a=extmap-allow-mixed for webrtc.org < M71 */\n if (!window.RTCPeerConnection) {\n return;\n }\n if (browserDetails.browser === 'chrome' && browserDetails.version >= 71) {\n return;\n }\n if (browserDetails.browser === 'safari' && browserDetails.version >= 605) {\n return;\n }\n const nativeSRD = window.RTCPeerConnection.prototype.setRemoteDescription;\n window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription(desc) {\n if (desc && desc.sdp && desc.sdp.indexOf('\\na=extmap-allow-mixed') !== -1) {\n const sdp = desc.sdp.split('\\n').filter(line => {\n return line.trim() !== 'a=extmap-allow-mixed';\n }).join('\\n');\n // Safari enforces read-only-ness of RTCSessionDescription fields.\n if (window.RTCSessionDescription && desc instanceof window.RTCSessionDescription) {\n arguments[0] = new window.RTCSessionDescription({\n type: desc.type,\n sdp\n });\n } else {\n desc.sdp = sdp;\n }\n }\n return nativeSRD.apply(this, arguments);\n };\n}\nexport function shimAddIceCandidateNullOrEmpty(window, browserDetails) {\n // Support for addIceCandidate(null or undefined)\n // as well as addIceCandidate({candidate: \"\", ...})\n // https://bugs.chromium.org/p/chromium/issues/detail?id=978582\n // Note: must be called before other polyfills which change the signature.\n if (!(window.RTCPeerConnection && window.RTCPeerConnection.prototype)) {\n return;\n }\n const nativeAddIceCandidate = window.RTCPeerConnection.prototype.addIceCandidate;\n if (!nativeAddIceCandidate || nativeAddIceCandidate.length === 0) {\n return;\n }\n window.RTCPeerConnection.prototype.addIceCandidate = function addIceCandidate() {\n if (!arguments[0]) {\n if (arguments[1]) {\n arguments[1].apply(null);\n }\n return Promise.resolve();\n }\n // Firefox 68+ emits and processes {candidate: \"\", ...}, ignore\n // in older versions.\n // Native support for ignoring exists for Chrome M77+.\n // Safari ignores as well, exact version unknown but works in the same\n // version that also ignores addIceCandidate(null).\n if ((browserDetails.browser === 'chrome' && browserDetails.version < 78 || browserDetails.browser === 'firefox' && browserDetails.version < 68 || browserDetails.browser === 'safari') && arguments[0] && arguments[0].candidate === '') {\n return Promise.resolve();\n }\n return nativeAddIceCandidate.apply(this, arguments);\n };\n}\n\n// Note: Make sure to call this ahead of APIs that modify\n// setLocalDescription.length\nexport function shimParameterlessSetLocalDescription(window, browserDetails) {\n if (!(window.RTCPeerConnection && window.RTCPeerConnection.prototype)) {\n return;\n }\n const nativeSetLocalDescription = window.RTCPeerConnection.prototype.setLocalDescription;\n if (!nativeSetLocalDescription || nativeSetLocalDescription.length === 0) {\n return;\n }\n window.RTCPeerConnection.prototype.setLocalDescription = function setLocalDescription() {\n let desc = arguments[0] || {};\n if (typeof desc !== 'object' || desc.type && desc.sdp) {\n return nativeSetLocalDescription.apply(this, arguments);\n }\n // The remaining steps should technically happen when SLD comes off the\n // RTCPeerConnection's operations chain (not ahead of going on it), but\n // this is too difficult to shim. Instead, this shim only covers the\n // common case where the operations chain is empty. This is imperfect, but\n // should cover many cases. Rationale: Even if we can't reduce the glare\n // window to zero on imperfect implementations, there's value in tapping\n // into the perfect negotiation pattern that several browsers support.\n desc = {\n type: desc.type,\n sdp: desc.sdp\n };\n if (!desc.type) {\n switch (this.signalingState) {\n case 'stable':\n case 'have-local-offer':\n case 'have-remote-pranswer':\n desc.type = 'offer';\n break;\n default:\n desc.type = 'answer';\n break;\n }\n }\n if (desc.sdp || desc.type !== 'offer' && desc.type !== 'answer') {\n return nativeSetLocalDescription.apply(this, [desc]);\n }\n const func = desc.type === 'offer' ? this.createOffer : this.createAnswer;\n return func.apply(this).then(d => nativeSetLocalDescription.apply(this, [d]));\n };\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\nimport * as utils from './utils';\n\n// Browser shims.\nimport * as chromeShim from './chrome/chrome_shim';\nimport * as firefoxShim from './firefox/firefox_shim';\nimport * as safariShim from './safari/safari_shim';\nimport * as commonShim from './common_shim';\nimport * as sdp from 'sdp';\n\n// Shimming starts here.\nexport function adapterFactory() {\n let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n window = _ref.window;\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n shimChrome: true,\n shimFirefox: true,\n shimSafari: true\n };\n // Utils.\n const logging = utils.log;\n const browserDetails = utils.detectBrowser(window);\n const adapter = {\n browserDetails,\n commonShim,\n extractVersion: utils.extractVersion,\n disableLog: utils.disableLog,\n disableWarnings: utils.disableWarnings,\n // Expose sdp as a convenience. For production apps include directly.\n sdp\n };\n\n // Shim browser if found.\n switch (browserDetails.browser) {\n case 'chrome':\n if (!chromeShim || !chromeShim.shimPeerConnection || !options.shimChrome) {\n logging('Chrome shim is not included in this adapter release.');\n return adapter;\n }\n if (browserDetails.version === null) {\n logging('Chrome shim can not determine version, not shimming.');\n return adapter;\n }\n logging('adapter.js shimming chrome.');\n // Export to the adapter global object visible in the browser.\n adapter.browserShim = chromeShim;\n\n // Must be called before shimPeerConnection.\n commonShim.shimAddIceCandidateNullOrEmpty(window, browserDetails);\n commonShim.shimParameterlessSetLocalDescription(window, browserDetails);\n chromeShim.shimGetUserMedia(window, browserDetails);\n chromeShim.shimMediaStream(window, browserDetails);\n chromeShim.shimPeerConnection(window, browserDetails);\n chromeShim.shimOnTrack(window, browserDetails);\n chromeShim.shimAddTrackRemoveTrack(window, browserDetails);\n chromeShim.shimGetSendersWithDtmf(window, browserDetails);\n chromeShim.shimGetStats(window, browserDetails);\n chromeShim.shimSenderReceiverGetStats(window, browserDetails);\n chromeShim.fixNegotiationNeeded(window, browserDetails);\n commonShim.shimRTCIceCandidate(window, browserDetails);\n commonShim.shimRTCIceCandidateRelayProtocol(window, browserDetails);\n commonShim.shimConnectionState(window, browserDetails);\n commonShim.shimMaxMessageSize(window, browserDetails);\n commonShim.shimSendThrowTypeError(window, browserDetails);\n commonShim.removeExtmapAllowMixed(window, browserDetails);\n break;\n case 'firefox':\n if (!firefoxShim || !firefoxShim.shimPeerConnection || !options.shimFirefox) {\n logging('Firefox shim is not included in this adapter release.');\n return adapter;\n }\n logging('adapter.js shimming firefox.');\n // Export to the adapter global object visible in the browser.\n adapter.browserShim = firefoxShim;\n\n // Must be called before shimPeerConnection.\n commonShim.shimAddIceCandidateNullOrEmpty(window, browserDetails);\n commonShim.shimParameterlessSetLocalDescription(window, browserDetails);\n firefoxShim.shimGetUserMedia(window, browserDetails);\n firefoxShim.shimPeerConnection(window, browserDetails);\n firefoxShim.shimOnTrack(window, browserDetails);\n firefoxShim.shimRemoveStream(window, browserDetails);\n firefoxShim.shimSenderGetStats(window, browserDetails);\n firefoxShim.shimReceiverGetStats(window, browserDetails);\n firefoxShim.shimRTCDataChannel(window, browserDetails);\n firefoxShim.shimAddTransceiver(window, browserDetails);\n firefoxShim.shimGetParameters(window, browserDetails);\n firefoxShim.shimCreateOffer(window, browserDetails);\n firefoxShim.shimCreateAnswer(window, browserDetails);\n commonShim.shimRTCIceCandidate(window, browserDetails);\n commonShim.shimConnectionState(window, browserDetails);\n commonShim.shimMaxMessageSize(window, browserDetails);\n commonShim.shimSendThrowTypeError(window, browserDetails);\n break;\n case 'safari':\n if (!safariShim || !options.shimSafari) {\n logging('Safari shim is not included in this adapter release.');\n return adapter;\n }\n logging('adapter.js shimming safari.');\n // Export to the adapter global object visible in the browser.\n adapter.browserShim = safariShim;\n\n // Must be called before shimCallbackAPI.\n commonShim.shimAddIceCandidateNullOrEmpty(window, browserDetails);\n commonShim.shimParameterlessSetLocalDescription(window, browserDetails);\n safariShim.shimRTCIceServerUrls(window, browserDetails);\n safariShim.shimCreateOfferLegacy(window, browserDetails);\n safariShim.shimCallbacksAPI(window, browserDetails);\n safariShim.shimLocalStreamsAPI(window, browserDetails);\n safariShim.shimRemoteStreamsAPI(window, browserDetails);\n safariShim.shimTrackEventTransceiver(window, browserDetails);\n safariShim.shimGetUserMedia(window, browserDetails);\n safariShim.shimAudioContext(window, browserDetails);\n commonShim.shimRTCIceCandidate(window, browserDetails);\n commonShim.shimRTCIceCandidateRelayProtocol(window, browserDetails);\n commonShim.shimMaxMessageSize(window, browserDetails);\n commonShim.shimSendThrowTypeError(window, browserDetails);\n commonShim.removeExtmapAllowMixed(window, browserDetails);\n break;\n default:\n logging('Unsupported browser!');\n break;\n }\n return adapter;\n}","/*\n * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree.\n */\n/* eslint-env node */\n\n'use strict';\n\nimport { adapterFactory } from './adapter_factory.js';\nconst adapter = adapterFactory({\n window: typeof window === 'undefined' ? undefined : window\n});\nexport default adapter;","!function (t, e) {\n \"object\" == typeof exports && \"object\" == typeof module ? module.exports = e(require(\"vue\")) : \"function\" == typeof define && define.amd ? define(\"VueToast\", [\"vue\"], e) : \"object\" == typeof exports ? exports.VueToast = e(require(\"vue\")) : t.VueToast = e(t.Vue);\n}(\"undefined\" != typeof self ? self : this, function (t) {\n return function (t) {\n var e = {};\n function n(o) {\n if (e[o]) return e[o].exports;\n var i = e[o] = {\n i: o,\n l: !1,\n exports: {}\n };\n return t[o].call(i.exports, i, i.exports, n), i.l = !0, i.exports;\n }\n return n.m = t, n.c = e, n.d = function (t, e, o) {\n n.o(t, e) || Object.defineProperty(t, e, {\n enumerable: !0,\n get: o\n });\n }, n.r = function (t) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n }, n.t = function (t, e) {\n if (1 & e && (t = n(t)), 8 & e) return t;\n if (4 & e && \"object\" == typeof t && t && t.__esModule) return t;\n var o = Object.create(null);\n if (n.r(o), Object.defineProperty(o, \"default\", {\n enumerable: !0,\n value: t\n }), 2 & e && \"string\" != typeof t) for (var i in t) n.d(o, i, function (e) {\n return t[e];\n }.bind(null, i));\n return o;\n }, n.n = function (t) {\n var e = t && t.__esModule ? function () {\n return t.default;\n } : function () {\n return t;\n };\n return n.d(e, \"a\", e), e;\n }, n.o = function (t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }, n.p = \"\", n(n.s = 3);\n }([function (e, n) {\n e.exports = t;\n },,, function (t, e, n) {\n \"use strict\";\n\n n.r(e);\n var o = function (t) {\n void 0 !== t.remove ? t.remove() : t.parentNode.removeChild(t);\n },\n i = \"undefined\" != typeof window ? window.HTMLElement : Object,\n s = n(0),\n r = new (n.n(s).a)();\n var a = function (t, e, n, o, i, s, r, a) {\n var u,\n c = \"function\" == typeof t ? t.options : t;\n if (e && (c.render = e, c.staticRenderFns = n, c._compiled = !0), o && (c.functional = !0), s && (c._scopeId = \"data-v-\" + s), r ? (u = function (t) {\n (t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || \"undefined\" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__), i && i.call(this, t), t && t._registeredComponents && t._registeredComponents.add(r);\n }, c._ssrRegister = u) : i && (u = a ? function () {\n i.call(this, this.$root.$options.shadowRoot);\n } : i), u) if (c.functional) {\n c._injectStyles = u;\n var l = c.render;\n c.render = function (t, e) {\n return u.call(e), l(t, e);\n };\n } else {\n var p = c.beforeCreate;\n c.beforeCreate = p ? [].concat(p, u) : [u];\n }\n return {\n exports: t,\n options: c\n };\n }({\n name: \"toast\",\n props: {\n message: {\n type: String,\n required: !0\n },\n type: {\n type: String,\n default: \"success\"\n },\n position: {\n type: String,\n default: \"bottom-right\"\n },\n duration: {\n type: Number,\n default: 3e3\n },\n dismissible: {\n type: Boolean,\n default: !0\n },\n onClose: {\n type: Function,\n default: function () {}\n },\n onClick: {\n type: Function,\n default: function () {}\n },\n queue: Boolean,\n container: {\n type: [Object, Function, i],\n default: null\n }\n },\n data: function () {\n return {\n isActive: !1,\n parentTop: null,\n parentBottom: null\n };\n },\n beforeMount: function () {\n this.setupContainer();\n },\n mounted: function () {\n this.showNotice(), r.$on(\"toast.clear\", this.close);\n },\n methods: {\n setupContainer: function () {\n if (this.parentTop = document.querySelector(\".notices.is-top\"), this.parentBottom = document.querySelector(\".notices.is-bottom\"), !this.parentTop || !this.parentBottom) {\n this.parentTop || (this.parentTop = document.createElement(\"div\"), this.parentTop.className = \"notices is-top\"), this.parentBottom || (this.parentBottom = document.createElement(\"div\"), this.parentBottom.className = \"notices is-bottom\");\n var t = this.container || document.body;\n t.appendChild(this.parentTop), t.appendChild(this.parentBottom);\n this.container && (this.parentTop.classList.add(\"is-custom-parent\"), this.parentBottom.classList.add(\"is-custom-parent\"));\n }\n },\n shouldQueue: function () {\n return !!this.queue && (this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0);\n },\n close: function () {\n var t = arguments,\n e = this;\n clearTimeout(this.timer), this.isActive = !1, setTimeout(function () {\n e.onClose.apply(null, t), e.$destroy(), o(e.$el);\n }, 150);\n },\n showNotice: function () {\n var t = this;\n this.shouldQueue() ? setTimeout(function () {\n return t.showNotice();\n }, 250) : (this.correctParent.insertAdjacentElement(\"afterbegin\", this.$el), this.isActive = !0, this.timer = setTimeout(function () {\n return t.close();\n }, this.duration));\n },\n whenClicked: function () {\n this.dismissible && (this.onClick.apply(null, arguments), this.close());\n }\n },\n computed: {\n correctParent: function () {\n switch (this.position) {\n case \"top-right\":\n case \"top\":\n case \"top-left\":\n return this.parentTop;\n case \"bottom-right\":\n case \"bottom\":\n case \"bottom-left\":\n return this.parentBottom;\n }\n },\n transition: function () {\n switch (this.position) {\n case \"top-right\":\n case \"top\":\n case \"top-left\":\n return {\n enter: \"fadeInDown\",\n leave: \"fadeOut\"\n };\n case \"bottom-right\":\n case \"bottom\":\n case \"bottom-left\":\n return {\n enter: \"fadeInUp\",\n leave: \"fadeOut\"\n };\n }\n }\n }\n }, function () {\n var t = this,\n e = t.$createElement,\n n = t._self._c || e;\n return n(\"transition\", {\n attrs: {\n \"enter-active-class\": t.transition.enter,\n \"leave-active-class\": t.transition.leave\n }\n }, [n(\"div\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: t.isActive,\n expression: \"isActive\"\n }],\n staticClass: \"toast\",\n class: [\"toast-\" + t.type, \"is-\" + t.position],\n attrs: {\n role: \"alert\"\n },\n on: {\n click: t.whenClicked\n }\n }, [n(\"div\", {\n staticClass: \"toast-icon\"\n }), t._v(\" \"), n(\"p\", {\n staticClass: \"toast-text\"\n }, [t._v(t._s(t.message))])])]);\n }, [], !1, null, null, null).exports,\n u = function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return {\n open: function (n) {\n var o;\n \"string\" == typeof n && (o = n);\n var i = {\n message: o\n },\n s = Object.assign({}, i, e, n);\n return new (t.extend(a))({\n el: document.createElement(\"div\"),\n propsData: s\n });\n },\n clear: function () {\n r.$emit(\"toast.clear\");\n },\n success: function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return this.open(Object.assign({}, {\n message: t,\n type: \"success\"\n }, e));\n },\n error: function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return this.open(Object.assign({}, {\n message: t,\n type: \"error\"\n }, e));\n },\n info: function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return this.open(Object.assign({}, {\n message: t,\n type: \"info\"\n }, e));\n },\n warning: function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return this.open(Object.assign({}, {\n message: t,\n type: \"warning\"\n }, e));\n },\n default: function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return this.open(Object.assign({}, {\n message: t,\n type: \"default\"\n }, e));\n }\n };\n };\n a.install = function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n n = u(t, e);\n t.$toast = n, t.prototype.$toast = n;\n };\n e.default = a;\n }]).default;\n});","import a from \"validate-color\";\nimport t from \"color\";\nvar e = [\"success\", \"warning\", \"error\", \"info\", \"loading\"],\n i = {\n success: \"#A5DC86\",\n warning: \"#F8BB86\",\n error: \"#F27474\",\n info: \"#59BDED\",\n loading: \"#758BE2\"\n },\n o = {\n name: \"sweetalert-icon\",\n props: {\n icon: {\n type: String,\n default: \"success\",\n validator: function (a) {\n return -1 !== e.indexOf(a);\n }\n },\n color: {\n type: String,\n validator: a\n }\n },\n computed: {\n cssVars: function () {\n var e = a(this.color) ? this.color : i[this.icon];\n return {\n \"--icon-color\": e,\n \"--icon-color-alpha\": t(e).alpha(.25)\n };\n }\n },\n methods: {\n isIcon: function (a) {\n return a === this.icon;\n }\n }\n };\nfunction r(a, t, e, i, o, r, n, s, d, p) {\n \"boolean\" != typeof n && (d = s, s = n, n = !1);\n var l,\n c = \"function\" == typeof e ? e.options : e;\n if (a && a.render && (c.render = a.render, c.staticRenderFns = a.staticRenderFns, c._compiled = !0, o && (c.functional = !0)), i && (c._scopeId = i), r ? (l = function (a) {\n (a = a || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || \"undefined\" == typeof __VUE_SSR_CONTEXT__ || (a = __VUE_SSR_CONTEXT__), t && t.call(this, d(a)), a && a._registeredComponents && a._registeredComponents.add(r);\n }, c._ssrRegister = l) : t && (l = n ? function (a) {\n t.call(this, p(a, this.$root.$options.shadowRoot));\n } : function (a) {\n t.call(this, s(a));\n }), l) if (c.functional) {\n var f = c.render;\n c.render = function (a, t) {\n return l.call(t), f(a, t);\n };\n } else {\n var x = c.beforeCreate;\n c.beforeCreate = x ? [].concat(x, l) : [l];\n }\n return e;\n}\nvar n,\n s = \"undefined\" != typeof navigator && /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\nfunction d(a) {\n return function (a, t) {\n return function (a, t) {\n var e = s ? t.media || \"default\" : a,\n i = p[e] || (p[e] = {\n ids: new Set(),\n styles: []\n });\n if (!i.ids.has(a)) {\n i.ids.add(a);\n var o = t.source;\n if (t.map && (o += \"\\n/*# sourceURL=\" + t.map.sources[0] + \" */\", o += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(t.map)))) + \" */\"), i.element || (i.element = document.createElement(\"style\"), i.element.type = \"text/css\", t.media && i.element.setAttribute(\"media\", t.media), void 0 === n && (n = document.head || document.getElementsByTagName(\"head\")[0]), n.appendChild(i.element)), \"styleSheet\" in i.element) i.styles.push(o), i.element.styleSheet.cssText = i.styles.filter(Boolean).join(\"\\n\");else {\n var r = i.ids.size - 1,\n d = document.createTextNode(o),\n l = i.element.childNodes;\n l[r] && i.element.removeChild(l[r]), l.length ? i.element.insertBefore(d, l[r]) : i.element.appendChild(d);\n }\n }\n }(a, t);\n };\n}\nvar p = {};\nvar l = r({\n render: function () {\n var a = this,\n t = a.$createElement,\n e = a._self._c || t;\n return e(\"div\", {\n staticClass: \"sa\",\n style: a.cssVars\n }, [a.isIcon(\"error\") ? e(\"div\", {\n staticClass: \"sa-error\"\n }, [a._m(0), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-error-placeholder\"\n }), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-error-fix\"\n })]) : a.isIcon(\"warning\") ? e(\"div\", {\n staticClass: \"sa-warning\"\n }, [e(\"div\", {\n staticClass: \"sa-warning-body\"\n }), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-warning-dot\"\n })]) : a.isIcon(\"info\") ? e(\"div\", {\n staticClass: \"sa-info\"\n }, [e(\"div\", {\n staticClass: \"sa-info-body\"\n }), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-info-dot\"\n })]) : a.isIcon(\"loading\") ? e(\"div\", {\n staticClass: \"sa-loading\"\n }, [e(\"div\", {\n staticClass: \"sa-loading-body\"\n })]) : e(\"div\", {\n staticClass: \"sa-success\"\n }, [e(\"div\", {\n staticClass: \"sa-success-tip\"\n }), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-success-long\"\n }), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-success-placeholder\"\n }), a._v(\" \"), e(\"div\", {\n staticClass: \"sa-success-fix\"\n })])]);\n },\n staticRenderFns: [function () {\n var a = this.$createElement,\n t = this._self._c || a;\n return t(\"div\", {\n staticClass: \"sa-error-x\"\n }, [t(\"div\", {\n staticClass: \"sa-error-left\"\n }), this._v(\" \"), t(\"div\", {\n staticClass: \"sa-error-right\"\n })]);\n }]\n}, function (a) {\n a && a(\"data-v-64363378_0\", {\n source: 'body[data-v-64363378]{--sweetalert-icons-animation-background:transparent}.sa[data-v-64363378]{width:140px;height:140px;padding:26px;margin:auto}.sa-loading[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color-alpha);box-sizing:content-box;height:80px;left:-4px;position:relative;top:-4px;width:80px;z-index:2;border-top:4px solid var(--icon-color);-webkit-animation:animateLoadingSpin-data-v-64363378 .75s infinite;animation:animateLoadingSpin-data-v-64363378 .75s infinite}.sa-error[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color);box-sizing:content-box;height:80px;padding:0;position:relative;width:80px;-webkit-animation:animateErrorIcon-data-v-64363378 .5s;animation:animateErrorIcon-data-v-64363378 .5s}.sa-error[data-v-64363378]:after,.sa-error[data-v-64363378]:before{content:\"\";height:120px;position:absolute;transform:rotate(45deg);width:60px}.sa-error[data-v-64363378]:before{border-radius:40px 0 0 40px;width:26px;height:80px;top:-17px;left:5px;transform-origin:60px 60px;transform:rotate(-45deg)}.sa-error[data-v-64363378]:after{border-radius:0 120px 120px 0;left:30px;top:-11px;transform-origin:0 60px;transform:rotate(-45deg);-webkit-animation:rotatePlaceholder-data-v-64363378 4.25s ease-in;animation:rotatePlaceholder-data-v-64363378 4.25s ease-in}.sa-error-x[data-v-64363378]{display:block;position:relative;z-index:2}.sa-error-placeholder[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color-alpha);box-sizing:content-box;height:80px;left:-4px;position:absolute;top:-4px;width:80px;z-index:2}.sa-error-fix[data-v-64363378]{height:90px;left:28px;position:absolute;top:8px;transform:rotate(-45deg);width:5px;z-index:1}.sa-error-left[data-v-64363378],.sa-error-right[data-v-64363378]{border-radius:2px;display:block;height:5px;position:absolute;z-index:2;background-color:var(--icon-color);top:37px;width:47px}.sa-error-left[data-v-64363378]{left:17px;transform:rotate(45deg);-webkit-animation:animateXLeft-data-v-64363378 .75s;animation:animateXLeft-data-v-64363378 .75s}.sa-error-right[data-v-64363378]{right:16px;transform:rotate(-45deg);-webkit-animation:animateXRight-data-v-64363378 .75s;animation:animateXRight-data-v-64363378 .75s}.sa-warning[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color);box-sizing:content-box;height:80px;padding:0;position:relative;width:80px;-webkit-animation:scaleWarning-data-v-64363378 .75s infinite alternate;animation:scaleWarning-data-v-64363378 .75s infinite alternate}.sa-warning[data-v-64363378]:after,.sa-warning[data-v-64363378]:before{content:\"\";border-radius:50%;height:100%;position:absolute;width:100%}.sa-warning[data-v-64363378]:before{display:inline-block;opacity:0;-webkit-animation:pulseWarning-data-v-64363378 2s linear infinite;animation:pulseWarning-data-v-64363378 2s linear infinite}.sa-warning[data-v-64363378]:after{display:block;z-index:1}.sa-warning-body[data-v-64363378]{background-color:var(--icon-color);border-radius:2px;height:47px;left:50%;margin-left:-2px;position:absolute;top:10px;width:5px;z-index:2;-webkit-animation:pulseWarningIns-data-v-64363378 .75s infinite alternate;animation:pulseWarningIns-data-v-64363378 .75s infinite alternate}.sa-warning-dot[data-v-64363378]{background-color:var(--icon-color);border-radius:50%;bottom:10px;height:7px;left:50%;margin-left:-3px;position:absolute;width:7px;z-index:2;-webkit-animation:pulseWarningIns-data-v-64363378 .75s infinite alternate;animation:pulseWarningIns-data-v-64363378 .75s infinite alternate}.sa-info[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color);box-sizing:content-box;height:80px;padding:0;position:relative;width:80px;-webkit-animation:scaleInfo-data-v-64363378 .75s infinite alternate;animation:scaleInfo-data-v-64363378 .75s infinite alternate}.sa-info[data-v-64363378]:after,.sa-info[data-v-64363378]:before{content:\"\";border-radius:50%;height:100%;position:absolute;width:100%}.sa-info[data-v-64363378]:before{display:inline-block;opacity:0;-webkit-animation:pulseInfo-data-v-64363378 2s linear infinite;animation:pulseInfo-data-v-64363378 2s linear infinite}.sa-info[data-v-64363378]:after{display:block;z-index:1}.sa-info-body[data-v-64363378]{background-color:var(--icon-color);border-radius:2px;height:47px;left:50%;margin-left:-2px;position:absolute;top:10px;width:5px;z-index:2;-webkit-animation:pulseInfoIns-data-v-64363378 .75s infinite alternate;animation:pulseInfoIns-data-v-64363378 .75s infinite alternate}.sa-info-dot[data-v-64363378]{background-color:var(--icon-color);border-radius:50%;bottom:10px;height:7px;left:50%;margin-left:-3px;position:absolute;width:7px;z-index:2;-webkit-animation:pulseInfoIns-data-v-64363378 .75s infinite alternate;animation:pulseInfoIns-data-v-64363378 .75s infinite alternate}.sa-success[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color);box-sizing:content-box;height:80px;padding:0;position:relative;width:80px;background-color:var(--sweetalert-icons-animation-background)}.sa-success[data-v-64363378]:after,.sa-success[data-v-64363378]:before{background-color:var(--sweetalert-icons-animation-background);content:\"\";height:120px;position:absolute;transform:rotate(45deg);width:60px}.sa-success[data-v-64363378]:before{border-radius:40px 0 0 40px;width:26px;height:80px;top:-17px;left:5px;transform-origin:60px 60px;transform:rotate(-45deg)}.sa-success[data-v-64363378]:after{border-radius:0 120px 120px 0;left:30px;top:-11px;transform-origin:0 60px;transform:rotate(-45deg);-webkit-animation:rotatePlaceholder-data-v-64363378 4.25s ease-in;animation:rotatePlaceholder-data-v-64363378 4.25s ease-in}.sa-success-placeholder[data-v-64363378]{border-radius:50%;border:4px solid var(--icon-color-alpha);box-sizing:content-box;height:80px;left:-4px;position:absolute;top:-4px;width:80px;z-index:2}.sa-success-fix[data-v-64363378]{background-color:var(--sweetalert-icons-animation-background);height:90px;left:28px;position:absolute;top:8px;transform:rotate(-45deg);width:5px;z-index:1}.sa-success-long[data-v-64363378],.sa-success-tip[data-v-64363378]{background-color:var(--icon-color);border-radius:2px;height:5px;position:absolute;z-index:2}.sa-success-tip[data-v-64363378]{left:14px;top:46px;transform:rotate(45deg);width:25px;-webkit-animation:animateSuccessTip-data-v-64363378 .75s;animation:animateSuccessTip-data-v-64363378 .75s}.sa-success-long[data-v-64363378]{right:8px;top:38px;transform:rotate(-45deg);width:47px;-webkit-animation:animateSuccessLong-data-v-64363378 .75s;animation:animateSuccessLong-data-v-64363378 .75s}@-webkit-keyframes animateSuccessTip-data-v-64363378{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip-data-v-64363378{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong-data-v-64363378{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong-data-v-64363378{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@-webkit-keyframes rotatePlaceholder-data-v-64363378{0%,5%{transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg)}}@keyframes rotatePlaceholder-data-v-64363378{0%,5%{transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg)}}@-webkit-keyframes scaleWarning-data-v-64363378{0%{transform:scale(1)}30%{transform:scale(1.02)}100%{transform:scale(1)}}@keyframes scaleWarning-data-v-64363378{0%{transform:scale(1)}30%{transform:scale(1.02)}100%{transform:scale(1)}}@-webkit-keyframes pulseWarning-data-v-64363378{0%{transform:scale(1);opacity:.5}30%{transform:scale(1);opacity:.5}100%{background-color:var(--icon-color);transform:scale(2);opacity:0}}@keyframes pulseWarning-data-v-64363378{0%{transform:scale(1);opacity:.5}30%{transform:scale(1);opacity:.5}100%{background-color:var(--icon-color);transform:scale(2);opacity:0}}@-webkit-keyframes pulseWarningIns-data-v-64363378{0%{filter:brightness(1.2)}100%{filter:brightness(1)}}@keyframes pulseWarningIns-data-v-64363378{0%{filter:brightness(1.2)}100%{filter:brightness(1)}}@-webkit-keyframes scaleInfo-data-v-64363378{0%{transform:scale(1)}30%{transform:scale(1.02)}100%{transform:scale(1)}}@keyframes scaleInfo-data-v-64363378{0%{transform:scale(1)}30%{transform:scale(1.02)}100%{transform:scale(1)}}@-webkit-keyframes pulseInfo-data-v-64363378{0%{transform:scale(1);opacity:.5}30%{transform:scale(1);opacity:.5}100%{background-color:var(--icon-color);transform:scale(2);opacity:0}}@keyframes pulseInfo-data-v-64363378{0%{transform:scale(1);opacity:.5}30%{transform:scale(1);opacity:.5}100%{background-color:var(--icon-color);transform:scale(2);opacity:0}}@-webkit-keyframes pulseInfoIns-data-v-64363378{0%{background-color:var(--icon-color)}100%{background-color:var(--icon-color)}}@keyframes pulseInfoIns-data-v-64363378{0%{background-color:var(--icon-color)}100%{background-color:var(--icon-color)}}@-webkit-keyframes animateErrorIcon-data-v-64363378{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes animateErrorIcon-data-v-64363378{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes animateXLeft-data-v-64363378{0%,65%{left:82px;top:95px;width:0}84%{left:14px;top:33px;width:47px}100%{left:17px;top:37px;width:47px}}@keyframes animateXLeft-data-v-64363378{0%,65%{left:82px;top:95px;width:0}84%{left:14px;top:33px;width:47px}100%{left:17px;top:37px;width:47px}}@-webkit-keyframes animateXRight-data-v-64363378{0%,65%{right:82px;top:95px;width:0}84%{right:14px;top:33px;width:47px}100%{right:16px;top:37px;width:47px}}@keyframes animateXRight-data-v-64363378{0%,65%{right:82px;top:95px;width:0}84%{right:14px;top:33px;width:47px}100%{right:16px;top:37px;width:47px}}@-webkit-keyframes animateLoadingSpin-data-v-64363378{0%{transform:rotate(-45deg)}100%{transform:rotate(-405deg)}}@keyframes animateLoadingSpin-data-v-64363378{0%{transform:rotate(-45deg)}100%{transform:rotate(-405deg)}}',\n map: void 0,\n media: void 0\n });\n}, o, \"data-v-64363378\", !1, void 0, !1, d, void 0, void 0);\nfunction c(a) {\n c.installed || (c.installed = !0, a.component(\"SweetalertIcon\", l));\n}\nvar f = {\n install: c\n },\n x = null;\n\"undefined\" != typeof window ? x = window.Vue : \"undefined\" != typeof global && (x = global.Vue), x && x.use(f), l.install = c;\nexport default l;\nexport { l as SweetalertIcon };","'use strict';\n\nvar colorString = require('color-string');\nvar convert = require('color-convert');\nvar _slice = [].slice;\nvar skippedModels = [\n// to be honest, I don't really feel like keyword belongs in color convert, but eh.\n'keyword',\n// gray conflicts with some method names, and has its own method defined.\n'gray',\n// shouldn't really be in color-convert either...\n'hex'];\nvar hashedModelKeys = {};\nObject.keys(convert).forEach(function (model) {\n hashedModelKeys[_slice.call(convert[model].labels).sort().join('')] = model;\n});\nvar limiters = {};\nfunction Color(obj, model) {\n if (!(this instanceof Color)) {\n return new Color(obj, model);\n }\n if (model && model in skippedModels) {\n model = null;\n }\n if (model && !(model in convert)) {\n throw new Error('Unknown model: ' + model);\n }\n var i;\n var channels;\n if (obj == null) {\n // eslint-disable-line no-eq-null,eqeqeq\n this.model = 'rgb';\n this.color = [0, 0, 0];\n this.valpha = 1;\n } else if (obj instanceof Color) {\n this.model = obj.model;\n this.color = obj.color.slice();\n this.valpha = obj.valpha;\n } else if (typeof obj === 'string') {\n var result = colorString.get(obj);\n if (result === null) {\n throw new Error('Unable to parse color from string: ' + obj);\n }\n this.model = result.model;\n channels = convert[this.model].channels;\n this.color = result.value.slice(0, channels);\n this.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;\n } else if (obj.length) {\n this.model = model || 'rgb';\n channels = convert[this.model].channels;\n var newArr = _slice.call(obj, 0, channels);\n this.color = zeroArray(newArr, channels);\n this.valpha = typeof obj[channels] === 'number' ? obj[channels] : 1;\n } else if (typeof obj === 'number') {\n // this is always RGB - can be converted later on.\n obj &= 0xFFFFFF;\n this.model = 'rgb';\n this.color = [obj >> 16 & 0xFF, obj >> 8 & 0xFF, obj & 0xFF];\n this.valpha = 1;\n } else {\n this.valpha = 1;\n var keys = Object.keys(obj);\n if ('alpha' in obj) {\n keys.splice(keys.indexOf('alpha'), 1);\n this.valpha = typeof obj.alpha === 'number' ? obj.alpha : 0;\n }\n var hashedKeys = keys.sort().join('');\n if (!(hashedKeys in hashedModelKeys)) {\n throw new Error('Unable to parse color from object: ' + JSON.stringify(obj));\n }\n this.model = hashedModelKeys[hashedKeys];\n var labels = convert[this.model].labels;\n var color = [];\n for (i = 0; i < labels.length; i++) {\n color.push(obj[labels[i]]);\n }\n this.color = zeroArray(color);\n }\n\n // perform limitations (clamping, etc.)\n if (limiters[this.model]) {\n channels = convert[this.model].channels;\n for (i = 0; i < channels; i++) {\n var limit = limiters[this.model][i];\n if (limit) {\n this.color[i] = limit(this.color[i]);\n }\n }\n }\n this.valpha = Math.max(0, Math.min(1, this.valpha));\n if (Object.freeze) {\n Object.freeze(this);\n }\n}\nColor.prototype = {\n toString: function () {\n return this.string();\n },\n toJSON: function () {\n return this[this.model]();\n },\n string: function (places) {\n var self = this.model in colorString.to ? this : this.rgb();\n self = self.round(typeof places === 'number' ? places : 1);\n var args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);\n return colorString.to[self.model](args);\n },\n percentString: function (places) {\n var self = this.rgb().round(typeof places === 'number' ? places : 1);\n var args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);\n return colorString.to.rgb.percent(args);\n },\n array: function () {\n return this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha);\n },\n object: function () {\n var result = {};\n var channels = convert[this.model].channels;\n var labels = convert[this.model].labels;\n for (var i = 0; i < channels; i++) {\n result[labels[i]] = this.color[i];\n }\n if (this.valpha !== 1) {\n result.alpha = this.valpha;\n }\n return result;\n },\n unitArray: function () {\n var rgb = this.rgb().color;\n rgb[0] /= 255;\n rgb[1] /= 255;\n rgb[2] /= 255;\n if (this.valpha !== 1) {\n rgb.push(this.valpha);\n }\n return rgb;\n },\n unitObject: function () {\n var rgb = this.rgb().object();\n rgb.r /= 255;\n rgb.g /= 255;\n rgb.b /= 255;\n if (this.valpha !== 1) {\n rgb.alpha = this.valpha;\n }\n return rgb;\n },\n round: function (places) {\n places = Math.max(places || 0, 0);\n return new Color(this.color.map(roundToPlace(places)).concat(this.valpha), this.model);\n },\n alpha: function (val) {\n if (arguments.length) {\n return new Color(this.color.concat(Math.max(0, Math.min(1, val))), this.model);\n }\n return this.valpha;\n },\n // rgb\n red: getset('rgb', 0, maxfn(255)),\n green: getset('rgb', 1, maxfn(255)),\n blue: getset('rgb', 2, maxfn(255)),\n hue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, function (val) {\n return (val % 360 + 360) % 360;\n }),\n // eslint-disable-line brace-style\n\n saturationl: getset('hsl', 1, maxfn(100)),\n lightness: getset('hsl', 2, maxfn(100)),\n saturationv: getset('hsv', 1, maxfn(100)),\n value: getset('hsv', 2, maxfn(100)),\n chroma: getset('hcg', 1, maxfn(100)),\n gray: getset('hcg', 2, maxfn(100)),\n white: getset('hwb', 1, maxfn(100)),\n wblack: getset('hwb', 2, maxfn(100)),\n cyan: getset('cmyk', 0, maxfn(100)),\n magenta: getset('cmyk', 1, maxfn(100)),\n yellow: getset('cmyk', 2, maxfn(100)),\n black: getset('cmyk', 3, maxfn(100)),\n x: getset('xyz', 0, maxfn(100)),\n y: getset('xyz', 1, maxfn(100)),\n z: getset('xyz', 2, maxfn(100)),\n l: getset('lab', 0, maxfn(100)),\n a: getset('lab', 1),\n b: getset('lab', 2),\n keyword: function (val) {\n if (arguments.length) {\n return new Color(val);\n }\n return convert[this.model].keyword(this.color);\n },\n hex: function (val) {\n if (arguments.length) {\n return new Color(val);\n }\n return colorString.to.hex(this.rgb().round().color);\n },\n rgbNumber: function () {\n var rgb = this.rgb().color;\n return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;\n },\n luminosity: function () {\n // http://www.w3.org/TR/WCAG20/#relativeluminancedef\n var rgb = this.rgb().color;\n var lum = [];\n for (var i = 0; i < rgb.length; i++) {\n var chan = rgb[i] / 255;\n lum[i] = chan <= 0.03928 ? chan / 12.92 : Math.pow((chan + 0.055) / 1.055, 2.4);\n }\n return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n },\n contrast: function (color2) {\n // http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n var lum1 = this.luminosity();\n var lum2 = color2.luminosity();\n if (lum1 > lum2) {\n return (lum1 + 0.05) / (lum2 + 0.05);\n }\n return (lum2 + 0.05) / (lum1 + 0.05);\n },\n level: function (color2) {\n var contrastRatio = this.contrast(color2);\n if (contrastRatio >= 7.1) {\n return 'AAA';\n }\n return contrastRatio >= 4.5 ? 'AA' : '';\n },\n isDark: function () {\n // YIQ equation from http://24ways.org/2010/calculating-color-contrast\n var rgb = this.rgb().color;\n var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n return yiq < 128;\n },\n isLight: function () {\n return !this.isDark();\n },\n negate: function () {\n var rgb = this.rgb();\n for (var i = 0; i < 3; i++) {\n rgb.color[i] = 255 - rgb.color[i];\n }\n return rgb;\n },\n lighten: function (ratio) {\n var hsl = this.hsl();\n hsl.color[2] += hsl.color[2] * ratio;\n return hsl;\n },\n darken: function (ratio) {\n var hsl = this.hsl();\n hsl.color[2] -= hsl.color[2] * ratio;\n return hsl;\n },\n saturate: function (ratio) {\n var hsl = this.hsl();\n hsl.color[1] += hsl.color[1] * ratio;\n return hsl;\n },\n desaturate: function (ratio) {\n var hsl = this.hsl();\n hsl.color[1] -= hsl.color[1] * ratio;\n return hsl;\n },\n whiten: function (ratio) {\n var hwb = this.hwb();\n hwb.color[1] += hwb.color[1] * ratio;\n return hwb;\n },\n blacken: function (ratio) {\n var hwb = this.hwb();\n hwb.color[2] += hwb.color[2] * ratio;\n return hwb;\n },\n grayscale: function () {\n // http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n var rgb = this.rgb().color;\n var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n return Color.rgb(val, val, val);\n },\n fade: function (ratio) {\n return this.alpha(this.valpha - this.valpha * ratio);\n },\n opaquer: function (ratio) {\n return this.alpha(this.valpha + this.valpha * ratio);\n },\n rotate: function (degrees) {\n var hsl = this.hsl();\n var hue = hsl.color[0];\n hue = (hue + degrees) % 360;\n hue = hue < 0 ? 360 + hue : hue;\n hsl.color[0] = hue;\n return hsl;\n },\n mix: function (mixinColor, weight) {\n // ported from sass implementation in C\n // https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n if (!mixinColor || !mixinColor.rgb) {\n throw new Error('Argument to \"mix\" was not a Color instance, but rather an instance of ' + typeof mixinColor);\n }\n var color1 = mixinColor.rgb();\n var color2 = this.rgb();\n var p = weight === undefined ? 0.5 : weight;\n var w = 2 * p - 1;\n var a = color1.alpha() - color2.alpha();\n var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n var w2 = 1 - w1;\n return Color.rgb(w1 * color1.red() + w2 * color2.red(), w1 * color1.green() + w2 * color2.green(), w1 * color1.blue() + w2 * color2.blue(), color1.alpha() * p + color2.alpha() * (1 - p));\n }\n};\n\n// model conversion methods and static constructors\nObject.keys(convert).forEach(function (model) {\n if (skippedModels.indexOf(model) !== -1) {\n return;\n }\n var channels = convert[model].channels;\n\n // conversion methods\n Color.prototype[model] = function () {\n if (this.model === model) {\n return new Color(this);\n }\n if (arguments.length) {\n return new Color(arguments, model);\n }\n var newAlpha = typeof arguments[channels] === 'number' ? channels : this.valpha;\n return new Color(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha), model);\n };\n\n // 'static' construction methods\n Color[model] = function (color) {\n if (typeof color === 'number') {\n color = zeroArray(_slice.call(arguments), channels);\n }\n return new Color(color, model);\n };\n});\nfunction roundTo(num, places) {\n return Number(num.toFixed(places));\n}\nfunction roundToPlace(places) {\n return function (num) {\n return roundTo(num, places);\n };\n}\nfunction getset(model, channel, modifier) {\n model = Array.isArray(model) ? model : [model];\n model.forEach(function (m) {\n (limiters[m] || (limiters[m] = []))[channel] = modifier;\n });\n model = model[0];\n return function (val) {\n var result;\n if (arguments.length) {\n if (modifier) {\n val = modifier(val);\n }\n result = this[model]();\n result.color[channel] = val;\n return result;\n }\n result = this[model]().color[channel];\n if (modifier) {\n result = modifier(result);\n }\n return result;\n };\n}\nfunction maxfn(max) {\n return function (v) {\n return Math.max(0, Math.min(max, v));\n };\n}\nfunction assertArray(val) {\n return Array.isArray(val) ? val : [val];\n}\nfunction zeroArray(arr, length) {\n for (var i = 0; i < length; i++) {\n if (typeof arr[i] !== 'number') {\n arr[i] = 0;\n }\n }\n return arr;\n}\nmodule.exports = Color;","function createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n}\nvar _global = createCommonjsModule(function (module) {\n // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\n if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n});\n\nvar _core = createCommonjsModule(function (module) {\n var core = module.exports = {\n version: '2.6.11'\n };\n if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n});\n\nvar _core_1 = _core.version;\nvar _isObject = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\nvar _anObject = function (it) {\n if (!_isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\nvar _fails = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n// Thank's IE8 for his funny defineProperty\nvar _descriptors = !_fails(function () {\n return Object.defineProperty({}, 'a', {\n get: function () {\n return 7;\n }\n }).a != 7;\n});\nvar document$1 = _global.document;\n// typeof document.createElement is 'object' in old IE\nvar is = _isObject(document$1) && _isObject(document$1.createElement);\nvar _domCreate = function (it) {\n return is ? document$1.createElement(it) : {};\n};\nvar _ie8DomDefine = !_descriptors && !_fails(function () {\n return Object.defineProperty(_domCreate('div'), 'a', {\n get: function () {\n return 7;\n }\n }).a != 7;\n});\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\n\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nvar _toPrimitive = function (it, S) {\n if (!_isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\nvar dP = Object.defineProperty;\nvar f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n _anObject(O);\n P = _toPrimitive(P, true);\n _anObject(Attributes);\n if (_ie8DomDefine) try {\n return dP(O, P, Attributes);\n } catch (e) {/* empty */}\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\nvar _objectDp = {\n f: f\n};\nvar _propertyDesc = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\nvar _hide = _descriptors ? function (object, key, value) {\n return _objectDp.f(object, key, _propertyDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\nvar hasOwnProperty = {}.hasOwnProperty;\nvar _has = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\nvar id = 0;\nvar px = Math.random();\nvar _uid = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\nvar _shared = createCommonjsModule(function (module) {\n var SHARED = '__core-js_shared__';\n var store = _global[SHARED] || (_global[SHARED] = {});\n (module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n })('versions', []).push({\n version: _core.version,\n mode: 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n });\n});\nvar _functionToString = _shared('native-function-to-string', Function.toString);\nvar _redefine = createCommonjsModule(function (module) {\n var SRC = _uid('src');\n var TO_STRING = 'toString';\n var TPL = ('' + _functionToString).split(TO_STRING);\n _core.inspectSource = function (it) {\n return _functionToString.call(it);\n };\n (module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) _has(val, 'name') || _hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) _has(val, SRC) || _hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === _global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n _hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n _hide(O, key, val);\n }\n // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n })(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || _functionToString.call(this);\n });\n});\nvar _aFunction = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n// optional / simple context binding\n\nvar _ctx = function (fn, that, length) {\n _aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function /* ...args */\n () {\n return fn.apply(that, arguments);\n };\n};\nvar PROTOTYPE = 'prototype';\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] || (_global[name] = {}) : (_global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? _ctx(out, _global) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;\n // extend global\n if (target) _redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) _hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\n_global.core = _core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nvar _export = $export;\nvar toString = {}.toString;\nvar _cof = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\n// eslint-disable-next-line no-prototype-builtins\nvar _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return _cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n// 7.2.1 RequireObjectCoercible(argument)\nvar _defined = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\n\nvar _toIobject = function (it) {\n return _iobject(_defined(it));\n};\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nvar _toInteger = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n// 7.1.15 ToLength\n\nvar min = Math.min;\nvar _toLength = function (it) {\n return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\nvar max = Math.max;\nvar min$1 = Math.min;\nvar _toAbsoluteIndex = function (index, length) {\n index = _toInteger(index);\n return index < 0 ? max(index + length, 0) : min$1(index, length);\n};\n\n// false -> Array#indexOf\n// true -> Array#includes\n\nvar _arrayIncludes = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = _toIobject($this);\n var length = _toLength(O.length);\n var index = _toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (; length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n }\n return !IS_INCLUDES && -1;\n };\n};\nvar shared = _shared('keys');\nvar _sharedKey = function (key) {\n return shared[key] || (shared[key] = _uid(key));\n};\nvar arrayIndexOf = _arrayIncludes(false);\nvar IE_PROTO = _sharedKey('IE_PROTO');\nvar _objectKeysInternal = function (object, names) {\n var O = _toIobject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (_has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n// IE 8- don't enum bug keys\nvar _enumBugKeys = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');\n\n// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\n\nvar hiddenKeys = _enumBugKeys.concat('length', 'prototype');\nvar f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return _objectKeysInternal(O, hiddenKeys);\n};\nvar _objectGopn = {\n f: f$1\n};\nvar f$2 = Object.getOwnPropertySymbols;\nvar _objectGops = {\n f: f$2\n};\n\n// all object keys, includes non-enumerable and symbols\n\nvar Reflect = _global.Reflect;\nvar _ownKeys = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = _objectGopn.f(_anObject(it));\n var getSymbols = _objectGops.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\nvar f$3 = {}.propertyIsEnumerable;\nvar _objectPie = {\n f: f$3\n};\nvar gOPD = Object.getOwnPropertyDescriptor;\nvar f$4 = _descriptors ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = _toIobject(O);\n P = _toPrimitive(P, true);\n if (_ie8DomDefine) try {\n return gOPD(O, P);\n } catch (e) {/* empty */}\n if (_has(O, P)) return _propertyDesc(!_objectPie.f.call(O, P), O[P]);\n};\nvar _objectGopd = {\n f: f$4\n};\nvar _createProperty = function (object, index, value) {\n if (index in object) _objectDp.f(object, index, _propertyDesc(0, value));else object[index] = value;\n};\n\n// https://github.com/tc39/proposal-object-getownpropertydescriptors\n\n_export(_export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = _toIobject(object);\n var getDesc = _objectGopd.f;\n var keys = _ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) _createProperty(result, key, desc);\n }\n return result;\n }\n});\nvar _wks = createCommonjsModule(function (module) {\n var store = _shared('wks');\n var Symbol = _global.Symbol;\n var USE_SYMBOL = typeof Symbol == 'function';\n var $exports = module.exports = function (name) {\n return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name));\n };\n $exports.store = store;\n});\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = _wks('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) _hide(ArrayProto, UNSCOPABLES, {});\nvar _addToUnscopables = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\nvar _iterStep = function (done, value) {\n return {\n value: value,\n done: !!done\n };\n};\nvar _iterators = {};\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\n\nvar _objectKeys = Object.keys || function keys(O) {\n return _objectKeysInternal(O, _enumBugKeys);\n};\nvar _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {\n _anObject(O);\n var keys = _objectKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]);\n return O;\n};\nvar document$2 = _global.document;\nvar _html = document$2 && document$2.documentElement;\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n\nvar IE_PROTO$1 = _sharedKey('IE_PROTO');\nvar Empty = function () {/* empty */};\nvar PROTOTYPE$1 = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = _domCreate('iframe');\n var i = _enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n _html.appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]];\n return createDict();\n};\nvar _objectCreate = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE$1] = _anObject(O);\n result = new Empty();\n Empty[PROTOTYPE$1] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO$1] = O;\n } else result = createDict();\n return Properties === undefined ? result : _objectDps(result, Properties);\n};\nvar def = _objectDp.f;\nvar TAG = _wks('toStringTag');\nvar _setToStringTag = function (it, tag, stat) {\n if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, {\n configurable: true,\n value: tag\n });\n};\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n_hide(IteratorPrototype, _wks('iterator'), function () {\n return this;\n});\nvar _iterCreate = function (Constructor, NAME, next) {\n Constructor.prototype = _objectCreate(IteratorPrototype, {\n next: _propertyDesc(1, next)\n });\n _setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n// 7.1.13 ToObject(argument)\n\nvar _toObject = function (it) {\n return Object(_defined(it));\n};\n\n// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\n\nvar IE_PROTO$2 = _sharedKey('IE_PROTO');\nvar ObjectProto = Object.prototype;\nvar _objectGpo = Object.getPrototypeOf || function (O) {\n O = _toObject(O);\n if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n }\n return O instanceof Object ? ObjectProto : null;\n};\nvar ITERATOR = _wks('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar returnThis = function () {\n return this;\n};\nvar _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n _iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS:\n return function keys() {\n return new Constructor(this, kind);\n };\n case VALUES:\n return function values() {\n return new Constructor(this, kind);\n };\n }\n return function entries() {\n return new Constructor(this, kind);\n };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = _objectGpo($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n _setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (typeof IteratorPrototype[ITERATOR] != 'function') _hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() {\n return $native.call(this);\n };\n }\n // Define iterator\n if (BUGGY || VALUES_BUG || !proto[ITERATOR]) {\n _hide(proto, ITERATOR, $default);\n }\n // Plug for library\n _iterators[NAME] = $default;\n _iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) _redefine(proto, key, methods[key]);\n } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nvar es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {\n this._t = _toIobject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n // 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return _iterStep(1);\n }\n if (kind == 'keys') return _iterStep(0, index);\n if (kind == 'values') return _iterStep(0, O[index]);\n return _iterStep(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\n_iterators.Arguments = _iterators.Array;\n_addToUnscopables('keys');\n_addToUnscopables('values');\n_addToUnscopables('entries');\nvar ITERATOR$1 = _wks('iterator');\nvar TO_STRING_TAG = _wks('toStringTag');\nvar ArrayValues = _iterators.Array;\nvar DOMIterables = {\n CSSRuleList: true,\n // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true,\n // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true,\n // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\nfor (var collections = _objectKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = _global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR$1]) _hide(proto, ITERATOR$1, ArrayValues);\n if (!proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);\n _iterators[NAME] = ArrayValues;\n if (explicit) for (key in es6_array_iterator) if (!proto[key]) _redefine(proto, key, es6_array_iterator[key], true);\n }\n}\n\n// most Object methods by ES6 should accept primitives\n\nvar _objectSap = function (KEY, exec) {\n var fn = (_core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n _export(_export.S + _export.F * _fails(function () {\n fn(1);\n }), 'Object', exp);\n};\n\n// 19.1.2.14 Object.keys(O)\n\n_objectSap('keys', function () {\n return function keys(it) {\n return _objectKeys(_toObject(it));\n };\n});\nvar _global$1 = createCommonjsModule(function (module) {\n // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\n if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n});\n\nvar _core$1 = createCommonjsModule(function (module) {\n var core = module.exports = {\n version: '2.6.11'\n };\n if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n});\n\nvar _core_1$1 = _core$1.version;\nvar _aFunction$1 = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n// optional / simple context binding\n\nvar _ctx$1 = function (fn, that, length) {\n _aFunction$1(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function /* ...args */\n () {\n return fn.apply(that, arguments);\n };\n};\nvar _isObject$1 = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\nvar _anObject$1 = function (it) {\n if (!_isObject$1(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\nvar _fails$1 = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n// Thank's IE8 for his funny defineProperty\nvar _descriptors$1 = !_fails$1(function () {\n return Object.defineProperty({}, 'a', {\n get: function () {\n return 7;\n }\n }).a != 7;\n});\nvar document$3 = _global$1.document;\n// typeof document.createElement is 'object' in old IE\nvar is$1 = _isObject$1(document$3) && _isObject$1(document$3.createElement);\nvar _domCreate$1 = function (it) {\n return is$1 ? document$3.createElement(it) : {};\n};\nvar _ie8DomDefine$1 = !_descriptors$1 && !_fails$1(function () {\n return Object.defineProperty(_domCreate$1('div'), 'a', {\n get: function () {\n return 7;\n }\n }).a != 7;\n});\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\n\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nvar _toPrimitive$1 = function (it, S) {\n if (!_isObject$1(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !_isObject$1(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !_isObject$1(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !_isObject$1(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\nvar dP$1 = Object.defineProperty;\nvar f$5 = _descriptors$1 ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n _anObject$1(O);\n P = _toPrimitive$1(P, true);\n _anObject$1(Attributes);\n if (_ie8DomDefine$1) try {\n return dP$1(O, P, Attributes);\n } catch (e) {/* empty */}\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\nvar _objectDp$1 = {\n f: f$5\n};\nvar _propertyDesc$1 = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\nvar _hide$1 = _descriptors$1 ? function (object, key, value) {\n return _objectDp$1.f(object, key, _propertyDesc$1(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\nvar hasOwnProperty$1 = {}.hasOwnProperty;\nvar _has$1 = function (it, key) {\n return hasOwnProperty$1.call(it, key);\n};\nvar PROTOTYPE$2 = 'prototype';\nvar $export$1 = function (type, name, source) {\n var IS_FORCED = type & $export$1.F;\n var IS_GLOBAL = type & $export$1.G;\n var IS_STATIC = type & $export$1.S;\n var IS_PROTO = type & $export$1.P;\n var IS_BIND = type & $export$1.B;\n var IS_WRAP = type & $export$1.W;\n var exports = IS_GLOBAL ? _core$1 : _core$1[name] || (_core$1[name] = {});\n var expProto = exports[PROTOTYPE$2];\n var target = IS_GLOBAL ? _global$1 : IS_STATIC ? _global$1[name] : (_global$1[name] || {})[PROTOTYPE$2];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && _has$1(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? _ctx$1(out, _global$1)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0:\n return new C();\n case 1:\n return new C(a);\n case 2:\n return new C(a, b);\n }\n return new C(a, b, c);\n }\n return C.apply(this, arguments);\n };\n F[PROTOTYPE$2] = C[PROTOTYPE$2];\n return F;\n // make static versions for prototype methods\n }(out) : IS_PROTO && typeof out == 'function' ? _ctx$1(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export$1.R && expProto && !expProto[key]) _hide$1(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export$1.F = 1; // forced\n$export$1.G = 2; // global\n$export$1.S = 4; // static\n$export$1.P = 8; // proto\n$export$1.B = 16; // bind\n$export$1.W = 32; // wrap\n$export$1.U = 64; // safe\n$export$1.R = 128; // real proto method for `library`\nvar _export$1 = $export$1;\n\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n_export$1(_export$1.S + _export$1.F * !_descriptors$1, 'Object', {\n defineProperty: _objectDp$1.f\n});\nvar $Object = _core$1.Object;\nvar defineProperty = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\nvar defineProperty$1 = defineProperty;\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n defineProperty$1(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar defaultOptions = {\n itemTemplate: null,\n minLen: 2,\n maxLen: 100,\n value: null,\n setLabel: function setLabel(item) {\n return item;\n },\n items: function items() {\n return [];\n },\n placeholder: '',\n inputClasses: '',\n wrapperClasses: '',\n inputWrapperClasses: '',\n suggestionListClasses: '',\n suggestionGroupClasses: '',\n suggestionGroupHeaderClasses: '',\n suggestionItemWrapperClasses: '',\n suggestionItemClasses: ''\n};\nvar utils = {\n options: _objectSpread({}, defaultOptions)\n};\nvar _redefine$1 = _hide$1;\nvar id$1 = 0;\nvar px$1 = Math.random();\nvar _uid$1 = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id$1 + px$1).toString(36));\n};\nvar _meta = createCommonjsModule(function (module) {\n var META = _uid$1('meta');\n var setDesc = _objectDp$1.f;\n var id = 0;\n var isExtensible = Object.isExtensible || function () {\n return true;\n };\n var FREEZE = !_fails$1(function () {\n return isExtensible(Object.preventExtensions({}));\n });\n var setMeta = function (it) {\n setDesc(it, META, {\n value: {\n i: 'O' + ++id,\n // object ID\n w: {} // weak collections IDs\n }\n });\n };\n\n var fastKey = function (it, create) {\n // return primitive with prefix\n if (!_isObject$1(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!_has$1(it, META)) {\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 setMeta(it);\n // return object ID\n }\n return it[META].i;\n };\n var getWeak = function (it, create) {\n if (!_has$1(it, META)) {\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 setMeta(it);\n // return hash weak collections IDs\n }\n return it[META].w;\n };\n // add metadata on freeze-family methods calling\n var onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !_has$1(it, META)) setMeta(it);\n return it;\n };\n var meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n };\n});\nvar _meta_1 = _meta.KEY;\nvar _meta_2 = _meta.NEED;\nvar _meta_3 = _meta.fastKey;\nvar _meta_4 = _meta.getWeak;\nvar _meta_5 = _meta.onFreeze;\nvar _library = true;\nvar _shared$1 = createCommonjsModule(function (module) {\n var SHARED = '__core-js_shared__';\n var store = _global$1[SHARED] || (_global$1[SHARED] = {});\n (module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n })('versions', []).push({\n version: _core$1.version,\n mode: 'pure',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n });\n});\nvar _wks$1 = createCommonjsModule(function (module) {\n var store = _shared$1('wks');\n var Symbol = _global$1.Symbol;\n var USE_SYMBOL = typeof Symbol == 'function';\n var $exports = module.exports = function (name) {\n return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid$1)('Symbol.' + name));\n };\n $exports.store = store;\n});\nvar def$1 = _objectDp$1.f;\nvar TAG$1 = _wks$1('toStringTag');\nvar _setToStringTag$1 = function (it, tag, stat) {\n if (it && !_has$1(it = stat ? it : it.prototype, TAG$1)) def$1(it, TAG$1, {\n configurable: true,\n value: tag\n });\n};\nvar f$6 = _wks$1;\nvar _wksExt = {\n f: f$6\n};\nvar defineProperty$2 = _objectDp$1.f;\nvar _wksDefine = function (name) {\n var $Symbol = _core$1.Symbol || (_core$1.Symbol = {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$2($Symbol, name, {\n value: _wksExt.f(name)\n });\n};\nvar toString$1 = {}.toString;\nvar _cof$1 = function (it) {\n return toString$1.call(it).slice(8, -1);\n};\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\n// eslint-disable-next-line no-prototype-builtins\nvar _iobject$1 = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return _cof$1(it) == 'String' ? it.split('') : Object(it);\n};\n\n// 7.2.1 RequireObjectCoercible(argument)\nvar _defined$1 = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\n\nvar _toIobject$1 = function (it) {\n return _iobject$1(_defined$1(it));\n};\n\n// 7.1.4 ToInteger\nvar ceil$1 = Math.ceil;\nvar floor$1 = Math.floor;\nvar _toInteger$1 = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor$1 : ceil$1)(it);\n};\n\n// 7.1.15 ToLength\n\nvar min$2 = Math.min;\nvar _toLength$1 = function (it) {\n return it > 0 ? min$2(_toInteger$1(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\nvar max$1 = Math.max;\nvar min$3 = Math.min;\nvar _toAbsoluteIndex$1 = function (index, length) {\n index = _toInteger$1(index);\n return index < 0 ? max$1(index + length, 0) : min$3(index, length);\n};\n\n// false -> Array#indexOf\n// true -> Array#includes\n\nvar _arrayIncludes$1 = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = _toIobject$1($this);\n var length = _toLength$1(O.length);\n var index = _toAbsoluteIndex$1(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (; length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n }\n return !IS_INCLUDES && -1;\n };\n};\nvar shared$1 = _shared$1('keys');\nvar _sharedKey$1 = function (key) {\n return shared$1[key] || (shared$1[key] = _uid$1(key));\n};\nvar arrayIndexOf$1 = _arrayIncludes$1(false);\nvar IE_PROTO$3 = _sharedKey$1('IE_PROTO');\nvar _objectKeysInternal$1 = function (object, names) {\n var O = _toIobject$1(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO$3) _has$1(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (_has$1(O, key = names[i++])) {\n ~arrayIndexOf$1(result, key) || result.push(key);\n }\n return result;\n};\n\n// IE 8- don't enum bug keys\nvar _enumBugKeys$1 = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\n\nvar _objectKeys$1 = Object.keys || function keys(O) {\n return _objectKeysInternal$1(O, _enumBugKeys$1);\n};\nvar f$7 = Object.getOwnPropertySymbols;\nvar _objectGops$1 = {\n f: f$7\n};\nvar f$8 = {}.propertyIsEnumerable;\nvar _objectPie$1 = {\n f: f$8\n};\n\n// all enumerable object keys, includes symbols\n\nvar _enumKeys = function (it) {\n var result = _objectKeys$1(it);\n var getSymbols = _objectGops$1.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = _objectPie$1.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n }\n return result;\n};\n\n// 7.2.2 IsArray(argument)\n\nvar _isArray = Array.isArray || function isArray(arg) {\n return _cof$1(arg) == 'Array';\n};\n\n// 7.1.13 ToObject(argument)\n\nvar _toObject$1 = function (it) {\n return Object(_defined$1(it));\n};\nvar _objectDps$1 = _descriptors$1 ? Object.defineProperties : function defineProperties(O, Properties) {\n _anObject$1(O);\n var keys = _objectKeys$1(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) _objectDp$1.f(O, P = keys[i++], Properties[P]);\n return O;\n};\nvar document$4 = _global$1.document;\nvar _html$1 = document$4 && document$4.documentElement;\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n\nvar IE_PROTO$4 = _sharedKey$1('IE_PROTO');\nvar Empty$1 = function () {/* empty */};\nvar PROTOTYPE$3 = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict$1 = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = _domCreate$1('iframe');\n var i = _enumBugKeys$1.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n _html$1.appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict$1 = iframeDocument.F;\n while (i--) delete createDict$1[PROTOTYPE$3][_enumBugKeys$1[i]];\n return createDict$1();\n};\nvar _objectCreate$1 = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty$1[PROTOTYPE$3] = _anObject$1(O);\n result = new Empty$1();\n Empty$1[PROTOTYPE$3] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO$4] = O;\n } else result = createDict$1();\n return Properties === undefined ? result : _objectDps$1(result, Properties);\n};\n\n// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\n\nvar hiddenKeys$1 = _enumBugKeys$1.concat('length', 'prototype');\nvar f$9 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return _objectKeysInternal$1(O, hiddenKeys$1);\n};\nvar _objectGopn$1 = {\n f: f$9\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n\nvar gOPN = _objectGopn$1.f;\nvar toString$2 = {}.toString;\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\nvar f$a = function getOwnPropertyNames(it) {\n return windowNames && toString$2.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(_toIobject$1(it));\n};\nvar _objectGopnExt = {\n f: f$a\n};\nvar gOPD$1 = Object.getOwnPropertyDescriptor;\nvar f$b = _descriptors$1 ? gOPD$1 : function getOwnPropertyDescriptor(O, P) {\n O = _toIobject$1(O);\n P = _toPrimitive$1(P, true);\n if (_ie8DomDefine$1) try {\n return gOPD$1(O, P);\n } catch (e) {/* empty */}\n if (_has$1(O, P)) return _propertyDesc$1(!_objectPie$1.f.call(O, P), O[P]);\n};\nvar _objectGopd$1 = {\n f: f$b\n};\n\n// ECMAScript 6 symbols shim\n\nvar META = _meta.KEY;\nvar gOPD$2 = _objectGopd$1.f;\nvar dP$2 = _objectDp$1.f;\nvar gOPN$1 = _objectGopnExt.f;\nvar $Symbol = _global$1.Symbol;\nvar $JSON = _global$1.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE$4 = 'prototype';\nvar HIDDEN = _wks$1('_hidden');\nvar TO_PRIMITIVE = _wks$1('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = _shared$1('symbol-registry');\nvar AllSymbols = _shared$1('symbols');\nvar OPSymbols = _shared$1('op-symbols');\nvar ObjectProto$1 = Object[PROTOTYPE$4];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!_objectGops$1.f;\nvar QObject = _global$1.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE$4] || !QObject[PROTOTYPE$4].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = _descriptors$1 && _fails$1(function () {\n return _objectCreate$1(dP$2({}, 'a', {\n get: function () {\n return dP$2(this, 'a', {\n value: 7\n }).a;\n }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD$2(ObjectProto$1, key);\n if (protoDesc) delete ObjectProto$1[key];\n dP$2(it, key, D);\n if (protoDesc && it !== ObjectProto$1) dP$2(ObjectProto$1, key, protoDesc);\n} : dP$2;\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _objectCreate$1($Symbol[PROTOTYPE$4]);\n sym._k = tag;\n return sym;\n};\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto$1) $defineProperty(OPSymbols, key, D);\n _anObject$1(it);\n key = _toPrimitive$1(key, true);\n _anObject$1(D);\n if (_has$1(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!_has$1(it, HIDDEN)) dP$2(it, HIDDEN, _propertyDesc$1(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (_has$1(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _objectCreate$1(D, {\n enumerable: _propertyDesc$1(0, false)\n });\n }\n return setSymbolDesc(it, key, D);\n }\n return dP$2(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n _anObject$1(it);\n var keys = _enumKeys(P = _toIobject$1(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _objectCreate$1(it) : $defineProperties(_objectCreate$1(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = _toPrimitive$1(key, true));\n if (this === ObjectProto$1 && _has$1(AllSymbols, key) && !_has$1(OPSymbols, key)) return false;\n return E || !_has$1(this, key) || !_has$1(AllSymbols, key) || _has$1(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = _toIobject$1(it);\n key = _toPrimitive$1(key, true);\n if (it === ObjectProto$1 && _has$1(AllSymbols, key) && !_has$1(OPSymbols, key)) return;\n var D = gOPD$2(it, key);\n if (D && _has$1(AllSymbols, key) && !(_has$1(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN$1(_toIobject$1(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!_has$1(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n }\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto$1;\n var names = gOPN$1(IS_OP ? OPSymbols : _toIobject$1(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (_has$1(AllSymbols, key = names[i++]) && (IS_OP ? _has$1(ObjectProto$1, key) : true)) result.push(AllSymbols[key]);\n }\n return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = _uid$1(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto$1) $set.call(OPSymbols, value);\n if (_has$1(this, HIDDEN) && _has$1(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, _propertyDesc$1(1, value));\n };\n if (_descriptors$1 && setter) setSymbolDesc(ObjectProto$1, tag, {\n configurable: true,\n set: $set\n });\n return wrap(tag);\n };\n _redefine$1($Symbol[PROTOTYPE$4], 'toString', function toString() {\n return this._k;\n });\n _objectGopd$1.f = $getOwnPropertyDescriptor;\n _objectDp$1.f = $defineProperty;\n _objectGopn$1.f = _objectGopnExt.f = $getOwnPropertyNames;\n _objectPie$1.f = $propertyIsEnumerable;\n _objectGops$1.f = $getOwnPropertySymbols;\n if (_descriptors$1 && !_library) {\n _redefine$1(ObjectProto$1, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n _wksExt.f = function (name) {\n return wrap(_wks$1(name));\n };\n}\n_export$1(_export$1.G + _export$1.W + _export$1.F * !USE_NATIVE, {\n Symbol: $Symbol\n});\nfor (var es6Symbols =\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split(','), j = 0; es6Symbols.length > j;) _wks$1(es6Symbols[j++]);\nfor (var wellKnownSymbols = _objectKeys$1(_wks$1.store), k = 0; wellKnownSymbols.length > k;) _wksDefine(wellKnownSymbols[k++]);\n_export$1(_export$1.S + _export$1.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return _has$1(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () {\n setter = true;\n },\n useSimple: function () {\n setter = false;\n }\n});\n_export$1(_export$1.S + _export$1.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = _fails$1(function () {\n _objectGops$1.f(1);\n});\n_export$1(_export$1.S + _export$1.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return _objectGops$1.f(_toObject$1(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && _export$1(_export$1.S + _export$1.F * (!USE_NATIVE || _fails$1(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({\n a: S\n }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!_isObject$1(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!_isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE$4][TO_PRIMITIVE] || _hide$1($Symbol[PROTOTYPE$4], TO_PRIMITIVE, $Symbol[PROTOTYPE$4].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\n_setToStringTag$1($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\n_setToStringTag$1(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\n_setToStringTag$1(_global$1.JSON, 'JSON', true);\nvar getOwnPropertySymbols = _core$1.Object.getOwnPropertySymbols;\nvar getOwnPropertySymbols$1 = getOwnPropertySymbols;\n\n// most Object methods by ES6 should accept primitives\n\nvar _objectSap$1 = function (KEY, exec) {\n var fn = (_core$1.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n _export$1(_export$1.S + _export$1.F * _fails$1(function () {\n fn(1);\n }), 'Object', exp);\n};\n\n// 19.1.2.14 Object.keys(O)\n\n_objectSap$1('keys', function () {\n return function keys(it) {\n return _objectKeys$1(_toObject$1(it));\n };\n});\nvar keys = _core$1.Object.keys;\nvar keys$1 = keys;\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = keys$1(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (getOwnPropertySymbols$1) {\n var sourceSymbolKeys = getOwnPropertySymbols$1(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\n\n// 7.2.2 IsArray(argument)\n\nvar _isArray$1 = Array.isArray || function isArray(arg) {\n return _cof(arg) == 'Array';\n};\nvar SPECIES = _wks('species');\nvar _arraySpeciesConstructor = function (original) {\n var C;\n if (_isArray$1(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || _isArray$1(C.prototype))) C = undefined;\n if (_isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n }\n return C === undefined ? Array : C;\n};\n\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\n\nvar _arraySpeciesCreate = function (original, length) {\n return new (_arraySpeciesConstructor(original))(length);\n};\n\n// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\n\nvar _arrayMethods = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || _arraySpeciesCreate;\n return function ($this, callbackfn, that) {\n var O = _toObject($this);\n var self = _iobject(O);\n var f = _ctx(callbackfn, that, 3);\n var length = _toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (; length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3:\n return true;\n // some\n case 5:\n return val;\n // find\n case 6:\n return index;\n // findIndex\n case 2:\n result.push(val);\n // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\n\nvar $find = _arrayMethods(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () {\n forced = false;\n});\n_export(_export.P + _export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n_addToUnscopables(KEY);\n\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\n\nvar check = function (O, proto) {\n _anObject(O);\n if (!_isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nvar _setProto = {\n set: Object.setPrototypeOf || ('__proto__' in {} ?\n // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = _ctx(Function.call, _objectGopd.f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) {\n buggy = true;\n }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\nvar setPrototypeOf = _setProto.set;\nvar _inheritIfRequired = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && _isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n }\n return that;\n};\nvar _stringWs = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' + '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\nvar space = '[' + _stringWs + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = _fails(function () {\n return !!_stringWs[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : _stringWs[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n _export(_export.P + _export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(_defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\nvar _stringTrim = exporter;\nvar gOPN$2 = _objectGopn.f;\nvar gOPD$3 = _objectGopd.f;\nvar dP$3 = _objectDp.f;\nvar $trim = _stringTrim.trim;\nvar NUMBER = 'Number';\nvar $Number = _global[NUMBER];\nvar Base = $Number;\nvar proto$1 = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = _cof(_objectCreate(proto$1)) == NUMBER;\nvar TRIM = ('trim' in String.prototype);\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = _toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal /^0b[01]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n // fast equal /^0o[0-7]+$/i\n default:\n return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n }\n return parseInt(digits, radix);\n }\n }\n return +it;\n};\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? _fails(function () {\n proto$1.valueOf.call(that);\n }) : _cof(that) != NUMBER) ? _inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys$2 = _descriptors ? gOPN$2(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger').split(','), j$1 = 0, key$1; keys$2.length > j$1; j$1++) {\n if (_has(Base, key$1 = keys$2[j$1]) && !_has($Number, key$1)) {\n dP$3($Number, key$1, gOPD$3(Base, key$1));\n }\n }\n $Number.prototype = proto$1;\n proto$1.constructor = $Number;\n _redefine(_global, NUMBER, $Number);\n}\nfunction ownKeys$1(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$1(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$1(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$1(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction getDefault(key) {\n var value = utils.options[key];\n if (typeof value === 'undefined') {\n return utils.options[key];\n }\n return value;\n}\nvar script = {\n name: 'VueSuggestion',\n props: {\n itemTemplate: {\n type: Object,\n default: function _default() {\n return getDefault('itemTemplate');\n }\n },\n minLen: {\n type: Number,\n default: function _default() {\n return getDefault('minLen');\n }\n },\n maxLen: {\n type: Number,\n default: function _default() {\n return getDefault('maxLen');\n }\n },\n value: {\n type: [Object, String, Number],\n default: function _default() {\n return getDefault('value');\n }\n },\n setLabel: {\n type: Function,\n default: function _default() {\n return getDefault('setLabel');\n }\n },\n items: {\n type: Array,\n default: function _default() {\n return getDefault('items');\n }\n },\n disabled: {\n type: Boolean,\n default: function _default() {\n return getDefault('disabled');\n }\n },\n loading: {\n type: Boolean,\n default: function _default() {\n return getDefault('loading');\n }\n },\n placeholder: {\n type: String,\n default: function _default() {\n return getDefault('placeholder');\n }\n },\n inputClasses: {\n type: String,\n default: function _default() {\n return getDefault('inputClasses');\n }\n },\n wrapperClasses: {\n type: String,\n default: function _default() {\n return getDefault('wrapperClasses');\n }\n },\n inputWrapperClasses: {\n type: String,\n default: function _default() {\n return getDefault('inputWrapperClasses');\n }\n },\n suggestionListClasses: {\n type: String,\n default: function _default() {\n return getDefault('suggestionListClasses');\n }\n },\n suggestionGroupClasses: {\n type: String,\n default: function _default() {\n return getDefault('suggestionGroupClasses');\n }\n },\n suggestionGroupHeaderClasses: {\n type: String,\n default: function _default() {\n return getDefault('suggestionGroupHeaderClasses');\n }\n },\n suggestionItemWrapperClasses: {\n type: String,\n default: function _default() {\n return getDefault('suggestionItemWrapperClasses');\n }\n },\n suggestionItemClasses: {\n type: String,\n default: function _default() {\n return getDefault('suggestionItemClasses');\n }\n }\n },\n data: function data() {\n return {\n searchText: '',\n showList: false,\n cursor: 0\n };\n },\n computed: {\n itemGroups: function itemGroups() {\n return this.items.reduce(function (prv, crr, index) {\n var groupName = crr.suggestionGroup || '';\n var item = _objectSpread$1({}, crr, {\n vsItemIndex: index\n });\n var foundGroup = prv.find(function (gr) {\n return gr.header === groupName;\n });\n if (foundGroup) {\n foundGroup.items.push(item);\n } else {\n prv.push({\n header: groupName,\n items: [item]\n });\n }\n return prv;\n }, []);\n }\n },\n watch: {\n value: {\n handler: function handler(value) {\n if (!value) {\n return;\n }\n this.searchText = this.setLabel(value);\n },\n deep: true\n },\n // eslint-disable-next-line func-names\n 'items.length': function itemsLength() {\n // Items might be changed from Promise after searching\n // So we need the check if we should show the suggestion list\n this.showList = this.isAbleToShowList();\n }\n },\n created: function created() {\n this.checkMissingProps();\n },\n mounted: function mounted() {\n if (this.value) {\n this.searchText = this.setLabel(this.value);\n }\n },\n methods: {\n inputChange: function inputChange() {\n this.showList = this.isAbleToShowList();\n this.cursor = 0;\n this.$emit('changed', this.searchText);\n },\n isAbleToShowList: function isAbleToShowList() {\n return (this.searchText || '').length >= this.minLen && this.items.length > 0;\n },\n checkMissingProps: function checkMissingProps() {\n if (!this.itemTemplate) {\n console.warn('You need to pass `template` as the suggestion list item template');\n }\n },\n focus: function focus() {\n this.$emit('focus', this.searchText);\n this.showList = this.isAbleToShowList();\n },\n blur: function blur() {\n var _this = this;\n this.$emit('blur', this.searchText); // set timeout for the click event to work\n\n setTimeout(function () {\n _this.showList = false;\n }, 200);\n },\n selectItem: function selectItem() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n vsItemIndex = _ref.vsItemIndex,\n item = _objectWithoutProperties(_ref, [\"vsItemIndex\"]);\n if (item) {\n this.searchText = this.setLabel(item);\n this.$emit('selected', item);\n }\n this.$emit('input', item);\n },\n keyUp: function keyUp() {\n this.$emit('key-up', this.searchText);\n if (this.cursor > 0) {\n this.cursor -= 1;\n }\n },\n keyDown: function keyDown() {\n this.$emit('key-down', this.searchText);\n if (this.cursor < this.items.length - 1) {\n this.cursor += 1;\n }\n },\n keyEnter: function keyEnter() {\n if (this.showList && this.items[this.cursor]) {\n this.selectItem(this.items[this.cursor]);\n this.showList = false;\n }\n this.$emit('enter', this.items[this.cursor]);\n }\n }\n};\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n }\n // Vue.extend constructor export interop.\n const options = typeof script === 'function' ? script.options : script;\n // render functions\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true;\n // functional template\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n }\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId;\n }\n let hook;\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context = context ||\n // cached call\n this.$vnode && this.$vnode.ssrContext ||\n // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n }\n // inject component styles\n if (style) {\n style.call(this, createInjectorSSR(context));\n }\n // register component module identifier for async chunk inference\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n };\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function (context) {\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n const originalRender = options.render;\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n const existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n return script;\n}\nconst isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\nfunction createInjector(context) {\n return (id, style) => addStyle(id, style);\n}\nlet HEAD;\nconst styles = {};\nfunction addStyle(id, css) {\n const group = isOldIE ? css.media || 'default' : id;\n const style = styles[group] || (styles[group] = {\n ids: new Set(),\n styles: []\n });\n if (!style.ids.has(id)) {\n style.ids.add(id);\n let code = css.source;\n if (css.map) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n code += '\\n/*# sourceURL=' + css.map.sources[0] + ' */';\n // http://stackoverflow.com/a/26603875\n code += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';\n }\n if (!style.element) {\n style.element = document.createElement('style');\n style.element.type = 'text/css';\n if (css.media) style.element.setAttribute('media', css.media);\n if (HEAD === undefined) {\n HEAD = document.head || document.getElementsByTagName('head')[0];\n }\n HEAD.appendChild(style.element);\n }\n if ('styleSheet' in style.element) {\n style.styles.push(code);\n style.element.styleSheet.cssText = style.styles.filter(Boolean).join('\\n');\n } else {\n const index = style.ids.size - 1;\n const textNode = document.createTextNode(code);\n const nodes = style.element.childNodes;\n if (nodes[index]) style.element.removeChild(nodes[index]);\n if (nodes.length) style.element.insertBefore(textNode, nodes[index]);else style.element.appendChild(textNode);\n }\n }\n}\n\n/* script */\nvar __vue_script__ = script;\n/* template */\n\nvar __vue_render__ = function __vue_render__() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", {\n class: [_vm.wrapperClasses, \"vue-suggestion\"]\n }, [_c(\"div\", {\n class: [{\n vs__selected: _vm.value\n }, _vm.inputWrapperClasses, \"vs__input-group\"]\n }, [_c(\"input\", {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.searchText,\n expression: \"searchText\"\n }],\n class: [_vm.inputClasses, \"vs__input\"],\n attrs: {\n type: \"search\",\n placeholder: _vm.placeholder,\n disabled: _vm.disabled,\n maxlength: _vm.maxLen\n },\n domProps: {\n value: _vm.searchText\n },\n on: {\n blur: _vm.blur,\n focus: _vm.focus,\n input: [function ($event) {\n if ($event.target.composing) {\n return;\n }\n _vm.searchText = $event.target.value;\n }, _vm.inputChange],\n keydown: [function ($event) {\n if (!$event.type.indexOf(\"key\") && _vm._k($event.keyCode, \"enter\", 13, $event.key, \"Enter\")) {\n return null;\n }\n $event.preventDefault();\n return _vm.keyEnter($event);\n }, function ($event) {\n if (!$event.type.indexOf(\"key\") && _vm._k($event.keyCode, \"up\", 38, $event.key, [\"Up\", \"ArrowUp\"])) {\n return null;\n }\n $event.preventDefault();\n return _vm.keyUp($event);\n }, function ($event) {\n if (!$event.type.indexOf(\"key\") && _vm._k($event.keyCode, \"down\", 40, $event.key, [\"Down\", \"ArrowDown\"])) {\n return null;\n }\n $event.preventDefault();\n return _vm.keyDown($event);\n }]\n }\n }), _vm._v(\" \"), _vm._t(\"searchSlot\")], 2), _vm._v(\" \"), _vm.loading ? _vm._t(\"loading\", [_c(\"div\", {\n staticClass: \"vs__loading\"\n }, [_vm._v(\"Loading...\")])]) : _vm.showList ? _vm._t(\"suggestionList\", [_c(\"div\", {\n class: [_vm.suggestionListClasses, \"vs__list\"]\n }, _vm._l(_vm.itemGroups, function (group, index) {\n return _c(\"div\", {\n key: index,\n class: _vm.suggestionGroupClasses\n }, [_vm.itemGroups.length > 1 || group.header ? _c(\"div\", {\n class: [_vm.suggestionGroupHeaderClasses, \"vs__group-header\"]\n }, [_vm._v(\"\\n \" + _vm._s(group.header) + \"\\n \")]) : _vm._e(), _vm._v(\" \"), _vm._l(group.items, function (item) {\n return _c(\"div\", {\n key: item.vsItemIndex,\n class: [{\n \"vs__item-active\": item.vsItemIndex === _vm.cursor\n }, _vm.suggestionItemWrapperClasses, \"vs__list-item\"],\n on: {\n click: function click($event) {\n return _vm.selectItem(item);\n },\n mouseover: function mouseover($event) {\n _vm.cursor = item.vsItemIndex;\n }\n }\n }, [_c(_vm.itemTemplate, {\n tag: \"div\",\n class: _vm.suggestionItemClasses,\n attrs: {\n item: item\n }\n })], 1);\n })], 2);\n }), 0)]) : _vm._e()], 2);\n};\nvar __vue_staticRenderFns__ = [];\n__vue_render__._withStripped = true;\n/* style */\n\nvar __vue_inject_styles__ = function __vue_inject_styles__(inject) {\n if (!inject) return;\n inject(\"data-v-d12c8842_0\", {\n source: \"\\n.vue-suggestion {\\n position: relative;\\n}\\n.vue-suggestion .vs__list,\\n.vue-suggestion .vs__loading {\\n position: absolute;\\n}\\n.vue-suggestion .vs__list .vs__list-item {\\n cursor: pointer;\\n}\\n.vue-suggestion .vs__list .vs__list-item.vs__item-active {\\n background-color: #f3f6fa;\\n}\\n\",\n map: {\n \"version\": 3,\n \"sources\": [\"/Users/stevend/coding/vue/vue-suggestion/src/components/vue-suggestion.vue\"],\n \"names\": [],\n \"mappings\": \";AAkPA;EACA,kBAAA;AACA;AACA;;EAEA,kBAAA;AACA;AACA;EACA,eAAA;AACA;AACA;EACA,yBAAA;AACA\",\n \"file\": \"vue-suggestion.vue\",\n \"sourcesContent\": [\"\\n \\n
\\n \\n \\n
\\n
\\n Loading...
\\n \\n
\\n \\n
\\n
1 || group.header\\\"\\n :class=\\\"[suggestionGroupHeaderClasses, 'vs__group-header']\\\"\\n >\\n {{ group.header }}\\n
\\n
\\n
\\n
\\n \\n
\\n \\n\\n\\n\\n\\n\"]\n },\n media: undefined\n });\n};\n/* scoped */\n\nvar __vue_scope_id__ = undefined;\n/* module identifier */\n\nvar __vue_module_identifier__ = undefined;\n/* functional template */\n\nvar __vue_is_functional_template__ = false;\n/* style inject SSR */\n\n/* style inject shadow dom */\n\nvar __vue_component__ = normalizeComponent({\n render: __vue_render__,\n staticRenderFns: __vue_staticRenderFns__\n}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);\nfunction ownKeys$2(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$2(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$2(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction install(Vue) {\n var customOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (install.installed) return;\n install.installed = true;\n utils.options = _objectSpread$2({}, defaultOptions, {}, customOptions);\n Vue.component('vue-suggestion', __vue_component__);\n}\nvar plugin = {\n install: install\n}; // Auto-install\n\nvar GlobalVue = null;\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\nif (GlobalVue) {\n GlobalVue.use(plugin);\n}\nexport default plugin;\nexport { __vue_component__ as VueSuggestion, install };","/*! For license information please see ckeditor.js.LICENSE.txt */\n/*!*\n* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md.\n*/\n!function (t, e) {\n \"object\" == typeof exports && \"object\" == typeof module ? module.exports = e() : \"function\" == typeof define && define.amd ? define([], e) : \"object\" == typeof exports ? exports.CKEditor = e() : t.CKEditor = e();\n}(window, function () {\n return function (t) {\n var e = {};\n function n(i) {\n if (e[i]) return e[i].exports;\n var r = e[i] = {\n i: i,\n l: !1,\n exports: {}\n };\n return t[i].call(r.exports, r, r.exports, n), r.l = !0, r.exports;\n }\n return n.m = t, n.c = e, n.d = function (t, e, i) {\n n.o(t, e) || Object.defineProperty(t, e, {\n enumerable: !0,\n get: i\n });\n }, n.r = function (t) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n }, n.t = function (t, e) {\n if (1 & e && (t = n(t)), 8 & e) return t;\n if (4 & e && \"object\" == typeof t && t && t.__esModule) return t;\n var i = Object.create(null);\n if (n.r(i), Object.defineProperty(i, \"default\", {\n enumerable: !0,\n value: t\n }), 2 & e && \"string\" != typeof t) for (var r in t) n.d(i, r, function (e) {\n return t[e];\n }.bind(null, r));\n return i;\n }, n.n = function (t) {\n var e = t && t.__esModule ? function () {\n return t.default;\n } : function () {\n return t;\n };\n return n.d(e, \"a\", e), e;\n }, n.o = function (t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }, n.p = \"\", n(n.s = 0);\n }([function (t, e, n) {\n t.exports = n(1);\n }, function (t, e, n) {\n \"use strict\";\n\n function i(t, e) {\n t.onload = function () {\n this.onerror = this.onload = null, e(null, t);\n }, t.onerror = function () {\n this.onerror = this.onload = null, e(new Error(\"Failed to load \" + this.src), t);\n };\n }\n function r(t, e) {\n t.onreadystatechange = function () {\n \"complete\" != this.readyState && \"loaded\" != this.readyState || (this.onreadystatechange = null, e(null, t));\n };\n }\n var o;\n function a(t, e) {\n return \"CKEDITOR\" in window ? Promise.resolve(CKEDITOR) : \"string\" != typeof t || t.length < 1 ? Promise.reject(new TypeError(\"CKEditor URL must be a non-empty string.\")) : (o || (o = a.scriptLoader(t).then(function (t) {\n return e && e(t), t;\n })), o);\n }\n n.r(e), a.scriptLoader = function (t) {\n return new Promise(function (e, n) {\n !function (t, e, n) {\n var o = document.head || document.getElementsByTagName(\"head\")[0],\n a = document.createElement(\"script\");\n \"function\" == typeof e && (n = e, e = {}), e = e || {}, n = n || function () {}, a.type = e.type || \"text/javascript\", a.charset = e.charset || \"utf8\", a.async = !(\"async\" in e) || !!e.async, a.src = t, e.attrs && function (t, e) {\n for (var n in e) t.setAttribute(n, e[n]);\n }(a, e.attrs), e.text && (a.text = String(e.text)), (\"onload\" in a ? i : r)(a, n), a.onload || i(a, n), o.appendChild(a);\n }(t, function (t) {\n return o = void 0, t ? n(t) : window.CKEDITOR ? void e(CKEDITOR) : n(new Error(\"Script loaded from editorUrl doesn't provide CKEDITOR namespace.\"));\n });\n });\n };\n var s = {\n name: \"ckeditor\",\n render(t) {\n return t(\"div\", {}, [t(this.tagName)]);\n },\n props: {\n value: {\n type: String,\n default: \"\"\n },\n type: {\n type: String,\n default: \"classic\",\n validator: t => [\"classic\", \"inline\"].includes(t)\n },\n editorUrl: {\n type: String,\n default: \"https://cdn.ckeditor.com/4.17.2/standard-all/ckeditor.js\"\n },\n config: {\n type: Object,\n default: () => {}\n },\n tagName: {\n type: String,\n default: \"textarea\"\n },\n readOnly: {\n type: Boolean,\n default: null\n },\n throttle: {\n type: Number,\n default: 80\n }\n },\n mounted() {\n a(this.editorUrl, t => {\n this.$emit(\"namespaceloaded\", t);\n }).then(() => {\n if (this.$_destroyed) return;\n const t = this.prepareConfig(),\n e = \"inline\" === this.type ? \"inline\" : \"replace\",\n n = this.$el.firstElementChild;\n CKEDITOR[e](n, t);\n });\n },\n beforeDestroy() {\n this.instance && this.instance.destroy(), this.$_destroyed = !0;\n },\n watch: {\n value(t) {\n this.instance && this.instance.getData() !== t && this.instance.setData(t);\n },\n readOnly(t) {\n this.instance && this.instance.setReadOnly(t);\n }\n },\n methods: {\n prepareConfig() {\n const t = this.config || {};\n t.on = t.on || {}, void 0 === t.delayIfDetached && (t.delayIfDetached = !0), null !== this.readOnly && (t.readOnly = this.readOnly);\n const e = t.on.instanceReady;\n return t.on.instanceReady = t => {\n this.instance = t.editor, this.$nextTick().then(() => {\n this.prepareComponentData(), e && e(t);\n });\n }, t;\n },\n prepareComponentData() {\n const t = this.value;\n this.instance.fire(\"lockSnapshot\"), this.instance.setData(t, {\n callback: () => {\n this.$_setUpEditorEvents();\n const e = this.instance.getData();\n t !== e ? (this.$once(\"input\", () => {\n this.$emit(\"ready\", this.instance);\n }), this.$emit(\"input\", e)) : this.$emit(\"ready\", this.instance), this.instance.fire(\"unlockSnapshot\");\n }\n });\n },\n $_setUpEditorEvents() {\n const t = this.instance,\n e = function (t, e) {\n var n,\n i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};\n return function () {\n clearTimeout(n);\n for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) o[a] = arguments[a];\n n = setTimeout(t.bind.apply(t, [i].concat(o)), e);\n };\n }(e => {\n const n = t.getData();\n this.value !== n && this.$emit(\"input\", n, e, t);\n }, this.throttle);\n t.on(\"change\", e), t.on(\"focus\", e => {\n this.$emit(\"focus\", e, t);\n }), t.on(\"blur\", e => {\n this.$emit(\"blur\", e, t);\n });\n }\n }\n };\n const c = {\n install(t) {\n t.component(\"ckeditor\", s);\n },\n component: s\n };\n e.default = c;\n }]).default;\n});","!function (e, t) {\n if (\"object\" == typeof exports && \"object\" == typeof module) module.exports = t();else if (\"function\" == typeof define && define.amd) define([], t);else {\n var r = t();\n for (var o in r) (\"object\" == typeof exports ? exports : e)[o] = r[o];\n }\n}(window, function () {\n return function (e) {\n var t = {};\n function r(o) {\n if (t[o]) return t[o].exports;\n var n = t[o] = {\n i: o,\n l: !1,\n exports: {}\n };\n return e[o].call(n.exports, n, n.exports, r), n.l = !0, n.exports;\n }\n return r.m = e, r.c = t, r.d = function (e, t, o) {\n r.o(e, t) || Object.defineProperty(e, t, {\n enumerable: !0,\n get: o\n });\n }, r.r = function (e) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(e, \"__esModule\", {\n value: !0\n });\n }, r.t = function (e, t) {\n if (1 & t && (e = r(e)), 8 & t) return e;\n if (4 & t && \"object\" == typeof e && e && e.__esModule) return e;\n var o = Object.create(null);\n if (r.r(o), Object.defineProperty(o, \"default\", {\n enumerable: !0,\n value: e\n }), 2 & t && \"string\" != typeof e) for (var n in e) r.d(o, n, function (t) {\n return e[t];\n }.bind(null, n));\n return o;\n }, r.n = function (e) {\n var t = e && e.__esModule ? function () {\n return e.default;\n } : function () {\n return e;\n };\n return r.d(t, \"a\", t), t;\n }, r.o = function (e, t) {\n return Object.prototype.hasOwnProperty.call(e, t);\n }, r.p = \"\", r(r.s = 0);\n }([function (e, t, r) {\n \"use strict\";\n\n r.r(t);\n var o = function (e, t, r, o, n, i, s, a) {\n var l,\n u = \"function\" == typeof e ? e.options : e;\n if (t && (u.render = t, u.staticRenderFns = r, u._compiled = !0), o && (u.functional = !0), i && (u._scopeId = \"data-v-\" + i), s ? (l = function (e) {\n (e = e || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || \"undefined\" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__), n && n.call(this, e), e && e._registeredComponents && e._registeredComponents.add(s);\n }, u._ssrRegister = l) : n && (l = a ? function () {\n n.call(this, this.$root.$options.shadowRoot);\n } : n), l) if (u.functional) {\n u._injectStyles = l;\n var c = u.render;\n u.render = function (e, t) {\n return l.call(t), c(e, t);\n };\n } else {\n var d = u.beforeCreate;\n u.beforeCreate = d ? [].concat(d, l) : [l];\n }\n return {\n exports: e,\n options: u\n };\n }({\n props: {\n css: {\n type: String,\n default: \"embed-responsive-16by9\"\n },\n src: {\n type: String\n },\n params: {\n type: Object\n }\n },\n data: function () {\n return {\n valid: !1,\n url: \"\",\n videos: [{\n reg: /^((?:https?:)?\\/\\/)?((?:www|m)\\.)?((?:youtube\\.com|youtu.be))(\\/(?:[\\w\\-]+\\?v=|embed\\/|v\\/)?)([\\w\\-]+)(\\S+)?$/i,\n url: \"https://www.youtube.com/embed/$5\",\n params: {\n \"picture-in-picture\": 1,\n accelerometer: 1,\n gyroscope: 1\n }\n }, {\n reg: /^.*vimeo.com\\/(\\d+)($|\\/|\\b)/i,\n url: \"https://player.vimeo.com/video/$1\",\n params: {\n title: 0,\n byline: 0,\n portrait: 0\n }\n }, {\n reg: /^.*(?:\\/video|dai.ly)\\/([A-Za-z0-9]+)([^#\\&\\?]*).*/i,\n url: \"https://www.dailymotion.com/embed/video/$1\",\n params: {\n autoplay: 0\n }\n }, {\n reg: /^.*coub.com\\/(?:embed|view)\\/([A-Za-z0-9]+)([^#\\&\\?]*).*/i,\n url: \"https://coub.com/embed/$1\",\n params: {\n autoplay: 0\n }\n }]\n };\n },\n watch: {\n src: function (e) {\n this.parse();\n }\n },\n methods: {\n parse: function () {\n if (this.src) for (var e = 0; e < this.videos.length; e++) {\n var t = this.videos[e];\n if (t.reg.exec(this.src)) {\n var r = Object.assign({}, t.params, this.params),\n o = Object.keys(r).map(function (e) {\n return e + \"=\" + r[e];\n }).join(\"&\"),\n n = t.url.indexOf(\"?\") >= 0 ? \"&\" : \"?\";\n return this.url = this.src.replace(t.reg, t.url) + n + o, void (this.valid = !0);\n }\n }\n this.valid = !1;\n }\n },\n mounted: function () {\n this.parse();\n }\n }, function () {\n var e = this.$createElement,\n t = this._self._c || e;\n return this.valid ? t(\"div\", {\n staticClass: \"embed-responsive\",\n class: [this.css]\n }, [t(\"iframe\", {\n staticClass: \"embed-responsive-item\",\n attrs: {\n loading: \"lazy\",\n sandbox: \"allow-forms allow-scripts allow-pointer-lock allow-same-origin allow-top-navigation allow-presentation\",\n allowfullscreen: \"\",\n src: this.url\n }\n })]) : this._e();\n }, [], !1, null, null, null).exports,\n n = {\n install: function (e) {\n e.__embed_installed || (e.__embed_installed = !0, e.component(\"video-embed\", o));\n }\n };\n \"undefined\" != typeof window && window.Vue && Vue.use(n);\n t.default = n;\n }]);\n});","import { parse, icon, config, text } from '@fortawesome/fontawesome-svg-core';\nvar commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\nfunction createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n}\nvar humps = createCommonjsModule(function (module) {\n (function (global) {\n var _processKeys = function (convert, obj, options) {\n if (!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {\n return obj;\n }\n var output,\n i = 0,\n l = 0;\n if (_isArray(obj)) {\n output = [];\n for (l = obj.length; i < l; i++) {\n output.push(_processKeys(convert, obj[i], options));\n }\n } else {\n output = {};\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n output[convert(key, options)] = _processKeys(convert, obj[key], options);\n }\n }\n }\n return output;\n };\n\n // String conversion methods\n\n var separateWords = function (string, options) {\n options = options || {};\n var separator = options.separator || '_';\n var split = options.split || /(?=[A-Z])/;\n return string.split(split).join(separator);\n };\n var camelize = function (string) {\n if (_isNumerical(string)) {\n return string;\n }\n string = string.replace(/[\\-_\\s]+(.)?/g, function (match, chr) {\n return chr ? chr.toUpperCase() : '';\n });\n // Ensure 1st char is always lowercase\n return string.substr(0, 1).toLowerCase() + string.substr(1);\n };\n var pascalize = function (string) {\n var camelized = camelize(string);\n // Ensure 1st char is always uppercase\n return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);\n };\n var decamelize = function (string, options) {\n return separateWords(string, options).toLowerCase();\n };\n\n // Utilities\n // Taken from Underscore.js\n\n var toString = Object.prototype.toString;\n var _isFunction = function (obj) {\n return typeof obj === 'function';\n };\n var _isObject = function (obj) {\n return obj === Object(obj);\n };\n var _isArray = function (obj) {\n return toString.call(obj) == '[object Array]';\n };\n var _isDate = function (obj) {\n return toString.call(obj) == '[object Date]';\n };\n var _isRegExp = function (obj) {\n return toString.call(obj) == '[object RegExp]';\n };\n var _isBoolean = function (obj) {\n return toString.call(obj) == '[object Boolean]';\n };\n\n // Performant way to determine if obj coerces to a number\n var _isNumerical = function (obj) {\n obj = obj - 0;\n return obj === obj;\n };\n\n // Sets up function which handles processing keys\n // allowing the convert function to be modified by a callback\n var _processor = function (convert, options) {\n var callback = options && 'process' in options ? options.process : options;\n if (typeof callback !== 'function') {\n return convert;\n }\n return function (string, options) {\n return callback(string, convert, options);\n };\n };\n var humps = {\n camelize: camelize,\n decamelize: decamelize,\n pascalize: pascalize,\n depascalize: decamelize,\n camelizeKeys: function (object, options) {\n return _processKeys(_processor(camelize, options), object);\n },\n decamelizeKeys: function (object, options) {\n return _processKeys(_processor(decamelize, options), object, options);\n },\n pascalizeKeys: function (object, options) {\n return _processKeys(_processor(pascalize, options), object);\n },\n depascalizeKeys: function () {\n return this.decamelizeKeys.apply(this, arguments);\n }\n };\n if (typeof undefined === 'function' && undefined.amd) {\n undefined(humps);\n } else if ('object' !== 'undefined' && module.exports) {\n module.exports = humps;\n } else {\n global.humps = humps;\n }\n })(commonjsGlobal);\n});\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\nvar defineProperty = function (obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n};\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n};\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n return target;\n};\nvar toConsumableArray = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n return arr2;\n } else {\n return Array.from(arr);\n }\n};\nfunction styleToObject(style) {\n return style.split(';').map(function (s) {\n return s.trim();\n }).filter(function (s) {\n return s;\n }).reduce(function (acc, pair) {\n var i = pair.indexOf(':');\n var prop = humps.camelize(pair.slice(0, i));\n var value = pair.slice(i + 1).trim();\n acc[prop] = value;\n return acc;\n }, {});\n}\nfunction classToObject(cls) {\n return cls.split(/\\s+/).reduce(function (acc, c) {\n acc[c] = true;\n return acc;\n }, {});\n}\nfunction combineClassObjects() {\n for (var _len = arguments.length, objs = Array(_len), _key = 0; _key < _len; _key++) {\n objs[_key] = arguments[_key];\n }\n return objs.reduce(function (acc, obj) {\n if (Array.isArray(obj)) {\n acc = acc.concat(obj);\n } else {\n acc.push(obj);\n }\n return acc;\n }, []);\n}\nfunction convert(h, element) {\n var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var data = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var children = (element.children || []).map(convert.bind(null, h));\n var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {\n var val = element.attributes[key];\n switch (key) {\n case 'class':\n acc['class'] = classToObject(val);\n break;\n case 'style':\n acc['style'] = styleToObject(val);\n break;\n default:\n acc.attrs[key] = val;\n }\n return acc;\n }, {\n 'class': {},\n style: {},\n attrs: {}\n });\n var _data$class = data.class,\n dClass = _data$class === undefined ? {} : _data$class,\n _data$style = data.style,\n dStyle = _data$style === undefined ? {} : _data$style,\n _data$attrs = data.attrs,\n dAttrs = _data$attrs === undefined ? {} : _data$attrs,\n remainingData = objectWithoutProperties(data, ['class', 'style', 'attrs']);\n if (typeof element === 'string') {\n return element;\n } else {\n return h(element.tag, _extends({\n class: combineClassObjects(mixins.class, dClass),\n style: _extends({}, mixins.style, dStyle),\n attrs: _extends({}, mixins.attrs, dAttrs)\n }, remainingData, {\n props: props\n }), children);\n }\n}\nvar PRODUCTION = false;\ntry {\n PRODUCTION = process.env.NODE_ENV === 'production';\n} catch (e) {}\nfunction log() {\n if (!PRODUCTION && console && typeof console.error === 'function') {\n var _console;\n (_console = console).error.apply(_console, arguments);\n }\n}\nfunction objectWithKey(key, value) {\n return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? defineProperty({}, key, value) : {};\n}\nfunction classList(props) {\n var _classes;\n var classes = (_classes = {\n 'fa-spin': props.spin,\n 'fa-pulse': props.pulse,\n 'fa-fw': props.fixedWidth,\n 'fa-border': props.border,\n 'fa-li': props.listItem,\n 'fa-inverse': props.inverse,\n 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',\n 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'\n }, defineProperty(_classes, 'fa-' + props.size, props.size !== null), defineProperty(_classes, 'fa-rotate-' + props.rotation, props.rotation !== null), defineProperty(_classes, 'fa-pull-' + props.pull, props.pull !== null), defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes);\n return Object.keys(classes).map(function (key) {\n return classes[key] ? key : null;\n }).filter(function (key) {\n return key;\n });\n}\nfunction addStaticClass(to, what) {\n var val = (to || '').length === 0 ? [] : [to];\n return val.concat(what).join(' ');\n}\nfunction normalizeIconArgs(icon$$1) {\n if (icon$$1 === null) {\n return null;\n }\n if ((typeof icon$$1 === 'undefined' ? 'undefined' : _typeof(icon$$1)) === 'object' && icon$$1.prefix && icon$$1.iconName) {\n return icon$$1;\n }\n if (Array.isArray(icon$$1) && icon$$1.length === 2) {\n return {\n prefix: icon$$1[0],\n iconName: icon$$1[1]\n };\n }\n if (typeof icon$$1 === 'string') {\n return {\n prefix: 'fas',\n iconName: icon$$1\n };\n }\n}\nvar FontAwesomeIcon = {\n name: 'FontAwesomeIcon',\n functional: true,\n props: {\n border: {\n type: Boolean,\n default: false\n },\n fixedWidth: {\n type: Boolean,\n default: false\n },\n flip: {\n type: String,\n default: null,\n validator: function validator(value) {\n return ['horizontal', 'vertical', 'both'].indexOf(value) > -1;\n }\n },\n icon: {\n type: [Object, Array, String],\n required: true\n },\n mask: {\n type: [Object, Array, String],\n default: null\n },\n listItem: {\n type: Boolean,\n default: false\n },\n pull: {\n type: String,\n default: null,\n validator: function validator(value) {\n return ['right', 'left'].indexOf(value) > -1;\n }\n },\n pulse: {\n type: Boolean,\n default: false\n },\n rotation: {\n type: [String, Number],\n default: null,\n validator: function validator(value) {\n return [90, 180, 270].indexOf(parseInt(value, 10)) > -1;\n }\n },\n swapOpacity: {\n type: Boolean,\n default: false\n },\n size: {\n type: String,\n default: null,\n validator: function validator(value) {\n return ['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1;\n }\n },\n spin: {\n type: Boolean,\n default: false\n },\n transform: {\n type: [String, Object],\n default: null\n },\n symbol: {\n type: [Boolean, String],\n default: false\n },\n title: {\n type: String,\n default: null\n },\n inverse: {\n type: Boolean,\n default: false\n }\n },\n render: function render(createElement, context) {\n var props = context.props;\n var iconArgs = props.icon,\n maskArgs = props.mask,\n symbol = props.symbol,\n title = props.title;\n var icon$$1 = normalizeIconArgs(iconArgs);\n var classes = objectWithKey('classes', classList(props));\n var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);\n var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));\n var renderedIcon = icon(icon$$1, _extends({}, classes, transform, mask, {\n symbol: symbol,\n title: title\n }));\n if (!renderedIcon) {\n return log('Could not find one or more icon(s)', icon$$1, mask);\n }\n var abstract = renderedIcon.abstract;\n var convertCurry = convert.bind(null, createElement);\n return convertCurry(abstract[0], {}, context.data);\n }\n};\nvar FontAwesomeLayers = {\n name: 'FontAwesomeLayers',\n functional: true,\n props: {\n fixedWidth: {\n type: Boolean,\n default: false\n }\n },\n render: function render(createElement, context) {\n var familyPrefix = config.familyPrefix;\n var staticClass = context.data.staticClass;\n var classes = [familyPrefix + '-layers'].concat(toConsumableArray(context.props.fixedWidth ? [familyPrefix + '-fw'] : []));\n return createElement('div', _extends({}, context.data, {\n staticClass: addStaticClass(staticClass, classes)\n }), context.children);\n }\n};\nvar FontAwesomeLayersText = {\n name: 'FontAwesomeLayersText',\n functional: true,\n props: {\n value: {\n type: [String, Number],\n default: ''\n },\n transform: {\n type: [String, Object],\n default: null\n },\n counter: {\n type: Boolean,\n default: false\n },\n position: {\n type: String,\n default: null,\n validator: function validator(value) {\n return ['bottom-left', 'bottom-right', 'top-left', 'top-right'].indexOf(value) > -1;\n }\n }\n },\n render: function render(createElement, context) {\n var familyPrefix = config.familyPrefix;\n var props = context.props;\n var classes = objectWithKey('classes', [].concat(toConsumableArray(props.counter ? [familyPrefix + '-layers-counter'] : []), toConsumableArray(props.position ? [familyPrefix + '-layers-' + props.position] : [])));\n var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);\n var renderedText = text(props.value.toString(), _extends({}, transform, classes));\n var abstract = renderedText.abstract;\n if (props.counter) {\n abstract[0].attributes.class = abstract[0].attributes.class.replace('fa-layers-text', '');\n }\n var convertCurry = convert.bind(null, createElement);\n return convertCurry(abstract[0], {}, context.data);\n }\n};\nexport { FontAwesomeIcon, FontAwesomeLayers, FontAwesomeLayersText };","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Vuelidate = Vuelidate;\nexports.validationMixin = exports.default = void 0;\nObject.defineProperty(exports, \"withParams\", {\n enumerable: true,\n get: function get() {\n return _params.withParams;\n }\n});\nvar _vval = require(\"./vval\");\nvar _params = require(\"./params\");\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nvar NIL = function NIL() {\n return null;\n};\nvar buildFromKeys = function buildFromKeys(keys, fn, keyFn) {\n return keys.reduce(function (build, key) {\n build[keyFn ? keyFn(key) : key] = fn(key);\n return build;\n }, {});\n};\nfunction isFunction(val) {\n return typeof val === 'function';\n}\nfunction isObject(val) {\n return val !== null && (_typeof(val) === 'object' || isFunction(val));\n}\nfunction isPromise(object) {\n return isObject(object) && isFunction(object.then);\n}\nvar getPath = function getPath(ctx, obj, path, fallback) {\n if (typeof path === 'function') {\n return path.call(ctx, obj, fallback);\n }\n path = Array.isArray(path) ? path : path.split('.');\n for (var i = 0; i < path.length; i++) {\n if (obj && _typeof(obj) === 'object') {\n obj = obj[path[i]];\n } else {\n return fallback;\n }\n }\n return typeof obj === 'undefined' ? fallback : obj;\n};\nvar __isVuelidateAsyncVm = '__isVuelidateAsyncVm';\nfunction makePendingAsyncVm(Vue, promise) {\n var asyncVm = new Vue({\n data: {\n p: true,\n v: false\n }\n });\n promise.then(function (value) {\n asyncVm.p = false;\n asyncVm.v = value;\n }, function (error) {\n asyncVm.p = false;\n asyncVm.v = false;\n throw error;\n });\n asyncVm[__isVuelidateAsyncVm] = true;\n return asyncVm;\n}\nvar validationGetters = {\n $invalid: function $invalid() {\n var _this = this;\n var proxy = this.proxy;\n return this.nestedKeys.some(function (nested) {\n return _this.refProxy(nested).$invalid;\n }) || this.ruleKeys.some(function (rule) {\n return !proxy[rule];\n });\n },\n $dirty: function $dirty() {\n var _this2 = this;\n if (this.dirty) {\n return true;\n }\n if (this.nestedKeys.length === 0) {\n return false;\n }\n return this.nestedKeys.every(function (key) {\n return _this2.refProxy(key).$dirty;\n });\n },\n $anyDirty: function $anyDirty() {\n var _this3 = this;\n if (this.dirty) {\n return true;\n }\n if (this.nestedKeys.length === 0) {\n return false;\n }\n return this.nestedKeys.some(function (key) {\n return _this3.refProxy(key).$anyDirty;\n });\n },\n $error: function $error() {\n return this.$dirty && !this.$pending && this.$invalid;\n },\n $anyError: function $anyError() {\n var _this4 = this;\n if (this.$error) return true;\n return this.nestedKeys.some(function (key) {\n return _this4.refProxy(key).$anyError;\n });\n },\n $pending: function $pending() {\n var _this5 = this;\n return this.ruleKeys.some(function (key) {\n return _this5.getRef(key).$pending;\n }) || this.nestedKeys.some(function (key) {\n return _this5.refProxy(key).$pending;\n });\n },\n $params: function $params() {\n var _this6 = this;\n var vals = this.validations;\n return _objectSpread(_objectSpread({}, buildFromKeys(this.nestedKeys, function (key) {\n return vals[key] && vals[key].$params || null;\n })), buildFromKeys(this.ruleKeys, function (key) {\n return _this6.getRef(key).$params;\n }));\n }\n};\nfunction setDirtyRecursive(newState) {\n this.dirty = newState;\n var proxy = this.proxy;\n var method = newState ? '$touch' : '$reset';\n this.nestedKeys.forEach(function (key) {\n proxy[key][method]();\n });\n}\nvar validationMethods = {\n $touch: function $touch() {\n setDirtyRecursive.call(this, true);\n },\n $reset: function $reset() {\n setDirtyRecursive.call(this, false);\n },\n $flattenParams: function $flattenParams() {\n var proxy = this.proxy;\n var params = [];\n for (var key in this.$params) {\n if (this.isNested(key)) {\n var childParams = proxy[key].$flattenParams();\n for (var j = 0; j < childParams.length; j++) {\n childParams[j].path.unshift(key);\n }\n params = params.concat(childParams);\n } else {\n params.push({\n path: [],\n name: key,\n params: this.$params[key]\n });\n }\n }\n return params;\n }\n};\nvar getterNames = Object.keys(validationGetters);\nvar methodNames = Object.keys(validationMethods);\nvar _cachedComponent = null;\nvar getComponent = function getComponent(Vue) {\n if (_cachedComponent) {\n return _cachedComponent;\n }\n var VBase = Vue.extend({\n computed: {\n refs: function refs() {\n var oldVval = this._vval;\n this._vval = this.children;\n (0, _vval.patchChildren)(oldVval, this._vval);\n var refs = {};\n this._vval.forEach(function (c) {\n refs[c.key] = c.vm;\n });\n return refs;\n }\n },\n beforeCreate: function beforeCreate() {\n this._vval = null;\n },\n beforeDestroy: function beforeDestroy() {\n if (this._vval) {\n (0, _vval.patchChildren)(this._vval);\n this._vval = null;\n }\n },\n methods: {\n getModel: function getModel() {\n return this.lazyModel ? this.lazyModel(this.prop) : this.model;\n },\n getModelKey: function getModelKey(key) {\n var model = this.getModel();\n if (model) {\n return model[key];\n }\n },\n hasIter: function hasIter() {\n return false;\n }\n }\n });\n var ValidationRule = VBase.extend({\n data: function data() {\n return {\n rule: null,\n lazyModel: null,\n model: null,\n lazyParentModel: null,\n rootModel: null\n };\n },\n methods: {\n runRule: function runRule(parent) {\n var model = this.getModel();\n (0, _params.pushParams)();\n var rawOutput = this.rule.call(this.rootModel, model, parent);\n var output = isPromise(rawOutput) ? makePendingAsyncVm(Vue, rawOutput) : rawOutput;\n var rawParams = (0, _params.popParams)();\n var params = rawParams && rawParams.$sub ? rawParams.$sub.length > 1 ? rawParams : rawParams.$sub[0] : null;\n return {\n output: output,\n params: params\n };\n }\n },\n computed: {\n run: function run() {\n var _this7 = this;\n var parent = this.lazyParentModel();\n var isArrayDependant = Array.isArray(parent) && parent.__ob__;\n if (isArrayDependant) {\n var arrayDep = parent.__ob__.dep;\n arrayDep.depend();\n var target = arrayDep.constructor.target;\n if (!this._indirectWatcher) {\n var Watcher = target.constructor;\n this._indirectWatcher = new Watcher(this, function () {\n return _this7.runRule(parent);\n }, null, {\n lazy: true\n });\n }\n var model = this.getModel();\n if (!this._indirectWatcher.dirty && this._lastModel === model) {\n this._indirectWatcher.depend();\n return target.value;\n }\n this._lastModel = model;\n this._indirectWatcher.evaluate();\n this._indirectWatcher.depend();\n } else if (this._indirectWatcher) {\n this._indirectWatcher.teardown();\n this._indirectWatcher = null;\n }\n return this._indirectWatcher ? this._indirectWatcher.value : this.runRule(parent);\n },\n $params: function $params() {\n return this.run.params;\n },\n proxy: function proxy() {\n var output = this.run.output;\n if (output[__isVuelidateAsyncVm]) {\n return !!output.v;\n }\n return !!output;\n },\n $pending: function $pending() {\n var output = this.run.output;\n if (output[__isVuelidateAsyncVm]) {\n return output.p;\n }\n return false;\n }\n },\n destroyed: function destroyed() {\n if (this._indirectWatcher) {\n this._indirectWatcher.teardown();\n this._indirectWatcher = null;\n }\n }\n });\n var Validation = VBase.extend({\n data: function data() {\n return {\n dirty: false,\n validations: null,\n lazyModel: null,\n model: null,\n prop: null,\n lazyParentModel: null,\n rootModel: null\n };\n },\n methods: _objectSpread(_objectSpread({}, validationMethods), {}, {\n refProxy: function refProxy(key) {\n return this.getRef(key).proxy;\n },\n getRef: function getRef(key) {\n return this.refs[key];\n },\n isNested: function isNested(key) {\n return typeof this.validations[key] !== 'function';\n }\n }),\n computed: _objectSpread(_objectSpread({}, validationGetters), {}, {\n nestedKeys: function nestedKeys() {\n return this.keys.filter(this.isNested);\n },\n ruleKeys: function ruleKeys() {\n var _this8 = this;\n return this.keys.filter(function (k) {\n return !_this8.isNested(k);\n });\n },\n keys: function keys() {\n return Object.keys(this.validations).filter(function (k) {\n return k !== '$params';\n });\n },\n proxy: function proxy() {\n var _this9 = this;\n var keyDefs = buildFromKeys(this.keys, function (key) {\n return {\n enumerable: true,\n configurable: true,\n get: function get() {\n return _this9.refProxy(key);\n }\n };\n });\n var getterDefs = buildFromKeys(getterNames, function (key) {\n return {\n enumerable: true,\n configurable: true,\n get: function get() {\n return _this9[key];\n }\n };\n });\n var methodDefs = buildFromKeys(methodNames, function (key) {\n return {\n enumerable: false,\n configurable: true,\n get: function get() {\n return _this9[key];\n }\n };\n });\n var iterDefs = this.hasIter() ? {\n $iter: {\n enumerable: true,\n value: Object.defineProperties({}, _objectSpread({}, keyDefs))\n }\n } : {};\n return Object.defineProperties({}, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, keyDefs), iterDefs), {}, {\n $model: {\n enumerable: true,\n get: function get() {\n var parent = _this9.lazyParentModel();\n if (parent != null) {\n return parent[_this9.prop];\n } else {\n return null;\n }\n },\n set: function set(value) {\n var parent = _this9.lazyParentModel();\n if (parent != null) {\n parent[_this9.prop] = value;\n _this9.$touch();\n }\n }\n }\n }, getterDefs), methodDefs));\n },\n children: function children() {\n var _this10 = this;\n return [].concat(_toConsumableArray(this.nestedKeys.map(function (key) {\n return renderNested(_this10, key);\n })), _toConsumableArray(this.ruleKeys.map(function (key) {\n return renderRule(_this10, key);\n }))).filter(Boolean);\n }\n })\n });\n var GroupValidation = Validation.extend({\n methods: {\n isNested: function isNested(key) {\n return typeof this.validations[key]() !== 'undefined';\n },\n getRef: function getRef(key) {\n var vm = this;\n return {\n get proxy() {\n return vm.validations[key]() || false;\n }\n };\n }\n }\n });\n var EachValidation = Validation.extend({\n computed: {\n keys: function keys() {\n var model = this.getModel();\n if (isObject(model)) {\n return Object.keys(model);\n } else {\n return [];\n }\n },\n tracker: function tracker() {\n var _this11 = this;\n var trackBy = this.validations.$trackBy;\n return trackBy ? function (key) {\n return \"\".concat(getPath(_this11.rootModel, _this11.getModelKey(key), trackBy));\n } : function (x) {\n return \"\".concat(x);\n };\n },\n getModelLazy: function getModelLazy() {\n var _this12 = this;\n return function () {\n return _this12.getModel();\n };\n },\n children: function children() {\n var _this13 = this;\n var def = this.validations;\n var model = this.getModel();\n var validations = _objectSpread({}, def);\n delete validations['$trackBy'];\n var usedTracks = {};\n return this.keys.map(function (key) {\n var track = _this13.tracker(key);\n if (usedTracks.hasOwnProperty(track)) {\n return null;\n }\n usedTracks[track] = true;\n return (0, _vval.h)(Validation, track, {\n validations: validations,\n prop: key,\n lazyParentModel: _this13.getModelLazy,\n model: model[key],\n rootModel: _this13.rootModel\n });\n }).filter(Boolean);\n }\n },\n methods: {\n isNested: function isNested() {\n return true;\n },\n getRef: function getRef(key) {\n return this.refs[this.tracker(key)];\n },\n hasIter: function hasIter() {\n return true;\n }\n }\n });\n var renderNested = function renderNested(vm, key) {\n if (key === '$each') {\n return (0, _vval.h)(EachValidation, key, {\n validations: vm.validations[key],\n lazyParentModel: vm.lazyParentModel,\n prop: key,\n lazyModel: vm.getModel,\n rootModel: vm.rootModel\n });\n }\n var validations = vm.validations[key];\n if (Array.isArray(validations)) {\n var root = vm.rootModel;\n var refVals = buildFromKeys(validations, function (path) {\n return function () {\n return getPath(root, root.$v, path);\n };\n }, function (v) {\n return Array.isArray(v) ? v.join('.') : v;\n });\n return (0, _vval.h)(GroupValidation, key, {\n validations: refVals,\n lazyParentModel: NIL,\n prop: key,\n lazyModel: NIL,\n rootModel: root\n });\n }\n return (0, _vval.h)(Validation, key, {\n validations: validations,\n lazyParentModel: vm.getModel,\n prop: key,\n lazyModel: vm.getModelKey,\n rootModel: vm.rootModel\n });\n };\n var renderRule = function renderRule(vm, key) {\n return (0, _vval.h)(ValidationRule, key, {\n rule: vm.validations[key],\n lazyParentModel: vm.lazyParentModel,\n lazyModel: vm.getModel,\n rootModel: vm.rootModel\n });\n };\n _cachedComponent = {\n VBase: VBase,\n Validation: Validation\n };\n return _cachedComponent;\n};\nvar _cachedVue = null;\nfunction getVue(rootVm) {\n if (_cachedVue) return _cachedVue;\n var Vue = rootVm.constructor;\n while (Vue.super) {\n Vue = Vue.super;\n }\n _cachedVue = Vue;\n return Vue;\n}\nvar validateModel = function validateModel(model, validations) {\n var Vue = getVue(model);\n var _getComponent = getComponent(Vue),\n Validation = _getComponent.Validation,\n VBase = _getComponent.VBase;\n var root = new VBase({\n computed: {\n children: function children() {\n var vals = typeof validations === 'function' ? validations.call(model) : validations;\n return [(0, _vval.h)(Validation, '$v', {\n validations: vals,\n lazyParentModel: NIL,\n prop: '$v',\n model: model,\n rootModel: model\n })];\n }\n }\n });\n return root;\n};\nvar validationMixin = {\n data: function data() {\n var vals = this.$options.validations;\n if (vals) {\n this._vuelidate = validateModel(this, vals);\n }\n return {};\n },\n beforeCreate: function beforeCreate() {\n var options = this.$options;\n var vals = options.validations;\n if (!vals) return;\n if (!options.computed) options.computed = {};\n if (options.computed.$v) return;\n options.computed.$v = function () {\n return this._vuelidate ? this._vuelidate.refs.$v.proxy : null;\n };\n },\n beforeDestroy: function beforeDestroy() {\n if (this._vuelidate) {\n this._vuelidate.$destroy();\n this._vuelidate = null;\n }\n }\n};\nexports.validationMixin = validationMixin;\nfunction Vuelidate(Vue) {\n Vue.mixin(validationMixin);\n}\nvar _default = Vuelidate;\nexports.default = _default;","var n,\n e = (n = require(\"nprogress\")) && \"object\" == typeof n && \"default\" in n ? n.default : n,\n t = null;\nfunction r(n) {\n document.addEventListener(\"inertia:start\", o.bind(null, n)), document.addEventListener(\"inertia:progress\", i), document.addEventListener(\"inertia:finish\", s);\n}\nfunction o(n) {\n t = setTimeout(function () {\n return e.start();\n }, n);\n}\nfunction i(n) {\n e.isStarted() && n.detail.progress.percentage && e.set(Math.max(e.status, n.detail.progress.percentage / 100 * .9));\n}\nfunction s(n) {\n clearTimeout(t), e.isStarted() && (n.detail.visit.completed ? e.done() : n.detail.visit.interrupted ? e.set(0) : n.detail.visit.cancelled && (e.done(), e.remove()));\n}\nexports.InertiaProgress = {\n init: function (n) {\n var t = void 0 === n ? {} : n,\n o = t.delay,\n i = t.color,\n s = void 0 === i ? \"#29d\" : i,\n a = t.includeCSS,\n p = void 0 === a || a,\n d = t.showSpinner,\n l = void 0 !== d && d;\n r(void 0 === o ? 250 : o), e.configure({\n showSpinner: l\n }), p && function (n) {\n var e = document.createElement(\"style\");\n e.type = \"text/css\", e.textContent = \"\\n #nprogress {\\n pointer-events: none;\\n }\\n\\n #nprogress .bar {\\n background: \" + n + \";\\n\\n position: fixed;\\n z-index: 1031;\\n top: 0;\\n left: 0;\\n\\n width: 100%;\\n height: 2px;\\n }\\n\\n #nprogress .peg {\\n display: block;\\n position: absolute;\\n right: 0px;\\n width: 100px;\\n height: 100%;\\n box-shadow: 0 0 10px \" + n + \", 0 0 5px \" + n + \";\\n opacity: 1.0;\\n\\n -webkit-transform: rotate(3deg) translate(0px, -4px);\\n -ms-transform: rotate(3deg) translate(0px, -4px);\\n transform: rotate(3deg) translate(0px, -4px);\\n }\\n\\n #nprogress .spinner {\\n display: block;\\n position: fixed;\\n z-index: 1031;\\n top: 15px;\\n right: 15px;\\n }\\n\\n #nprogress .spinner-icon {\\n width: 18px;\\n height: 18px;\\n box-sizing: border-box;\\n\\n border: solid 2px transparent;\\n border-top-color: \" + n + \";\\n border-left-color: \" + n + \";\\n border-radius: 50%;\\n\\n -webkit-animation: nprogress-spinner 400ms linear infinite;\\n animation: nprogress-spinner 400ms linear infinite;\\n }\\n\\n .nprogress-custom-parent {\\n overflow: hidden;\\n position: relative;\\n }\\n\\n .nprogress-custom-parent #nprogress .spinner,\\n .nprogress-custom-parent #nprogress .bar {\\n position: absolute;\\n }\\n\\n @-webkit-keyframes nprogress-spinner {\\n 0% { -webkit-transform: rotate(0deg); }\\n 100% { -webkit-transform: rotate(360deg); }\\n }\\n @keyframes nprogress-spinner {\\n 0% { transform: rotate(0deg); }\\n 100% { transform: rotate(360deg); }\\n }\\n \", document.head.appendChild(e);\n }(s);\n }\n};","/*!\n * Chart.js v2.9.4\n * https://www.chartjs.org\n * (c) 2020 Chart.js Contributors\n * Released under the MIT License\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(function () {\n try {\n return require('moment');\n } catch (e) {}\n }()) : typeof define === 'function' && define.amd ? define(['require'], function (require) {\n return factory(function () {\n try {\n return require('moment');\n } catch (e) {}\n }());\n }) : (global = global || self, global.Chart = factory(global.moment));\n})(this, function (moment) {\n 'use strict';\n\n moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;\n function createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n }\n function getCjsExportFromNamespace(n) {\n return n && n['default'] || n;\n }\n var colorName = {\n \"aliceblue\": [240, 248, 255],\n \"antiquewhite\": [250, 235, 215],\n \"aqua\": [0, 255, 255],\n \"aquamarine\": [127, 255, 212],\n \"azure\": [240, 255, 255],\n \"beige\": [245, 245, 220],\n \"bisque\": [255, 228, 196],\n \"black\": [0, 0, 0],\n \"blanchedalmond\": [255, 235, 205],\n \"blue\": [0, 0, 255],\n \"blueviolet\": [138, 43, 226],\n \"brown\": [165, 42, 42],\n \"burlywood\": [222, 184, 135],\n \"cadetblue\": [95, 158, 160],\n \"chartreuse\": [127, 255, 0],\n \"chocolate\": [210, 105, 30],\n \"coral\": [255, 127, 80],\n \"cornflowerblue\": [100, 149, 237],\n \"cornsilk\": [255, 248, 220],\n \"crimson\": [220, 20, 60],\n \"cyan\": [0, 255, 255],\n \"darkblue\": [0, 0, 139],\n \"darkcyan\": [0, 139, 139],\n \"darkgoldenrod\": [184, 134, 11],\n \"darkgray\": [169, 169, 169],\n \"darkgreen\": [0, 100, 0],\n \"darkgrey\": [169, 169, 169],\n \"darkkhaki\": [189, 183, 107],\n \"darkmagenta\": [139, 0, 139],\n \"darkolivegreen\": [85, 107, 47],\n \"darkorange\": [255, 140, 0],\n \"darkorchid\": [153, 50, 204],\n \"darkred\": [139, 0, 0],\n \"darksalmon\": [233, 150, 122],\n \"darkseagreen\": [143, 188, 143],\n \"darkslateblue\": [72, 61, 139],\n \"darkslategray\": [47, 79, 79],\n \"darkslategrey\": [47, 79, 79],\n \"darkturquoise\": [0, 206, 209],\n \"darkviolet\": [148, 0, 211],\n \"deeppink\": [255, 20, 147],\n \"deepskyblue\": [0, 191, 255],\n \"dimgray\": [105, 105, 105],\n \"dimgrey\": [105, 105, 105],\n \"dodgerblue\": [30, 144, 255],\n \"firebrick\": [178, 34, 34],\n \"floralwhite\": [255, 250, 240],\n \"forestgreen\": [34, 139, 34],\n \"fuchsia\": [255, 0, 255],\n \"gainsboro\": [220, 220, 220],\n \"ghostwhite\": [248, 248, 255],\n \"gold\": [255, 215, 0],\n \"goldenrod\": [218, 165, 32],\n \"gray\": [128, 128, 128],\n \"green\": [0, 128, 0],\n \"greenyellow\": [173, 255, 47],\n \"grey\": [128, 128, 128],\n \"honeydew\": [240, 255, 240],\n \"hotpink\": [255, 105, 180],\n \"indianred\": [205, 92, 92],\n \"indigo\": [75, 0, 130],\n \"ivory\": [255, 255, 240],\n \"khaki\": [240, 230, 140],\n \"lavender\": [230, 230, 250],\n \"lavenderblush\": [255, 240, 245],\n \"lawngreen\": [124, 252, 0],\n \"lemonchiffon\": [255, 250, 205],\n \"lightblue\": [173, 216, 230],\n \"lightcoral\": [240, 128, 128],\n \"lightcyan\": [224, 255, 255],\n \"lightgoldenrodyellow\": [250, 250, 210],\n \"lightgray\": [211, 211, 211],\n \"lightgreen\": [144, 238, 144],\n \"lightgrey\": [211, 211, 211],\n \"lightpink\": [255, 182, 193],\n \"lightsalmon\": [255, 160, 122],\n \"lightseagreen\": [32, 178, 170],\n \"lightskyblue\": [135, 206, 250],\n \"lightslategray\": [119, 136, 153],\n \"lightslategrey\": [119, 136, 153],\n \"lightsteelblue\": [176, 196, 222],\n \"lightyellow\": [255, 255, 224],\n \"lime\": [0, 255, 0],\n \"limegreen\": [50, 205, 50],\n \"linen\": [250, 240, 230],\n \"magenta\": [255, 0, 255],\n \"maroon\": [128, 0, 0],\n \"mediumaquamarine\": [102, 205, 170],\n \"mediumblue\": [0, 0, 205],\n \"mediumorchid\": [186, 85, 211],\n \"mediumpurple\": [147, 112, 219],\n \"mediumseagreen\": [60, 179, 113],\n \"mediumslateblue\": [123, 104, 238],\n \"mediumspringgreen\": [0, 250, 154],\n \"mediumturquoise\": [72, 209, 204],\n \"mediumvioletred\": [199, 21, 133],\n \"midnightblue\": [25, 25, 112],\n \"mintcream\": [245, 255, 250],\n \"mistyrose\": [255, 228, 225],\n \"moccasin\": [255, 228, 181],\n \"navajowhite\": [255, 222, 173],\n \"navy\": [0, 0, 128],\n \"oldlace\": [253, 245, 230],\n \"olive\": [128, 128, 0],\n \"olivedrab\": [107, 142, 35],\n \"orange\": [255, 165, 0],\n \"orangered\": [255, 69, 0],\n \"orchid\": [218, 112, 214],\n \"palegoldenrod\": [238, 232, 170],\n \"palegreen\": [152, 251, 152],\n \"paleturquoise\": [175, 238, 238],\n \"palevioletred\": [219, 112, 147],\n \"papayawhip\": [255, 239, 213],\n \"peachpuff\": [255, 218, 185],\n \"peru\": [205, 133, 63],\n \"pink\": [255, 192, 203],\n \"plum\": [221, 160, 221],\n \"powderblue\": [176, 224, 230],\n \"purple\": [128, 0, 128],\n \"rebeccapurple\": [102, 51, 153],\n \"red\": [255, 0, 0],\n \"rosybrown\": [188, 143, 143],\n \"royalblue\": [65, 105, 225],\n \"saddlebrown\": [139, 69, 19],\n \"salmon\": [250, 128, 114],\n \"sandybrown\": [244, 164, 96],\n \"seagreen\": [46, 139, 87],\n \"seashell\": [255, 245, 238],\n \"sienna\": [160, 82, 45],\n \"silver\": [192, 192, 192],\n \"skyblue\": [135, 206, 235],\n \"slateblue\": [106, 90, 205],\n \"slategray\": [112, 128, 144],\n \"slategrey\": [112, 128, 144],\n \"snow\": [255, 250, 250],\n \"springgreen\": [0, 255, 127],\n \"steelblue\": [70, 130, 180],\n \"tan\": [210, 180, 140],\n \"teal\": [0, 128, 128],\n \"thistle\": [216, 191, 216],\n \"tomato\": [255, 99, 71],\n \"turquoise\": [64, 224, 208],\n \"violet\": [238, 130, 238],\n \"wheat\": [245, 222, 179],\n \"white\": [255, 255, 255],\n \"whitesmoke\": [245, 245, 245],\n \"yellow\": [255, 255, 0],\n \"yellowgreen\": [154, 205, 50]\n };\n var conversions = createCommonjsModule(function (module) {\n /* MIT license */\n\n // NOTE: conversions should only return primitive values (i.e. arrays, or\n // values that give correct `typeof` results).\n // do not use box values types (i.e. Number(), String(), etc.)\n\n var reverseKeywords = {};\n for (var key in colorName) {\n if (colorName.hasOwnProperty(key)) {\n reverseKeywords[colorName[key]] = key;\n }\n }\n var convert = module.exports = {\n rgb: {\n channels: 3,\n labels: 'rgb'\n },\n hsl: {\n channels: 3,\n labels: 'hsl'\n },\n hsv: {\n channels: 3,\n labels: 'hsv'\n },\n hwb: {\n channels: 3,\n labels: 'hwb'\n },\n cmyk: {\n channels: 4,\n labels: 'cmyk'\n },\n xyz: {\n channels: 3,\n labels: 'xyz'\n },\n lab: {\n channels: 3,\n labels: 'lab'\n },\n lch: {\n channels: 3,\n labels: 'lch'\n },\n hex: {\n channels: 1,\n labels: ['hex']\n },\n keyword: {\n channels: 1,\n labels: ['keyword']\n },\n ansi16: {\n channels: 1,\n labels: ['ansi16']\n },\n ansi256: {\n channels: 1,\n labels: ['ansi256']\n },\n hcg: {\n channels: 3,\n labels: ['h', 'c', 'g']\n },\n apple: {\n channels: 3,\n labels: ['r16', 'g16', 'b16']\n },\n gray: {\n channels: 1,\n labels: ['gray']\n }\n };\n\n // hide .channels and .labels properties\n for (var model in convert) {\n if (convert.hasOwnProperty(model)) {\n if (!('channels' in convert[model])) {\n throw new Error('missing channels property: ' + model);\n }\n if (!('labels' in convert[model])) {\n throw new Error('missing channel labels property: ' + model);\n }\n if (convert[model].labels.length !== convert[model].channels) {\n throw new Error('channel and label counts mismatch: ' + model);\n }\n var channels = convert[model].channels;\n var labels = convert[model].labels;\n delete convert[model].channels;\n delete convert[model].labels;\n Object.defineProperty(convert[model], 'channels', {\n value: channels\n });\n Object.defineProperty(convert[model], 'labels', {\n value: labels\n });\n }\n }\n convert.rgb.hsl = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var delta = max - min;\n var h;\n var s;\n var l;\n if (max === min) {\n h = 0;\n } else if (r === max) {\n h = (g - b) / delta;\n } else if (g === max) {\n h = 2 + (b - r) / delta;\n } else if (b === max) {\n h = 4 + (r - g) / delta;\n }\n h = Math.min(h * 60, 360);\n if (h < 0) {\n h += 360;\n }\n l = (min + max) / 2;\n if (max === min) {\n s = 0;\n } else if (l <= 0.5) {\n s = delta / (max + min);\n } else {\n s = delta / (2 - max - min);\n }\n return [h, s * 100, l * 100];\n };\n convert.rgb.hsv = function (rgb) {\n var rdif;\n var gdif;\n var bdif;\n var h;\n var s;\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var v = Math.max(r, g, b);\n var diff = v - Math.min(r, g, b);\n var diffc = function (c) {\n return (v - c) / 6 / diff + 1 / 2;\n };\n if (diff === 0) {\n h = s = 0;\n } else {\n s = diff / v;\n rdif = diffc(r);\n gdif = diffc(g);\n bdif = diffc(b);\n if (r === v) {\n h = bdif - gdif;\n } else if (g === v) {\n h = 1 / 3 + rdif - bdif;\n } else if (b === v) {\n h = 2 / 3 + gdif - rdif;\n }\n if (h < 0) {\n h += 1;\n } else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n };\n convert.rgb.hwb = function (rgb) {\n var r = rgb[0];\n var g = rgb[1];\n var b = rgb[2];\n var h = convert.rgb.hsl(rgb)[0];\n var w = 1 / 255 * Math.min(r, Math.min(g, b));\n b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n return [h, w * 100, b * 100];\n };\n convert.rgb.cmyk = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var c;\n var m;\n var y;\n var k;\n k = Math.min(1 - r, 1 - g, 1 - b);\n c = (1 - r - k) / (1 - k) || 0;\n m = (1 - g - k) / (1 - k) || 0;\n y = (1 - b - k) / (1 - k) || 0;\n return [c * 100, m * 100, y * 100, k * 100];\n };\n\n /**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\n function comparativeDistance(x, y) {\n return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2);\n }\n convert.rgb.keyword = function (rgb) {\n var reversed = reverseKeywords[rgb];\n if (reversed) {\n return reversed;\n }\n var currentClosestDistance = Infinity;\n var currentClosestKeyword;\n for (var keyword in colorName) {\n if (colorName.hasOwnProperty(keyword)) {\n var value = colorName[keyword];\n\n // Compute comparative distance\n var distance = comparativeDistance(rgb, value);\n\n // Check if its less, if so set as closest\n if (distance < currentClosestDistance) {\n currentClosestDistance = distance;\n currentClosestKeyword = keyword;\n }\n }\n }\n return currentClosestKeyword;\n };\n convert.keyword.rgb = function (keyword) {\n return colorName[keyword];\n };\n convert.rgb.xyz = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n\n // assume sRGB\n r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92;\n g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;\n b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;\n var x = r * 0.4124 + g * 0.3576 + b * 0.1805;\n var y = r * 0.2126 + g * 0.7152 + b * 0.0722;\n var z = r * 0.0193 + g * 0.1192 + b * 0.9505;\n return [x * 100, y * 100, z * 100];\n };\n convert.rgb.lab = function (rgb) {\n var xyz = convert.rgb.xyz(rgb);\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n };\n convert.hsl.rgb = function (hsl) {\n var h = hsl[0] / 360;\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var t1;\n var t2;\n var t3;\n var rgb;\n var val;\n if (s === 0) {\n val = l * 255;\n return [val, val, val];\n }\n if (l < 0.5) {\n t2 = l * (1 + s);\n } else {\n t2 = l + s - l * s;\n }\n t1 = 2 * l - t2;\n rgb = [0, 0, 0];\n for (var i = 0; i < 3; i++) {\n t3 = h + 1 / 3 * -(i - 1);\n if (t3 < 0) {\n t3++;\n }\n if (t3 > 1) {\n t3--;\n }\n if (6 * t3 < 1) {\n val = t1 + (t2 - t1) * 6 * t3;\n } else if (2 * t3 < 1) {\n val = t2;\n } else if (3 * t3 < 2) {\n val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n } else {\n val = t1;\n }\n rgb[i] = val * 255;\n }\n return rgb;\n };\n convert.hsl.hsv = function (hsl) {\n var h = hsl[0];\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var smin = s;\n var lmin = Math.max(l, 0.01);\n var sv;\n var v;\n l *= 2;\n s *= l <= 1 ? l : 2 - l;\n smin *= lmin <= 1 ? lmin : 2 - lmin;\n v = (l + s) / 2;\n sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);\n return [h, sv * 100, v * 100];\n };\n convert.hsv.rgb = function (hsv) {\n var h = hsv[0] / 60;\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var hi = Math.floor(h) % 6;\n var f = h - Math.floor(h);\n var p = 255 * v * (1 - s);\n var q = 255 * v * (1 - s * f);\n var t = 255 * v * (1 - s * (1 - f));\n v *= 255;\n switch (hi) {\n case 0:\n return [v, t, p];\n case 1:\n return [q, v, p];\n case 2:\n return [p, v, t];\n case 3:\n return [p, q, v];\n case 4:\n return [t, p, v];\n case 5:\n return [v, p, q];\n }\n };\n convert.hsv.hsl = function (hsv) {\n var h = hsv[0];\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var vmin = Math.max(v, 0.01);\n var lmin;\n var sl;\n var l;\n l = (2 - s) * v;\n lmin = (2 - s) * vmin;\n sl = s * vmin;\n sl /= lmin <= 1 ? lmin : 2 - lmin;\n sl = sl || 0;\n l /= 2;\n return [h, sl * 100, l * 100];\n };\n\n // http://dev.w3.org/csswg/css-color/#hwb-to-rgb\n convert.hwb.rgb = function (hwb) {\n var h = hwb[0] / 360;\n var wh = hwb[1] / 100;\n var bl = hwb[2] / 100;\n var ratio = wh + bl;\n var i;\n var v;\n var f;\n var n;\n\n // wh + bl cant be > 1\n if (ratio > 1) {\n wh /= ratio;\n bl /= ratio;\n }\n i = Math.floor(6 * h);\n v = 1 - bl;\n f = 6 * h - i;\n if ((i & 0x01) !== 0) {\n f = 1 - f;\n }\n n = wh + f * (v - wh); // linear interpolation\n\n var r;\n var g;\n var b;\n switch (i) {\n default:\n case 6:\n case 0:\n r = v;\n g = n;\n b = wh;\n break;\n case 1:\n r = n;\n g = v;\n b = wh;\n break;\n case 2:\n r = wh;\n g = v;\n b = n;\n break;\n case 3:\n r = wh;\n g = n;\n b = v;\n break;\n case 4:\n r = n;\n g = wh;\n b = v;\n break;\n case 5:\n r = v;\n g = wh;\n b = n;\n break;\n }\n return [r * 255, g * 255, b * 255];\n };\n convert.cmyk.rgb = function (cmyk) {\n var c = cmyk[0] / 100;\n var m = cmyk[1] / 100;\n var y = cmyk[2] / 100;\n var k = cmyk[3] / 100;\n var r;\n var g;\n var b;\n r = 1 - Math.min(1, c * (1 - k) + k);\n g = 1 - Math.min(1, m * (1 - k) + k);\n b = 1 - Math.min(1, y * (1 - k) + k);\n return [r * 255, g * 255, b * 255];\n };\n convert.xyz.rgb = function (xyz) {\n var x = xyz[0] / 100;\n var y = xyz[1] / 100;\n var z = xyz[2] / 100;\n var r;\n var g;\n var b;\n r = x * 3.2406 + y * -1.5372 + z * -0.4986;\n g = x * -0.9689 + y * 1.8758 + z * 0.0415;\n b = x * 0.0557 + y * -0.2040 + z * 1.0570;\n\n // assume sRGB\n r = r > 0.0031308 ? 1.055 * Math.pow(r, 1.0 / 2.4) - 0.055 : r * 12.92;\n g = g > 0.0031308 ? 1.055 * Math.pow(g, 1.0 / 2.4) - 0.055 : g * 12.92;\n b = b > 0.0031308 ? 1.055 * Math.pow(b, 1.0 / 2.4) - 0.055 : b * 12.92;\n r = Math.min(Math.max(0, r), 1);\n g = Math.min(Math.max(0, g), 1);\n b = Math.min(Math.max(0, b), 1);\n return [r * 255, g * 255, b * 255];\n };\n convert.xyz.lab = function (xyz) {\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n };\n convert.lab.xyz = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var x;\n var y;\n var z;\n y = (l + 16) / 116;\n x = a / 500 + y;\n z = y - b / 200;\n var y2 = Math.pow(y, 3);\n var x2 = Math.pow(x, 3);\n var z2 = Math.pow(z, 3);\n y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n x *= 95.047;\n y *= 100;\n z *= 108.883;\n return [x, y, z];\n };\n convert.lab.lch = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var hr;\n var h;\n var c;\n hr = Math.atan2(b, a);\n h = hr * 360 / 2 / Math.PI;\n if (h < 0) {\n h += 360;\n }\n c = Math.sqrt(a * a + b * b);\n return [l, c, h];\n };\n convert.lch.lab = function (lch) {\n var l = lch[0];\n var c = lch[1];\n var h = lch[2];\n var a;\n var b;\n var hr;\n hr = h / 360 * 2 * Math.PI;\n a = c * Math.cos(hr);\n b = c * Math.sin(hr);\n return [l, a, b];\n };\n convert.rgb.ansi16 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2];\n var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n value = Math.round(value / 50);\n if (value === 0) {\n return 30;\n }\n var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));\n if (value === 2) {\n ansi += 60;\n }\n return ansi;\n };\n convert.hsv.ansi16 = function (args) {\n // optimization here; we already know the value and don't need to get\n // it converted for us.\n return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n };\n convert.rgb.ansi256 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2];\n\n // we use the extended greyscale palette here, with the exception of\n // black and white. normal palette only has 4 greyscale shades.\n if (r === g && g === b) {\n if (r < 8) {\n return 16;\n }\n if (r > 248) {\n return 231;\n }\n return Math.round((r - 8) / 247 * 24) + 232;\n }\n var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);\n return ansi;\n };\n convert.ansi16.rgb = function (args) {\n var color = args % 10;\n\n // handle greyscale\n if (color === 0 || color === 7) {\n if (args > 50) {\n color += 3.5;\n }\n color = color / 10.5 * 255;\n return [color, color, color];\n }\n var mult = (~~(args > 50) + 1) * 0.5;\n var r = (color & 1) * mult * 255;\n var g = (color >> 1 & 1) * mult * 255;\n var b = (color >> 2 & 1) * mult * 255;\n return [r, g, b];\n };\n convert.ansi256.rgb = function (args) {\n // handle greyscale\n if (args >= 232) {\n var c = (args - 232) * 10 + 8;\n return [c, c, c];\n }\n args -= 16;\n var rem;\n var r = Math.floor(args / 36) / 5 * 255;\n var g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n var b = rem % 6 / 5 * 255;\n return [r, g, b];\n };\n convert.rgb.hex = function (args) {\n var integer = ((Math.round(args[0]) & 0xFF) << 16) + ((Math.round(args[1]) & 0xFF) << 8) + (Math.round(args[2]) & 0xFF);\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n };\n convert.hex.rgb = function (args) {\n var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n if (!match) {\n return [0, 0, 0];\n }\n var colorString = match[0];\n if (match[0].length === 3) {\n colorString = colorString.split('').map(function (char) {\n return char + char;\n }).join('');\n }\n var integer = parseInt(colorString, 16);\n var r = integer >> 16 & 0xFF;\n var g = integer >> 8 & 0xFF;\n var b = integer & 0xFF;\n return [r, g, b];\n };\n convert.rgb.hcg = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var max = Math.max(Math.max(r, g), b);\n var min = Math.min(Math.min(r, g), b);\n var chroma = max - min;\n var grayscale;\n var hue;\n if (chroma < 1) {\n grayscale = min / (1 - chroma);\n } else {\n grayscale = 0;\n }\n if (chroma <= 0) {\n hue = 0;\n } else if (max === r) {\n hue = (g - b) / chroma % 6;\n } else if (max === g) {\n hue = 2 + (b - r) / chroma;\n } else {\n hue = 4 + (r - g) / chroma + 4;\n }\n hue /= 6;\n hue %= 1;\n return [hue * 360, chroma * 100, grayscale * 100];\n };\n convert.hsl.hcg = function (hsl) {\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var c = 1;\n var f = 0;\n if (l < 0.5) {\n c = 2.0 * s * l;\n } else {\n c = 2.0 * s * (1.0 - l);\n }\n if (c < 1.0) {\n f = (l - 0.5 * c) / (1.0 - c);\n }\n return [hsl[0], c * 100, f * 100];\n };\n convert.hsv.hcg = function (hsv) {\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var c = s * v;\n var f = 0;\n if (c < 1.0) {\n f = (v - c) / (1 - c);\n }\n return [hsv[0], c * 100, f * 100];\n };\n convert.hcg.rgb = function (hcg) {\n var h = hcg[0] / 360;\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n if (c === 0.0) {\n return [g * 255, g * 255, g * 255];\n }\n var pure = [0, 0, 0];\n var hi = h % 1 * 6;\n var v = hi % 1;\n var w = 1 - v;\n var mg = 0;\n switch (Math.floor(hi)) {\n case 0:\n pure[0] = 1;\n pure[1] = v;\n pure[2] = 0;\n break;\n case 1:\n pure[0] = w;\n pure[1] = 1;\n pure[2] = 0;\n break;\n case 2:\n pure[0] = 0;\n pure[1] = 1;\n pure[2] = v;\n break;\n case 3:\n pure[0] = 0;\n pure[1] = w;\n pure[2] = 1;\n break;\n case 4:\n pure[0] = v;\n pure[1] = 0;\n pure[2] = 1;\n break;\n default:\n pure[0] = 1;\n pure[1] = 0;\n pure[2] = w;\n }\n mg = (1.0 - c) * g;\n return [(c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255];\n };\n convert.hcg.hsv = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n var f = 0;\n if (v > 0.0) {\n f = c / v;\n }\n return [hcg[0], f * 100, v * 100];\n };\n convert.hcg.hsl = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var l = g * (1.0 - c) + 0.5 * c;\n var s = 0;\n if (l > 0.0 && l < 0.5) {\n s = c / (2 * l);\n } else if (l >= 0.5 && l < 1.0) {\n s = c / (2 * (1 - l));\n }\n return [hcg[0], s * 100, l * 100];\n };\n convert.hcg.hwb = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n return [hcg[0], (v - c) * 100, (1 - v) * 100];\n };\n convert.hwb.hcg = function (hwb) {\n var w = hwb[1] / 100;\n var b = hwb[2] / 100;\n var v = 1 - b;\n var c = v - w;\n var g = 0;\n if (c < 1) {\n g = (v - c) / (1 - c);\n }\n return [hwb[0], c * 100, g * 100];\n };\n convert.apple.rgb = function (apple) {\n return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];\n };\n convert.rgb.apple = function (rgb) {\n return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];\n };\n convert.gray.rgb = function (args) {\n return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n };\n convert.gray.hsl = convert.gray.hsv = function (args) {\n return [0, 0, args[0]];\n };\n convert.gray.hwb = function (gray) {\n return [0, 100, gray[0]];\n };\n convert.gray.cmyk = function (gray) {\n return [0, 0, 0, gray[0]];\n };\n convert.gray.lab = function (gray) {\n return [gray[0], 0, 0];\n };\n convert.gray.hex = function (gray) {\n var val = Math.round(gray[0] / 100 * 255) & 0xFF;\n var integer = (val << 16) + (val << 8) + val;\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n };\n convert.rgb.gray = function (rgb) {\n var val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n return [val / 255 * 100];\n };\n });\n var conversions_1 = conversions.rgb;\n var conversions_2 = conversions.hsl;\n var conversions_3 = conversions.hsv;\n var conversions_4 = conversions.hwb;\n var conversions_5 = conversions.cmyk;\n var conversions_6 = conversions.xyz;\n var conversions_7 = conversions.lab;\n var conversions_8 = conversions.lch;\n var conversions_9 = conversions.hex;\n var conversions_10 = conversions.keyword;\n var conversions_11 = conversions.ansi16;\n var conversions_12 = conversions.ansi256;\n var conversions_13 = conversions.hcg;\n var conversions_14 = conversions.apple;\n var conversions_15 = conversions.gray;\n\n /*\n \tthis function routes a model to all other models.\n \n \tall functions that are routed have a property `.conversion` attached\n \tto the returned synthetic function. This property is an array\n \tof strings, each with the steps in between the 'from' and 'to'\n \tcolor models (inclusive).\n \n \tconversions that are not possible simply are not included.\n */\n\n function buildGraph() {\n var graph = {};\n // https://jsperf.com/object-keys-vs-for-in-with-closure/3\n var models = Object.keys(conversions);\n for (var len = models.length, i = 0; i < len; i++) {\n graph[models[i]] = {\n // http://jsperf.com/1-vs-infinity\n // micro-opt, but this is simple.\n distance: -1,\n parent: null\n };\n }\n return graph;\n }\n\n // https://en.wikipedia.org/wiki/Breadth-first_search\n function deriveBFS(fromModel) {\n var graph = buildGraph();\n var queue = [fromModel]; // unshift -> queue -> pop\n\n graph[fromModel].distance = 0;\n while (queue.length) {\n var current = queue.pop();\n var adjacents = Object.keys(conversions[current]);\n for (var len = adjacents.length, i = 0; i < len; i++) {\n var adjacent = adjacents[i];\n var node = graph[adjacent];\n if (node.distance === -1) {\n node.distance = graph[current].distance + 1;\n node.parent = current;\n queue.unshift(adjacent);\n }\n }\n }\n return graph;\n }\n function link(from, to) {\n return function (args) {\n return to(from(args));\n };\n }\n function wrapConversion(toModel, graph) {\n var path = [graph[toModel].parent, toModel];\n var fn = conversions[graph[toModel].parent][toModel];\n var cur = graph[toModel].parent;\n while (graph[cur].parent) {\n path.unshift(graph[cur].parent);\n fn = link(conversions[graph[cur].parent][cur], fn);\n cur = graph[cur].parent;\n }\n fn.conversion = path;\n return fn;\n }\n var route = function (fromModel) {\n var graph = deriveBFS(fromModel);\n var conversion = {};\n var models = Object.keys(graph);\n for (var len = models.length, i = 0; i < len; i++) {\n var toModel = models[i];\n var node = graph[toModel];\n if (node.parent === null) {\n // no possible conversion, or this node is the source model.\n continue;\n }\n conversion[toModel] = wrapConversion(toModel, graph);\n }\n return conversion;\n };\n var convert = {};\n var models = Object.keys(conversions);\n function wrapRaw(fn) {\n var wrappedFn = function (args) {\n if (args === undefined || args === null) {\n return args;\n }\n if (arguments.length > 1) {\n args = Array.prototype.slice.call(arguments);\n }\n return fn(args);\n };\n\n // preserve .conversion property if there is one\n if ('conversion' in fn) {\n wrappedFn.conversion = fn.conversion;\n }\n return wrappedFn;\n }\n function wrapRounded(fn) {\n var wrappedFn = function (args) {\n if (args === undefined || args === null) {\n return args;\n }\n if (arguments.length > 1) {\n args = Array.prototype.slice.call(arguments);\n }\n var result = fn(args);\n\n // we're assuming the result is an array here.\n // see notice in conversions.js; don't use box types\n // in conversion functions.\n if (typeof result === 'object') {\n for (var len = result.length, i = 0; i < len; i++) {\n result[i] = Math.round(result[i]);\n }\n }\n return result;\n };\n\n // preserve .conversion property if there is one\n if ('conversion' in fn) {\n wrappedFn.conversion = fn.conversion;\n }\n return wrappedFn;\n }\n models.forEach(function (fromModel) {\n convert[fromModel] = {};\n Object.defineProperty(convert[fromModel], 'channels', {\n value: conversions[fromModel].channels\n });\n Object.defineProperty(convert[fromModel], 'labels', {\n value: conversions[fromModel].labels\n });\n var routes = route(fromModel);\n var routeModels = Object.keys(routes);\n routeModels.forEach(function (toModel) {\n var fn = routes[toModel];\n convert[fromModel][toModel] = wrapRounded(fn);\n convert[fromModel][toModel].raw = wrapRaw(fn);\n });\n });\n var colorConvert = convert;\n var colorName$1 = {\n \"aliceblue\": [240, 248, 255],\n \"antiquewhite\": [250, 235, 215],\n \"aqua\": [0, 255, 255],\n \"aquamarine\": [127, 255, 212],\n \"azure\": [240, 255, 255],\n \"beige\": [245, 245, 220],\n \"bisque\": [255, 228, 196],\n \"black\": [0, 0, 0],\n \"blanchedalmond\": [255, 235, 205],\n \"blue\": [0, 0, 255],\n \"blueviolet\": [138, 43, 226],\n \"brown\": [165, 42, 42],\n \"burlywood\": [222, 184, 135],\n \"cadetblue\": [95, 158, 160],\n \"chartreuse\": [127, 255, 0],\n \"chocolate\": [210, 105, 30],\n \"coral\": [255, 127, 80],\n \"cornflowerblue\": [100, 149, 237],\n \"cornsilk\": [255, 248, 220],\n \"crimson\": [220, 20, 60],\n \"cyan\": [0, 255, 255],\n \"darkblue\": [0, 0, 139],\n \"darkcyan\": [0, 139, 139],\n \"darkgoldenrod\": [184, 134, 11],\n \"darkgray\": [169, 169, 169],\n \"darkgreen\": [0, 100, 0],\n \"darkgrey\": [169, 169, 169],\n \"darkkhaki\": [189, 183, 107],\n \"darkmagenta\": [139, 0, 139],\n \"darkolivegreen\": [85, 107, 47],\n \"darkorange\": [255, 140, 0],\n \"darkorchid\": [153, 50, 204],\n \"darkred\": [139, 0, 0],\n \"darksalmon\": [233, 150, 122],\n \"darkseagreen\": [143, 188, 143],\n \"darkslateblue\": [72, 61, 139],\n \"darkslategray\": [47, 79, 79],\n \"darkslategrey\": [47, 79, 79],\n \"darkturquoise\": [0, 206, 209],\n \"darkviolet\": [148, 0, 211],\n \"deeppink\": [255, 20, 147],\n \"deepskyblue\": [0, 191, 255],\n \"dimgray\": [105, 105, 105],\n \"dimgrey\": [105, 105, 105],\n \"dodgerblue\": [30, 144, 255],\n \"firebrick\": [178, 34, 34],\n \"floralwhite\": [255, 250, 240],\n \"forestgreen\": [34, 139, 34],\n \"fuchsia\": [255, 0, 255],\n \"gainsboro\": [220, 220, 220],\n \"ghostwhite\": [248, 248, 255],\n \"gold\": [255, 215, 0],\n \"goldenrod\": [218, 165, 32],\n \"gray\": [128, 128, 128],\n \"green\": [0, 128, 0],\n \"greenyellow\": [173, 255, 47],\n \"grey\": [128, 128, 128],\n \"honeydew\": [240, 255, 240],\n \"hotpink\": [255, 105, 180],\n \"indianred\": [205, 92, 92],\n \"indigo\": [75, 0, 130],\n \"ivory\": [255, 255, 240],\n \"khaki\": [240, 230, 140],\n \"lavender\": [230, 230, 250],\n \"lavenderblush\": [255, 240, 245],\n \"lawngreen\": [124, 252, 0],\n \"lemonchiffon\": [255, 250, 205],\n \"lightblue\": [173, 216, 230],\n \"lightcoral\": [240, 128, 128],\n \"lightcyan\": [224, 255, 255],\n \"lightgoldenrodyellow\": [250, 250, 210],\n \"lightgray\": [211, 211, 211],\n \"lightgreen\": [144, 238, 144],\n \"lightgrey\": [211, 211, 211],\n \"lightpink\": [255, 182, 193],\n \"lightsalmon\": [255, 160, 122],\n \"lightseagreen\": [32, 178, 170],\n \"lightskyblue\": [135, 206, 250],\n \"lightslategray\": [119, 136, 153],\n \"lightslategrey\": [119, 136, 153],\n \"lightsteelblue\": [176, 196, 222],\n \"lightyellow\": [255, 255, 224],\n \"lime\": [0, 255, 0],\n \"limegreen\": [50, 205, 50],\n \"linen\": [250, 240, 230],\n \"magenta\": [255, 0, 255],\n \"maroon\": [128, 0, 0],\n \"mediumaquamarine\": [102, 205, 170],\n \"mediumblue\": [0, 0, 205],\n \"mediumorchid\": [186, 85, 211],\n \"mediumpurple\": [147, 112, 219],\n \"mediumseagreen\": [60, 179, 113],\n \"mediumslateblue\": [123, 104, 238],\n \"mediumspringgreen\": [0, 250, 154],\n \"mediumturquoise\": [72, 209, 204],\n \"mediumvioletred\": [199, 21, 133],\n \"midnightblue\": [25, 25, 112],\n \"mintcream\": [245, 255, 250],\n \"mistyrose\": [255, 228, 225],\n \"moccasin\": [255, 228, 181],\n \"navajowhite\": [255, 222, 173],\n \"navy\": [0, 0, 128],\n \"oldlace\": [253, 245, 230],\n \"olive\": [128, 128, 0],\n \"olivedrab\": [107, 142, 35],\n \"orange\": [255, 165, 0],\n \"orangered\": [255, 69, 0],\n \"orchid\": [218, 112, 214],\n \"palegoldenrod\": [238, 232, 170],\n \"palegreen\": [152, 251, 152],\n \"paleturquoise\": [175, 238, 238],\n \"palevioletred\": [219, 112, 147],\n \"papayawhip\": [255, 239, 213],\n \"peachpuff\": [255, 218, 185],\n \"peru\": [205, 133, 63],\n \"pink\": [255, 192, 203],\n \"plum\": [221, 160, 221],\n \"powderblue\": [176, 224, 230],\n \"purple\": [128, 0, 128],\n \"rebeccapurple\": [102, 51, 153],\n \"red\": [255, 0, 0],\n \"rosybrown\": [188, 143, 143],\n \"royalblue\": [65, 105, 225],\n \"saddlebrown\": [139, 69, 19],\n \"salmon\": [250, 128, 114],\n \"sandybrown\": [244, 164, 96],\n \"seagreen\": [46, 139, 87],\n \"seashell\": [255, 245, 238],\n \"sienna\": [160, 82, 45],\n \"silver\": [192, 192, 192],\n \"skyblue\": [135, 206, 235],\n \"slateblue\": [106, 90, 205],\n \"slategray\": [112, 128, 144],\n \"slategrey\": [112, 128, 144],\n \"snow\": [255, 250, 250],\n \"springgreen\": [0, 255, 127],\n \"steelblue\": [70, 130, 180],\n \"tan\": [210, 180, 140],\n \"teal\": [0, 128, 128],\n \"thistle\": [216, 191, 216],\n \"tomato\": [255, 99, 71],\n \"turquoise\": [64, 224, 208],\n \"violet\": [238, 130, 238],\n \"wheat\": [245, 222, 179],\n \"white\": [255, 255, 255],\n \"whitesmoke\": [245, 245, 245],\n \"yellow\": [255, 255, 0],\n \"yellowgreen\": [154, 205, 50]\n };\n\n /* MIT license */\n\n var colorString = {\n getRgba: getRgba,\n getHsla: getHsla,\n getRgb: getRgb,\n getHsl: getHsl,\n getHwb: getHwb,\n getAlpha: getAlpha,\n hexString: hexString,\n rgbString: rgbString,\n rgbaString: rgbaString,\n percentString: percentString,\n percentaString: percentaString,\n hslString: hslString,\n hslaString: hslaString,\n hwbString: hwbString,\n keyword: keyword\n };\n function getRgba(string) {\n if (!string) {\n return;\n }\n var abbr = /^#([a-fA-F0-9]{3,4})$/i,\n hex = /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,\n rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n keyword = /(\\w+)/;\n var rgb = [0, 0, 0],\n a = 1,\n match = string.match(abbr),\n hexAlpha = \"\";\n if (match) {\n match = match[1];\n hexAlpha = match[3];\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = parseInt(match[i] + match[i], 16);\n }\n if (hexAlpha) {\n a = Math.round(parseInt(hexAlpha + hexAlpha, 16) / 255 * 100) / 100;\n }\n } else if (match = string.match(hex)) {\n hexAlpha = match[2];\n match = match[1];\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);\n }\n if (hexAlpha) {\n a = Math.round(parseInt(hexAlpha, 16) / 255 * 100) / 100;\n }\n } else if (match = string.match(rgba)) {\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = parseInt(match[i + 1]);\n }\n a = parseFloat(match[4]);\n } else if (match = string.match(per)) {\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n }\n a = parseFloat(match[4]);\n } else if (match = string.match(keyword)) {\n if (match[1] == \"transparent\") {\n return [0, 0, 0, 0];\n }\n rgb = colorName$1[match[1]];\n if (!rgb) {\n return;\n }\n }\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = scale(rgb[i], 0, 255);\n }\n if (!a && a != 0) {\n a = 1;\n } else {\n a = scale(a, 0, 1);\n }\n rgb[3] = a;\n return rgb;\n }\n function getHsla(string) {\n if (!string) {\n return;\n }\n var hsl = /^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n var match = string.match(hsl);\n if (match) {\n var alpha = parseFloat(match[4]);\n var h = scale(parseInt(match[1]), 0, 360),\n s = scale(parseFloat(match[2]), 0, 100),\n l = scale(parseFloat(match[3]), 0, 100),\n a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n return [h, s, l, a];\n }\n }\n function getHwb(string) {\n if (!string) {\n return;\n }\n var hwb = /^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n var match = string.match(hwb);\n if (match) {\n var alpha = parseFloat(match[4]);\n var h = scale(parseInt(match[1]), 0, 360),\n w = scale(parseFloat(match[2]), 0, 100),\n b = scale(parseFloat(match[3]), 0, 100),\n a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n return [h, w, b, a];\n }\n }\n function getRgb(string) {\n var rgba = getRgba(string);\n return rgba && rgba.slice(0, 3);\n }\n function getHsl(string) {\n var hsla = getHsla(string);\n return hsla && hsla.slice(0, 3);\n }\n function getAlpha(string) {\n var vals = getRgba(string);\n if (vals) {\n return vals[3];\n } else if (vals = getHsla(string)) {\n return vals[3];\n } else if (vals = getHwb(string)) {\n return vals[3];\n }\n }\n\n // generators\n function hexString(rgba, a) {\n var a = a !== undefined && rgba.length === 3 ? a : rgba[3];\n return \"#\" + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (a >= 0 && a < 1 ? hexDouble(Math.round(a * 255)) : \"\");\n }\n function rgbString(rgba, alpha) {\n if (alpha < 1 || rgba[3] && rgba[3] < 1) {\n return rgbaString(rgba, alpha);\n }\n return \"rgb(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \")\";\n }\n function rgbaString(rgba, alpha) {\n if (alpha === undefined) {\n alpha = rgba[3] !== undefined ? rgba[3] : 1;\n }\n return \"rgba(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \", \" + alpha + \")\";\n }\n function percentString(rgba, alpha) {\n if (alpha < 1 || rgba[3] && rgba[3] < 1) {\n return percentaString(rgba, alpha);\n }\n var r = Math.round(rgba[0] / 255 * 100),\n g = Math.round(rgba[1] / 255 * 100),\n b = Math.round(rgba[2] / 255 * 100);\n return \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\";\n }\n function percentaString(rgba, alpha) {\n var r = Math.round(rgba[0] / 255 * 100),\n g = Math.round(rgba[1] / 255 * 100),\n b = Math.round(rgba[2] / 255 * 100);\n return \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + (alpha || rgba[3] || 1) + \")\";\n }\n function hslString(hsla, alpha) {\n if (alpha < 1 || hsla[3] && hsla[3] < 1) {\n return hslaString(hsla, alpha);\n }\n return \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\";\n }\n function hslaString(hsla, alpha) {\n if (alpha === undefined) {\n alpha = hsla[3] !== undefined ? hsla[3] : 1;\n }\n return \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \" + alpha + \")\";\n }\n\n // hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n // (hwb have alpha optional & 1 is default value)\n function hwbString(hwb, alpha) {\n if (alpha === undefined) {\n alpha = hwb[3] !== undefined ? hwb[3] : 1;\n }\n return \"hwb(\" + hwb[0] + \", \" + hwb[1] + \"%, \" + hwb[2] + \"%\" + (alpha !== undefined && alpha !== 1 ? \", \" + alpha : \"\") + \")\";\n }\n function keyword(rgb) {\n return reverseNames[rgb.slice(0, 3)];\n }\n\n // helpers\n function scale(num, min, max) {\n return Math.min(Math.max(min, num), max);\n }\n function hexDouble(num) {\n var str = num.toString(16).toUpperCase();\n return str.length < 2 ? \"0\" + str : str;\n }\n\n //create a list of reverse color names\n var reverseNames = {};\n for (var name in colorName$1) {\n reverseNames[colorName$1[name]] = name;\n }\n\n /* MIT license */\n\n var Color = function (obj) {\n if (obj instanceof Color) {\n return obj;\n }\n if (!(this instanceof Color)) {\n return new Color(obj);\n }\n this.valid = false;\n this.values = {\n rgb: [0, 0, 0],\n hsl: [0, 0, 0],\n hsv: [0, 0, 0],\n hwb: [0, 0, 0],\n cmyk: [0, 0, 0, 0],\n alpha: 1\n };\n\n // parse Color() argument\n var vals;\n if (typeof obj === 'string') {\n vals = colorString.getRgba(obj);\n if (vals) {\n this.setValues('rgb', vals);\n } else if (vals = colorString.getHsla(obj)) {\n this.setValues('hsl', vals);\n } else if (vals = colorString.getHwb(obj)) {\n this.setValues('hwb', vals);\n }\n } else if (typeof obj === 'object') {\n vals = obj;\n if (vals.r !== undefined || vals.red !== undefined) {\n this.setValues('rgb', vals);\n } else if (vals.l !== undefined || vals.lightness !== undefined) {\n this.setValues('hsl', vals);\n } else if (vals.v !== undefined || vals.value !== undefined) {\n this.setValues('hsv', vals);\n } else if (vals.w !== undefined || vals.whiteness !== undefined) {\n this.setValues('hwb', vals);\n } else if (vals.c !== undefined || vals.cyan !== undefined) {\n this.setValues('cmyk', vals);\n }\n }\n };\n Color.prototype = {\n isValid: function () {\n return this.valid;\n },\n rgb: function () {\n return this.setSpace('rgb', arguments);\n },\n hsl: function () {\n return this.setSpace('hsl', arguments);\n },\n hsv: function () {\n return this.setSpace('hsv', arguments);\n },\n hwb: function () {\n return this.setSpace('hwb', arguments);\n },\n cmyk: function () {\n return this.setSpace('cmyk', arguments);\n },\n rgbArray: function () {\n return this.values.rgb;\n },\n hslArray: function () {\n return this.values.hsl;\n },\n hsvArray: function () {\n return this.values.hsv;\n },\n hwbArray: function () {\n var values = this.values;\n if (values.alpha !== 1) {\n return values.hwb.concat([values.alpha]);\n }\n return values.hwb;\n },\n cmykArray: function () {\n return this.values.cmyk;\n },\n rgbaArray: function () {\n var values = this.values;\n return values.rgb.concat([values.alpha]);\n },\n hslaArray: function () {\n var values = this.values;\n return values.hsl.concat([values.alpha]);\n },\n alpha: function (val) {\n if (val === undefined) {\n return this.values.alpha;\n }\n this.setValues('alpha', val);\n return this;\n },\n red: function (val) {\n return this.setChannel('rgb', 0, val);\n },\n green: function (val) {\n return this.setChannel('rgb', 1, val);\n },\n blue: function (val) {\n return this.setChannel('rgb', 2, val);\n },\n hue: function (val) {\n if (val) {\n val %= 360;\n val = val < 0 ? 360 + val : val;\n }\n return this.setChannel('hsl', 0, val);\n },\n saturation: function (val) {\n return this.setChannel('hsl', 1, val);\n },\n lightness: function (val) {\n return this.setChannel('hsl', 2, val);\n },\n saturationv: function (val) {\n return this.setChannel('hsv', 1, val);\n },\n whiteness: function (val) {\n return this.setChannel('hwb', 1, val);\n },\n blackness: function (val) {\n return this.setChannel('hwb', 2, val);\n },\n value: function (val) {\n return this.setChannel('hsv', 2, val);\n },\n cyan: function (val) {\n return this.setChannel('cmyk', 0, val);\n },\n magenta: function (val) {\n return this.setChannel('cmyk', 1, val);\n },\n yellow: function (val) {\n return this.setChannel('cmyk', 2, val);\n },\n black: function (val) {\n return this.setChannel('cmyk', 3, val);\n },\n hexString: function () {\n return colorString.hexString(this.values.rgb);\n },\n rgbString: function () {\n return colorString.rgbString(this.values.rgb, this.values.alpha);\n },\n rgbaString: function () {\n return colorString.rgbaString(this.values.rgb, this.values.alpha);\n },\n percentString: function () {\n return colorString.percentString(this.values.rgb, this.values.alpha);\n },\n hslString: function () {\n return colorString.hslString(this.values.hsl, this.values.alpha);\n },\n hslaString: function () {\n return colorString.hslaString(this.values.hsl, this.values.alpha);\n },\n hwbString: function () {\n return colorString.hwbString(this.values.hwb, this.values.alpha);\n },\n keyword: function () {\n return colorString.keyword(this.values.rgb, this.values.alpha);\n },\n rgbNumber: function () {\n var rgb = this.values.rgb;\n return rgb[0] << 16 | rgb[1] << 8 | rgb[2];\n },\n luminosity: function () {\n // http://www.w3.org/TR/WCAG20/#relativeluminancedef\n var rgb = this.values.rgb;\n var lum = [];\n for (var i = 0; i < rgb.length; i++) {\n var chan = rgb[i] / 255;\n lum[i] = chan <= 0.03928 ? chan / 12.92 : Math.pow((chan + 0.055) / 1.055, 2.4);\n }\n return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n },\n contrast: function (color2) {\n // http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n var lum1 = this.luminosity();\n var lum2 = color2.luminosity();\n if (lum1 > lum2) {\n return (lum1 + 0.05) / (lum2 + 0.05);\n }\n return (lum2 + 0.05) / (lum1 + 0.05);\n },\n level: function (color2) {\n var contrastRatio = this.contrast(color2);\n if (contrastRatio >= 7.1) {\n return 'AAA';\n }\n return contrastRatio >= 4.5 ? 'AA' : '';\n },\n dark: function () {\n // YIQ equation from http://24ways.org/2010/calculating-color-contrast\n var rgb = this.values.rgb;\n var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n return yiq < 128;\n },\n light: function () {\n return !this.dark();\n },\n negate: function () {\n var rgb = [];\n for (var i = 0; i < 3; i++) {\n rgb[i] = 255 - this.values.rgb[i];\n }\n this.setValues('rgb', rgb);\n return this;\n },\n lighten: function (ratio) {\n var hsl = this.values.hsl;\n hsl[2] += hsl[2] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n darken: function (ratio) {\n var hsl = this.values.hsl;\n hsl[2] -= hsl[2] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n saturate: function (ratio) {\n var hsl = this.values.hsl;\n hsl[1] += hsl[1] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n desaturate: function (ratio) {\n var hsl = this.values.hsl;\n hsl[1] -= hsl[1] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n whiten: function (ratio) {\n var hwb = this.values.hwb;\n hwb[1] += hwb[1] * ratio;\n this.setValues('hwb', hwb);\n return this;\n },\n blacken: function (ratio) {\n var hwb = this.values.hwb;\n hwb[2] += hwb[2] * ratio;\n this.setValues('hwb', hwb);\n return this;\n },\n greyscale: function () {\n var rgb = this.values.rgb;\n // http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n this.setValues('rgb', [val, val, val]);\n return this;\n },\n clearer: function (ratio) {\n var alpha = this.values.alpha;\n this.setValues('alpha', alpha - alpha * ratio);\n return this;\n },\n opaquer: function (ratio) {\n var alpha = this.values.alpha;\n this.setValues('alpha', alpha + alpha * ratio);\n return this;\n },\n rotate: function (degrees) {\n var hsl = this.values.hsl;\n var hue = (hsl[0] + degrees) % 360;\n hsl[0] = hue < 0 ? 360 + hue : hue;\n this.setValues('hsl', hsl);\n return this;\n },\n /**\n * Ported from sass implementation in C\n * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n */\n mix: function (mixinColor, weight) {\n var color1 = this;\n var color2 = mixinColor;\n var p = weight === undefined ? 0.5 : weight;\n var w = 2 * p - 1;\n var a = color1.alpha() - color2.alpha();\n var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n var w2 = 1 - w1;\n return this.rgb(w1 * color1.red() + w2 * color2.red(), w1 * color1.green() + w2 * color2.green(), w1 * color1.blue() + w2 * color2.blue()).alpha(color1.alpha() * p + color2.alpha() * (1 - p));\n },\n toJSON: function () {\n return this.rgb();\n },\n clone: function () {\n // NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n // making the final build way to big to embed in Chart.js. So let's do it manually,\n // assuming that values to clone are 1 dimension arrays containing only numbers,\n // except 'alpha' which is a number.\n var result = new Color();\n var source = this.values;\n var target = result.values;\n var value, type;\n for (var prop in source) {\n if (source.hasOwnProperty(prop)) {\n value = source[prop];\n type = {}.toString.call(value);\n if (type === '[object Array]') {\n target[prop] = value.slice(0);\n } else if (type === '[object Number]') {\n target[prop] = value;\n } else {\n console.error('unexpected color value:', value);\n }\n }\n }\n return result;\n }\n };\n Color.prototype.spaces = {\n rgb: ['red', 'green', 'blue'],\n hsl: ['hue', 'saturation', 'lightness'],\n hsv: ['hue', 'saturation', 'value'],\n hwb: ['hue', 'whiteness', 'blackness'],\n cmyk: ['cyan', 'magenta', 'yellow', 'black']\n };\n Color.prototype.maxes = {\n rgb: [255, 255, 255],\n hsl: [360, 100, 100],\n hsv: [360, 100, 100],\n hwb: [360, 100, 100],\n cmyk: [100, 100, 100, 100]\n };\n Color.prototype.getValues = function (space) {\n var values = this.values;\n var vals = {};\n for (var i = 0; i < space.length; i++) {\n vals[space.charAt(i)] = values[space][i];\n }\n if (values.alpha !== 1) {\n vals.a = values.alpha;\n }\n\n // {r: 255, g: 255, b: 255, a: 0.4}\n return vals;\n };\n Color.prototype.setValues = function (space, vals) {\n var values = this.values;\n var spaces = this.spaces;\n var maxes = this.maxes;\n var alpha = 1;\n var i;\n this.valid = true;\n if (space === 'alpha') {\n alpha = vals;\n } else if (vals.length) {\n // [10, 10, 10]\n values[space] = vals.slice(0, space.length);\n alpha = vals[space.length];\n } else if (vals[space.charAt(0)] !== undefined) {\n // {r: 10, g: 10, b: 10}\n for (i = 0; i < space.length; i++) {\n values[space][i] = vals[space.charAt(i)];\n }\n alpha = vals.a;\n } else if (vals[spaces[space][0]] !== undefined) {\n // {red: 10, green: 10, blue: 10}\n var chans = spaces[space];\n for (i = 0; i < space.length; i++) {\n values[space][i] = vals[chans[i]];\n }\n alpha = vals.alpha;\n }\n values.alpha = Math.max(0, Math.min(1, alpha === undefined ? values.alpha : alpha));\n if (space === 'alpha') {\n return false;\n }\n var capped;\n\n // cap values of the space prior converting all values\n for (i = 0; i < space.length; i++) {\n capped = Math.max(0, Math.min(maxes[space][i], values[space][i]));\n values[space][i] = Math.round(capped);\n }\n\n // convert to all the other color spaces\n for (var sname in spaces) {\n if (sname !== space) {\n values[sname] = colorConvert[space][sname](values[space]);\n }\n }\n return true;\n };\n Color.prototype.setSpace = function (space, args) {\n var vals = args[0];\n if (vals === undefined) {\n // color.rgb()\n return this.getValues(space);\n }\n\n // color.rgb(10, 10, 10)\n if (typeof vals === 'number') {\n vals = Array.prototype.slice.call(args);\n }\n this.setValues(space, vals);\n return this;\n };\n Color.prototype.setChannel = function (space, index, val) {\n var svalues = this.values[space];\n if (val === undefined) {\n // color.red()\n return svalues[index];\n } else if (val === svalues[index]) {\n // color.red(color.red())\n return this;\n }\n\n // color.red(100)\n svalues[index] = val;\n this.setValues(space, svalues);\n return this;\n };\n if (typeof window !== 'undefined') {\n window.Color = Color;\n }\n var chartjsColor = Color;\n function isValidKey(key) {\n return ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;\n }\n\n /**\r\n * @namespace Chart.helpers\r\n */\n var helpers = {\n /**\r\n * An empty function that can be used, for example, for optional callback.\r\n */\n noop: function () {},\n /**\r\n * Returns a unique id, sequentially generated from a global variable.\r\n * @returns {number}\r\n * @function\r\n */\n uid: function () {\n var id = 0;\n return function () {\n return id++;\n };\n }(),\n /**\r\n * Returns true if `value` is neither null nor undefined, else returns false.\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n * @since 2.7.0\r\n */\n isNullOrUndef: function (value) {\n return value === null || typeof value === 'undefined';\n },\n /**\r\n * Returns true if `value` is an array (including typed arrays), else returns false.\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n * @function\r\n */\n isArray: function (value) {\n if (Array.isArray && Array.isArray(value)) {\n return true;\n }\n var type = Object.prototype.toString.call(value);\n if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {\n return true;\n }\n return false;\n },\n /**\r\n * Returns true if `value` is an object (excluding null), else returns false.\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n * @since 2.7.0\r\n */\n isObject: function (value) {\n return value !== null && Object.prototype.toString.call(value) === '[object Object]';\n },\n /**\r\n * Returns true if `value` is a finite number, else returns false\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n */\n isFinite: function (value) {\n return (typeof value === 'number' || value instanceof Number) && isFinite(value);\n },\n /**\r\n * Returns `value` if defined, else returns `defaultValue`.\r\n * @param {*} value - The value to return if defined.\r\n * @param {*} defaultValue - The value to return if `value` is undefined.\r\n * @returns {*}\r\n */\n valueOrDefault: function (value, defaultValue) {\n return typeof value === 'undefined' ? defaultValue : value;\n },\n /**\r\n * Returns value at the given `index` in array if defined, else returns `defaultValue`.\r\n * @param {Array} value - The array to lookup for value at `index`.\r\n * @param {number} index - The index in `value` to lookup for value.\r\n * @param {*} defaultValue - The value to return if `value[index]` is undefined.\r\n * @returns {*}\r\n */\n valueAtIndexOrDefault: function (value, index, defaultValue) {\n return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);\n },\n /**\r\n * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\r\n * value returned by `fn`. If `fn` is not a function, this method returns undefined.\r\n * @param {function} fn - The function to call.\r\n * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\r\n * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n * @returns {*}\r\n */\n callback: function (fn, args, thisArg) {\n if (fn && typeof fn.call === 'function') {\n return fn.apply(thisArg, args);\n }\n },\n /**\r\n * Note(SB) for performance sake, this method should only be used when loopable type\r\n * is unknown or in none intensive code (not called often and small loopable). Else\r\n * it's preferable to use a regular for() loop and save extra function calls.\r\n * @param {object|Array} loopable - The object or array to be iterated.\r\n * @param {function} fn - The function to call for each item.\r\n * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n * @param {boolean} [reverse] - If true, iterates backward on the loopable.\r\n */\n each: function (loopable, fn, thisArg, reverse) {\n var i, len, keys;\n if (helpers.isArray(loopable)) {\n len = loopable.length;\n if (reverse) {\n for (i = len - 1; i >= 0; i--) {\n fn.call(thisArg, loopable[i], i);\n }\n } else {\n for (i = 0; i < len; i++) {\n fn.call(thisArg, loopable[i], i);\n }\n }\n } else if (helpers.isObject(loopable)) {\n keys = Object.keys(loopable);\n len = keys.length;\n for (i = 0; i < len; i++) {\n fn.call(thisArg, loopable[keys[i]], keys[i]);\n }\n }\n },\n /**\r\n * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\r\n * @see https://stackoverflow.com/a/14853974\r\n * @param {Array} a0 - The array to compare\r\n * @param {Array} a1 - The array to compare\r\n * @returns {boolean}\r\n */\n arrayEquals: function (a0, a1) {\n var i, ilen, v0, v1;\n if (!a0 || !a1 || a0.length !== a1.length) {\n return false;\n }\n for (i = 0, ilen = a0.length; i < ilen; ++i) {\n v0 = a0[i];\n v1 = a1[i];\n if (v0 instanceof Array && v1 instanceof Array) {\n if (!helpers.arrayEquals(v0, v1)) {\n return false;\n }\n } else if (v0 !== v1) {\n // NOTE: two different object instances will never be equal: {x:20} != {x:20}\n return false;\n }\n }\n return true;\n },\n /**\r\n * Returns a deep copy of `source` without keeping references on objects and arrays.\r\n * @param {*} source - The value to clone.\r\n * @returns {*}\r\n */\n clone: function (source) {\n if (helpers.isArray(source)) {\n return source.map(helpers.clone);\n }\n if (helpers.isObject(source)) {\n var target = Object.create(source);\n var keys = Object.keys(source);\n var klen = keys.length;\n var k = 0;\n for (; k < klen; ++k) {\n target[keys[k]] = helpers.clone(source[keys[k]]);\n }\n return target;\n }\n return source;\n },\n /**\r\n * The default merger when Chart.helpers.merge is called without merger option.\r\n * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.\r\n * @private\r\n */\n _merger: function (key, target, source, options) {\n if (!isValidKey(key)) {\n // We want to ensure we do not copy prototypes over\n // as this can pollute global namespaces\n return;\n }\n var tval = target[key];\n var sval = source[key];\n if (helpers.isObject(tval) && helpers.isObject(sval)) {\n helpers.merge(tval, sval, options);\n } else {\n target[key] = helpers.clone(sval);\n }\n },\n /**\r\n * Merges source[key] in target[key] only if target[key] is undefined.\r\n * @private\r\n */\n _mergerIf: function (key, target, source) {\n if (!isValidKey(key)) {\n // We want to ensure we do not copy prototypes over\n // as this can pollute global namespaces\n return;\n }\n var tval = target[key];\n var sval = source[key];\n if (helpers.isObject(tval) && helpers.isObject(sval)) {\n helpers.mergeIf(tval, sval);\n } else if (!target.hasOwnProperty(key)) {\n target[key] = helpers.clone(sval);\n }\n },\n /**\r\n * Recursively deep copies `source` properties into `target` with the given `options`.\r\n * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n * @param {object} target - The target object in which all sources are merged into.\r\n * @param {object|object[]} source - Object(s) to merge into `target`.\r\n * @param {object} [options] - Merging options:\r\n * @param {function} [options.merger] - The merge method (key, target, source, options)\r\n * @returns {object} The `target` object.\r\n */\n merge: function (target, source, options) {\n var sources = helpers.isArray(source) ? source : [source];\n var ilen = sources.length;\n var merge, i, keys, klen, k;\n if (!helpers.isObject(target)) {\n return target;\n }\n options = options || {};\n merge = options.merger || helpers._merger;\n for (i = 0; i < ilen; ++i) {\n source = sources[i];\n if (!helpers.isObject(source)) {\n continue;\n }\n keys = Object.keys(source);\n for (k = 0, klen = keys.length; k < klen; ++k) {\n merge(keys[k], target, source, options);\n }\n }\n return target;\n },\n /**\r\n * Recursively deep copies `source` properties into `target` *only* if not defined in target.\r\n * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n * @param {object} target - The target object in which all sources are merged into.\r\n * @param {object|object[]} source - Object(s) to merge into `target`.\r\n * @returns {object} The `target` object.\r\n */\n mergeIf: function (target, source) {\n return helpers.merge(target, source, {\n merger: helpers._mergerIf\n });\n },\n /**\r\n * Applies the contents of two or more objects together into the first object.\r\n * @param {object} target - The target object in which all objects are merged into.\r\n * @param {object} arg1 - Object containing additional properties to merge in target.\r\n * @param {object} argN - Additional objects containing properties to merge in target.\r\n * @returns {object} The `target` object.\r\n */\n extend: Object.assign || function (target) {\n return helpers.merge(target, [].slice.call(arguments, 1), {\n merger: function (key, dst, src) {\n dst[key] = src[key];\n }\n });\n },\n /**\r\n * Basic javascript inheritance based on the model created in Backbone.js\r\n */\n inherits: function (extensions) {\n var me = this;\n var ChartElement = extensions && extensions.hasOwnProperty('constructor') ? extensions.constructor : function () {\n return me.apply(this, arguments);\n };\n var Surrogate = function () {\n this.constructor = ChartElement;\n };\n Surrogate.prototype = me.prototype;\n ChartElement.prototype = new Surrogate();\n ChartElement.extend = helpers.inherits;\n if (extensions) {\n helpers.extend(ChartElement.prototype, extensions);\n }\n ChartElement.__super__ = me.prototype;\n return ChartElement;\n },\n _deprecated: function (scope, value, previous, current) {\n if (value !== undefined) {\n console.warn(scope + ': \"' + previous + '\" is deprecated. Please use \"' + current + '\" instead');\n }\n }\n };\n var helpers_core = helpers;\n\n // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.callback instead.\r\n * @function Chart.helpers.callCallback\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers.callCallback = helpers.callback;\n\n /**\r\n * Provided for backward compatibility, use Array.prototype.indexOf instead.\r\n * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\r\n * @function Chart.helpers.indexOf\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers.indexOf = function (array, item, fromIndex) {\n return Array.prototype.indexOf.call(array, item, fromIndex);\n };\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\r\n * @function Chart.helpers.getValueOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers.getValueOrDefault = helpers.valueOrDefault;\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\r\n * @function Chart.helpers.getValueAtIndexOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n /**\r\n * Easing functions adapted from Robert Penner's easing equations.\r\n * @namespace Chart.helpers.easingEffects\r\n * @see http://www.robertpenner.com/easing/\r\n */\n var effects = {\n linear: function (t) {\n return t;\n },\n easeInQuad: function (t) {\n return t * t;\n },\n easeOutQuad: function (t) {\n return -t * (t - 2);\n },\n easeInOutQuad: function (t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t;\n }\n return -0.5 * (--t * (t - 2) - 1);\n },\n easeInCubic: function (t) {\n return t * t * t;\n },\n easeOutCubic: function (t) {\n return (t = t - 1) * t * t + 1;\n },\n easeInOutCubic: function (t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t * t;\n }\n return 0.5 * ((t -= 2) * t * t + 2);\n },\n easeInQuart: function (t) {\n return t * t * t * t;\n },\n easeOutQuart: function (t) {\n return -((t = t - 1) * t * t * t - 1);\n },\n easeInOutQuart: function (t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t * t * t;\n }\n return -0.5 * ((t -= 2) * t * t * t - 2);\n },\n easeInQuint: function (t) {\n return t * t * t * t * t;\n },\n easeOutQuint: function (t) {\n return (t = t - 1) * t * t * t * t + 1;\n },\n easeInOutQuint: function (t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t * t * t * t;\n }\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n },\n easeInSine: function (t) {\n return -Math.cos(t * (Math.PI / 2)) + 1;\n },\n easeOutSine: function (t) {\n return Math.sin(t * (Math.PI / 2));\n },\n easeInOutSine: function (t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n },\n easeInExpo: function (t) {\n return t === 0 ? 0 : Math.pow(2, 10 * (t - 1));\n },\n easeOutExpo: function (t) {\n return t === 1 ? 1 : -Math.pow(2, -10 * t) + 1;\n },\n easeInOutExpo: function (t) {\n if (t === 0) {\n return 0;\n }\n if (t === 1) {\n return 1;\n }\n if ((t /= 0.5) < 1) {\n return 0.5 * Math.pow(2, 10 * (t - 1));\n }\n return 0.5 * (-Math.pow(2, -10 * --t) + 2);\n },\n easeInCirc: function (t) {\n if (t >= 1) {\n return t;\n }\n return -(Math.sqrt(1 - t * t) - 1);\n },\n easeOutCirc: function (t) {\n return Math.sqrt(1 - (t = t - 1) * t);\n },\n easeInOutCirc: function (t) {\n if ((t /= 0.5) < 1) {\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n }\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n },\n easeInElastic: function (t) {\n var s = 1.70158;\n var p = 0;\n var a = 1;\n if (t === 0) {\n return 0;\n }\n if (t === 1) {\n return 1;\n }\n if (!p) {\n p = 0.3;\n }\n if (a < 1) {\n a = 1;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(1 / a);\n }\n return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n },\n easeOutElastic: function (t) {\n var s = 1.70158;\n var p = 0;\n var a = 1;\n if (t === 0) {\n return 0;\n }\n if (t === 1) {\n return 1;\n }\n if (!p) {\n p = 0.3;\n }\n if (a < 1) {\n a = 1;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(1 / a);\n }\n return a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;\n },\n easeInOutElastic: function (t) {\n var s = 1.70158;\n var p = 0;\n var a = 1;\n if (t === 0) {\n return 0;\n }\n if ((t /= 0.5) === 2) {\n return 1;\n }\n if (!p) {\n p = 0.45;\n }\n if (a < 1) {\n a = 1;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(1 / a);\n }\n if (t < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n }\n return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;\n },\n easeInBack: function (t) {\n var s = 1.70158;\n return t * t * ((s + 1) * t - s);\n },\n easeOutBack: function (t) {\n var s = 1.70158;\n return (t = t - 1) * t * ((s + 1) * t + s) + 1;\n },\n easeInOutBack: function (t) {\n var s = 1.70158;\n if ((t /= 0.5) < 1) {\n return 0.5 * (t * t * (((s *= 1.525) + 1) * t - s));\n }\n return 0.5 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2);\n },\n easeInBounce: function (t) {\n return 1 - effects.easeOutBounce(1 - t);\n },\n easeOutBounce: function (t) {\n if (t < 1 / 2.75) {\n return 7.5625 * t * t;\n }\n if (t < 2 / 2.75) {\n return 7.5625 * (t -= 1.5 / 2.75) * t + 0.75;\n }\n if (t < 2.5 / 2.75) {\n return 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375;\n }\n return 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;\n },\n easeInOutBounce: function (t) {\n if (t < 0.5) {\n return effects.easeInBounce(t * 2) * 0.5;\n }\n return effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;\n }\n };\n var helpers_easing = {\n effects: effects\n };\n\n // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\r\n * @function Chart.helpers.easingEffects\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers_core.easingEffects = effects;\n var PI = Math.PI;\n var RAD_PER_DEG = PI / 180;\n var DOUBLE_PI = PI * 2;\n var HALF_PI = PI / 2;\n var QUARTER_PI = PI / 4;\n var TWO_THIRDS_PI = PI * 2 / 3;\n\n /**\r\n * @namespace Chart.helpers.canvas\r\n */\n var exports$1 = {\n /**\r\n * Clears the entire canvas associated to the given `chart`.\r\n * @param {Chart} chart - The chart for which to clear the canvas.\r\n */\n clear: function (chart) {\n chart.ctx.clearRect(0, 0, chart.width, chart.height);\n },\n /**\r\n * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\r\n * given size (width, height) and the same `radius` for all corners.\r\n * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\r\n * @param {number} x - The x axis of the coordinate for the rectangle starting point.\r\n * @param {number} y - The y axis of the coordinate for the rectangle starting point.\r\n * @param {number} width - The rectangle's width.\r\n * @param {number} height - The rectangle's height.\r\n * @param {number} radius - The rounded amount (in pixels) for the four corners.\r\n * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\r\n */\n roundedRect: function (ctx, x, y, width, height, radius) {\n if (radius) {\n var r = Math.min(radius, height / 2, width / 2);\n var left = x + r;\n var top = y + r;\n var right = x + width - r;\n var bottom = y + height - r;\n ctx.moveTo(x, top);\n if (left < right && top < bottom) {\n ctx.arc(left, top, r, -PI, -HALF_PI);\n ctx.arc(right, top, r, -HALF_PI, 0);\n ctx.arc(right, bottom, r, 0, HALF_PI);\n ctx.arc(left, bottom, r, HALF_PI, PI);\n } else if (left < right) {\n ctx.moveTo(left, y);\n ctx.arc(right, top, r, -HALF_PI, HALF_PI);\n ctx.arc(left, top, r, HALF_PI, PI + HALF_PI);\n } else if (top < bottom) {\n ctx.arc(left, top, r, -PI, 0);\n ctx.arc(left, bottom, r, 0, PI);\n } else {\n ctx.arc(left, top, r, -PI, PI);\n }\n ctx.closePath();\n ctx.moveTo(x, y);\n } else {\n ctx.rect(x, y, width, height);\n }\n },\n drawPoint: function (ctx, style, radius, x, y, rotation) {\n var type, xOffset, yOffset, size, cornerRadius;\n var rad = (rotation || 0) * RAD_PER_DEG;\n if (style && typeof style === 'object') {\n type = style.toString();\n if (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\n ctx.save();\n ctx.translate(x, y);\n ctx.rotate(rad);\n ctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);\n ctx.restore();\n return;\n }\n }\n if (isNaN(radius) || radius <= 0) {\n return;\n }\n ctx.beginPath();\n switch (style) {\n // Default includes circle\n default:\n ctx.arc(x, y, radius, 0, DOUBLE_PI);\n ctx.closePath();\n break;\n case 'triangle':\n ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n rad += TWO_THIRDS_PI;\n ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n rad += TWO_THIRDS_PI;\n ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n ctx.closePath();\n break;\n case 'rectRounded':\n // NOTE: the rounded rect implementation changed to use `arc` instead of\n // `quadraticCurveTo` since it generates better results when rect is\n // almost a circle. 0.516 (instead of 0.5) produces results with visually\n // closer proportion to the previous impl and it is inscribed in the\n // circle with `radius`. For more details, see the following PRs:\n // https://github.com/chartjs/Chart.js/issues/5597\n // https://github.com/chartjs/Chart.js/issues/5858\n cornerRadius = radius * 0.516;\n size = radius - cornerRadius;\n xOffset = Math.cos(rad + QUARTER_PI) * size;\n yOffset = Math.sin(rad + QUARTER_PI) * size;\n ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);\n ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);\n ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);\n ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);\n ctx.closePath();\n break;\n case 'rect':\n if (!rotation) {\n size = Math.SQRT1_2 * radius;\n ctx.rect(x - size, y - size, 2 * size, 2 * size);\n break;\n }\n rad += QUARTER_PI;\n /* falls through */\n case 'rectRot':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + yOffset, y - xOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n ctx.closePath();\n break;\n case 'crossRot':\n rad += QUARTER_PI;\n /* falls through */\n case 'cross':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n break;\n case 'star':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n rad += QUARTER_PI;\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n break;\n case 'line':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n break;\n case 'dash':\n ctx.moveTo(x, y);\n ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);\n break;\n }\n ctx.fill();\n ctx.stroke();\n },\n /**\r\n * Returns true if the point is inside the rectangle\r\n * @param {object} point - The point to test\r\n * @param {object} area - The rectangle\r\n * @returns {boolean}\r\n * @private\r\n */\n _isPointInArea: function (point, area) {\n var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.\n\n return point.x > area.left - epsilon && point.x < area.right + epsilon && point.y > area.top - epsilon && point.y < area.bottom + epsilon;\n },\n clipArea: function (ctx, area) {\n ctx.save();\n ctx.beginPath();\n ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\n ctx.clip();\n },\n unclipArea: function (ctx) {\n ctx.restore();\n },\n lineTo: function (ctx, previous, target, flip) {\n var stepped = target.steppedLine;\n if (stepped) {\n if (stepped === 'middle') {\n var midpoint = (previous.x + target.x) / 2.0;\n ctx.lineTo(midpoint, flip ? target.y : previous.y);\n ctx.lineTo(midpoint, flip ? previous.y : target.y);\n } else if (stepped === 'after' && !flip || stepped !== 'after' && flip) {\n ctx.lineTo(previous.x, target.y);\n } else {\n ctx.lineTo(target.x, previous.y);\n }\n ctx.lineTo(target.x, target.y);\n return;\n }\n if (!target.tension) {\n ctx.lineTo(target.x, target.y);\n return;\n }\n ctx.bezierCurveTo(flip ? previous.controlPointPreviousX : previous.controlPointNextX, flip ? previous.controlPointPreviousY : previous.controlPointNextY, flip ? target.controlPointNextX : target.controlPointPreviousX, flip ? target.controlPointNextY : target.controlPointPreviousY, target.x, target.y);\n }\n };\n var helpers_canvas = exports$1;\n\n // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\r\n * @namespace Chart.helpers.clear\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers_core.clear = exports$1.clear;\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\r\n * @namespace Chart.helpers.drawRoundedRectangle\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers_core.drawRoundedRectangle = function (ctx) {\n ctx.beginPath();\n exports$1.roundedRect.apply(exports$1, arguments);\n };\n var defaults = {\n /**\r\n * @private\r\n */\n _set: function (scope, values) {\n return helpers_core.merge(this[scope] || (this[scope] = {}), values);\n }\n };\n\n // TODO(v3): remove 'global' from namespace. all default are global and\n // there's inconsistency around which options are under 'global'\n defaults._set('global', {\n defaultColor: 'rgba(0,0,0,0.1)',\n defaultFontColor: '#666',\n defaultFontFamily: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\n defaultFontSize: 12,\n defaultFontStyle: 'normal',\n defaultLineHeight: 1.2,\n showLines: true\n });\n var core_defaults = defaults;\n var valueOrDefault = helpers_core.valueOrDefault;\n\n /**\r\n * Converts the given font object into a CSS font string.\r\n * @param {object} font - A font object.\r\n * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font\r\n * @private\r\n */\n function toFontString(font) {\n if (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) {\n return null;\n }\n return (font.style ? font.style + ' ' : '') + (font.weight ? font.weight + ' ' : '') + font.size + 'px ' + font.family;\n }\n\n /**\r\n * @alias Chart.helpers.options\r\n * @namespace\r\n */\n var helpers_options = {\n /**\r\n * Converts the given line height `value` in pixels for a specific font `size`.\r\n * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\r\n * @param {number} size - The font size (in pixels) used to resolve relative `value`.\r\n * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\r\n * @since 2.7.0\r\n */\n toLineHeight: function (value, size) {\n var matches = ('' + value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\n if (!matches || matches[1] === 'normal') {\n return size * 1.2;\n }\n value = +matches[2];\n switch (matches[3]) {\n case 'px':\n return value;\n case '%':\n value /= 100;\n break;\n }\n return size * value;\n },\n /**\r\n * Converts the given value into a padding object with pre-computed width/height.\r\n * @param {number|object} value - If a number, set the value to all TRBL component,\r\n * else, if and object, use defined properties and sets undefined ones to 0.\r\n * @returns {object} The padding values (top, right, bottom, left, width, height)\r\n * @since 2.7.0\r\n */\n toPadding: function (value) {\n var t, r, b, l;\n if (helpers_core.isObject(value)) {\n t = +value.top || 0;\n r = +value.right || 0;\n b = +value.bottom || 0;\n l = +value.left || 0;\n } else {\n t = r = b = l = +value || 0;\n }\n return {\n top: t,\n right: r,\n bottom: b,\n left: l,\n height: t + b,\n width: l + r\n };\n },\n /**\r\n * Parses font options and returns the font object.\r\n * @param {object} options - A object that contains font options to be parsed.\r\n * @return {object} The font object.\r\n * @todo Support font.* options and renamed to toFont().\r\n * @private\r\n */\n _parseFont: function (options) {\n var globalDefaults = core_defaults.global;\n var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);\n var font = {\n family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),\n lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),\n size: size,\n style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),\n weight: null,\n string: ''\n };\n font.string = toFontString(font);\n return font;\n },\n /**\r\n * Evaluates the given `inputs` sequentially and returns the first defined value.\r\n * @param {Array} inputs - An array of values, falling back to the last value.\r\n * @param {object} [context] - If defined and the current value is a function, the value\r\n * is called with `context` as first argument and the result becomes the new input.\r\n * @param {number} [index] - If defined and the current value is an array, the value\r\n * at `index` become the new input.\r\n * @param {object} [info] - object to return information about resolution in\r\n * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.\r\n * @since 2.7.0\r\n */\n resolve: function (inputs, context, index, info) {\n var cacheable = true;\n var i, ilen, value;\n for (i = 0, ilen = inputs.length; i < ilen; ++i) {\n value = inputs[i];\n if (value === undefined) {\n continue;\n }\n if (context !== undefined && typeof value === 'function') {\n value = value(context);\n cacheable = false;\n }\n if (index !== undefined && helpers_core.isArray(value)) {\n value = value[index];\n cacheable = false;\n }\n if (value !== undefined) {\n if (info && !cacheable) {\n info.cacheable = false;\n }\n return value;\n }\n }\n }\n };\n\n /**\r\n * @alias Chart.helpers.math\r\n * @namespace\r\n */\n var exports$2 = {\n /**\r\n * Returns an array of factors sorted from 1 to sqrt(value)\r\n * @private\r\n */\n _factorize: function (value) {\n var result = [];\n var sqrt = Math.sqrt(value);\n var i;\n for (i = 1; i < sqrt; i++) {\n if (value % i === 0) {\n result.push(i);\n result.push(value / i);\n }\n }\n if (sqrt === (sqrt | 0)) {\n // if value is a square number\n result.push(sqrt);\n }\n result.sort(function (a, b) {\n return a - b;\n }).pop();\n return result;\n },\n log10: Math.log10 || function (x) {\n var exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.\n // Check for whole powers of 10,\n // which due to floating point rounding error should be corrected.\n var powerOf10 = Math.round(exponent);\n var isPowerOf10 = x === Math.pow(10, powerOf10);\n return isPowerOf10 ? powerOf10 : exponent;\n }\n };\n var helpers_math = exports$2;\n\n // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.math.log10 instead.\r\n * @namespace Chart.helpers.log10\r\n * @deprecated since version 2.9.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n helpers_core.log10 = exports$2.log10;\n var getRtlAdapter = function (rectX, width) {\n return {\n x: function (x) {\n return rectX + rectX + width - x;\n },\n setWidth: function (w) {\n width = w;\n },\n textAlign: function (align) {\n if (align === 'center') {\n return align;\n }\n return align === 'right' ? 'left' : 'right';\n },\n xPlus: function (x, value) {\n return x - value;\n },\n leftForLtr: function (x, itemWidth) {\n return x - itemWidth;\n }\n };\n };\n var getLtrAdapter = function () {\n return {\n x: function (x) {\n return x;\n },\n setWidth: function (w) {// eslint-disable-line no-unused-vars\n },\n textAlign: function (align) {\n return align;\n },\n xPlus: function (x, value) {\n return x + value;\n },\n leftForLtr: function (x, _itemWidth) {\n // eslint-disable-line no-unused-vars\n return x;\n }\n };\n };\n var getAdapter = function (rtl, rectX, width) {\n return rtl ? getRtlAdapter(rectX, width) : getLtrAdapter();\n };\n var overrideTextDirection = function (ctx, direction) {\n var style, original;\n if (direction === 'ltr' || direction === 'rtl') {\n style = ctx.canvas.style;\n original = [style.getPropertyValue('direction'), style.getPropertyPriority('direction')];\n style.setProperty('direction', direction, 'important');\n ctx.prevTextDirection = original;\n }\n };\n var restoreTextDirection = function (ctx) {\n var original = ctx.prevTextDirection;\n if (original !== undefined) {\n delete ctx.prevTextDirection;\n ctx.canvas.style.setProperty('direction', original[0], original[1]);\n }\n };\n var helpers_rtl = {\n getRtlAdapter: getAdapter,\n overrideTextDirection: overrideTextDirection,\n restoreTextDirection: restoreTextDirection\n };\n var helpers$1 = helpers_core;\n var easing = helpers_easing;\n var canvas = helpers_canvas;\n var options = helpers_options;\n var math = helpers_math;\n var rtl = helpers_rtl;\n helpers$1.easing = easing;\n helpers$1.canvas = canvas;\n helpers$1.options = options;\n helpers$1.math = math;\n helpers$1.rtl = rtl;\n function interpolate(start, view, model, ease) {\n var keys = Object.keys(model);\n var i, ilen, key, actual, origin, target, type, c0, c1;\n for (i = 0, ilen = keys.length; i < ilen; ++i) {\n key = keys[i];\n target = model[key];\n\n // if a value is added to the model after pivot() has been called, the view\n // doesn't contain it, so let's initialize the view to the target value.\n if (!view.hasOwnProperty(key)) {\n view[key] = target;\n }\n actual = view[key];\n if (actual === target || key[0] === '_') {\n continue;\n }\n if (!start.hasOwnProperty(key)) {\n start[key] = actual;\n }\n origin = start[key];\n type = typeof target;\n if (type === typeof origin) {\n if (type === 'string') {\n c0 = chartjsColor(origin);\n if (c0.valid) {\n c1 = chartjsColor(target);\n if (c1.valid) {\n view[key] = c1.mix(c0, ease).rgbString();\n continue;\n }\n }\n } else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) {\n view[key] = origin + (target - origin) * ease;\n continue;\n }\n }\n view[key] = target;\n }\n }\n var Element = function (configuration) {\n helpers$1.extend(this, configuration);\n this.initialize.apply(this, arguments);\n };\n helpers$1.extend(Element.prototype, {\n _type: undefined,\n initialize: function () {\n this.hidden = false;\n },\n pivot: function () {\n var me = this;\n if (!me._view) {\n me._view = helpers$1.extend({}, me._model);\n }\n me._start = {};\n return me;\n },\n transition: function (ease) {\n var me = this;\n var model = me._model;\n var start = me._start;\n var view = me._view;\n\n // No animation -> No Transition\n if (!model || ease === 1) {\n me._view = helpers$1.extend({}, model);\n me._start = null;\n return me;\n }\n if (!view) {\n view = me._view = {};\n }\n if (!start) {\n start = me._start = {};\n }\n interpolate(start, view, model, ease);\n return me;\n },\n tooltipPosition: function () {\n return {\n x: this._model.x,\n y: this._model.y\n };\n },\n hasValue: function () {\n return helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y);\n }\n });\n Element.extend = helpers$1.inherits;\n var core_element = Element;\n var exports$3 = core_element.extend({\n chart: null,\n // the animation associated chart instance\n currentStep: 0,\n // the current animation step\n numSteps: 60,\n // default number of steps\n easing: '',\n // the easing to use for this animation\n render: null,\n // render function used by the animation service\n\n onAnimationProgress: null,\n // user specified callback to fire on each step of the animation\n onAnimationComplete: null // user specified callback to fire when the animation finishes\n });\n\n var core_animation = exports$3;\n\n // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.Animation instead\r\n * @prop Chart.Animation#animationObject\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\n Object.defineProperty(exports$3.prototype, 'animationObject', {\n get: function () {\n return this;\n }\n });\n\n /**\r\n * Provided for backward compatibility, use Chart.Animation#chart instead\r\n * @prop Chart.Animation#chartInstance\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\n Object.defineProperty(exports$3.prototype, 'chartInstance', {\n get: function () {\n return this.chart;\n },\n set: function (value) {\n this.chart = value;\n }\n });\n core_defaults._set('global', {\n animation: {\n duration: 1000,\n easing: 'easeOutQuart',\n onProgress: helpers$1.noop,\n onComplete: helpers$1.noop\n }\n });\n var core_animations = {\n animations: [],\n request: null,\n /**\r\n * @param {Chart} chart - The chart to animate.\r\n * @param {Chart.Animation} animation - The animation that we will animate.\r\n * @param {number} duration - The animation duration in ms.\r\n * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\r\n */\n addAnimation: function (chart, animation, duration, lazy) {\n var animations = this.animations;\n var i, ilen;\n animation.chart = chart;\n animation.startTime = Date.now();\n animation.duration = duration;\n if (!lazy) {\n chart.animating = true;\n }\n for (i = 0, ilen = animations.length; i < ilen; ++i) {\n if (animations[i].chart === chart) {\n animations[i] = animation;\n return;\n }\n }\n animations.push(animation);\n\n // If there are no animations queued, manually kickstart a digest, for lack of a better word\n if (animations.length === 1) {\n this.requestAnimationFrame();\n }\n },\n cancelAnimation: function (chart) {\n var index = helpers$1.findIndex(this.animations, function (animation) {\n return animation.chart === chart;\n });\n if (index !== -1) {\n this.animations.splice(index, 1);\n chart.animating = false;\n }\n },\n requestAnimationFrame: function () {\n var me = this;\n if (me.request === null) {\n // Skip animation frame requests until the active one is executed.\n // This can happen when processing mouse events, e.g. 'mousemove'\n // and 'mouseout' events will trigger multiple renders.\n me.request = helpers$1.requestAnimFrame.call(window, function () {\n me.request = null;\n me.startDigest();\n });\n }\n },\n /**\r\n * @private\r\n */\n startDigest: function () {\n var me = this;\n me.advance();\n\n // Do we have more stuff to animate?\n if (me.animations.length > 0) {\n me.requestAnimationFrame();\n }\n },\n /**\r\n * @private\r\n */\n advance: function () {\n var animations = this.animations;\n var animation, chart, numSteps, nextStep;\n var i = 0;\n\n // 1 animation per chart, so we are looping charts here\n while (i < animations.length) {\n animation = animations[i];\n chart = animation.chart;\n numSteps = animation.numSteps;\n\n // Make sure that currentStep starts at 1\n // https://github.com/chartjs/Chart.js/issues/6104\n nextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1;\n animation.currentStep = Math.min(nextStep, numSteps);\n helpers$1.callback(animation.render, [chart, animation], chart);\n helpers$1.callback(animation.onAnimationProgress, [animation], chart);\n if (animation.currentStep >= numSteps) {\n helpers$1.callback(animation.onAnimationComplete, [animation], chart);\n chart.animating = false;\n animations.splice(i, 1);\n } else {\n ++i;\n }\n }\n }\n };\n var resolve = helpers$1.options.resolve;\n var arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\n\n /**\r\n * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\r\n * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\r\n * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\r\n */\n function listenArrayEvents(array, listener) {\n if (array._chartjs) {\n array._chartjs.listeners.push(listener);\n return;\n }\n Object.defineProperty(array, '_chartjs', {\n configurable: true,\n enumerable: false,\n value: {\n listeners: [listener]\n }\n });\n arrayEvents.forEach(function (key) {\n var method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);\n var base = array[key];\n Object.defineProperty(array, key, {\n configurable: true,\n enumerable: false,\n value: function () {\n var args = Array.prototype.slice.call(arguments);\n var res = base.apply(this, args);\n helpers$1.each(array._chartjs.listeners, function (object) {\n if (typeof object[method] === 'function') {\n object[method].apply(object, args);\n }\n });\n return res;\n }\n });\n });\n }\n\n /**\r\n * Removes the given array event listener and cleanup extra attached properties (such as\r\n * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\r\n */\n function unlistenArrayEvents(array, listener) {\n var stub = array._chartjs;\n if (!stub) {\n return;\n }\n var listeners = stub.listeners;\n var index = listeners.indexOf(listener);\n if (index !== -1) {\n listeners.splice(index, 1);\n }\n if (listeners.length > 0) {\n return;\n }\n arrayEvents.forEach(function (key) {\n delete array[key];\n });\n delete array._chartjs;\n }\n\n // Base class for all dataset controllers (line, bar, etc)\n var DatasetController = function (chart, datasetIndex) {\n this.initialize(chart, datasetIndex);\n };\n helpers$1.extend(DatasetController.prototype, {\n /**\r\n * Element type used to generate a meta dataset (e.g. Chart.element.Line).\r\n * @type {Chart.core.element}\r\n */\n datasetElementType: null,\n /**\r\n * Element type used to generate a meta data (e.g. Chart.element.Point).\r\n * @type {Chart.core.element}\r\n */\n dataElementType: null,\n /**\r\n * Dataset element option keys to be resolved in _resolveDatasetElementOptions.\r\n * A derived controller may override this to resolve controller-specific options.\r\n * The keys defined here are for backward compatibility for legend styles.\r\n * @private\r\n */\n _datasetElementOptions: ['backgroundColor', 'borderCapStyle', 'borderColor', 'borderDash', 'borderDashOffset', 'borderJoinStyle', 'borderWidth'],\n /**\r\n * Data element option keys to be resolved in _resolveDataElementOptions.\r\n * A derived controller may override this to resolve controller-specific options.\r\n * The keys defined here are for backward compatibility for legend styles.\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'pointStyle'],\n initialize: function (chart, datasetIndex) {\n var me = this;\n me.chart = chart;\n me.index = datasetIndex;\n me.linkScales();\n me.addElements();\n me._type = me.getMeta().type;\n },\n updateIndex: function (datasetIndex) {\n this.index = datasetIndex;\n },\n linkScales: function () {\n var me = this;\n var meta = me.getMeta();\n var chart = me.chart;\n var scales = chart.scales;\n var dataset = me.getDataset();\n var scalesOpts = chart.options.scales;\n if (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) {\n meta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id;\n }\n if (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) {\n meta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id;\n }\n },\n getDataset: function () {\n return this.chart.data.datasets[this.index];\n },\n getMeta: function () {\n return this.chart.getDatasetMeta(this.index);\n },\n getScaleForId: function (scaleID) {\n return this.chart.scales[scaleID];\n },\n /**\r\n * @private\r\n */\n _getValueScaleId: function () {\n return this.getMeta().yAxisID;\n },\n /**\r\n * @private\r\n */\n _getIndexScaleId: function () {\n return this.getMeta().xAxisID;\n },\n /**\r\n * @private\r\n */\n _getValueScale: function () {\n return this.getScaleForId(this._getValueScaleId());\n },\n /**\r\n * @private\r\n */\n _getIndexScale: function () {\n return this.getScaleForId(this._getIndexScaleId());\n },\n reset: function () {\n this._update(true);\n },\n /**\r\n * @private\r\n */\n destroy: function () {\n if (this._data) {\n unlistenArrayEvents(this._data, this);\n }\n },\n createMetaDataset: function () {\n var me = this;\n var type = me.datasetElementType;\n return type && new type({\n _chart: me.chart,\n _datasetIndex: me.index\n });\n },\n createMetaData: function (index) {\n var me = this;\n var type = me.dataElementType;\n return type && new type({\n _chart: me.chart,\n _datasetIndex: me.index,\n _index: index\n });\n },\n addElements: function () {\n var me = this;\n var meta = me.getMeta();\n var data = me.getDataset().data || [];\n var metaData = meta.data;\n var i, ilen;\n for (i = 0, ilen = data.length; i < ilen; ++i) {\n metaData[i] = metaData[i] || me.createMetaData(i);\n }\n meta.dataset = meta.dataset || me.createMetaDataset();\n },\n addElementAndReset: function (index) {\n var element = this.createMetaData(index);\n this.getMeta().data.splice(index, 0, element);\n this.updateElement(element, index, true);\n },\n buildOrUpdateElements: function () {\n var me = this;\n var dataset = me.getDataset();\n var data = dataset.data || (dataset.data = []);\n\n // In order to correctly handle data addition/deletion animation (an thus simulate\n // real-time charts), we need to monitor these data modifications and synchronize\n // the internal meta data accordingly.\n if (me._data !== data) {\n if (me._data) {\n // This case happens when the user replaced the data array instance.\n unlistenArrayEvents(me._data, me);\n }\n if (data && Object.isExtensible(data)) {\n listenArrayEvents(data, me);\n }\n me._data = data;\n }\n\n // Re-sync meta data in case the user replaced the data array or if we missed\n // any updates and so make sure that we handle number of datapoints changing.\n me.resyncElements();\n },\n /**\r\n * Returns the merged user-supplied and default dataset-level options\r\n * @private\r\n */\n _configure: function () {\n var me = this;\n me._config = helpers$1.merge(Object.create(null), [me.chart.options.datasets[me._type], me.getDataset()], {\n merger: function (key, target, source) {\n if (key !== '_meta' && key !== 'data') {\n helpers$1._merger(key, target, source);\n }\n }\n });\n },\n _update: function (reset) {\n var me = this;\n me._configure();\n me._cachedDataOpts = null;\n me.update(reset);\n },\n update: helpers$1.noop,\n transition: function (easingValue) {\n var meta = this.getMeta();\n var elements = meta.data || [];\n var ilen = elements.length;\n var i = 0;\n for (; i < ilen; ++i) {\n elements[i].transition(easingValue);\n }\n if (meta.dataset) {\n meta.dataset.transition(easingValue);\n }\n },\n draw: function () {\n var meta = this.getMeta();\n var elements = meta.data || [];\n var ilen = elements.length;\n var i = 0;\n if (meta.dataset) {\n meta.dataset.draw();\n }\n for (; i < ilen; ++i) {\n elements[i].draw();\n }\n },\n /**\r\n * Returns a set of predefined style properties that should be used to represent the dataset\r\n * or the data if the index is specified\r\n * @param {number} index - data index\r\n * @return {IStyleInterface} style object\r\n */\n getStyle: function (index) {\n var me = this;\n var meta = me.getMeta();\n var dataset = meta.dataset;\n var style;\n me._configure();\n if (dataset && index === undefined) {\n style = me._resolveDatasetElementOptions(dataset || {});\n } else {\n index = index || 0;\n style = me._resolveDataElementOptions(meta.data[index] || {}, index);\n }\n if (style.fill === false || style.fill === null) {\n style.backgroundColor = style.borderColor;\n }\n return style;\n },\n /**\r\n * @private\r\n */\n _resolveDatasetElementOptions: function (element, hover) {\n var me = this;\n var chart = me.chart;\n var datasetOpts = me._config;\n var custom = element.custom || {};\n var options = chart.options.elements[me.datasetElementType.prototype._type] || {};\n var elementOptions = me._datasetElementOptions;\n var values = {};\n var i, ilen, key, readKey;\n\n // Scriptable options\n var context = {\n chart: chart,\n dataset: me.getDataset(),\n datasetIndex: me.index,\n hover: hover\n };\n for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\n key = elementOptions[i];\n readKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key;\n values[key] = resolve([custom[readKey], datasetOpts[readKey], options[readKey]], context);\n }\n return values;\n },\n /**\r\n * @private\r\n */\n _resolveDataElementOptions: function (element, index) {\n var me = this;\n var custom = element && element.custom;\n var cached = me._cachedDataOpts;\n if (cached && !custom) {\n return cached;\n }\n var chart = me.chart;\n var datasetOpts = me._config;\n var options = chart.options.elements[me.dataElementType.prototype._type] || {};\n var elementOptions = me._dataElementOptions;\n var values = {};\n\n // Scriptable options\n var context = {\n chart: chart,\n dataIndex: index,\n dataset: me.getDataset(),\n datasetIndex: me.index\n };\n\n // `resolve` sets cacheable to `false` if any option is indexed or scripted\n var info = {\n cacheable: !custom\n };\n var keys, i, ilen, key;\n custom = custom || {};\n if (helpers$1.isArray(elementOptions)) {\n for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\n key = elementOptions[i];\n values[key] = resolve([custom[key], datasetOpts[key], options[key]], context, index, info);\n }\n } else {\n keys = Object.keys(elementOptions);\n for (i = 0, ilen = keys.length; i < ilen; ++i) {\n key = keys[i];\n values[key] = resolve([custom[key], datasetOpts[elementOptions[key]], datasetOpts[key], options[key]], context, index, info);\n }\n }\n if (info.cacheable) {\n me._cachedDataOpts = Object.freeze(values);\n }\n return values;\n },\n removeHoverStyle: function (element) {\n helpers$1.merge(element._model, element.$previousStyle || {});\n delete element.$previousStyle;\n },\n setHoverStyle: function (element) {\n var dataset = this.chart.data.datasets[element._datasetIndex];\n var index = element._index;\n var custom = element.custom || {};\n var model = element._model;\n var getHoverColor = helpers$1.getHoverColor;\n element.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth\n };\n model.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index);\n model.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index);\n model.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index);\n },\n /**\r\n * @private\r\n */\n _removeDatasetHoverStyle: function () {\n var element = this.getMeta().dataset;\n if (element) {\n this.removeHoverStyle(element);\n }\n },\n /**\r\n * @private\r\n */\n _setDatasetHoverStyle: function () {\n var element = this.getMeta().dataset;\n var prev = {};\n var i, ilen, key, keys, hoverOptions, model;\n if (!element) {\n return;\n }\n model = element._model;\n hoverOptions = this._resolveDatasetElementOptions(element, true);\n keys = Object.keys(hoverOptions);\n for (i = 0, ilen = keys.length; i < ilen; ++i) {\n key = keys[i];\n prev[key] = model[key];\n model[key] = hoverOptions[key];\n }\n element.$previousStyle = prev;\n },\n /**\r\n * @private\r\n */\n resyncElements: function () {\n var me = this;\n var meta = me.getMeta();\n var data = me.getDataset().data;\n var numMeta = meta.data.length;\n var numData = data.length;\n if (numData < numMeta) {\n meta.data.splice(numData, numMeta - numData);\n } else if (numData > numMeta) {\n me.insertElements(numMeta, numData - numMeta);\n }\n },\n /**\r\n * @private\r\n */\n insertElements: function (start, count) {\n for (var i = 0; i < count; ++i) {\n this.addElementAndReset(start + i);\n }\n },\n /**\r\n * @private\r\n */\n onDataPush: function () {\n var count = arguments.length;\n this.insertElements(this.getDataset().data.length - count, count);\n },\n /**\r\n * @private\r\n */\n onDataPop: function () {\n this.getMeta().data.pop();\n },\n /**\r\n * @private\r\n */\n onDataShift: function () {\n this.getMeta().data.shift();\n },\n /**\r\n * @private\r\n */\n onDataSplice: function (start, count) {\n this.getMeta().data.splice(start, count);\n this.insertElements(start, arguments.length - 2);\n },\n /**\r\n * @private\r\n */\n onDataUnshift: function () {\n this.insertElements(0, arguments.length);\n }\n });\n DatasetController.extend = helpers$1.inherits;\n var core_datasetController = DatasetController;\n var TAU = Math.PI * 2;\n core_defaults._set('global', {\n elements: {\n arc: {\n backgroundColor: core_defaults.global.defaultColor,\n borderColor: '#fff',\n borderWidth: 2,\n borderAlign: 'center'\n }\n }\n });\n function clipArc(ctx, arc) {\n var startAngle = arc.startAngle;\n var endAngle = arc.endAngle;\n var pixelMargin = arc.pixelMargin;\n var angleMargin = pixelMargin / arc.outerRadius;\n var x = arc.x;\n var y = arc.y;\n\n // Draw an inner border by cliping the arc and drawing a double-width border\n // Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders\n ctx.beginPath();\n ctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin);\n if (arc.innerRadius > pixelMargin) {\n angleMargin = pixelMargin / arc.innerRadius;\n ctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true);\n } else {\n ctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2);\n }\n ctx.closePath();\n ctx.clip();\n }\n function drawFullCircleBorders(ctx, vm, arc, inner) {\n var endAngle = arc.endAngle;\n var i;\n if (inner) {\n arc.endAngle = arc.startAngle + TAU;\n clipArc(ctx, arc);\n arc.endAngle = endAngle;\n if (arc.endAngle === arc.startAngle && arc.fullCircles) {\n arc.endAngle += TAU;\n arc.fullCircles--;\n }\n }\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true);\n for (i = 0; i < arc.fullCircles; ++i) {\n ctx.stroke();\n }\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU);\n for (i = 0; i < arc.fullCircles; ++i) {\n ctx.stroke();\n }\n }\n function drawBorder(ctx, vm, arc) {\n var inner = vm.borderAlign === 'inner';\n if (inner) {\n ctx.lineWidth = vm.borderWidth * 2;\n ctx.lineJoin = 'round';\n } else {\n ctx.lineWidth = vm.borderWidth;\n ctx.lineJoin = 'bevel';\n }\n if (arc.fullCircles) {\n drawFullCircleBorders(ctx, vm, arc, inner);\n }\n if (inner) {\n clipArc(ctx, arc);\n }\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle);\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\n ctx.closePath();\n ctx.stroke();\n }\n var element_arc = core_element.extend({\n _type: 'arc',\n inLabelRange: function (mouseX) {\n var vm = this._view;\n if (vm) {\n return Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2);\n }\n return false;\n },\n inRange: function (chartX, chartY) {\n var vm = this._view;\n if (vm) {\n var pointRelativePosition = helpers$1.getAngleFromPoint(vm, {\n x: chartX,\n y: chartY\n });\n var angle = pointRelativePosition.angle;\n var distance = pointRelativePosition.distance;\n\n // Sanitise angle range\n var startAngle = vm.startAngle;\n var endAngle = vm.endAngle;\n while (endAngle < startAngle) {\n endAngle += TAU;\n }\n while (angle > endAngle) {\n angle -= TAU;\n }\n while (angle < startAngle) {\n angle += TAU;\n }\n\n // Check if within the range of the open/close angle\n var betweenAngles = angle >= startAngle && angle <= endAngle;\n var withinRadius = distance >= vm.innerRadius && distance <= vm.outerRadius;\n return betweenAngles && withinRadius;\n }\n return false;\n },\n getCenterPoint: function () {\n var vm = this._view;\n var halfAngle = (vm.startAngle + vm.endAngle) / 2;\n var halfRadius = (vm.innerRadius + vm.outerRadius) / 2;\n return {\n x: vm.x + Math.cos(halfAngle) * halfRadius,\n y: vm.y + Math.sin(halfAngle) * halfRadius\n };\n },\n getArea: function () {\n var vm = this._view;\n return Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));\n },\n tooltipPosition: function () {\n var vm = this._view;\n var centreAngle = vm.startAngle + (vm.endAngle - vm.startAngle) / 2;\n var rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;\n return {\n x: vm.x + Math.cos(centreAngle) * rangeFromCentre,\n y: vm.y + Math.sin(centreAngle) * rangeFromCentre\n };\n },\n draw: function () {\n var ctx = this._chart.ctx;\n var vm = this._view;\n var pixelMargin = vm.borderAlign === 'inner' ? 0.33 : 0;\n var arc = {\n x: vm.x,\n y: vm.y,\n innerRadius: vm.innerRadius,\n outerRadius: Math.max(vm.outerRadius - pixelMargin, 0),\n pixelMargin: pixelMargin,\n startAngle: vm.startAngle,\n endAngle: vm.endAngle,\n fullCircles: Math.floor(vm.circumference / TAU)\n };\n var i;\n ctx.save();\n ctx.fillStyle = vm.backgroundColor;\n ctx.strokeStyle = vm.borderColor;\n if (arc.fullCircles) {\n arc.endAngle = arc.startAngle + TAU;\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\n ctx.closePath();\n for (i = 0; i < arc.fullCircles; ++i) {\n ctx.fill();\n }\n arc.endAngle = arc.startAngle + vm.circumference % TAU;\n }\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\n ctx.closePath();\n ctx.fill();\n if (vm.borderWidth) {\n drawBorder(ctx, vm, arc);\n }\n ctx.restore();\n }\n });\n var valueOrDefault$1 = helpers$1.valueOrDefault;\n var defaultColor = core_defaults.global.defaultColor;\n core_defaults._set('global', {\n elements: {\n line: {\n tension: 0.4,\n backgroundColor: defaultColor,\n borderWidth: 3,\n borderColor: defaultColor,\n borderCapStyle: 'butt',\n borderDash: [],\n borderDashOffset: 0.0,\n borderJoinStyle: 'miter',\n capBezierPoints: true,\n fill: true // do we fill in the area between the line and its base axis\n }\n }\n });\n\n var element_line = core_element.extend({\n _type: 'line',\n draw: function () {\n var me = this;\n var vm = me._view;\n var ctx = me._chart.ctx;\n var spanGaps = vm.spanGaps;\n var points = me._children.slice(); // clone array\n var globalDefaults = core_defaults.global;\n var globalOptionLineElements = globalDefaults.elements.line;\n var lastDrawnIndex = -1;\n var closePath = me._loop;\n var index, previous, currentVM;\n if (!points.length) {\n return;\n }\n if (me._loop) {\n for (index = 0; index < points.length; ++index) {\n previous = helpers$1.previousItem(points, index);\n // If the line has an open path, shift the point array\n if (!points[index]._view.skip && previous._view.skip) {\n points = points.slice(index).concat(points.slice(0, index));\n closePath = spanGaps;\n break;\n }\n }\n // If the line has a close path, add the first point again\n if (closePath) {\n points.push(points[0]);\n }\n }\n ctx.save();\n\n // Stroke Line Options\n ctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;\n\n // IE 9 and 10 do not support line dash\n if (ctx.setLineDash) {\n ctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);\n }\n ctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset);\n ctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;\n ctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth);\n ctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;\n\n // Stroke Line\n ctx.beginPath();\n\n // First point moves to it's starting position no matter what\n currentVM = points[0]._view;\n if (!currentVM.skip) {\n ctx.moveTo(currentVM.x, currentVM.y);\n lastDrawnIndex = 0;\n }\n for (index = 1; index < points.length; ++index) {\n currentVM = points[index]._view;\n previous = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex];\n if (!currentVM.skip) {\n if (lastDrawnIndex !== index - 1 && !spanGaps || lastDrawnIndex === -1) {\n // There was a gap and this is the first point after the gap\n ctx.moveTo(currentVM.x, currentVM.y);\n } else {\n // Line to next point\n helpers$1.canvas.lineTo(ctx, previous._view, currentVM);\n }\n lastDrawnIndex = index;\n }\n }\n if (closePath) {\n ctx.closePath();\n }\n ctx.stroke();\n ctx.restore();\n }\n });\n var valueOrDefault$2 = helpers$1.valueOrDefault;\n var defaultColor$1 = core_defaults.global.defaultColor;\n core_defaults._set('global', {\n elements: {\n point: {\n radius: 3,\n pointStyle: 'circle',\n backgroundColor: defaultColor$1,\n borderColor: defaultColor$1,\n borderWidth: 1,\n // Hover\n hitRadius: 1,\n hoverRadius: 4,\n hoverBorderWidth: 1\n }\n }\n });\n function xRange(mouseX) {\n var vm = this._view;\n return vm ? Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius : false;\n }\n function yRange(mouseY) {\n var vm = this._view;\n return vm ? Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius : false;\n }\n var element_point = core_element.extend({\n _type: 'point',\n inRange: function (mouseX, mouseY) {\n var vm = this._view;\n return vm ? Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2) < Math.pow(vm.hitRadius + vm.radius, 2) : false;\n },\n inLabelRange: xRange,\n inXRange: xRange,\n inYRange: yRange,\n getCenterPoint: function () {\n var vm = this._view;\n return {\n x: vm.x,\n y: vm.y\n };\n },\n getArea: function () {\n return Math.PI * Math.pow(this._view.radius, 2);\n },\n tooltipPosition: function () {\n var vm = this._view;\n return {\n x: vm.x,\n y: vm.y,\n padding: vm.radius + vm.borderWidth\n };\n },\n draw: function (chartArea) {\n var vm = this._view;\n var ctx = this._chart.ctx;\n var pointStyle = vm.pointStyle;\n var rotation = vm.rotation;\n var radius = vm.radius;\n var x = vm.x;\n var y = vm.y;\n var globalDefaults = core_defaults.global;\n var defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow\n\n if (vm.skip) {\n return;\n }\n\n // Clipping for Points.\n if (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) {\n ctx.strokeStyle = vm.borderColor || defaultColor;\n ctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth);\n ctx.fillStyle = vm.backgroundColor || defaultColor;\n helpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);\n }\n }\n });\n var defaultColor$2 = core_defaults.global.defaultColor;\n core_defaults._set('global', {\n elements: {\n rectangle: {\n backgroundColor: defaultColor$2,\n borderColor: defaultColor$2,\n borderSkipped: 'bottom',\n borderWidth: 0\n }\n }\n });\n function isVertical(vm) {\n return vm && vm.width !== undefined;\n }\n\n /**\r\n * Helper function to get the bounds of the bar regardless of the orientation\r\n * @param bar {Chart.Element.Rectangle} the bar\r\n * @return {Bounds} bounds of the bar\r\n * @private\r\n */\n function getBarBounds(vm) {\n var x1, x2, y1, y2, half;\n if (isVertical(vm)) {\n half = vm.width / 2;\n x1 = vm.x - half;\n x2 = vm.x + half;\n y1 = Math.min(vm.y, vm.base);\n y2 = Math.max(vm.y, vm.base);\n } else {\n half = vm.height / 2;\n x1 = Math.min(vm.x, vm.base);\n x2 = Math.max(vm.x, vm.base);\n y1 = vm.y - half;\n y2 = vm.y + half;\n }\n return {\n left: x1,\n top: y1,\n right: x2,\n bottom: y2\n };\n }\n function swap(orig, v1, v2) {\n return orig === v1 ? v2 : orig === v2 ? v1 : orig;\n }\n function parseBorderSkipped(vm) {\n var edge = vm.borderSkipped;\n var res = {};\n if (!edge) {\n return res;\n }\n if (vm.horizontal) {\n if (vm.base > vm.x) {\n edge = swap(edge, 'left', 'right');\n }\n } else if (vm.base < vm.y) {\n edge = swap(edge, 'bottom', 'top');\n }\n res[edge] = true;\n return res;\n }\n function parseBorderWidth(vm, maxW, maxH) {\n var value = vm.borderWidth;\n var skip = parseBorderSkipped(vm);\n var t, r, b, l;\n if (helpers$1.isObject(value)) {\n t = +value.top || 0;\n r = +value.right || 0;\n b = +value.bottom || 0;\n l = +value.left || 0;\n } else {\n t = r = b = l = +value || 0;\n }\n return {\n t: skip.top || t < 0 ? 0 : t > maxH ? maxH : t,\n r: skip.right || r < 0 ? 0 : r > maxW ? maxW : r,\n b: skip.bottom || b < 0 ? 0 : b > maxH ? maxH : b,\n l: skip.left || l < 0 ? 0 : l > maxW ? maxW : l\n };\n }\n function boundingRects(vm) {\n var bounds = getBarBounds(vm);\n var width = bounds.right - bounds.left;\n var height = bounds.bottom - bounds.top;\n var border = parseBorderWidth(vm, width / 2, height / 2);\n return {\n outer: {\n x: bounds.left,\n y: bounds.top,\n w: width,\n h: height\n },\n inner: {\n x: bounds.left + border.l,\n y: bounds.top + border.t,\n w: width - border.l - border.r,\n h: height - border.t - border.b\n }\n };\n }\n function inRange(vm, x, y) {\n var skipX = x === null;\n var skipY = y === null;\n var bounds = !vm || skipX && skipY ? false : getBarBounds(vm);\n return bounds && (skipX || x >= bounds.left && x <= bounds.right) && (skipY || y >= bounds.top && y <= bounds.bottom);\n }\n var element_rectangle = core_element.extend({\n _type: 'rectangle',\n draw: function () {\n var ctx = this._chart.ctx;\n var vm = this._view;\n var rects = boundingRects(vm);\n var outer = rects.outer;\n var inner = rects.inner;\n ctx.fillStyle = vm.backgroundColor;\n ctx.fillRect(outer.x, outer.y, outer.w, outer.h);\n if (outer.w === inner.w && outer.h === inner.h) {\n return;\n }\n ctx.save();\n ctx.beginPath();\n ctx.rect(outer.x, outer.y, outer.w, outer.h);\n ctx.clip();\n ctx.fillStyle = vm.borderColor;\n ctx.rect(inner.x, inner.y, inner.w, inner.h);\n ctx.fill('evenodd');\n ctx.restore();\n },\n height: function () {\n var vm = this._view;\n return vm.base - vm.y;\n },\n inRange: function (mouseX, mouseY) {\n return inRange(this._view, mouseX, mouseY);\n },\n inLabelRange: function (mouseX, mouseY) {\n var vm = this._view;\n return isVertical(vm) ? inRange(vm, mouseX, null) : inRange(vm, null, mouseY);\n },\n inXRange: function (mouseX) {\n return inRange(this._view, mouseX, null);\n },\n inYRange: function (mouseY) {\n return inRange(this._view, null, mouseY);\n },\n getCenterPoint: function () {\n var vm = this._view;\n var x, y;\n if (isVertical(vm)) {\n x = vm.x;\n y = (vm.y + vm.base) / 2;\n } else {\n x = (vm.x + vm.base) / 2;\n y = vm.y;\n }\n return {\n x: x,\n y: y\n };\n },\n getArea: function () {\n var vm = this._view;\n return isVertical(vm) ? vm.width * Math.abs(vm.y - vm.base) : vm.height * Math.abs(vm.x - vm.base);\n },\n tooltipPosition: function () {\n var vm = this._view;\n return {\n x: vm.x,\n y: vm.y\n };\n }\n });\n var elements = {};\n var Arc = element_arc;\n var Line = element_line;\n var Point = element_point;\n var Rectangle = element_rectangle;\n elements.Arc = Arc;\n elements.Line = Line;\n elements.Point = Point;\n elements.Rectangle = Rectangle;\n var deprecated = helpers$1._deprecated;\n var valueOrDefault$3 = helpers$1.valueOrDefault;\n core_defaults._set('bar', {\n hover: {\n mode: 'label'\n },\n scales: {\n xAxes: [{\n type: 'category',\n offset: true,\n gridLines: {\n offsetGridLines: true\n }\n }],\n yAxes: [{\n type: 'linear'\n }]\n }\n });\n core_defaults._set('global', {\n datasets: {\n bar: {\n categoryPercentage: 0.8,\n barPercentage: 0.9\n }\n }\n });\n\n /**\r\n * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\r\n * @private\r\n */\n function computeMinSampleSize(scale, pixels) {\n var min = scale._length;\n var prev, curr, i, ilen;\n for (i = 1, ilen = pixels.length; i < ilen; ++i) {\n min = Math.min(min, Math.abs(pixels[i] - pixels[i - 1]));\n }\n for (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) {\n curr = scale.getPixelForTick(i);\n min = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min;\n prev = curr;\n }\n return min;\n }\n\n /**\r\n * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\r\n * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\r\n * mode currently always generates bars equally sized (until we introduce scriptable options?).\r\n * @private\r\n */\n function computeFitCategoryTraits(index, ruler, options) {\n var thickness = options.barThickness;\n var count = ruler.stackCount;\n var curr = ruler.pixels[index];\n var min = helpers$1.isNullOrUndef(thickness) ? computeMinSampleSize(ruler.scale, ruler.pixels) : -1;\n var size, ratio;\n if (helpers$1.isNullOrUndef(thickness)) {\n size = min * options.categoryPercentage;\n ratio = options.barPercentage;\n } else {\n // When bar thickness is enforced, category and bar percentages are ignored.\n // Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\n // and deprecate barPercentage since this value is ignored when thickness is absolute.\n size = thickness * count;\n ratio = 1;\n }\n return {\n chunk: size / count,\n ratio: ratio,\n start: curr - size / 2\n };\n }\n\n /**\r\n * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\r\n * percentage options are 1), based on the previous and following categories. This mode\r\n * generates bars with different widths when data are not evenly spaced.\r\n * @private\r\n */\n function computeFlexCategoryTraits(index, ruler, options) {\n var pixels = ruler.pixels;\n var curr = pixels[index];\n var prev = index > 0 ? pixels[index - 1] : null;\n var next = index < pixels.length - 1 ? pixels[index + 1] : null;\n var percent = options.categoryPercentage;\n var start, size;\n if (prev === null) {\n // first data: its size is double based on the next point or,\n // if it's also the last data, we use the scale size.\n prev = curr - (next === null ? ruler.end - ruler.start : next - curr);\n }\n if (next === null) {\n // last data: its size is also double based on the previous point.\n next = curr + curr - prev;\n }\n start = curr - (curr - Math.min(prev, next)) / 2 * percent;\n size = Math.abs(next - prev) / 2 * percent;\n return {\n chunk: size / ruler.stackCount,\n ratio: options.barPercentage,\n start: start\n };\n }\n var controller_bar = core_datasetController.extend({\n dataElementType: elements.Rectangle,\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderSkipped', 'borderWidth', 'barPercentage', 'barThickness', 'categoryPercentage', 'maxBarThickness', 'minBarLength'],\n initialize: function () {\n var me = this;\n var meta, scaleOpts;\n core_datasetController.prototype.initialize.apply(me, arguments);\n meta = me.getMeta();\n meta.stack = me.getDataset().stack;\n meta.bar = true;\n scaleOpts = me._getIndexScale().options;\n deprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage');\n deprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness');\n deprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage');\n deprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength');\n deprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness');\n },\n update: function (reset) {\n var me = this;\n var rects = me.getMeta().data;\n var i, ilen;\n me._ruler = me.getRuler();\n for (i = 0, ilen = rects.length; i < ilen; ++i) {\n me.updateElement(rects[i], i, reset);\n }\n },\n updateElement: function (rectangle, index, reset) {\n var me = this;\n var meta = me.getMeta();\n var dataset = me.getDataset();\n var options = me._resolveDataElementOptions(rectangle, index);\n rectangle._xScale = me.getScaleForId(meta.xAxisID);\n rectangle._yScale = me.getScaleForId(meta.yAxisID);\n rectangle._datasetIndex = me.index;\n rectangle._index = index;\n rectangle._model = {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderSkipped: options.borderSkipped,\n borderWidth: options.borderWidth,\n datasetLabel: dataset.label,\n label: me.chart.data.labels[index]\n };\n if (helpers$1.isArray(dataset.data[index])) {\n rectangle._model.borderSkipped = null;\n }\n me._updateElementGeometry(rectangle, index, reset, options);\n rectangle.pivot();\n },\n /**\r\n * @private\r\n */\n _updateElementGeometry: function (rectangle, index, reset, options) {\n var me = this;\n var model = rectangle._model;\n var vscale = me._getValueScale();\n var base = vscale.getBasePixel();\n var horizontal = vscale.isHorizontal();\n var ruler = me._ruler || me.getRuler();\n var vpixels = me.calculateBarValuePixels(me.index, index, options);\n var ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options);\n model.horizontal = horizontal;\n model.base = reset ? base : vpixels.base;\n model.x = horizontal ? reset ? base : vpixels.head : ipixels.center;\n model.y = horizontal ? ipixels.center : reset ? base : vpixels.head;\n model.height = horizontal ? ipixels.size : undefined;\n model.width = horizontal ? undefined : ipixels.size;\n },\n /**\r\n * Returns the stacks based on groups and bar visibility.\r\n * @param {number} [last] - The dataset index\r\n * @returns {string[]} The list of stack IDs\r\n * @private\r\n */\n _getStacks: function (last) {\n var me = this;\n var scale = me._getIndexScale();\n var metasets = scale._getMatchingVisibleMetas(me._type);\n var stacked = scale.options.stacked;\n var ilen = metasets.length;\n var stacks = [];\n var i, meta;\n for (i = 0; i < ilen; ++i) {\n meta = metasets[i];\n // stacked | meta.stack\n // | found | not found | undefined\n // false | x | x | x\n // true | | x |\n // undefined | | x | x\n if (stacked === false || stacks.indexOf(meta.stack) === -1 || stacked === undefined && meta.stack === undefined) {\n stacks.push(meta.stack);\n }\n if (meta.index === last) {\n break;\n }\n }\n return stacks;\n },\n /**\r\n * Returns the effective number of stacks based on groups and bar visibility.\r\n * @private\r\n */\n getStackCount: function () {\n return this._getStacks().length;\n },\n /**\r\n * Returns the stack index for the given dataset based on groups and bar visibility.\r\n * @param {number} [datasetIndex] - The dataset index\r\n * @param {string} [name] - The stack name to find\r\n * @returns {number} The stack index\r\n * @private\r\n */\n getStackIndex: function (datasetIndex, name) {\n var stacks = this._getStacks(datasetIndex);\n var index = name !== undefined ? stacks.indexOf(name) : -1; // indexOf returns -1 if element is not present\n\n return index === -1 ? stacks.length - 1 : index;\n },\n /**\r\n * @private\r\n */\n getRuler: function () {\n var me = this;\n var scale = me._getIndexScale();\n var pixels = [];\n var i, ilen;\n for (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {\n pixels.push(scale.getPixelForValue(null, i, me.index));\n }\n return {\n pixels: pixels,\n start: scale._startPixel,\n end: scale._endPixel,\n stackCount: me.getStackCount(),\n scale: scale\n };\n },\n /**\r\n * Note: pixel values are not clamped to the scale area.\r\n * @private\r\n */\n calculateBarValuePixels: function (datasetIndex, index, options) {\n var me = this;\n var chart = me.chart;\n var scale = me._getValueScale();\n var isHorizontal = scale.isHorizontal();\n var datasets = chart.data.datasets;\n var metasets = scale._getMatchingVisibleMetas(me._type);\n var value = scale._parseValue(datasets[datasetIndex].data[index]);\n var minBarLength = options.minBarLength;\n var stacked = scale.options.stacked;\n var stack = me.getMeta().stack;\n var start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max;\n var length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max;\n var ilen = metasets.length;\n var i, imeta, ivalue, base, head, size, stackLength;\n if (stacked || stacked === undefined && stack !== undefined) {\n for (i = 0; i < ilen; ++i) {\n imeta = metasets[i];\n if (imeta.index === datasetIndex) {\n break;\n }\n if (imeta.stack === stack) {\n stackLength = scale._parseValue(datasets[imeta.index].data[index]);\n ivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min;\n if (value.min < 0 && ivalue < 0 || value.max >= 0 && ivalue > 0) {\n start += ivalue;\n }\n }\n }\n }\n base = scale.getPixelForValue(start);\n head = scale.getPixelForValue(start + length);\n size = head - base;\n if (minBarLength !== undefined && Math.abs(size) < minBarLength) {\n size = minBarLength;\n if (length >= 0 && !isHorizontal || length < 0 && isHorizontal) {\n head = base - minBarLength;\n } else {\n head = base + minBarLength;\n }\n }\n return {\n size: size,\n base: base,\n head: head,\n center: head + size / 2\n };\n },\n /**\r\n * @private\r\n */\n calculateBarIndexPixels: function (datasetIndex, index, ruler, options) {\n var me = this;\n var range = options.barThickness === 'flex' ? computeFlexCategoryTraits(index, ruler, options) : computeFitCategoryTraits(index, ruler, options);\n var stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);\n var center = range.start + range.chunk * stackIndex + range.chunk / 2;\n var size = Math.min(valueOrDefault$3(options.maxBarThickness, Infinity), range.chunk * range.ratio);\n return {\n base: center - size / 2,\n head: center + size / 2,\n center: center,\n size: size\n };\n },\n draw: function () {\n var me = this;\n var chart = me.chart;\n var scale = me._getValueScale();\n var rects = me.getMeta().data;\n var dataset = me.getDataset();\n var ilen = rects.length;\n var i = 0;\n helpers$1.canvas.clipArea(chart.ctx, chart.chartArea);\n for (; i < ilen; ++i) {\n var val = scale._parseValue(dataset.data[i]);\n if (!isNaN(val.min) && !isNaN(val.max)) {\n rects[i].draw();\n }\n }\n helpers$1.canvas.unclipArea(chart.ctx);\n },\n /**\r\n * @private\r\n */\n _resolveDataElementOptions: function () {\n var me = this;\n var values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments));\n var indexOpts = me._getIndexScale().options;\n var valueOpts = me._getValueScale().options;\n values.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage);\n values.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness);\n values.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage);\n values.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness);\n values.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength);\n return values;\n }\n });\n var valueOrDefault$4 = helpers$1.valueOrDefault;\n var resolve$1 = helpers$1.options.resolve;\n core_defaults._set('bubble', {\n hover: {\n mode: 'single'\n },\n scales: {\n xAxes: [{\n type: 'linear',\n // bubble should probably use a linear scale by default\n position: 'bottom',\n id: 'x-axis-0' // need an ID so datasets can reference the scale\n }],\n\n yAxes: [{\n type: 'linear',\n position: 'left',\n id: 'y-axis-0'\n }]\n },\n tooltips: {\n callbacks: {\n title: function () {\n // Title doesn't make sense for scatter since we format the data as a point\n return '';\n },\n label: function (item, data) {\n var datasetLabel = data.datasets[item.datasetIndex].label || '';\n var dataPoint = data.datasets[item.datasetIndex].data[item.index];\n return datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';\n }\n }\n }\n });\n var controller_bubble = core_datasetController.extend({\n /**\r\n * @protected\r\n */\n dataElementType: elements.Point,\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'hoverBackgroundColor', 'hoverBorderColor', 'hoverBorderWidth', 'hoverRadius', 'hitRadius', 'pointStyle', 'rotation'],\n /**\r\n * @protected\r\n */\n update: function (reset) {\n var me = this;\n var meta = me.getMeta();\n var points = meta.data;\n\n // Update Points\n helpers$1.each(points, function (point, index) {\n me.updateElement(point, index, reset);\n });\n },\n /**\r\n * @protected\r\n */\n updateElement: function (point, index, reset) {\n var me = this;\n var meta = me.getMeta();\n var custom = point.custom || {};\n var xScale = me.getScaleForId(meta.xAxisID);\n var yScale = me.getScaleForId(meta.yAxisID);\n var options = me._resolveDataElementOptions(point, index);\n var data = me.getDataset().data[index];\n var dsIndex = me.index;\n var x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);\n var y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);\n point._xScale = xScale;\n point._yScale = yScale;\n point._options = options;\n point._datasetIndex = dsIndex;\n point._index = index;\n point._model = {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n hitRadius: options.hitRadius,\n pointStyle: options.pointStyle,\n rotation: options.rotation,\n radius: reset ? 0 : options.radius,\n skip: custom.skip || isNaN(x) || isNaN(y),\n x: x,\n y: y\n };\n point.pivot();\n },\n /**\r\n * @protected\r\n */\n setHoverStyle: function (point) {\n var model = point._model;\n var options = point._options;\n var getHoverColor = helpers$1.getHoverColor;\n point.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth,\n radius: model.radius\n };\n model.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth);\n model.radius = options.radius + options.hoverRadius;\n },\n /**\r\n * @private\r\n */\n _resolveDataElementOptions: function (point, index) {\n var me = this;\n var chart = me.chart;\n var dataset = me.getDataset();\n var custom = point.custom || {};\n var data = dataset.data[index] || {};\n var values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments);\n\n // Scriptable options\n var context = {\n chart: chart,\n dataIndex: index,\n dataset: dataset,\n datasetIndex: me.index\n };\n\n // In case values were cached (and thus frozen), we need to clone the values\n if (me._cachedDataOpts === values) {\n values = helpers$1.extend({}, values);\n }\n\n // Custom radius resolution\n values.radius = resolve$1([custom.radius, data.r, me._config.radius, chart.options.elements.point.radius], context, index);\n return values;\n }\n });\n var valueOrDefault$5 = helpers$1.valueOrDefault;\n var PI$1 = Math.PI;\n var DOUBLE_PI$1 = PI$1 * 2;\n var HALF_PI$1 = PI$1 / 2;\n core_defaults._set('doughnut', {\n animation: {\n // Boolean - Whether we animate the rotation of the Doughnut\n animateRotate: true,\n // Boolean - Whether we animate scaling the Doughnut from the centre\n animateScale: false\n },\n hover: {\n mode: 'single'\n },\n legendCallback: function (chart) {\n var list = document.createElement('ul');\n var data = chart.data;\n var datasets = data.datasets;\n var labels = data.labels;\n var i, ilen, listItem, listItemSpan;\n list.setAttribute('class', chart.id + '-legend');\n if (datasets.length) {\n for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\n listItem = list.appendChild(document.createElement('li'));\n listItemSpan = listItem.appendChild(document.createElement('span'));\n listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\n if (labels[i]) {\n listItem.appendChild(document.createTextNode(labels[i]));\n }\n }\n }\n return list.outerHTML;\n },\n legend: {\n labels: {\n generateLabels: function (chart) {\n var data = chart.data;\n if (data.labels.length && data.datasets.length) {\n return data.labels.map(function (label, i) {\n var meta = chart.getDatasetMeta(0);\n var style = meta.controller.getStyle(i);\n return {\n text: label,\n fillStyle: style.backgroundColor,\n strokeStyle: style.borderColor,\n lineWidth: style.borderWidth,\n hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\n // Extra data used for toggling the correct item\n index: i\n };\n });\n }\n return [];\n }\n },\n onClick: function (e, legendItem) {\n var index = legendItem.index;\n var chart = this.chart;\n var i, ilen, meta;\n for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n meta = chart.getDatasetMeta(i);\n // toggle visibility of index if exists\n if (meta.data[index]) {\n meta.data[index].hidden = !meta.data[index].hidden;\n }\n }\n chart.update();\n }\n },\n // The percentage of the chart that we cut out of the middle.\n cutoutPercentage: 50,\n // The rotation of the chart, where the first data arc begins.\n rotation: -HALF_PI$1,\n // The total circumference of the chart.\n circumference: DOUBLE_PI$1,\n // Need to override these to give a nice default\n tooltips: {\n callbacks: {\n title: function () {\n return '';\n },\n label: function (tooltipItem, data) {\n var dataLabel = data.labels[tooltipItem.index];\n var value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];\n if (helpers$1.isArray(dataLabel)) {\n // show value on first line of multiline label\n // need to clone because we are changing the value\n dataLabel = dataLabel.slice();\n dataLabel[0] += value;\n } else {\n dataLabel += value;\n }\n return dataLabel;\n }\n }\n }\n });\n var controller_doughnut = core_datasetController.extend({\n dataElementType: elements.Arc,\n linkScales: helpers$1.noop,\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'borderAlign', 'hoverBackgroundColor', 'hoverBorderColor', 'hoverBorderWidth'],\n // Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\n getRingIndex: function (datasetIndex) {\n var ringIndex = 0;\n for (var j = 0; j < datasetIndex; ++j) {\n if (this.chart.isDatasetVisible(j)) {\n ++ringIndex;\n }\n }\n return ringIndex;\n },\n update: function (reset) {\n var me = this;\n var chart = me.chart;\n var chartArea = chart.chartArea;\n var opts = chart.options;\n var ratioX = 1;\n var ratioY = 1;\n var offsetX = 0;\n var offsetY = 0;\n var meta = me.getMeta();\n var arcs = meta.data;\n var cutout = opts.cutoutPercentage / 100 || 0;\n var circumference = opts.circumference;\n var chartWeight = me._getRingWeight(me.index);\n var maxWidth, maxHeight, i, ilen;\n\n // If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc\n if (circumference < DOUBLE_PI$1) {\n var startAngle = opts.rotation % DOUBLE_PI$1;\n startAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0;\n var endAngle = startAngle + circumference;\n var startX = Math.cos(startAngle);\n var startY = Math.sin(startAngle);\n var endX = Math.cos(endAngle);\n var endY = Math.sin(endAngle);\n var contains0 = startAngle <= 0 && endAngle >= 0 || endAngle >= DOUBLE_PI$1;\n var contains90 = startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1 || endAngle >= DOUBLE_PI$1 + HALF_PI$1;\n var contains180 = startAngle === -PI$1 || endAngle >= PI$1;\n var contains270 = startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1 || endAngle >= PI$1 + HALF_PI$1;\n var minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout);\n var minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout);\n var maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout);\n var maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout);\n ratioX = (maxX - minX) / 2;\n ratioY = (maxY - minY) / 2;\n offsetX = -(maxX + minX) / 2;\n offsetY = -(maxY + minY) / 2;\n }\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\n }\n chart.borderWidth = me.getMaxBorderWidth();\n maxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX;\n maxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY;\n chart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);\n chart.innerRadius = Math.max(chart.outerRadius * cutout, 0);\n chart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1);\n chart.offsetX = offsetX * chart.outerRadius;\n chart.offsetY = offsetY * chart.outerRadius;\n meta.total = me.calculateTotal();\n me.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);\n me.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n me.updateElement(arcs[i], i, reset);\n }\n },\n updateElement: function (arc, index, reset) {\n var me = this;\n var chart = me.chart;\n var chartArea = chart.chartArea;\n var opts = chart.options;\n var animationOpts = opts.animation;\n var centerX = (chartArea.left + chartArea.right) / 2;\n var centerY = (chartArea.top + chartArea.bottom) / 2;\n var startAngle = opts.rotation; // non reset case handled later\n var endAngle = opts.rotation; // non reset case handled later\n var dataset = me.getDataset();\n var circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1);\n var innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;\n var outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;\n var options = arc._options || {};\n helpers$1.extend(arc, {\n // Utility\n _datasetIndex: me.index,\n _index: index,\n // Desired view properties\n _model: {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n borderAlign: options.borderAlign,\n x: centerX + chart.offsetX,\n y: centerY + chart.offsetY,\n startAngle: startAngle,\n endAngle: endAngle,\n circumference: circumference,\n outerRadius: outerRadius,\n innerRadius: innerRadius,\n label: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])\n }\n });\n var model = arc._model;\n\n // Set correct angles if not resetting\n if (!reset || !animationOpts.animateRotate) {\n if (index === 0) {\n model.startAngle = opts.rotation;\n } else {\n model.startAngle = me.getMeta().data[index - 1]._model.endAngle;\n }\n model.endAngle = model.startAngle + model.circumference;\n }\n arc.pivot();\n },\n calculateTotal: function () {\n var dataset = this.getDataset();\n var meta = this.getMeta();\n var total = 0;\n var value;\n helpers$1.each(meta.data, function (element, index) {\n value = dataset.data[index];\n if (!isNaN(value) && !element.hidden) {\n total += Math.abs(value);\n }\n });\n\n /* if (total === 0) {\r\n \ttotal = NaN;\r\n }*/\n\n return total;\n },\n calculateCircumference: function (value) {\n var total = this.getMeta().total;\n if (total > 0 && !isNaN(value)) {\n return DOUBLE_PI$1 * (Math.abs(value) / total);\n }\n return 0;\n },\n // gets the max border or hover width to properly scale pie charts\n getMaxBorderWidth: function (arcs) {\n var me = this;\n var max = 0;\n var chart = me.chart;\n var i, ilen, meta, arc, controller, options, borderWidth, hoverWidth;\n if (!arcs) {\n // Find the outmost visible dataset\n for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {\n if (chart.isDatasetVisible(i)) {\n meta = chart.getDatasetMeta(i);\n arcs = meta.data;\n if (i !== me.index) {\n controller = meta.controller;\n }\n break;\n }\n }\n }\n if (!arcs) {\n return 0;\n }\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n arc = arcs[i];\n if (controller) {\n controller._configure();\n options = controller._resolveDataElementOptions(arc, i);\n } else {\n options = arc._options;\n }\n if (options.borderAlign !== 'inner') {\n borderWidth = options.borderWidth;\n hoverWidth = options.hoverBorderWidth;\n max = borderWidth > max ? borderWidth : max;\n max = hoverWidth > max ? hoverWidth : max;\n }\n }\n return max;\n },\n /**\r\n * @protected\r\n */\n setHoverStyle: function (arc) {\n var model = arc._model;\n var options = arc._options;\n var getHoverColor = helpers$1.getHoverColor;\n arc.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth\n };\n model.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth);\n },\n /**\r\n * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly\r\n * @private\r\n */\n _getRingWeightOffset: function (datasetIndex) {\n var ringWeightOffset = 0;\n for (var i = 0; i < datasetIndex; ++i) {\n if (this.chart.isDatasetVisible(i)) {\n ringWeightOffset += this._getRingWeight(i);\n }\n }\n return ringWeightOffset;\n },\n /**\r\n * @private\r\n */\n _getRingWeight: function (dataSetIndex) {\n return Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0);\n },\n /**\r\n * Returns the sum of all visibile data set weights. This value can be 0.\r\n * @private\r\n */\n _getVisibleDatasetWeightTotal: function () {\n return this._getRingWeightOffset(this.chart.data.datasets.length);\n }\n });\n core_defaults._set('horizontalBar', {\n hover: {\n mode: 'index',\n axis: 'y'\n },\n scales: {\n xAxes: [{\n type: 'linear',\n position: 'bottom'\n }],\n yAxes: [{\n type: 'category',\n position: 'left',\n offset: true,\n gridLines: {\n offsetGridLines: true\n }\n }]\n },\n elements: {\n rectangle: {\n borderSkipped: 'left'\n }\n },\n tooltips: {\n mode: 'index',\n axis: 'y'\n }\n });\n core_defaults._set('global', {\n datasets: {\n horizontalBar: {\n categoryPercentage: 0.8,\n barPercentage: 0.9\n }\n }\n });\n var controller_horizontalBar = controller_bar.extend({\n /**\r\n * @private\r\n */\n _getValueScaleId: function () {\n return this.getMeta().xAxisID;\n },\n /**\r\n * @private\r\n */\n _getIndexScaleId: function () {\n return this.getMeta().yAxisID;\n }\n });\n var valueOrDefault$6 = helpers$1.valueOrDefault;\n var resolve$2 = helpers$1.options.resolve;\n var isPointInArea = helpers$1.canvas._isPointInArea;\n core_defaults._set('line', {\n showLines: true,\n spanGaps: false,\n hover: {\n mode: 'label'\n },\n scales: {\n xAxes: [{\n type: 'category',\n id: 'x-axis-0'\n }],\n yAxes: [{\n type: 'linear',\n id: 'y-axis-0'\n }]\n }\n });\n function scaleClip(scale, halfBorderWidth) {\n var tickOpts = scale && scale.options.ticks || {};\n var reverse = tickOpts.reverse;\n var min = tickOpts.min === undefined ? halfBorderWidth : 0;\n var max = tickOpts.max === undefined ? halfBorderWidth : 0;\n return {\n start: reverse ? max : min,\n end: reverse ? min : max\n };\n }\n function defaultClip(xScale, yScale, borderWidth) {\n var halfBorderWidth = borderWidth / 2;\n var x = scaleClip(xScale, halfBorderWidth);\n var y = scaleClip(yScale, halfBorderWidth);\n return {\n top: y.end,\n right: x.end,\n bottom: y.start,\n left: x.start\n };\n }\n function toClip(value) {\n var t, r, b, l;\n if (helpers$1.isObject(value)) {\n t = value.top;\n r = value.right;\n b = value.bottom;\n l = value.left;\n } else {\n t = r = b = l = value;\n }\n return {\n top: t,\n right: r,\n bottom: b,\n left: l\n };\n }\n var controller_line = core_datasetController.extend({\n datasetElementType: elements.Line,\n dataElementType: elements.Point,\n /**\r\n * @private\r\n */\n _datasetElementOptions: ['backgroundColor', 'borderCapStyle', 'borderColor', 'borderDash', 'borderDashOffset', 'borderJoinStyle', 'borderWidth', 'cubicInterpolationMode', 'fill'],\n /**\r\n * @private\r\n */\n _dataElementOptions: {\n backgroundColor: 'pointBackgroundColor',\n borderColor: 'pointBorderColor',\n borderWidth: 'pointBorderWidth',\n hitRadius: 'pointHitRadius',\n hoverBackgroundColor: 'pointHoverBackgroundColor',\n hoverBorderColor: 'pointHoverBorderColor',\n hoverBorderWidth: 'pointHoverBorderWidth',\n hoverRadius: 'pointHoverRadius',\n pointStyle: 'pointStyle',\n radius: 'pointRadius',\n rotation: 'pointRotation'\n },\n update: function (reset) {\n var me = this;\n var meta = me.getMeta();\n var line = meta.dataset;\n var points = meta.data || [];\n var options = me.chart.options;\n var config = me._config;\n var showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines);\n var i, ilen;\n me._xScale = me.getScaleForId(meta.xAxisID);\n me._yScale = me.getScaleForId(meta.yAxisID);\n\n // Update Line\n if (showLine) {\n // Compatibility: If the properties are defined with only the old name, use those values\n if (config.tension !== undefined && config.lineTension === undefined) {\n config.lineTension = config.tension;\n }\n\n // Utility\n line._scale = me._yScale;\n line._datasetIndex = me.index;\n // Data\n line._children = points;\n // Model\n line._model = me._resolveDatasetElementOptions(line);\n line.pivot();\n }\n\n // Update Points\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n me.updateElement(points[i], i, reset);\n }\n if (showLine && line._model.tension !== 0) {\n me.updateBezierControlPoints();\n }\n\n // Now pivot the point for animation\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n points[i].pivot();\n }\n },\n updateElement: function (point, index, reset) {\n var me = this;\n var meta = me.getMeta();\n var custom = point.custom || {};\n var dataset = me.getDataset();\n var datasetIndex = me.index;\n var value = dataset.data[index];\n var xScale = me._xScale;\n var yScale = me._yScale;\n var lineModel = meta.dataset._model;\n var x, y;\n var options = me._resolveDataElementOptions(point, index);\n x = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);\n y = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);\n\n // Utility\n point._xScale = xScale;\n point._yScale = yScale;\n point._options = options;\n point._datasetIndex = datasetIndex;\n point._index = index;\n\n // Desired view properties\n point._model = {\n x: x,\n y: y,\n skip: custom.skip || isNaN(x) || isNaN(y),\n // Appearance\n radius: options.radius,\n pointStyle: options.pointStyle,\n rotation: options.rotation,\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n tension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0),\n steppedLine: lineModel ? lineModel.steppedLine : false,\n // Tooltip\n hitRadius: options.hitRadius\n };\n },\n /**\r\n * @private\r\n */\n _resolveDatasetElementOptions: function (element) {\n var me = this;\n var config = me._config;\n var custom = element.custom || {};\n var options = me.chart.options;\n var lineOptions = options.elements.line;\n var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\n\n // The default behavior of lines is to break at null values, according\n // to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\n // This option gives lines the ability to span gaps\n values.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps);\n values.tension = valueOrDefault$6(config.lineTension, lineOptions.tension);\n values.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]);\n values.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth)));\n return values;\n },\n calculatePointY: function (value, index, datasetIndex) {\n var me = this;\n var chart = me.chart;\n var yScale = me._yScale;\n var sumPos = 0;\n var sumNeg = 0;\n var i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen;\n if (yScale.options.stacked) {\n rightValue = +yScale.getRightValue(value);\n metasets = chart._getSortedVisibleDatasetMetas();\n ilen = metasets.length;\n for (i = 0; i < ilen; ++i) {\n dsMeta = metasets[i];\n if (dsMeta.index === datasetIndex) {\n break;\n }\n ds = chart.data.datasets[dsMeta.index];\n if (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) {\n stackedRightValue = +yScale.getRightValue(ds.data[index]);\n if (stackedRightValue < 0) {\n sumNeg += stackedRightValue || 0;\n } else {\n sumPos += stackedRightValue || 0;\n }\n }\n }\n if (rightValue < 0) {\n return yScale.getPixelForValue(sumNeg + rightValue);\n }\n return yScale.getPixelForValue(sumPos + rightValue);\n }\n return yScale.getPixelForValue(value);\n },\n updateBezierControlPoints: function () {\n var me = this;\n var chart = me.chart;\n var meta = me.getMeta();\n var lineModel = meta.dataset._model;\n var area = chart.chartArea;\n var points = meta.data || [];\n var i, ilen, model, controlPoints;\n\n // Only consider points that are drawn in case the spanGaps option is used\n if (lineModel.spanGaps) {\n points = points.filter(function (pt) {\n return !pt._model.skip;\n });\n }\n function capControlPoint(pt, min, max) {\n return Math.max(Math.min(pt, max), min);\n }\n if (lineModel.cubicInterpolationMode === 'monotone') {\n helpers$1.splineCurveMonotone(points);\n } else {\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n model = points[i]._model;\n controlPoints = helpers$1.splineCurve(helpers$1.previousItem(points, i)._model, model, helpers$1.nextItem(points, i)._model, lineModel.tension);\n model.controlPointPreviousX = controlPoints.previous.x;\n model.controlPointPreviousY = controlPoints.previous.y;\n model.controlPointNextX = controlPoints.next.x;\n model.controlPointNextY = controlPoints.next.y;\n }\n }\n if (chart.options.elements.line.capBezierPoints) {\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n model = points[i]._model;\n if (isPointInArea(model, area)) {\n if (i > 0 && isPointInArea(points[i - 1]._model, area)) {\n model.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);\n model.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);\n }\n if (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) {\n model.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);\n model.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);\n }\n }\n }\n }\n },\n draw: function () {\n var me = this;\n var chart = me.chart;\n var meta = me.getMeta();\n var points = meta.data || [];\n var area = chart.chartArea;\n var canvas = chart.canvas;\n var i = 0;\n var ilen = points.length;\n var clip;\n if (me._showLine) {\n clip = meta.dataset._model.clip;\n helpers$1.canvas.clipArea(chart.ctx, {\n left: clip.left === false ? 0 : area.left - clip.left,\n right: clip.right === false ? canvas.width : area.right + clip.right,\n top: clip.top === false ? 0 : area.top - clip.top,\n bottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom\n });\n meta.dataset.draw();\n helpers$1.canvas.unclipArea(chart.ctx);\n }\n\n // Draw the points\n for (; i < ilen; ++i) {\n points[i].draw(area);\n }\n },\n /**\r\n * @protected\r\n */\n setHoverStyle: function (point) {\n var model = point._model;\n var options = point._options;\n var getHoverColor = helpers$1.getHoverColor;\n point.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth,\n radius: model.radius\n };\n model.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth);\n model.radius = valueOrDefault$6(options.hoverRadius, options.radius);\n }\n });\n var resolve$3 = helpers$1.options.resolve;\n core_defaults._set('polarArea', {\n scale: {\n type: 'radialLinear',\n angleLines: {\n display: false\n },\n gridLines: {\n circular: true\n },\n pointLabels: {\n display: false\n },\n ticks: {\n beginAtZero: true\n }\n },\n // Boolean - Whether to animate the rotation of the chart\n animation: {\n animateRotate: true,\n animateScale: true\n },\n startAngle: -0.5 * Math.PI,\n legendCallback: function (chart) {\n var list = document.createElement('ul');\n var data = chart.data;\n var datasets = data.datasets;\n var labels = data.labels;\n var i, ilen, listItem, listItemSpan;\n list.setAttribute('class', chart.id + '-legend');\n if (datasets.length) {\n for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\n listItem = list.appendChild(document.createElement('li'));\n listItemSpan = listItem.appendChild(document.createElement('span'));\n listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\n if (labels[i]) {\n listItem.appendChild(document.createTextNode(labels[i]));\n }\n }\n }\n return list.outerHTML;\n },\n legend: {\n labels: {\n generateLabels: function (chart) {\n var data = chart.data;\n if (data.labels.length && data.datasets.length) {\n return data.labels.map(function (label, i) {\n var meta = chart.getDatasetMeta(0);\n var style = meta.controller.getStyle(i);\n return {\n text: label,\n fillStyle: style.backgroundColor,\n strokeStyle: style.borderColor,\n lineWidth: style.borderWidth,\n hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\n // Extra data used for toggling the correct item\n index: i\n };\n });\n }\n return [];\n }\n },\n onClick: function (e, legendItem) {\n var index = legendItem.index;\n var chart = this.chart;\n var i, ilen, meta;\n for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n meta = chart.getDatasetMeta(i);\n meta.data[index].hidden = !meta.data[index].hidden;\n }\n chart.update();\n }\n },\n // Need to override these to give a nice default\n tooltips: {\n callbacks: {\n title: function () {\n return '';\n },\n label: function (item, data) {\n return data.labels[item.index] + ': ' + item.yLabel;\n }\n }\n }\n });\n var controller_polarArea = core_datasetController.extend({\n dataElementType: elements.Arc,\n linkScales: helpers$1.noop,\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'borderAlign', 'hoverBackgroundColor', 'hoverBorderColor', 'hoverBorderWidth'],\n /**\r\n * @private\r\n */\n _getIndexScaleId: function () {\n return this.chart.scale.id;\n },\n /**\r\n * @private\r\n */\n _getValueScaleId: function () {\n return this.chart.scale.id;\n },\n update: function (reset) {\n var me = this;\n var dataset = me.getDataset();\n var meta = me.getMeta();\n var start = me.chart.options.startAngle || 0;\n var starts = me._starts = [];\n var angles = me._angles = [];\n var arcs = meta.data;\n var i, ilen, angle;\n me._updateRadius();\n meta.count = me.countVisibleElements();\n for (i = 0, ilen = dataset.data.length; i < ilen; i++) {\n starts[i] = start;\n angle = me._computeAngle(i);\n angles[i] = angle;\n start += angle;\n }\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\n me.updateElement(arcs[i], i, reset);\n }\n },\n /**\r\n * @private\r\n */\n _updateRadius: function () {\n var me = this;\n var chart = me.chart;\n var chartArea = chart.chartArea;\n var opts = chart.options;\n var minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\n chart.outerRadius = Math.max(minSize / 2, 0);\n chart.innerRadius = Math.max(opts.cutoutPercentage ? chart.outerRadius / 100 * opts.cutoutPercentage : 1, 0);\n chart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\n me.outerRadius = chart.outerRadius - chart.radiusLength * me.index;\n me.innerRadius = me.outerRadius - chart.radiusLength;\n },\n updateElement: function (arc, index, reset) {\n var me = this;\n var chart = me.chart;\n var dataset = me.getDataset();\n var opts = chart.options;\n var animationOpts = opts.animation;\n var scale = chart.scale;\n var labels = chart.data.labels;\n var centerX = scale.xCenter;\n var centerY = scale.yCenter;\n\n // var negHalfPI = -0.5 * Math.PI;\n var datasetStartAngle = opts.startAngle;\n var distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n var startAngle = me._starts[index];\n var endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);\n var resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n var options = arc._options || {};\n helpers$1.extend(arc, {\n // Utility\n _datasetIndex: me.index,\n _index: index,\n _scale: scale,\n // Desired view properties\n _model: {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n borderAlign: options.borderAlign,\n x: centerX,\n y: centerY,\n innerRadius: 0,\n outerRadius: reset ? resetRadius : distance,\n startAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,\n endAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,\n label: helpers$1.valueAtIndexOrDefault(labels, index, labels[index])\n }\n });\n arc.pivot();\n },\n countVisibleElements: function () {\n var dataset = this.getDataset();\n var meta = this.getMeta();\n var count = 0;\n helpers$1.each(meta.data, function (element, index) {\n if (!isNaN(dataset.data[index]) && !element.hidden) {\n count++;\n }\n });\n return count;\n },\n /**\r\n * @protected\r\n */\n setHoverStyle: function (arc) {\n var model = arc._model;\n var options = arc._options;\n var getHoverColor = helpers$1.getHoverColor;\n var valueOrDefault = helpers$1.valueOrDefault;\n arc.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth\n };\n model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);\n },\n /**\r\n * @private\r\n */\n _computeAngle: function (index) {\n var me = this;\n var count = this.getMeta().count;\n var dataset = me.getDataset();\n var meta = me.getMeta();\n if (isNaN(dataset.data[index]) || meta.data[index].hidden) {\n return 0;\n }\n\n // Scriptable options\n var context = {\n chart: me.chart,\n dataIndex: index,\n dataset: dataset,\n datasetIndex: me.index\n };\n return resolve$3([me.chart.options.elements.arc.angle, 2 * Math.PI / count], context, index);\n }\n });\n core_defaults._set('pie', helpers$1.clone(core_defaults.doughnut));\n core_defaults._set('pie', {\n cutoutPercentage: 0\n });\n\n // Pie charts are Doughnut chart with different defaults\n var controller_pie = controller_doughnut;\n var valueOrDefault$7 = helpers$1.valueOrDefault;\n core_defaults._set('radar', {\n spanGaps: false,\n scale: {\n type: 'radialLinear'\n },\n elements: {\n line: {\n fill: 'start',\n tension: 0 // no bezier in radar\n }\n }\n });\n\n var controller_radar = core_datasetController.extend({\n datasetElementType: elements.Line,\n dataElementType: elements.Point,\n linkScales: helpers$1.noop,\n /**\r\n * @private\r\n */\n _datasetElementOptions: ['backgroundColor', 'borderWidth', 'borderColor', 'borderCapStyle', 'borderDash', 'borderDashOffset', 'borderJoinStyle', 'fill'],\n /**\r\n * @private\r\n */\n _dataElementOptions: {\n backgroundColor: 'pointBackgroundColor',\n borderColor: 'pointBorderColor',\n borderWidth: 'pointBorderWidth',\n hitRadius: 'pointHitRadius',\n hoverBackgroundColor: 'pointHoverBackgroundColor',\n hoverBorderColor: 'pointHoverBorderColor',\n hoverBorderWidth: 'pointHoverBorderWidth',\n hoverRadius: 'pointHoverRadius',\n pointStyle: 'pointStyle',\n radius: 'pointRadius',\n rotation: 'pointRotation'\n },\n /**\r\n * @private\r\n */\n _getIndexScaleId: function () {\n return this.chart.scale.id;\n },\n /**\r\n * @private\r\n */\n _getValueScaleId: function () {\n return this.chart.scale.id;\n },\n update: function (reset) {\n var me = this;\n var meta = me.getMeta();\n var line = meta.dataset;\n var points = meta.data || [];\n var scale = me.chart.scale;\n var config = me._config;\n var i, ilen;\n\n // Compatibility: If the properties are defined with only the old name, use those values\n if (config.tension !== undefined && config.lineTension === undefined) {\n config.lineTension = config.tension;\n }\n\n // Utility\n line._scale = scale;\n line._datasetIndex = me.index;\n // Data\n line._children = points;\n line._loop = true;\n // Model\n line._model = me._resolveDatasetElementOptions(line);\n line.pivot();\n\n // Update Points\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n me.updateElement(points[i], i, reset);\n }\n\n // Update bezier control points\n me.updateBezierControlPoints();\n\n // Now pivot the point for animation\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n points[i].pivot();\n }\n },\n updateElement: function (point, index, reset) {\n var me = this;\n var custom = point.custom || {};\n var dataset = me.getDataset();\n var scale = me.chart.scale;\n var pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);\n var options = me._resolveDataElementOptions(point, index);\n var lineModel = me.getMeta().dataset._model;\n var x = reset ? scale.xCenter : pointPosition.x;\n var y = reset ? scale.yCenter : pointPosition.y;\n\n // Utility\n point._scale = scale;\n point._options = options;\n point._datasetIndex = me.index;\n point._index = index;\n\n // Desired view properties\n point._model = {\n x: x,\n // value not used in dataset scale, but we want a consistent API between scales\n y: y,\n skip: custom.skip || isNaN(x) || isNaN(y),\n // Appearance\n radius: options.radius,\n pointStyle: options.pointStyle,\n rotation: options.rotation,\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n tension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0),\n // Tooltip\n hitRadius: options.hitRadius\n };\n },\n /**\r\n * @private\r\n */\n _resolveDatasetElementOptions: function () {\n var me = this;\n var config = me._config;\n var options = me.chart.options;\n var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\n values.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps);\n values.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension);\n return values;\n },\n updateBezierControlPoints: function () {\n var me = this;\n var meta = me.getMeta();\n var area = me.chart.chartArea;\n var points = meta.data || [];\n var i, ilen, model, controlPoints;\n\n // Only consider points that are drawn in case the spanGaps option is used\n if (meta.dataset._model.spanGaps) {\n points = points.filter(function (pt) {\n return !pt._model.skip;\n });\n }\n function capControlPoint(pt, min, max) {\n return Math.max(Math.min(pt, max), min);\n }\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n model = points[i]._model;\n controlPoints = helpers$1.splineCurve(helpers$1.previousItem(points, i, true)._model, model, helpers$1.nextItem(points, i, true)._model, model.tension);\n\n // Prevent the bezier going outside of the bounds of the graph\n model.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right);\n model.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom);\n model.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right);\n model.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom);\n }\n },\n setHoverStyle: function (point) {\n var model = point._model;\n var options = point._options;\n var getHoverColor = helpers$1.getHoverColor;\n point.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth,\n radius: model.radius\n };\n model.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth);\n model.radius = valueOrDefault$7(options.hoverRadius, options.radius);\n }\n });\n core_defaults._set('scatter', {\n hover: {\n mode: 'single'\n },\n scales: {\n xAxes: [{\n id: 'x-axis-1',\n // need an ID so datasets can reference the scale\n type: 'linear',\n // scatter should not use a category axis\n position: 'bottom'\n }],\n yAxes: [{\n id: 'y-axis-1',\n type: 'linear',\n position: 'left'\n }]\n },\n tooltips: {\n callbacks: {\n title: function () {\n return ''; // doesn't make sense for scatter since data are formatted as a point\n },\n\n label: function (item) {\n return '(' + item.xLabel + ', ' + item.yLabel + ')';\n }\n }\n }\n });\n core_defaults._set('global', {\n datasets: {\n scatter: {\n showLine: false\n }\n }\n });\n\n // Scatter charts use line controllers\n var controller_scatter = controller_line;\n\n // NOTE export a map in which the key represents the controller type, not\n // the class, and so must be CamelCase in order to be correctly retrieved\n // by the controller in core.controller.js (`controllers[meta.type]`).\n\n var controllers = {\n bar: controller_bar,\n bubble: controller_bubble,\n doughnut: controller_doughnut,\n horizontalBar: controller_horizontalBar,\n line: controller_line,\n polarArea: controller_polarArea,\n pie: controller_pie,\n radar: controller_radar,\n scatter: controller_scatter\n };\n\n /**\r\n * Helper function to get relative position for an event\r\n * @param {Event|IEvent} event - The event to get the position for\r\n * @param {Chart} chart - The chart\r\n * @returns {object} the event position\r\n */\n function getRelativePosition(e, chart) {\n if (e.native) {\n return {\n x: e.x,\n y: e.y\n };\n }\n return helpers$1.getRelativePosition(e, chart);\n }\n\n /**\r\n * Helper function to traverse all of the visible elements in the chart\r\n * @param {Chart} chart - the chart\r\n * @param {function} handler - the callback to execute for each visible item\r\n */\n function parseVisibleItems(chart, handler) {\n var metasets = chart._getSortedVisibleDatasetMetas();\n var metadata, i, j, ilen, jlen, element;\n for (i = 0, ilen = metasets.length; i < ilen; ++i) {\n metadata = metasets[i].data;\n for (j = 0, jlen = metadata.length; j < jlen; ++j) {\n element = metadata[j];\n if (!element._view.skip) {\n handler(element);\n }\n }\n }\n }\n\n /**\r\n * Helper function to get the items that intersect the event position\r\n * @param {ChartElement[]} items - elements to filter\r\n * @param {object} position - the point to be nearest to\r\n * @return {ChartElement[]} the nearest items\r\n */\n function getIntersectItems(chart, position) {\n var elements = [];\n parseVisibleItems(chart, function (element) {\n if (element.inRange(position.x, position.y)) {\n elements.push(element);\n }\n });\n return elements;\n }\n\n /**\r\n * Helper function to get the items nearest to the event position considering all visible items in teh chart\r\n * @param {Chart} chart - the chart to look at elements from\r\n * @param {object} position - the point to be nearest to\r\n * @param {boolean} intersect - if true, only consider items that intersect the position\r\n * @param {function} distanceMetric - function to provide the distance between points\r\n * @return {ChartElement[]} the nearest items\r\n */\n function getNearestItems(chart, position, intersect, distanceMetric) {\n var minDistance = Number.POSITIVE_INFINITY;\n var nearestItems = [];\n parseVisibleItems(chart, function (element) {\n if (intersect && !element.inRange(position.x, position.y)) {\n return;\n }\n var center = element.getCenterPoint();\n var distance = distanceMetric(position, center);\n if (distance < minDistance) {\n nearestItems = [element];\n minDistance = distance;\n } else if (distance === minDistance) {\n // Can have multiple items at the same distance in which case we sort by size\n nearestItems.push(element);\n }\n });\n return nearestItems;\n }\n\n /**\r\n * Get a distance metric function for two points based on the\r\n * axis mode setting\r\n * @param {string} axis - the axis mode. x|y|xy\r\n */\n function getDistanceMetricForAxis(axis) {\n var useX = axis.indexOf('x') !== -1;\n var useY = axis.indexOf('y') !== -1;\n return function (pt1, pt2) {\n var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\n var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\n return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\n };\n }\n function indexMode(chart, e, options) {\n var position = getRelativePosition(e, chart);\n // Default axis for index mode is 'x' to match old behaviour\n options.axis = options.axis || 'x';\n var distanceMetric = getDistanceMetricForAxis(options.axis);\n var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n var elements = [];\n if (!items.length) {\n return [];\n }\n chart._getSortedVisibleDatasetMetas().forEach(function (meta) {\n var element = meta.data[items[0]._index];\n\n // don't count items that are skipped (null data)\n if (element && !element._view.skip) {\n elements.push(element);\n }\n });\n return elements;\n }\n\n /**\r\n * @interface IInteractionOptions\r\n */\n /**\r\n * If true, only consider items that intersect the point\r\n * @name IInterfaceOptions#boolean\r\n * @type Boolean\r\n */\n\n /**\r\n * Contains interaction related functions\r\n * @namespace Chart.Interaction\r\n */\n var core_interaction = {\n // Helper function for different modes\n modes: {\n single: function (chart, e) {\n var position = getRelativePosition(e, chart);\n var elements = [];\n parseVisibleItems(chart, function (element) {\n if (element.inRange(position.x, position.y)) {\n elements.push(element);\n return elements;\n }\n });\n return elements.slice(0, 1);\n },\n /**\r\n * @function Chart.Interaction.modes.label\r\n * @deprecated since version 2.4.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n label: indexMode,\n /**\r\n * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\r\n * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\r\n * @function Chart.Interaction.modes.index\r\n * @since v2.4.0\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use during interaction\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n index: indexMode,\n /**\r\n * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\r\n * If the options.intersect is false, we find the nearest item and return the items in that dataset\r\n * @function Chart.Interaction.modes.dataset\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use during interaction\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n dataset: function (chart, e, options) {\n var position = getRelativePosition(e, chart);\n options.axis = options.axis || 'xy';\n var distanceMetric = getDistanceMetricForAxis(options.axis);\n var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n if (items.length > 0) {\n items = chart.getDatasetMeta(items[0]._datasetIndex).data;\n }\n return items;\n },\n /**\r\n * @function Chart.Interaction.modes.x-axis\r\n * @deprecated since version 2.4.0. Use index mode and intersect == true\r\n * @todo remove at version 3\r\n * @private\r\n */\n 'x-axis': function (chart, e) {\n return indexMode(chart, e, {\n intersect: false\n });\n },\n /**\r\n * Point mode returns all elements that hit test based on the event position\r\n * of the event\r\n * @function Chart.Interaction.modes.intersect\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n point: function (chart, e) {\n var position = getRelativePosition(e, chart);\n return getIntersectItems(chart, position);\n },\n /**\r\n * nearest mode returns the element closest to the point\r\n * @function Chart.Interaction.modes.intersect\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n nearest: function (chart, e, options) {\n var position = getRelativePosition(e, chart);\n options.axis = options.axis || 'xy';\n var distanceMetric = getDistanceMetricForAxis(options.axis);\n return getNearestItems(chart, position, options.intersect, distanceMetric);\n },\n /**\r\n * x mode returns the elements that hit-test at the current x coordinate\r\n * @function Chart.Interaction.modes.x\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n x: function (chart, e, options) {\n var position = getRelativePosition(e, chart);\n var items = [];\n var intersectsItem = false;\n parseVisibleItems(chart, function (element) {\n if (element.inXRange(position.x)) {\n items.push(element);\n }\n if (element.inRange(position.x, position.y)) {\n intersectsItem = true;\n }\n });\n\n // If we want to trigger on an intersect and we don't have any items\n // that intersect the position, return nothing\n if (options.intersect && !intersectsItem) {\n items = [];\n }\n return items;\n },\n /**\r\n * y mode returns the elements that hit-test at the current y coordinate\r\n * @function Chart.Interaction.modes.y\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n y: function (chart, e, options) {\n var position = getRelativePosition(e, chart);\n var items = [];\n var intersectsItem = false;\n parseVisibleItems(chart, function (element) {\n if (element.inYRange(position.y)) {\n items.push(element);\n }\n if (element.inRange(position.x, position.y)) {\n intersectsItem = true;\n }\n });\n\n // If we want to trigger on an intersect and we don't have any items\n // that intersect the position, return nothing\n if (options.intersect && !intersectsItem) {\n items = [];\n }\n return items;\n }\n }\n };\n var extend = helpers$1.extend;\n function filterByPosition(array, position) {\n return helpers$1.where(array, function (v) {\n return v.pos === position;\n });\n }\n function sortByWeight(array, reverse) {\n return array.sort(function (a, b) {\n var v0 = reverse ? b : a;\n var v1 = reverse ? a : b;\n return v0.weight === v1.weight ? v0.index - v1.index : v0.weight - v1.weight;\n });\n }\n function wrapBoxes(boxes) {\n var layoutBoxes = [];\n var i, ilen, box;\n for (i = 0, ilen = (boxes || []).length; i < ilen; ++i) {\n box = boxes[i];\n layoutBoxes.push({\n index: i,\n box: box,\n pos: box.position,\n horizontal: box.isHorizontal(),\n weight: box.weight\n });\n }\n return layoutBoxes;\n }\n function setLayoutDims(layouts, params) {\n var i, ilen, layout;\n for (i = 0, ilen = layouts.length; i < ilen; ++i) {\n layout = layouts[i];\n // store width used instead of chartArea.w in fitBoxes\n layout.width = layout.horizontal ? layout.box.fullWidth && params.availableWidth : params.vBoxMaxWidth;\n // store height used instead of chartArea.h in fitBoxes\n layout.height = layout.horizontal && params.hBoxMaxHeight;\n }\n }\n function buildLayoutBoxes(boxes) {\n var layoutBoxes = wrapBoxes(boxes);\n var left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);\n var right = sortByWeight(filterByPosition(layoutBoxes, 'right'));\n var top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);\n var bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));\n return {\n leftAndTop: left.concat(top),\n rightAndBottom: right.concat(bottom),\n chartArea: filterByPosition(layoutBoxes, 'chartArea'),\n vertical: left.concat(right),\n horizontal: top.concat(bottom)\n };\n }\n function getCombinedMax(maxPadding, chartArea, a, b) {\n return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);\n }\n function updateDims(chartArea, params, layout) {\n var box = layout.box;\n var maxPadding = chartArea.maxPadding;\n var newWidth, newHeight;\n if (layout.size) {\n // this layout was already counted for, lets first reduce old size\n chartArea[layout.pos] -= layout.size;\n }\n layout.size = layout.horizontal ? box.height : box.width;\n chartArea[layout.pos] += layout.size;\n if (box.getPadding) {\n var boxPadding = box.getPadding();\n maxPadding.top = Math.max(maxPadding.top, boxPadding.top);\n maxPadding.left = Math.max(maxPadding.left, boxPadding.left);\n maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);\n maxPadding.right = Math.max(maxPadding.right, boxPadding.right);\n }\n newWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right');\n newHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom');\n if (newWidth !== chartArea.w || newHeight !== chartArea.h) {\n chartArea.w = newWidth;\n chartArea.h = newHeight;\n\n // return true if chart area changed in layout's direction\n var sizes = layout.horizontal ? [newWidth, chartArea.w] : [newHeight, chartArea.h];\n return sizes[0] !== sizes[1] && (!isNaN(sizes[0]) || !isNaN(sizes[1]));\n }\n }\n function handleMaxPadding(chartArea) {\n var maxPadding = chartArea.maxPadding;\n function updatePos(pos) {\n var change = Math.max(maxPadding[pos] - chartArea[pos], 0);\n chartArea[pos] += change;\n return change;\n }\n chartArea.y += updatePos('top');\n chartArea.x += updatePos('left');\n updatePos('right');\n updatePos('bottom');\n }\n function getMargins(horizontal, chartArea) {\n var maxPadding = chartArea.maxPadding;\n function marginForPositions(positions) {\n var margin = {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n positions.forEach(function (pos) {\n margin[pos] = Math.max(chartArea[pos], maxPadding[pos]);\n });\n return margin;\n }\n return horizontal ? marginForPositions(['left', 'right']) : marginForPositions(['top', 'bottom']);\n }\n function fitBoxes(boxes, chartArea, params) {\n var refitBoxes = [];\n var i, ilen, layout, box, refit, changed;\n for (i = 0, ilen = boxes.length; i < ilen; ++i) {\n layout = boxes[i];\n box = layout.box;\n box.update(layout.width || chartArea.w, layout.height || chartArea.h, getMargins(layout.horizontal, chartArea));\n if (updateDims(chartArea, params, layout)) {\n changed = true;\n if (refitBoxes.length) {\n // Dimensions changed and there were non full width boxes before this\n // -> we have to refit those\n refit = true;\n }\n }\n if (!box.fullWidth) {\n // fullWidth boxes don't need to be re-fitted in any case\n refitBoxes.push(layout);\n }\n }\n return refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed;\n }\n function placeBoxes(boxes, chartArea, params) {\n var userPadding = params.padding;\n var x = chartArea.x;\n var y = chartArea.y;\n var i, ilen, layout, box;\n for (i = 0, ilen = boxes.length; i < ilen; ++i) {\n layout = boxes[i];\n box = layout.box;\n if (layout.horizontal) {\n box.left = box.fullWidth ? userPadding.left : chartArea.left;\n box.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w;\n box.top = y;\n box.bottom = y + box.height;\n box.width = box.right - box.left;\n y = box.bottom;\n } else {\n box.left = x;\n box.right = x + box.width;\n box.top = chartArea.top;\n box.bottom = chartArea.top + chartArea.h;\n box.height = box.bottom - box.top;\n x = box.right;\n }\n }\n chartArea.x = x;\n chartArea.y = y;\n }\n core_defaults._set('global', {\n layout: {\n padding: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }\n });\n\n /**\r\n * @interface ILayoutItem\r\n * @prop {string} position - The position of the item in the chart layout. Possible values are\r\n * 'left', 'top', 'right', 'bottom', and 'chartArea'\r\n * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area\r\n * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\r\n * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\r\n * @prop {function} update - Takes two parameters: width and height. Returns size of item\r\n * @prop {function} getPadding - Returns an object with padding on the edges\r\n * @prop {number} width - Width of item. Must be valid after update()\r\n * @prop {number} height - Height of item. Must be valid after update()\r\n * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\r\n */\n\n // The layout service is very self explanatory. It's responsible for the layout within a chart.\n // Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\n // It is this service's responsibility of carrying out that layout.\n var core_layouts = {\n defaults: {},\n /**\r\n * Register a box to a chart.\r\n * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\r\n * @param {Chart} chart - the chart to use\r\n * @param {ILayoutItem} item - the item to add to be layed out\r\n */\n addBox: function (chart, item) {\n if (!chart.boxes) {\n chart.boxes = [];\n }\n\n // initialize item with default values\n item.fullWidth = item.fullWidth || false;\n item.position = item.position || 'top';\n item.weight = item.weight || 0;\n item._layers = item._layers || function () {\n return [{\n z: 0,\n draw: function () {\n item.draw.apply(item, arguments);\n }\n }];\n };\n chart.boxes.push(item);\n },\n /**\r\n * Remove a layoutItem from a chart\r\n * @param {Chart} chart - the chart to remove the box from\r\n * @param {ILayoutItem} layoutItem - the item to remove from the layout\r\n */\n removeBox: function (chart, layoutItem) {\n var index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\n if (index !== -1) {\n chart.boxes.splice(index, 1);\n }\n },\n /**\r\n * Sets (or updates) options on the given `item`.\r\n * @param {Chart} chart - the chart in which the item lives (or will be added to)\r\n * @param {ILayoutItem} item - the item to configure with the given options\r\n * @param {object} options - the new item options.\r\n */\n configure: function (chart, item, options) {\n var props = ['fullWidth', 'position', 'weight'];\n var ilen = props.length;\n var i = 0;\n var prop;\n for (; i < ilen; ++i) {\n prop = props[i];\n if (options.hasOwnProperty(prop)) {\n item[prop] = options[prop];\n }\n }\n },\n /**\r\n * Fits boxes of the given chart into the given size by having each box measure itself\r\n * then running a fitting algorithm\r\n * @param {Chart} chart - the chart\r\n * @param {number} width - the width to fit into\r\n * @param {number} height - the height to fit into\r\n */\n update: function (chart, width, height) {\n if (!chart) {\n return;\n }\n var layoutOptions = chart.options.layout || {};\n var padding = helpers$1.options.toPadding(layoutOptions.padding);\n var availableWidth = width - padding.width;\n var availableHeight = height - padding.height;\n var boxes = buildLayoutBoxes(chart.boxes);\n var verticalBoxes = boxes.vertical;\n var horizontalBoxes = boxes.horizontal;\n\n // Essentially we now have any number of boxes on each of the 4 sides.\n // Our canvas looks like the following.\n // The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\n // B1 is the bottom axis\n // There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\n // These locations are single-box locations only, when trying to register a chartArea location that is already taken,\n // an error will be thrown.\n //\n // |----------------------------------------------------|\n // | T1 (Full Width) |\n // |----------------------------------------------------|\n // | | | T2 | |\n // | |----|-------------------------------------|----|\n // | | | C1 | | C2 | |\n // | | |----| |----| |\n // | | | | |\n // | L1 | L2 | ChartArea (C0) | R1 |\n // | | | | |\n // | | |----| |----| |\n // | | | C3 | | C4 | |\n // | |----|-------------------------------------|----|\n // | | | B1 | |\n // |----------------------------------------------------|\n // | B2 (Full Width) |\n // |----------------------------------------------------|\n //\n\n var params = Object.freeze({\n outerWidth: width,\n outerHeight: height,\n padding: padding,\n availableWidth: availableWidth,\n vBoxMaxWidth: availableWidth / 2 / verticalBoxes.length,\n hBoxMaxHeight: availableHeight / 2\n });\n var chartArea = extend({\n maxPadding: extend({}, padding),\n w: availableWidth,\n h: availableHeight,\n x: padding.left,\n y: padding.top\n }, padding);\n setLayoutDims(verticalBoxes.concat(horizontalBoxes), params);\n\n // First fit vertical boxes\n fitBoxes(verticalBoxes, chartArea, params);\n\n // Then fit horizontal boxes\n if (fitBoxes(horizontalBoxes, chartArea, params)) {\n // if the area changed, re-fit vertical boxes\n fitBoxes(verticalBoxes, chartArea, params);\n }\n handleMaxPadding(chartArea);\n\n // Finally place the boxes to correct coordinates\n placeBoxes(boxes.leftAndTop, chartArea, params);\n\n // Move to opposite side of chart\n chartArea.x += chartArea.w;\n chartArea.y += chartArea.h;\n placeBoxes(boxes.rightAndBottom, chartArea, params);\n chart.chartArea = {\n left: chartArea.left,\n top: chartArea.top,\n right: chartArea.left + chartArea.w,\n bottom: chartArea.top + chartArea.h\n };\n\n // Finally update boxes in chartArea (radial scale for example)\n helpers$1.each(boxes.chartArea, function (layout) {\n var box = layout.box;\n extend(box, chart.chartArea);\n box.update(chartArea.w, chartArea.h);\n });\n }\n };\n\n /**\r\n * Platform fallback implementation (minimal).\r\n * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\r\n */\n\n var platform_basic = {\n acquireContext: function (item) {\n if (item && item.canvas) {\n // Support for any object associated to a canvas (including a context2d)\n item = item.canvas;\n }\n return item && item.getContext('2d') || null;\n }\n };\n var platform_dom = \"/*\\r\\n * DOM element rendering detection\\r\\n * https://davidwalsh.name/detect-node-insertion\\r\\n */\\r\\n@keyframes chartjs-render-animation {\\r\\n\\tfrom { opacity: 0.99; }\\r\\n\\tto { opacity: 1; }\\r\\n}\\r\\n\\r\\n.chartjs-render-monitor {\\r\\n\\tanimation: chartjs-render-animation 0.001s;\\r\\n}\\r\\n\\r\\n/*\\r\\n * DOM element resizing detection\\r\\n * https://github.com/marcj/css-element-queries\\r\\n */\\r\\n.chartjs-size-monitor,\\r\\n.chartjs-size-monitor-expand,\\r\\n.chartjs-size-monitor-shrink {\\r\\n\\tposition: absolute;\\r\\n\\tdirection: ltr;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tbottom: 0;\\r\\n\\toverflow: hidden;\\r\\n\\tpointer-events: none;\\r\\n\\tvisibility: hidden;\\r\\n\\tz-index: -1;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-expand > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 1000000px;\\r\\n\\theight: 1000000px;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-shrink > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 200%;\\r\\n\\theight: 200%;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\";\n var platform_dom$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n 'default': platform_dom\n });\n var stylesheet = getCjsExportFromNamespace(platform_dom$1);\n var EXPANDO_KEY = '$chartjs';\n var CSS_PREFIX = 'chartjs-';\n var CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor';\n var CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';\n var CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';\n var ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];\n\n /**\r\n * DOM event types -> Chart.js event types.\r\n * Note: only events with different types are mapped.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/Events\r\n */\n var EVENT_TYPES = {\n touchstart: 'mousedown',\n touchmove: 'mousemove',\n touchend: 'mouseup',\n pointerenter: 'mouseenter',\n pointerdown: 'mousedown',\n pointermove: 'mousemove',\n pointerup: 'mouseup',\n pointerleave: 'mouseout',\n pointerout: 'mouseout'\n };\n\n /**\r\n * The \"used\" size is the final value of a dimension property after all calculations have\r\n * been performed. This method uses the computed style of `element` but returns undefined\r\n * if the computed style is not expressed in pixels. That can happen in some cases where\r\n * `element` has a size relative to its parent and this last one is not yet displayed,\r\n * for example because of `display: none` on a parent node.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\r\n * @returns {number} Size in pixels or undefined if unknown.\r\n */\n function readUsedSize(element, property) {\n var value = helpers$1.getStyle(element, property);\n var matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\n return matches ? Number(matches[1]) : undefined;\n }\n\n /**\r\n * Initializes the canvas style and render size without modifying the canvas display size,\r\n * since responsiveness is handled by the controller.resize() method. The config is used\r\n * to determine the aspect ratio to apply in case no explicit height has been specified.\r\n */\n function initCanvas(canvas, config) {\n var style = canvas.style;\n\n // NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\n // returns null or '' if no explicit value has been set to the canvas attribute.\n var renderHeight = canvas.getAttribute('height');\n var renderWidth = canvas.getAttribute('width');\n\n // Chart.js modifies some canvas values that we want to restore on destroy\n canvas[EXPANDO_KEY] = {\n initial: {\n height: renderHeight,\n width: renderWidth,\n style: {\n display: style.display,\n height: style.height,\n width: style.width\n }\n }\n };\n\n // Force canvas to display as block to avoid extra space caused by inline\n // elements, which would interfere with the responsive resize process.\n // https://github.com/chartjs/Chart.js/issues/2538\n style.display = style.display || 'block';\n if (renderWidth === null || renderWidth === '') {\n var displayWidth = readUsedSize(canvas, 'width');\n if (displayWidth !== undefined) {\n canvas.width = displayWidth;\n }\n }\n if (renderHeight === null || renderHeight === '') {\n if (canvas.style.height === '') {\n // If no explicit render height and style height, let's apply the aspect ratio,\n // which one can be specified by the user but also by charts as default option\n // (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\n canvas.height = canvas.width / (config.options.aspectRatio || 2);\n } else {\n var displayHeight = readUsedSize(canvas, 'height');\n if (displayWidth !== undefined) {\n canvas.height = displayHeight;\n }\n }\n }\n return canvas;\n }\n\n /**\r\n * Detects support for options object argument in addEventListener.\r\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\r\n * @private\r\n */\n var supportsEventListenerOptions = function () {\n var supports = false;\n try {\n var options = Object.defineProperty({}, 'passive', {\n // eslint-disable-next-line getter-return\n get: function () {\n supports = true;\n }\n });\n window.addEventListener('e', null, options);\n } catch (e) {\n // continue regardless of error\n }\n return supports;\n }();\n\n // Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\n // https://github.com/chartjs/Chart.js/issues/4287\n var eventListenerOptions = supportsEventListenerOptions ? {\n passive: true\n } : false;\n function addListener(node, type, listener) {\n node.addEventListener(type, listener, eventListenerOptions);\n }\n function removeListener(node, type, listener) {\n node.removeEventListener(type, listener, eventListenerOptions);\n }\n function createEvent(type, chart, x, y, nativeEvent) {\n return {\n type: type,\n chart: chart,\n native: nativeEvent || null,\n x: x !== undefined ? x : null,\n y: y !== undefined ? y : null\n };\n }\n function fromNativeEvent(event, chart) {\n var type = EVENT_TYPES[event.type] || event.type;\n var pos = helpers$1.getRelativePosition(event, chart);\n return createEvent(type, chart, pos.x, pos.y, event);\n }\n function throttled(fn, thisArg) {\n var ticking = false;\n var args = [];\n return function () {\n args = Array.prototype.slice.call(arguments);\n thisArg = thisArg || this;\n if (!ticking) {\n ticking = true;\n helpers$1.requestAnimFrame.call(window, function () {\n ticking = false;\n fn.apply(thisArg, args);\n });\n }\n };\n }\n function createDiv(cls) {\n var el = document.createElement('div');\n el.className = cls || '';\n return el;\n }\n\n // Implementation based on https://github.com/marcj/css-element-queries\n function createResizer(handler) {\n var maxSize = 1000000;\n\n // NOTE(SB) Don't use innerHTML because it could be considered unsafe.\n // https://github.com/chartjs/Chart.js/issues/5902\n var resizer = createDiv(CSS_SIZE_MONITOR);\n var expand = createDiv(CSS_SIZE_MONITOR + '-expand');\n var shrink = createDiv(CSS_SIZE_MONITOR + '-shrink');\n expand.appendChild(createDiv());\n shrink.appendChild(createDiv());\n resizer.appendChild(expand);\n resizer.appendChild(shrink);\n resizer._reset = function () {\n expand.scrollLeft = maxSize;\n expand.scrollTop = maxSize;\n shrink.scrollLeft = maxSize;\n shrink.scrollTop = maxSize;\n };\n var onScroll = function () {\n resizer._reset();\n handler();\n };\n addListener(expand, 'scroll', onScroll.bind(expand, 'expand'));\n addListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));\n return resizer;\n }\n\n // https://davidwalsh.name/detect-node-insertion\n function watchForRender(node, handler) {\n var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n var proxy = expando.renderProxy = function (e) {\n if (e.animationName === CSS_RENDER_ANIMATION) {\n handler();\n }\n };\n helpers$1.each(ANIMATION_START_EVENTS, function (type) {\n addListener(node, type, proxy);\n });\n\n // #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\n // is removed then added back immediately (same animation frame?). Accessing the\n // `offsetParent` property will force a reflow and re-evaluate the CSS animation.\n // https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\n // https://github.com/chartjs/Chart.js/issues/4737\n expando.reflow = !!node.offsetParent;\n node.classList.add(CSS_RENDER_MONITOR);\n }\n function unwatchForRender(node) {\n var expando = node[EXPANDO_KEY] || {};\n var proxy = expando.renderProxy;\n if (proxy) {\n helpers$1.each(ANIMATION_START_EVENTS, function (type) {\n removeListener(node, type, proxy);\n });\n delete expando.renderProxy;\n }\n node.classList.remove(CSS_RENDER_MONITOR);\n }\n function addResizeListener(node, listener, chart) {\n var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n\n // Let's keep track of this added resizer and thus avoid DOM query when removing it.\n var resizer = expando.resizer = createResizer(throttled(function () {\n if (expando.resizer) {\n var container = chart.options.maintainAspectRatio && node.parentNode;\n var w = container ? container.clientWidth : 0;\n listener(createEvent('resize', chart));\n if (container && container.clientWidth < w && chart.canvas) {\n // If the container size shrank during chart resize, let's assume\n // scrollbar appeared. So we resize again with the scrollbar visible -\n // effectively making chart smaller and the scrollbar hidden again.\n // Because we are inside `throttled`, and currently `ticking`, scroll\n // events are ignored during this whole 2 resize process.\n // If we assumed wrong and something else happened, we are resizing\n // twice in a frame (potential performance issue)\n listener(createEvent('resize', chart));\n }\n }\n }));\n\n // The resizer needs to be attached to the node parent, so we first need to be\n // sure that `node` is attached to the DOM before injecting the resizer element.\n watchForRender(node, function () {\n if (expando.resizer) {\n var container = node.parentNode;\n if (container && container !== resizer.parentNode) {\n container.insertBefore(resizer, container.firstChild);\n }\n\n // The container size might have changed, let's reset the resizer state.\n resizer._reset();\n }\n });\n }\n function removeResizeListener(node) {\n var expando = node[EXPANDO_KEY] || {};\n var resizer = expando.resizer;\n delete expando.resizer;\n unwatchForRender(node);\n if (resizer && resizer.parentNode) {\n resizer.parentNode.removeChild(resizer);\n }\n }\n\n /**\r\n * Injects CSS styles inline if the styles are not already present.\r\n * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the ","import { render, staticRenderFns } from \"./LimitedForm.vue?vue&type=template&id=20ef76de&\"\nimport script from \"./LimitedForm.vue?vue&type=script&lang=js&\"\nexport * from \"./LimitedForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-4\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h1',[_vm._v(\"\\n COLETA DE DADOS\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"NOME DO CAMPO\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold\",attrs:{\"type\":\"text\",\"field\":_vm.$v.field_mapping_entity.parameters.name},model:{value:(_vm.field_mapping_entity.parameters.name),callback:function ($$v) {_vm.$set(_vm.field_mapping_entity.parameters, \"name\", $$v)},expression:\"field_mapping_entity.parameters.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TIPO DO CAMPO\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.field_mapping_entity.parameters.type_field),expression:\"field_mapping_entity.parameters.type_field\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.field_mapping_entity.parameters, \"type_field\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"text\"}},[_vm._v(\"Texto\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"number\"}},[_vm._v(\"Número\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 mt-3 font-weight-bold\"},[_vm._v(\"OBRIGATÓRIO\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.field_mapping_entity.parameters.required),expression:\"field_mapping_entity.parameters.required\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.field_mapping_entity.parameters, \"required\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":true}},[_vm._v(\"Sim\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":false}},[_vm._v(\"Não\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 mt-3 font-weight-bold\"},[_vm._v(\"OCULTAR\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.field_mapping_entity.hidden),expression:\"field_mapping_entity.hidden\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.field_mapping_entity, \"hidden\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":true}},[_vm._v(\"Sim\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":false}},[_vm._v(\"Não\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"VALOR PADRÃO\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold\",attrs:{\"type\":\"text\",\"field\":_vm.$v.field_mapping_entity.parameters.value_field},model:{value:(_vm.field_mapping_entity.parameters.value_field),callback:function ($$v) {_vm.$set(_vm.field_mapping_entity.parameters, \"value_field\", $$v)},expression:\"field_mapping_entity.parameters.value_field\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.save()}}},[_vm._v(\"\\n SALVAR\\n \")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Limited.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Limited.vue?vue&type=script&lang=js&\"","\n \n
\n
\n COLETA DE DADOS\n \n \n
\n \n \n NOVO\n \n
\n
\n
\n
\n \n
\n
\n {{field.parameters.name}}\n
\n
\n {{field.parameters.required ? \"Sim\" : \"Não\"}}\n
\n
\n {{type_field_translate[field.parameters.type_field]}}\n
\n
\n {{field.parameters.hidden ? \"Sim\" : \"Não\"}}\n
\n
\n {{field.parameters.value_field}}\n
\n
\n
\n
\n\n
\n\n
\n \n SALVAR\n \n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Limited.vue?vue&type=template&id=0cf2c9d1&\"\nimport script from \"./Limited.vue?vue&type=script&lang=js&\"\nexport * from \"./Limited.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row p-3\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",on:{\"click\":_vm.newFieldMapping}},[_c('font-awesome-icon',{attrs:{\"icon\":\"plus\"}}),_vm._v(\"\\n NOVO\\n \")],1)]),_vm._v(\" \"),_vm._l((_vm.field_mapping),function(field){return _c('div',{key:field.id,staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row field_uni\"},[_c('div',{staticClass:\"col-lg-1\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.checke_field),expression:\"checke_field\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"value\":field.id,\"checked\":Array.isArray(_vm.checke_field)?_vm._i(_vm.checke_field,field.id)>-1:(_vm.checke_field)},on:{\"change\":function($event){var $$a=_vm.checke_field,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=field.id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.checke_field=$$a.concat([$$v]))}else{$$i>-1&&(_vm.checke_field=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.checke_field=$$c}}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 text-ellipsis\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.required ? \"Sim\" : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.type_field_translate[field.parameters.type_field])+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.hidden ? \"Sim\" : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.value_field)+\"\\n \")])])])}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",on:{\"click\":_vm.save}},[_vm._v(\"\\n SALVAR\\n \")])])],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('h3',[_vm._v(\"\\n COLETA DE DADOS\\n \")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LimitedHeaderColumnKanban.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LimitedHeaderColumnKanban.vue?vue&type=script&lang=js&\"","\n \n
\n
\n {{ column_name }}\n \n \n
\n\n
{{ total_in_column }} \n
\n \n \n
0\"\n class=\"mr-1 total_in_column icon_kanban_blue\"\n >\n \n \n
\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./LimitedHeaderColumnKanban.vue?vue&type=template&id=1a58133c&\"\nimport script from \"./LimitedHeaderColumnKanban.vue?vue&type=script&lang=js&\"\nexport * from \"./LimitedHeaderColumnKanban.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.edit),expression:\"!edit\"}],staticClass:\"header_column\",on:{\"mouseover\":function($event){_vm.pencil = true},\"mouseleave\":function($event){_vm.pencil = false},\"dblclick\":_vm.enableEditColumn}},[_c('b',{staticClass:\"color-grey-primary pointer\"},[_vm._v(\"\\n \"+_vm._s(_vm.column_name)+\"\\n \"),_c('font-awesome-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pencil),expression:\"pencil\"}],staticClass:\"dark_grey\",attrs:{\"icon\":\"pencil-alt\"},on:{\"click\":function($event){_vm.edit = true}}})],1),_vm._v(\" \"),_c('div',{staticClass:\"nav menu_column nav-tabs right\",staticStyle:{\"border\":\"none\"}},[_c('li',{staticClass:\"nav-item dropdown\"},[_c('a',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"transparent !important\",\"border\":\"none\"},attrs:{\"data-toggle\":\"dropdown\",\"href\":\"#\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{staticClass:\"dark_grey\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\"},[(_vm.selective_process.status != 1)?_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.removeColumn}},[_vm._v(\"\\n Deletar coluna\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.editFeedback}},[_vm._v(\"\\n Adicionar mensagem\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.addData}},[_vm._v(\"\\n coletar dados\\n \")])])])]),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.pencil),expression:\"!pencil\"}],staticClass:\"total_in_column radius-0\",staticStyle:{\"background-color\":\"rgb(36, 26, 63) !important\"}},[_vm._v(_vm._s(_vm.total_in_column))]),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selective_process.feedback),expression:\"selective_process.feedback\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"video\"}})],1),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.selective_process.field_mapping_ids || []).length > 0),expression:\"(selective_process.field_mapping_ids || []).length > 0\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"database\"}})],1)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.edit),expression:\"edit\"}]},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.column_name),expression:\"column_name\"}],ref:\"column_name\",staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.column_name)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.changeName.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.column_name=$event.target.value}}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n
KANBAN DA VAGA \n \n {{ job.title }}\n \n \n
\n
\n \n ADICIONAR COLUNA \n \n
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n \n
\n
\n {{ total_apply }} \n CANDIDATOS(AS) \n
\n
\n
\n
\n {{ total_selected }} \n QUALIFICADOS(AS) \n
\n
\n
\n
\n {{ reproved }} \n REPROVADOS(AS) \n
\n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n {{ apply.candidate.name }}\n \n
\n\n
{{\n apply.candidate.email\n }} \n
\n \n {{\n apply.tag_name != null ? apply.tag_name : \"Sem Etiqueta\"\n }}\n
\n
\n
\n \n \n
\n \n \n \n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=2c8b05d5&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":`Candidato(a)s da vaga de ${_vm.job.title}`,\"menu\":\"Vagas\"}},[_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 text-truncate\",staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h4',{staticClass:\"label-bold\"},[_vm._v(\"\\n CANDIDATO(A)S DA VAGA\\n \"),_c('span',{staticStyle:{\"color\":\"#8f66fe\"}},[_vm._v(_vm._s(_vm.job.title))])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":`/recruiters/jobs/${_vm.job.id}/applies/export_no_video_candidates.csv`}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"height\":\"38px\",\"width\":\"95%\"}},[_vm._v(\"\\n DOWNLOAD CANDIDATOS INCOMPLETOS\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('inertia-link',{staticClass:\"color-primary\",attrs:{\"href\":`/recruiters/jobs/${_vm.job.id}/kanban`}},[_c('button',{staticClass:\"btn-new-job\"},[_vm._v(\"VISUALIZAÇÃO KANBAN\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":'/recruiters/jobs/'+_vm.job.id+'/applies/export.csv'}},[_c('button',{staticClass:\"btn btn-success\",attrs:{\"type\":\"button\"}},[_vm._v(\"DOWNLOAD CSV\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12 p-0\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.action),expression:\"action\"}],staticClass:\"form-control\",attrs:{\"disabled\":!_vm.selected.length},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.action=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changeAction]}},[_c('option',{attrs:{\"disabled\":\"\",\"value\":\"0\"}},[_vm._v(\"AÇÕES\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"COMPARTILHAR\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"MUDAR STATUS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"REMOVER CANDIDATO\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"DOWNLOAD DOS PERFIS\")])]),_vm._v(\" \"),_c('label',{staticClass:\"pt-2 position-absolut-top\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visibility),expression:\"visibility\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.visibility)?_vm._i(_vm.visibility,null)>-1:(_vm.visibility)},on:{\"change\":function($event){var $$a=_vm.visibility,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.visibility=$$a.concat([$$v]))}else{$$i>-1&&(_vm.visibility=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.visibility=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"Mostar movidos\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 d-flex\"},[_c('div',{staticClass:\"nav filter-box-applie\",staticStyle:{\"width\":\"95px\",\"height\":\"38px\",\"margin-right\":\"10px !important\",\"border\":\"1px solid rgb(177, 176, 176)\"}},[_c('li',{staticClass:\"pointer nav-item dropdown\"},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"width\":\"110px\",\"height\":\"38px\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('span',{staticClass:\"left\"},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('span',{staticClass:\"left\"},[_vm._v(\"FILTRO\")])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visibility),expression:\"visibility\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.visibility)?_vm._i(_vm.visibility,null)>-1:(_vm.visibility)},on:{\"change\":function($event){var $$a=_vm.visibility,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.visibility=$$a.concat([$$v]))}else{$$i>-1&&(_vm.visibility=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.visibility=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S REMOVIDOS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.complete_videos),expression:\"complete_videos\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.complete_videos)?_vm._i(_vm.complete_videos,null)>-1:(_vm.complete_videos)},on:{\"change\":function($event){var $$a=_vm.complete_videos,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.complete_videos=$$a.concat([$$v]))}else{$$i>-1&&(_vm.complete_videos=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.complete_videos=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S COM VÍDEO\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.curriculum),expression:\"curriculum\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.curriculum)?_vm._i(_vm.curriculum,null)>-1:(_vm.curriculum)},on:{\"change\":function($event){var $$a=_vm.curriculum,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.curriculum=$$a.concat([$$v]))}else{$$i>-1&&(_vm.curriculum=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.curriculum=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S COM CURRICULUM\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.evaluated),expression:\"evaluated\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.evaluated)?_vm._i(_vm.evaluated,null)>-1:(_vm.evaluated)},on:{\"change\":function($event){var $$a=_vm.evaluated,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.evaluated=$$a.concat([$$v]))}else{$$i>-1&&(_vm.evaluated=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.evaluated=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S AVALIADO(A)S\")])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"nav filter-box-applie\",staticStyle:{\"width\":\"95px\",\"height\":\"38px\",\"margin-right\":\"10px !important\",\"border\":\"1px solid rgb(177, 176, 176)\"}},[_c('li',{staticClass:\"pointer nav-item dropdown\"},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"width\":\"110px\",\"height\":\"38px\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('span',{staticClass:\"left\"},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('span',{staticClass:\"left\"},[_vm._v(\"AÇÕES\")])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\"},[_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.showUploadDialog}},[_c('label',{staticClass:\"pt-2\"},[_c('b',[_vm._v(\"UPLOAD CSV\")])])]),_vm._v(\" \"),_c('a',{staticClass:\"dropdown-item pointer\",attrs:{\"href\":`/recruiters/answers/${_vm.job.id}/export.csv?answered=true`,\"target\":\"_blank\"}},[_c('label',{staticClass:\"pt-2\"},[_c('b',[_vm._v(\"DOWNLOAD CANDIDATOS COM RESPOSTAS\")])])]),_vm._v(\" \"),_c('a',{staticClass:\"dropdown-item pointer\",attrs:{\"href\":`/recruiters/answers/${_vm.job.id}/export.csv`,\"target\":\"_blank\"}},[_c('label',{staticClass:\"pt-2\"},[_c('b',[_vm._v(\"DOWNLOAD CANDIDATOS SEM RESPOSTAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.showQuestionFilterDialog}},[_c('label',{staticClass:\"pt-2\"},[_c('b',[_vm._v(\"FILTRAR POR QUESTÕES\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.showSelectiveProcessFilterDialog}},[_c('label',{staticClass:\"pt-2\"},[_c('b',[_vm._v(\"FILTRAR POR PROCESSO\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.clearFilters}},[_c('label',{staticClass:\"pt-2\"},[_c('b',[_vm._v(\"LIMPAR FILTROS\")])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12 pl-0\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 mr-3 form-control-feedback\",staticStyle:{\"color\":\"#212529\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",staticStyle:{\"padding\":\"0px\"},attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchApplies.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"total_apply color-dark-purple\"},[_c('span',[_c('b',[_vm._v(_vm._s(_vm.totalApplies)+\" CANDIDATO(A)S\")])])])])]),_vm._v(\" \"),(_vm.is_admin)?_c('div',{staticClass:\"col-lg-2 col-xs-12\",staticStyle:{\"margin-top\":\"10px\"}}):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',{staticStyle:{\"width\":\"5px\"}}),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n CANDIDATO(A)S\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"applies\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n PROCESSO\\n \"),_c('OrderTable',{attrs:{\"field\":\"selective_process_id\",\"entity\":\"applies\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[_vm._v(\"\\n SALÁRIO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"remuneration_i\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px !important\"}},[_vm._v(\"\\n PERCENTUAL DE ACERTO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"point\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px !important\"}},[_vm._v(\"\\n AVALIAÇÃO POR COMPETÊNCIA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"skills_score\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n SCORE\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"rating_agg\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n CARGO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"last_role\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n Like\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"like_candidate\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n Deslike\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"deslike_candidate\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n Star\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"star_candidate\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n EMPRESA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"last_business\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n CIDADE NATAL\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"hometown\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n ETNIA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"ethnicity\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n ORIENTAÇÃO SEXUAL\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"sexual_orientation\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n PCD\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"pcd_description\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n SCORE 1\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"score_1\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n SCORE 2\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"score_2\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n SCORE 3\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"score_3\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n SCORE 4\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"score_4\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"created_at\"}})],1),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.applies),function(apply,index){return _c('tr',{key:apply.id,class:{ 'content-loading': _vm.loading }},[_c('td',{staticClass:\"center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n },staticStyle:{\"border-left\":\"1px solid #fff\"},style:({\n borderLeftColor:\n apply.tag_color != null ? apply.tag_color : '#fff',\n borderLeftWidth: '5px',\n })},[_c('CheckBox',{attrs:{\"id\":apply,\"index\":index,\"checked\":_vm.selected_ids.includes(apply.id)}})],1),_vm._v(\" \"),_c('td',{class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"d-flex flex-row\"},[_c('div',[_c('div',{staticClass:\"avatar_thumb pointer\",on:{\"click\":function($event){return _vm.show(apply.id, apply.candidate_id, index)}}},[_c('img',{attrs:{\"src\":apply.image || '/images/avatar.png'}})]),_vm._v(\" \"),(apply.status >= 1)?_c('font-awesome-icon',{staticClass:\"eye f13\",staticStyle:{\"color\":\"#666464\",\"margin-left\":\"55px\"},attrs:{\"icon\":\"eye\"}}):_vm._e(),_vm._v(\" \"),(apply.status == 0)?_c('font-awesome-icon',{staticClass:\"eye f13\",staticStyle:{\"color\":\"#b7b7b7\",\"margin-left\":\"55px\"},attrs:{\"icon\":\"eye-slash\"}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"ml-3 mt-1\"},[_vm._v(\"\\n \"+_vm._s(apply.name)),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"pt-2\"},[(apply.tag_name != null)?_c('span',{staticClass:\"f14 color-white font-weight-bold p-2\",style:(`background-color: ${ apply.tag_color || 'null' }; text-shadow: 0px 0px 3px black`)},[_vm._v(\"\\n \"+_vm._s(apply.tag_name)+\"\\n \")]):_vm._e()])])])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"block_process\",class:`process${apply.selective_process_status}`,staticStyle:{\"border-radius\":\"0px\"}},[_vm._v(\"\\n \"+_vm._s(apply.selective_process_name)+\"\\n \")]),_vm._v(\" \"),_vm._l((_vm.evaluations.filter((e) => e.selective_process_id == apply.selective_process_id)),function(evaluation,index){return _c('div',{key:`evaluation_${apply.selective_process_id}_${index}`,staticClass:\"row\"},[_c('span',{staticClass:\"f14 mt-1\",staticStyle:{\"text-align\":\"center\",\"width\":\"100%\"}},[_vm._v(\"\\n \"+_vm._s(_vm.getEvaluationName(evaluation))+\"\\n \"),_c('font-awesome-icon',{staticClass:\"color-primary\",attrs:{\"icon\":_vm.getEvaluationStatus(evaluation, apply)}})],1)])})],2),_vm._v(\" \"),(apply.remuneration != null)?_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(apply.remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n }))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(apply.remuneration === null)?_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n NÃO INFORMADO\\n \")]):_vm._e(),_vm._v(\" \"),_c('td',{staticClass:\"center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.hitsPercentage(apply))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center text-uppercase\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n },staticStyle:{\"width\":\"550px !important\"}},[_vm._v(\"\\n \"+_vm._s(apply.skills_score\n ? apply.skills_score.toFixed(2) + \"%\"\n : \"Não avaliado(a)\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('StarRating',{staticClass:\"center ajust_star\",attrs:{\"active-color\":\"#9472F8\",\"read-only\":true,\"rating\":apply.rating_agg,\"max-rating\":5,\"star-size\":20}})],1),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.last_role)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.like_candidate)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.deslike_candidate)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.star_candidate)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.last_business)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.hometown_attributes ? \n `${apply.hometown_attributes.name}/${apply.hometown_state_attributes.name}`:\n `Não definido`)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(_vm.getEthnicity(apply.ethnicity) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(_vm.getSexualOrientation(apply.sexual_orientation) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.is_pcd ? apply.pcd_description : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.score_1 ? parseFloat(apply.score_1).toFixed(2) : \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.score_2 ? parseFloat(apply.score_2).toFixed(2) : \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.score_3 ? parseFloat(apply.score_3).toFixed(2) : \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.score_4 ? parseFloat(apply.score_4).toFixed(2) : \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(apply.created_at))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"center pointer\",on:{\"click\":function($event){return _vm.show(apply.id, apply.candidate_id, index)}}},[_c('i',{staticClass:\"fas f25 color-primary fa-file-alt\"})])])])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuestionsFilter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuestionsFilter.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n Filtrar por questões\n \n \n
\n
\n
\n
\n
\n
\n \n \n {{ getText(answer, question.title) }}\n \n
\n
\n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./QuestionsFilter.vue?vue&type=template&id=071f2f8a&\"\nimport script from \"./QuestionsFilter.vue?vue&type=script&lang=js&\"\nexport * from \"./QuestionsFilter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./QuestionsFilter.vue?vue&type=style&index=0&id=071f2f8a&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container question-filter-dialog pt-3 pb-5\"},[_vm._m(0),_vm._v(\" \"),(!_vm.loading)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},_vm._l((_vm.selected_answers),function(question,index){return _c('div',{key:index},[_c('span',{domProps:{\"innerHTML\":_vm._s(question.title)}}),_vm._v(\" \"),_vm._l((question.options),function(answer,answer_index){return _c('div',{key:`answer_${answer_index}`,staticClass:\"ml-3\"},[_c('label',{attrs:{\"for\":answer.key}},[_c('input',{attrs:{\"type\":\"checkbox\",\"id\":answer.key},domProps:{\"value\":answer.key},on:{\"change\":function($event){return _vm.selectOption(answer.key)}}}),_vm._v(\"\\n \"+_vm._s(_vm.getText(answer, question.title))+\"\\n \")])])}),_vm._v(\" \"),_c('hr')],2)}),0)]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-12\"},[_c('h3',[_vm._v(\"\\n Filtrar por questões\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectiveProcessFilter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectiveProcessFilter.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n Filtrar por processo seletivo\n \n \n
\n
\n
\n \n \n {{ selective_process.name }}\n \n \n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./SelectiveProcessFilter.vue?vue&type=template&id=460273eb&scoped=true&\"\nimport script from \"./SelectiveProcessFilter.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectiveProcessFilter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SelectiveProcessFilter.vue?vue&type=style&index=0&id=460273eb&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"460273eb\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container selective-process-filter-dialog pt-5 pb-5\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selected_selective_processes),expression:\"selected_selective_processes\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selected_selective_processes=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.filterCandidates]}},_vm._l((_vm.selective_processes),function(selective_process,index){return _c('option',{key:index,domProps:{\"value\":selective_process.id}},[_vm._v(\"\\n \"+_vm._s(selective_process.name)+\"\\n \")])}),0)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('h3',[_vm._v(\"\\n Filtrar por processo seletivo\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n CANDIDATO(A)S DA VAGA\n {{ job.title }} \n \n \n
\n
\n
\n \n VISUALIZAÇÃO KANBAN \n \n\n
\n
\n
\n
\n
\n \n AÇÕES \n COMPARTILHAR \n MUDAR STATUS \n REMOVER CANDIDATO \n DOWNLOAD DOS PERFIS \n \n \n \n Mostar movidos \n \n
\n
\n
\n
\n \n \n \n \n FILTRO \n
\n \n \n
\n
\n
\n \n \n \n \n AÇÕES \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
= 1\"\n icon=\"eye\"\n class=\"eye f13\"\n style=\"color: #666464; margin-left: 55px\"\n > \n
\n
\n
\n {{ apply.name }}
\n
\n \n {{ apply.tag_name }}\n \n
\n
\n
\n \n \n \n \n {{ apply.selective_process_name }}\n
\n e.selective_process_id == apply.selective_process_id)\"\n :key=\"`evaluation_${apply.selective_process_id}_${index}`\"\n class=\"row\"\n >\n \n {{ getEvaluationName(evaluation) }}\n \n \n
\n \n \n {{\n apply.remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }}\n \n \n NÃO INFORMADO\n \n \n {{ hitsPercentage(apply) }}\n \n \n {{\n apply.skills_score\n ? apply.skills_score.toFixed(2) + \"%\"\n : \"Não avaliado(a)\"\n }}\n \n \n \n \n\n \n {{ apply.last_role }}\n \n\n \n {{ apply.like_candidate }}\n \n\n \n {{ apply.deslike_candidate }}\n \n\n \n {{ apply.star_candidate }}\n \n\n \n {{ apply.last_business }}\n \n\n \n {{ apply.hometown_attributes ? \n `${apply.hometown_attributes.name}/${apply.hometown_state_attributes.name}`:\n `Não definido`\n }}\n \n\n \n {{ getEthnicity(apply.ethnicity) || \"Não definido\" }}\n \n\n \n {{ getSexualOrientation(apply.sexual_orientation) || \"Não definido\" }}\n \n\n \n {{ apply.is_pcd ? apply.pcd_description : \"Não\" }}\n \n\n \n {{ apply.score_1 ? parseFloat(apply.score_1).toFixed(2) : \"Não definido\" }}\n \n\n \n {{ apply.score_2 ? parseFloat(apply.score_2).toFixed(2) : \"Não definido\" }}\n \n\n \n {{ apply.score_3 ? parseFloat(apply.score_3).toFixed(2) : \"Não definido\" }}\n \n\n \n {{ apply.score_4 ? parseFloat(apply.score_4).toFixed(2) : \"Não definido\" }}\n \n\n \n {{ formattedDate(apply.created_at) }}\n \n\n \n \n \n
\n \n \n \n
\n
\n \n
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=a3986be8&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('CandidateLayout',[(!_vm.isJobConcluded)?_c('div',[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row align-items-center\"},[_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"mt-3 col-lg-12 col-xs-12 center\"},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\",\"width\":\"120px\"}})])]),_vm._v(\" \"),(!_vm.isJobConcluded || _vm.job.uid != '3xw0ptkh')?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3 col-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"apper\":\"\"}},[(!_vm.step_final)?_c('StepIndicator',{staticClass:\"mt-3\",attrs:{\"defaultColor\":\"#53358b\",\"currentColor\":'#00a0d6',\"current\":_vm.setup_index,\"total\":_vm.total_steps}}):_vm._e()],1)],1)]):_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.step_register)?_c('Register',{attrs:{\"job\":_vm.job,\"selective_process\":_vm.selective_process,\"candidate_data\":_vm.candidate,\"account_uid\":_vm.account_uid,\"extra_options\":_vm.extra_options,\"apply\":_vm.apply,\"mandatory_questions\":_vm.mandatory_questions}}):_vm._e(),_vm._v(\" \"),(_vm.step_data_collect)?_c('DataCollect',{attrs:{\"selective_process_uid\":_vm.selective_process_uid}}):_vm._e(),_vm._v(\" \"),(_vm.step_historical)?_c('Experience',{attrs:{\"candidate_data\":_vm.candidate,\"job\":_vm.job}}):_vm._e(),_vm._v(\" \"),(_vm.step_confirm)?_c('ConfirmExperience',{attrs:{\"account_uid\":_vm.account_uid,\"job\":_vm.job}}):_vm._e(),_vm._v(\" \"),(_vm.step_videos)?_c('div',[((\n _vm.evaluations\n && _vm.show_evaluation\n && _vm.evaluations.length > 0\n ))?_c('div',[_c('Evaluations',{staticClass:\"mt-2\",attrs:{\"evaluations\":_vm.evaluations,\"account_uid\":_vm.account_uid,\"candidate\":_vm.candidate,\"selective_process_uid\":_vm.selective_process_uid}})],1):_vm._e(),_vm._v(\" \"),((\n _vm.step_videos && !_vm.show_evaluation\n ))?_c('Questions',{staticClass:\"mt-2\",attrs:{\"account_uid\":_vm.account_uid,\"job_questions\":_vm.questions,\"selective_process_uid\":_vm.selective_process_uid}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),(_vm.step_bigfive)?_c('div',{staticClass:\"card card-body mt-2 text-dark bg-white\",staticStyle:{\"height\":\"100%\",\"overflow\":\"scroll\",\"overflow-x\":\"hidden\"}},[_c('Bigfive',{attrs:{\"bigfive_uid\":_vm.bigfive.uid,\"candidate_uid\":_vm.candidate_uid,\"amount_itens\":_vm.bigfive.amount_itens,\"account_uid\":_vm.account_uid,\"no_next\":false}})],1):_vm._e(),_vm._v(\" \"),(_vm.step_final)?_c('Congratulation',{staticClass:\"mt-3\",attrs:{\"job\":_vm.job,\"account_uid\":_vm.account_uid,\"show\":false,\"label\":_vm.congratulation_label}}):_vm._e()],1)],1)])])]):_vm._e()])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Candidate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Candidate.vue?vue&type=script&lang=js&\"","\n \n \n\n\n\n\n","import { render, staticRenderFns } from \"./Candidate.vue?vue&type=template&id=6e7c6244&scoped=true&\"\nimport script from \"./Candidate.vue?vue&type=script&lang=js&\"\nexport * from \"./Candidate.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Candidate.vue?vue&type=style&index=0&id=6e7c6244&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6e7c6244\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.error)?_c('div',{staticClass:\"row error-container content m-0\"},[_c('div',{staticClass:\"error-text-container\"},[_c('p',{staticClass:\"error-title color-primary\"},[_vm._v(\"Ooops!\")]),_vm._v(\" \"),_c('p',{staticClass:\"error-text\"},[_vm._v(_vm._s(_vm.error.message))]),_vm._v(\" \"),_vm._m(0)])]):_c('div',[_vm._t(\"default\")],2)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('a',{staticClass:\"d-flex justify-content-center\",attrs:{\"href\":\"/\"}},[_c('div',{staticClass:\"error-button text-white full\"},[_vm._v(\"Voltar\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"","\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","import { render, staticRenderFns } from \"./New.vue?vue&type=template&id=1053b63d&\"\nimport script from \"./New.vue?vue&type=script&lang=js&\"\nexport * from \"./New.vue?vue&type=script&lang=js&\"\nimport style0 from \"./New.vue?vue&type=style&index=0&id=1053b63d&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"app\"}},[_c('h1',[_vm._v(\"Teste de carga de video\")]),_vm._v(\" \"),_c('VideoJSRecord'),_vm._v(\" \"),_vm._l((_vm.videos),function(video){return _c('div',{key:video.id,staticClass:\"block_movie\"},[_c('VideoPlayer',{attrs:{\"options\":{\n autoplay: false,\n responsive: true,\n controls: true,\n sources: [\n {\n src: video.video_path,\n type: 'video/mp4'\n }\n ]\n }}})],1)}),_vm._v(\" \"),_c('VideoPlayer',{attrs:{\"options\":{\n autoplay: false,\n responsive: true,\n controls: true,\n sources: [\n {\n src: '/a.mp4',\n type: 'video/mp4'\n }\n ]\n }}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoPlayer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoPlayer.vue?vue&type=script&lang=js&\"","\n \n \n
\n \n\n","import { render, staticRenderFns } from \"./VideoPlayer.vue?vue&type=template&id=0dd96460&\"\nimport script from \"./VideoPlayer.vue?vue&type=script&lang=js&\"\nexport * from \"./VideoPlayer.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('video',{ref:\"videoPlayer\",staticClass:\"video-js\",attrs:{\"playsinline\":\"\"}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
Teste de carga de video \n
\n\n
\n \n
\n\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=38366260&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=38366260&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Calendário\",\"menu\":\"calendario\"}},[_c('Calendar')],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n \n PESQUISAR \n \n
\n
\n
\n
\n NÃO HÁ NENHUM AGENDAMENTO PARA MOSTRAR\n \n \n
\n
\n {{ calendar.day | moment(\"ll\") }} \n
\n\n
\n \n \n \n {{ event.title }} \n {{ event.description }} \n \n {{ event.start_date | moment(\"L\") }}\n {{ event.start_date | moment(\"LT\") }} até\n {{ event.end_date | moment(\"LT\") }}\n \n \n \n {{ invited.email }}\n \n \n \n \n
\n
\n
\n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"","\n \n \n \n \n\n\n","import { render, staticRenderFns } from \"./Calendar.vue?vue&type=template&id=9b64a216&\"\nimport script from \"./Calendar.vue?vue&type=script&lang=js&\"\nexport * from \"./Calendar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-lg-10 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('Datepicker',{staticClass:\"p-0\",attrs:{\"input-class\":\"form-control\",\"placeholder\":\"Data inicial\",\"format\":_vm.customFormatter,\"language\":_vm.ptBR},model:{value:(_vm.initial_date),callback:function ($$v) {_vm.initial_date=$$v},expression:\"initial_date\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('Datepicker',{staticClass:\"p-0\",attrs:{\"input-class\":\"form-control\",\"format\":_vm.customFormatter,\"placeholder\":\"Data final\",\"language\":_vm.ptBR},model:{value:(_vm.end_date),callback:function ($$v) {_vm.end_date=$$v},expression:\"end_date\"}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-2 pl-0\"},[_c('button',{staticClass:\"btn full btn-degrade right\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.loadCalendar}},[_c('b',[_vm._v(\"PESQUISAR\")])])])]),_vm._v(\" \"),(_vm.calendars.length === 0)?_c('div',[_c('h3',{staticClass:\"center mt-5 color-grey\"},[_vm._v(\"\\n NÃO HÁ NENHUM AGENDAMENTO PARA MOSTRAR\\n \")])]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.calendars),function(calendar){return _c('div',{key:calendar.id,staticClass:\"mb-4\"},[_c('div',{staticClass:\"block_info_white p-3\"},[_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(calendar.day,\"ll\")))])]),_vm._v(\" \"),_c('table',{staticClass:\"table_jovool mt-3\"},[_vm._m(1,true),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},_vm._l((calendar.events),function(event){return _c('tr',{key:event.id,staticClass:\"center\",class:{ 'content-loading': _vm.loading }},[_c('td',[_vm._v(_vm._s(event.title))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(event.description))]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(event.start_date,\"L\"))+\"\\n \"+_vm._s(_vm._f(\"moment\")(event.start_date,\"LT\"))+\" até\\n \"+_vm._s(_vm._f(\"moment\")(event.end_date,\"LT\"))+\"\\n \")]),_vm._v(\" \"),_c('td',_vm._l((event.invited_calendars),function(invited){return _c('span',{key:invited.id,staticClass:\"f12 px-2 d-block\"},[_vm._v(\"\\n \"+_vm._s(invited.email)+\"\\n \")])}),0)])}),0)])])})],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-lg-2 col-xs-12 center\"},[_c('div',{staticClass:\"mt-1\"},[_c('span',[_c('b',[_vm._v(\"PERÍODO\")])])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"center\"},[_c('td',[_vm._v(\"Título\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"DESCRIÇÃO\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"DATA\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"CONVIDADOS\")])])])\n}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=49ed6462&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"menu\":\"Vagas\"}},[_c('div',{ref:\"row_default\",staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-7 py-2\"},[_c('h5',{staticClass:\"mr-2 font-weight-bold d-inline\"},[_vm._v(\"KANBAN DA VAGA\")]),_vm._v(\" \"),_c('h5',{staticClass:\"color-primary d-inline\",staticStyle:{\"text-transform\":\"uppercase\"}},[_vm._v(\"\\n \"+_vm._s(_vm.job.title)+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.new_column),expression:\"!new_column\"}],staticClass:\"create_column\"},[_c('button',{staticClass:\"btn full btn-primary radius-0 f13 p-2\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.enable_create_column}},[_c('span',[_vm._v(\" ADICIONAR COLUNA \")])])]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.new_column),expression:\"new_column\"}],staticClass:\"create_column\"},[_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.column_name),expression:\"column_name\"}],ref:\"column_name\",staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Nome \",\"aria-label\":\"nome da coluna\",\"aria-describedby\":\"basic-addon2\",\"autofocus\":\"\"},domProps:{\"value\":(_vm.column_name)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.createColumn.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.column_name=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-success\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.createColumn}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"check\"}})],1),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-danger\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.new_column = false}}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"times\"}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"py-2\"},[_c('inertia-link',{staticClass:\"btn right pointer mr-2 color-primary\",staticStyle:{\"margin-top\":\"-5px\"},attrs:{\"href\":`/recruiters/jobs/${_vm.job.id}/applies`,\"type\":\"button\"}},[_c('font-awesome-icon',{staticClass:\"f20\",attrs:{\"icon\":\"list-ul\"}})],1),_vm._v(\" \"),_c('button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.job_url),expression:\"job_url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"btn right pointer mr-2 color-primary\",staticStyle:{\"margin-top\":\"-5px\"},attrs:{\"type\":\"button\"}},[_c('font-awesome-icon',{staticClass:\"f20\",attrs:{\"icon\":\"link\"}})],1)],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-lg-3 col-md-4 col-xs-12\"},[_c('div',{staticClass:\"bg-aqua px-3\"},[_c('span',{staticClass:\"f30 font-weight-bold\"},[_vm._v(_vm._s(_vm.total_apply))]),_vm._v(\" \"),_c('span',{staticClass:\"f12 font-weight-bold\"},[_vm._v(\"CANDIDATOS(AS)\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-4 col-xs-12\"},[_c('div',{staticClass:\"px-3 color-white\",staticStyle:{\"background-color\":\"#241a3f\"}},[_c('span',{staticClass:\"f30 font-weight-bold\"},[_vm._v(_vm._s(_vm.total_selected))]),_vm._v(\" \"),_c('span',{staticClass:\"f12 font-weight-bold\"},[_vm._v(\"QUALIFICADOS(AS)\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-4 col-xs-12\"},[_c('div',{staticClass:\"bg-aqua px-3\"},[_c('span',{staticClass:\"f30 font-weight-bold\"},[_vm._v(_vm._s(_vm.reproved))]),_vm._v(\" \"),_c('span',{staticClass:\"f12 font-weight-bold\"},[_vm._v(\"REPROVADOS(AS)\")])])])]),_vm._v(\" \"),_c('draggable',_vm._b({staticClass:\"list-group direction_row list_block\",attrs:{\"list\":_vm.selective_processes,\"disabled\":!_vm.can_dragg,\"ghost-class\":\"ghost\"},on:{\"change\":_vm.changeColumn}},'draggable',_vm.dragOptions,false),[_c('transition-group',{ref:\"transition_div\",staticClass:\"transition_column\",style:(`width: ${_vm.width_kanban}px`),attrs:{\"type\":\"transition\",\"name\":\"flip-list\"}},_vm._l((_vm.selective_processes),function(selective_process,index){return _c('div',{key:selective_process.id,staticClass:\"column_kanban painel-candidate mr-3\",style:({ backgroundColor: _vm.background_color(selective_process) })},[_c('HeaderColumnKanban',{staticStyle:{\"text-transform\":\"uppercase\"},attrs:{\"selective_process\":selective_process,\"index\":index,\"gallery\":_vm.gallery,\"total_in_column\":_vm.applies[selective_process.position].length,\"questions\":_vm.questions[_vm.selective_processes[index].position]}}),_vm._v(\" \"),_c('draggable',_vm._b({staticClass:\"list-group\",attrs:{\"ghost-class\":\"ghost\",\"list\":_vm.applies[selective_process.position],\"group\":\"candidates\"},on:{\"change\":function($event){return _vm.moveCandidate($event, selective_process)}}},'draggable',_vm.dragOptions,false),[_c('transition-group',{staticClass:\"direction_column\",attrs:{\"type\":\"transition\",\"name\":\"flip-list\"}},_vm._l((_vm.applies[selective_process.position]),function(apply,i){return _c('div',{key:apply.id,staticClass:\"bg-white mt-2 card_candidate\",style:({\n borderRightColor: apply.tag_color,\n borderLeftWidth: 4,\n }),on:{\"click\":function($event){return _vm.show(\n apply.id,\n apply.candidate.id,\n i,\n _vm.applies[selective_process.position]\n )}}},[_c('div',{staticClass:\"img_card_block\"},[_c('img',{staticClass:\"img_card mr-1\",attrs:{\"src\":apply.image === '' ? '/images/avatar.png' : apply.image}})]),_vm._v(\" \"),_c('div',{staticClass:\"text_card\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(apply.candidate.name)+\"\\n \")]),_vm._v(\" \"),_c('StarRating',{attrs:{\"active-color\":\"#9472F8\",\"read-only\":true,\"rating\":apply.rating_agg ? apply.rating_agg : 0,\"max-rating\":5,\"star-size\":15,\"show-rating\":false}}),_vm._v(\" \"),_c('span',{staticClass:\"big-small-text\"},[_vm._v(_vm._s(apply.candidate.email))]),_vm._v(\" \"),(apply.tag_name)?_c('div',{staticClass:\"color-white center pt-1 font-weight-bold\",style:(`background-color: ${ apply.tag_color || 'null' }; text-shadow: 0px 0px 3px black; height: 23px`)},[_c('p',{staticStyle:{\"text-transform\":\"uppercase\"}},[_vm._v(\"\\n \"+_vm._s(apply.tag_name != null ? apply.tag_name : \"Sem Etiqueta\")+\"\\n \")])]):_vm._e()],1)])}),0)],1)],1)}),0)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderColumnKanban.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderColumnKanban.vue?vue&type=script&lang=js&\"","\n \n
\n
\n {{ column_name }}\n \n \n
\n\n
{{ total_in_column }} \n
\n \n \n
0\"\n class=\"mr-1 total_in_column icon_kanban_blue\"\n >\n \n \n
\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./HeaderColumnKanban.vue?vue&type=template&id=50145300&\"\nimport script from \"./HeaderColumnKanban.vue?vue&type=script&lang=js&\"\nexport * from \"./HeaderColumnKanban.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.edit),expression:\"!edit\"}],staticClass:\"header_column\",on:{\"mouseover\":function($event){_vm.pencil = true},\"mouseleave\":function($event){_vm.pencil = false},\"dblclick\":_vm.enableEditColumn}},[_c('b',{staticClass:\"color-grey-primary pointer\"},[_vm._v(\"\\n \"+_vm._s(_vm.column_name)+\"\\n \"),_c('font-awesome-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pencil),expression:\"pencil\"}],staticClass:\"dark_grey\",attrs:{\"icon\":\"pencil-alt\"},on:{\"click\":function($event){_vm.edit = true}}})],1),_vm._v(\" \"),_c('div',{staticClass:\"nav menu_column nav-tabs right\",staticStyle:{\"border\":\"none\"}},[_c('li',{staticClass:\"nav-item dropdown\"},[_c('a',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"transparent !important\",\"border\":\"none\"},attrs:{\"data-toggle\":\"dropdown\",\"href\":\"#\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{staticClass:\"dark_grey\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\"},[(_vm.selective_process.status != 1)?_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.removeColumn}},[_vm._v(\"\\n Deletar coluna\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\",on:{\"click\":_vm.editFeedback}},[_vm._v(\"\\n Editar Feedback\\n \")])])])]),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.pencil),expression:\"!pencil\"}],staticClass:\"total_in_column radius-0\",staticStyle:{\"background-color\":\"rgb(36, 26, 63) !important\"}},[_vm._v(_vm._s(_vm.total_in_column))]),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selective_process.feedback),expression:\"selective_process.feedback\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"video\"}})],1),_vm._v(\" \"),_c('b',{directives:[{name:\"show\",rawName:\"v-show\",value:((_vm.selective_process.field_mapping_ids || []).length > 0),expression:\"(selective_process.field_mapping_ids || []).length > 0\"}],staticClass:\"mr-1 total_in_column icon_kanban_blue\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"database\"}})],1)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.edit),expression:\"edit\"}]},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.column_name),expression:\"column_name\"}],ref:\"column_name\",staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.column_name)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.changeName.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.column_name=$event.target.value}}})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n
KANBAN DA VAGA \n \n {{ job.title }}\n \n \n
\n
\n \n ADICIONAR COLUNA \n \n
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n \n
\n
\n {{ total_apply }} \n CANDIDATOS(AS) \n
\n
\n
\n
\n {{ total_selected }} \n QUALIFICADOS(AS) \n
\n
\n
\n
\n {{ reproved }} \n REPROVADOS(AS) \n
\n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n {{ apply.candidate.name }}\n \n
\n\n
{{\n apply.candidate.email\n }} \n
\n
\n {{\n apply.tag_name != null ? apply.tag_name : \"Sem Etiqueta\"\n }}\n
\n
\n
\n
\n \n \n
\n \n \n \n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=a2a4cdf2&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('limitedlayout',[_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 text-truncate\",staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h5',{staticClass:\"label-bold\"},[_vm._v(\"\\n CANDIDATO(A)S DA VAGA\\n \"),_c('span',{staticStyle:{\"color\":\"#8f66fe\"}},[_vm._v(_vm._s(_vm.job.title))])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('inertia-link',{staticClass:\"color-primary\",attrs:{\"href\":`/recruiters/limited_jobs/${_vm.job.id}/kanban`}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"max-height\":\"30px\",\"max-width\":\"200px\",\"font-size\":\"12px\"}},[_vm._v(\"KANBAN\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":'/recruiters/jobs/'+_vm.job.id+'/applies/export.csv'}},[_c('button',{staticClass:\"btn btn-success f10\",attrs:{\"type\":\"button\"}},[_vm._v(\"DOWNLOAD CSV\")])]),_vm._v(\" \"),_c('a',{attrs:{\"target\":\"_blank\",\"href\":'/recruiters/jobs/'+_vm.job.id+'/applies/export_evaluations.csv'}},[_c('button',{staticClass:\"btn btn-success mt-2 f10\",attrs:{\"type\":\"button\"}},[_vm._v(\"DOWNLOAD CSV PROVA\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12 p-0\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.action),expression:\"action\"}],staticClass:\"form-control f14\",attrs:{\"disabled\":!_vm.selected.length},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.action=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changeAction]}},[_c('option',{attrs:{\"disabled\":\"\",\"value\":\"0\"}},[_vm._v(\"AÇÕES\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"1\"}},[_vm._v(\"COMPARTILHAR\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"MUDAR STATUS\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"REMOVER CANDIDATO\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"4\"}},[_vm._v(\"DOWNLOAD DOS PERFIS\")])]),_vm._v(\" \"),_c('label',{staticClass:\"pt-2 position-absolut-top\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visibility),expression:\"visibility\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.visibility)?_vm._i(_vm.visibility,null)>-1:(_vm.visibility)},on:{\"change\":function($event){var $$a=_vm.visibility,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.visibility=$$a.concat([$$v]))}else{$$i>-1&&(_vm.visibility=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.visibility=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"Mostar movidos\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3\"},[_c('div',{staticClass:\"nav filter-box-applie\",staticStyle:{\"width\":\"95px\",\"height\":\"38px\",\"margin-right\":\"10px !important\",\"border\":\"1px solid rgb(177, 176, 176)\"}},[_c('li',{staticClass:\"pointer nav-item dropdown\"},[_c('div',{staticClass:\"nav-link f12\",staticStyle:{\"width\":\"110px\",\"height\":\"38px\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('span',{staticClass:\"left\"},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"ellipsis-v\"}})],1),_vm._v(\" \"),_c('span',{staticClass:\"left\"},[_vm._v(\"FILTRO\")])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu f10\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visibility),expression:\"visibility\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.visibility)?_vm._i(_vm.visibility,null)>-1:(_vm.visibility)},on:{\"change\":function($event){var $$a=_vm.visibility,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.visibility=$$a.concat([$$v]))}else{$$i>-1&&(_vm.visibility=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.visibility=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S REMOVIDOS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.complete_videos),expression:\"complete_videos\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.complete_videos)?_vm._i(_vm.complete_videos,null)>-1:(_vm.complete_videos)},on:{\"change\":function($event){var $$a=_vm.complete_videos,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.complete_videos=$$a.concat([$$v]))}else{$$i>-1&&(_vm.complete_videos=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.complete_videos=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S COM VÍDEO\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('label',{staticClass:\"pt-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.curriculum),expression:\"curriculum\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.curriculum)?_vm._i(_vm.curriculum,null)>-1:(_vm.curriculum)},on:{\"change\":function($event){var $$a=_vm.curriculum,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.curriculum=$$a.concat([$$v]))}else{$$i>-1&&(_vm.curriculum=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.curriculum=$$c}}}}),_vm._v(\" \"),_c('b',[_vm._v(\"CANDIDATO(A)S COM CURRICULUM\")])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12 pl-0\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 mr-3 form-control-feedback\",staticStyle:{\"color\":\"#212529\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",staticStyle:{\"padding\":\"0px\"},attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchApplies.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"total_apply color-dark-purple f12\"},[_c('span',[_c('b',[_vm._v(_vm._s(_vm.totalApplies)+\" CANDIDATO(A)S\")])])])])]),_vm._v(\" \"),(_vm.is_admin)?_c('div',{staticClass:\"col-lg-2 col-xs-12\",staticStyle:{\"margin-top\":\"10px\"}}):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table mt-3 f12\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',{staticStyle:{\"width\":\"5px\"}}),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"400px\"}},[_vm._v(\"\\n CANDIDATO(A)S\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"applies\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['selective_process_name'],\"name\":\"STATUS\",\"entity\":\"applies\",\"field\":\"selective_process_name\",\"width\":\"200px\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n E-MAIL\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"email\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n TELEFONE\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"date_birth\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n NASCIMENTO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"date_birth\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"250px !important\"}},[_vm._v(\"\\n TESTE\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"point\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['last_role'],\"name\":\"CARGO\",\"entity\":\"applies\",\"field\":\"last_role\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['last_business'],\"name\":\"EMPRESA\",\"entity\":\"applies\",\"field\":\"last_business\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['hometown'],\"name\":\"CIDADE NATAL\",\"entity\":\"applies\",\"field\":\"hometown\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['city'],\"name\":\"CIDADE ATUAL\",\"entity\":\"applies\",\"field\":\"city\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['ethnicity'],\"name\":\"ETNIA\",\"entity\":\"applies\",\"field\":\"ethnicity\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n GÊNERO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"gender\"}})],1),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"300px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['sexual_orientation'],\"name\":\"ORIENTAÇÃO SEXUAL\",\"entity\":\"applies\",\"field\":\"sexual_orientation\",\"width\":\"300px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['is_pcd'],\"name\":\"PCD\",\"entity\":\"applies\",\"field\":\"is_pcd\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"400px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['been_creditsuisse'],\"name\":\"JÁ TRABALHOU NA CREDIT SUISSE?\",\"entity\":\"applies\",\"field\":\"been_creditsuisse\",\"width\":\"400px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"350px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['current_creditsuisse'],\"name\":\"TRABALHA NA CREDIT SUISSE?\",\"entity\":\"applies\",\"field\":\"current_creditsuisse\",\"width\":\"350px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"350px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['source'],\"name\":\"COMO FICOU SABENDO?\",\"entity\":\"applies\",\"field\":\"source\",\"width\":\"300px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"250px\"}},[_vm._v(\"\\n DATA DE INSCRIÇÃO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"created_at\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['languages'],\"name\":\"Idiomas\",\"entity\":\"applies\",\"field\":\"languages\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['company_names'],\"name\":\"Empresas\",\"entity\":\"applies\",\"field\":\"company_names\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['occupation_names'],\"name\":\"Cargos\",\"entity\":\"applies\",\"field\":\"occupation_names\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['institution_names'],\"name\":\"Instituições\",\"entity\":\"applies\",\"field\":\"institution_names\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['study_area_names'],\"name\":\"Formações\",\"entity\":\"applies\",\"field\":\"study_area_names\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"250px\"}},[(_vm.applies.length > 0)?_c('div',[_c('HeaderAgg',{attrs:{\"aggs\":_vm.aggs['formation_type'],\"name\":\"Tipo de curso\",\"entity\":\"applies\",\"field\":\"formation_type\",\"width\":\"200px\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td'),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.applies),function(apply,index){return _c('tr',{key:apply.id,class:{ 'content-loading': _vm.loading }},[_c('td',{class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n },staticStyle:{\"border-left\":\"1px solid #fff\"},style:({\n borderLeftColor:\n apply.tag_color != null ? apply.tag_color : '#fff',\n borderLeftWidth: '5px',\n })},[_c('CheckBox',{attrs:{\"id\":apply,\"index\":index,\"checked\":_vm.selected_ids.includes(apply.id)}})],1),_vm._v(\" \"),_c('td',{class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"d-flex flex-row\"},[_c('div',[_c('div',{staticClass:\"avatar_thumb pointer\",on:{\"click\":function($event){return _vm.show(apply.id, apply.candidate_id, index)}}},[_c('img',{attrs:{\"src\":apply.image || '/images/avatar.png'}})]),_vm._v(\" \"),(apply.status >= 1)?_c('font-awesome-icon',{staticClass:\"eye f11\",staticStyle:{\"color\":\"#666464\",\"margin-left\":\"55px\"},attrs:{\"icon\":\"eye\"}}):_vm._e(),_vm._v(\" \"),(apply.status == 0)?_c('font-awesome-icon',{staticClass:\"eye f11\",staticStyle:{\"color\":\"#b7b7b7\",\"margin-left\":\"55px\"},attrs:{\"icon\":\"eye-slash\"}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"ml-3 mt-1\"},[_vm._v(\"\\n \"+_vm._s(apply.name)),_c('br'),_vm._v(\" \"),(apply.tag_name != null)?_c('span',{staticClass:\"f10\"},[_c('i',{staticClass:\"fas fa-user-tag color-primary pr-1\"}),_vm._v(\"\\n \"+_vm._s(apply.tag_name)+\"\\n \")]):_vm._e()])])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"block_process\",class:`process${apply.selective_process_status}`,staticStyle:{\"border-radius\":\"0px\"}},[_vm._v(\"\\n \"+_vm._s(apply.selective_process_name)+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.email ? apply.email : 'Não informado')+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.mobile_phone ? apply.mobile_phone : 'Não informado')+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(apply.date_birth))+\"\\n \")]),_vm._v(\" \"),_c('td',{class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.hitsPercentage(apply))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.last_role)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.last_business)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.hometown_attributes ? \n `${apply.hometown_attributes.name}/${apply.hometown_state_attributes.name}`:\n `Não definido`)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.city_attributes ? \n `${apply.city_attributes.name}/${apply.state_attributes.name}`:\n `Não definido`)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.getEthnicity(apply.ethnicity) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.getGender(apply.gender) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.getSexualOrientation(apply.sexual_orientation) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.is_pcd ? apply.pcd_description : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.been_creditsuisse ? 'Sim' : 'Não')+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.current_creditsuisse ? 'Sim' : 'Não')+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(apply.source ? apply.source : 'Não informado')+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(apply.created_at))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},_vm._l((apply.languages),function(lang){return _c('span',{key:apply.id+lang,staticClass:\"chip\"},[_vm._v(\"\\n \"+_vm._s(lang)+\"\\n \")])}),0),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},_vm._l((apply.company_names),function(company,index){return _c('span',{key:apply.id+company+index,staticClass:\"chip\"},[_vm._v(\"\\n \"+_vm._s(company)+\"\\n \")])}),0),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},_vm._l((apply.occupation_names),function(occupation,index){return _c('span',{key:apply.id+occupation+index,staticClass:\"chip\"},[_vm._v(\"\\n \"+_vm._s(occupation)+\"\\n \")])}),0),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},_vm._l((apply.institution_names),function(institution){return _c('span',{key:apply.id+institution,staticClass:\"chip\"},[_vm._v(\"\\n \"+_vm._s(institution)+\"\\n \")])}),0),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},_vm._l((apply.study_area_names),function(study_area,index){return _c('span',{key:apply.id+study_area+index,staticClass:\"chip\"},[_vm._v(\"\\n \"+_vm._s(study_area)+\"\\n \")])}),0),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},_vm._l((apply.formation_type),function(formation,index){return _c('span',{key:apply.id+formation+index,staticClass:\"chip\"},[_vm._v(\"\\n \"+_vm._s(formation)+\"\\n \")])}),0),_vm._v(\" \"),_c('td',{staticClass:\"pt-3\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"pointer\",on:{\"click\":function($event){return _vm.show(apply.id, apply.candidate_id, index)}}},[_c('i',{staticClass:\"fas f25 color-primary fa-file-alt\"})])]),_vm._v(\" \"),_c('td',{class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('a',{staticClass:\"color-primary\",attrs:{\"target\":\"_blank\",\"href\":`/recruiters/applies/${apply.id}/download.pdf`,\"download\":\"\"}},[_c('i',{staticClass:\"fa f25 color-primary fa-file-pdf\",attrs:{\"aria-hidden\":\"true\"}})])])])}),_vm._v(\" \"),_c('div',{staticClass:\"position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderAgg.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderAgg.vue?vue&type=script&lang=js&\"","\n \n \n\n","import { render, staticRenderFns } from \"./HeaderAgg.vue?vue&type=template&id=bed06bfe&\"\nimport script from \"./HeaderAgg.vue?vue&type=script&lang=js&\"\nexport * from \"./HeaderAgg.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"header_table center_block\",style:(`width: ${_vm.width} !important`)},[_c('div',{staticClass:\"pointer\",on:{\"click\":_vm.openMenu}},[_vm._v(\"\\n \"+_vm._s(_vm.name)+\"\\n \\n \")]),_vm._v(\" \"),(_vm.state.openWindow == this.field)?_c('div',{staticClass:\"card block_filter\",staticStyle:{\"width\":\"max-content\",\"max-width\":\"500px\"}},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"card-body pt-1\"},[_vm._l((_vm.aggs.buckets),function(agg){return _c('div',{key:agg['key']},[_c('label',{attrs:{\"for\":agg['key']}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filter_data),expression:\"filter_data\"}],attrs:{\"type\":\"checkbox\",\"id\":agg['key']},domProps:{\"value\":agg['key'],\"checked\":Array.isArray(_vm.filter_data)?_vm._i(_vm.filter_data,agg['key'])>-1:(_vm.filter_data)},on:{\"change\":function($event){var $$a=_vm.filter_data,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=agg['key'],$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.filter_data=$$a.concat([$$v]))}else{$$i>-1&&(_vm.filter_data=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.filter_data=$$c}}}}),_vm._v(\"\\n (\"+_vm._s(agg['doc_count'])+\") \"+_vm._s(agg['key'])+\"\\n \")])}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search_text),expression:\"search_text\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search_text)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.filter.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search_text=$event.target.value}}}),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-small mt-1 btn-danger right\",on:{\"click\":_vm.removefilter}},[_vm._v(\"\\n Limpar\\n \")])],2)]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"f14 card-header\"},[_c('label',{staticClass:\"f14\"},[_vm._v(\"Filtro\")])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n CANDIDATO(A)S DA VAGA\n {{ job.title }} \n \n \n
\n
\n \n KANBAN \n \n\n
\n
\n
\n
\n
\n \n AÇÕES \n COMPARTILHAR \n MUDAR STATUS \n REMOVER CANDIDATO \n DOWNLOAD DOS PERFIS \n \n \n \n Mostar movidos \n \n
\n
\n
\n
\n \n \n \n \n FILTRO \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
= 1\"\n icon=\"eye\"\n class=\"eye f11\"\n style=\"color: #666464; margin-left: 55px\"\n > \n
\n
\n
\n {{ apply.name }} \n \n \n {{ apply.tag_name }}\n \n
\n
\n \n \n \n \n {{ apply.selective_process_name }}\n
\n \n\n \n {{ apply.email ? apply.email : 'Não informado' }}\n \n\n \n {{ apply.mobile_phone ? apply.mobile_phone : 'Não informado' }}\n \n\n \n {{ formattedDate(apply.date_birth) }}\n \n \n \n {{ hitsPercentage(apply) }}\n \n\n \n {{ apply.last_role }}\n \n\n \n {{ apply.last_business }}\n \n\n \n {{ apply.hometown_attributes ? \n `${apply.hometown_attributes.name}/${apply.hometown_state_attributes.name}`:\n `Não definido`\n }}\n \n\n \n {{ apply.city_attributes ? \n `${apply.city_attributes.name}/${apply.state_attributes.name}`:\n `Não definido`\n }}\n \n\n \n {{ getEthnicity(apply.ethnicity) || \"Não definido\" }}\n \n\n \n {{ getGender(apply.gender) || \"Não definido\" }}\n \n\n \n {{ getSexualOrientation(apply.sexual_orientation) || \"Não definido\" }}\n \n\n \n {{ apply.is_pcd ? apply.pcd_description : \"Não\" }}\n \n \n \n {{ apply.been_creditsuisse ? 'Sim' : 'Não' }}\n \n\n \n {{ apply.current_creditsuisse ? 'Sim' : 'Não' }}\n \n\n \n {{ apply.source ? apply.source : 'Não informado' }}\n \n\n \n {{ formattedDate(apply.created_at) }}\n \n\n \n \n {{ lang }}\n \n \n \n\n \n \n {{ company }}\n \n \n \n\n \n \n {{ occupation }}\n \n \n\n \n \n {{ institution }}\n \n \n\n \n \n {{ study_area }}\n \n \n\n \n \n {{ formation }}\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","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3cf556e2&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=3cf556e2&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AdminLive',{attrs:{\"admin\":this.recruiter}},[_c('div',{staticStyle:{\"height\":\"100vh\"},attrs:{\"id\":\"meet\"}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdminLive.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdminLive.vue?vue&type=script&lang=js&\"","\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","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n
\n \n \n\n\n","import { render, staticRenderFns } from \"./AdminLive.vue?vue&type=template&id=2d018d77&\"\nimport script from \"./AdminLive.vue?vue&type=script&lang=js&\"\nexport * from \"./AdminLive.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.admin)?_c('div',[_vm._t(\"default\")],2):_vm._e(),_vm._v(\" \"),(_vm.admin)?_c('div',[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 hide no_padding_left shadow_bar_right pt-4 col-md-2 col-xs-12 bg_menu full_height\"},[_vm._m(1),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Dashboard\",\"url\":\"/recruiters/dashboard\",\"img\":\"/images/DASHBOARD_ICON.png\",\"img_active\":\"/images/DASHBOARD_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Vagas\",\"url\":\"/recruiters/jobs\",\"img\":\"/images/VAGA_ICON.png\",\"img_active\":\"/images/VAGA_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Videos\",\"url\":\"/recruiters/videos\",\"img\":\"/images/VIDEOS_ICON.png\",\"img_active\":\"/images/VIDEOS_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Live\",\"url\":\"/recruiters/rooms\",\"img\":\"/images/LIVE_ICON.png\",\"img_active\":\"/images/LIVE_COLOR_ICON.png\",\"active\":\"Live\"}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Pagamentos\",\"url\":\"#\",\"img\":\"/images/PAGAMENTOS_ICON.png\",\"img_active\":\"/images/PAGAMENTOS_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Integrações\",\"url\":\"#\",\"img\":\"/images/INTEGRACOES_ICON.png\",\"img_active\":\"/images/INTEGRACOES_COLOR_ICON.png\",\"active\":_vm.menu}}),_vm._v(\" \"),_c('MenuAdminItem',{attrs:{\"label\":\"Configuraçoes\",\"url\":\"#\",\"img\":\"/images/CONFIGURAÇOES_ICON.png\",\"img_active\":\"/images/CONFIGURAÇOES_COLOR_ICON.png\",\"active\":_vm.menu}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-md-2 col-xs-12 pr-0 pl-0\"},[_vm._t(\"default\")],2)])])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('header',{staticClass:\"u-header--starter\",attrs:{\"id\":\"header\"}},[_c('nav',{staticClass:\"navbar navbar-dark lex-nowrap p-0\",staticStyle:{\"background-color\":\"#fff\"},attrs:{\"id\":\"logoAndNav\"}})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-xl-2 col-md-2 center col-lg-2 mr-0 py-3 pf-5\"},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\",\"width\":\"120px\"}})])\n}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=773cd532&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AdminLayout',{attrs:{\"title\":\"Dashboard\",\"menu\":\"Dashboard\",\"customStyle\":{ backgroundColor: '#fcfcfc' }}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('img',{attrs:{\"src\":\"/images/mappit.png\",\"width\":\"140px\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-3\"},[_vm._v(\"\\n Data Atual: \"+_vm._s(_vm.current_date)+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\",staticStyle:{\"text-align\":\"right\"}},[_c('a',{attrs:{\"href\":\"/recruiters/export_corteva.csv\"}},[_c('button',{staticClass:\"btn btn-primary mr-4\"},[_vm._v(\"\\n Download candidatos\\n \")])]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary mr-4\",on:{\"click\":_vm.generateReport}},[_vm._v(\"\\n Download relatório\\n \")]),_vm._v(\" \"),_c('img',{attrs:{\"src\":\"/images/corteva.png\",\"width\":\"200px\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table\"},[_c('tr',[_c('td',[_vm._v(\"\\n SUMMARY\\n \")]),_vm._v(\" \"),_c('td'),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Total de candidatos inscritos\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Candidatos internos\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Candidatos inscritos do processo anterior\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Mulheres\\n \")])]),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"\\n Oeste\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Allyado / Personali*\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_oeste)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_internal_oeste)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_oeste_old)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.woman_oeste)+\"\\n (\"+_vm._s(((_vm.woman_oeste * 100 ) / _vm.candidate_oeste).toFixed(2))+\"%)\\n \")])]),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"\\n Centro Norte\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Allyado\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_internal_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_centro_norte_old)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.woman_centro_norte)+\"\\n\\n (\"+_vm._s(((_vm.woman_centro_norte * 100 ) / _vm.candidate_centro_norte).toFixed(2))+\"%)\\n \")])]),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"\\n Brasil\\n \")]),_vm._v(\" \"),_c('td'),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_oeste + _vm.candidate_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_internal_oeste + _vm.candidate_internal_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_centro_norte_old + _vm.candidate_oeste_old)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.woman_centro_norte + _vm.woman_oeste)+\"\\n (\"+_vm._s((((_vm.woman_centro_norte + _vm.woman_oeste) * 100 ) / (_vm.candidate_centro_norte+_vm.candidate_oeste)).toFixed(2))+\"%)\\n \")])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3 hide\"},[_c('div',{staticClass:\"col-lg-3\"},[_c('div',{staticClass:\"bg-aqua py-3 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.amount_apply))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"\\n Total de candidatos\\n \")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"ENGAJAMENTO DE CANDIDATOS(AS)\")]),_vm._v(\" \"),_c('Graph',{staticClass:\"mt-2\",attrs:{\"getFrom\":\"/recruiters/applies_corteva\",\"height\":200}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"CANDIDATOS POR GÊNERO\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-5\",staticStyle:{\"text-align\":\"right\"}},[_c('p',{staticClass:\"mt-4\"},[_vm._v(\"Homens - \"+_vm._s(( (_vm.gender_amount[0] * 100) / _vm.gender_total).toFixed(2))+\"%\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Mulheres - \"+_vm._s(((_vm.gender_amount[1] * 100) / _vm.gender_total).toFixed(2))+\"%\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Transgeneros - \"+_vm._s(((_vm.gender_amount[2] * 100) / _vm.gender_total).toFixed(2))+\"%\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Não quer identificar - \"+_vm._s(((_vm.gender_amount[3] * 100) / _vm.gender_total).toFixed(2))+\"%\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"},[_c('DoughnutChart',{attrs:{\"chart-data\":_vm.chartData,\"options\":_vm.options}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 hide\"},[_c('div',{staticClass:\"bg-aqua py-3 mt-4 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.old_candidates))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"\\n CANDIDATOS PROCESSO ANTERIOR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"bg-aqua py-3 mt-4 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.candidate_work_corteva))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"\\n CANDIDATOS INTERNOS\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"bg-aqua py-3 mt-4 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.candidate_centro_norte))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"\\n Centro-Norte (PI MA TO PA BA GO DF)\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"bg-aqua py-3 mt-4 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.candidate_oeste))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"\\n Oeste (MT MS RO)\\n \")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"CANDIDATOS POR ESTADO/CIDADE\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_vm._l((_vm.candidate_states),function(candidate_state,index){return [(candidate_state.state_uf != null)?_c('div',{key:candidate_state.state_uf,staticClass:\"col-lg-3\"},[_vm._v(\"\\n \"+_vm._s(candidate_state.state_name)+\" ( \"+_vm._s(candidate_state.amount)+\" )\\n \"),_c('table',{staticClass:\"table\",staticStyle:{\"font-size\":\"10px !important\"}},[_vm._l((_vm.candidate_cities),function(candidate_city,index){return [( candidate_state.state_uf ==candidate_city.state_uf)?_c('tr',{key:candidate_city.city_name,staticClass:\"p-0 m-0\",staticStyle:{\"padding\":\"0px !important\"}},[_c('td',{staticClass:\"p-0 m-0\",staticStyle:{\"padding\":\"0px !important\"}},[_vm._v(\"\\n \"+_vm._s(candidate_city.city_name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"p-0 m-0\",staticStyle:{\"padding\":\"0px !important\"}},[_vm._v(\"\\n \"+_vm._s(candidate_city.amount)+\"\\n \")])]):_vm._e()]})],2)]):_vm._e()]})],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"CANDIDATOS INTERNOS\")]),_vm._v(\" \"),_c('table',{staticClass:\"table\",staticStyle:{\"font-size\":\"9px\"}},[_c('tr',[_c('td',[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Email\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Telefone\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Cidade\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Empresa\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Cargo\")])]),_vm._v(\" \"),_vm._l((_vm.candidate_work_corteva_list),function(candidate){return _c('tr',{key:candidate.id},[_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.name)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.email)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.mobile_phone)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.city_name)+\"/\"+_vm._s(candidate.state_uf)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.last_business)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.last_role)+\"\\n \")])])})],2)])])]),_vm._v(\" \"),_c('vue-html2pdf',{ref:\"html2Pdf\",attrs:{\"show-layout\":false,\"float-layout\":true,\"enable-download\":true,\"preview-modal\":true,\"paginate-elements-by-height\":1500,\"filename\":\"corteva\",\"pdf-quality\":5,\"manual-pagination\":false,\"pdf-format\":\"a4\",\"pdf-orientation\":\"portrait\",\"pdf-content-width\":\"760px\"},on:{\"hasStartedGeneration\":function($event){return _vm.hasStartedGeneration()},\"hasGenerated\":function($event){return _vm.hasGenerated($event)}}},[_c('section',{attrs:{\"slot\":\"pdf-content\"},slot:\"pdf-content\"},[_c('section',{staticClass:\"pdf-item pl-4 pr-4 pt-5\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-7\"},[_c('img',{attrs:{\"src\":\"/images/mappit.png\",\"width\":\"140px\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-3\"},[_vm._v(\"\\n Data Atual: \"+_vm._s(_vm.current_date)+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5\",staticStyle:{\"text-align\":\"right\"}},[_c('img',{attrs:{\"src\":\"/images/corteva.png\",\"width\":\"200px\"}})])])]),_vm._v(\" \"),_c('section',{staticClass:\"pdf-item pl-4 pr-4\"},[_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table\"},[_c('tr',[_c('td',[_vm._v(\"\\n SUMMARY\\n \")]),_vm._v(\" \"),_c('td'),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Total de candidatos inscritos\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Candidatos internos\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Candidatos inscritos do processo anterior\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Mulheres\\n \")])]),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"\\n Oeste\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Allyado / Personali*\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_oeste)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_internal_oeste)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_oeste_old)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.woman_oeste)+\"\\n (\"+_vm._s(((_vm.woman_oeste * 100 ) / _vm.candidate_centro_norte).toFixed(2))+\"%)\\n \")])]),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"\\n Centro Norte\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Allyado\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_internal_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_centro_norte_old)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.woman_centro_norte)+\"\\n\\n (\"+_vm._s(((_vm.woman_centro_norte * 100 ) / _vm.candidate_centro_norte).toFixed(2))+\"%)\\n \")])]),_vm._v(\" \"),_c('tr',[_c('td',[_vm._v(\"\\n Brasil\\n \")]),_vm._v(\" \"),_c('td'),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_oeste + _vm.candidate_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_internal_oeste + _vm.candidate_internal_centro_norte)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.candidate_centro_norte_old + _vm.candidate_oeste_old)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.woman_centro_norte + _vm.woman_oeste)+\"\\n (\"+_vm._s((((_vm.woman_centro_norte + _vm.woman_oeste) * 100 ) / (_vm.candidate_centro_norte+_vm.candidate_oeste)).toFixed(2))+\"%)\\n \")])])])])])]),_vm._v(\" \"),_c('section',{staticClass:\"pdf-item pl-4 pr-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"ENGAJAMENTO DE CANDIDATOS(AS)\")]),_vm._v(\" \"),_c('Graph',{staticClass:\"mt-2\",attrs:{\"getFrom\":\"/recruiters/applies_corteva\",\"height\":200}})],1)])])]),_vm._v(\" \"),_c('section',{staticClass:\"pdf-item pl-4 pr-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"CANDIDATOS POR GÊNERO\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-5\",staticStyle:{\"text-align\":\"right\"}},[_c('p',{staticClass:\"mt-4\"},[_vm._v(\"Homens - \"+_vm._s(((_vm.gender_amount[0] * 100) / _vm.gender_total).toFixed(2))+\"%\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Mulheres - \"+_vm._s(((_vm.gender_amount[1] * 100) / _vm.gender_total).toFixed(2))+\"%\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Transgêneros - \"+_vm._s(((_vm.gender_amount[2] * 100) / _vm.gender_total).toFixed(2))+\"%\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Não quer identificar - \"+_vm._s(((_vm.gender_amount[3] * 100) / _vm.gender_total).toFixed(2))+\"%\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"},[_c('DoughnutChart',{attrs:{\"chart-data\":_vm.chartData,\"options\":_vm.options}})],1)])])])])]),_vm._v(\" \"),_c('section',{staticClass:\"pdf-item pl-4 pr-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"CANDIDATOS POR ESTADO/CIDADE\")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_vm._l((_vm.candidate_states),function(candidate_state,index){return [(candidate_state.state_uf != null)?_c('div',{key:candidate_state.state_uf,staticClass:\"col-lg-3\"},[_c('span',{staticStyle:{\"font-size\":\"11px !important\"}},[_vm._v(\"\\n \"+_vm._s(candidate_state.state_name)+\" ( \"+_vm._s(candidate_state.amount)+\" )\\n \")]),_vm._v(\" \"),_c('table',{staticClass:\"table\",staticStyle:{\"font-size\":\"9px\"}},[_vm._l((_vm.candidate_cities),function(candidate_city){return [( candidate_state.state_uf ==candidate_city.state_uf)?_c('tr',{key:candidate_city.city_name,staticClass:\"p-0 m-0\",staticStyle:{\"padding\":\"0px !important\"}},[_c('td',{staticClass:\"p-0 m-0\",staticStyle:{\"padding\":\"0px !important\"}},[_vm._v(\"\\n \"+_vm._s(candidate_city.city_name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"p-0 m-0\",staticStyle:{\"padding\":\"0px !important\"}},[_vm._v(\"\\n \"+_vm._s(candidate_city.amount)+\"\\n \")])]):_vm._e()]})],2)]):_vm._e()]})],2)])])])]),_vm._v(\" \"),_c('section',{staticClass:\"pdf-item pl-4 pr-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"CANDIDATOS INTERNOS\")]),_vm._v(\" \"),_c('table',{staticClass:\"table\",staticStyle:{\"font-size\":\"9px\"}},[_c('tr',[_c('td',[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Email\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Telefone\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Cidade\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Empresa\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Cargo\")]),_vm._v(\" \"),_c('td',[_vm._v(\"Vaga\")])]),_vm._v(\" \"),_vm._l((_vm.candidate_internal_oeste),function(candidate){return _c('tr',{key:candidate.id},[_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.name)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.email)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.mobile_phone)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.city_name)+\"/\"+_vm._s(candidate.state_uf)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.last_business)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.last_role)+\"\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(candidate.job_title)+\"\\n \")])])})],2)])])])])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DoughnutChart.vue?vue&type=script&lang=js&\"","\n","var render, staticRenderFns\nimport script from \"./DoughnutChart.vue?vue&type=script&lang=js&\"\nexport * from \"./DoughnutChart.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n \n \n
\n
\n
\n Data Atual: {{current_date}}\n \n
\n
\n
\n \n
\n
\n \n \n SUMMARY\n \n \n\n \n \n Total de candidatos inscritos\n \n \n Candidatos internos\n \n \n Candidatos inscritos do processo anterior\n \n \n Mulheres\n \n \n \n \n Oeste\n \n \n Allyado / Personali*\n \n \n {{candidate_oeste}}\n \n \n \n \n {{candidate_internal_oeste}}\n \n \n {{ candidate_oeste_old }}\n \n \n \n {{ woman_oeste }}\n ({{ ((woman_oeste * 100 ) / candidate_oeste).toFixed(2)}}%)\n \n \n \n \n \n \n Centro Norte\n \n \n Allyado\n \n \n \n {{candidate_centro_norte}}\n \n \n {{candidate_internal_centro_norte}}\n \n \n \n {{ candidate_centro_norte_old }}\n \n \n \n {{ woman_centro_norte }}\n\n ({{ ((woman_centro_norte * 100 ) / candidate_centro_norte).toFixed(2)}}%)\n \n \n \n \n \n \n Brasil\n \n \n\n \n \n {{candidate_oeste + candidate_centro_norte}}\n \n \n \n {{candidate_internal_oeste + candidate_internal_centro_norte}}\n \n \n \n {{ candidate_centro_norte_old + candidate_oeste_old }}\n \n \n \n {{ woman_centro_norte + woman_oeste }}\n ({{ (((woman_centro_norte + woman_oeste) * 100 ) / (candidate_centro_norte+candidate_oeste)).toFixed(2)}}%)\n \n \n \n\n
\n
\n
\n\n \n\n
\n
\n \n {{amount_apply}} \n \n \n Total de candidatos\n \n
\n
\n\n
\n \n
\n
\n ENGAJAMENTO DE CANDIDATOS(AS) \n \n
\n
\n\n
\n \n
\n
\n
CANDIDATOS POR GÊNERO \n
\n
\n
Homens - {{ ( (gender_amount[0] * 100) / gender_total).toFixed(2) }}%
\n
Mulheres - {{ ((gender_amount[1] * 100) / gender_total).toFixed(2) }}%
\n
Transgeneros - {{ ((gender_amount[2] * 100) / gender_total).toFixed(2)}}%
\n
Não quer identificar - {{ ((gender_amount[3] * 100) / gender_total).toFixed(2)}}%
\n\n
\n
\n \n
\n
\n
\n
\n
\n
\n \n {{old_candidates}} \n \n \n CANDIDATOS PROCESSO ANTERIOR\n \n
\n
\n \n {{candidate_work_corteva}} \n \n \n CANDIDATOS INTERNOS\n \n
\n\n
\n \n {{candidate_centro_norte}} \n \n \n Centro-Norte (PI MA TO PA BA GO DF)\n \n
\n\n
\n \n {{candidate_oeste}} \n \n \n Oeste (MT MS RO)\n \n
\n
\n\n
\n \n
\n
\n
CANDIDATOS POR ESTADO/CIDADE \n\n
\n
\n \n {{candidate_state.state_name}} ( {{candidate_state.amount}} )\n
\n \n \n \n {{candidate_city.city_name}}\n \n \n {{candidate_city.amount}}\n \n \n\n \n\n
\n
\n \n
\n
\n
\n\n
\n
\n
CANDIDATOS INTERNOS \n
\n \n Nome \n Email \n Telefone \n Cidade \n Empresa \n Cargo \n \n \n \n {{candidate.name}}\n \n \n {{candidate.email}}\n \n \n {{candidate.mobile_phone}}\n \n \n {{candidate.city_name}}/{{candidate.state_uf}}\n \n \n {{candidate.last_business}}\n \n \n {{candidate.last_role}}\n \n \n\n
\n
\n\n
\n
\n \n\n \n\n \n \n
\n
\n
\n Data Atual: {{current_date}}\n \n
\n
\n
\n
\n
\n \n \n \n\n
\n
\n \n \n SUMMARY\n \n \n\n \n \n Total de candidatos inscritos\n \n \n Candidatos internos\n \n \n Candidatos inscritos do processo anterior\n \n \n Mulheres\n \n \n \n \n Oeste\n \n \n Allyado / Personali*\n \n \n {{candidate_oeste}}\n \n \n \n \n {{candidate_internal_oeste}}\n \n \n {{ candidate_oeste_old }}\n \n \n \n {{ woman_oeste }}\n ({{ ((woman_oeste * 100 ) / candidate_centro_norte).toFixed(2)}}%)\n \n \n \n \n \n \n Centro Norte\n \n \n Allyado\n \n \n \n {{candidate_centro_norte}}\n \n \n {{candidate_internal_centro_norte}}\n \n \n \n {{ candidate_centro_norte_old }}\n \n \n \n {{ woman_centro_norte }}\n\n ({{ ((woman_centro_norte * 100 ) / candidate_centro_norte).toFixed(2)}}%)\n \n \n \n \n \n \n Brasil\n \n \n\n \n \n {{candidate_oeste + candidate_centro_norte}}\n \n \n \n {{candidate_internal_oeste + candidate_internal_centro_norte}}\n \n \n \n {{ candidate_centro_norte_old + candidate_oeste_old }}\n \n \n \n {{ woman_centro_norte + woman_oeste }}\n ({{ (((woman_centro_norte + woman_oeste) * 100 ) / (candidate_centro_norte+candidate_oeste)).toFixed(2)}}%)\n \n \n \n\n
\n\n
\n\n
\n \n \n \n
\n
\n ENGAJAMENTO DE CANDIDATOS(AS) \n \n
\n
\n\n
\n\n \n\n \n \n
\n
\n
CANDIDATOS POR GÊNERO \n
\n
\n
Homens - {{ ((gender_amount[0] * 100) / gender_total).toFixed(2) }}%
\n
Mulheres - {{ ((gender_amount[1] * 100) / gender_total).toFixed(2) }}%
\n
Transgêneros - {{ ((gender_amount[2] * 100) / gender_total).toFixed(2)}}%
\n
Não quer identificar - {{ ((gender_amount[3] * 100) / gender_total).toFixed(2)}}%
\n\n
\n
\n \n
\n
\n
\n
\n\n
\n \n\n \n \n
\n
\n
CANDIDATOS POR ESTADO/CIDADE \n\n
\n
\n\n \n
\n {{candidate_state.state_name}} ( {{candidate_state.amount}} )\n \n
\n \n \n \n {{candidate_city.city_name}}\n \n \n {{candidate_city.amount}}\n \n \n \n
\n
\n\n \n
\n
\n
\n
\n \n\n \n \n
\n\n
\n
CANDIDATOS INTERNOS \n
\n \n Nome \n Email \n Telefone \n Cidade \n Empresa \n Cargo \n Vaga \n \n \n \n {{candidate.name}}\n \n \n {{candidate.email}}\n \n \n {{candidate.mobile_phone}}\n \n \n {{candidate.city_name}}/{{candidate.state_uf}}\n \n \n {{candidate.last_business}}\n \n \n {{candidate.last_role}}\n \n \n {{candidate.job_title}}\n \n \n\n
\n
\n\n
\n
\n \n \n \n\n \n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Corteva.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Corteva.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Corteva.vue?vue&type=template&id=1684356d&\"\nimport script from \"./Corteva.vue?vue&type=script&lang=js&\"\nexport * from \"./Corteva.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Dados de Acesso\",\"menu\":\"Dados de Acesso\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 form-control-feedback\"}),_vm._v(\" \"),_c('input',{staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Pesquisar por nome\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12 d-flex justify-content-start\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-2\"},[_c('span',[_vm._v(\"Pesquisar por data:\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('Datepicker',{staticClass:\"p-0\",attrs:{\"input-class\":\"form-control\",\"format\":_vm.customFormatter,\"placeholder\":\"DD/MM\",\"language\":_vm.ptBR},model:{value:(_vm.search_day),callback:function ($$v) {_vm.search_day=$$v},expression:\"search_day\"}}),_vm._v(\" \"),_c('button',{on:{\"click\":_vm.searchDay}},[_vm._v(\"asd\")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"text-center\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Nome\\n \"),_c('OrderTable',{attrs:{\"field\":\"\",\"entity\":\"\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Último login\\n \"),_c('OrderTable',{attrs:{\"field\":\"\",\"entity\":\"\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Horário\\n \"),_c('OrderTable',{attrs:{\"field\":\"\",\"entity\":\"\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Nome da Empresa\\n \"),_c('OrderTable',{attrs:{\"field\":\"\",\"entity\":\"\"}})],1)])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"})])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n Pesquisar por data: \n
\n
\n \n \n asd \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=c4c4070c&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Licenças\",\"menu\":\"Licenças\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"block_info_white bg_black p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Search\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchAccounts.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"pt-2\"},[_c('span',{staticClass:\"mr-2 color-light-grey\"},[_c('b',[_vm._v(\"Total\")])]),_vm._v(\" \"),_c('span',{staticClass:\"block_info\"},[_c('b',[_vm._v(_vm._s(_vm.totalAccounts))])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool table_jovool_dark mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"text-center\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Nome\\n \"),_c('OrderTable',{attrs:{\"field\":\"recruiter_name\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Plano\\n \"),_c('OrderTable',{attrs:{\"field\":\"plan_name\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Empresa\\n \"),_c('OrderTable',{attrs:{\"field\":\"business_name\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Data de criação\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Tipo de conta\\n \"),_c('OrderTable',{attrs:{\"field\":\"type_account\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Cidade\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Estado\\n \"),_c('OrderTable',{attrs:{\"field\":\"state\",\"entity\":\"accounts\"}})],1),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.accounts),function(account){return _c('tr',{key:account.id,class:{'content-loading': _vm.loading}},[_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(account.recruiter_name))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(account.plan ? account.plan.name : 'Sem plano'))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(account.business.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(account.created_at,\"DD/MM/YYYY\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(account.type_account))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(account.city))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(account.state))])]),_vm._v(\" \"),_c('td',[_c('inertia-link',{attrs:{\"href\":'/admins/accounts/'+account.id}},[_c('font-awesome-icon',{staticClass:\"color-light-grey\",attrs:{\"icon\":['fa','pencil-alt']}})],1)],1)])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{'d-none': !_vm.loading }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])])])])]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center mt-3\",class:'d-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n
\n \n Total \n \n \n {{totalAccounts}} \n \n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n \n \n \n {{account.recruiter_name}}
\n \n \n {{account.plan ? account.plan.name : 'Sem plano'}}
\n \n\n \n {{account.business.name}}
\n \n \n {{\n account.created_at | moment(\"DD/MM/YYYY\")\n }}\n \n \n {{account.type_account}}
\n \n\n \n {{account.city}}
\n \n \n {{account.state}}
\n \n \n \n \n \n \n \n \n
\n
\n \n
\n
\n
\n
\n
\n\n \n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=0f87da97&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Licenças\",\"menu\":\"Licenças\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('h1',[_vm._v(\"Dados da conta\")]),_vm._v(\" \"),_c('div',{staticClass:\"bg_black color-light-grey\"},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"color-light-grey\",staticStyle:{\"text-align\":\"left !importante\"}},[_c('p',[_vm._v(_vm._s(_vm.account.business.name))]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Data de criação:\\n \"),_c('b',[_vm._v(_vm._s(_vm._f(\"moment\")(_vm.account.created_at,'DD/MM/YYYY')))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Data de atualização:\\n \"),_c('b',[_vm._v(_vm._s(_vm._f(\"moment\")(_vm.account.updated_at,'DD/MM/YYYY')))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Tipo de conta:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.type_account))]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),(_vm.account.type_account == 'premium')?_c('button',{staticClass:\"btn btn-danger mt-1 mb-2\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.update(0)}}},[_vm._v(\"Bloquear licença\")]):_vm._e()]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Data de encerramento do acesso free:\\n \"),_c('b',[_vm._v(_vm._s(_vm._f(\"moment\")(_vm.account.date_free,'DD/MM/YYYY')))])]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('p',[_vm._v(\"\\n CPF/CNPJ:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.document_number))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Rua:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.street))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Bairro:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.neighborhood))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Cep:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.zipcode))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Número:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.street))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n telefone:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.phone))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Cidade:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.city)+\" / \"+_vm._s(_vm.account.state))])]),_vm._v(\" \"),_c('hr')])])])]),_vm._v(\" \"),(_vm.account.plan)?_c('h1',{staticClass:\"mt-5\"},[_vm._v(\"Plano\")]):_vm._e(),_vm._v(\" \"),(_vm.account.plan)?_c('div',{staticClass:\"bg_black color-light-grey\"},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('p',[_vm._v(\"\\n Plano:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.plan ? _vm.account.plan.name : 'Sem plano'))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Quantidade de vaga:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.plan ? _vm.account.plan.amount_jobs : '0'))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Quantidade de recrutadores:\\n \"),_c('b',[_vm._v(_vm._s(_vm.account.plan ? _vm.account.plan.amount_recruiters : '0'))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Valor:\\n \"),(_vm.account.plan)?_c('b',[_vm._v(\"\\n R$\\n \"+_vm._s(_vm.account.plan.price ? parseFloat(_vm.account.plan.price).toFixed(2).replace('.', ',') : \"0,00\")+\"\\n \")]):_vm._e()])])])]):_vm._e(),_vm._v(\" \"),(_vm.subscriptions.length > 0)?_c('h1',{staticClass:\"mt-5\"},[_vm._v(\"Inscrições\")]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.subscriptions),function(subscription){return _c('div',{key:subscription.id,staticClass:\"bg_black color-light-grey\"},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('p',[_vm._v(\"\\n Plano:\\n \"),_c('b',[_vm._v(_vm._s(subscription.plan.name))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Tipo de pagamento:\\n \"),_c('b',[_vm._v(_vm._s(subscription.payment_method == 'boleto' ? 'boleto' : 'Cartão de crédito'))])]),_vm._v(\" \"),_c('p',[_vm._v(\"Data da assinatura: \"+_vm._s(_vm._f(\"moment\")(subscription.created_at,'DD/MM/YYYY')))]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Valor:\\n \"),_c('b',[_vm._v(\"\\n R$\\n \"+_vm._s(subscription.plan.price ? parseFloat(subscription.plan.price).toFixed(2).replace('.', ',') : \"0,00\")+\"\\n \")])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Status do pagamento:\\n \"),_c('b',[_vm._v(_vm._s(_vm.status[subscription.status]))])]),_vm._v(\" \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.account.plan_id == 0),expression:\"account.plan_id == 0\"}],staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.update(subscription.plan_id)}}},[_vm._v(\"Aprovar conta\")])])])])})],2),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-4\"},[_c('h2',{staticClass:\"mb-1 mt-2\"},[_vm._v(\"Registros da Licença\")]),_vm._v(\" \"),_c('div',{staticClass:\"bg_black mt-1 color-light-grey\"},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"color-light-grey\"},[_c('p',[_vm._v(\"\\n Total de vagas:\\n \"),_c('b',[_vm._v(_vm._s(_vm.amount_jobs))])]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n Total de Recrutadores:\\n \"),_c('b',[_vm._v(_vm._s(_vm.amount_recruiters))])])])])])]),_vm._v(\" \"),_c('h2',{staticClass:\"mb-1 mt-5\"},[_vm._v(\"Recrutadores\")]),_vm._v(\" \"),_vm._l((_vm.recruiters),function(recruiter){return _c('div',{key:recruiter.id,staticClass:\"bg_black mt-1 color-light-grey\"},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"color-light-grey\"},[_c('p',[_vm._v(\"\\n \"+_vm._s(recruiter.name)+\"\\n \"),_c('br'),_vm._v(\"\\n \"+_vm._s(recruiter.email)+\"\\n \"),_c('br'),_vm._v(\" \"),(recruiter.recruiter_admin_id == 0)?_c('span',{staticClass:\"process3 mt-2 block_process\"},[_vm._v(\"Admin\")]):_vm._e()])])])])])}),_vm._v(\" \"),_c('h2',{staticClass:\"mb-1 mt-5\"},[_vm._v(\"Habilidar plano\")]),_vm._v(\" \"),_c('div',{staticClass:\"bg_black mt-1 color-light-grey\"},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"color-light-grey\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.plan_id_select),expression:\"plan_id_select\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.plan_id_select=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.plans),function(plan){return _c('option',{key:plan.id,domProps:{\"value\":plan.id}},[_vm._v(_vm._s(plan.name))])}),0),_vm._v(\" \"),_c('button',{staticClass:\"mt-2 btn btn-success full\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.update(_vm.plan_id_select)}}},[_vm._v(\"Salvar\")])])])])])],2)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n \n
\n
Dados da conta \n
\n
\n
\n
\n
{{account.business.name}}
\n\n
\n Data de criação:\n {{account.created_at | moment('DD/MM/YYYY')}} \n
\n
\n Data de atualização:\n {{account.updated_at | moment('DD/MM/YYYY')}} \n
\n
\n Tipo de conta:\n {{account.type_account}} \n \n Bloquear licença \n
\n
\n Data de encerramento do acesso free:\n {{account.date_free | moment('DD/MM/YYYY')}} \n
\n
\n
\n CPF/CNPJ:\n {{account.document_number}} \n
\n
\n Rua:\n {{account.street}} \n
\n
\n Bairro:\n {{account.neighborhood}} \n
\n
\n Cep:\n {{account.zipcode}} \n
\n
\n Número:\n {{account.street}} \n
\n
\n telefone:\n {{account.phone}} \n
\n
\n Cidade:\n {{account.city}} / {{account.state}} \n
\n
\n
\n
\n
\n
\n\n
Plano \n
\n
\n
\n
\n Plano:\n {{account.plan ? account.plan.name : 'Sem plano'}} \n
\n\n
\n Quantidade de vaga:\n {{account.plan ? account.plan.amount_jobs : '0'}} \n
\n
\n Quantidade de recrutadores:\n {{account.plan ? account.plan.amount_recruiters : '0'}} \n
\n
\n Valor:\n \n R$\n {{ account.plan.price ? parseFloat(account.plan.price).toFixed(2).replace('.', ',') : \"0,00\" }}\n \n
\n
\n
\n
\n\n
0\">Inscrições \n
\n
\n
\n
\n Plano:\n {{subscription.plan.name}} \n
\n
\n Tipo de pagamento:\n {{subscription.payment_method == 'boleto' ? 'boleto' : 'Cartão de crédito'}} \n
\n
Data da assinatura: {{subscription.created_at | moment('DD/MM/YYYY')}}
\n
\n Valor:\n \n R$\n {{ subscription.plan.price ? parseFloat(subscription.plan.price).toFixed(2).replace('.', ',') : \"0,00\" }}\n \n
\n
\n Status do pagamento:\n {{status[subscription.status]}} \n
\n
Aprovar conta \n
\n
\n
\n
\n
\n
Registros da Licença \n
\n
\n
\n
\n
\n Total de vagas:\n {{amount_jobs}} \n
\n
\n Total de Recrutadores:\n {{amount_recruiters}} \n
\n
\n
\n
\n
\n
Recrutadores \n
\n
\n
\n
\n
\n {{recruiter.name}}\n \n {{recruiter.email}}\n \n Admin \n
\n
\n
\n
\n
\n
Habilidar plano \n
\n
\n
\n
\n \n {{plan.name}} \n \n Salvar \n
\n
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=d2b3caf0&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Dashboard \",\"menu\":\"Dashboard\"}},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('div',{staticClass:\"bg_black card\"},[_c('div',{staticClass:\"card-body\"},[_c('p',{staticClass:\"f30\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")((_vm.balance.waiting_funds.amount / 100),\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n }))+\"\\n \")]),_vm._v(\"\\n A compensar\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('div',{staticClass:\"bg_black card\"},[_c('div',{staticClass:\"card-body\"},[_c('p',{staticClass:\"f30\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")((_vm.balance.available.amount / 100),\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n }))+\"\\n \")]),_vm._v(\"\\n Disponivel\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('div',{staticClass:\"bg_black card\"},[_c('div',{staticClass:\"card-body\"},[_c('p',{staticClass:\"f30\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")((_vm.balance.transferred.amount / 100),\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n }))+\"\\n \")]),_vm._v(\"\\n Transferido\\n \")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"bg_black card\"},[_c('div',{staticClass:\"card-body\"},[_c('h2',[_vm._v(\"Licenças por dia\")]),_vm._v(\" \"),_c('line-chart',{attrs:{\"chart-data\":_vm.datacollection}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('div',{staticClass:\"bg_black card\"},[_c('div',{staticClass:\"card-body\"},[_c('h3',[_vm._v(\"Licenças por semana\")]),_vm._v(\" \"),_c('line-chart',{attrs:{\"chart-data\":_vm.datacollection_week}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('div',{staticClass:\"bg_black card\"},[_c('div',{staticClass:\"card-body\"},[_c('h3',[_vm._v(\"Licenças por mês\")]),_vm._v(\" \"),_c('line-chart',{attrs:{\"chart-data\":_vm.datacollection_months}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('h3',[_vm._v(\"Últimos acessos\")]),_vm._v(\" \"),_c('table',{staticClass:\"table_jovool table_jovool_dark mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"text-center\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Data\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Empresa\")])])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},_vm._l((_vm.users),function(user){return _c('tr',{key:user.id},[_c('td',{staticClass:\"center\"},[_c('div',[_vm._v(_vm._s(user.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('div',[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(user.last_sign_in_at,\"DD/MM/YYYY LT\"))+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('div',[_vm._v(_vm._s(user.business_name))])])])}),0)])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n {{\n (balance.waiting_funds.amount / 100)\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }}\n
\n A compensar\n
\n
\n
\n
\n
\n
\n
\n {{\n (balance.available.amount / 100)\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }}\n
\n Disponivel\n
\n
\n
\n
\n
\n
\n
\n {{\n (balance.transferred.amount / 100)\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }}\n
\n Transferido\n
\n
\n
\n
\n
\n
\n
\n
\n
Licenças por dia \n \n \n
\n
\n
\n
\n
\n
\n
\n
Licenças por semana \n \n \n
\n
\n
\n
\n
\n
Licenças por mês \n \n \n
\n
\n
\n
\n
\n
Últimos acessos \n
\n \n \n \n \n {{ user.name }}
\n \n \n \n {{ user.last_sign_in_at | moment(\"DD/MM/YYYY LT\") }}\n
\n \n \n {{ user.business_name }}
\n \n \n \n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3b3a3bed&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3b3a3bed\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',[_c('h1')])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n \n \n \n\n\n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=279cc7f6&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Formulário plano\",\"menu\":\"Planos\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"bg_black color-light-grey\",attrs:{\"id\":\"new-job-box\"}},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"container-form\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('inputform',{attrs:{\"type\":\"text\",\"label\":\"Título do plano\",\"field\":_vm.$v.plan.name},model:{value:(_vm.plan.name),callback:function ($$v) {_vm.$set(_vm.plan, \"name\", $$v)},expression:\"plan.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('textareaform',{attrs:{\"label\":\"Descrição\",\"rows\":\"5\",\"field\":_vm.$v.plan.description},model:{value:(_vm.plan.description),callback:function ($$v) {_vm.$set(_vm.plan, \"description\", $$v)},expression:\"plan.description\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',[_vm._v(\"Status\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.plan.status),expression:\"plan.status\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.plan, \"status\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":1}},[_vm._v(\"Ativo\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":0}},[_vm._v(\"Desativado\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',[_vm._v(\"Visibilidade\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.plan.visibility),expression:\"plan.visibility\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.plan, \"visibility\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":1}},[_vm._v(\"Ativo\")]),_vm._v(\" \"),_c('option',{domProps:{\"value\":0}},[_vm._v(\"Desativado\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',{staticClass:\"mt-2\"},[_vm._v(\"Quantidade de vagas\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.plan.amount_jobs),expression:\"plan.amount_jobs\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"value\":\"1\"},domProps:{\"value\":(_vm.plan.amount_jobs)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.plan, \"amount_jobs\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',{staticClass:\"mt-2\"},[_vm._v(\"Quantidade de usuários\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.plan.amount_recruiters),expression:\"plan.amount_recruiters\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"value\":\"1\"},domProps:{\"value\":(_vm.plan.amount_recruiters)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.plan, \"amount_recruiters\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',{staticClass:\"mt-2\"},[_vm._v(\"Preço mensal\")]),_vm._v(\" \"),_c('div',{staticClass:\"bg_menu_dark input-group mb-3\"},[_c('div',{staticClass:\"bg_menu_dark input-group-prepend\"},[_c('span',{staticClass:\"input-group-text\",attrs:{\"id\":\"basic-addon1\"}},[_vm._v(\"R$\")])]),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control\",attrs:{\"disabled\":this.plan_record ? true : false,\"placeholder\":\"0,00\"},model:{value:(_vm.plan.price),callback:function ($$v) {_vm.$set(_vm.plan, \"price\", $$v)},expression:\"plan.price\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',{staticClass:\"mt-2\"},[_vm._v(\"Quantidade de dias free\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.plan.day_free),expression:\"plan.day_free\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.plan.day_free)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.plan, \"day_free\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('label',{staticClass:\"mt-3\"},[_vm._v(\"Tipo de pagamento\")]),_vm._v(\" \"),_c('div',{staticClass:\"mb-3\"},[_c('label',{staticClass:\"mr-4\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.payment_methods),expression:\"payment_methods\"}],staticClass:\"mr-1\",attrs:{\"type\":\"checkbox\",\"disabled\":this.plan_record ? true : false,\"id\":\"boleto\",\"value\":\"boleto\"},domProps:{\"checked\":Array.isArray(_vm.payment_methods)?_vm._i(_vm.payment_methods,\"boleto\")>-1:(_vm.payment_methods)},on:{\"change\":function($event){var $$a=_vm.payment_methods,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=\"boleto\",$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.payment_methods=$$a.concat([$$v]))}else{$$i>-1&&(_vm.payment_methods=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.payment_methods=$$c}}}}),_vm._v(\"\\n Boleto\\n \")]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.payment_methods),expression:\"payment_methods\"}],staticClass:\"mr-1\",attrs:{\"type\":\"checkbox\",\"disabled\":this.plan_record ? true : false,\"id\":\"credit_card\",\"value\":\"credit_card\"},domProps:{\"checked\":Array.isArray(_vm.payment_methods)?_vm._i(_vm.payment_methods,\"credit_card\")>-1:(_vm.payment_methods)},on:{\"change\":function($event){var $$a=_vm.payment_methods,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=\"credit_card\",$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.payment_methods=$$a.concat([$$v]))}else{$$i>-1&&(_vm.payment_methods=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.payment_methods=$$c}}}}),_vm._v(\"\\n Cartão de crédito\\n \")])])]),_vm._v(\" \"),(_vm.url_full != '')?_c('div',{staticClass:\"col-lg-12 mb-4 col-xs-12\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.url_full),expression:\"url_full\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm.url_full)+\"\\n \"),_c('font-awesome-icon',{attrs:{\"icon\":\"paperclip\"}})],1)]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"btn btn-degrade full normal-degrade\",on:{\"click\":_vm.save}},[_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"Salvar\" : \"\")+\"\\n \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('inertia-link',{attrs:{\"href\":\"/admins/plans\"}},[_c('button',{staticClass:\"btn btn-secondary full\"},[_vm._v(\"Voltar\")])])],1)])])])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n \n \n \n\n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=034b66c4&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Planos\",\"menu\":\"Planos\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('div',{staticClass:\"block_info_white bg_black p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\",\"placeholder\":\"Search\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchPlans.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"pt-2\"},[_c('span',{staticClass:\"mr-2 color-light-grey\"},[_c('b',[_vm._v(\"Total\")])]),_vm._v(\" \"),_c('span',{staticClass:\"block_info\"},[_c('b',[_vm._v(_vm._s(_vm.totalPlans))])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12 pl-0\"},[_c('inertia-link',{attrs:{\"href\":\"/admins/plans/new\"}},[_c('button',{staticClass:\"btn full btn-degrade right\",attrs:{\"type\":\"button\"}},[_c('b',[_vm._v(\"Novo Plano\")])])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool table_jovool_dark mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"text-center\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Nome\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"plan\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Preço\\n \"),_c('OrderTable',{attrs:{\"field\":\"price\",\"entity\":\"plan\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Qtd Vaga\\n \"),_c('OrderTable',{attrs:{\"field\":\"amount_jobs\",\"entity\":\"plan\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Visibilidade\\n \"),_c('OrderTable',{attrs:{\"field\":\"visibility\",\"entity\":\"plan\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Status\\n \"),_c('OrderTable',{attrs:{\"field\":\"status\",\"entity\":\"plan\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n Data Criaçao\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"plan\"}})],1),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.plans),function(plan,index){return _c('tr',{key:plan.id,class:{'content-loading': _vm.loading}},[_c('td',{staticClass:\"center\"},[_c('div',[_vm._v(_vm._s(plan.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('span',{staticClass:\"d-inline-block text-truncate\",staticStyle:{\"max-width\":\"200px\"}},[_vm._v(\"\\n R$\\n \"+_vm._s(plan.price ? parseFloat(plan.price).toFixed(2).replace('.', ',') : \"0,00\")+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('span',[_vm._v(_vm._s(plan.amount_jobs))])]),_vm._v(\" \"),_c('td',[_c('div',{staticClass:\"mt-1 block_process\",class:{process3: plan.visibility, process0: !plan.visibility }},[_vm._v(_vm._s(plan.visibility ? 'Sim': 'Não'))])]),_vm._v(\" \"),_c('td',[_c('div',{staticClass:\"mt-1 block_process\",class:{process1: plan.status, process0: !plan.status }},[_vm._v(_vm._s(plan.status ? 'Ativo': 'Desativado'))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(plan.created_at,\"DD/MM/YYYY\"))+\"\\n \")]),_vm._v(\" \"),_c('td',[_c('inertia-link',{attrs:{\"href\":'/admins/plans/'+plan.id+'/edit'}},[_c('i',{staticClass:\"fas f25 color-light-grey fa-file-alt\"})])],1)])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{'d-none': !_vm.loading }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])])])])]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center mt-3\",class:'d-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n
\n \n Total \n \n \n {{ totalPlans }} \n \n
\n
\n
\n
\n
\n
\n \n \n Novo Plano \n \n \n
\n
\n
\n
\n
\n \n \n \n \n {{plan.name}}
\n \n\n \n \n R$\n {{ plan.price ? parseFloat(plan.price).toFixed(2).replace('.', ',') : \"0,00\" }}\n \n \n \n {{plan.amount_jobs}} \n \n\n \n {{ plan.visibility ? 'Sim': 'Não'}}
\n \n\n \n {{ plan.status ? 'Ativo': 'Desativado'}}
\n \n \n {{\n plan.created_at | moment(\"DD/MM/YYYY\")\n }}\n \n \n \n \n \n \n \n \n
\n
\n \n
\n
\n
\n
\n
\n\n \n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=6f2b817c&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin',{attrs:{\"title\":\"Transações\",\"menu\":\"Transações\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"block_info_white bg_black p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('Datepicker',{staticClass:\"p-0\",attrs:{\"input-class\":\"form-control\",\"placeholder\":\"Data inicial\",\"format\":_vm.customFormatter,\"language\":_vm.ptBR},model:{value:(_vm.initial_date),callback:function ($$v) {_vm.initial_date=$$v},expression:\"initial_date\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('Datepicker',{staticClass:\"p-0\",attrs:{\"input-class\":\"form-control\",\"format\":_vm.customFormatter,\"placeholder\":\"Data final\",\"language\":_vm.ptBR},model:{value:(_vm.end_date),callback:function ($$v) {_vm.end_date=$$v},expression:\"end_date\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.loadTransacations}},[_c('font-awesome-icon',{attrs:{\"icon\":\"search\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"pt-2\"},[_c('span',{staticClass:\"mr-2 color-light-grey\"},[_c('b',[_vm._v(\"Total\")])]),_vm._v(\" \"),_c('span',{staticClass:\"block_info\"},[_c('b',[_vm._v(_vm._s(_vm.transactions.length))])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool table_jovool_dark mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"text-center\"},[_c('td',{staticClass:\"center\"},[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Valor\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Data Criaçao\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Data Atualização\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Status\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"metodo de pagamento\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Boleto url\")]),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.transactions),function(transaction,index){return _c('tr',{key:transaction.id,class:{'content-loading': _vm.loading}},[_c('td',{staticClass:\"pt-4 center\"},[_c('div',[_vm._v(_vm._s(transaction.recruiter.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_c('span',[_vm._v(\"\\n R$\\n \"+_vm._s(transaction.amount ? parseFloat(transaction.amount/100 ).toFixed(2).replace('.', ',') : \"0,00\")+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(transaction.created_at,\"DD/MM/YYYY h:m\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(transaction.updated_at,\"DD/MM/YYYY h:m\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_vm._v(_vm._s(_vm.status[transaction.status]))]),_vm._v(\" \"),_c('td',{staticClass:\"pt-4 center\"},[_vm._v(_vm._s(transaction.payment_method == 'credit_card' ? 'Cartão de crédito' : 'Boleto'))]),_vm._v(\" \"),_c('td',[(transaction.boleto_url)?_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(transaction.boleto_url),expression:\"transaction.boleto_url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color-grey\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"link\"}})],1):_vm._e()]),_vm._v(\" \"),_c('td')])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{'d-none': !_vm.loading }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n \n Total \n \n \n {{ transactions.length }} \n \n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n \n \n \n {{transaction.recruiter.name}}
\n \n\n \n \n R$\n {{ transaction.amount ? parseFloat(transaction.amount/100 ).toFixed(2).replace('.', ',') : \"0,00\" }}\n \n \n\n \n {{\n transaction.created_at | moment(\"DD/MM/YYYY h:m\")\n }}\n \n \n {{\n transaction.updated_at | moment(\"DD/MM/YYYY h:m\")\n }}\n \n {{status[transaction.status]}} \n {{transaction.payment_method == 'credit_card' ? 'Cartão de crédito' : 'Boleto'}} \n \n \n \n \n \n \n \n \n
\n
\n \n
\n
\n
\n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=dc1ad314&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_vm._m(0),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(!_vm.valid)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row\"},[_c('SignIn',{attrs:{\"account_uid\":_vm.account_uid,\"candidate_uid\":_vm.candidate.uid,\"bigfive_uid\":_vm.bigfive.uid,\"bigfive\":true}},[_c('div',{staticClass:\"mt-5\"},[_c('h1',{staticClass:\"center\"},[_vm._v(\"Teste Bigfive\")]),_vm._v(\" \"),_c('p',{staticClass:\"f15 center\"},[_vm._v(\"\\n Faça seu login ou cadastre-se para começar o teste\\n \")])])])],1)])]):_vm._e(),_vm._v(\" \"),(_vm.valid)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1 col-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-10\"},[_c('Test',{attrs:{\"bigfive_uid\":_vm.bigfive.uid,\"amount_itens\":_vm.bigfive.amount_itens,\"account_uid\":_vm.account_uid,\"no_next\":true}})],1)]):_vm._e()])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 p-2 pt-4 center\"},[_c('a',{attrs:{\"href\":\"https://jovool.com\"}},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"pt-4 col-lg-5 col-xs-12\",staticStyle:{\"text-align\":\"right\"}},[_c('h1',{staticClass:\"color-primary\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"})])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"","\n \n
\n
\n \n
\n
\n
\n \n
Teste Bigfive \n
\n Faça seu login ou cadastre-se para começar o teste\n
\n
\n \n
\n
\n
\n \n \n
\n \n\n\n\n","import { render, staticRenderFns } from \"./New.vue?vue&type=template&id=25775312&\"\nimport script from \"./New.vue?vue&type=script&lang=js&\"\nexport * from \"./New.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('modals-container'),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_vm._m(1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12 p-2 pt-4\"},[_c('a',{attrs:{\"href\":\"https://jovool.com\"}},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"pt-4 col-lg-5 col-xs-12\",staticStyle:{\"text-align\":\"right\"}},[_c('h1',{staticClass:\"color-primary\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('h1',{staticClass:\"color-primary mt-5\"},[_vm._v(\"Teste não localizado\")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotFound.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotFound.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n
Teste não localizado \n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./NotFound.vue?vue&type=template&id=ac325e0c&\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js&\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('h1',{staticClass:\"mt-5 mb-5 center color-primary\",staticStyle:{\"font-family\":\"Comfortaa-Bold\"}},[_vm._v(\"\\n Jovool\\n \")]),_vm._v(\" \"),_c('h2',[_vm._v(\"Trocar sua senha\")]),_vm._v(\" \"),_c('div',{staticClass:\"card mb-4\"},[_c('div',{staticClass:\"card-body\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"Senha\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.password),expression:\"user.password\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"Senha\"},domProps:{\"value\":(_vm.user.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"password\", $event.target.value)}}}),_vm._v(\" \"),_c('Password',{attrs:{\"strength-meter-only\":true},on:{\"score\":_vm.showScore},model:{value:(_vm.user.password),callback:function ($$v) {_vm.$set(_vm.user, \"password\", $$v)},expression:\"user.password\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"Confirmar Senha\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.password_confirmation),expression:\"user.password_confirmation\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"Confirmar senha Senha\"},domProps:{\"value\":(_vm.user.password_confirmation)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"password_confirmation\", $event.target.value)}}}),_vm._v(\" \"),_c('Password',{attrs:{\"strength-meter-only\":true},on:{\"score\":_vm.showScore},model:{value:(_vm.user.password_confirmation),callback:function ($$v) {_vm.$set(_vm.user, \"password_confirmation\", $$v)},expression:\"user.password_confirmation\"}}),_vm._v(\" \"),_c('div',{staticClass:\"actions\"},[_c('button',{staticClass:\"mt-3 btn btn-success\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.changePassword}},[_vm._v(\"\\n Alterar minha senha\\n \")])]),_vm._v(\" \"),(_vm.success)?_c('div',{staticClass:\"mt-4 alert alert-success\"},[_vm._v(\"\\n Senha alterada com sucesso\\n \")]):_vm._e()],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Edit.vue?vue&type=script&lang=js&\"","\n \n
\n Jovool\n \n
Trocar sua senha \n
\n
\n
Senha \n
\n
\n\n
Confirmar Senha \n
\n
\n
\n \n Alterar minha senha\n \n
\n\n
\n Senha alterada com sucesso\n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Edit.vue?vue&type=template&id=722dcad0&\"\nimport script from \"./Edit.vue?vue&type=script&lang=js&\"\nexport * from \"./Edit.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('h1',{staticClass:\"mt-5 mb-5 center color-primary\",staticStyle:{\"font-family\":\"Comfortaa-Bold\"}},[_vm._v(\"\\n Jovool\\n \")]),_vm._v(\" \"),_c('h2',[_vm._v(\"Recuperar senha\")]),_vm._v(\" \"),_c('div',{staticClass:\"card mb-4\"},[_c('div',{staticClass:\"card-body\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"Digite seu email\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidates.email),expression:\"candidates.email\"}],staticClass:\"form-control\",attrs:{\"type\":\"email\",\"placeholder\":\"Email\"},domProps:{\"value\":(_vm.candidates.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidates, \"email\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"actions\"},[_c('button',{staticClass:\"mt-3 btn btn-success\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.newPassoword}},[_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"Recuperar minha senha\" : \"\")+\"\\n \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]),_vm._v(\" \"),(_vm.success)?_c('div',{staticClass:\"alert mt-2 alert-success\"},[_c('span',[_vm._v(\"Processo encaminhado com sucesso, confirá o seu email com os passos\\n para redefinir sua senha\")])]):_vm._e()])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"","\n \n
\n Jovool\n \n
Recuperar senha \n
\n
\n
Digite seu email \n
\n\n
\n
\n {{ !load ? \"Recuperar minha senha\" : \"\" }}\n \n \n
\n \n
\n\n
\n Processo encaminhado com sucesso, confirá o seu email com os passos\n para redefinir sua senha \n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./New.vue?vue&type=template&id=c3265dca&\"\nimport script from \"./New.vue?vue&type=script&lang=js&\"\nexport * from \"./New.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"card card-body p-5\"},[(_vm.feedback.use_video)?_c('video',{staticClass:\"full\",attrs:{\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.item.video}})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\",domProps:{\"innerHTML\":_vm._s(_vm.feedback.additional_text)}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"})])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 p-2 pt-4\"},[_c('a',{attrs:{\"href\":\"https://jovool.com\"}},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"pt-4 col-lg-4 col-xs-12\",staticStyle:{\"text-align\":\"right\"}},[_c('h1',{staticClass:\"color-primary\"},[_vm._v(\"FEDDBACK\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"})])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
FEDDBACK \n \n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=3b6c7d98&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\",staticStyle:{\"background-color\":\"#f7f7f7\"}},[_c('div',{class:{ 'plr-7': !_vm.mobile }},[_c('h1',{staticClass:\"mt-2 mb-4 center color-primary\",staticStyle:{\"font-family\":\"Comfortaa-Bold\"}},[_vm._v(\"\\n Jovool\\n \")])]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fadeLeft\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.show)?_c('div',[_c('div',{class:{ 'plr-7': !_vm.mobile }},[_c('p',{staticClass:\"f17\"},[_vm._v(\"\\n INFORME-NOS SEUS DADOS E NOSSO TIME ENTRARÁ EM CONTATO O MAIS\\n RÁPIDO POSSÍVEL!\\n \")]),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"NOME\",\"field\":_vm.$v.lead.name},model:{value:(_vm.lead.name),callback:function ($$v) {_vm.$set(_vm.lead, \"name\", $$v)},expression:\"lead.name\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"email\",\"placeholder\":\"EMAIL\",\"field\":_vm.$v.lead.email},model:{value:(_vm.lead.email),callback:function ($$v) {_vm.$set(_vm.lead, \"email\", $$v)},expression:\"lead.email\"}}),_vm._v(\" \"),_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('(##)#####-####'),expression:\"'(##)#####-####'\"}],attrs:{\"type\":\"text\",\"placeholder\":\"TELEFONE\",\"field\":_vm.$v.lead.mobile_phone},model:{value:(_vm.lead.mobile_phone),callback:function ($$v) {_vm.$set(_vm.lead, \"mobile_phone\", $$v)},expression:\"lead.mobile_phone\"}}),_vm._v(\" \"),_c('inputform',{attrs:{\"type\":\"text\",\"placeholder\":\"EMPRESA\",\"field\":_vm.$v.lead.company},model:{value:(_vm.lead.company),callback:function ($$v) {_vm.$set(_vm.lead, \"company\", $$v)},expression:\"lead.company\"}}),_vm._v(\" \"),_c('textareaform',{attrs:{\"placeholder\":\"DESCRIÇÃO\",\"rows\":\"5\",\"field\":_vm.$v.lead.message},model:{value:(_vm.lead.message),callback:function ($$v) {_vm.$set(_vm.lead, \"message\", $$v)},expression:\"lead.message\"}}),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-degrade full normal-degrade\",on:{\"click\":_vm.save}},[_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"ENVIAR\" : \"\")+\"\\n \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])],1)]):_vm._e()])],1),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.show && !_vm.mobile)?_c('div',{staticClass:\"col-lg-6 center col-xs-12 p-7 loginPanel\",staticStyle:{\"min-height\":\"100vh\"}}):_vm._e()])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Contact.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Contact.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n Jovool\n \n \n \n
\n \n
\n
\n INFORME-NOS SEUS DADOS E NOSSO TIME ENTRARÁ EM CONTATO O MAIS\n RÁPIDO POSSÍVEL!\n
\n
\n\n
\n\n
\n
\n\n
\n\n
\n {{ !load ? \"ENVIAR\" : \"\" }}\n \n \n
\n \n
\n
\n \n \n
\n
\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Contact.vue?vue&type=template&id=4a230f7a&\"\nimport script from \"./Contact.vue?vue&type=script&lang=js&\"\nexport * from \"./Contact.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('modals-container'),_vm._v(\" \"),_vm._m(0),_vm._v(\" \"),_vm._m(1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12 p-2 pt-4\"},[_c('a',{attrs:{\"href\":\"https://jovool.com\"}},[_c('img',{attrs:{\"src\":\"/images/Jovool_logo.png\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"pt-4 col-lg-5 col-xs-12\",staticStyle:{\"text-align\":\"right\"}},[_c('h1',{staticClass:\"color-primary\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-1 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('h1',{staticClass:\"color-primary mt-5\"},[_vm._v(\"\\n CADASTRO NA PLATAFORMA JOVOOL É RESTRITO APENAS PARA CONVIDADOS.\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NoRegister.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NoRegister.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n
\n
\n
\n CADASTRO NA PLATAFORMA JOVOOL É RESTRITO APENAS PARA CONVIDADOS.\n \n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./NoRegister.vue?vue&type=template&id=48732ff5&\"\nimport script from \"./NoRegister.vue?vue&type=script&lang=js&\"\nexport * from \"./NoRegister.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AdminCandidate',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"calibre\",attrs:{\"id\":\"calibre_link-0\"}},[_c('p',{staticClass:\"block_\"},[_vm._v(\"TERMOS E CONDIÇÕES DE USO DA PLATAFORMA JOVOOL\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n A Jovool\\n \"),_c('span',{staticClass:\"calibre1\"},[_vm._v(\"presta serviços relacionados à recrutamento e seleção por meio de sua Plataforma de recrutamento com entrevistas por vídeo.\")])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"Por meio de seu site, a Jovool oferece aos seus clientes ferramentas e soluções para o controle e organização de processos seletivos, divulgação de anúncios de vagas em canais de comunicação e a possibilidade de realizar as entrevistas com candidatos de forma remota por vídeos ao vivo e/ou gravados.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"Estes Termos de Uso regulam a sua utilização no que se refere ao uso do site da Jovool e ao oferecimento da Plataforma de Recrutamento e Seleção, bem como do uso que o usuário fizer destas Plataformas de Serviços e Produtos. O termo “serviço”, quando utilizado, significa o serviço personalizado fornecido pela Jovool da plataforma de recrutamento e entrevistas por vídeo.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"O termo “Você” se refere à pessoa física ou à pessoa jurídica titular dos dados de login criados para acessar a Plataforma Jovool.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\"},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"ACEITAÇÃO DO CONTRATO\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"1.1. Ao clicar no botão “Eu li e concordo”, quando do cadastro online para uso da Plataforma da Jovool em nosso site, você automaticamente concordará com estes Termos de Uso.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"1.2. Se você não concordar com estes Termos e Uso, recomendamos que você não finalize o seu cadastro nem faça utilização de nosso site.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"1.3. Ao acessar e se cadastrar em nosso site e na plataforma, você declara ser civilmente capaz para compreender, aceitar e cumprir estes Termos de Uso.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n 1.4. Se você ficar com qualquer dúvida após ter lido estes Termos de Uso, por favor entre em contato conosco por meio do e-mail\\n \"),_c('a',{staticClass:\"text_\",attrs:{\"href\":\"mailto:contato@jovool.com\"}},[_vm._v(\"contato@jovool.com\")]),_vm._v(\".\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\",attrs:{\"value\":\"2\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"CONDIÇÕES GERAIS\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n 2.1.\\n \"),_c('span',{staticClass:\"tab\"},[_vm._v(\" \")]),_vm._v(\"O acesso à Plataforma da Jovool será liberado após você preencher todos os dados cadastrais obrigatórios e fizer a escolha do plano a ser utilizado e o respectivo pagamento confirmado. Logo após, a Jovool criará e disponibilizará a você login para acesso à Plataforma.\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"2.2. Você é o único responsável pela veracidade das informações que fornece, sendo que a Jovool não se responsabilizará por informações erradas e/ou falsas. Além disso, você deverá manter todas as suas informações atualizadas.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"2.3. Se a Jovool constatar que você forneceu alguma informação errada / falsa, seu cadastro poderá ser automaticamente cancelado.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"2.4. Você é exclusivamente responsável pela segurança de sua senha, e não deverá compartilhá-la com terceiros. Você é o único responsável por qualquer uso indevido em seu perfil, inclusive aqueles decorrentes de uso de sua senha por terceiros.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n 2.5. Você está ciente de que o mero cadastro no site não acarretará acesso à plataforma oferecida pela Jovool\\n \"),_c('span',{staticClass:\"calibre1\"},[_vm._v(\". O acesso só será autorizado após comprovação do pagamento, com exceção da utilização concedida em caráter de experimentação gratuito, que dá acesso à dois logins por CNPJ cadastrado.\")])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"2.6. Você pode exercer, no prazo de 7 dias a contar da disponibilização do acesso à plataforma, seu direito de arrependimento, nos termos do artigo 49 da Lei nº 8.098/90 (Código de Defesa do Consumidor). Você poderá requerer o cancelamento do acesso e a devolução dos valores pagos por meio do email contato@jovool.com ou ligar diretamente para a empresa através do telefone publicado no website.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\",attrs:{\"value\":\"3\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"FINALIDADES DE USO DA PLATAFORMA\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"Por meio do uso da Plataforma é possível:\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.1. Criar e organizar um processo seletivo, por meio da metolodogia Kaban realizando a triagem de candidatos de acordo com o perfil buscado para cada processo seletivo.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.2 Fazer uso da ferramenta de vídeo com até 5 pessoas de forma simultânea.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.3 Realizar entrevistas de forma programa ou real time por vídeo.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.4 Controlar as respostas dos candidatos com limite de tempo do vídeo e de tentativas de gravação.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.5 Utilizar o sistema de feedback automatizado para candidatos reprovados e o sistema de rankeamento de candidatos, bem como a gestão de indicadores de todas as etapas do processo.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.6 Compartilhar vídeos por e-mail com outras pessoas que não necessariamente possuem acesso à plataforma. Pelo período de até sete dias o link ficará ativo.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.7 Compartilhar vídeos institucionais e mensagens personalizadas apresentando sua marca ou criar processos confidenciais.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"3.8 Divulgar vagas em diversos canais de comunicação.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_5\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_6\",attrs:{\"value\":\"4\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"NORMAS DE CONDUTA E PROTEÇÃO À PROPRIEDADE INTELECTUAL\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.1. Você deverá cumprir a legislação do local onde estiver situado, bem como a legislação do Brasil.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.2. Você declara que não produzirá, reproduzirá, disponibilizará, divulgará ou transmitirá conteúdo:\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"(i) contrário à legislação brasileira, ou que incentive qualquer forma de discriminação, racismo, homofobia e/ou violência;\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"(ii) protegido por direitos de propriedade intelectual ou industrial de terceiros, sem que você esteja devidamente autorizado a usá-los pelos titulares destes direitos;\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"(iii) sejam capazes de gerar danos ou impedir o normal funcionamento da rede, sistema ou equipamentos informáticos (hardware e software) da Jovool ou de terceiros, ou que possam danificar os arquivos armazenados virtualmente;\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"(iv) causem dificuldades ao funcionamento normal do site da Jovool bem como de seus respectivos produtos e serviços.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.3. Você declara e reconhece que é o único responsável pelo uso que fizer da plataforma Jovool, bem como pelos atos que praticar enquanto estiver se utilizando dos serviços.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.4 Você está ciente de que há áreas restritas dentro do site da Jovool acessíveis apenas mediante login e senha especiais. Assim, ainda que por algum erro e/ou falha do sistema da Jovool você tiver acesso a estas áreas restritas, você deverá imediatamente encerrar o acesso, ficando civil e criminalmente responsável pelos danos que forem causados caso você não siga estas instruções.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.5. O conteúdo disponibilizado na Plataforma Jovool como logomarcas, vídeos, arquivos, textos, ícones, desenhos, layouts, sons, algoritmos (são de propriedade exclusiva da Jovool) ou de terceiros que autorizaram a Jovool a usá-los, estando protegidos pela lei. Nesse sentido, fica vedada sua cópia, reprodução ou qualquer tipo de utilização sem a autorização prévia e por escrita do titular deste direito.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.6. Ao usar a plataforma você concorda que não está autorizado a citar as marcas, os nomes comerciais e logotipos que lhe forem disponibilizados.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.7. Ao participar de qualquer entrevista, reunião e vídeos de forma geral online você autoriza a Jovool a utilizar sua imagem e sua voz em qualquer material que a Jovool vier a produzir, seja ele físico ou virtual.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"4.8. Todos os indivíduos – incluindo os candidatos – autorizam a Jovool a utilizarem sua imagem e voz durante a reprodução dos vídeos ao vivo e/ou gravados dentro da própria plataforma. Assim, você concorda que o uso indevido destes conteúdos atribuídos a sua má utilização constitui, além da violação dos direitos de propriedade intelectual da própria Jovool, a violação também dos direitos de imagem destes indivíduos. Você será responsável civil e penalmente pelos atos que praticar e vier a violar estes direitos.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_4\"},[_vm._v(\"4.9 Não é de responsabilidade da Jovool a verificação da veracidade das informações divulgadas por você por meio dos anúncios de vagas, vídeos institucionais e quaisquer outras informações disponibilizadas dentro da plataforma ou por meio da plataforma.\")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_7\",attrs:{\"value\":\"5\"}},[_c('b',{staticClass:\"calibre3\"},[_vm._v(\"CONDIÇÕES DE PAGAMENTO E CANCELAMENTO\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_8\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('div',{staticClass:\"calibre4\"},[_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.1. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"A Jovool disponibiliza planos de assinatura mensal com valores e condições de acesso diferenciados. Você deverá escolher o plano no momento do cadastro na Plataforma.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.2. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"É permitida a alteração a qualquer momento do plano, que deverá ser realizada por meio do site.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.3. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"Em caso de mudança do plano em que haja uma correção de valores, a cobrança do mês seguinte refletirá a diferença entre os valores dos planos, de modo proporcional ao tempo de uso do novo plano.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.4. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"Os planos serão renovados mês após mês automaticamente. Caso você queira encerrar a assinatura do plano, este processo deverá ser realizado diretamente pelo site.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.5. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"Com a renovação automática mensalmente, caso você tenha optado pela forma de pagamento via cartão de crédito, o valor da mensalidade será cobrado automaticamente em sua próxima fatura. Caso você tenha optado pela forma de pagamento via boleto bancário, será gerado um novo boleto automaticamente que ficará disponível para acesso na plataforma e caso o pagamento não ocorra até a data de vencimento do boleto, o acesso à plataforma será automaticamente bloqueado até que o pagamento seja efetuado.\")])]),_vm._v(\" \"),_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.6. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"\\n Em hipótese alguma, a Jovool\\n \"),_c('span',{staticClass:\"calibre6\"},[_vm._v(\"devolverá o valor investido referente ao mês vigente da assinatura, caso o cancelamento seja feito com mais de sete dias a contar da data do cadastro inicial.\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"block_9\"},[_c('span',{staticClass:\"bullet_\"},[_vm._v(\"5.7. \")]),_vm._v(\" \"),_c('span',{staticClass:\"calibre5\"},[_vm._v(\"Somente não serão aplicados os itens de 5.4 a 5.6 ao modelo de assinatura gratuito, disponível para experimentação de novos clientes pelo prazo de um mês, a contar da data de liberação de acesso. Ao final deste prazo, a assinatura será automaticamente encerrada e os acessos bloqueados.\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_10\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_6\",attrs:{\"value\":\"6\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"ABUSOS E IRREGULARIDADES\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"6.1. Você deverá comunicar à Jovool caso identifique conteúdos ofensivos ou ilegais que sejam transmitidos por outros usuários, tais como candidatos que estejam participando das etapas do processo seletivo dentro da Plataforma. Esta denúncia será sempre anônima, e quando feita online, será realizada por meio do email contato@jovool.com.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"6.2. A Jovool possui total autonomia e independência para decidir se apurará ou não as denúncias que lhe forem encaminhadas.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"6.3. Usuários que se comportarem de modo irregular, abusivos e/ou ilícito poderão ter seu acesso suspenso e/ou cancelado na Plataforma.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"6.4. Você indenizará a Jovool por qualquer dano que causar à Jovool e/ou a terceiros em decorrência do descumprimento de qualquer disposição destes Termos de Uso.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\",attrs:{\"value\":\"7\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"FIM DO ACESSO À PLATAFORMA JOVOOL\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n 7.1. A Jovool pode, a qualquer momento, encerrar, suspender ou interromper seu acesso à Plataforma caso você viole a legislação ou descumpra qualquer disposição destes Termos de Uso ou de qualquer outro instrumento da Jovool\\n \"),_c('span',{staticClass:\"calibre1\"},[_vm._v(\"ao qual você esteja vinculado.\")])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"7.2. Ressalvada a hipótese prevista no item 5.1 acima, você terá acesso à Plataforma enquanto perdurar o contrato vigente que você tiver adquirido e comprovadamente pago.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\",attrs:{\"value\":\"8\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"EXCLUSÃO DE GARANTIAS E RESPONSABILIDADES\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"8.1. Você concorda que a Jovool não é responsável por danos decorrentes do mau funcionamento de seu site e da Plataforma e pela interrupção de seu acesso.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"8.2. A Jovool se utiliza das melhores práticas de mercado para manter seguras as informações que você disponibiliza na Plataforma. A Jovool não é responsável, no entanto, por danos e prejuízos de qualquer natureza decorrentes do conhecimento que terceiros não autorizados tenham sobre suas informações, por falha atribuível a você ou a terceiros e que fujam do controle razoável da Jovool.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"8.3. A Jovool poderá realizar a qualquer momento todas as alterações em seu site e na Plataforma que julgar necessárias, sem precisar avisá-lo com antecedência.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n 8.4. A Jovool apenas será obrigada a pagar a você indenizações pelos danos diretos que a Jovool tiver comprovadamente causado a você, sempre limitado ao montante total que você tiver pago à Jovool\\n \"),_c('span',{staticClass:\"calibre1\"},[_vm._v(\".\")])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"8.5 Fica certo e acordado que Jovool e você possuem conhecimento e cumprirão as disposições da LGPD, 13.709/2018, a Lei Geral de Proteção de Dados (“LGPD”), que dispõe sobre a proteção de dados pessoais no Brasil, que devem ser cumpridas durante toda a vigência deste Contrato. As Partes comprometem-se a tratar (coletar, processar, compartilhar e utilizar) assegurando a confidencialidade das informações e que sejam obtidos conforme os arts. 7 e 11 da LGPD.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\",attrs:{\"value\":\"9\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"PRAZO DE VIGÊNCIA E TÉRMINO DO CONTRATO\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"9.1 Este Termo de Uso tem validade de um ano e será renovado automaticamente após este período podendo ser encerrado a qualquer momento pela Jovool ou por você.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"\\n 9.2\\n \"),_c('span',{staticClass:\"calibre1\"},[_vm._v(\"No encerramento deste Termo de Uso, por quaisquer que sejam as razões, você não terá mais acesso à Plataforma, incluindo todo e qualquer conteúdo lá disposto tais como entrevistas realizadas pela ferramenta de vídeo, informações dos candidatos, status do processo seletivo entre outros.\")])]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('ol',{staticClass:\"list_\"},[_c('li',{staticClass:\"block_3\",attrs:{\"value\":\"10\"}},[_c('b',{staticClass:\"calibre2\"},[_vm._v(\"DIVERSOS\")])])]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"10.1. Lei Aplicável. Estes Termos de Uso serão regidos e interpretados de acordo com lei brasileira.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"10.2. Atendimento, Dúvidas e Conflitos. Para obter mais informações sobre a Plataforma ou caso precise de ajuda com seu acesso à Plataforma, por favor, acesse o e-mail de contato em nosso site. Se houver conflitos entre estes Termos de Uso e as informações transmitidas durante o atendimento, estes Termos de Uso prevalecerão.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"10.3. Invalidade, Ilegalidade e Inaplicabilidade. Se qualquer disposição destes Termos de Uso for considerada inválida, ilegal ou inaplicável, isso não afetará as demais disposições, que permanecerão válidas, legais e aplicáveis.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"10.4. Alteração dos Termos de Uso e Cessão. A Jovool pode alterar estes Termos de Uso a qualquer tempo. Neste caso, você será notificado em até 30 dias antes que as alterações se apliquem a você. A qualquer momento, a Jovool pode ceder ou transferir o contrato que eventualmente mantiver com você, inclusive os direitos e obrigações a ele associados.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_2\"},[_vm._v(\"10.5. Resolução de Conflitos. O foro para resolver eventuais disputas referentes a estes Termos de Uso será o central da capital de São Paulo - SP.\")]),_vm._v(\" \"),_c('p',{staticClass:\"block_1\"},[_vm._v(\" \")])])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Terms.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Terms.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
TERMOS E CONDIÇÕES DE USO DA PLATAFORMA JOVOOL
\n
\n
\n A Jovool\n presta serviços relacionados à recrutamento e seleção por meio de sua Plataforma de recrutamento com entrevistas por vídeo. \n
\n
Por meio de seu site, a Jovool oferece aos seus clientes ferramentas e soluções para o controle e organização de processos seletivos, divulgação de anúncios de vagas em canais de comunicação e a possibilidade de realizar as entrevistas com candidatos de forma remota por vídeos ao vivo e/ou gravados.
\n
Estes Termos de Uso regulam a sua utilização no que se refere ao uso do site da Jovool e ao oferecimento da Plataforma de Recrutamento e Seleção, bem como do uso que o usuário fizer destas Plataformas de Serviços e Produtos. O termo “serviço”, quando utilizado, significa o serviço personalizado fornecido pela Jovool da plataforma de recrutamento e entrevistas por vídeo.
\n
O termo “Você” se refere à pessoa física ou à pessoa jurídica titular dos dados de login criados para acessar a Plataforma Jovool.
\n
\n
\n \n ACEITAÇÃO DO CONTRATO \n \n \n
1.1. Ao clicar no botão “Eu li e concordo”, quando do cadastro online para uso da Plataforma da Jovool em nosso site, você automaticamente concordará com estes Termos de Uso.
\n
1.2. Se você não concordar com estes Termos e Uso, recomendamos que você não finalize o seu cadastro nem faça utilização de nosso site.
\n
1.3. Ao acessar e se cadastrar em nosso site e na plataforma, você declara ser civilmente capaz para compreender, aceitar e cumprir estes Termos de Uso.
\n
\n 1.4. Se você ficar com qualquer dúvida após ter lido estes Termos de Uso, por favor entre em contato conosco por meio do e-mail\n contato@jovool.com .\n
\n
\n
\n \n CONDIÇÕES GERAIS \n \n \n
\n 2.1.\n O acesso à Plataforma da Jovool será liberado após você preencher todos os dados cadastrais obrigatórios e fizer a escolha do plano a ser utilizado e o respectivo pagamento confirmado. Logo após, a Jovool criará e disponibilizará a você login para acesso à Plataforma.\n
\n
2.2. Você é o único responsável pela veracidade das informações que fornece, sendo que a Jovool não se responsabilizará por informações erradas e/ou falsas. Além disso, você deverá manter todas as suas informações atualizadas.
\n
2.3. Se a Jovool constatar que você forneceu alguma informação errada / falsa, seu cadastro poderá ser automaticamente cancelado.
\n
2.4. Você é exclusivamente responsável pela segurança de sua senha, e não deverá compartilhá-la com terceiros. Você é o único responsável por qualquer uso indevido em seu perfil, inclusive aqueles decorrentes de uso de sua senha por terceiros.
\n
\n
\n 2.5. Você está ciente de que o mero cadastro no site não acarretará acesso à plataforma oferecida pela Jovool\n . O acesso só será autorizado após comprovação do pagamento, com exceção da utilização concedida em caráter de experimentação gratuito, que dá acesso à dois logins por CNPJ cadastrado. \n
\n
2.6. Você pode exercer, no prazo de 7 dias a contar da disponibilização do acesso à plataforma, seu direito de arrependimento, nos termos do artigo 49 da Lei nº 8.098/90 (Código de Defesa do Consumidor). Você poderá requerer o cancelamento do acesso e a devolução dos valores pagos por meio do email contato@jovool.com ou ligar diretamente para a empresa através do telefone publicado no website.
\n
\n
\n \n FINALIDADES DE USO DA PLATAFORMA \n \n \n
Por meio do uso da Plataforma é possível:
\n
3.1. Criar e organizar um processo seletivo, por meio da metolodogia Kaban realizando a triagem de candidatos de acordo com o perfil buscado para cada processo seletivo.
\n
3.2 Fazer uso da ferramenta de vídeo com até 5 pessoas de forma simultânea.
\n
3.3 Realizar entrevistas de forma programa ou real time por vídeo.
\n
3.4 Controlar as respostas dos candidatos com limite de tempo do vídeo e de tentativas de gravação.
\n
3.5 Utilizar o sistema de feedback automatizado para candidatos reprovados e o sistema de rankeamento de candidatos, bem como a gestão de indicadores de todas as etapas do processo.
\n
3.6 Compartilhar vídeos por e-mail com outras pessoas que não necessariamente possuem acesso à plataforma. Pelo período de até sete dias o link ficará ativo.
\n
3.7 Compartilhar vídeos institucionais e mensagens personalizadas apresentando sua marca ou criar processos confidenciais.
\n
3.8 Divulgar vagas em diversos canais de comunicação.
\n
\n
\n \n NORMAS DE CONDUTA E PROTEÇÃO À PROPRIEDADE INTELECTUAL \n \n \n
4.1. Você deverá cumprir a legislação do local onde estiver situado, bem como a legislação do Brasil.
\n
4.2. Você declara que não produzirá, reproduzirá, disponibilizará, divulgará ou transmitirá conteúdo:
\n
(i) contrário à legislação brasileira, ou que incentive qualquer forma de discriminação, racismo, homofobia e/ou violência;
\n
(ii) protegido por direitos de propriedade intelectual ou industrial de terceiros, sem que você esteja devidamente autorizado a usá-los pelos titulares destes direitos;
\n
(iii) sejam capazes de gerar danos ou impedir o normal funcionamento da rede, sistema ou equipamentos informáticos (hardware e software) da Jovool ou de terceiros, ou que possam danificar os arquivos armazenados virtualmente;
\n
(iv) causem dificuldades ao funcionamento normal do site da Jovool bem como de seus respectivos produtos e serviços.
\n
4.3. Você declara e reconhece que é o único responsável pelo uso que fizer da plataforma Jovool, bem como pelos atos que praticar enquanto estiver se utilizando dos serviços.
\n
4.4 Você está ciente de que há áreas restritas dentro do site da Jovool acessíveis apenas mediante login e senha especiais. Assim, ainda que por algum erro e/ou falha do sistema da Jovool você tiver acesso a estas áreas restritas, você deverá imediatamente encerrar o acesso, ficando civil e criminalmente responsável pelos danos que forem causados caso você não siga estas instruções.
\n
4.5. O conteúdo disponibilizado na Plataforma Jovool como logomarcas, vídeos, arquivos, textos, ícones, desenhos, layouts, sons, algoritmos (são de propriedade exclusiva da Jovool) ou de terceiros que autorizaram a Jovool a usá-los, estando protegidos pela lei. Nesse sentido, fica vedada sua cópia, reprodução ou qualquer tipo de utilização sem a autorização prévia e por escrita do titular deste direito.
\n
4.6. Ao usar a plataforma você concorda que não está autorizado a citar as marcas, os nomes comerciais e logotipos que lhe forem disponibilizados.
\n
4.7. Ao participar de qualquer entrevista, reunião e vídeos de forma geral online você autoriza a Jovool a utilizar sua imagem e sua voz em qualquer material que a Jovool vier a produzir, seja ele físico ou virtual.
\n
4.8. Todos os indivíduos – incluindo os candidatos – autorizam a Jovool a utilizarem sua imagem e voz durante a reprodução dos vídeos ao vivo e/ou gravados dentro da própria plataforma. Assim, você concorda que o uso indevido destes conteúdos atribuídos a sua má utilização constitui, além da violação dos direitos de propriedade intelectual da própria Jovool, a violação também dos direitos de imagem destes indivíduos. Você será responsável civil e penalmente pelos atos que praticar e vier a violar estes direitos.
\n
4.9 Não é de responsabilidade da Jovool a verificação da veracidade das informações divulgadas por você por meio dos anúncios de vagas, vídeos institucionais e quaisquer outras informações disponibilizadas dentro da plataforma ou por meio da plataforma.
\n
\n \n CONDIÇÕES DE PAGAMENTO E CANCELAMENTO \n \n \n
\n
\n
\n 5.1. \n A Jovool disponibiliza planos de assinatura mensal com valores e condições de acesso diferenciados. Você deverá escolher o plano no momento do cadastro na Plataforma. \n
\n
\n 5.2. \n É permitida a alteração a qualquer momento do plano, que deverá ser realizada por meio do site. \n
\n
\n 5.3. \n Em caso de mudança do plano em que haja uma correção de valores, a cobrança do mês seguinte refletirá a diferença entre os valores dos planos, de modo proporcional ao tempo de uso do novo plano. \n
\n
\n 5.4. \n Os planos serão renovados mês após mês automaticamente. Caso você queira encerrar a assinatura do plano, este processo deverá ser realizado diretamente pelo site. \n
\n
\n 5.5. \n Com a renovação automática mensalmente, caso você tenha optado pela forma de pagamento via cartão de crédito, o valor da mensalidade será cobrado automaticamente em sua próxima fatura. Caso você tenha optado pela forma de pagamento via boleto bancário, será gerado um novo boleto automaticamente que ficará disponível para acesso na plataforma e caso o pagamento não ocorra até a data de vencimento do boleto, o acesso à plataforma será automaticamente bloqueado até que o pagamento seja efetuado. \n
\n
\n 5.6. \n \n Em hipótese alguma, a Jovool\n devolverá o valor investido referente ao mês vigente da assinatura, caso o cancelamento seja feito com mais de sete dias a contar da data do cadastro inicial. \n \n
\n
\n 5.7. \n Somente não serão aplicados os itens de 5.4 a 5.6 ao modelo de assinatura gratuito, disponível para experimentação de novos clientes pelo prazo de um mês, a contar da data de liberação de acesso. Ao final deste prazo, a assinatura será automaticamente encerrada e os acessos bloqueados. \n
\n
\n
\n
\n \n ABUSOS E IRREGULARIDADES \n \n \n
6.1. Você deverá comunicar à Jovool caso identifique conteúdos ofensivos ou ilegais que sejam transmitidos por outros usuários, tais como candidatos que estejam participando das etapas do processo seletivo dentro da Plataforma. Esta denúncia será sempre anônima, e quando feita online, será realizada por meio do email contato@jovool.com.
\n
6.2. A Jovool possui total autonomia e independência para decidir se apurará ou não as denúncias que lhe forem encaminhadas.
\n
6.3. Usuários que se comportarem de modo irregular, abusivos e/ou ilícito poderão ter seu acesso suspenso e/ou cancelado na Plataforma.
\n
6.4. Você indenizará a Jovool por qualquer dano que causar à Jovool e/ou a terceiros em decorrência do descumprimento de qualquer disposição destes Termos de Uso.
\n
\n
\n \n FIM DO ACESSO À PLATAFORMA JOVOOL \n \n \n
\n 7.1. A Jovool pode, a qualquer momento, encerrar, suspender ou interromper seu acesso à Plataforma caso você viole a legislação ou descumpra qualquer disposição destes Termos de Uso ou de qualquer outro instrumento da Jovool\n ao qual você esteja vinculado. \n
\n
7.2. Ressalvada a hipótese prevista no item 5.1 acima, você terá acesso à Plataforma enquanto perdurar o contrato vigente que você tiver adquirido e comprovadamente pago.
\n
\n
\n \n EXCLUSÃO DE GARANTIAS E RESPONSABILIDADES \n \n \n
8.1. Você concorda que a Jovool não é responsável por danos decorrentes do mau funcionamento de seu site e da Plataforma e pela interrupção de seu acesso.
\n
8.2. A Jovool se utiliza das melhores práticas de mercado para manter seguras as informações que você disponibiliza na Plataforma. A Jovool não é responsável, no entanto, por danos e prejuízos de qualquer natureza decorrentes do conhecimento que terceiros não autorizados tenham sobre suas informações, por falha atribuível a você ou a terceiros e que fujam do controle razoável da Jovool.
\n
8.3. A Jovool poderá realizar a qualquer momento todas as alterações em seu site e na Plataforma que julgar necessárias, sem precisar avisá-lo com antecedência.
\n
\n 8.4. A Jovool apenas será obrigada a pagar a você indenizações pelos danos diretos que a Jovool tiver comprovadamente causado a você, sempre limitado ao montante total que você tiver pago à Jovool\n . \n
\n
8.5 Fica certo e acordado que Jovool e você possuem conhecimento e cumprirão as disposições da LGPD, 13.709/2018, a Lei Geral de Proteção de Dados (“LGPD”), que dispõe sobre a proteção de dados pessoais no Brasil, que devem ser cumpridas durante toda a vigência deste Contrato. As Partes comprometem-se a tratar (coletar, processar, compartilhar e utilizar) assegurando a confidencialidade das informações e que sejam obtidos conforme os arts. 7 e 11 da LGPD.
\n
\n
\n \n PRAZO DE VIGÊNCIA E TÉRMINO DO CONTRATO \n \n \n
9.1 Este Termo de Uso tem validade de um ano e será renovado automaticamente após este período podendo ser encerrado a qualquer momento pela Jovool ou por você.
\n
\n 9.2\n No encerramento deste Termo de Uso, por quaisquer que sejam as razões, você não terá mais acesso à Plataforma, incluindo todo e qualquer conteúdo lá disposto tais como entrevistas realizadas pela ferramenta de vídeo, informações dos candidatos, status do processo seletivo entre outros. \n
\n
\n
\n \n DIVERSOS \n \n \n
10.1. Lei Aplicável. Estes Termos de Uso serão regidos e interpretados de acordo com lei brasileira.
\n
10.2. Atendimento, Dúvidas e Conflitos. Para obter mais informações sobre a Plataforma ou caso precise de ajuda com seu acesso à Plataforma, por favor, acesse o e-mail de contato em nosso site. Se houver conflitos entre estes Termos de Uso e as informações transmitidas durante o atendimento, estes Termos de Uso prevalecerão.
\n
10.3. Invalidade, Ilegalidade e Inaplicabilidade. Se qualquer disposição destes Termos de Uso for considerada inválida, ilegal ou inaplicável, isso não afetará as demais disposições, que permanecerão válidas, legais e aplicáveis.
\n
10.4. Alteração dos Termos de Uso e Cessão. A Jovool pode alterar estes Termos de Uso a qualquer tempo. Neste caso, você será notificado em até 30 dias antes que as alterações se apliquem a você. A qualquer momento, a Jovool pode ceder ou transferir o contrato que eventualmente mantiver com você, inclusive os direitos e obrigações a ele associados.
\n
10.5. Resolução de Conflitos. O foro para resolver eventuais disputas referentes a estes Termos de Uso será o central da capital de São Paulo - SP.
\n
\n
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Terms.vue?vue&type=template&id=46081f2e&\"\nimport script from \"./Terms.vue?vue&type=script&lang=js&\"\nexport * from \"./Terms.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AdminCandidate',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 1 – Aceite\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"1.1. Ao acessar a Plataforma da Jovool, o Usuário deverá ler o conteúdo desta Política e, se estiver de acordo com as condições apresentadas, manifestar o seu consentimento livre, expresso, informado e inequívoco, por meio da seleção do \"),_c('em',[_vm._v(\"checkbox \")]),_vm._v(\"correspondente à opção \"),_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"“Eu li e concordo com os Termos de Uso e Política de Privacidade”\")])])]),_vm._v(\". Tal consentimento poderá ser revogado a qualquer momento, por meio de um de nossos Canais de Atendimento, indicados na Cláusula 14.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"1.2. Entretanto, ao revogar o seu consentimento, o Usuário compreende que isso poderá restringir, suspender ou cancelar alguns e/ou todos os Serviços ofertados pela Jovool. De todo modo, assim que nós recebermos uma solicitação neste sentido, seus Dados Pessoais serão excluídos, salvo em casos em que a lei permitir seu armazenamento ou que as informações sejam necessárias para o cumprimento de obrigação legal e/ou regulatória.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 2 – Definições\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"2.1. A Política de Privacidade será regida pelas definições dos termos em maiúsculo estabelecidas nos Termos de Uso da Plataforma da Jovool, além dos abaixo listados. Caso haja algum termo não abordado nesta Política ou nos Termos de Uso, a interpretação deverá ser de acordo com a legislação brasileira:\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(i) \"),_c('strong',[_vm._v(\"Dado Pessoal:\")]),_vm._v(\" informações relacionadas ao Usuário, que o identificam ou podem vir a identificá-lo;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(ii) \"),_c('strong',[_vm._v(\"Dado Pessoal Sensível:\")]),_vm._v(\" são dados sobre origem racial ou étnica, convicção religiosa, opinião política, filiação à sindicato ou a organização de caráter religioso, filosófico ou político, dado referente à saúde ou à vida sexual, dado genético ou biométrico que, em conjunto com Dado Pessoal, serão denominados Dados Pessoais;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(iii) \"),_c('strong',[_vm._v(\"Tratamento:\")]),_vm._v(\" toda operação que realizarmos com os Dados Pessoais de Usuários, como as que se referem a coleta, produção, recepção, classificação, utilização, acesso, reprodução, transmissão, distribuição, processamento, arquivamento, armazenamento, eliminação, avaliação ou controle da informação, modificação, comunicação, transferência, difusão ou extração;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(iv) \"),_c('strong',[_vm._v(\"Controlador:\")]),_vm._v(\" no âmbito desta Política, e no escopo do nosso relacionamento com o Usuário, a Jovool, a quem competem as decisões referentes ao Tratamento dos Dados Pessoais;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(v) \"),_c('strong',[_vm._v(\"Operador:\")]),_vm._v(\" pessoa natural ou jurídica, de direito público ou privado, que realiza o Tratamento de Dados Pessoais em nome do Controlador;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(vi) \"),_c('strong',[_vm._v(\"Titular dos Dados:\")]),_vm._v(\" no âmbito desta Política, o Usuário, Candidato ou Recrutador (quando pessoa física), a quem se referem os Dados Pessoais que são objeto de Tratamento;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(vii)\"),_c('strong',[_vm._v(\" Candidato:\")]),_vm._v(\" no âmbito desta Política, a \"),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"pessoa física titular dos dados de \")]),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_c('em',[_vm._v(\"login\")])]),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\" criados para acessar a Plataforma da Jovool como candidato a uma vaga de emprego divulgada por Recrutadores;\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"(viii) \")]),_c('strong',[_vm._v(\"Recrutador:\")]),_vm._v(\" no âmbito desta Política, \"),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"se refere aos clientes da Talenses, que utilizam a Plataforma da Jovool para a realização de seus processos seletivos;\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(ix) \"),_c('strong',[_vm._v(\"Usuário:\")]),_vm._v(\" no âmbito desta Política, os Candidatos e Recrutadores, em conjunto, \"),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"que utilizam os Serviços e produtos da Plataforma da Jovool\")]),_vm._v(\".\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 3 – Dados Coletados\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.1. Ao utilizar a Plataforma da Jovool, o Usuário poderá nos fornecer algumas informações importantes para que possamos prestar um serviço adequado, que podem ser divididas em duas categorias:\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.1.1\"),_c('strong',[_vm._v(\". Dados disponibilizados \")]),_c('strong',[_vm._v(\"pelos Usuários de forma ativa e voluntária:\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('strong',[_vm._v(\"a) Quando do cadastro e utilização da Plataforma da Jovool pelos Candidatos e Recrutadores:\")]),_vm._v(\" nome completo e e-mail; OU vídeos e informações de voz e áudio gravados (que poderão conter outras informações pessoais do Candidato), salário atual, currículo em PDF ou doc;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('strong',[_vm._v(\"b) Quando o cadastro do Candidato na Plataforma ocorrer pelo LinkedIn:\")]),_vm._v(\" dados pessoais vinculados à sua conta do LinkedIn, que podem envolver Nome, E-mail, Foto de Perfil, Experiência Profissional, etc.;\")]),_vm._v(\" \"),_c('p',[_c('strong',[_vm._v(\"c) Pelo Candidato, \")]),_c('strong',[_vm._v(\"quando da realização de entrevistas ao vivo (“lives”):\")]),_vm._v(\" vídeos, informações de áudio e voz, eventuais informações pessoais adicionais fornecidas pelo Candidato na entrevista ao vivo realizada;\")]),_vm._v(\" \"),_c('ol',{attrs:{\"start\":\"2\",\"type\":\"a\"}},[_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_c('strong',[_vm._v(\"Quando da inserção de informações para Suporte ou Feedback/Sugestões:\")]),_vm._v(\" nome, e-mail, telefone, empresa.\")])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.1.2. \"),_c('strong',[_vm._v(\"Dados coletados pela Jovool:\")])]),_vm._v(\" \"),_c('ol',{attrs:{\"type\":\"a\"}},[_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_c('strong',[_vm._v(\"Dados de Acesso:\")]),_vm._v(\" informações coletadas por meio da utilização do \"),_c('em',[_vm._v(\"website\")]),_vm._v(\", como informações de tela e resolução, endereço do protocolo de Internet (IP), tempo médio gasto, data e localização de acesso à Plataforma da Jovool. Além disso, caso o Usuário acione os Canais de Comunicação da Jovool, os registros serão mantidos para fins de segurança.\")])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.2. Os Dados Pessoais de Candidatura e entrevistas ao vivo (“\"),_c('em',[_vm._v(\"lives\")]),_vm._v(\"”) serão compartilhados com os Recrutadores, que poderão tratar esses dados internamente ou realizar o uso compartilhado dessas informações com outras empresas de seu grupo econômico. A Jovool não se responsabiliza pelo Tratamento de Dados Pessoais realizado pelos Recrutadores.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.3. \"),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"Ao participar de qualquer entrevista, reunião e vídeos de forma geral online,\")]),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_c('strong',[_vm._v(\" o Usuário autoriza a Jovool a utilizar sua imagem e sua voz, coletadas por meio dos vídeos ao vivo e/ou gravados dentro da Plataforma\")])]),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\", especificamente para a finalidade de desenvolver o processo de Candidatura para o qual preencheu suas informações e demonstrou interesse ou para permitir o desenvolvimento do processo seletivo com o Candidato.\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.4. Considerando que os dados pessoais advindos de recursos de vídeo, áudio e voz – gravados ou ao vivo – nas entrevistas serão utilizados para a identificação dos titulares, tais dados se enquadram como Dados Pessoais Sensíveis. Neste sentido\"),_c('strong',[_vm._v(\", o Usuário declara que consente, de forma específica e em destaque, com o tratamento de seus Dados Pessoais Sensíveis para a finalidade específica de Candidatura e desenvolvimento do processo seletivo oferecido pelos Recrutadores\")]),_vm._v(\", em conformidade com a legislação brasileira aplicável.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.5. Especificamente em relação aos dados de acesso coletados pela Jovool, estes poderão ser obtidos através da utilização de \"),_c('em',[_vm._v(\"Cookies\")]),_vm._v(\" e tecnologias semelhantes, o que será abordado na Cláusula 10. A implementação e acesso de \"),_c('em',[_vm._v(\"Cookies\")]),_vm._v(\" se destina à melhoria da qualidade das informações fornecidas pela Jovool, tornando a experiência do Usuário na Plataforma cada vez mais aprimorada, de acordo com seus interesses e demandas.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.6. Ao integrar a conta da Plataforma da Jovool ao LinkedIn, incluindo ao fazer login nesta Plataforma através de conta da rede social em questão, o Candidato concorda em compartilhar seus dados – incluindo informações pessoais – entre a Jovool e o LinkedIn, para os fins previstos na presente Política de Privacidade, até a exclusão de sua conta no LinkedIn ou nesta Plataforma.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.6.1. Na primeira interação entre a conta do LinkedIn e a conta da Plataforma da Jovool, a Jovool solicitará sua permissão para compartilhar as informações pessoais presentes na rede social – como Nome, Endereço de E-mail, Lista de Amigos, Foto do Perfil, Experiência Profissional e outras informações disponíveis publicamente no LinkedIn – com a Plataforma da Jovool.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"3.7. A Jovool se reserva o direito de solicitar complementações de seus dados, deixando claro que o Usuário sempre terá a opção de fornecê-los ou não. Lembramos, entretanto, que poderá haver instabilidade ou mesmo a impossibilidade de prestação dos nossos Serviço, em face da ausência desses dados essenciais.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 4 – Finalidades para Utilização dos Dados Pessoais\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"4.1. Os Dados Pessoais serão utilizados pela Jovool para que possamos prestar nossos Serviços a todos os nossos Usuários, em conformidade com os nossos objetivos de conectar Candidatos com Recrutadores, possibilitando um processo seletivo remoto de alta performance. Listamos as finalidades específicas abaixo:\")]),_vm._v(\" \"),_c('ul',[_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Cadastro de Recrutadores para utilização da Plataforma da Jovool para gestão de processos seletivos;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Cadastro de Candidatos na Plataforma da Jovool, permitindo acesso aos nossos Serviços de Candidaturas de vagas, envio de vídeos gravados para processos seletivos, entrevistas de processos seletivos realizadas em tempo real (“lives”), etc.;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Submissão dos Candidatos nos processos seletivos de seu interesse, a partir do link de acesso;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Armazenamento de vídeos, recursos de áudio e voz e currículos dos Candidatos, utilizados nas entrevistas e processos seletivos com os Recrutadores, para gestão de Candidaturas pelos Recrutadores;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Comunicação com os Usuários, notificando-os sobre a confirmação de cadastro e Candidatura em processos seletivos, evolução no processo seletivo e atualização do status de Candidatura, aprovação em vagas, solicitação de documentos pendentes, cópia do candidato para vagas similares, suporte, feedback/sugestões, entre outros Serviços da Jovool;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Backup de currículos e outros Dados Pessoais pelos Recrutadores, através da Plataforma da Jovool;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Análise do desempenho da Plataforma da Jovool, medição da audiência, verificação de hábitos de navegação, a forma pela qual o Usuário chegou à página, avaliação de estatísticas de acesso e uso do site e aplicativo, seus recursos e funcionalidades;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Promoção, melhoria e desenvolvimento dos nossos Serviços;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Realização de Auditorias Internas e Externas;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Cumprimento de obrigações legais e/ou regulatórias e auxílio aos órgãos de cumprimento da lei;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Prevenção antifraude;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Mapeamento de informações de mercado, estatísticas e elaboração de relatório de dados;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Análises relacionadas à segurança da Plataforma e à segurança da informação, prevenindo erros/falhas técnicas;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Publicidade, \"),_c('em',[_vm._v(\"marketing \")]),_vm._v(\"e campanhas digitais;\")])]),_vm._v(\" \"),_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"Pesquisas de satisfação.\")])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"4.2. Para atingir as finalidades listadas acima, e para garantir a transparência sobre a forma de prestação dos nossos Serviços aos Usuários, a Jovool e seus parceiros licenciados poderão te contatar por meio dos seguintes canais de comunicação: (i) Telefone; (ii) E-mail; e (iii) Chat. Ademais, os Recrutadores poderão entrar em contato com o Candidato por meio da Plataforma da Jovool.\")]),_vm._v(\" \"),_c('ol',{attrs:{\"start\":\"4\"}},[_c('ol',{attrs:{\"start\":\"2\"}},[_c('ol',[_c('li',[_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"A Jovool e seus parceiros licenciados poderão entrar em contato com Você em casos de: (i) Confirmação de cadastro; (ii) Confirmação de Candidatura para vagas de processos seletivos disponibilizados na Plataforma; (iii) Evolução no processo seletivo e atualização de status da Candidatura; iv) Aprovação em vagas; v) Solicitação de documentos pendentes; vi) Copiar Candidato para vagas similares; vii) Suporte (por telefone/chat) ou Feedback/Sugestões (comentários, report de bugs, sugestão de features/funcionalidades ou outros) no Chat de entrevistas ao vivo (“lives”); viii) dentre outros assuntos decorrentes de seu cadastro e da utilização de nossos Serviços.\")])])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"4.3. Caso o Candidato seja Reprovado em algum processo seletivo, os Recrutadores poderão entrar em contato por meio da Plataforma da Jovool, a fim de oferecer possibilidades de processos seletivos similares e reaproveitar sua candidatura em novas oportunidades de emprego. \")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"4.3.1. Considerando as atividades prestadas por meio da Plataforma da Jovool e o fluxo de informações envolvido, o Candidato fica ciente de que, ao se candidatar para uma vaga, o seu perfil poderá ser compartilhado com outras vagas semelhantes, que guardem relação com sua área de atuação. \")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"4.3.2. O Candidato poderá retirar sua candidatura a vagas semelhantes a qualquer momento, contatando-nos através do nosso canal de comunicação pelo e-mail \")]),_c('span',{staticStyle:{\"color\":\"#0000ff\"}},[_c('u',[_c('a',{attrs:{\"href\":\"mailto:contato@jovool.com\"}},[_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"contato@jovool.com\")])])])]),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\". \")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 5 – Compartilhamento das suas Informações \")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1. Os Dados Pessoais dos Usuários poderão ser compartilhados de acordo com as finalidades específicas listadas na Cláusula 4. A Jovool se compromete a fazê-lo com parceiros que empreguem alto nível de segurança da informação, estabelecendo cláusulas contratuais protetivas que não violem as disposições dessa Política. Além disso, listamos abaixo as hipóteses de compartilhamento das informações de Usuários tratadas pela Jovool:\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.1. Quanto aos Dados Pessoais de Candidatos, com empresas Recrutadoras, que anunciam os requisitos de seus processos seletivos na Plataforma da Jovool e divulgam suas oportunidades através de link de acesso ao processo seletivo na Plataforma;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.2. Quanto aos Dados Pessoais de Candidatos, com terceiros das empresas Recrutadoras, envolvidos na tomada de decisão dos processos seletivos desenvolvidos (como, por exemplo, gerentes/diretores das empresas);\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.3. Com empresas parceiras licenciadas, para o oferecimento de serviços de suporte e feedback/sugestões;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.4. Com o LinkedIn, na hipótese de cadastro do Candidato por meio de conta da rede social;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.5. Com empresas do mesmo grupo econômico da Jovool, para fins publicitários, estatísticos e para prestação dos Serviços da Plataforma;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.6. Com empresas de consultoria e escritórios de advocacia, para proteção dos nossos interesses, incluindo casos de demandas judiciais e administrativas;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.7. Em caso de operações societárias, quando a transferência dos Dados Pessoais for necessária para a continuidade dos Serviços ofertados, ou quando garantidos meios de anonimização;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.8. Com empresas fornecedoras, para armazenamento em nuvem, gerenciamento de banco de dados, análise de dados e melhorias das funcionalidades;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.9. Mediante ordem judicial ou por requerimento de Autoridades Públicas ou Reguladoras que detenham competência para requisição;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.10. Com empresas de auditorias e análise de qualidade da prestação dos Serviços da Jovool;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"5.1.11. Com órgãos e autoridades públicas, para fins de cumprimento de obrigações legais e/ou regulatórias.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 6 – Segurança das Informações \")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"6.1. Todos os Dados Pessoais tratados pelo Jovool serão armazenados em servidores próprios ou em serviços de nuvem confiáveis, de parceiros que podem estar localizados no Brasil, ou em outros países, usualmente utilizados para armazenamento de informações, como os Estados Unidos e Europa.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"6.2. A Jovool se compromete a adotar todos os esforços razoáveis, considerando as soluções tecnológicas disponíveis e aplicáveis, para preservar a integridade e segurança das informações pessoais de seus Usuários de acessos não autorizados e de situações acidentais ou ilícitas de destruição, perda, alteração, comunicação ou difusão de seus dados pessoais.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('a',{attrs:{\"name\":\"_Hlk46784760\"}}),_vm._v(\" 6.3. Nós utilizamos o princípio de \"),_c('em',[_vm._v(\"privacy by design\")]),_vm._v(\", o que significa que pensamos a privacidade desde a concepção de nossos Serviços, respeitando e protegendo os Dados Pessoais de nossos Usuários em nossos procedimentos internos.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"6.4. A Jovool tomará todas as medidas técnicas e administrativas que estiverem a seu alcance para manutenção da confidencialidade e segurança dos Dados Pessoais de seus Usuários, tais como:\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(i) métodos padrões de mercado para criptografia dos dados;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(ii) emprego de algoritmos e \"),_c('em',[_vm._v(\"software\")]),_vm._v(\" de alta tecnologia para proteção contra acessos não autorizados à Plataforma da Jovool;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(iii) acesso a locais de armazenamento de dados pessoais apenas por pessoas previamente autorizadas e comprometidas com o sigilo dos dados, inclusive mediante assinatura de termo de confidencialidade;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(iv) utilização de mecanismos de controle e bloqueio de acesso para o acesso de links por e-mail pelos Candidatos, além da utilização de links híbridos pelos Usuários, permitindo que apenas pessoas convidadas através de e-mail possam ingressar nas entrevistas pela Plataforma da Jovool;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(v) utilização de mecanismos de controle e bloqueio de acesso internos, restringindo a utilização dos dados apenas para pessoas previamente autorizadas e responsáveis por determinado tratamento de informações pessoais;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(vi) aplicação de mecanismos de autenticação de acesso aos registros capazes de individualizar o responsável pelo tratamento dos dados coletados em decorrência da utilização da Plataforma;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(vii) sistemas de monitoramento e testes de segurança periódicos, entre outras práticas em prol da segurança da informação e dos Dados Pessoais.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"6.5. Apesar disso, não é possível garantir de forma absoluta a não ocorrência de erros no sistema, incidentes de segurança, violações e acessos não autorizados, considerando que as práticas de segurança da internet encontram-se em constante evolução. Saliente-se, no entanto, que a Jovool se compromete a acompanhar as evoluções e implementar melhorias de segurança constantemente, desde que possíveis e razoáveis, além de sujeitar aqueles que utilizarem indevidamente tais informações às penalidades aplicáveis e demais medidas legais cabíveis.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 7 – Responsabilidades e Boas Práticas dos Usuários \")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"7.1. Considerando que o Usuário da Plataforma da Jovool a utilizará através de um dispositivo pessoal com acesso à Internet, a segurança dos seus Dados Pessoais não depende exclusivamente da Jovool, de modo que o Usuário também deverá estar atento à disponibilidade das suas informações, conforme nossas orientações.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"7.2. Para garantir o cuidado e a diligência com seus Dados Pessoais, o Usuário se compromete a:\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(i) Fornecer informações verdadeiras e manter suas informações pessoais atualizadas, permitindo o funcionamento regular dos Serviços da Plataforma da Jovool;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(ii) Proteger suas informações contra acessos não autorizados ao seu computador ou dispositivo móvel (celular, tablet, etc), contas e senhas;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(iii) Não compartilhar sua senha com terceiros (já que esta possui caráter pessoal e intransferível) e lembrar de atualizá-la com frequência;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(iv) Não compartilhar a usabilidade de sua conta na Plataforma da Jovool com terceiros, ainda que conhecidos;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(v) Manter o programa antivírus/\"),_c('em',[_vm._v(\"firewall\")]),_vm._v(\" e o sistema operacional do computador e/ou qualquer outro dispositivo pessoal utilizado para o acesso à Plataforma atualizados;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(vi) Não permitir que o navegador salve automaticamente a sua senha em dispositivos compartilhados. Em dispositivos particulares, também recomendamos que o Usuário não permita que o navegador memorize sua senha;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(vii) Ao acessar a Plataforma por um computador ou dispositivo móvel compartilhado, certificar-se de que encerrou sua navegação/acesso ao final dela;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(viii) Manter seu navegador de internet e/ou dispositivo pessoal utilizado para o acesso à Plataforma atualizado, conforme orientação do fabricante;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(ix) Ao acessar a Internet em lugares públicos, tomar cuidado para que pessoas próximas não possam ver sua senha e seus dados pessoais, e não permitir a guarda automática de qualquer informação;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(x) Certificar-se de que está utilizando uma conexão segura quando for digitar informações privadas, gravar vídeos ou participar de entrevistas ao vivo no \"),_c('em',[_vm._v(\"website\")]),_vm._v(\" e na Plataforma da Jovool;\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"(xii) Entre outras práticas que possam ser eficientes para garantir a segurança e integridade das suas informações, no momento de utilização dos Serviços da Jovool.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 8 – Período de Retenção \")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.1. A Jovool manterá os Dados Pessoais de seus Usuários enquanto sua conta na Plataforma da Jovool estiver ativa; até atingir as finalidades descritas na Cláusula 4 da presente Política; e/ou para cumprimento de obrigações legais e regulatórias ou exercício regular de direitos decorrentes dos Serviços prestados pela nossa Plataforma.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.2. Também nos comprometemos a excluir os Dados Pessoais de nossos Usuários, interrompendo o seu tratamento, no momento em que o Usuário revogar o seu consentimento, armazenando apenas as informações permitidas e/ou determinadas pela legislação brasileira.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.3. Poderemos também excluir os dados dos Usuários, interrompendo o tratamento destes, mediante determinação de Autoridade competente e/ou ordem judicial.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.4. O Usuário também poderá requerer a exclusão dos seus dados entrando em contato conosco, por meio dos nossos Canais de Atendimento, de acordo com as previsões da Cláusula 14. A Jovool se compromete a empreender todos os esforços razoáveis para atender os seus pedidos, caso sejam cabíveis, no menor tempo possível e em cumprimento à legislação brasileira.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.5. O Usuário se declara ciente de que a exclusão de algumas informações poderá gerar uma impossibilidade de acesso a alguns e/ou todos os Serviços da Plataforma da Jovool, em decorrência das nossas necessidades operacionais.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.6. A Jovool se reserva o direito de manter armazenado em seus servidores os dados necessários ao cumprimento da legislação brasileira, ainda que diante de requisição de exclusão pelo Usuário.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"8.7. A Jovool se reserva o direito de reter informações que não identifiquem o Usuário pessoalmente, mesmo após o encerramento da conta na Plataforma da Jovool, desde que de forma agregada ou anonimizada.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 9 – \")])])]),_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('em',[_c('u',[_c('strong',[_vm._v(\"Links \")])])])]),_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"de Terceiros \")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"9.1. Na Plataforma da Jovool, alguns conteúdos e Serviços disponíveis podem incluir materiais de terceiros. Dessa forma, os \"),_c('em',[_vm._v(\"links \")]),_vm._v(\"direcionarão os Usuários para sites de terceiros que não são afiliados da Jovool. \"),_c('span',{staticStyle:{\"font-family\":\"Calibri, serif\"}},[_vm._v(\"Não somos responsáveis por quaisquer danos ou prejuízos relacionados com a utilização de Serviços, conteúdo, recursos ou outras interatividades advindas destes sites de terceiros.\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"9.2. Você está ciente e concorda que a existência destes links não representa patrocínio a sites terceiros e reconhece estar sujeito aos Termos de Uso e Políticas de Privacidade de empresas terceiras, os quais deverão ser verificados pelo Usuário.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 10 – \")])])]),_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('em',[_c('u',[_c('strong',[_vm._v(\"Cookies\")])])])]),_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\" e outras tecnologias de rastreamento\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"10.1. \"),_c('em',[_vm._v(\"Cookies\")]),_vm._v(\" são pequenos arquivos que podem ou não ser adicionados no seu dispositivo eletrônico, e que permitem armazenar e reconhecer dados de sua navegação. Durante a navegação do Usuário na Plataforma da Jovool, poderão ser utilizados os seguintes tipos de \"),_c('em',[_vm._v(\"cookies\")]),_vm._v(\":\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"center\",staticStyle:{\"width\":\"100%:\"}},[_c('thead',[_c('tr',{staticStyle:{\"border\":\"1px solid black\",\"color\":\"blue\"}},[_c('td',{staticStyle:{\"width\":\"30%\"}},[_c('b',[_vm._v(\"Tipos de Cookies\")])]),_vm._v(\" \"),_c('td',{staticStyle:{\"width\":\"30%\"}},[_c('b',[_vm._v(\"Funcionalidades\")])]),_vm._v(\" \"),_c('td',{staticStyle:{\"width\":\"30%\"}},[_c('b',[_vm._v(\"Espécies\")])])])]),_vm._v(\" \"),_c('tbody',[_c('tr',{staticStyle:{\"border\":\"1px solid black\"}},[_c('td',{staticStyle:{\"color\":\"red\"}},[_c('b',[_vm._v(\"Cookies de Autenticação\")])]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Reconhecem um determinado Usuário, possibilitando o acesso e utilização da Plataforma com conteúdo e/ou Serviços restritos, proporcionando experiências de navegação mais personalizadas.\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n sessions, localStorage, JWT, Oauth2\\n \")])]),_vm._v(\" \"),_c('tr',{staticStyle:{\"border\":\"1px solid black\"}},[_c('td',{staticStyle:{\"color\":\"red\"}},[_c('b',[_vm._v(\"Cookies de Segurança e Integridade\")])]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Ativam recursos de segurança da Plataforma para ajudar no monitoramento e/ou detecção de atividades maliciosas ou vedadas por esta Política, e para proteger as informações do Usuário de acesso por terceiros não autorizados. \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n session, ,Oauth2, JWT, exception_notification\\n \")])]),_vm._v(\" \"),_c('tr',{staticStyle:{\"border\":\"1px solid black\"}},[_c('td',{staticStyle:{\"color\":\"red\"}},[_c('b',[_vm._v(\"Cookies de Pesquisa, Análise e Desempenho\")])]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Ajudam a entender o desempenho da Plataforma, medir a audiência, verificar seus hábitos de navegação, bem como a forma pela qual chegou na página da Plataforma (por exemplo, através de links de outros sites, buscadores ou diretamente pelo endereço).\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n NewRelic\\n \")])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"})]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"10.2. A Jovool utiliza \"),_c('em',[_vm._v(\"cookies\")]),_vm._v(\" e tecnologias semelhantes para memorizar as suas informações pessoais quando o Usuário utiliza nossa Plataforma. O nosso objetivo é tornar sua experiência com os Serviços oferecidos pela Jovool mais conveniente e personalizada.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"10.3. Além disso, a Jovool também utiliza \"),_c('em',[_vm._v(\"cookies \")]),_vm._v(\"para entender tendências, administrar nossos Serviços, analisar os comportamentos do Usuário e obter informações demográficas sobre a nossa base de Usuários de forma geral.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"10.4. O Usuário poderá personalizar suas preferências de \"),_c('em',[_vm._v(\"cookies \")]),_vm._v(\"por meio de um mecanismo de obtenção de consentimento (\"),_c('em',[_vm._v(\"opt-in\")]),_vm._v(\"), que se abrirá no formato de um \"),_c('em',[_vm._v(\"checkbox \")]),_vm._v(\"no \"),_c('em',[_vm._v(\"website \")]),_vm._v(\"da Plataforma da Jovool.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"10.5. Depois que o Usuário consentir com a utilização de \"),_c('em',[_vm._v(\"cookies\")]),_vm._v(\", quando do uso da nossa Plataforma, a Jovool armazenará um \"),_c('em',[_vm._v(\"cookie\")]),_vm._v(\" em seu dispositivo para lembrar disso na próxima sessão.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"10.6. Com exceção dos \"),_c('em',[_vm._v(\"cookies \")]),_vm._v(\"destinados a garantir sua segurança, que são estritamente necessários e não podem ser desativados de nossa Plataforma, o Usuário poderá desabilitar os demais tipos de \"),_c('em',[_vm._v(\"cookies\")]),_vm._v(\", através das configurações de seu navegador. Entretanto, o Usuário se declara ciente de que é possível que a Jovool não desempenhe seus Serviços de maneira satisfatória, devido à ausência de determinados \"),_c('em',[_vm._v(\"cookies. \")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 11 – Menores de idade\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"11.1. A Jovool sempre tratará os Dados Pessoais de adolescentes em seu melhor interesse.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\" \")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"11.2. Caso o Candidato possua menos de 18 (dezoito) anos de idade, e esteja exercendo atividade profissional como Menor Aprendiz, o tratamento de seus Dados Pessoais pela Jovool deverá ser realizado com o consentimento específico e destacado de ao menos um de seus pais ou responsável legal.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 12 – Direitos do Usuário \")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"12.1. O Usuário poderá solicitar à Jovool, de maneira gratuita, a qualquer momento, a confirmação da existência de tratamento de seus Dados Pessoais; o acesso aos seus Dados Pessoais; a correção dos dados que estejam incompletos ou desatualizados; a revogação do seu consentimento dado a esta Política; a eliminação dos dados cuja guarda não seja permitida e/ou determinada pela Lei Brasileira, além dos demais previstos na Lei Brasileira, quando cabível.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"12.2. Para que o Usuário possa exercer seus direitos, basta entrar em contato com a Jovool por meio do nosso Canal de Atendimento, através da seção “Contato” em nosso \"),_c('em',[_vm._v(\"website\")]),_vm._v(\" ou do e-mail \"),_c('span',{staticStyle:{\"color\":\"#0000ff\"}},[_c('u',[_c('a',{attrs:{\"href\":\"mailto:contato@jovool.com\"}},[_vm._v(\"contato@jovool.com\")])])]),_vm._v(\", apontando suas dúvidas e/ou requerimentos relacionados aos seus Dados Pessoais.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"12.3. A Jovool se reserva o direito de utilizar meios de autenticação dos Usuários no momento de suas solicitações, como forma de segurança e proteção da qualidade e integralidade das informações, evitando as chances de acessos aos Dados Pessoais de seus Usuários por terceiros desautorizados e vazamentos ou roubos de dados.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"12.4. A Jovool empreenderá seus melhores esforços para responder às solicitações de seus Usuários no menor tempo possível e de forma completa, clara e de acordo com as suas legítimas expectativas.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"12.5. No mais, o Usuário fica ciente de que a exclusão das informações essenciais para gestão de sua conta junto à Jovool implicará no término de seu cadastro, com consequente cancelamento dos Serviços então prestados pela Jovool.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('u',[_c('strong',[_vm._v(\"CLÁUSULA 13 – Alterações na Política de Privacidade\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#000000\"}},[_vm._v(\"13.1. Considerando que a Jovool está sempre buscando o aperfeiçoamento de seus Serviços, esta Política pode passar por atualizações, a qualquer tempo. Neste caso, o Usuário será notificado em até 30 dias antes que as alterações se apliquem – portanto, é muito importante manter os dados de contato atualizados.\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#000000\"}},[_vm._v(\"13.2. Recomendamos que o Usuário visite periodicamente esta página para verificar eventuais mudanças em nossos Termos de Uso e Política de Privacidade.\")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_vm._v(\"13.3. O Usuário, desde já, reconhece e aceita que, assim que publicada a alteração desta Política no Website, o uso do Serviço aqui contratado passará a ser submetido à Política atualizada.\")]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('br')]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#3206ae\"}},[_c('strong',[_vm._v(\"CLÁUSULA 14 – Canal de Atendimento \")])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#000000\"}},[_vm._v(\"14.1. O Usuário poderá entrar em contato conosco, a qualquer tempo, para dúvidas, solicitações, reclamações, elogios e quaisquer outras demandas relacionadas à Jovool, através dos nossos Canais de Comunicação: \")])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('strong',[_vm._v(\"E-mail: \")]),_c('span',{staticStyle:{\"color\":\"#0000ff\"}},[_c('u',[_c('a',{attrs:{\"href\":\"mailto:contato@jovool.com\"}},[_vm._v(\"contato@jovool.com\")])])])]),_vm._v(\" \"),_c('p',{attrs:{\"align\":\"justify\"}},[_c('span',{staticStyle:{\"color\":\"#0000ff\"}},[_c('u',[_vm._v(\"ChatBot: www.jovool.com\")])])])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TermsPolitics.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TermsPolitics.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
CLÁUSULA 1 – Aceite
\n
1.1. Ao acessar a Plataforma da Jovool, o Usuário deverá ler o conteúdo desta Política e, se estiver de acordo com as condições apresentadas, manifestar o seu consentimento livre, expresso, informado e inequívoco, por meio da seleção do checkbox correspondente à opção “Eu li e concordo com os Termos de Uso e Política de Privacidade” . Tal consentimento poderá ser revogado a qualquer momento, por meio de um de nossos Canais de Atendimento, indicados na Cláusula 14.
\n
\n
1.2. Entretanto, ao revogar o seu consentimento, o Usuário compreende que isso poderá restringir, suspender ou cancelar alguns e/ou todos os Serviços ofertados pela Jovool. De todo modo, assim que nós recebermos uma solicitação neste sentido, seus Dados Pessoais serão excluídos, salvo em casos em que a lei permitir seu armazenamento ou que as informações sejam necessárias para o cumprimento de obrigação legal e/ou regulatória.
\n
\n
CLÁUSULA 2 – Definições
\n
2.1. A Política de Privacidade será regida pelas definições dos termos em maiúsculo estabelecidas nos Termos de Uso da Plataforma da Jovool, além dos abaixo listados. Caso haja algum termo não abordado nesta Política ou nos Termos de Uso, a interpretação deverá ser de acordo com a legislação brasileira:
\n
\n
(i) Dado Pessoal: informações relacionadas ao Usuário, que o identificam ou podem vir a identificá-lo;
\n
\n
(ii) Dado Pessoal Sensível: são dados sobre origem racial ou étnica, convicção religiosa, opinião política, filiação à sindicato ou a organização de caráter religioso, filosófico ou político, dado referente à saúde ou à vida sexual, dado genético ou biométrico que, em conjunto com Dado Pessoal, serão denominados Dados Pessoais;
\n
\n
(iii) Tratamento: toda operação que realizarmos com os Dados Pessoais de Usuários, como as que se referem a coleta, produção, recepção, classificação, utilização, acesso, reprodução, transmissão, distribuição, processamento, arquivamento, armazenamento, eliminação, avaliação ou controle da informação, modificação, comunicação, transferência, difusão ou extração;
\n
\n
(iv) Controlador: no âmbito desta Política, e no escopo do nosso relacionamento com o Usuário, a Jovool, a quem competem as decisões referentes ao Tratamento dos Dados Pessoais;
\n
\n
(v) Operador: pessoa natural ou jurídica, de direito público ou privado, que realiza o Tratamento de Dados Pessoais em nome do Controlador;
\n
\n
(vi) Titular dos Dados: no âmbito desta Política, o Usuário, Candidato ou Recrutador (quando pessoa física), a quem se referem os Dados Pessoais que são objeto de Tratamento;
\n
\n
(vii) Candidato: no âmbito desta Política, a pessoa física titular dos dados de login criados para acessar a Plataforma da Jovool como candidato a uma vaga de emprego divulgada por Recrutadores;
\n
\n
(viii) Recrutador: no âmbito desta Política, se refere aos clientes da Talenses, que utilizam a Plataforma da Jovool para a realização de seus processos seletivos;
\n
\n
(ix) Usuário: no âmbito desta Política, os Candidatos e Recrutadores, em conjunto, que utilizam os Serviços e produtos da Plataforma da Jovool .
\n
\n
CLÁUSULA 3 – Dados Coletados
\n
3.1. Ao utilizar a Plataforma da Jovool, o Usuário poderá nos fornecer algumas informações importantes para que possamos prestar um serviço adequado, que podem ser divididas em duas categorias:
\n
\n
3.1.1. Dados disponibilizados pelos Usuários de forma ativa e voluntária:
\n
a) Quando do cadastro e utilização da Plataforma da Jovool pelos Candidatos e Recrutadores: nome completo e e-mail; OU vídeos e informações de voz e áudio gravados (que poderão conter outras informações pessoais do Candidato), salário atual, currículo em PDF ou doc;
\n
b) Quando o cadastro do Candidato na Plataforma ocorrer pelo LinkedIn: dados pessoais vinculados à sua conta do LinkedIn, que podem envolver Nome, E-mail, Foto de Perfil, Experiência Profissional, etc.;
\n
c) Pelo Candidato, quando da realização de entrevistas ao vivo (“lives”): vídeos, informações de áudio e voz, eventuais informações pessoais adicionais fornecidas pelo Candidato na entrevista ao vivo realizada;
\n
\n \n Quando da inserção de informações para Suporte ou Feedback/Sugestões: nome, e-mail, telefone, empresa.
\n \n \n
\n
3.1.2. Dados coletados pela Jovool:
\n
\n \n Dados de Acesso: informações coletadas por meio da utilização do website , como informações de tela e resolução, endereço do protocolo de Internet (IP), tempo médio gasto, data e localização de acesso à Plataforma da Jovool. Além disso, caso o Usuário acione os Canais de Comunicação da Jovool, os registros serão mantidos para fins de segurança.
\n \n \n
\n
3.2. Os Dados Pessoais de Candidatura e entrevistas ao vivo (“lives ”) serão compartilhados com os Recrutadores, que poderão tratar esses dados internamente ou realizar o uso compartilhado dessas informações com outras empresas de seu grupo econômico. A Jovool não se responsabiliza pelo Tratamento de Dados Pessoais realizado pelos Recrutadores.
\n
\n
3.3. Ao participar de qualquer entrevista, reunião e vídeos de forma geral online, o Usuário autoriza a Jovool a utilizar sua imagem e sua voz, coletadas por meio dos vídeos ao vivo e/ou gravados dentro da Plataforma , especificamente para a finalidade de desenvolver o processo de Candidatura para o qual preencheu suas informações e demonstrou interesse ou para permitir o desenvolvimento do processo seletivo com o Candidato.
\n
\n
3.4. Considerando que os dados pessoais advindos de recursos de vídeo, áudio e voz – gravados ou ao vivo – nas entrevistas serão utilizados para a identificação dos titulares, tais dados se enquadram como Dados Pessoais Sensíveis. Neste sentido, o Usuário declara que consente, de forma específica e em destaque, com o tratamento de seus Dados Pessoais Sensíveis para a finalidade específica de Candidatura e desenvolvimento do processo seletivo oferecido pelos Recrutadores , em conformidade com a legislação brasileira aplicável.
\n
\n
3.5. Especificamente em relação aos dados de acesso coletados pela Jovool, estes poderão ser obtidos através da utilização de Cookies e tecnologias semelhantes, o que será abordado na Cláusula 10. A implementação e acesso de Cookies se destina à melhoria da qualidade das informações fornecidas pela Jovool, tornando a experiência do Usuário na Plataforma cada vez mais aprimorada, de acordo com seus interesses e demandas.
\n
\n
3.6. Ao integrar a conta da Plataforma da Jovool ao LinkedIn, incluindo ao fazer login nesta Plataforma através de conta da rede social em questão, o Candidato concorda em compartilhar seus dados – incluindo informações pessoais – entre a Jovool e o LinkedIn, para os fins previstos na presente Política de Privacidade, até a exclusão de sua conta no LinkedIn ou nesta Plataforma.
\n
3.6.1. Na primeira interação entre a conta do LinkedIn e a conta da Plataforma da Jovool, a Jovool solicitará sua permissão para compartilhar as informações pessoais presentes na rede social – como Nome, Endereço de E-mail, Lista de Amigos, Foto do Perfil, Experiência Profissional e outras informações disponíveis publicamente no LinkedIn – com a Plataforma da Jovool.
\n
\n
3.7. A Jovool se reserva o direito de solicitar complementações de seus dados, deixando claro que o Usuário sempre terá a opção de fornecê-los ou não. Lembramos, entretanto, que poderá haver instabilidade ou mesmo a impossibilidade de prestação dos nossos Serviço, em face da ausência desses dados essenciais.
\n
\n
CLÁUSULA 4 – Finalidades para Utilização dos Dados Pessoais
\n
4.1. Os Dados Pessoais serão utilizados pela Jovool para que possamos prestar nossos Serviços a todos os nossos Usuários, em conformidade com os nossos objetivos de conectar Candidatos com Recrutadores, possibilitando um processo seletivo remoto de alta performance. Listamos as finalidades específicas abaixo:
\n
\n \n Cadastro de Recrutadores para utilização da Plataforma da Jovool para gestão de processos seletivos;
\n \n \n Cadastro de Candidatos na Plataforma da Jovool, permitindo acesso aos nossos Serviços de Candidaturas de vagas, envio de vídeos gravados para processos seletivos, entrevistas de processos seletivos realizadas em tempo real (“lives”), etc.;
\n \n \n Submissão dos Candidatos nos processos seletivos de seu interesse, a partir do link de acesso;
\n \n \n Armazenamento de vídeos, recursos de áudio e voz e currículos dos Candidatos, utilizados nas entrevistas e processos seletivos com os Recrutadores, para gestão de Candidaturas pelos Recrutadores;
\n \n \n Comunicação com os Usuários, notificando-os sobre a confirmação de cadastro e Candidatura em processos seletivos, evolução no processo seletivo e atualização do status de Candidatura, aprovação em vagas, solicitação de documentos pendentes, cópia do candidato para vagas similares, suporte, feedback/sugestões, entre outros Serviços da Jovool;
\n \n \n Backup de currículos e outros Dados Pessoais pelos Recrutadores, através da Plataforma da Jovool;
\n \n \n Análise do desempenho da Plataforma da Jovool, medição da audiência, verificação de hábitos de navegação, a forma pela qual o Usuário chegou à página, avaliação de estatísticas de acesso e uso do site e aplicativo, seus recursos e funcionalidades;
\n \n \n Promoção, melhoria e desenvolvimento dos nossos Serviços;
\n \n \n Realização de Auditorias Internas e Externas;
\n \n \n Cumprimento de obrigações legais e/ou regulatórias e auxílio aos órgãos de cumprimento da lei;
\n \n \n Prevenção antifraude;
\n \n \n Mapeamento de informações de mercado, estatísticas e elaboração de relatório de dados;
\n \n \n Análises relacionadas à segurança da Plataforma e à segurança da informação, prevenindo erros/falhas técnicas;
\n \n \n Publicidade, marketing e campanhas digitais;
\n \n \n Pesquisas de satisfação.
\n \n \n
4.2. Para atingir as finalidades listadas acima, e para garantir a transparência sobre a forma de prestação dos nossos Serviços aos Usuários, a Jovool e seus parceiros licenciados poderão te contatar por meio dos seguintes canais de comunicação: (i) Telefone; (ii) E-mail; e (iii) Chat. Ademais, os Recrutadores poderão entrar em contato com o Candidato por meio da Plataforma da Jovool.
\n
\n \n \n \n A Jovool e seus parceiros licenciados poderão entrar em contato com Você em casos de: (i) Confirmação de cadastro; (ii) Confirmação de Candidatura para vagas de processos seletivos disponibilizados na Plataforma; (iii) Evolução no processo seletivo e atualização de status da Candidatura; iv) Aprovação em vagas; v) Solicitação de documentos pendentes; vi) Copiar Candidato para vagas similares; vii) Suporte (por telefone/chat) ou Feedback/Sugestões (comentários, report de bugs, sugestão de features/funcionalidades ou outros) no Chat de entrevistas ao vivo (“lives”); viii) dentre outros assuntos decorrentes de seu cadastro e da utilização de nossos Serviços.
\n \n \n \n \n
\n
4.3. Caso o Candidato seja Reprovado em algum processo seletivo, os Recrutadores poderão entrar em contato por meio da Plataforma da Jovool, a fim de oferecer possibilidades de processos seletivos similares e reaproveitar sua candidatura em novas oportunidades de emprego.
\n
4.3.1. Considerando as atividades prestadas por meio da Plataforma da Jovool e o fluxo de informações envolvido, o Candidato fica ciente de que, ao se candidatar para uma vaga, o seu perfil poderá ser compartilhado com outras vagas semelhantes, que guardem relação com sua área de atuação.
\n
4.3.2. O Candidato poderá retirar sua candidatura a vagas semelhantes a qualquer momento, contatando-nos através do nosso canal de comunicação pelo e-mail contato@jovool.com .
\n
\n
CLÁUSULA 5 – Compartilhamento das suas Informações
\n
5.1. Os Dados Pessoais dos Usuários poderão ser compartilhados de acordo com as finalidades específicas listadas na Cláusula 4. A Jovool se compromete a fazê-lo com parceiros que empreguem alto nível de segurança da informação, estabelecendo cláusulas contratuais protetivas que não violem as disposições dessa Política. Além disso, listamos abaixo as hipóteses de compartilhamento das informações de Usuários tratadas pela Jovool:
\n
5.1.1. Quanto aos Dados Pessoais de Candidatos, com empresas Recrutadoras, que anunciam os requisitos de seus processos seletivos na Plataforma da Jovool e divulgam suas oportunidades através de link de acesso ao processo seletivo na Plataforma;
\n
5.1.2. Quanto aos Dados Pessoais de Candidatos, com terceiros das empresas Recrutadoras, envolvidos na tomada de decisão dos processos seletivos desenvolvidos (como, por exemplo, gerentes/diretores das empresas);
\n
5.1.3. Com empresas parceiras licenciadas, para o oferecimento de serviços de suporte e feedback/sugestões;
\n
5.1.4. Com o LinkedIn, na hipótese de cadastro do Candidato por meio de conta da rede social;
\n
5.1.5. Com empresas do mesmo grupo econômico da Jovool, para fins publicitários, estatísticos e para prestação dos Serviços da Plataforma;
\n
5.1.6. Com empresas de consultoria e escritórios de advocacia, para proteção dos nossos interesses, incluindo casos de demandas judiciais e administrativas;
\n
5.1.7. Em caso de operações societárias, quando a transferência dos Dados Pessoais for necessária para a continuidade dos Serviços ofertados, ou quando garantidos meios de anonimização;
\n
5.1.8. Com empresas fornecedoras, para armazenamento em nuvem, gerenciamento de banco de dados, análise de dados e melhorias das funcionalidades;
\n
5.1.9. Mediante ordem judicial ou por requerimento de Autoridades Públicas ou Reguladoras que detenham competência para requisição;
\n
5.1.10. Com empresas de auditorias e análise de qualidade da prestação dos Serviços da Jovool;
\n
5.1.11. Com órgãos e autoridades públicas, para fins de cumprimento de obrigações legais e/ou regulatórias.
\n
\n
CLÁUSULA 6 – Segurança das Informações
\n
6.1. Todos os Dados Pessoais tratados pelo Jovool serão armazenados em servidores próprios ou em serviços de nuvem confiáveis, de parceiros que podem estar localizados no Brasil, ou em outros países, usualmente utilizados para armazenamento de informações, como os Estados Unidos e Europa.
\n
6.2. A Jovool se compromete a adotar todos os esforços razoáveis, considerando as soluções tecnológicas disponíveis e aplicáveis, para preservar a integridade e segurança das informações pessoais de seus Usuários de acessos não autorizados e de situações acidentais ou ilícitas de destruição, perda, alteração, comunicação ou difusão de seus dados pessoais.
\n
6.3. Nós utilizamos o princípio de privacy by design , o que significa que pensamos a privacidade desde a concepção de nossos Serviços, respeitando e protegendo os Dados Pessoais de nossos Usuários em nossos procedimentos internos.
\n
6.4. A Jovool tomará todas as medidas técnicas e administrativas que estiverem a seu alcance para manutenção da confidencialidade e segurança dos Dados Pessoais de seus Usuários, tais como:
\n
(i) métodos padrões de mercado para criptografia dos dados;
\n
(ii) emprego de algoritmos e software de alta tecnologia para proteção contra acessos não autorizados à Plataforma da Jovool;
\n
(iii) acesso a locais de armazenamento de dados pessoais apenas por pessoas previamente autorizadas e comprometidas com o sigilo dos dados, inclusive mediante assinatura de termo de confidencialidade;
\n
(iv) utilização de mecanismos de controle e bloqueio de acesso para o acesso de links por e-mail pelos Candidatos, além da utilização de links híbridos pelos Usuários, permitindo que apenas pessoas convidadas através de e-mail possam ingressar nas entrevistas pela Plataforma da Jovool;
\n
(v) utilização de mecanismos de controle e bloqueio de acesso internos, restringindo a utilização dos dados apenas para pessoas previamente autorizadas e responsáveis por determinado tratamento de informações pessoais;
\n
(vi) aplicação de mecanismos de autenticação de acesso aos registros capazes de individualizar o responsável pelo tratamento dos dados coletados em decorrência da utilização da Plataforma;
\n
(vii) sistemas de monitoramento e testes de segurança periódicos, entre outras práticas em prol da segurança da informação e dos Dados Pessoais.
\n
6.5. Apesar disso, não é possível garantir de forma absoluta a não ocorrência de erros no sistema, incidentes de segurança, violações e acessos não autorizados, considerando que as práticas de segurança da internet encontram-se em constante evolução. Saliente-se, no entanto, que a Jovool se compromete a acompanhar as evoluções e implementar melhorias de segurança constantemente, desde que possíveis e razoáveis, além de sujeitar aqueles que utilizarem indevidamente tais informações às penalidades aplicáveis e demais medidas legais cabíveis.
\n
\n
CLÁUSULA 7 – Responsabilidades e Boas Práticas dos Usuários
\n
7.1. Considerando que o Usuário da Plataforma da Jovool a utilizará através de um dispositivo pessoal com acesso à Internet, a segurança dos seus Dados Pessoais não depende exclusivamente da Jovool, de modo que o Usuário também deverá estar atento à disponibilidade das suas informações, conforme nossas orientações.
\n
7.2. Para garantir o cuidado e a diligência com seus Dados Pessoais, o Usuário se compromete a:
\n
(i) Fornecer informações verdadeiras e manter suas informações pessoais atualizadas, permitindo o funcionamento regular dos Serviços da Plataforma da Jovool;
\n
(ii) Proteger suas informações contra acessos não autorizados ao seu computador ou dispositivo móvel (celular, tablet, etc), contas e senhas;
\n
(iii) Não compartilhar sua senha com terceiros (já que esta possui caráter pessoal e intransferível) e lembrar de atualizá-la com frequência;
\n
(iv) Não compartilhar a usabilidade de sua conta na Plataforma da Jovool com terceiros, ainda que conhecidos;
\n
(v) Manter o programa antivírus/firewall e o sistema operacional do computador e/ou qualquer outro dispositivo pessoal utilizado para o acesso à Plataforma atualizados;
\n
(vi) Não permitir que o navegador salve automaticamente a sua senha em dispositivos compartilhados. Em dispositivos particulares, também recomendamos que o Usuário não permita que o navegador memorize sua senha;
\n
(vii) Ao acessar a Plataforma por um computador ou dispositivo móvel compartilhado, certificar-se de que encerrou sua navegação/acesso ao final dela;
\n
(viii) Manter seu navegador de internet e/ou dispositivo pessoal utilizado para o acesso à Plataforma atualizado, conforme orientação do fabricante;
\n
(ix) Ao acessar a Internet em lugares públicos, tomar cuidado para que pessoas próximas não possam ver sua senha e seus dados pessoais, e não permitir a guarda automática de qualquer informação;
\n
(x) Certificar-se de que está utilizando uma conexão segura quando for digitar informações privadas, gravar vídeos ou participar de entrevistas ao vivo no website e na Plataforma da Jovool;
\n
(xii) Entre outras práticas que possam ser eficientes para garantir a segurança e integridade das suas informações, no momento de utilização dos Serviços da Jovool.
\n
\n
CLÁUSULA 8 – Período de Retenção
\n
8.1. A Jovool manterá os Dados Pessoais de seus Usuários enquanto sua conta na Plataforma da Jovool estiver ativa; até atingir as finalidades descritas na Cláusula 4 da presente Política; e/ou para cumprimento de obrigações legais e regulatórias ou exercício regular de direitos decorrentes dos Serviços prestados pela nossa Plataforma.
\n
8.2. Também nos comprometemos a excluir os Dados Pessoais de nossos Usuários, interrompendo o seu tratamento, no momento em que o Usuário revogar o seu consentimento, armazenando apenas as informações permitidas e/ou determinadas pela legislação brasileira.
\n
8.3. Poderemos também excluir os dados dos Usuários, interrompendo o tratamento destes, mediante determinação de Autoridade competente e/ou ordem judicial.
\n
8.4. O Usuário também poderá requerer a exclusão dos seus dados entrando em contato conosco, por meio dos nossos Canais de Atendimento, de acordo com as previsões da Cláusula 14. A Jovool se compromete a empreender todos os esforços razoáveis para atender os seus pedidos, caso sejam cabíveis, no menor tempo possível e em cumprimento à legislação brasileira.
\n
8.5. O Usuário se declara ciente de que a exclusão de algumas informações poderá gerar uma impossibilidade de acesso a alguns e/ou todos os Serviços da Plataforma da Jovool, em decorrência das nossas necessidades operacionais.
\n
8.6. A Jovool se reserva o direito de manter armazenado em seus servidores os dados necessários ao cumprimento da legislação brasileira, ainda que diante de requisição de exclusão pelo Usuário.
\n
8.7. A Jovool se reserva o direito de reter informações que não identifiquem o Usuário pessoalmente, mesmo após o encerramento da conta na Plataforma da Jovool, desde que de forma agregada ou anonimizada.
\n
\n
CLÁUSULA 9 – Links de Terceiros
\n
9.1. Na Plataforma da Jovool, alguns conteúdos e Serviços disponíveis podem incluir materiais de terceiros. Dessa forma, os links direcionarão os Usuários para sites de terceiros que não são afiliados da Jovool. Não somos responsáveis por quaisquer danos ou prejuízos relacionados com a utilização de Serviços, conteúdo, recursos ou outras interatividades advindas destes sites de terceiros.
\n
9.2. Você está ciente e concorda que a existência destes links não representa patrocínio a sites terceiros e reconhece estar sujeito aos Termos de Uso e Políticas de Privacidade de empresas terceiras, os quais deverão ser verificados pelo Usuário.
\n
\n
CLÁUSULA 10 – Cookies e outras tecnologias de rastreamento
\n
10.1. Cookies são pequenos arquivos que podem ou não ser adicionados no seu dispositivo eletrônico, e que permitem armazenar e reconhecer dados de sua navegação. Durante a navegação do Usuário na Plataforma da Jovool, poderão ser utilizados os seguintes tipos de cookies :
\n
\n\n
\n
\n
\n
\n \n \n \n Tipos de Cookies \n \n \n Funcionalidades \n \n \n Espécies \n \n \n \n \n \n \n Cookies de Autenticação \n \n \n Reconhecem um determinado Usuário, possibilitando o acesso e utilização da Plataforma com conteúdo e/ou Serviços restritos, proporcionando experiências de navegação mais personalizadas.\n \n \n sessions, localStorage, JWT, Oauth2\n \n \n \n \n Cookies de Segurança e Integridade \n \n \n Ativam recursos de segurança da Plataforma para ajudar no monitoramento e/ou detecção de atividades maliciosas ou vedadas por esta Política, e para proteger as informações do Usuário de acesso por terceiros não autorizados. \n \n session, ,Oauth2, JWT, exception_notification\n \n \n \n \n Cookies de Pesquisa, Análise e Desempenho \n \n \n Ajudam a entender o desempenho da Plataforma, medir a audiência, verificar seus hábitos de navegação, bem como a forma pela qual chegou na página da Plataforma (por exemplo, através de links de outros sites, buscadores ou diretamente pelo endereço).\n \n \n NewRelic\n \n \n \n\n
\n
\n
\n\n
\n\n\n
\n
10.2. A Jovool utiliza cookies e tecnologias semelhantes para memorizar as suas informações pessoais quando o Usuário utiliza nossa Plataforma. O nosso objetivo é tornar sua experiência com os Serviços oferecidos pela Jovool mais conveniente e personalizada.
\n
\n
10.3. Além disso, a Jovool também utiliza cookies para entender tendências, administrar nossos Serviços, analisar os comportamentos do Usuário e obter informações demográficas sobre a nossa base de Usuários de forma geral.
\n
\n
10.4. O Usuário poderá personalizar suas preferências de cookies por meio de um mecanismo de obtenção de consentimento (opt-in ), que se abrirá no formato de um checkbox no website da Plataforma da Jovool.
\n
\n
10.5. Depois que o Usuário consentir com a utilização de cookies , quando do uso da nossa Plataforma, a Jovool armazenará um cookie em seu dispositivo para lembrar disso na próxima sessão.
\n
\n
10.6. Com exceção dos cookies destinados a garantir sua segurança, que são estritamente necessários e não podem ser desativados de nossa Plataforma, o Usuário poderá desabilitar os demais tipos de cookies , através das configurações de seu navegador. Entretanto, o Usuário se declara ciente de que é possível que a Jovool não desempenhe seus Serviços de maneira satisfatória, devido à ausência de determinados cookies.
\n
\n
CLÁUSULA 11 – Menores de idade
\n
\n
11.1. A Jovool sempre tratará os Dados Pessoais de adolescentes em seu melhor interesse.
\n
\n
11.2. Caso o Candidato possua menos de 18 (dezoito) anos de idade, e esteja exercendo atividade profissional como Menor Aprendiz, o tratamento de seus Dados Pessoais pela Jovool deverá ser realizado com o consentimento específico e destacado de ao menos um de seus pais ou responsável legal.
\n
\n
CLÁUSULA 12 – Direitos do Usuário
\n
12.1. O Usuário poderá solicitar à Jovool, de maneira gratuita, a qualquer momento, a confirmação da existência de tratamento de seus Dados Pessoais; o acesso aos seus Dados Pessoais; a correção dos dados que estejam incompletos ou desatualizados; a revogação do seu consentimento dado a esta Política; a eliminação dos dados cuja guarda não seja permitida e/ou determinada pela Lei Brasileira, além dos demais previstos na Lei Brasileira, quando cabível.
\n
\n
12.2. Para que o Usuário possa exercer seus direitos, basta entrar em contato com a Jovool por meio do nosso Canal de Atendimento, através da seção “Contato” em nosso website ou do e-mail contato@jovool.com , apontando suas dúvidas e/ou requerimentos relacionados aos seus Dados Pessoais.
\n
12.3. A Jovool se reserva o direito de utilizar meios de autenticação dos Usuários no momento de suas solicitações, como forma de segurança e proteção da qualidade e integralidade das informações, evitando as chances de acessos aos Dados Pessoais de seus Usuários por terceiros desautorizados e vazamentos ou roubos de dados.
\n
12.4. A Jovool empreenderá seus melhores esforços para responder às solicitações de seus Usuários no menor tempo possível e de forma completa, clara e de acordo com as suas legítimas expectativas.
\n
12.5. No mais, o Usuário fica ciente de que a exclusão das informações essenciais para gestão de sua conta junto à Jovool implicará no término de seu cadastro, com consequente cancelamento dos Serviços então prestados pela Jovool.
\n
\n
CLÁUSULA 13 – Alterações na Política de Privacidade
\n
13.1. Considerando que a Jovool está sempre buscando o aperfeiçoamento de seus Serviços, esta Política pode passar por atualizações, a qualquer tempo. Neste caso, o Usuário será notificado em até 30 dias antes que as alterações se apliquem – portanto, é muito importante manter os dados de contato atualizados.
\n
13.2. Recomendamos que o Usuário visite periodicamente esta página para verificar eventuais mudanças em nossos Termos de Uso e Política de Privacidade.
\n
13.3. O Usuário, desde já, reconhece e aceita que, assim que publicada a alteração desta Política no Website, o uso do Serviço aqui contratado passará a ser submetido à Política atualizada.
\n
\n
CLÁUSULA 14 – Canal de Atendimento
\n
14.1. O Usuário poderá entrar em contato conosco, a qualquer tempo, para dúvidas, solicitações, reclamações, elogios e quaisquer outras demandas relacionadas à Jovool, através dos nossos Canais de Comunicação:
\n
E-mail: contato@jovool.com
\n
ChatBot: www.jovool.com
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./TermsPolitics.vue?vue&type=template&id=31c108d6&\"\nimport script from \"./TermsPolitics.vue?vue&type=script&lang=js&\"\nexport * from \"./TermsPolitics.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('h1',[_vm._v(\"ola mundo\")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Teste.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Teste.vue?vue&type=script&lang=js&\"","\n ola mundo \n \n\n\n\n","import { render, staticRenderFns } from \"./Teste.vue?vue&type=template&id=37c1b36c&\"\nimport script from \"./Teste.vue?vue&type=script&lang=js&\"\nexport * from \"./Teste.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.show_job_form)?_c('AdminCandidate',[_c('div',{staticClass:\"row px-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3 container\"},[_c('div',{staticClass:\"invitation-tag-div\"},[_c('div',{staticClass:\"row\",staticStyle:{\"height\":\"30vh\"}},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3 container d-flex\"},[_c('div',{staticClass:\"center d-flex\",staticStyle:{\"margin-right\":\"auto\",\"margin-left\":\"auto\"}},[_c('img',{staticStyle:{\"width\":\"150px\",\"align-self\":\"end\"},attrs:{\"src\":\"/images/Jovool_logo.png\"}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3 container d-flex\"},[_c('h5',{staticStyle:{\"align-self\":\"end\"}},[_vm._v(\"\\n Bem-vindo! Para acessar o processo seletivo preencha o código de acesso.\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pt-3 container\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.invitation_tag),expression:\"invitation_tag\"}],staticClass:\"form-control width100 bg-input-candidate\",staticStyle:{\"text-align\":\"center\",\"border\":\"none\",\"height\":\"40px\",\"align-self\":\"end\"},attrs:{\"type\":\"text\",\"placeholder\":\"Código de acesso*\"},domProps:{\"value\":(_vm.invitation_tag)},on:{\"input\":function($event){if($event.target.composing)return;_vm.invitation_tag=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn full width100 normal-degrade btn-degrade btn-login-candidate mt-3\",attrs:{\"type\":\"button\",\"disabled\":_vm.load},on:{\"click\":_vm.showJobForm}},[_c('i',{staticClass:\"fa fa-check\"}),_vm._v(\"\\n Cadastrar\\n \")])])])])])])]):_vm._e(),_vm._v(\" \"),(_vm.show_job_form)?_c('div',[_c('JobShow',{attrs:{\"job\":_vm.job,\"job_questions\":_vm.job_questions,\"job_link\":_vm.job_link,\"candidate_id\":_vm.candidate_id,\"candidate_uid\":_vm.candidate_uid,\"applies\":_vm.applies,\"index\":_vm.index,\"url\":_vm.url,\"videos\":_vm.videos,\"account_uid\":_vm.account_uid,\"bigfive\":_vm.bigfive,\"recruiting_company\":_vm.recruiting_company,\"extra_checkboxes\":_vm.extra_checkboxes},on:{\"tag_error\":_vm.tagError}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Invitation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Invitation.vue?vue&type=script&lang=js&\"","\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n Bem-vindo! Para acessar o processo seletivo preencha o código de acesso.\n \n \n
\n
\n
\n
\n \n \n Cadastrar\n \n
\n
\n
\n
\n
\n \n
\n \n
\n
\n \n\n\n\n\n","import { render, staticRenderFns } from \"./Invitation.vue?vue&type=template&id=7e58a48a&scoped=true&\"\nimport script from \"./Invitation.vue?vue&type=script&lang=js&\"\nexport * from \"./Invitation.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Invitation.vue?vue&type=style&index=0&id=7e58a48a&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7e58a48a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('h1',[_vm._v(\"Ola mundo\")]),_vm._v(\" \"),_c('span',{staticClass:\"btn btn-success btn-default btn-file\"},[_vm._v(\"\\n COMEÇAR A GRAVAR\\n \"),_c('input',{ref:\"file\",staticClass:\"btn btn-success\",attrs:{\"type\":\"file\",\"accept\":\"video/*\",\"name\":\"answers[video]\",\"id\":\"capture\",\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovie()}}})]),_vm._v(\" \"),(_vm.file)?_c('video',{attrs:{\"width\":\"300px\"}},[_c('source',{attrs:{\"src\":_vm.file}})]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n
Ola mundo \n\n \n COMEÇAR A GRAVAR\n \n \n \n \n \n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=272a5cbc&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-payment',{attrs:{\"title\":\"Pagina de Pagamento\"}},[_c('div',{staticClass:\"row\"},[(!_vm.plan.id)?_c('div',[_c('h1',[_vm._v(\"Plano não encontrado\")])]):_vm._e(),_vm._v(\" \"),(_vm.plan.id)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.plan.name))]),_vm._v(\" \"),_c('pre',[_vm._v(_vm._s(_vm.plan.description))])]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n \n
\n
Plano não encontrado \n \n
\n
{{plan.name}} \n
{{plan.description}} \n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=69e0846b&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-payment',{attrs:{\"title\":\"Pagina de Pagamento\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"}),_vm._v(\" \"),(!_vm.plan.id)?_c('div',[_c('h1',[_vm._v(\"Plano não encontrado\")])]):_vm._e(),_vm._v(\" \"),(_vm.plan.id)?_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-lg-12\"},[_c('h4',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.plan.name))]),_vm._v(\" \"),_c('h6',{staticClass:\"card-subtitle mb-2 text-muted\"},[_vm._v(\"Assinatura de plano\")]),_vm._v(\" \"),_c('pre',[_vm._v(_vm._s(_vm.plan.description))]),_vm._v(\" \"),_c('p',[_c('b',[_vm._v(\"Total de vagas:\")]),_vm._v(\"\\n \"+_vm._s(_vm.plan.amount_jobs)+\"\\n \")]),_vm._v(\" \"),_c('p',[_c('b',[_vm._v(\"Total de usuários:\")]),_vm._v(\"\\n \"+_vm._s(_vm.plan.amount_recruiters)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"f17\"},[_c('b',[_vm._v(\"Total:\")]),_vm._v(\" \"),_c('span',{staticClass:\"f20\"},[_vm._v(\"R$ \"+_vm._s(_vm.plan.price ? parseFloat(_vm.plan.price).toFixed(2).replace('.', ',') : \"0,00\"))])])])]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-lg-12\"},[_c('h4',{staticClass:\"mt-4\"},[_c('b',[_vm._v(\"Dados da conta\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',[_vm._v(\"Nome\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.name),expression:\"recruiter.name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"disabled\":\"\"},domProps:{\"value\":(_vm.recruiter.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.recruiter, \"name\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('label',[_vm._v(\"E-mail\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.email),expression:\"recruiter.email\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"disabled\":\"\"},domProps:{\"value\":(_vm.recruiter.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.recruiter, \"email\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('###############'),expression:\"'###############'\"}],staticClass:\"mt-3\",attrs:{\"type\":\"text\",\"label\":\"CPF ou CNPJ\",\"field\":_vm.$v.account.document_number},model:{value:(_vm.account.document_number),callback:function ($$v) {_vm.$set(_vm.account, \"document_number\", $$v)},expression:\"account.document_number\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10 col-xs-12\"},[_c('inputform',{staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Nome da Rua\",\"field\":_vm.$v.account.street},model:{value:(_vm.account.street),callback:function ($$v) {_vm.$set(_vm.account, \"street\", $$v)},expression:\"account.street\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('inputform',{staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Número\",\"field\":_vm.$v.account.number},model:{value:(_vm.account.number),callback:function ($$v) {_vm.$set(_vm.account, \"number\", $$v)},expression:\"account.number\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('inputform',{staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Bairro\",\"field\":_vm.$v.account.neighborhood},model:{value:(_vm.account.neighborhood),callback:function ($$v) {_vm.$set(_vm.account, \"neighborhood\", $$v)},expression:\"account.neighborhood\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('inputform',{staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"CEP\",\"field\":_vm.$v.account.zipcode},model:{value:(_vm.account.zipcode),callback:function ($$v) {_vm.$set(_vm.account, \"zipcode\", $$v)},expression:\"account.zipcode\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('+## (##) #####-####'),expression:\"'+## (##) #####-####'\"}],staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Telefone\",\"field\":_vm.$v.account.phone},model:{value:(_vm.account.phone),callback:function ($$v) {_vm.$set(_vm.account, \"phone\", $$v)},expression:\"account.phone\"}})],1)]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('h4',[_c('b',[_vm._v(\"Pagamento\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[(_vm.plan.payment_methods.includes('credit_card'))?_c('label',{staticClass:\"mr-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choose),expression:\"choose\"}],staticClass:\"mr-1\",attrs:{\"type\":\"radio\",\"value\":\"credit_card\"},domProps:{\"checked\":_vm._q(_vm.choose,\"credit_card\")},on:{\"change\":function($event){_vm.choose=\"credit_card\"}}}),_vm._v(\"\\n Cartão de crédito\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.plan.payment_methods.includes('boleto'))?_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.choose),expression:\"choose\"}],staticClass:\"mr-1\",attrs:{\"type\":\"radio\",\"value\":\"boleto\"},domProps:{\"checked\":_vm._q(_vm.choose,\"boleto\")},on:{\"change\":function($event){_vm.choose=\"boleto\"}}}),_vm._v(\"Boleto\\n \")]):_vm._e()]),_vm._v(\" \"),(_vm.choose == 'credit_card')?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('################'),expression:\"'################'\"}],staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Número do cartão\",\"field\":_vm.$v.card.card_number},model:{value:(_vm.card.card_number),callback:function ($$v) {_vm.$set(_vm.card, \"card_number\", $$v)},expression:\"card.card_number\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('inputform',{staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"CVV\",\"field\":_vm.$v.card.card_cvv},model:{value:(_vm.card.card_cvv),callback:function ($$v) {_vm.$set(_vm.card, \"card_cvv\", $$v)},expression:\"card.card_cvv\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('inputform',{staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Nome impresso no cartão\",\"field\":_vm.$v.card.card_holder_name},model:{value:(_vm.card.card_holder_name),callback:function ($$v) {_vm.$set(_vm.card, \"card_holder_name\", $$v)},expression:\"card.card_holder_name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('##/##'),expression:\"'##/##'\"}],staticClass:\"mt-1\",attrs:{\"type\":\"text\",\"label\":\"Data de expiração\",\"field\":_vm.$v.card.card_expiration_date},model:{value:(_vm.card.card_expiration_date),callback:function ($$v) {_vm.$set(_vm.card, \"card_expiration_date\", $$v)},expression:\"card.card_expiration_date\"}})],1)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"mt-4 btn btn-degrade full normal-degrade\",on:{\"click\":_vm.save}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"Assinar Plano\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('inertia-link',{staticClass:\"mt-4 btn btn-secondary full\",attrs:{\"href\":\"/recruiters/dashboard/choose\"}},[_vm._v(\"Voltar\")])],1)])])])]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n
\n
Plano não encontrado \n \n\n
\n
\n
\n
\n
\n
{{plan.name}} \n
Assinatura de plano \n
{{plan.description}} \n
\n Total de vagas: \n {{plan.amount_jobs}}\n
\n
\n Total de usuários: \n {{plan.amount_recruiters}}\n
\n\n
\n Total: \n R$ {{ plan.price ? parseFloat(plan.price).toFixed(2).replace('.', ',') : \"0,00\" }} \n
\n
\n
\n
\n
\n
\n
\n Dados da conta \n \n \n
\n Nome \n \n
\n
\n E-mail \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 Pagamento \n \n \n
\n \n \n Cartão de crédito\n \n \n Boleto\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n\n
\n
\n Assinar Plano \n \n \n
\n \n
\n
\n Voltar \n
\n
\n
\n
\n
\n
\n \n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=440bb52a&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-payment',{attrs:{\"title\":\"Pagina de Pagamento\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"}),_vm._v(\" \"),(!_vm.plan.id)?_c('div',[_c('h1',[_vm._v(\"Plano não encontrado\")])]):_vm._e(),_vm._v(\" \"),(_vm.plan.id)?_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-lg-12\"},[_c('h4',{staticClass:\"card-title\"},[_vm._v(\"Assinatura do plano \"+_vm._s(_vm.plan.name)+\" concluida\")]),_vm._v(\" \"),_c('pre',[_vm._v(_vm._s(_vm.plan.description))]),_vm._v(\" \"),_c('p',[_c('b',[_vm._v(\"Total de vagas:\")]),_vm._v(\"\\n \"+_vm._s(_vm.plan.amount_jobs)+\"\\n \")]),_vm._v(\" \"),_c('p',[_c('b',[_vm._v(\"Total de usuários:\")]),_vm._v(\"\\n \"+_vm._s(_vm.plan.amount_recruiters)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"f17\"},[_c('b',[_vm._v(\"Total:\")]),_vm._v(\" \"),_c('span',{staticClass:\"f20\"},[_vm._v(\"R$ \"+_vm._s(_vm.plan.price ? parseFloat(_vm.plan.price).toFixed(2).replace('.', ',') : \"0,00\"))])]),_vm._v(\" \"),_c('p',[_vm._v(\"Tipo de pagamento: \"+_vm._s(_vm.payment_method[_vm.transaction.payment_method]))]),_vm._v(\" \"),(_vm.transaction.payment_method == 'boleto')?_c('p',[_vm._v(\"Para acelerar o processo você pode realizar o pagamento do boleto e enviar o comprovante para contato@projetocurriculo.com\")]):_vm._e(),_vm._v(\" \"),_c('h4',[_vm._v(\"\\n Status:\\n \"),_c('b',[_vm._v(_vm._s(_vm.status[_vm.transaction.status]))])])]),_vm._v(\" \"),(_vm.transaction.boleto_url)?_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('a',{attrs:{\"href\":_vm.transaction.boleto_url,\"target\":\"_blank\"}},[_c('button',{staticClass:\"mt-4 btn btn-degrade normal-degrade\",attrs:{\"type\":\"button\"}},[_vm._v(\"Clique aqui para baixar o boleto\")])])]):_vm._e(),_vm._v(\" \"),(_vm.transaction.status == 'paid' || _vm.transaction.status == 'authorized')?_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('inertia-link',{attrs:{\"href\":\"/recruiters/dashboard\"}},[_c('button',{staticClass:\"mt-4 btn btn-degrade normal-degrade\",attrs:{\"type\":\"button\"}},[_vm._v(\"Começar a usar a Jovool agora\")])])],1):_vm._e()])])])]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Success.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Success.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
Plano não encontrado \n \n\n
\n
\n
\n
\n
\n
Assinatura do plano {{plan.name}} concluida \n
{{plan.description}} \n
\n Total de vagas: \n {{plan.amount_jobs}}\n
\n
\n Total de usuários: \n {{plan.amount_recruiters}}\n
\n
\n Total: \n R$ {{ plan.price ? parseFloat(plan.price).toFixed(2).replace('.', ',') : \"0,00\" }} \n
\n
Tipo de pagamento: {{payment_method[transaction.payment_method]}}
\n
Para acelerar o processo você pode realizar o pagamento do boleto e enviar o comprovante para contato@projetocurriculo.com
\n
\n Status:\n {{status[transaction.status]}} \n \n
\n
\n
\n \n Começar a usar a Jovool agora \n \n
\n
\n
\n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Success.vue?vue&type=template&id=d887e020&\"\nimport script from \"./Success.vue?vue&type=script&lang=js&\"\nexport * from \"./Success.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Seu perfil\",\"menu\":\"Account\"}},[_c('title',[_vm._v(\"Seu perfil\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 container-form\"},[_c('div',{staticClass:\"block_header w-70 h-fixed\"},[_c('span',{staticStyle:{\"font-size\":\"20px\"}},[_vm._v(_vm._s(_vm.name))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3 account-container w-70\"},[_c('div',{staticClass:\"inputs-container\"},[_c('div',{staticClass:\"center position-relative\"},[_c('img',{attrs:{\"src\":_vm.picture ? _vm.picture : '/images/avatar.png',\"alt\":\"profile-picture\"}}),_vm._v(\" \"),_c('div',{staticClass:\"input-image\"},[_c('label',{attrs:{\"for\":\"image-input\"}},[_c('font-awesome-icon',{attrs:{\"for\":\"image-input\",\"icon\":\"plus\",\"size\":\"2x\",\"title\":\"Trocar foto\"}})],1),_vm._v(\" \"),_c('input',{ref:`file`,staticClass:\"d-none\",attrs:{\"type\":\"file\",\"accept\":\"image/png, image/jpeg\",\"id\":\"image-input\",\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendImageUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-5 w-100\"},[_c('span',{class:_vm.$v.name.$error ? 'text-danger' : ''},[_vm._v(\"NOME:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.name.$model),expression:\"$v.name.$model\"}],staticClass:\"form-control form__input\",attrs:{\"type\":\"text\",\"minlength\":\"4\",\"required\":\"\"},domProps:{\"value\":(_vm.$v.name.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.name, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(!_vm.$v.name.required)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n CAMPO NÃO DEVE ESTAR VAZIO\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.name.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n NOME DEVE POSSUIR NO MÍNIMO\\n \"+_vm._s(_vm.$v.name.$params.minLength.min)+\"CARACTERES.\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:_vm.$v.email.$error ? 'text-danger' : ''},[_vm._v(\"EMAIL:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.email.$model),expression:\"$v.email.$model\"}],staticClass:\"form-control\",attrs:{\"type\":\"email\",\"minlength\":\"10\",\"required\":\"\"},domProps:{\"value\":(_vm.$v.email.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.email, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(!_vm.$v.email.required)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n CAMPO NÃO DEVE ESTAR VAZIO\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.email.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n NOME DEVE POSSUIR NO MÍNIMO\\n \"+_vm._s(_vm.$v.name.$params.minLength.min)+\"CARACTERES.\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:_vm.$v.phone.$error ? 'text-danger' : ''},[_vm._v(\"CELULAR:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.phone.$model),expression:\"$v.phone.$model\"},{name:\"mask\",rawName:\"v-mask\",value:(['+## (##) ####-####', '+## (##) #####-####']),expression:\"['+## (##) ####-####', '+## (##) #####-####']\"}],staticClass:\"form-control\",class:!_vm.$v.phone.$error ? '' : 'is-invalid',attrs:{\"type\":\"tel\",\"required\":\"\"},domProps:{\"value\":(_vm.$v.phone.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.phone, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(!_vm.$v.phone.required)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n CAMPO NÃO DEVE ESTAR VAZIO\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.phone.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n O telefone deve possuir no minimo\\n \"+_vm._s(_vm.$v.phone.$params.minLength.min)+\" digitos.\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',[_vm._v(\"NOME DA EMPRESA:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.business_name),expression:\"business_name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.business_name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.business_name=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"inputs-container mt-3\"},[_c('div',{staticClass:\"input w-100\"},[_c('span',{class:_vm.$v.password.$error ? 'text-danger' : ''},[_vm._v(\"SENHA ATUAL:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.password.$model),expression:\"$v.password.$model\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"minlength\":\"6\"},domProps:{\"value\":(_vm.$v.password.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.password, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(_vm.$v.password.$model.length > 0)?_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.$v.password.$model),callback:function ($$v) {_vm.$set(_vm.$v.password, \"$model\", $$v)},expression:\"$v.password.$model\"}}):_vm._e(),_vm._v(\" \"),(!_vm.$v.password.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n A SENHA DEVE TER NO MÍNIMO\\n \"+_vm._s(_vm.$v.password.$params.minLength.min)+\" CARACTERES.\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:[\n !_vm.$v.new_password.minLength ||\n !_vm.$v.new_password_confirmation.sameAsNewPassword\n ? 'text-danger'\n : '',\n ]},[_vm._v(\"\\n NOVA SENHA:\\n \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.new_password.$model),expression:\"$v.new_password.$model\"}],staticClass:\"form-control\",class:[\n _vm.$v.new_password_confirmation.sameAsNewPassword\n ? ''\n : 'is-invalid',\n ],attrs:{\"type\":\"password\",\"minlength\":\"6\"},domProps:{\"value\":(_vm.$v.new_password.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.new_password, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(_vm.$v.new_password.$model.length > 0)?_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.$v.new_password.$model),callback:function ($$v) {_vm.$set(_vm.$v.new_password, \"$model\", $$v)},expression:\"$v.new_password.$model\"}}):_vm._e(),_vm._v(\" \"),(!_vm.$v.new_password.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n A NOVA SENHA DEVE TER NO MÍNIMO\\n \"+_vm._s(_vm.$v.new_password.$params.minLength.min)+\" CARACTERES.\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:_vm.$v.new_password_confirmation.$error ? 'text-danger' : ''},[_vm._v(\"CONFIRMAR NOVA SENHA:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.new_password_confirmation.$model),expression:\"$v.new_password_confirmation.$model\"}],staticClass:\"form-control\",class:[\n _vm.$v.new_password_confirmation.sameAsNewPassword\n ? ''\n : 'is-invalid',\n ],attrs:{\"type\":\"password\",\"minlength\":\"6\"},domProps:{\"value\":(_vm.$v.new_password_confirmation.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.new_password_confirmation, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(_vm.$v.new_password_confirmation.$model.length > 0)?_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.$v.new_password_confirmation.$model),callback:function ($$v) {_vm.$set(_vm.$v.new_password_confirmation, \"$model\", $$v)},expression:\"$v.new_password_confirmation.$model\"}}):_vm._e(),_vm._v(\" \"),(!_vm.$v.new_password_confirmation.sameAsNewPassword)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n AS DUAS SENHAS NÃO COINCIDEM\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.new_password_confirmation.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n A CONFIRMAÇÃO DA NOVA SENHA DEVE TER NO MÍNIMO\\n \"+_vm._s(_vm.$v.new_password_confirmation.$params.minLength.min)+\"\\n CARACTERES.\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.receive_emails,\"label\":\"Receber Emails?\"},model:{value:(_vm.receive_emails),callback:function ($$v) {_vm.receive_emails=$$v},expression:\"receive_emails\"}})],1)],1)]),_vm._v(\" \"),_c('button',{staticClass:\"btn full btn-degrade normal-degrade mt-3\",on:{\"click\":_vm.handleUpdate}},[_vm._v(\"\\n SALVAR ALTERAÇÕES\\n \")])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n Seu perfil \n \n \n
\n
\n
\n
\n SALVAR ALTERAÇÕES\n \n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=925dfa00&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Testes Bigfive\",\"menu\":\"Testes\"}},[_c('title',[_vm._v(\"Bigfive\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-2 col-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8\"},[_c('h4',{staticClass:\"block_header\"},[_vm._v(\"CADASTRO DE TESTE BIGFIVE\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"})]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{attrs:{\"id\":\"new-job-box \"}},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body formJov\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('inputform',{staticClass:\"label-bold\",attrs:{\"type\":\"text\",\"label\":\"Título do teste\",\"field\":_vm.$v.bigfive.name},model:{value:(_vm.bigfive.name),callback:function ($$v) {_vm.$set(_vm.bigfive, \"name\", $$v)},expression:\"bigfive.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('label',[_c('strong',[_vm._v(\"DATA PARA TÉRMINO \")])]),_vm._v(\" \"),_c('Datepicker',{staticClass:\"p-0\",attrs:{\"input-class\":\"form-control\",\"format\":_vm.formatFns,\"placeholder\":\"\",\"language\":_vm.ptBR},model:{value:(_vm.bigfive.date_end),callback:function ($$v) {_vm.$set(_vm.bigfive, \"date_end\", $$v)},expression:\"bigfive.date_end\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('label',[_c('strong',[_vm._v(\"TIPO DE TESTE\")])]),_c('br'),_vm._v(\" \"),_c('label',{staticClass:\"mr-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bigfive.status),expression:\"bigfive.status\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":1,\"checked\":_vm._q(_vm.bigfive.status,1)},on:{\"change\":function($event){return _vm.$set(_vm.bigfive, \"status\", 1)}}}),_vm._v(\"\\n PRIVADO\\n \")]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bigfive.status),expression:\"bigfive.status\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":0,\"checked\":_vm._q(_vm.bigfive.status,0)},on:{\"change\":function($event){return _vm.$set(_vm.bigfive, \"status\", 0)}}}),_vm._v(\"\\n PÚBLICO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-12\"},[_c('label',[_c('strong',[_vm._v(\"QUANTIDADE DE PERGUNTAS\")])]),_c('br'),_vm._v(\" \"),_c('label',{staticClass:\"mr-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bigfive.amount_itens),expression:\"bigfive.amount_itens\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":120,\"checked\":_vm._q(_vm.bigfive.amount_itens,120)},on:{\"change\":function($event){return _vm.$set(_vm.bigfive, \"amount_itens\", 120)}}}),_vm._v(\"\\n 120 ITENS\\n \")]),_vm._v(\" \"),_c('label',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.bigfive.amount_itens),expression:\"bigfive.amount_itens\"}],attrs:{\"type\":\"radio\"},domProps:{\"value\":50,\"checked\":_vm._q(_vm.bigfive.amount_itens,50)},on:{\"change\":function($event){return _vm.$set(_vm.bigfive, \"amount_itens\", 50)}}}),_vm._v(\"\\n 50 ITENS\\n \")])])]),_vm._v(\" \"),(_vm.bigfive.status == 1)?_c('div',[_c('VueTagsInput',{attrs:{\"placeholder\":\"Adicionar emails\",\"tags\":_vm.invited},on:{\"tags-changed\":(newTags) => (_vm.invited = newTags)},model:{value:(_vm.emails_current),callback:function ($$v) {_vm.emails_current=$$v},expression:\"emails_current\"}}),_vm._v(\" \"),_c('span',{staticClass:\"f12\"},[_vm._v(\"PRESSIONE 'ENTER' PARA ADICIONAR MAIS EMAILS\")])],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[(_vm.url != '')?_c('div',{staticClass:\"col-lg-12 col-12\"},[_c('p',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.url),expression:\"url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer mt-3 mb-3 color-grey\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"paperclip\"}}),_vm._v(\"\\n \"+_vm._s(_vm.url)+\"\\n \")],1)]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12\"},[_c('button',{staticClass:\"btn mt-3 full btn-degrade normal-degrade\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.save()}}},[_c('font-awesome-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}],attrs:{\"icon\":\"check\"}}),_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"Salvar Teste\" : \"\")+\"\\n \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])],1)])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('inertia-link',{attrs:{\"href\":\"/recruiters/assessments/bigfives\"}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"\\n VOLTAR\\n \")],1)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n Bigfive \n \n \n
\n
\n
\n
\n
\n
\n\n
\n (invited = newTags)\"\n />\n PRESSIONE 'ENTER' PARA ADICIONAR MAIS EMAILS \n
\n
\n
\n
\n
\n \n {{ !load ? \"Salvar Teste\" : \"\" }}\n \n \n
\n \n
\n
\n
\n
\n
\n
\n \n \n VOLTAR\n \n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=84f14502&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Testes Bigfive\",\"menu\":\"Testes\"}},[_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-lg-10 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 form-control-feedback\"}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border bg_grey\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchBigfives.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"pt-2\"},[_c('span',{staticClass:\"mr-2\"},[_c('b',[_vm._v(\"TESTES\")])]),_vm._v(\" \"),_c('span',{staticClass:\"block_info\"},[_c('b',[_vm._v(_vm._s(_vm.totalBigfives))])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-xs-12 col-lg-2 pl-0\"},[_c('inertia-link',{attrs:{\"href\":\"/recruiters/assessments/bigfives/new\"}},[_c('button',{staticClass:\"btn full btn-degrade right\",attrs:{\"type\":\"button\"}},[_c('b',[_vm._v(\"NOVO TESTE\")])])])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n TÍTULO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"bigfive\",\"field\":\"title\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n TIPO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"bigfive\",\"field\":\"status\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"bigfive\",\"field\":\"created_at\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"URL\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"})])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.bigfives),function(bigfive){return _c('tr',{key:bigfive.id},[_c('td',[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(bigfive.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(bigfive.status ? \"Privado\" : \"Publico\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"date\")(new Date(bigfive.created_at)))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(bigfive.url),expression:\"bigfive.url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color-grey\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"paperclip\"}})],1)]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{staticClass:\"color-grey\",attrs:{\"href\":'/recruiters/assessments/bigfives/' + bigfive.id}},[_c('font-awesome-icon',{attrs:{\"icon\":\"pencil-alt\"}})],1)],1)])}),0)]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n
\n
\n
\n
\n
\n
\n \n TESTES \n \n \n {{ totalBigfives }} \n \n
\n
\n
\n
\n
\n
\n \n \n NOVO TESTE \n \n \n
\n
\n \n
\n
\n \n \n \n \n {{ bigfive.name }} \n \n \n {{ bigfive.status ? \"Privado\" : \"Publico\" }}\n \n \n {{ new Date(bigfive.created_at) | date }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n \n \n\n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=153a2196&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Testes\",\"menu\":\"Testes\"}},[_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8\"},[_c('h4',{staticClass:\"block_header\"},[_vm._v(\"TESTES DISPONÍVEIS\")]),_vm._v(\" \"),_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body formJov\"},[_c('p',[_c('strong',[_c('inertia-link',{attrs:{\"href\":\"/recruiters/assessments/bigfives\"}},[_c('span',{staticClass:\"mr-3\"},[_vm._v(\" BIGFIVE \")]),_vm._v(\" \"),_c('font-awesome-icon',{attrs:{\"icon\":\"pencil-alt\"}})],1)],1)])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n \n
\n
\n
\n \n \n BIGFIVE \n \n \n \n
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=772a4b8c&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AdminLayout',{attrs:{\"title\":\"Dashboard\",\"menu\":\"Dashboard\",\"customStyle\":{ backgroundColor: '#fcfcfc' }}},[_c('title',[_vm._v(\"DASHBOARD\")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3\"},[_c('div',{ref:\"percentages\",staticClass:\"py-4 bg-aqua radius-4\"},[_c('Percentages',{attrs:{\"recruiter_name\":_vm.recruiter_info.name,\"percentages\":[\n _vm.percentage_converted_count,\n _vm.percentagem_contracted_count,\n ]}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3 col-md-6 col-xs-12 radius-4\"},[_c('div',{staticClass:\"bg-aqua py-3 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.total_jobs_count))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"VAGAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-6 col-xs-12 radius-4\"},[_c('div',{staticClass:\"bg-aqua py-3 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-inline\"},[_c('b',[_vm._v(_vm._s(_vm.total_candidates))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"CANDIDATOS(AS)\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-6 col-xs-12\"},[_c('div',{staticClass:\"bg-aqua py-3 pl-3 pr-0 radius-4\"},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.total_contracted[0].total))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 d-block\"},[_vm._v(\"CONTRATAÇÕES\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-6 col-xs-12\"},[_c('div',{staticClass:\"py-3 pl-3 pr-0 color-white radius-4\",staticStyle:{\"background-color\":\"#53358b\"}},[_c('span',{staticClass:\"f40 d-block\"},[_c('b',[_vm._v(_vm._s(_vm.total_interviews))])]),_vm._v(\" \"),_c('span',{staticClass:\"f10 label-bold d-block\"},[_vm._v(\"EM PROGRESSO\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"bg-aqua p-4 mt-4 radius-4\"},[_c('span',{staticClass:\"color-primary label-bold\"},[_vm._v(\"ENGAJAMENTO DE CANDIDATOS(AS)\")]),_vm._v(\" \"),_c('Graph',{attrs:{\"getFrom\":\"/recruiters/applies_info\",\"height\":_vm.graphHeight}})],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 mt-4\"},[_c('div',{staticClass:\"bg-aqua p-3\"},[_c('span',{staticClass:\"font-weight-bold color-primary\"},[_vm._v(\"Vagas Abertas\")]),_vm._v(\" \"),_c('div',{staticClass:\"table-responsive mt-2\"},[_c('table',{staticClass:\"table table-borderless mb-0\"},[_c('thead',{staticStyle:{\"background-color\":\"transparent\",\"color\":\"black\"}},[_c('tr',[_c('th'),_vm._v(\" \"),_c('th',{staticClass:\"f10\"},[_vm._v(\"REPROVADO(A)S\")]),_vm._v(\" \"),_c('th',{staticClass:\"f10 px-0\"},[_vm._v(\"NÃO SELECIONADO(A)S\")]),_vm._v(\" \"),_c('th',{staticClass:\"f10\"},[_vm._v(\"SELECIONADO(A)S\")]),_vm._v(\" \"),_c('th',{staticClass:\"p-0\"})])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.jobs),function(job){return _c('tr',{key:job.id,staticClass:\"h-auto\"},[_c('th',{staticClass:\"pb-0 pl-0 center\",staticStyle:{\"padding-top\":\"20px\"},attrs:{\"width\":\"35%\"}},[_c('inertia-link',{attrs:{\"href\":'/recruiters/jobs/' + job.id + '/applies'}},[_vm._v(_vm._s(job.title))])],1),_vm._v(\" \"),_c('td',{staticClass:\"pb-0 center\",attrs:{\"width\":\"20%\"}},[_vm._v(_vm._s(job.reproved))]),_vm._v(\" \"),_c('td',{staticClass:\"pb-0 center pl-0\",attrs:{\"width\":\"20%\"}},[_vm._v(\"\\n \"+_vm._s(job.no_avaliation)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pb-0 center\",attrs:{\"width\":\"20%\"}},[_vm._v(_vm._s(job.process))]),_vm._v(\" \"),_c('td',{staticClass:\"px-0\",staticStyle:{\"padding-top\":\"20px\"},attrs:{\"width\":\"5%\"}},[_c('inertia-link',{attrs:{\"href\":'/recruiters/jobs/' + job.id + '/applies'}},[_c('i',{staticClass:\"fas fa-file-alt color-purple\",staticStyle:{\"font-size\":\"25px\"}})])],1)])}),0)])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 mt-4 d-flex flex-column justify-content-between\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 radius-4\"},[_c('div',{staticClass:\"bg-aqua px-4 radius-4\"},[_c('span',{staticClass:\"font-large d-inline\"},[_c('b',[_vm._v(_vm._s(_vm.open_jobs_count))])]),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"d-inline\"},[_vm._v(\"VAGAS ABERTAS\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 radius-4\"},[_c('div',{staticClass:\"bg-aqua px-4 radius-4\"},[_c('span',{staticClass:\"font-large d-inline\"},[_c('b',[_vm._v(_vm._s(_vm.concluded_jobs_count))])]),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"d-inline\"},[_vm._v(\"VAGAS CONCLUÍDAS\")])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 radius-4\"},[_c('div',{staticClass:\"bg-aqua px-4 radius-4\"},[_c('span',{staticClass:\"font-large d-inline\"},[_c('b',[_vm._v(_vm._s(_vm.total_interviews_count))])]),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"d-inline\"},[_vm._v(\"ENTREVISTAS\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 radius-4\"},[_c('div',{staticClass:\"bg-aqua px-4 radius-4\"},[_c('span',{staticClass:\"font-large d-inline\"},[_c('b',[_vm._v(_vm._s(_vm.total_rated_count))])]),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"d-inline\"},[_vm._v(\"VIDEOS AVALIADOS\")])])])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n DASHBOARD \n \n
\n
\n
\n
\n
\n \n {{ total_jobs_count }} \n \n VAGAS \n
\n
\n
\n
\n \n {{ total_candidates }} \n \n CANDIDATOS(AS) \n
\n
\n
\n
\n \n {{ total_contracted[0].total }} \n \n CONTRATAÇÕES \n
\n
\n
\n
\n \n {{ total_interviews }} \n \n EM PROGRESSO \n
\n
\n
\n
\n ENGAJAMENTO DE CANDIDATOS(AS) \n \n
\n
\n
\n
\n
\n
\n
Vagas Abertas \n
\n
\n \n \n \n REPROVADO(A)S \n NÃO SELECIONADO(A)S \n SELECIONADO(A)S \n \n \n \n \n \n \n {{ job.title }} \n \n {{ job.reproved }} \n \n {{ job.no_avaliation }}\n \n {{ job.process }} \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n {{ open_jobs_count }} \n \n
\n VAGAS ABERTAS \n
\n
\n
\n
\n
\n
\n {{ concluded_jobs_count }} \n \n
\n VAGAS CONCLUÍDAS \n
\n
\n
\n
\n
\n
\n
\n
\n {{ total_interviews_count }} \n \n
\n ENTREVISTAS \n
\n
\n
\n
\n
\n
\n {{ total_rated_count }} \n \n
\n VIDEOS AVALIADOS \n
\n
\n
\n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=525dbd28&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=525dbd28&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('EvaluatorLayout',{attrs:{\"title\":\"Seu perfil\",\"menu\":\"Account\"}},[_c('title',[_vm._v(\"Seu perfil\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 container-form\"},[_c('div',{staticClass:\"block_header w-70 h-fixed\"},[_c('span',{staticStyle:{\"font-size\":\"20px\"}},[_vm._v(_vm._s(_vm.name))])]),_vm._v(\" \"),_c('div',{staticClass:\"mt-3 account-container w-70\"},[_c('div',{staticClass:\"inputs-container\"},[_c('div',{staticClass:\"center position-relative\"},[_c('img',{attrs:{\"src\":_vm.picture ? _vm.picture : '/images/avatar.png',\"alt\":\"profile-picture\"}}),_vm._v(\" \"),_c('div',{staticClass:\"input-image\"},[_c('label',{attrs:{\"for\":\"image-input\"}},[_c('font-awesome-icon',{attrs:{\"for\":\"image-input\",\"icon\":\"plus\",\"size\":\"2x\",\"title\":\"Trocar foto\"}})],1),_vm._v(\" \"),_c('input',{ref:`file`,staticClass:\"d-none\",attrs:{\"type\":\"file\",\"accept\":\"image/png, image/jpeg\",\"id\":\"image-input\",\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendImageUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-5 w-100\"},[_c('span',{class:_vm.$v.name.$error ? 'text-danger' : ''},[_vm._v(\"NOME:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.name.$model),expression:\"$v.name.$model\"}],staticClass:\"form-control form__input\",attrs:{\"type\":\"text\",\"minlength\":\"4\",\"required\":\"\"},domProps:{\"value\":(_vm.$v.name.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.name, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(!_vm.$v.name.required)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n CAMPO NÃO DEVE ESTAR VAZIO\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.name.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n NOME DEVE POSSUIR NO MÍNIMO\\n \"+_vm._s(_vm.$v.name.$params.minLength.min)+\"CARACTERES.\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:_vm.$v.email.$error ? 'text-danger' : ''},[_vm._v(\"EMAIL:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.email.$model),expression:\"$v.email.$model\"}],staticClass:\"form-control\",attrs:{\"type\":\"email\",\"minlength\":\"10\",\"required\":\"\"},domProps:{\"value\":(_vm.$v.email.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.email, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(!_vm.$v.email.required)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n CAMPO NÃO DEVE ESTAR VAZIO\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.email.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n NOME DEVE POSSUIR NO MÍNIMO\\n \"+_vm._s(_vm.$v.name.$params.minLength.min)+\"CARACTERES.\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:_vm.$v.phone.$error ? 'text-danger' : ''},[_vm._v(\"CELULAR:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.phone.$model),expression:\"$v.phone.$model\"},{name:\"mask\",rawName:\"v-mask\",value:(['+## (##) ####-####', '+## (##) #####-####']),expression:\"['+## (##) ####-####', '+## (##) #####-####']\"}],staticClass:\"form-control\",class:!_vm.$v.phone.$error ? '' : 'is-invalid',attrs:{\"type\":\"tel\",\"required\":\"\"},domProps:{\"value\":(_vm.$v.phone.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.phone, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(!_vm.$v.phone.required)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n CAMPO NÃO DEVE ESTAR VAZIO\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.phone.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n O telefone deve possuir no minimo\\n \"+_vm._s(_vm.$v.phone.$params.minLength.min)+\" digitos.\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',[_vm._v(\"NOME DA EMPRESA:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.business_name),expression:\"business_name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.business_name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.business_name=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"inputs-container mt-3\"},[_c('div',{staticClass:\"input w-100\"},[_c('span',{class:_vm.$v.password.$error ? 'text-danger' : ''},[_vm._v(\"SENHA ATUAL:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.password.$model),expression:\"$v.password.$model\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"minlength\":\"6\"},domProps:{\"value\":(_vm.$v.password.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.password, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(_vm.$v.password.$model.length > 0)?_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.$v.password.$model),callback:function ($$v) {_vm.$set(_vm.$v.password, \"$model\", $$v)},expression:\"$v.password.$model\"}}):_vm._e(),_vm._v(\" \"),(!_vm.$v.password.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n A SENHA DEVE TER NO MÍNIMO\\n \"+_vm._s(_vm.$v.password.$params.minLength.min)+\" CARACTERES.\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:[\n !_vm.$v.new_password.minLength ||\n !_vm.$v.new_password_confirmation.sameAsNewPassword\n ? 'text-danger'\n : '',\n ]},[_vm._v(\"\\n NOVA SENHA:\\n \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.new_password.$model),expression:\"$v.new_password.$model\"}],staticClass:\"form-control\",class:[\n _vm.$v.new_password_confirmation.sameAsNewPassword\n ? ''\n : 'is-invalid',\n ],attrs:{\"type\":\"password\",\"minlength\":\"6\"},domProps:{\"value\":(_vm.$v.new_password.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.new_password, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(_vm.$v.new_password.$model.length > 0)?_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.$v.new_password.$model),callback:function ($$v) {_vm.$set(_vm.$v.new_password, \"$model\", $$v)},expression:\"$v.new_password.$model\"}}):_vm._e(),_vm._v(\" \"),(!_vm.$v.new_password.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n A NOVA SENHA DEVE TER NO MÍNIMO\\n \"+_vm._s(_vm.$v.new_password.$params.minLength.min)+\" CARACTERES.\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"input mt-custom w-100\"},[_c('span',{class:_vm.$v.new_password_confirmation.$error ? 'text-danger' : ''},[_vm._v(\"CONFIRMAR NOVA SENHA:\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.$v.new_password_confirmation.$model),expression:\"$v.new_password_confirmation.$model\"}],staticClass:\"form-control\",class:[\n _vm.$v.new_password_confirmation.sameAsNewPassword\n ? ''\n : 'is-invalid',\n ],attrs:{\"type\":\"password\",\"minlength\":\"6\"},domProps:{\"value\":(_vm.$v.new_password_confirmation.$model)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.$v.new_password_confirmation, \"$model\", $event.target.value)}}}),_vm._v(\" \"),(_vm.$v.new_password_confirmation.$model.length > 0)?_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.$v.new_password_confirmation.$model),callback:function ($$v) {_vm.$set(_vm.$v.new_password_confirmation, \"$model\", $$v)},expression:\"$v.new_password_confirmation.$model\"}}):_vm._e(),_vm._v(\" \"),(!_vm.$v.new_password_confirmation.sameAsNewPassword)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n AS DUAS SENHAS NÃO COINCIDEM\\n \")]):_vm._e(),_vm._v(\" \"),(!_vm.$v.new_password_confirmation.minLength)?_c('div',{staticClass:\"text-danger\"},[_vm._v(\"\\n A CONFIRMAÇÃO DA NOVA SENHA DEVE TER NO MÍNIMO\\n \"+_vm._s(_vm.$v.new_password_confirmation.$params.minLength.min)+\"\\n CARACTERES.\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-3\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.receive_emails,\"label\":\"Receber Emails?\"},model:{value:(_vm.receive_emails),callback:function ($$v) {_vm.receive_emails=$$v},expression:\"receive_emails\"}})],1)],1)]),_vm._v(\" \"),_c('button',{staticClass:\"btn full btn-degrade normal-degrade mt-3\",on:{\"click\":_vm.handleUpdate}},[_vm._v(\"\\n SALVAR ALTERAÇÕES\\n \")])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accounts.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accounts.vue?vue&type=script&lang=js&\"","\n \n Seu perfil \n \n \n
\n
\n
\n
\n SALVAR ALTERAÇÕES\n \n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Accounts.vue?vue&type=template&id=db33106a&\"\nimport script from \"./Accounts.vue?vue&type=script&lang=js&\"\nexport * from \"./Accounts.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('EvaluatorLayout',{attrs:{\"title\":`Candidato(a)s da vaga de ${_vm.job.title}`,\"menu\":\"Vagas\"}},[_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 text-truncate\",staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h4',{staticClass:\"label-bold\"},[_vm._v(\"\\n CANDIDATO(A)S DA VAGA\\n \"),_c('span',{staticStyle:{\"color\":\"#8f66fe\"}},[_vm._v(_vm._s(_vm.job.title))])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12 p-0\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.action),expression:\"action\"}],staticClass:\"form-control\",attrs:{\"disabled\":!_vm.selected.length},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.action=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.changeAction]}},[_c('option',{attrs:{\"disabled\":\"\",\"value\":\"0\"}},[_vm._v(\"\\n AÇÕES\\n \")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"2\"}},[_vm._v(\"MUDAR STATUS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12 pl-0 mb-5\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\"},[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 mr-3 form-control-feedback\",staticStyle:{\"color\":\"#212529\"}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",staticStyle:{\"padding\":\"0px\"},attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchApplies.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}}),_vm._v(\" \"),_c('div',{staticClass:\"total_apply color-dark-purple\"},[_c('span',[_c('b',[_vm._v(_vm._s(_vm.totalApplies)+\" CANDIDATO(A)S\")])])])])]),_vm._v(\" \"),(_vm.is_admin)?_c('div',{staticClass:\"col-lg-2 col-xs-12\",staticStyle:{\"margin-top\":\"10px\"}}):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table mt-3\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',{staticStyle:{\"width\":\"5px\"}}),_vm._v(\" \"),_c('td',{staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n CANDIDATO(A)S\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"applies\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n PROCESSO\\n \"),_c('OrderTable',{attrs:{\"field\":\"selective_process_id\",\"entity\":\"applies\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n CARGO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"last_role\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n EMPRESA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"last_business\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n CIDADE NATAL\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"hometown\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n ETNIA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"ethnicity\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n ORIENTAÇÃO SEXUAL\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"sexual_orientation\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"300px\"}},[_vm._v(\"\\n PCD\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"pcd_description\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"applies\",\"field\":\"created_at\"}})],1)])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.applies),function(apply,index){return _c('tr',{key:apply.id,class:{ 'content-loading': _vm.loading }},[_c('td',{staticClass:\"center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n },staticStyle:{\"border-left\":\"1px solid #fff\"},style:({\n borderLeftColor:\n apply.tag_color != null ? apply.tag_color : '#fff',\n borderLeftWidth: '5px',\n })},[_c('CheckBox',{attrs:{\"id\":apply,\"index\":index,\"checked\":_vm.selected_ids.includes(apply.id)}})],1),_vm._v(\" \"),_c('td',{class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"d-flex flex-row\"},[_c('div',[_c('div',{staticClass:\"avatar_thumb pointer\",on:{\"click\":function($event){return _vm.show(apply.id, apply.candidate_id, index)}}},[_c('img',{attrs:{\"src\":apply.image || '/images/avatar.png'}})]),_vm._v(\" \"),(apply.status >= 1)?_c('font-awesome-icon',{staticClass:\"eye f13\",staticStyle:{\"color\":\"#666464\",\"margin-left\":\"55px\"},attrs:{\"icon\":\"eye\"}}):_vm._e(),_vm._v(\" \"),(apply.status == 0)?_c('font-awesome-icon',{staticClass:\"eye f13\",staticStyle:{\"color\":\"#b7b7b7\",\"margin-left\":\"55px\"},attrs:{\"icon\":\"eye-slash\"}}):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"ml-3 mt-1\"},[_vm._v(\"\\n \"+_vm._s(apply.name)),_c('br'),_vm._v(\" \"),_c('div',{staticClass:\"pt-2\"},[(apply.tag_name != null)?_c('span',{staticClass:\"f14 color-white font-weight-bold p-2\",style:(`background-color: ${ apply.tag_color || 'null' }; text-shadow: 0px 0px 3px black`)},[_vm._v(\"\\n \"+_vm._s(apply.tag_name)+\"\\n \")]):_vm._e()])])])]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_c('div',{staticClass:\"block_process\",class:`process${apply.selective_process_status}`,staticStyle:{\"border-radius\":\"0px\"}},[_vm._v(\"\\n \"+_vm._s(apply.selective_process_name)+\"\\n \")]),_vm._v(\" \"),_vm._l((_vm.evaluations.filter((e) => e.selective_process_id == apply.selective_process_id)),function(evaluation,index){return _c('div',{key:`evaluation_${apply.selective_process_id}_${index}`,staticClass:\"row\"},[_c('span',{staticClass:\"f14 mt-1\",staticStyle:{\"text-align\":\"center\",\"width\":\"100%\"}},[_vm._v(\"\\n \"+_vm._s(_vm.getEvaluationName(evaluation))+\"\\n \"),_c('font-awesome-icon',{staticClass:\"color-primary\",attrs:{\"icon\":_vm.getEvaluationStatus(evaluation, apply)}})],1)])})],2),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.last_role)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.last_business)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.hometown_attributes ? \n `${apply.hometown_attributes.name}/${apply.hometown_state_attributes.name}`:\n `Não definido`)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(_vm.getEthnicity(apply.ethnicity) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(_vm.getSexualOrientation(apply.sexual_orientation) || \"Não definido\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\"},[_vm._v(\"\\n \"+_vm._s(apply.is_pcd ? apply.pcd_description : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"pt-3 center color-dark-purple\",class:{\n selected: _vm.selected_ids.includes(apply.id),\n opacity: apply.visibility == false,\n }},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(apply.created_at))+\"\\n \")])])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Applies.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Applies.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n CANDIDATO(A)S DA VAGA\n {{ job.title }} \n \n \n
\n
\n
\n
\n \n \n AÇÕES\n \n MUDAR STATUS \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
= 1\"\n icon=\"eye\"\n class=\"eye f13\"\n style=\"color: #666464; margin-left: 55px\"\n > \n
\n
\n
\n {{ apply.name }}
\n
\n \n {{ apply.tag_name }}\n \n
\n
\n
\n \n \n \n \n {{ apply.selective_process_name }}\n
\n e.selective_process_id == apply.selective_process_id)\"\n :key=\"`evaluation_${apply.selective_process_id}_${index}`\"\n class=\"row\"\n >\n \n {{ getEvaluationName(evaluation) }}\n \n \n
\n \n\n \n {{ apply.last_role }}\n \n \n \n {{ apply.last_business }}\n \n\n \n {{ apply.hometown_attributes ? \n `${apply.hometown_attributes.name}/${apply.hometown_state_attributes.name}`:\n `Não definido`\n }}\n \n\n \n {{ getEthnicity(apply.ethnicity) || \"Não definido\" }}\n \n\n \n {{ getSexualOrientation(apply.sexual_orientation) || \"Não definido\" }}\n \n\n \n {{ apply.is_pcd ? apply.pcd_description : \"Não\" }}\n \n \n \n {{ formattedDate(apply.created_at) }}\n \n \n \n
\n
\n \n
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Applies.vue?vue&type=template&id=f33b3a70&\"\nimport script from \"./Applies.vue?vue&type=script&lang=js&\"\nexport * from \"./Applies.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('EvaluatorLayout',{attrs:{\"title\":\"Vagas\",\"menu\":\"Vagas\",\"customStyle\":{ backgroundColor: '#fcfcfc' }}},[_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h3',[_vm._v(\"VAGAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"})])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 d-flex mt-0 pt-0\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"home\",\"role\":\"tabpanel\",\"aria-labelledby\":\"home-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n TÍTULO DA VAGA\\n \"),_c('OrderTable',{attrs:{\"field\":\"title\",\"entity\":\"job\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"CANDIDATO(A)S\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"job\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"recruiter_name\"}})],1)])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.jobs),function(job){return _c('tr',{key:job.id,class:{ 'content-loading': _vm.loading }},[_c('td',{staticClass:\"text-truncate\",staticStyle:{\"max-width\":\"400px\"}},[_c('inertia-link',{attrs:{\"href\":`/recruiters/evaluators/jobs/${job.id}/applies`}},[_c('b',{staticClass:\"color-grey-primary text-truncate\"},[_vm._v(_vm._s(job.title))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('p',{staticClass:\"mb-0\",staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"small-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(job.minimum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(job.maximum_remuneration != 0),expression:\"job.maximum_remuneration != 0\"}],staticClass:\"small-text\"},[_vm._v(\"|\\n \"+_vm._s(_vm._f(\"currency\")(job.maximum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/evaluators/jobs/${job.id}/applies`}},[_c('span',{staticClass:\"pointer alert_small box-danger\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.reproved))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.no_avaliation))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.process))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(job.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(job.recruiter_name)+\"\\n \")])])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n \n {{\n job.title\n }} \n \n \n \n {{\n job.minimum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n |\n {{\n job.maximum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n
\n \n \n \n {{ job.reproved }} \n {{ job.no_avaliation }} \n {{ job.process }} \n \n \n \n {{ job.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ job.recruiter_name }}\n \n \n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n \n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Jobs.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Jobs.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Jobs.vue?vue&type=template&id=05586f9b&\"\nimport script from \"./Jobs.vue?vue&type=script&lang=js&\"\nexport * from \"./Jobs.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":`Mapeamento de campos`,\"menu\":\"Mapeamento de campos\"}},[_c('h3',[_vm._v(\"\\n Entidades\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n Nome\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n Quantidade de campos\\n \")]),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',[_c('tr',[_c('td',[_vm._v(\"\\n Candidatos\\n \")]),_vm._v(\" \"),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.amount_candidate)+\"\\n \")]),_vm._v(\" \"),_c('td',[_c('inertia-link',{attrs:{\"href\":\"/recruiters/field_mapping_entities/candidates\"}},[_c('div',{staticClass:\"pointer\"},[_c('font-awesome-icon',{staticClass:\"color-grey\",attrs:{\"icon\":\"pencil-alt\"}})],1)])],1)])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n Entidades\n \n \n
\n
\n \n \n \n \n Candidatos\n \n \n {{amount_candidate}}\n \n \n \n \n \n
\n \n \n \n \n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=2152c877&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":`Mapeamento de campos | {{entity_translate[entity]}} `,\"menu\":\"Mapeamento de campos\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('h3',[_vm._v(\"\\n Entidade \"+_vm._s(_vm.entity_translate[_vm.entity])+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn-new-job\",on:{\"click\":function($event){return _vm.showForm(false)}}},[_c('font-awesome-icon',{attrs:{\"icon\":\"plus\"}}),_vm._v(\"\\n Cadastrar novo campo\\n \")],1)])]),_vm._v(\" \"),(_vm.field_mapping_entities.length > 0)?_c('div',[_c('div',{staticClass:\"row field_uni header_field\"},[_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n Nome\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n Obrigatório\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n Tipo\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n Escondido\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n Valor Padrão\\n \")])]),_vm._v(\" \"),_c('draggable',_vm._b({staticClass:\"row\",attrs:{\"list\":_vm.field_mapping_entities,\"disabled\":false,\"ghost-class\":\"ghost\"},on:{\"change\":_vm.changeColumn}},'draggable',_vm.dragOptions,false),_vm._l((_vm.field_mapping_entities),function(field){return _c('div',{key:field.id,staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"row field_uni\"},[_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.required ? \"Sim\" : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.type_field_translate[field.parameters.type_field])+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.hidden ? \"Sim\" : \"Não\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_vm._v(\"\\n \"+_vm._s(field.parameters.value_field)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"},[_c('font-awesome-icon',{staticClass:\"right ml-2 mr-2\",attrs:{\"icon\":\"times\"},on:{\"click\":function($event){return _vm.remove(field.id)}}}),_vm._v(\" \"),_c('font-awesome-icon',{staticClass:\"right ml-2 mr-2\",attrs:{\"icon\":\"pencil-alt\"},on:{\"click\":function($event){return _vm.showForm(field)}}})],1)])])}),0)],1):_vm._e(),_vm._v(\" \"),(_vm.field_mapping_entities.length > 2)?_c('div',{staticClass:\"row pl-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',[_c('b',[_vm._v(\"*\")]),_vm._v(\" Clique e arraste para mudar a ordem dos campos\\n \")])])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n Entidade {{entity_translate[entity]}}\n \n \n
\n \n \n Cadastrar novo campo\n \n
\n
\n 0\">\n
\n
\n Nome\n
\n
\n Obrigatório\n
\n\n
\n Tipo\n
\n
\n Escondido\n
\n
\n Valor Padrão\n
\n
\n\n
\n \n
\n
\n {{field.parameters.name}}\n
\n
\n {{field.parameters.required ? \"Sim\" : \"Não\"}}\n
\n
\n {{type_field_translate[field.parameters.type_field]}}\n
\n
\n {{field.parameters.hidden ? \"Sim\" : \"Não\"}}\n
\n
\n {{field.parameters.value_field}}\n
\n\n
\n\n \n \n
\n
\n
\n \n\n
\n 2\"\n class=\"row pl-3\"\n >\n
\n \n * Clique e arraste para mudar a ordem dos campos\n \n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=0aeefbf9&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Galeria de vídeos\",\"menu\":\"Galeria de vídeos\"}},[_c('title',[_vm._v(\"GALERIA DE VÍDEOS\")]),_vm._v(\" \"),_c('div',{staticClass:\"mr-0 ml-0 p-3 row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('h3',[_vm._v(\"GALERIA DE VÍDEOS\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"color-black fa fa-search ml-2 mt-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchVideos.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-9\"},[(_vm.searchable)?_c('button',{staticClass:\"btn btn-info right\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.searchable = false}}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"VOLTAR A LISTA\\n \")],1):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"w-100 mt-5\"},[_c('img',{staticClass:\"w-100\",attrs:{\"src\":\"/images/header_galleries.png\",\"alt\":\"image_header\"}})]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(!_vm.searchable)?_c('List'):_vm._e(),_vm._v(\" \"),(_vm.searchable)?_c('div',[(_vm.load)?_c('div',{staticClass:\"col-lg-12 center\"},[_c('sweetalert-icon',{attrs:{\"icon\":\"loading\"}})],1):_vm._e(),_vm._v(\" \"),(!_vm.load)?_c('div',{staticClass:\"col-lg-12\"},[(_vm.videos.length == 0)?_c('h1',[_vm._v(\"\\n NÃO ENCONTRAMOS VÍDEOS RELACIONADOS.\\n \")]):_vm._e(),_vm._v(\" \"),_c('Search',{attrs:{\"videos\":_vm.videos}})],1):_vm._e()]):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n GALERIA DE VÍDEOS \n \n
\n
GALERIA DE VÍDEOS \n \n
\n\n
\n \n VOLTAR A LISTA\n \n
\n
\n \n
\n
\n \n
\n \n
\n \n
\n\n
\n
\n NÃO ENCONTRAMOS VÍDEOS RELACIONADOS.\n \n\n \n \n
\n \n \n \n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=2e9efc1d&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"menu\":\"Vagas\",\"customStyle\":{ backgroundColor: '#fcfcfc' }}},[_c('title',[_vm._v(\"\\n \"+_vm._s(_vm.job_edit ? \"Editar Vaga\" : \"Crie uma Vaga\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-md-7 col-xs-12 overflow-auto\",staticStyle:{\"height\":\"85vh\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TÍTULO DA VAGA\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.jobs.title},model:{value:(_vm.jobs.title),callback:function ($$v) {_vm.$set(_vm.jobs, \"title\", $$v)},expression:\"jobs.title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CIDADE\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"whenSelected\":_vm.setCity,\"placeholder\":\"CIDADE\",\"classes\":\"mt-1\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"ÁREA\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/recruiters/job_sectors\",\"responseDataName\":\"job_sectors\",\"placeholder\":\"ÁREA\",\"selectedEl\":_vm.job_sector,\"clearOption\":true,\"camelCase\":true,\"whenSelected\":(sector) => (_vm.job_sector.id = sector.id),\"classes\":\"mt-1\",\"inputClasses\":\"radius-0 form-control\"},model:{value:(_vm.job_sector.title),callback:function ($$v) {_vm.$set(_vm.job_sector, \"title\", $$v)},expression:\"job_sector.title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"DESCRIÇÃO DA VAGA\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",class:{\n 'is-invalid': _vm.$v.jobs.description.$error,\n 'is-valid': !_vm.$v.jobs.description.$invalid,\n },on:{\"blur\":_vm.populateKanban},model:{value:(_vm.jobs.description),callback:function ($$v) {_vm.$set(_vm.jobs, \"description\", $$v)},expression:\"jobs.description\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-4\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"DESCRIÇÃO EXTRA DA VAGA\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",model:{value:(_vm.jobs.extra_description),callback:function ($$v) {_vm.$set(_vm.jobs, \"extra_description\", $$v)},expression:\"jobs.extra_description\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"BENEFÍCIOS\")]),_vm._v(\" \"),_c('VueTagsInput',{staticClass:\"full mt-2\",attrs:{\"tags\":_vm.jobs.benefits},on:{\"adding-duplicate\":function($event){return _vm.$toast.error('Esta tag já foi inserida')},\"tags-changed\":(newTags) => (_vm.jobs.benefits = newTags)},model:{value:(_vm.benefits),callback:function ($$v) {_vm.benefits=$$v},expression:\"benefits\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"HABILIDADES COMPORTAMENTAIS\")]),_vm._v(\" \"),_c('VueTagsInput',{staticClass:\"full mt-2 pb-3\",attrs:{\"tags\":_vm.jobs.behavioral},on:{\"before-adding-tag\":function($event){return _vm.isDuplicated($event, 1)},\"adding-duplicate\":function($event){return _vm.$toast.error('ESTA TAG JÁ FOI INSERIDA')},\"tags-changed\":(newTags) => (_vm.jobs.behavioral = newTags)},model:{value:(_vm.behavioral),callback:function ($$v) {_vm.behavioral=$$v},expression:\"behavioral\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold mb-2\"},[_vm._v(\"DATA DE ENTREGA\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control bg-white\",\"language\":_vm.ptBR},model:{value:(_vm.jobs.date_shortlist),callback:function ($$v) {_vm.$set(_vm.jobs, \"date_shortlist\", $$v)},expression:\"jobs.date_shortlist\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold mb-2\"},[_vm._v(\"DATA DE CONCLUSÃO\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control bg-white\",\"language\":_vm.ptBR},model:{value:(_vm.jobs.date_conclusion),callback:function ($$v) {_vm.$set(_vm.jobs, \"date_conclusion\", $$v)},expression:\"jobs.date_conclusion\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"MENSAGEM FINAL\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",model:{value:(_vm.jobs.final_message),callback:function ($$v) {_vm.$set(_vm.jobs, \"final_message\", $$v)},expression:\"jobs.final_message\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-md-5 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"SALÁRIO MENSAL\")]),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control mt-2\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.jobs.minimum_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"minimum_remuneration\", $$v)},expression:\"jobs.minimum_remuneration\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1 col-md-2 col-xs-12 text-center mt-3 pt-4\"},[(_vm.range_salary)?_c('span',[_vm._v(\"ATÉ\")]):_vm._e()]),_vm._v(\" \"),(_vm.range_salary)?_c('div',{staticClass:\"col-lg-4 col-md-5 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"}),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control mt-2\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.jobs.maximum_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"maximum_remuneration\", $$v)},expression:\"jobs.maximum_remuneration\"}})],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2 pb-3\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full radius-0 f13 h-100\",on:{\"click\":_vm.changeSalary}},[_vm._v(\"\\n \"+_vm._s(_vm.range_salary\n ? \"ADICIONAR SALÁRIO FIXO\"\n : \"CADASTRAR FAIXA SALÁRIAL\")+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 py-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_remuneration,\"label\":\"OCULTAR O SALÁRIO DA VAGA\"},model:{value:(_vm.jobs.hide_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_remuneration\", $$v)},expression:\"jobs.hide_remuneration\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 py-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.ask_remuneration,\"label\":\"PERGUNTAR SOBRE O SALÁRIO\"},model:{value:(_vm.jobs.ask_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"ask_remuneration\", $$v)},expression:\"jobs.ask_remuneration\"}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"row ml-2\"},[_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_business,\"label\":\"DEIXAR O NOME DA EMPRESA CONFIDENCIAL\"},model:{value:(_vm.jobs.hide_business),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_business\", $$v)},expression:\"jobs.hide_business\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_confirm_experiences,\"label\":\"ESCONDER CONFIRMAÇÃO DE EXPERIÊNCIAS PROFISSIONAIS E EDUCACIONAIS\"},model:{value:(_vm.jobs.hide_confirm_experiences),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_confirm_experiences\", $$v)},expression:\"jobs.hide_confirm_experiences\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_upload_cv,\"label\":\"NÃO PERMITIR UPLOAD DO CV DURANTE A INSCRIÇÃO\"},model:{value:(_vm.jobs.hide_upload_cv),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_upload_cv\", $$v)},expression:\"jobs.hide_upload_cv\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.mandatory_cv,\"label\":\"UPLOAD DO CV DURANTE A INSCRIÇÃO OBRIGATÓRIO\"},model:{value:(_vm.jobs.mandatory_cv),callback:function ($$v) {_vm.$set(_vm.jobs, \"mandatory_cv\", $$v)},expression:\"jobs.mandatory_cv\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.mandatory_portfolio,\"label\":\"SOLICITAR O PORTFOLIO DE CANDIDATO(A)\"},model:{value:(_vm.jobs.mandatory_portfolio),callback:function ($$v) {_vm.$set(_vm.jobs, \"mandatory_portfolio\", $$v)},expression:\"jobs.mandatory_portfolio\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.candidates_uniques,\"label\":\"CANDIDATO ÚNICO POR CPF\"},model:{value:(_vm.jobs.candidates_uniques),callback:function ($$v) {_vm.$set(_vm.jobs, \"candidates_uniques\", $$v)},expression:\"jobs.candidates_uniques\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_rg,\"label\":\"PERGUNTAR RG\"},model:{value:(_vm.jobs.allow_rg),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_rg\", $$v)},expression:\"jobs.allow_rg\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.question_last_work,\"label\":\"PERGUNTAR ULTIMO CARGO/EMPRESA\"},model:{value:(_vm.jobs.question_last_work),callback:function ($$v) {_vm.$set(_vm.jobs, \"question_last_work\", $$v)},expression:\"jobs.question_last_work\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_hometown,\"label\":\"PERGUNTAR CIDADE NATAL\"},model:{value:(_vm.jobs.has_hometown),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_hometown\", $$v)},expression:\"jobs.has_hometown\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_is_pcd,\"label\":\"PERGUNTAR PCD\"},model:{value:(_vm.jobs.has_is_pcd),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_is_pcd\", $$v)},expression:\"jobs.has_is_pcd\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_ethnicity,\"label\":\"PERGUNTAR ETINIA\"},model:{value:(_vm.jobs.has_ethnicity),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_ethnicity\", $$v)},expression:\"jobs.has_ethnicity\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_sexual_orientation,\"label\":\"PERGUNTAR ORIENTACAO SEXUAL\"},model:{value:(_vm.jobs.has_sexual_orientation),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_sexual_orientation\", $$v)},expression:\"jobs.has_sexual_orientation\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.require_mobile_phone,\"label\":\"CELULAR OBRIGATÓRIO?\"},model:{value:(_vm.jobs.require_mobile_phone),callback:function ($$v) {_vm.$set(_vm.jobs, \"require_mobile_phone\", $$v)},expression:\"jobs.require_mobile_phone\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.require_linkedin_url,\"label\":\"LINKEDIN OBRIGATÓRIO?\"},model:{value:(_vm.jobs.require_linkedin_url),callback:function ($$v) {_vm.$set(_vm.jobs, \"require_linkedin_url\", $$v)},expression:\"jobs.require_linkedin_url\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('Bigfive',{attrs:{\"jobs\":_vm.jobs,\"job_id\":_vm.job_id,\"amount\":_vm.bigfive.amount_itens,\"selective_process\":_vm.bigfive_edit ? _vm.bigfive_edit.selective_process_id : null}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.is_trainee,\"label\":\"É UMA VAGA TRAINEE?\"},model:{value:(_vm.jobs.is_trainee),callback:function ($$v) {_vm.$set(_vm.jobs, \"is_trainee\", $$v)},expression:\"jobs.is_trainee\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.is_invitations,\"label\":\"É UMA VAGA PARA CONVIDADOS?\"},model:{value:(_vm.jobs.is_invitations),callback:function ($$v) {_vm.$set(_vm.jobs, \"is_invitations\", $$v)},expression:\"jobs.is_invitations\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.require_average_point,\"label\":\"NOTA OBRIGATÓRIA?\"},model:{value:(_vm.jobs.require_average_point),callback:function ($$v) {_vm.$set(_vm.jobs, \"require_average_point\", $$v)},expression:\"jobs.require_average_point\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.require_scholarship,\"label\":\"TIPO DE BOLSA OBRIGATÓRIO?\"},model:{value:(_vm.jobs.require_scholarship),callback:function ($$v) {_vm.$set(_vm.jobs, \"require_scholarship\", $$v)},expression:\"jobs.require_scholarship\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.require_formation_type,\"label\":\"TIPO DE FORMAÇÃO OBRIGATÓRIO?\"},model:{value:(_vm.jobs.require_formation_type),callback:function ($$v) {_vm.$set(_vm.jobs, \"require_formation_type\", $$v)},expression:\"jobs.require_formation_type\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_institution_reparse,\"label\":\"TRAZER INSTITUIÇÃO PELO REPARSE?\"},model:{value:(_vm.jobs.allow_institution_reparse),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_institution_reparse\", $$v)},expression:\"jobs.allow_institution_reparse\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_questions_csv,\"label\":\"EXIBIR PERGUNTAS NO CSV?\"},model:{value:(_vm.jobs.allow_questions_csv),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_questions_csv\", $$v)},expression:\"jobs.allow_questions_csv\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_address,\"label\":\"PERGUNTAR ENDEREÇO\"},model:{value:(_vm.jobs.allow_address),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_address\", $$v)},expression:\"jobs.allow_address\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_reference_contacts,\"label\":\"PERGUNTAR CONTATOS DE REFERÊNCIA\"},model:{value:(_vm.jobs.allow_reference_contacts),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_reference_contacts\", $$v)},expression:\"jobs.allow_reference_contacts\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_unlimited_chances,\"label\":\"PERMITIR CHANCES ILIMITADAS\"},model:{value:(_vm.jobs.allow_unlimited_chances),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_unlimited_chances\", $$v)},expression:\"jobs.allow_unlimited_chances\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.show_addition_info,\"label\":\"MOSTRAR INFORMAÇÕES ADICIONAIS?\"},model:{value:(_vm.jobs.show_addition_info),callback:function ($$v) {_vm.$set(_vm.jobs, \"show_addition_info\", $$v)},expression:\"jobs.show_addition_info\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.show_genre,\"label\":\"MOSTRAR IDENTIDADE DE GÊNERO?\"},model:{value:(_vm.jobs.show_genre),callback:function ($$v) {_vm.$set(_vm.jobs, \"show_genre\", $$v)},expression:\"jobs.show_genre\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.show_language,\"label\":\"MOSTRAR IDIOMAS?\"},model:{value:(_vm.jobs.show_language),callback:function ($$v) {_vm.$set(_vm.jobs, \"show_language\", $$v)},expression:\"jobs.show_language\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2 mb-3\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.allow_city_interest,\"label\":\"PERGUNTAR LOCAL DE INTERESSE?\"},model:{value:(_vm.jobs.allow_city_interest),callback:function ($$v) {_vm.$set(_vm.jobs, \"allow_city_interest\", $$v)},expression:\"jobs.allow_city_interest\"}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),(_vm.jobs.is_trainee)?_c('div',{staticStyle:{\"width\":\"100%\"}},[_c('TraineeYears',{attrs:{\"job_record\":_vm.jobs},on:{\"save\":_vm.setTraineeYearsValid}}),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua mx-3 my-4\"})],1):_vm._e(),_vm._v(\" \"),(_vm.jobs.is_invitations)?_c('div',{staticClass:\"mt-2\",staticStyle:{\"width\":\"100%\"}},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\" CONVIDADOS - CONFIGURAÇÕES\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 mt-2\"},[_c('button',{staticClass:\"btn btn-primary radius-0 p-2 full f13\",on:{\"click\":_vm.showTagOverview}},[_vm._v(\"\\n ADICIONAR TAGS\\n \")])]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua mx-3 my-4\"})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('JobSkills',{attrs:{\"job_id\":_vm.job_id}})],1),_vm._v(\" \"),(_vm.showKanban)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"ETAPAS DO PROCESSO SELETIVO\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"ADICIONE OU REORGANIZE ETAPAS DO PROCESSO SELETIVO PARA ESTA\\n VAGA\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('Kanban',{staticStyle:{\"text-transform\":\"uppercase\"},attrs:{\"id\":\"kanban\",\"gallery\":_vm.gallery || _vm.gallery_current,\"recruiter_id\":_vm.recruiter_id,\"job_id\":_vm.job_id}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"ADICIONE VÍDEOS A JORNADA DE CANDIDATO(A)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"\\n CRIE OU ADICIONE VÍDEOS APRESENTADO A EMPRESA OU A VAGA\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full p-2 radius-0 f13\",on:{\"click\":_vm.addInstitutional}},[_vm._v(\"\\n ADICIONAR VÍDEO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"row\"},_vm._l((_vm.institutionals),function(institutional,index){return _c('div',{key:index,staticClass:\"col-lg-12 col-xs-12\"},[_c('InstitutionalVideo',{attrs:{\"item\":institutional,\"index\":index,\"job_id\":_vm.job_id,\"gallery_current\":_vm.gallery_current,\"requestSave\":_vm.requestSave,\"reference_id\":_vm.job_id},on:{\"deleteInstitutional\":function($event){return _vm.deleteInstitutional($event)},\"setInstitutionalIndex\":_vm.setInstitutionalIndex}})],1)}),0)])]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CRIE SUA PROVA\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"ADICIONE PROVAS COMO AGRUPAMENTO DE PERGUNTAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2\",on:{\"click\":_vm.addEvaluations}},[_vm._v(\"\\n ADICIONAR PROVA\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('Evaluations',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.has_evaluations),expression:\"has_evaluations\"}],attrs:{\"job_id\":_vm.job_id}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua mt-4 mb-0\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CRIE SUA ENTREVISTA ON DEMAND\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"ADICIONE PERGUNTAS OU USE UM TEMPLATE CIADO\\n ANTERIORMENTE\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2\",on:{\"click\":_vm.addQuestion}},[_vm._v(\"\\n ADICIONAR PERGUNTA\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2 mt-2\",on:{\"click\":_vm.showSelectTemplate}},[_vm._v(\"\\n USAR TEMPLATE\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('Questions',{attrs:{\"questions_record\":_vm.questions_record,\"job_id\":_vm.job_id},on:{\"input\":_vm.saveQuestion},model:{value:(_vm.questions),callback:function ($$v) {_vm.questions=$$v},expression:\"questions\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8\"},[(_vm.questions.length > 1)?_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2\",on:{\"click\":_vm.addQuestion}},[_vm._v(\"\\n ADICIONAR OUTRA PERGUNTA\\n \")]):_vm._e()])]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua mt-4 mb-0\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"mt-1 btn btnhoverprimary\",staticStyle:{\"border-radius\":\"0px\"},on:{\"click\":_vm.back}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"\\n VOLTAR A LISTAGEM DE VAGA\\n \")],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-5 col-xs-12 overflow-hidden\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 formJov p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.save(true, true)}}},[_vm._v(\"\\n SALVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"RESPONSÁVEL PELA VAGA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.jobs.recruiter_id),expression:\"jobs.recruiter_id\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.jobs, \"recruiter_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.info_account),function(recruiter){return _c('option',{key:recruiter.id,staticClass:\"form-control\",domProps:{\"value\":recruiter.id}},[_vm._v(\"\\n \"+_vm._s(recruiter.name)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"STATUS DA VAGA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.jobs.status),expression:\"jobs.status\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.jobs, \"status\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.statusJob),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"VISIBILIDADE DA VAGA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.jobs.job_scope),expression:\"jobs.job_scope\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.jobs, \"job_scope\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.job_scopes),function(scope){return _c('option',{key:scope.value,domProps:{\"value\":scope.value}},[_vm._v(\"\\n \"+_vm._s(scope.text)+\"\\n \")])}),0)])])])]),_vm._v(\" \"),(_vm.job_id != 0)?_c('div',{staticClass:\"col-lg-12 formJov mt-3 p-2\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.job_route),expression:\"job_route\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"linkShare\",\"readonly\":\"true\"},domProps:{\"value\":(_vm.job_route)},on:{\"input\":function($event){if($event.target.composing)return;_vm.job_route=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('button',{staticClass:\"btn full btn-primary f13 radius-0\",on:{\"click\":_vm.copyCandidateLink}},[_vm._v(\"\\n COPIAR LINK\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"btn full btn-linkedin f13 radius-0\",on:{\"click\":_vm.linkedin}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":['fab', 'linkedin']}}),_vm._v(\"COMPARTILHAR NO LINKEDIN\\n \")],1)])])])],1):_vm._e()])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n {{ job_edit ? \"Editar Vaga\" : \"Crie uma Vaga\" }}\n \n \n
\n
\n
\n TÍTULO DA VAGA \n \n
\n
\n CIDADE \n \n
\n
\n ÁREA \n (job_sector.id = sector.id)\"\n classes=\"mt-1\"\n inputClasses=\"radius-0 form-control\"\n />\n
\n
\n
\n \n
\n DESCRIÇÃO DA VAGA \n \n
\n
\n DESCRIÇÃO EXTRA DA VAGA \n \n
\n
\n BENEFÍCIOS \n (jobs.benefits = newTags)\"\n />\n
\n
\n HABILIDADES COMPORTAMENTAIS \n (jobs.behavioral = newTags)\"\n />\n
\n
\n DATA DE ENTREGA \n \n
\n
\n DATA DE CONCLUSÃO \n \n
\n
\n MENSAGEM FINAL \n \n
\n
\n
\n \n
\n
\n
\n SALÁRIO MENSAL \n \n
\n
\n ATÉ \n
\n
\n \n \n
\n
\n
\n
\n \n {{\n range_salary\n ? \"ADICIONAR SALÁRIO FIXO\"\n : \"CADASTRAR FAIXA SALÁRIAL\"\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
\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 \n
\n \n
\n
\n CONVIDADOS - CONFIGURAÇÕES \n
\n
\n \n ADICIONAR TAGS\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n ETAPAS DO PROCESSO SELETIVO \n
\n
\n ADICIONE OU REORGANIZE ETAPAS DO PROCESSO SELETIVO PARA ESTA\n VAGA\n \n
\n
\n
\n
\n
\n
\n
\n
\n ADICIONE VÍDEOS A JORNADA DE CANDIDATO(A) \n
\n
\n \n CRIE OU ADICIONE VÍDEOS APRESENTADO A EMPRESA OU A VAGA\n \n
\n
\n
\n
\n \n ADICIONAR VÍDEO\n \n
\n
\n
\n
\n
\n
\n
\n
\n CRIE SUA PROVA \n
\n
\n ADICIONE PROVAS COMO AGRUPAMENTO DE PERGUNTAS \n
\n
\n
\n
\n \n ADICIONAR PROVA\n \n\n
\n
\n \n
\n\n
\n
\n
\n
\n
\n
\n CRIE SUA ENTREVISTA ON DEMAND \n
\n
\n ADICIONE PERGUNTAS OU USE UM TEMPLATE CIADO\n ANTERIORMENTE \n
\n
\n
\n
\n \n ADICIONAR PERGUNTA\n \n \n USAR TEMPLATE\n \n
\n
\n \n
\n
\n
\n 1\"\n @click=\"addQuestion\"\n class=\"btn btn-primary full f13 radius-0 p-2\"\n >\n ADICIONAR OUTRA PERGUNTA\n \n
\n
\n
\n
\n
\n \n \n VOLTAR A LISTAGEM DE VAGA\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n RESPONSÁVEL PELA VAGA \n \n \n {{ recruiter.name }}\n \n \n
\n
\n
\n
\n STATUS DA VAGA \n \n \n {{ status.text }}\n \n \n
\n
\n
\n
\n VISIBILIDADE DA VAGA \n \n \n {{ scope.text }}\n \n \n
\n
\n
\n
\n
\n
\n \n
\n \n
\n
\n \n COPIAR LINK\n \n
\n
\n \n COMPARTILHAR NO LINKEDIN\n \n
\n
\n \n
\n
\n
\n
\n \n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=5a661cd8&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Vagas\",\"menu\":\"Vagas\"}},[_c('div',{staticClass:\"row mb-2\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h3',[_vm._v(\"VAGAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-10 p-0 m-0\"},[_c('inertia-link',{attrs:{\"href\":\"/recruiters/jobs/new\"}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"height\":\"38px\",\"width\":\"95%\"}},[_vm._v(\"\\n CADASTRAR NOVA VAGA\\n \")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-10 p-0 m-0\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":'/recruiters/csv_jobs.csv'}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"height\":\"38px\",\"width\":\"95%\"}},[_vm._v(\"\\n DOWNLOAD VAGAS\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-10 p-0 m-0\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":'/recruiters/applies/export_no_video_candidates_all.csv'}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"height\":\"38px\",\"width\":\"95%\"}},[_vm._v(\"\\n DOWNLOAD CANDIDATOS INCOMPLETOS\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"})]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-9 pl-0\"},[_c('div',{staticClass:\"select nav-tabs mb-2 block_info_white d-flex align-items-center\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.status),expression:\"status\"}],staticClass:\"form-control col-xl-4\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.status=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.searchJobs]}},_vm._l((_vm.statusJob),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0),_vm._v(\" \"),(_vm.total_recruiters > 1)?_c('div',{staticClass:\"ml-1 pointer\",on:{\"click\":_vm.searchMyJobs}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.onlyMyJobs),expression:\"onlyMyJobs\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.onlyMyJobs)?_vm._i(_vm.onlyMyJobs,null)>-1:(_vm.onlyMyJobs)},on:{\"change\":[function($event){var $$a=_vm.onlyMyJobs,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.onlyMyJobs=$$a.concat([$$v]))}else{$$i>-1&&(_vm.onlyMyJobs=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.onlyMyJobs=$$c}},_vm.searchJobs]}}),_vm._v(\" \"),_c('span',{staticClass:\"label-bold color-black\"},[_vm._v(\"Ver somente as minhas vagas\")])]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12 pl-0 pt-1\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"color-black fa fa-search ml-2 mt-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border pl-5\",staticStyle:{\"padding\":\"0px\"},attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchJobs.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})]),_vm._v(\" \"),_c('div',[_c('span',{staticClass:\"label-bold right color-black\"},[_vm._v(_vm._s(_vm.amount_applies)+\" CANDIDATOS | \"+_vm._s(_vm.totalJobs)+\" VAGAS\")])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 d-flex mt-0 pt-0\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"home\",\"role\":\"tabpanel\",\"aria-labelledby\":\"home-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n TÍTULO DA VAGA\\n \"),_c('OrderTable',{attrs:{\"field\":\"title\",\"entity\":\"job\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"CANDIDATO(A)S\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"job\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"recruiter_name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"LINK\")]),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.jobs),function(job){return _c('tr',{key:job.id,class:{ 'content-loading': _vm.loading }},[_c('td',{staticClass:\"text-truncate\",staticStyle:{\"max-width\":\"400px\"}},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/applies`}},[_c('b',{staticClass:\"color-grey-primary text-truncate\"},[_vm._v(_vm._s(job.title))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('p',{staticClass:\"mb-0\",staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"small-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(job.minimum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(job.maximum_remuneration != 0),expression:\"job.maximum_remuneration != 0\"}],staticClass:\"small-text\"},[_vm._v(\"|\\n \"+_vm._s(_vm._f(\"currency\")(job.maximum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/applies`}},[_c('span',{staticClass:\"pointer alert_small box-danger\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.reproved))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.no_avaliation))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.process))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(job.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(job.recruiter_name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(job.url),expression:\"job.url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color-grey\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"link\"}})],1)]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",staticStyle:{\"background-color\":\"#fcfcfc\"},attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu dropdownjob\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/edit`}},[_c('p',{staticClass:\"mt-0 mb-0\"},[_vm._v(\"EDITAR VAGA\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/applies`}},[_c('p',{staticClass:\"mt-0 mb-0\"},[_vm._v(\"LISTA CANDIDATO(A)S\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/kanban`}},[_c('p',{staticClass:\"mt-0 mb-0\"},[_vm._v(\"KANBAN CANDIDATO(A)S\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.clone_job(job.id)}}},[_c('p',{staticClass:\"mt-0 mb-0\"},[_vm._v(\"DUPLICAR VAGA\")])])],1)])])])])])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"profile\",\"role\":\"tabpanel\",\"aria-labelledby\":\"profile-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n TÍTULO DA VAGA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"title\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Candidato(a)s\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"created_at\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"recruiter_name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"URL\")]),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.jobs_deleted),function(job){return _c('tr',{key:job.id},[_c('td',[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(job.title))]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('p',[_c('span',{staticClass:\"small-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(job.minimum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(job.maximum_remuneration != 0),expression:\"job.maximum_remuneration != 0\"}],staticClass:\"small-text\"},[_vm._v(\"|\\n \"+_vm._s(_vm._f(\"currency\")(job.maximum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))])])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"pointer alert_small alert box-danger\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.reproved))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small alert box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.no_avaliation))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small alert box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.process))])]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(job.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(job.recruiter_name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(job.url),expression:\"job.url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"paperclip\"}})],1)]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu dropdownjob\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/edit`}},[_c('p',[_vm._v(\"EDITAR VAGA\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/applies`}},[_vm._v(\"LISTA CANDIDATO(A)S\")])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/kanban`}},[_vm._v(\"Kanban Candidato(a)s\")])],1)])])])])])}),0)])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"mb-2\"},[_c('span',{staticClass:\"pointer alert_small alert box-danger m\",attrs:{\"role\":\"alert\"}},[_vm._v(\".\")]),_vm._v(\" \"),_c('span',[_vm._v(\"= CANDIDATO(A)S REPROVADOS\")])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-2\"},[_c('span',{staticClass:\"pointer alert_small alert box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(\".\")]),_vm._v(\" \"),_c('span',[_vm._v(\"= CANDIDATO(A)S ESPERANDO AVALIAÇÃO\")])]),_vm._v(\" \"),_c('div',[_c('span',{staticClass:\"pointer alert_small alert box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(\".\")]),_vm._v(\" \"),_c('span',[_vm._v(\"= CANDIDATO(A)S QUE EVOLUÍRAM NO PROCESSO\")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n \n \n CADASTRAR NOVA VAGA\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n {{ status.text }}\n \n \n\n
1\"\n @click=\"searchMyJobs\"\n >\n \n Ver somente as minhas vagas \n
\n
\n
\n
\n
\n
\n {{amount_applies }} CANDIDATOS | {{ totalJobs }} VAGAS \n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n \n {{\n job.title\n }} \n \n \n \n {{\n job.minimum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n |\n {{\n job.maximum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n
\n \n \n \n {{ job.reproved }} \n {{ job.no_avaliation }} \n {{ job.process }} \n \n \n \n {{ job.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ job.recruiter_name }}\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 {{ job.title }} \n \n \n {{\n job.minimum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n |\n {{\n job.maximum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n
\n \n \n {{ job.reproved }} \n {{ job.no_avaliation }} \n {{ job.process }} \n \n \n {{ job.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ job.recruiter_name }}\n \n \n \n \n \n \n\n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n . \n = CANDIDATO(A)S REPROVADOS \n
\n
\n . \n = CANDIDATO(A)S ESPERANDO AVALIAÇÃO \n
\n
\n . \n = CANDIDATO(A)S QUE EVOLUÍRAM NO PROCESSO \n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=27d4b6a2&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"menu\":\"Vagas\",\"customStyle\":{ backgroundColor: '#fcfcfc' }}},[_c('title',[_vm._v(\"\\n \"+_vm._s(_vm.job_edit ? \"Editar Vaga\" : \"Crie uma Vaga\")+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-md-7 col-xs-12 overflow-auto\",staticStyle:{\"height\":\"85vh\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TÍTULO DA VAGA\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.jobs.title},model:{value:(_vm.jobs.title),callback:function ($$v) {_vm.$set(_vm.jobs, \"title\", $$v)},expression:\"jobs.title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CIDADE\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"whenSelected\":_vm.setCity,\"placeholder\":\"CIDADE\",\"classes\":\"mt-1\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"ÁREA\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/recruiters/job_sectors\",\"responseDataName\":\"job_sectors\",\"placeholder\":\"ÁREA\",\"selectedEl\":_vm.job_sector,\"clearOption\":true,\"camelCase\":true,\"whenSelected\":(sector) => (_vm.job_sector.id = sector.id),\"classes\":\"mt-1\",\"inputClasses\":\"radius-0 form-control\"},model:{value:(_vm.job_sector.title),callback:function ($$v) {_vm.$set(_vm.job_sector, \"title\", $$v)},expression:\"job_sector.title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"DESCRIÇÃO DA VAGA\")]),_vm._v(\" \"),_c('ckeditor',{staticClass:\"mt-2\",class:{\n 'is-invalid': _vm.$v.jobs.description.$error,\n 'is-valid': !_vm.$v.jobs.description.$invalid,\n },on:{\"blur\":_vm.populateKanban},model:{value:(_vm.jobs.description),callback:function ($$v) {_vm.$set(_vm.jobs, \"description\", $$v)},expression:\"jobs.description\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"BENEFÍCIOS\")]),_vm._v(\" \"),_c('VueTagsInput',{staticClass:\"full mt-2\",attrs:{\"tags\":_vm.jobs.benefits},on:{\"adding-duplicate\":function($event){return _vm.$toast.error('Esta tag já foi inserida')},\"tags-changed\":(newTags) => (_vm.jobs.benefits = newTags)},model:{value:(_vm.benefits),callback:function ($$v) {_vm.benefits=$$v},expression:\"benefits\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"HABILIDADES COMPORTAMENTAIS\")]),_vm._v(\" \"),_c('VueTagsInput',{staticClass:\"full mt-2 pb-3\",attrs:{\"tags\":_vm.jobs.behavioral},on:{\"before-adding-tag\":function($event){return _vm.isDuplicated($event, 1)},\"adding-duplicate\":function($event){return _vm.$toast.error('ESTA TAG JÁ FOI INSERIDA')},\"tags-changed\":(newTags) => (_vm.jobs.behavioral = newTags)},model:{value:(_vm.behavioral),callback:function ($$v) {_vm.behavioral=$$v},expression:\"behavioral\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold mb-2\"},[_vm._v(\"DATA DE ENTREGA\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control bg-white\",\"language\":_vm.ptBR},model:{value:(_vm.jobs.date_shortlist),callback:function ($$v) {_vm.$set(_vm.jobs, \"date_shortlist\", $$v)},expression:\"jobs.date_shortlist\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold mb-2\"},[_vm._v(\"DATA DE CONCLUSÃO\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control bg-white\",\"language\":_vm.ptBR},model:{value:(_vm.jobs.date_conclusion),callback:function ($$v) {_vm.$set(_vm.jobs, \"date_conclusion\", $$v)},expression:\"jobs.date_conclusion\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-md-5 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"SALÁRIO MENSAL\")]),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control mt-2\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.jobs.minimum_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"minimum_remuneration\", $$v)},expression:\"jobs.minimum_remuneration\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-1 col-md-2 col-xs-12 text-center mt-3 pt-4\"},[(_vm.range_salary)?_c('span',[_vm._v(\"ATÉ\")]):_vm._e()]),_vm._v(\" \"),(_vm.range_salary)?_c('div',{staticClass:\"col-lg-4 col-md-5 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"}),_vm._v(\" \"),_c('currency-input',{staticClass:\"form-control mt-2\",attrs:{\"placeholder\":\"0,00\"},model:{value:(_vm.jobs.maximum_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"maximum_remuneration\", $$v)},expression:\"jobs.maximum_remuneration\"}})],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2 pb-3\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full radius-0 f13 h-100\",on:{\"click\":_vm.changeSalary}},[_vm._v(\"\\n \"+_vm._s(_vm.range_salary\n ? \"ADICIONAR SALÁRIO FIXO\"\n : \"CADASTRAR FAIXA SALÁRIAL\")+\"\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 py-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_remuneration,\"label\":\"OCULTAR O SALÁRIO DA VAGA\"},model:{value:(_vm.jobs.hide_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_remuneration\", $$v)},expression:\"jobs.hide_remuneration\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12 py-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.ask_remuneration,\"label\":\"PERGUNTAR SOBRE O SALÁRIO\"},model:{value:(_vm.jobs.ask_remuneration),callback:function ($$v) {_vm.$set(_vm.jobs, \"ask_remuneration\", $$v)},expression:\"jobs.ask_remuneration\"}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"row ml-2\"},[_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_business,\"label\":\"DEIXAR O NOME DA EMPRESA CONFIDENCIAL\"},model:{value:(_vm.jobs.hide_business),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_business\", $$v)},expression:\"jobs.hide_business\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_confirm_experiences,\"label\":\"ESCONDER CONFIRMAÇÃO DE EXPERIÊNCIAS PROFISSIONAIS E EDUCACIONAIS\"},model:{value:(_vm.jobs.hide_confirm_experiences),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_confirm_experiences\", $$v)},expression:\"jobs.hide_confirm_experiences\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.hide_upload_cv,\"label\":\"NÃO PERMITIR UPLOAD DO CV DURANTE A INSCRIÇÃO\"},model:{value:(_vm.jobs.hide_upload_cv),callback:function ($$v) {_vm.$set(_vm.jobs, \"hide_upload_cv\", $$v)},expression:\"jobs.hide_upload_cv\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.mandatory_cv,\"label\":\"UPLOAD DO CV DURANTE A INSCRIÇÃO OBRIGATÓRIO\"},model:{value:(_vm.jobs.mandatory_cv),callback:function ($$v) {_vm.$set(_vm.jobs, \"mandatory_cv\", $$v)},expression:\"jobs.mandatory_cv\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.mandatory_portfolio,\"label\":\"SOLICITAR O PORTFOLIO DE CANDIDATO(A)\"},model:{value:(_vm.jobs.mandatory_portfolio),callback:function ($$v) {_vm.$set(_vm.jobs, \"mandatory_portfolio\", $$v)},expression:\"jobs.mandatory_portfolio\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.candidates_uniques,\"label\":\"CANDIDATO ÚNICO POR CPF\"},model:{value:(_vm.jobs.candidates_uniques),callback:function ($$v) {_vm.$set(_vm.jobs, \"candidates_uniques\", $$v)},expression:\"jobs.candidates_uniques\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.question_last_work,\"label\":\"PERGUNTAR ULTIMO CARGO/EMPRESA\"},model:{value:(_vm.jobs.question_last_work),callback:function ($$v) {_vm.$set(_vm.jobs, \"question_last_work\", $$v)},expression:\"jobs.question_last_work\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_hometown,\"label\":\"PERGUNTAR CIDADE NATAL\"},model:{value:(_vm.jobs.has_hometown),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_hometown\", $$v)},expression:\"jobs.has_hometown\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_is_pcd,\"label\":\"PERGUNTAR PCD\"},model:{value:(_vm.jobs.has_is_pcd),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_is_pcd\", $$v)},expression:\"jobs.has_is_pcd\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_ethnicity,\"label\":\"PERGUNTAR ETINIA\"},model:{value:(_vm.jobs.has_ethnicity),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_ethnicity\", $$v)},expression:\"jobs.has_ethnicity\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2\"},[_c('SwitchCheckbox',{attrs:{\"value\":_vm.jobs.has_sexual_orientation,\"label\":\"PERGUNTAR ORIENTACAO SEXUAL\"},model:{value:(_vm.jobs.has_sexual_orientation),callback:function ($$v) {_vm.$set(_vm.jobs, \"has_sexual_orientation\", $$v)},expression:\"jobs.has_sexual_orientation\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-2 mb-3\"},[_c('Bigfive',{attrs:{\"jobs\":_vm.jobs,\"job_id\":_vm.job_id,\"amount\":_vm.bigfive.amount_itens,\"selective_process\":_vm.bigfive_edit ? _vm.bigfive_edit.selective_process_id : null}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('JobSkills',{attrs:{\"job_id\":_vm.job_id}})],1),_vm._v(\" \"),(_vm.showKanban)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"ETAPAS DO PROCESSO SELETIVO\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"ADICIONE OU REORGANIZE ETAPAS DO PROCESSO SELETIVO PARA ESTA\\n VAGA\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('Kanban',{staticStyle:{\"text-transform\":\"uppercase\"},attrs:{\"id\":\"kanban\",\"gallery\":_vm.gallery || _vm.gallery_current,\"recruiter_id\":_vm.recruiter_id,\"job_id\":_vm.job_id}})],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"ADICIONE VÍDEOS A JORNADA DE CANDIDATO(A)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"\\n CRIE OU ADICIONE VÍDEOS APRESENTADO A EMPRESA OU A VAGA\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full p-2 radius-0 f13\",on:{\"click\":_vm.addInstitutional}},[_vm._v(\"\\n ADICIONAR VÍDEO\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{staticClass:\"row\"},_vm._l((_vm.institutionals),function(institutional,index){return _c('div',{key:index,staticClass:\"col-lg-12 col-xs-12\"},[_c('InstitutionalVideo',{attrs:{\"item\":institutional,\"index\":index,\"job_id\":_vm.job_id,\"gallery_current\":_vm.gallery_current,\"requestSave\":_vm.requestSave,\"reference_id\":_vm.job_id},on:{\"deleteInstitutional\":function($event){return _vm.deleteInstitutional($event)},\"setInstitutionalIndex\":_vm.setInstitutionalIndex}})],1)}),0)])]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua my-4\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CRIE SUA PROVA\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"ADICIONE PROVAS COMO AGRUPAMENTO DE PERGUNTAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2\",on:{\"click\":_vm.addEvaluations}},[_vm._v(\"\\n ADICIONAR PROVA\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[(_vm.has_evaluations)?_c('Evaluations',{attrs:{\"job_id\":_vm.job_id}}):_vm._e()],1)]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua mt-4 mb-0\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CRIE SUA ENTREVISTA ON DEMAND\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 color-primary\"},[_vm._v(\"ADICIONE PERGUNTAS OU USE UM TEMPLATE CIADO\\n ANTERIORMENTE\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2\",on:{\"click\":_vm.addQuestion}},[_vm._v(\"\\n ADICIONAR PERGUNTA\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2 mt-2\",on:{\"click\":_vm.showSelectTemplate}},[_vm._v(\"\\n USAR TEMPLATE\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('Questions',{attrs:{\"questions_record\":_vm.questions_record,\"job_id\":_vm.job_id},model:{value:(_vm.questions),callback:function ($$v) {_vm.questions=$$v},expression:\"questions\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8\"},[(_vm.questions.length > 1)?_c('button',{staticClass:\"btn btn-primary full f13 radius-0 p-2\",on:{\"click\":_vm.addQuestion}},[_vm._v(\"\\n ADICIONAR OUTRA PERGUNTA\\n \")]):_vm._e()])]),_vm._v(\" \"),_c('hr',{staticClass:\"bg-aqua mt-4 mb-0\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"mt-1 btn btnhoverprimary\",staticStyle:{\"border-radius\":\"0px\"},on:{\"click\":_vm.back}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"\\n VOLTAR A LISTAGEM DE VAGA\\n \")],1)])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-5 col-xs-12 overflow-hidden\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 formJov p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.save(true, true)}}},[_vm._v(\"\\n SALVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"RESPONSÁVEL PELA VAGA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.jobs.recruiter_id),expression:\"jobs.recruiter_id\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.jobs, \"recruiter_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.info_account),function(recruiter){return _c('option',{key:recruiter.id,staticClass:\"form-control\",domProps:{\"value\":recruiter.id}},[_vm._v(\"\\n \"+_vm._s(recruiter.name)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"STATUS DA VAGA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.jobs.status),expression:\"jobs.status\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.jobs, \"status\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.statusJob),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"VISIBILIDADE DA VAGA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.jobs.job_scope),expression:\"jobs.job_scope\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.jobs, \"job_scope\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.job_scopes),function(scope){return _c('option',{key:scope.value,domProps:{\"value\":scope.value}},[_vm._v(\"\\n \"+_vm._s(scope.text)+\"\\n \")])}),0)])])])]),_vm._v(\" \"),(_vm.job_id != 0)?_c('div',{staticClass:\"col-lg-12 formJov mt-3 p-2\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.job_route),expression:\"job_route\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"linkShare\",\"readonly\":\"true\"},domProps:{\"value\":(_vm.job_route)},on:{\"input\":function($event){if($event.target.composing)return;_vm.job_route=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('button',{staticClass:\"btn full btn-primary f13 radius-0\",on:{\"click\":_vm.copyCandidateLink}},[_vm._v(\"\\n COPIAR LINK\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('span',{staticClass:\"btn full btn-linkedin f13 radius-0\",on:{\"click\":_vm.linkedin}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":['fab', 'linkedin']}}),_vm._v(\"COMPARTILHAR NO LINKEDIN\\n \")],1)])])])],1):_vm._e()])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n {{ job_edit ? \"Editar Vaga\" : \"Crie uma Vaga\" }}\n \n \n
\n
\n
\n TÍTULO DA VAGA \n \n
\n
\n CIDADE \n \n
\n
\n ÁREA \n (job_sector.id = sector.id)\"\n classes=\"mt-1\"\n inputClasses=\"radius-0 form-control\"\n />\n
\n
\n
\n \n
\n DESCRIÇÃO DA VAGA \n \n
\n
\n BENEFÍCIOS \n (jobs.benefits = newTags)\"\n />\n
\n
\n HABILIDADES COMPORTAMENTAIS \n (jobs.behavioral = newTags)\"\n />\n
\n
\n DATA DE ENTREGA \n \n
\n
\n DATA DE CONCLUSÃO \n \n
\n
\n
\n \n
\n
\n
\n SALÁRIO MENSAL \n \n
\n
\n ATÉ \n
\n
\n \n \n
\n
\n
\n
\n \n {{\n range_salary\n ? \"ADICIONAR SALÁRIO FIXO\"\n : \"CADASTRAR FAIXA SALÁRIAL\"\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
\n
\n
\n
\n ETAPAS DO PROCESSO SELETIVO \n
\n
\n ADICIONE OU REORGANIZE ETAPAS DO PROCESSO SELETIVO PARA ESTA\n VAGA\n \n
\n
\n
\n
\n
\n
\n
\n
\n ADICIONE VÍDEOS A JORNADA DE CANDIDATO(A) \n
\n
\n \n CRIE OU ADICIONE VÍDEOS APRESENTADO A EMPRESA OU A VAGA\n \n
\n
\n
\n
\n \n ADICIONAR VÍDEO\n \n
\n
\n
\n
\n
\n
\n
\n
\n CRIE SUA PROVA \n
\n
\n ADICIONE PROVAS COMO AGRUPAMENTO DE PERGUNTAS \n
\n
\n
\n
\n \n ADICIONAR PROVA\n \n\n
\n
\n \n
\n\n
\n
\n
\n
\n
\n
\n CRIE SUA ENTREVISTA ON DEMAND \n
\n
\n ADICIONE PERGUNTAS OU USE UM TEMPLATE CIADO\n ANTERIORMENTE \n
\n
\n
\n
\n \n ADICIONAR PERGUNTA\n \n \n USAR TEMPLATE\n \n
\n
\n \n
\n
\n
\n 1\"\n @click=\"addQuestion\"\n class=\"btn btn-primary full f13 radius-0 p-2\"\n >\n ADICIONAR OUTRA PERGUNTA\n \n
\n
\n
\n
\n
\n \n \n VOLTAR A LISTAGEM DE VAGA\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n RESPONSÁVEL PELA VAGA \n \n \n {{ recruiter.name }}\n \n \n
\n
\n
\n
\n STATUS DA VAGA \n \n \n {{ status.text }}\n \n \n
\n
\n
\n
\n VISIBILIDADE DA VAGA \n \n \n {{ scope.text }}\n \n \n
\n
\n
\n
\n
\n
\n \n
\n \n
\n
\n \n COPIAR LINK\n \n
\n
\n \n COMPARTILHAR NO LINKEDIN\n \n
\n
\n \n
\n
\n
\n
\n \n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=64b2a2c0&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('limitedlayout',{attrs:{\"title\":\"Vagas\",\"menu\":\"Vagas\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h3',[_vm._v(\"VAGAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"})]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-9 pl-0\"},[_c('div',{staticClass:\"select nav-tabs mb-2 block_info_white d-flex align-items-center\"},[(_vm.total_recruiters > 1)?_c('div',{staticClass:\"ml-1 pointer\",on:{\"click\":_vm.searchMyJobs}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.onlyMyJobs),expression:\"onlyMyJobs\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.onlyMyJobs)?_vm._i(_vm.onlyMyJobs,null)>-1:(_vm.onlyMyJobs)},on:{\"change\":[function($event){var $$a=_vm.onlyMyJobs,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.onlyMyJobs=$$a.concat([$$v]))}else{$$i>-1&&(_vm.onlyMyJobs=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.onlyMyJobs=$$c}},_vm.searchJobs]}}),_vm._v(\" \"),_c('span',{staticClass:\"label-bold color-black\"},[_vm._v(\"Ver somente as minhas vagas\")])]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12 pl-0 pt-1\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"color-black fa fa-search ml-2 mt-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border pl-5\",staticStyle:{\"padding\":\"0px\"},attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchJobs.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})]),_vm._v(\" \"),_c('div',[_c('span',{staticClass:\"label-bold right color-black\"},[_vm._v(_vm._s(_vm.amount_applies)+\" CANDIDATOS | \"+_vm._s(_vm.totalJobs)+\" VAGAS\")])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 d-flex mt-0 pt-0\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"home\",\"role\":\"tabpanel\",\"aria-labelledby\":\"home-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n VAGA\\n \"),_c('OrderTable',{attrs:{\"field\":\"title\",\"entity\":\"job\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"CANDIDATO(A)S\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n CRIADA EM:\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"job\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"recruiter_name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"LINK\")])])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.jobs),function(job){return _c('tr',{key:job.id,class:{ 'content-loading': _vm.loading }},[_c('td',{staticClass:\"text-truncate\",staticStyle:{\"max-width\":\"400px\"}},[_c('inertia-link',{attrs:{\"href\":`/recruiters/limited_jobs/${job.id}/applies`}},[_c('b',{staticClass:\"color-grey-primary text-truncate\"},[_vm._v(_vm._s(job.title))])]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('p',{staticClass:\"mb-0\",staticStyle:{\"margin-top\":\"-10px\"}},[_c('span',{staticClass:\"small-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(job.minimum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(job.maximum_remuneration != 0),expression:\"job.maximum_remuneration != 0\"}],staticClass:\"small-text\"},[_vm._v(\"|\\n \"+_vm._s(_vm._f(\"currency\")(job.maximum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/applies`}},[_c('span',{staticClass:\"pointer alert_small box-danger\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.reproved))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.no_avaliation))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.process))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(job.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(job.recruiter_name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(job.url),expression:\"job.url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color-grey\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"link\"}})],1)])])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"profile\",\"role\":\"tabpanel\",\"aria-labelledby\":\"profile-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n TÍTULO DA VAGA\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"title\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"Candidato(a)s\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"created_at\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"job\",\"field\":\"recruiter_name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"URL\")]),_vm._v(\" \"),_c('td')])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.jobs_deleted),function(job){return _c('tr',{key:job.id},[_c('td',[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(job.title))]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('p',[_c('span',{staticClass:\"small-text\"},[_vm._v(_vm._s(_vm._f(\"currency\")(job.minimum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))]),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(job.maximum_remuneration != 0),expression:\"job.maximum_remuneration != 0\"}],staticClass:\"small-text\"},[_vm._v(\"|\\n \"+_vm._s(_vm._f(\"currency\")(job.maximum_remuneration,\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })))])])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"pointer alert_small alert box-danger\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.reproved))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small alert box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.no_avaliation))]),_vm._v(\" \"),_c('span',{staticClass:\"pointer alert_small alert box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(_vm._s(job.process))])]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(job.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(job.recruiter_name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(job.url),expression:\"job.url\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color\"},[_c('font-awesome-icon',{attrs:{\"icon\":\"paperclip\"}})],1)]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_c('div',{staticClass:\"menu_column nav nav-tabs\",staticStyle:{\"margin-right\":\"10px !important\"}},[_c('li',{staticClass:\"nav-item dropdown\",staticStyle:{\"background-color\":\"#f4f4f4 !important\"}},[_c('div',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"dropdown\",\"role\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"ellipsis-h\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu dropdownjob\"},[_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/edit`}},[_c('p',[_vm._v(\"EDITAR VAGA\")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/applies`}},[_vm._v(\"LISTA CANDIDATO(A)S\")])],1),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-item pointer\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/jobs/${job.id}/kanban`}},[_vm._v(\"Kanban Candidato(a)s\")])],1)])])])])])}),0)])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"mb-2\"},[_c('span',{staticClass:\"pointer alert_small alert box-danger m\",attrs:{\"role\":\"alert\"}},[_vm._v(\".\")]),_vm._v(\" \"),_c('span',[_vm._v(\"= CANDIDATO(A)S REPROVADOS\")])]),_vm._v(\" \"),_c('div',{staticClass:\"mb-2\"},[_c('span',{staticClass:\"pointer alert_small alert box-primary\",attrs:{\"role\":\"alert\"}},[_vm._v(\".\")]),_vm._v(\" \"),_c('span',[_vm._v(\"= CANDIDATO(A)S AGUARDANDO AVALIAÇÃO\")])]),_vm._v(\" \"),_c('div',[_c('span',{staticClass:\"pointer alert_small alert box-success\",attrs:{\"role\":\"alert\"}},[_vm._v(\".\")]),_vm._v(\" \"),_c('span',[_vm._v(\"= CANDIDATO(A)S QUE EVOLUÍRAM NO PROCESSO\")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n
\n
1\"\n @click=\"searchMyJobs\"\n >\n \n Ver somente as minhas vagas \n
\n
\n
\n
\n
\n
\n {{amount_applies }} CANDIDATOS | {{ totalJobs }} VAGAS \n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n \n {{\n job.title\n }} \n \n \n \n {{\n job.minimum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n |\n {{\n job.maximum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n
\n \n \n \n {{ job.reproved }} \n {{ job.no_avaliation }} \n {{ job.process }} \n \n \n \n {{ job.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ job.recruiter_name }}\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 {{ job.title }} \n \n \n {{\n job.minimum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n |\n {{\n job.maximum_remuneration\n | currency(\"R$ \", 2, {\n decimalSeparator: \",\",\n thousandsSeparator: \".\",\n })\n }} \n
\n \n \n {{ job.reproved }} \n {{ job.no_avaliation }} \n {{ job.process }} \n \n \n {{ job.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ job.recruiter_name }}\n \n \n \n \n \n \n\n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n . \n = CANDIDATO(A)S REPROVADOS \n
\n
\n . \n = CANDIDATO(A)S AGUARDANDO AVALIAÇÃO \n
\n
\n . \n = CANDIDATO(A)S QUE EVOLUÍRAM NO PROCESSO \n
\n
\n
\n \n \n\n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=6c5d1d7c&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mb-3 position-relative\"},[_c('div',{staticClass:\"close radius-0\",staticStyle:{\"right\":\"0px\"},on:{\"click\":function($event){return _vm.deleteVideo(_vm.index)}}},[_c('i',{staticClass:\"fa fa-times f10\",staticStyle:{\"margin-bottom\":\"7px\"}})]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\",staticStyle:{\"background-color\":\"#f4f4f4\"}},[(!_vm.record)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('label',[_vm._v(\"TÍTULO DO VÍDEO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.gallery_item.name),expression:\"gallery_item.name\"}],staticClass:\"form-control mb-2\",class:{ 'is-invalid': _vm.gallery_item.name === '' },attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.gallery_item.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.gallery_item, \"name\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.able_iframe),expression:\"able_iframe\"}],staticClass:\"col-lg-12 col-xs-12\"},[_c('label',[_vm._v(\"Url do video\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.gallery_item.iframe),expression:\"gallery_item.iframe\"}],staticClass:\"form-control mb-3\",attrs:{\"placeholder\":\"Plataformas compativeis: YouTube, Vimeo, DailyMotion\",\"rows\":\"6\"},domProps:{\"value\":(_vm.gallery_item.iframe)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.gallery_item, \"iframe\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"videoPlayCurrent\"},[(_vm.able_iframe)?_c('video-embed',{staticClass:\"mb-3\",attrs:{\"id\":`embed${_vm.index}`,\"src\":_vm.gallery_item.iframe}}):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.saveIframe}},[_vm._v(\"\\n Salvar Vídeo\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.backOption}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"Voltar\\n \")],1)],1)])]):_vm._e(),_vm._v(\" \"),(!_vm.record && !_vm.able_iframe)?_c('div',{staticClass:\"row row-btns\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"btn btn-sm full btn-primary resize-btn\",attrs:{\"disabled\":_vm.gallery_item.name == ''},on:{\"click\":function($event){return _vm.canRecord()}}},[_vm._v(\"\\n GRAVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('span',{staticClass:\"btn full btn-sm btn-primary-dark btn-default btn-file resize-btn\",class:{ disabled: _vm.gallery_item.name == '' },attrs:{\"disabled\":_vm.gallery_item.name == ''}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load_upload),expression:\"!load_upload\"}]},[_vm._v(\"UPLOAD\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load_upload),expression:\"load_upload\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})]),_vm._v(\" \"),_c('input',{ref:`file`,attrs:{\"type\":\"file\",\"disabled\":_vm.gallery_item.name == '',\"accept\":\"video/*\",\"id\":`capture${_vm.index}`,\"capture\":\"camcorder\"},on:{\"change\":function($event){return _vm.sendMovieUpload()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"btn btn-sm btn-info full resize-btn\",attrs:{\"disabled\":_vm.load || _vm.gallery_item.name == ''},on:{\"click\":function($event){return _vm.showSelectVideo(_vm.index)}}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}]},[_vm._v(\"GALERIA\")]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('button',{staticClass:\"btn btn-sm full btn-secondary resize-btn\",attrs:{\"disabled\":_vm.gallery_item.name == ''},on:{\"click\":function($event){_vm.able_iframe = true}}},[_vm._v(\"\\n LINK EXTERNO\\n \")])])]):_vm._e(),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.gallery_item.video != '' && !_vm.record && !_vm.able_iframe),expression:\"gallery_item.video != '' && !record && !able_iframe\"}],staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"videoPlayCurrent mt-3\"},[_c('video',{attrs:{\"width\":\"100%\",\"id\":`video_unique${_vm.index}`,\"controls\":\"\",\"controlslist\":\"nodownload\"}},[_c('source',{attrs:{\"src\":_vm.gallery_item.video}})])])])]),_vm._v(\" \"),(_vm.record && !_vm.able_iframe)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"videoPlayCurrent center\"},[_c('VideoJSRecordGallery',{staticClass:\"mt-3\",attrs:{\"video\":_vm.gallery_item,\"gallery\":_vm.gallery,\"item\":_vm.gallery_item,\"reference_id\":_vm.current_reference_id,\"index\":_vm.index},on:{\"setFieldGalleryItem\":_vm.setFieldGalleryItem}}),_vm._v(\" \"),_c('button',{staticClass:\"mt-2 btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.backOption}},[_c('font-awesome-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"Voltar\\n \")],1)],1)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 p-3 col-xs-12\"},[(_vm.percent > 0 && _vm.percent <= 99)?_c('KProgress',{attrs:{\"color\":['#53358B', '#00baf7'],\"bg-color\":\"#fff\",\"percent\":_vm.percent}}):_vm._e()],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InstitutionalVideo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InstitutionalVideo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InstitutionalVideo.vue?vue&type=template&id=4e2bffa0&\"\nimport script from \"./InstitutionalVideo.vue?vue&type=script&lang=js&\"\nexport * from \"./InstitutionalVideo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\"},[_c('h1',{staticClass:\"mt-5 mb-5 center color-primary\",staticStyle:{\"font-family\":\"Comfortaa-Bold\"}},[_vm._v(\"Jovool\")]),_vm._v(\" \"),_c('h2',[_vm._v(\"Trocar sua senha\")]),_vm._v(\" \"),_c('div',{staticClass:\"card mb-4\"},[_c('div',{staticClass:\"card-body\"},[_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"Senha\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.password),expression:\"user.password\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"Senha\"},domProps:{\"value\":(_vm.user.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"password\", $event.target.value)}}}),_vm._v(\" \"),_c('Password',{attrs:{\"strength-meter-only\":true},on:{\"score\":_vm.showScore},model:{value:(_vm.user.password),callback:function ($$v) {_vm.$set(_vm.user, \"password\", $$v)},expression:\"user.password\"}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":\"password\"}},[_vm._v(\"Confirmar Senha\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.password_confirmation),expression:\"user.password_confirmation\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"Confirmar senha Senha\"},domProps:{\"value\":(_vm.user.password_confirmation)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.user, \"password_confirmation\", $event.target.value)}}}),_vm._v(\" \"),_c('Password',{attrs:{\"strength-meter-only\":true},on:{\"score\":_vm.showScore},model:{value:(_vm.user.password_confirmation),callback:function ($$v) {_vm.$set(_vm.user, \"password_confirmation\", $$v)},expression:\"user.password_confirmation\"}}),_vm._v(\" \"),_c('div',{staticClass:\"actions\"},[_c('button',{staticClass:\"mt-3 btn btn-success\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.changePassword}},[_vm._v(\"Alterar minha senha\")])])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Edit.vue?vue&type=script&lang=js&\"","\n \n
Jovool \n
Trocar sua senha \n
\n
\n
Senha \n
\n
\n\n
Confirmar Senha \n
\n
\n
\n Alterar minha senha \n
\n
\n
\n
\n \n\n\n","import { render, staticRenderFns } from \"./Edit.vue?vue&type=template&id=0573a6f0&\"\nimport script from \"./Edit.vue?vue&type=script&lang=js&\"\nexport * from \"./Edit.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"shadow_bar\"},[_c('div',{staticClass:\"close\",on:{\"click\":_vm.deleteQuestion}},[_c('i',{staticClass:\"fa fa-times f10\",staticStyle:{\"margin-bottom\":\"7px\"}})]),_vm._v(\" \"),_c('div',{staticClass:\"card card-body\"},[_c('label',[_vm._v(\"Pergunta\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.question.title),expression:\"question.title\"}],staticClass:\"form-control\",class:{\n 'is-invalid': _vm.$v.question.title.$error,\n 'is-valid': !_vm.$v.question.title.$invalid,\n },attrs:{\"type\":\"text\",\"placeholder\":\"PERGUNTA NA QUAL O CANDIDATO(A) DEVE RESPONDER\",\"field\":_vm.$v.question.title},domProps:{\"value\":(_vm.question.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.question, \"title\", $event.target.value)}}}),_vm._v(\" \"),_c('input',{staticClass:\"mt-3 form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"ADICIONE DETALHES (OPCIONAL)\"}}),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"NÚMERO DE TENTATIVAS\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.question.number_retakes),expression:\"question.number_retakes\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.question, \"number_retakes\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"3\"}},[_vm._v(\"3\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"5\"}},[_vm._v(\"5\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"7\"}},[_vm._v(\"7\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"TEMPO LIMITE\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.question.time),expression:\"question.time\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.question, \"time\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"30\"}},[_vm._v(\"30 segundos\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"60\"}},[_vm._v(\"60 segundos\")]),_vm._v(\" \"),_c('option',{attrs:{\"value\":\"120\"}},[_vm._v(\"120 segundos\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-xs-12 mt-3\"},[_c('label',[_vm._v(\"PROVA\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.question.evaluation_id),expression:\"question.evaluation_id\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.question, \"evaluation_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_vm._l((_vm.evaluations),function(eva){return [_c('option',{key:eva.id,domProps:{\"value\":eva.id}},[_vm._v(_vm._s(eva.name))])]})],2)])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n \n
\n
\n
Pergunta \n
\n
\n
\n
\n NÚMERO DE TENTATIVAS \n \n 3 \n 5 \n 7 \n \n
\n
\n TEMPO LIMITE \n \n 30 segundos \n 60 segundos \n 120 segundos \n \n
\n
\n PROVA \n \n \n {{eva.name}} \n \n \n
\n
\n
\n
\n
\n
\n \n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=206ac392&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-xs-12 plr-7\",staticStyle:{\"background-color\":\"#f7f7f7\"}},[_c('h1',{staticClass:\"mt-2 mb-4 center color-primary\",staticStyle:{\"font-family\":\"Comfortaa-Bold\"}},[_vm._v(\"\\n Jovool\\n \")]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fadeLeft\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.stepOne)?_c('SignUp',{on:{\"setEmail\":_vm.setEmail}}):_vm._e(),_vm._v(\" \"),(_vm.stepTwo)?_c('div',[_c('h1',[_vm._v(\"CADASTRO REALIZADO COM SUCESSO\")]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n ENVIAMOS UM\\n \"),_c('strong',[_vm._v(\"E-MAIL\")]),_vm._v(\"PARA A CONFIRMAÇÃO DE CONTA, ENTRE EM SUA\\n CAIXA DE EMAIL E ATIVE SUA CONTA, CASO NÃO ENCONTRE VERIFIQUE SUA\\n CAIXA DE SPAN OU\\n \"),_c('a',{attrs:{\"href\":\"recruiters/confirmation/new\"}},[_vm._v(\"CLIQUE AQUI\")]),_vm._v(\" PARA PEDIR\\n UM NOVO E-MAIL DE CONFIRMAÇÃO\\n \")]),_vm._v(\" \"),_c('p',[_vm._v(\"\\n NÃO RECEBEU EMAIL DE CONFIRMAÇÃO?\\n \"),_c('inertia-link',{attrs:{\"href\":\"/recruiters/confirmation/new\"}},[_vm._v(\"CLIQUE AQUI PARA ENVIAR\")])],1)]):_vm._e()],1)],1),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.show)?_c('div',{staticClass:\"col-lg-6 center col-xs-12 p-7 loginPanel\",staticStyle:{\"min-height\":\"100vh\"}}):_vm._e()])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./New.vue?vue&type=script&lang=js&\"","\n \n
\n
\n
\n Jovool\n \n \n
\n \n \n
CADASTRO REALIZADO COM SUCESSO \n
\n ENVIAMOS UM\n E-MAIL PARA A CONFIRMAÇÃO DE CONTA, ENTRE EM SUA\n CAIXA DE EMAIL E ATIVE SUA CONTA, CASO NÃO ENCONTRE VERIFIQUE SUA\n CAIXA DE SPAN OU\n CLIQUE AQUI PARA PEDIR\n UM NOVO E-MAIL DE CONFIRMAÇÃO\n
\n\n
\n NÃO RECEBEU EMAIL DE CONFIRMAÇÃO?\n CLIQUE AQUI PARA ENVIAR \n
\n
\n \n \n
\n
\n
\n \n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./New.vue?vue&type=template&id=0f3982a8&\"\nimport script from \"./New.vue?vue&type=script&lang=js&\"\nexport * from \"./New.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Criando sala de reunião\",\"menu\":\"Live\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"TÍTULO\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.rooms.title},model:{value:(_vm.rooms.title),callback:function ($$v) {_vm.$set(_vm.rooms, \"title\", $$v)},expression:\"rooms.title\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"DIA DA REUNIÃO\")]),_vm._v(\" \"),_c('Datepicker',{attrs:{\"type\":\"datetime\",\"input-class\":\"form-control mt-2\",\"language\":_vm.ptBR},model:{value:(_vm.date_current),callback:function ($$v) {_vm.date_current=$$v},expression:\"date_current\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"HORÁRIO DE INÍCIO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.start_hour),expression:\"start_hour\"},{name:\"mask\",rawName:\"v-mask\",value:(['##:##']),expression:\"['##:##']\"}],staticClass:\"form-control mt-2\",domProps:{\"value\":(_vm.start_hour)},on:{\"blur\":function($event){return _vm.autoCompleteStartHour()},\"input\":function($event){if($event.target.composing)return;_vm.start_hour=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"HORÁRIO DE TÉRMINO\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.end_hour),expression:\"end_hour\"},{name:\"mask\",rawName:\"v-mask\",value:(['##:##']),expression:\"['##:##']\"}],staticClass:\"form-control mt-2\",domProps:{\"value\":(_vm.end_hour)},on:{\"blur\":function($event){return _vm.autoCompleteEndHour()},\"input\":function($event){if($event.target.composing)return;_vm.end_hour=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-5 mt-4 col-xs-12 overflow-hidden\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 formJov p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":_vm.save}},[_vm._v(\"\\n SALVAR\\n \")])]),_vm._v(\" \"),(_vm.rooms.link)?_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3 mb-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.rooms.link),expression:\"rooms.link\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"linkShare\",\"readonly\":\"true\"},domProps:{\"value\":(_vm.rooms.link)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.rooms, \"link\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),(_vm.rooms.link)?_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.rooms.link),expression:\"rooms.link\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"btn full btn-primary f13 radius-0\"},[_vm._v(\"\\n COPIAR LINK\\n \")])]):_vm._e()])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n TÍTULO \n \n
\n
\n DIA DA REUNIÃO \n \n
\n
\n HORÁRIO DE INÍCIO \n \n
\n
\n HORÁRIO DE TÉRMINO \n \n
\n
\n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n \n
\n
\n \n COPIAR LINK\n \n
\n
\n
\n
\n
\n
\n \n \n\n\n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=72ed3918&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Salas de reuniões ao vivo\",\"menu\":\"Live\"}},[_c('title',[_vm._v(\"Live\")]),_vm._v(\" \"),_c('div',{staticClass:\"row mb-3\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12 pr-2\"},[_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h3',[_vm._v(\"SALAS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-10 p-0 m-0\"},[_c('inertia-link',{attrs:{\"href\":\"/recruiters/rooms/new\"}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"height\":\"38px\",\"width\":\"93%\"}},[_vm._v(\"\\n CRIAR SALA\\n \")])])],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"})]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-9 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 pr-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchRooms.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 mt-3\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n TÍTULO\\n \"),_c('OrderTable',{attrs:{\"field\":\"title\",\"entity\":\"room\"}})],1),_vm._v(\" \"),_c('td',[_vm._v(\"\\n DATA INÍCIO\\n \"),_c('OrderTable',{attrs:{\"field\":\"start_date\",\"entity\":\"room\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',[_vm._v(\"\\n DATA TÉRMINO\\n \"),_c('OrderTable',{attrs:{\"field\":\"end_date\",\"entity\":\"room\"}})],1),_vm._v(\" \"),_c('td',[_vm._v(\"LINK\")]),_vm._v(\" \"),_c('td',[_vm._v(\"EDITAR\")])])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.rooms),function(room){return _c('tr',{key:room.id,class:{ 'content-loading': _vm.loading }},[_c('td',[_vm._v(_vm._s(room.title))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(_vm.formattedDate(room.start_date)))]),_vm._v(\" \"),_c('td',[_vm._v(_vm._s(_vm.formattedDate(room.end_date)))]),_vm._v(\" \"),_c('td',[_c('span',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(room.link),expression:\"room.link\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"}],staticClass:\"pointer color-grey\",attrs:{\"title\":\"Copiar URL\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"link\"}})],1)]),_vm._v(\" \"),_c('td',[_c('inertia-link',{attrs:{\"href\":`/recruiters/rooms/${room.id}/edit`}},[_c('span',{staticClass:\"pointer color-grey\",attrs:{\"title\":\"Editar live\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"})])])],1)])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n Live \n \n
\n
\n
\n
\n
\n \n \n CRIAR SALA\n \n \n
\n
\n
\n
\n
\n
\n\n \n \n
\n
\n \n \n \n {{ room.title }} \n\n {{ formattedDate(room.start_date) }} \n {{ formattedDate(room.end_date) }} \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","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=eb49a588&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('Resume',{attrs:{\"resume\":_vm.candidate.curriculum_text,\"id\":_vm.candidate.id}}),_vm._v(\" \"),_c('div',{staticClass:\"card card-body mt-3\"},[(_vm.candidate.uid)?_c('BigfiveShow',{attrs:{\"candidate_uid\":_vm.candidate.uid,\"no_next\":true,\"only_graph\":true}}):_vm._e()],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-4 col-xs-12\"},[_c('AllApplies',{attrs:{\"talent_banks_id\":_vm.candidate.talent_banks_id}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./General.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./General.vue?vue&type=script&lang=js&\"","\n \n \n\n\n","import { render, staticRenderFns } from \"./General.vue?vue&type=template&id=55a78443&\"\nimport script from \"./General.vue?vue&type=script&lang=js&\"\nexport * from \"./General.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('CandidateLayout',{attrs:{\"tab\":\"General\",\"candidate\":_vm.candidate,\"applies\":_vm.applies,\"apply\":_vm.apply,\"recruiter_id\":_vm.recruiter_id,\"skills\":_vm.skills,\"other_avatar\":_vm.other_avatar}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js&\"","\n \n \n \n\n\n","import { render, staticRenderFns } from \"./Show.vue?vue&type=template&id=21e668fa&\"\nimport script from \"./Show.vue?vue&type=script&lang=js&\"\nexport * from \"./Show.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Candidatos(as)\",\"menu\":\"Candidatos\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-md-7 col-xs-12 overflow-auto\",staticStyle:{\"height\":\"85vh\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 mb-2 color-primary\"},[_c('h3',[_vm._v(\"CRIAR CANDIDATO(A)\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"NOME DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.candidate.name},model:{value:(_vm.candidate.name),callback:function ($$v) {_vm.$set(_vm.candidate, \"name\", $$v)},expression:\"candidate.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"EMAIL DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.candidate.email},model:{value:(_vm.candidate.email),callback:function ($$v) {_vm.$set(_vm.candidate, \"email\", $$v)},expression:\"candidate.email\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"PORTFÓLIO DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.candidate.personal_portfolio},model:{value:(_vm.candidate.personal_portfolio),callback:function ($$v) {_vm.$set(_vm.candidate, \"personal_portfolio\", $$v)},expression:\"candidate.personal_portfolio\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"SITE DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.candidate.personal_site},model:{value:(_vm.candidate.personal_site),callback:function ($$v) {_vm.$set(_vm.candidate, \"personal_site\", $$v)},expression:\"candidate.personal_site\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CIDADE DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('VueSuggestion',{attrs:{\"searchURL\":\"/cities\",\"responseDataName\":\"cities\",\"focusOut\":_vm.hasCity,\"selectedEl\":_vm.city,\"selectFirst\":true,\"clearOption\":true,\"placeholder\":\"CIDADE\",\"classes\":\"mt-1\",\"inputClasses\":\"radius-0 form-control\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('span',{staticClass:\"ml-3 f14 font-weight-bold\"},[_vm._v(\"CELULAR DO(A) CANDIDATO(A)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.mobile_phone),expression:\"candidate.mobile_phone\"},{name:\"mask\",rawName:\"v-mask\",value:('+## (##) #####-####'),expression:\"'+## (##) #####-####'\"}],staticClass:\"form-control mt-1\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.candidate.mobile_phone)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.candidate, \"mobile_phone\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('CandidateSkills',{attrs:{\"candidate_id\":_vm.candidate_id}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-md-5 col-xs-12 overflow-hidden\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 formJov p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"disabled\":_vm.load,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.saveCandidate()}}},[_vm._v(\"\\n SALVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"selectInput mt-2\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"STATUS DO(A) CANDIDATO\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.candidate.status),expression:\"candidate.status\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.candidate, \"status\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.avaiableStatus),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.talent_bank_url != '#')?_c('inertia-link',{staticClass:\"btn btn-info full mt-3 f13 p-2 radius-0\",attrs:{\"href\":_vm.talent_bank_url}},[_vm._v(\"VER DETALHADAMENTE\")]):_vm._e()],1)],1)])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n
\n
\n
CRIAR CANDIDATO(A) \n \n
\n NOME DO(A) CANDIDATO(A) \n \n
\n
\n EMAIL DO(A) CANDIDATO(A) \n \n
\n
\n PORTFÓLIO DO(A) CANDIDATO(A) \n \n
\n
\n SITE DO(A) CANDIDATO(A) \n \n
\n
\n CIDADE DO(A) CANDIDATO(A) \n \n
\n
\n CELULAR DO(A) CANDIDATO(A) \n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n STATUS DO(A) CANDIDATO \n \n \n {{ status.text }}\n \n \n
\n
\n
\n \n VER DETALHADAMENTE \n \n
\n
\n
\n
\n
\n
\n \n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=497d73ee&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Recrutadores\",\"menu\":\"Recrutadores\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-xs-12 overflow-auto\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 label-bold\"},[_vm._v(\" NOME\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.recruiter.name},model:{value:(_vm.recruiter.name),callback:function ($$v) {_vm.$set(_vm.recruiter, \"name\", $$v)},expression:\"recruiter.name\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 label-bold\"},[_vm._v(\" EMAIL\")]),_vm._v(\" \"),_c('inputform',{staticClass:\"label-bold mt-2\",attrs:{\"type\":\"email\",\"field\":_vm.$v.recruiter.email},model:{value:(_vm.recruiter.email),callback:function ($$v) {_vm.$set(_vm.recruiter, \"email\", $$v)},expression:\"recruiter.email\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12\"},[_c('span',{staticClass:\"ml-3 f14 label-bold\"},[_vm._v(\" TELEFONE\")]),_vm._v(\" \"),_c('inputform',{directives:[{name:\"mask\",rawName:\"v-mask\",value:('+## (##) #####-####'),expression:\"'+## (##) #####-####'\"}],staticClass:\"label-bold mt-2\",attrs:{\"type\":\"text\",\"field\":_vm.$v.recruiter.mobile_phone},model:{value:(_vm.recruiter.mobile_phone),callback:function ($$v) {_vm.$set(_vm.recruiter, \"mobile_phone\", $$v)},expression:\"recruiter.mobile_phone\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 form-group\"},[_c('label',[_vm._v(\"SENHA\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.password),expression:\"recruiter.password\"}],staticClass:\"form-control\",class:{\n 'is-valid': _vm.password_valid,\n },attrs:{\"type\":\"password\"},domProps:{\"value\":(_vm.recruiter.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.recruiter, \"password\", $event.target.value)}}}),_vm._v(\" \"),_c('Password',{attrs:{\"strength-meter-only\":true},on:{\"score\":_vm.showScore},model:{value:(_vm.recruiter.password),callback:function ($$v) {_vm.$set(_vm.recruiter, \"password\", $$v)},expression:\"recruiter.password\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/teams`}},[_c('button',{staticClass:\"mt-1 btn btnhoverprimary\",staticStyle:{\"border-radius\":\"0px\"},attrs:{\"type\":\"button\"}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"\\n VOLTAR A LISTAGEM DE VAGA\\n \")],1)])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 formJov p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('button',{staticClass:\"btn full btn-primary f13 p-2 radius-0\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.sendRecruiter}},[_vm._v(\"\\n SALVAR\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 mt-3\"},[_c('div',{staticClass:\"selectInput\"},[_c('span',{staticClass:\"f10 pl-3 color-grey\"},[_vm._v(\"STATUS DO RECRUTADOR(A)\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.status),expression:\"recruiter.status\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.recruiter, \"status\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.statusRecruiter),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0)])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 text-left mb-3 mt-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.is_admin),expression:\"recruiter.is_admin\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.recruiter.is_admin)?_vm._i(_vm.recruiter.is_admin,null)>-1:(_vm.recruiter.is_admin)},on:{\"change\":function($event){var $$a=_vm.recruiter.is_admin,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.recruiter, \"is_admin\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.recruiter, \"is_admin\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.recruiter, \"is_admin\", $$c)}}}}),_vm._v(\" \"),_c('span',[_vm._v(\"ADMINISTRADOR(A)?\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 text-left mb-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.talent_bank),expression:\"recruiter.talent_bank\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.recruiter.talent_bank)?_vm._i(_vm.recruiter.talent_bank,null)>-1:(_vm.recruiter.talent_bank)},on:{\"change\":function($event){var $$a=_vm.recruiter.talent_bank,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.recruiter, \"talent_bank\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.recruiter, \"talent_bank\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.recruiter, \"talent_bank\", $$c)}}}}),_vm._v(\" \"),_c('span',[_vm._v(\"ACESSO AO BANCO DE TALENTOS ?\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 text-left mb-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.limited),expression:\"recruiter.limited\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.recruiter.limited)?_vm._i(_vm.recruiter.limited,null)>-1:(_vm.recruiter.limited)},on:{\"change\":function($event){var $$a=_vm.recruiter.limited,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.recruiter, \"limited\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.recruiter, \"limited\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.recruiter, \"limited\", $$c)}}}}),_vm._v(\" \"),_c('span',[_vm._v(\"ACESSO LIMITADO ?\")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12 text-left mb-3\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruiter.is_evaluator),expression:\"recruiter.is_evaluator\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.recruiter.is_evaluator)?_vm._i(_vm.recruiter.is_evaluator,null)>-1:(_vm.recruiter.is_evaluator)},on:{\"change\":function($event){var $$a=_vm.recruiter.is_evaluator,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.recruiter, \"is_evaluator\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.recruiter, \"is_evaluator\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.recruiter, \"is_evaluator\", $$c)}}}}),_vm._v(\" \"),_c('span',[_vm._v(\"É AVALIADOR ?\")])]),_vm._v(\" \"),(_vm.recruiter.is_evaluator)?_c('div',{staticClass:\"col-lg-12 col-xs-12 text-left mb-3\"},[_c('JobEvaluation',{attrs:{\"recruiter\":_vm.recruiter},on:{\"setSchema\":_vm.setSchema}})],1):_vm._e()])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n NOME \n \n
\n
\n EMAIL \n \n
\n
\n TELEFONE \n \n
\n
\n
\n
\n \n \n \n VOLTAR A LISTAGEM DE VAGA\n \n \n
\n
\n
\n
\n
\n
\n
\n \n SALVAR\n \n
\n
\n
\n STATUS DO RECRUTADOR(A) \n \n \n {{ status.text }}\n \n \n
\n
\n
\n \n ADMINISTRADOR(A)? \n
\n
\n \n ACESSO AO BANCO DE TALENTOS ? \n
\n
\n \n ACESSO LIMITADO ? \n
\n
\n \n É AVALIADOR ? \n
\n
\n \n
\n
\n
\n
\n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=6b7b9602&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Recrutadores\",\"menu\":\"Recrutadores\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"block_info_white p-2\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('h3',{staticClass:\"color-black\"},[_vm._v(\"RECRUTADORES\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"color-black fa fa-search ml-2 mt-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"change\":_vm.searchRecruiter,\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchRecruiter.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.status),expression:\"status\"}],staticClass:\"form-control col-xl-4\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.status=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.searchRecruiter]}},_vm._l((_vm.statusRecruiter),function(status){return _c('option',{key:status.value,domProps:{\"value\":status.value}},[_vm._v(\"\\n \"+_vm._s(status.text)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('inertia-link',{attrs:{\"href\":\"/recruiters/teams/new\"}},[_c('button',{staticClass:\"btn-new-job\",staticStyle:{\"height\":\"38px\",\"width\":\"95%\"}},[_vm._v(\"\\n CRIAR RECRUTADOR\\n \")])])],1)])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',{staticClass:\"center\"},[_vm._v(\"\\n NOME DO RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"Recruiter\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"Recruiter\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A) RESPONSÁVEL\\n \"),_c('OrderTable',{attrs:{\"entity\":\"Recruiter\",\"field\":\"name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"EDITAR\")])])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.recruiters),function(recruiter){return _c('tr',{key:recruiter.id},[_c('td',{staticClass:\"center color-grey\"},[_vm._v(_vm._s(recruiter.name))]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(recruiter.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(recruiter.admin_name || \"Administrador\")+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{attrs:{\"href\":`/recruiters/teams/${recruiter.id}/edit`}},[_c('span',{staticClass:\"pointer color-grey\",attrs:{\"title\":\"Editar live\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"})])])],1)])}),0)]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n
\n
\n
\n\n
\n \n \n {{ status.text }}\n \n \n
\n
\n \n \n CRIAR RECRUTADOR\n \n \n
\n
\n
\n
\n
\n \n
\n
\n \n \n \n {{ recruiter.name }} \n \n {{ recruiter.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ recruiter.admin_name || \"Administrador\" }}\n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=15fe17af&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":_vm.newTemplate\n ? 'Crie um template'\n : `Editar template: ${_vm.current_template.name}`,\"menu\":\"Templates\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('div',{attrs:{\"id\":\"new-job-box \"}},[_c('div',{staticClass:\"card mt-3\"},[_c('div',{staticClass:\"card-body formJov\"},[_c('div',{staticClass:\"row justify-content-start\"},[_c('div',{staticClass:\"w-100 text-left d-inline\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"Nome do template: \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.current_template.name),expression:\"current_template.name\"}],staticClass:\"form-control px-3\",class:{ 'cursor-not-allowed': !_vm.UD_permissions },attrs:{\"type\":\"text\",\"readonly\":!_vm.UD_permissions,\"placeholder\":\"Nome do Template\"},domProps:{\"value\":(_vm.current_template.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.current_template, \"name\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-danger\",class:{\n 'disabled cursor-not-allowed': !_vm.UD_permissions,\n },attrs:{\"disabled\":!_vm.UD_permissions},on:{\"click\":_vm.deleteTemplate}},[_vm._v(\"\\n \"+_vm._s(_vm.newTemplate ? \"Cancelar\" : \"Deletar Template\")+\"\\n \")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"mt-3\"},[_c('templateQuestions',{attrs:{\"template_id\":_vm.template.id,\"questions_record\":_vm.questions_record,\"gallery\":_vm.gallery,\"intern\":true,\"UD_permissions\":_vm.UD_permissions},model:{value:(_vm.questions),callback:function ($$v) {_vm.questions=$$v},expression:\"questions\"}})],1)]),_vm._v(\" \"),(_vm.UD_permissions)?_c('div',{staticClass:\"w-50 col-xs-12\"},[_c('button',{staticClass:\"btn full btn-degrade normal-degrade\",attrs:{\"disabled\":_vm.load || !_vm.UD_permissions,\"type\":\"buttom\"},on:{\"click\":function($event){return _vm.save(true)}}},[_c('font-awesome-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.load),expression:\"!load\"}],attrs:{\"icon\":\"check\"}}),_vm._v(\"\\n \"+_vm._s(!_vm.load ? \"Salvar Template\" : \"\")+\"\\n \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.load),expression:\"load\"}],staticClass:\"spinner-border text-light\",attrs:{\"role\":\"status\"}},[_c('span',{staticClass:\"sr-only\"})])],1)]):_vm._e()])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-8 col-xs-12\"},[_c('span',{staticClass:\"btn mt-3 mb-2 btn btnhoverprimary\",staticStyle:{\"border-radius\":\"0px\"},on:{\"click\":_vm.back}},[_c('font-awesome-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"chevron-left\"}}),_vm._v(\"Voltar a\\n listagem de templates\\n \")],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n
\n
\n
\n
\n
\n
\n
Nome do template: \n
\n
\n
\n
\n
\n \n {{ !load ? \"Salvar Template\" : \"\" }}\n \n \n
\n \n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n \n Voltar a\n listagem de templates\n \n
\n
\n \n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Form.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Form.vue?vue&type=template&id=39bfb8ff&\"\nimport script from \"./Form.vue?vue&type=script&lang=js&\"\nexport * from \"./Form.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Templates\",\"menu\":\"Templates\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h3',[_vm._v(\"TEMPLATES\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 p-0 m-0\"},[_c('button',{staticClass:\"btn-new-job full\",on:{\"click\":_vm.saveTemplate}},[_vm._v(\"\\n CRIAR TEMPLATE\\n \")])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-7\"})]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-2\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.templateName),expression:\"templateName\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"INSIRA O NOME DO TEMPLATE\"},domProps:{\"value\":(_vm.templateName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.templateName=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"color-black fa fa-search ml-2 mt-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border pl-5\",staticStyle:{\"padding\":\"0px\"},attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchTemplates.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])])]),_vm._v(\" \"),_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"home\",\"role\":\"tabpanel\",\"aria-labelledby\":\"home-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',[_c('td',[_vm._v(\"\\n NOME DO TEMPLATE\\n \"),_c('OrderTable',{attrs:{\"field\":\"name\",\"entity\":\"Template\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA DE CRIAÇÃO\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"entity\":\"Template\",\"pre_order\":\"desc\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n RECRUTADOR(A)\\n \"),_c('OrderTable',{attrs:{\"entity\":\"Template\",\"field\":\"recruiter_name\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"EDITAR\")])])]),_vm._v(\" \"),_c('tbody',_vm._l((_vm.templates),function(template){return _c('tr',{key:template.id},[_c('td',[_c('inertia-link',{attrs:{\"href\":`/recruiters/templates/${template.id}/edit`}},[_c('b',{staticClass:\"color-grey-primary\"},[_vm._v(_vm._s(template.name))])])],1),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(template.created_at,\"D/MM/Y\"))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center color-grey\"},[_vm._v(\"\\n \"+_vm._s(template.recruiter.name)+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('inertia-link',{staticClass:\"pt-4 pointer color-primary\",attrs:{\"href\":`/recruiters/templates/${template.id}/edit`}},[_c('i',{staticClass:\"fas f25 color-primary fa-file-alt\"})])],1)])}),0)])])])])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n \n
\n
\n \n CRIAR TEMPLATE\n \n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n \n \n \n \n \n {{ template.name }} \n \n \n \n {{ template.created_at | moment(\"D/MM/Y\") }}\n \n \n {{ template.recruiter.name }}\n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n \n \n\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=3a31cab8&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('admin-layout',{attrs:{\"title\":\"Vídeos\",\"menu\":\"Vídeos\"}},[_c('title',[_vm._v(\"VÍDEOS\")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-xs-12\"},[_c('div',{staticClass:\"form-group color-dark-purple mb-0\"},[_c('h3',[_vm._v(\"VÍDEOS\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-10\"})]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-5 col-xs-12\"},[_c('ul',{staticClass:\"nav hide nav-tabs block_info_white\",attrs:{\"id\":\"myTab\",\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item mr-5\"},[_c('a',{staticClass:\"nav-link p-1 nav-link-custom active\",attrs:{\"id\":\"videos-tab\",\"data-toggle\":\"tab\",\"href\":\"#videos\",\"role\":\"tab\",\"aria-controls\":\"videos\",\"aria-selected\":\"true\"},on:{\"click\":function($event){return _vm.changeStatus(false)}}},[_c('b',[_vm._v(\"VÍDEOS\")])])]),_vm._v(\" \"),_c('li',{staticClass:\"nav-item mr-5\"},[_c('a',{staticClass:\"nav-link nav-link-custom p-1\",attrs:{\"id\":\"apply-tab\",\"data-toggle\":\"tab\",\"href\":\"#apply\",\"role\":\"tab\",\"aria-controls\":\"apply\",\"aria-selected\":\"false\"},on:{\"click\":function($event){return _vm.changeStatus(true)}}},[_c('b',[_vm._v(\"APLICAÇÕES\")])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-3 col-xs-12\"},[_c('div',{staticClass:\"form-group mb-0 has-search d-flex justify-content-end\",staticStyle:{\"margin-left\":\"-3px\"}},[_c('div',[_c('span',{staticClass:\"fa fa-search ml-2 mt-2 mr-3 form-control-feedback\"})]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.search),expression:\"search\"}],staticClass:\"form-control no_border\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.searchVideos.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"pt-2 right\"},[_c('span',{staticClass:\"mr-2\"},[_c('b',[_vm._v(\"TOTAL\")])]),_vm._v(\" \"),_c('span',[_c('b',[_vm._v(_vm._s(_vm.totalVideos))])])])])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-xs-12\"},[_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"myTabContent\"}},[_c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"videos\",\"role\":\"tabpanel\",\"aria-labelledby\":\"videos-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\",staticStyle:{\"overflow-x\":\"auto\"}},[_c('div',{staticClass:\"table-responsive mt-3\"},[_c('table',{staticClass:\"table_jovool\"},[_c('thead',{staticClass:\"headerTable\"},[_c('tr',{staticClass:\"text-center\"},[_c('td',[_vm._v(\"IMAGEM\")]),_vm._v(\" \"),_c('td',{staticClass:\"center\",staticStyle:{\"min-width\":\"200px\"}},[_vm._v(\"\\n NOME\\n \"),_c('OrderTable',{attrs:{\"field\":\"candidate_name\",\"entity\":\"video\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n CONTATO\\n \"),_c('OrderTable',{attrs:{\"field\":\"candidate_email\",\"entity\":\"video\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n VAGA\\n \"),_c('OrderTable',{attrs:{\"field\":\"job_title\",\"entity\":\"video\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n PERGUNTA\\n \"),_c('OrderTable',{attrs:{\"field\":\"title\",\"entity\":\"video\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n SCORE\\n \"),_c('OrderTable',{attrs:{\"field\":\"score\",\"entity\":\"video\"}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n DATA\\n \"),_c('OrderTable',{attrs:{\"field\":\"created_at\",\"pre_order\":\"desc\",\"entity\":\"video\"}})],1),_vm._v(\" \"),_c('td',[_vm._v(\"VÍDEO\")])])]),_vm._v(\" \"),_c('tbody',{staticClass:\"position-relative\"},[_vm._l((_vm.videos),function(apply,index){return _c('tr',{key:apply.id,class:{ 'content-loading': _vm.loading }},[_c('td',[_c('div',{staticClass:\"avatar_thumb pointer\",on:{\"click\":function($event){return _vm.showApply(apply.id, apply.candidate_id, index)}}},[_c('img',{attrs:{\"src\":apply.image}})])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"d-inline-block text-truncate\"},[_vm._v(_vm._s(apply.candidate_name))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"d-inline-block text-truncate\",attrs:{\"id\":\"email\"},on:{\"click\":function($event){return _vm.copyEmail(apply.candidate_email)}}},[_vm._v(_vm._s(apply.candidate_email != \"\"\n ? apply.candidate_email\n : \"\"))]),_vm._v(\" \"),(apply.candidate_mobile_phone)?_c('br'):_vm._e(),_vm._v(\" \"),(apply.candidate_mobile_phone)?_c('span',{staticClass:\"d-inline-block text-truncate\",attrs:{\"id\":\"phone\"},on:{\"click\":function($event){return _vm.copyPhone(apply.candidate_mobile_phone)}}},[_vm._v(_vm._s(apply.candidate_mobile_phone != \"\"\n ? apply.candidate_mobile_phone\n : \"\"))]):_vm._e(),_c('br')]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"d-inline-block text-truncate\",staticStyle:{\"max-width\":\"150px\"}},[_vm._v(_vm._s(apply.job_title))])]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('span',{staticClass:\"d-inline-block text-truncate\",staticStyle:{\"max-width\":\"100px\"},attrs:{\"title\":apply.title},domProps:{\"innerHTML\":_vm._s(apply.title)}},[_vm._v(\"\\\"\"+_vm._s(apply.title)+\"\\\"\")])]),_vm._v(\" \"),_c('td',[_c('StarRating',{staticClass:\"center ajust_star\",attrs:{\"active-color\":\"#9472F8\",\"read-only\":true,\"rating\":parseInt(apply.score) ? parseInt(apply.score) : 0,\"max-rating\":5,\"star-size\":20}})],1),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(apply.created_at))+\"\\n \")]),_vm._v(\" \"),_c('td',{staticClass:\"center\"},[_c('p',{staticClass:\"pt-4 pointer color-primary\",on:{\"click\":function($event){return _vm.showApply(apply.id, apply.candidate_id, index)}}},[_c('i',{staticClass:\"fas f25 color-primary fa-file-alt\"})])])])}),_vm._v(\" \"),_c('div',{staticClass:\"center position-absolute loading-gif\",class:{ 'd-none': !_vm.loading || _vm.firstLoad }},[_c('img',{attrs:{\"src\":\"/images/loading.gif\",\"alt\":\"loading-gif\"}})])],2)])]),_vm._v(\" \"),_c('v-pagination',{staticClass:\"justify-content-center\",class:_vm.firstLoad ? 'd-none' : 'd-flex',attrs:{\"page-count\":_vm.pageCount,\"classes\":_vm.bootstrapPaginationClasses},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"profile\",\"role\":\"tabpanel\",\"aria-labelledby\":\"profile-tab\"}})])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","\n \n VÍDEOS \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n TOTAL \n \n \n {{ totalVideos }} \n \n
\n
\n
\n
\n
\n
\n \n